12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623(* 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.batchletapiVersion="2016-08-10"letendpointPrefix="batch"letserviceFullName="AWS Batch"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWS Batch"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[]))])moduleDeviceCgroupPermission=structtypenonrect=|READ|WRITE|MKNOD|Non_static_idofstringletmakei=iletto_string=function|READ->"READ"|WRITE->"WRITE"|MKNOD->"MKNOD"|Non_static_ids->sletof_string=function|"READ"->READ|"WRITE"->WRITE|"MKNOD"->MKNOD|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 DeviceCgroupPermission"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"DeviceCgroupPermission"j)letto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleDeviceCgroupPermissions=structtypenonrect=DeviceCgroupPermission.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:DeviceCgroupPermission.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:DeviceCgroupPermission.of_xml)letof_jsonj=list_of_json~kind:"DeviceCgroupPermissions"~of_json:DeviceCgroupPermission.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInteger=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_valueendmoduleStringList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleDevice=structtypenonrect={hostPath:String_.t[@ocaml.doc"The path for the device on the host container instance."];containerPath:String_.toption[@ocaml.doc"The path inside the container that's used to expose the host device. By default, the hostPath value is used."];permissions:DeviceCgroupPermissions.toption[@ocaml.doc"The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device."]}letcontext_="Device"letmake?containerPath=fun?permissions->fun~hostPath->fun()->{containerPath;permissions;hostPath}letto_valuex=structure_to_value[("hostPath",(Some(String_.to_valuex.hostPath)));("containerPath",(Option.mapx.containerPath~f:String_.to_value));("permissions",(Option.mapx.permissions~f:DeviceCgroupPermissions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpermissions=(Option.map~f:DeviceCgroupPermissions.of_xml)(Xml.childxml_arg0"permissions")inletcontainerPath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerPath")inlethostPath=String_.of_xml(Xml.child_exn~context:context_xml_arg0"hostPath")inmake?permissions?containerPath~hostPath()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpermissions=field_mapjson__"permissions"DeviceCgroupPermissions.of_jsoninletcontainerPath=field_mapjson__"containerPath"String_.of_jsoninlethostPath=field_map_exnjson__"hostPath"String_.of_jsoninmake?permissions?containerPath~hostPath()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a container instance host device. This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided."]moduleTmpfs=structtypenonrect={containerPath:String_.t[@ocaml.doc"The absolute file path in the container where the tmpfs volume is mounted."];size:Integer.t[@ocaml.doc"The size (in MiB) of the tmpfs volume."];mountOptions:StringList.toption[@ocaml.doc"The list of tmpfs volume mount options. Valid values: \"defaults\" | \"ro\" | \"rw\" | \"suid\" | \"nosuid\" | \"dev\" | \"nodev\" | \"exec\" | \"noexec\" | \"sync\" | \"async\" | \"dirsync\" | \"remount\" | \"mand\" | \"nomand\" | \"atime\" | \"noatime\" | \"diratime\" | \"nodiratime\" | \"bind\" | \"rbind\" | \"unbindable\" | \"runbindable\" | \"private\" | \"rprivate\" | \"shared\" | \"rshared\" | \"slave\" | \"rslave\" | \"relatime\" | \"norelatime\" | \"strictatime\" | \"nostrictatime\" | \"mode\" | \"uid\" | \"gid\" | \"nr_inodes\" | \"nr_blocks\" | \"mpol\""]}letcontext_="Tmpfs"letmake?mountOptions=fun~containerPath->fun~size->fun()->{mountOptions;containerPath;size}letto_valuex=structure_to_value[("containerPath",(Some(String_.to_valuex.containerPath)));("size",(Some(Integer.to_valuex.size)));("mountOptions",(Option.mapx.mountOptions~f:StringList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmountOptions=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"mountOptions")inletsize=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"size")inletcontainerPath=String_.of_xml(Xml.child_exn~context:context_xml_arg0"containerPath")inmake?mountOptions~size~containerPath()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmountOptions=field_mapjson__"mountOptions"StringList.of_jsoninletsize=field_map_exnjson__"size"Integer.of_jsoninletcontainerPath=field_map_exnjson__"containerPath"String_.of_jsoninmake?mountOptions~size~containerPath()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The container path, mount options, and size of the tmpfs mount. This object isn't applicable to jobs that are running on Fargate resources."]moduleSecret=structtypenonrect={name:String_.t[@ocaml.doc"The name of the secret."];valueFrom:String_.t[@ocaml.doc"The secret to expose to the container. The supported values are either the full Amazon Resource Name (ARN) of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store. If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use either the full Amazon Resource Name (ARN) or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified."]}letcontext_="Secret"letmake~name=fun~valueFrom->fun()->{name;valueFrom}letto_valuex=structure_to_value[("name",(Some(String_.to_valuex.name)));("valueFrom",(Some(String_.to_valuex.valueFrom)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalueFrom=String_.of_xml(Xml.child_exn~context:context_xml_arg0"valueFrom")inletname=String_.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~valueFrom~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalueFrom=field_map_exnjson__"valueFrom"String_.of_jsoninletname=field_map_exnjson__"name"String_.of_jsoninmake~valueFrom~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the secret to expose to your container. Secrets can be exposed to a container in the following ways: To inject sensitive data into your containers as environment variables, use the secrets container definition parameter. To reference sensitive information in the log configuration of a container, use the secretOptions container definition parameter. For more information, see Specifying sensitive data in the Batch User Guide."]moduleBoolean=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_valueendmoduleResourceType=structtypenonrect=|GPU|VCPU|MEMORY|Non_static_idofstringletmakei=iletto_string=function|GPU->"GPU"|VCPU->"VCPU"|MEMORY->"MEMORY"|Non_static_ids->sletof_string=function|"GPU"->GPU|"VCPU"->VCPU|"MEMORY"->MEMORY|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ResourceType"j)letto_json=simple_to_jsonto_valueendmoduleEFSAuthorizationConfigIAM=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration EFSAuthorizationConfigIAM"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EFSAuthorizationConfigIAM"j)letto_json=simple_to_jsonto_valueendmoduleKeyValuePair=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the key-value pair. For environment variables, this is the name of the environment variable."];value:String_.toption[@ocaml.doc"The value of the key-value pair. For environment variables, this is the value of the environment variable."]}letmake?name=fun?value->fun()->{name;value}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"value")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?value?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?value?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A key-value pair object."]moduleFirelensConfigurationOptionsMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFirelensConfigurationType=structtypenonrect=|Fluentd|Fluentbit|Non_static_idofstringletmakei=iletto_string=function|Fluentd->"fluentd"|Fluentbit->"fluentbit"|Non_static_ids->sletof_string=function|"fluentd"->Fluentd|"fluentbit"->Fluentbit|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 FirelensConfigurationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"FirelensConfigurationType"j)letto_json=simple_to_jsonto_valueendmoduleDevicesList=structtypenonrect=Device.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Device.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:Device.of_xml)letof_jsonj=list_of_json~kind:"DevicesList"~of_json:Device.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTmpfsList=structtypenonrect=Tmpfs.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tmpfs.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:Tmpfs.of_xml)letof_jsonj=list_of_json~kind:"TmpfsList"~of_json:Tmpfs.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogConfigurationOptionsMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogDriver=structtypenonrect=|Json_file|Syslog|Journald|Gelf|Fluentd|Awslogs|Splunk|Awsfirelens|Non_static_idofstringletmakei=iletto_string=function|Json_file->"json-file"|Syslog->"syslog"|Journald->"journald"|Gelf->"gelf"|Fluentd->"fluentd"|Awslogs->"awslogs"|Splunk->"splunk"|Awsfirelens->"awsfirelens"|Non_static_ids->sletof_string=function|"json-file"->Json_file|"syslog"->Syslog|"journald"->Journald|"gelf"->Gelf|"fluentd"->Fluentd|"awslogs"->Awslogs|"splunk"->Splunk|"awsfirelens"->Awsfirelens|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 LogDriver"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LogDriver"j)letto_json=simple_to_jsonto_valueendmoduleSecretList=structtypenonrect=Secret.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Secret.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:Secret.of_xml)letof_jsonj=list_of_json~kind:"SecretList"~of_json:Secret.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMountPoint=structtypenonrect={containerPath:String_.toption[@ocaml.doc"The path on the container where the host volume is mounted."];readOnly:Boolean.toption[@ocaml.doc"If this value is true, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is false."];sourceVolume:String_.toption[@ocaml.doc"The name of the volume to mount."]}letmake?containerPath=fun?readOnly->fun?sourceVolume->fun()->{containerPath;readOnly;sourceVolume}letto_valuex=structure_to_value[("containerPath",(Option.mapx.containerPath~f:String_.to_value));("readOnly",(Option.mapx.readOnly~f:Boolean.to_value));("sourceVolume",(Option.mapx.sourceVolume~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsourceVolume=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sourceVolume")inletreadOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readOnly")inletcontainerPath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerPath")inmake?sourceVolume?readOnly?containerPath()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsourceVolume=field_mapjson__"sourceVolume"String_.of_jsoninletreadOnly=field_mapjson__"readOnly"Boolean.of_jsoninletcontainerPath=field_mapjson__"containerPath"String_.of_jsoninmake?sourceVolume?readOnly?containerPath()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details for a Docker volume mount point that's used in a job's container properties. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run."]moduleResourceRequirement=structtypenonrect={value:String_.t[@ocaml.doc"The quantity of the specified resource to reserve for the container. The values vary based on the type specified. type=\"GPU\" The number of physical GPUs to reserve for the container. Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on. GPUs aren't available for jobs that are running on Fargate resources. type=\"MEMORY\" The memory hard limit (in MiB) present to the container. This parameter is supported for jobs that are running on Amazon EC2 resources. If your container attempts to exceed the memory specified, the container is terminated. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run. You must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run. If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide. For jobs that are running on Fargate resources, then value is the hard limit (in MiB), and must match one of the supported values and the VCPU values must be one of the values supported for that memory value. value = 512 VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, or 1 value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = 5120, 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360 VCPU = 2 or 4 value = 16384 VCPU = 2, 4, or 8 value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720 VCPU = 4 value = 20480, 24576, or 28672 VCPU = 4 or 8 value = 36864, 45056, 53248, or 61440 VCPU = 8 value = 32768, 40960, 49152, or 57344 VCPU = 8 or 16 value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880 VCPU = 16 type=\"VCPU\" The number of vCPUs reserved for the container. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run. Each vCPU is equivalent to 1,024 CPU shares. For Amazon EC2 resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be specified for each node at least once. The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more information about Fargate quotas, see Fargate quotas in the Amazon Web Services General Reference. For jobs that are running on Fargate resources, then value must match one of the supported values and the MEMORY values must be one of the values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16 value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, 3072, or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 value = 2 MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720 value = 8 MEMORY = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440 value = 16 MEMORY = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880"];type_:ResourceType.t[@ocaml.doc"The type of resource to assign to a container. The supported resources include GPU, MEMORY, and VCPU."]}letcontext_="ResourceRequirement"letmake~value=fun~type_->fun()->{value;type_}letto_valuex=structure_to_value[("value",(Some(String_.to_valuex.value)));("type",(Some(ResourceType.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=ResourceType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletvalue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"value")inmake~type_~value()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"ResourceType.of_jsoninletvalue=field_map_exnjson__"value"String_.of_jsoninmake~type_~value()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The type and amount of a resource to assign to a container. The supported resources include GPU, MEMORY, and VCPU."]moduleTaskContainerDependency=structtypenonrect={containerName:String_.toption[@ocaml.doc"A unique identifier for the container."];condition:String_.toption[@ocaml.doc"The dependency condition of the container. The following are the available conditions and their behavior: START - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. COMPLETE - This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. SUCCESS - This condition is the same as COMPLETE, but it also requires that the container exits with a zero status. This condition can't be set on an essential container."]}letmake?containerName=fun?condition->fun()->{containerName;condition}letto_valuex=structure_to_value[("containerName",(Option.mapx.containerName~f:String_.to_value));("condition",(Option.mapx.condition~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcondition=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"condition")inletcontainerName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerName")inmake?condition?containerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcondition=field_mapjson__"condition"String_.of_jsoninletcontainerName=field_mapjson__"containerName"String_.of_jsoninmake?condition?containerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A list of containers that this task depends on."]moduleUlimit=structtypenonrect={hardLimit:Integer.t[@ocaml.doc"The hard limit for the ulimit type."];name:String_.t[@ocaml.doc"The type of the ulimit. Valid values are: core | cpu | data | fsize | locks | memlock | msgqueue | nice | nofile | nproc | rss | rtprio | rttime | sigpending | stack."];softLimit:Integer.t[@ocaml.doc"The soft limit for the ulimit type."]}letcontext_="Ulimit"letmake~hardLimit=fun~name->fun~softLimit->fun()->{hardLimit;name;softLimit}letto_valuex=structure_to_value[("hardLimit",(Some(Integer.to_valuex.hardLimit)));("name",(Some(String_.to_valuex.name)));("softLimit",(Some(Integer.to_valuex.softLimit)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsoftLimit=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"softLimit")inletname=String_.of_xml(Xml.child_exn~context:context_xml_arg0"name")inlethardLimit=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"hardLimit")inmake~softLimit~name~hardLimit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsoftLimit=field_map_exnjson__"softLimit"Integer.of_jsoninletname=field_map_exnjson__"name"String_.of_jsoninlethardLimit=field_map_exnjson__"hardLimit"Integer.of_jsoninmake~softLimit~name~hardLimit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The ulimit settings to pass to the container. For more information, see Ulimit. This object isn't applicable to jobs that are running on Fargate resources."]moduleEFSAuthorizationConfig=structtypenonrect={accessPointId:String_.toption[@ocaml.doc"The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in the EFSVolumeConfiguration must either be omitted or set to / which enforces the path set on the EFS access point. If an access point is used, transit encryption must be enabled in the EFSVolumeConfiguration. For more information, see Working with Amazon EFS access points in the Amazon Elastic File System User Guide."];iam:EFSAuthorizationConfigIAM.toption[@ocaml.doc"Whether or not to use the Batch job IAM role defined in a job definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration. If this parameter is omitted, the default value of DISABLED is used. For more information, see Using Amazon EFS access points in the Batch User Guide. EFS IAM authorization requires that TransitEncryption be ENABLED and that a JobRoleArn is specified."]}letmake?accessPointId=fun?iam->fun()->{accessPointId;iam}letto_valuex=structure_to_value[("accessPointId",(Option.mapx.accessPointId~f:String_.to_value));("iam",(Option.mapx.iam~f:EFSAuthorizationConfigIAM.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letiam=(Option.map~f:EFSAuthorizationConfigIAM.of_xml)(Xml.childxml_arg0"iam")inletaccessPointId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"accessPointId")inmake?iam?accessPointId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letiam=field_mapjson__"iam"EFSAuthorizationConfigIAM.of_jsoninletaccessPointId=field_mapjson__"accessPointId"String_.of_jsoninmake?iam?accessPointId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The authorization configuration details for the Amazon EFS file system."]moduleEFSTransitEncryption=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration EFSTransitEncryption"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EFSTransitEncryption"j)letto_json=simple_to_jsonto_valueendmoduleQuantity=structtypenonrect=stringletcontext_="Quantity"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Quantity"jletto_json=simple_to_jsonto_valueendmoduleEnvironmentVariables=structtypenonrect=KeyValuePair.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyValuePair.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:KeyValuePair.of_xml)letof_jsonj=list_of_json~kind:"EnvironmentVariables"~of_json:KeyValuePair.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFirelensConfiguration=structtypenonrect={type_:FirelensConfigurationType.t[@ocaml.doc"The log router to use. The valid values are fluentd or fluentbit."];options:FirelensConfigurationOptionsMap.toption[@ocaml.doc"The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is \"options\":\\{\"enable-ecs-log-metadata\":\"true|false\",\"config-file-type:\"s3|file\",\"config-file-value\":\"arn:aws:s3:::mybucket/fluent.conf|filepath\"\\}. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide."]}letcontext_="FirelensConfiguration"letmake?options=fun~type_->fun()->{options;type_}letto_valuex=structure_to_value[("type",(Some(FirelensConfigurationType.to_valuex.type_)));("options",(Option.mapx.options~f:FirelensConfigurationOptionsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptions=(Option.map~f:FirelensConfigurationOptionsMap.of_xml)(Xml.childxml_arg0"options")inlettype_=FirelensConfigurationType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inmake?options~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptions=field_mapjson__"options"FirelensConfigurationOptionsMap.of_jsoninlettype_=field_map_exnjson__"type"FirelensConfigurationType.of_jsoninmake?options~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom log routing in the Amazon Elastic Container Service Developer Guide."]moduleLinuxParameters=structtypenonrect={devices:DevicesList.toption[@ocaml.doc"Any of the host devices to expose to the container. This parameter maps to Devices in the Create a container section of the Docker Remote API and the --device option to docker run. This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs."];initProcessEnabled:Boolean.toption[@ocaml.doc"If true, run an init process inside the container that forwards signals and reaps processes. This parameter maps to the --init option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\""];sharedMemorySize:Integer.toption[@ocaml.doc"The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the --shm-size option to docker run. This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs."];tmpfs:TmpfsList.toption[@ocaml.doc"The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the --tmpfs option to docker run. This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide this parameter for this resource type."];maxSwap:Integer.toption[@ocaml.doc"The total amount of swap memory (in MiB) a container can use. This parameter is translated to the --memory-swap option to docker run where the value is the sum of the container memory plus the maxSwap value. For more information, see --memory-swap details in the Docker documentation. If a maxSwap value of 0 is specified, the container doesn't use swap. Accepted values are 0 or any positive integer. If the maxSwap parameter is omitted, the container doesn't use the swap configuration for the container instance on which it runs. A maxSwap value must be set for the swappiness parameter to be used. This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs."];swappiness:Integer.toption[@ocaml.doc"You can use this parameter to tune a container's memory swappiness behavior. A swappiness value of 0 causes swapping to not occur unless absolutely necessary. A swappiness value of 100 causes pages to be swapped aggressively. Valid values are whole numbers between 0 and 100. If the swappiness parameter isn't specified, a default value of 60 is used. If a value isn't specified for maxSwap, then this parameter is ignored. If maxSwap is set to 0, the container doesn't use swap. This parameter maps to the --memory-swappiness option to docker run. Consider the following when you use a per-container swap configuration. Swap space must be enabled and allocated on the container instance for the containers to use. By default, the Amazon ECS optimized AMIs don't have swap enabled. You must enable swap on the instance to use this feature. For more information, see Instance store swap volumes in the Amazon EC2 User Guide for Linux Instances or How do I allocate memory to work as swap space in an Amazon EC2 instance by using a swap file? The swap space parameters are only supported for job definitions using EC2 resources. If the maxSwap and swappiness parameters are omitted from a job definition, each container has a default swappiness value of 60. Moreover, the total swap usage is limited to two times the memory reservation of the container. This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs."]}letmake?devices=fun?initProcessEnabled->fun?sharedMemorySize->fun?tmpfs->fun?maxSwap->fun?swappiness->fun()->{devices;initProcessEnabled;sharedMemorySize;tmpfs;maxSwap;swappiness}letto_valuex=structure_to_value[("devices",(Option.mapx.devices~f:DevicesList.to_value));("initProcessEnabled",(Option.mapx.initProcessEnabled~f:Boolean.to_value));("sharedMemorySize",(Option.mapx.sharedMemorySize~f:Integer.to_value));("tmpfs",(Option.mapx.tmpfs~f:TmpfsList.to_value));("maxSwap",(Option.mapx.maxSwap~f:Integer.to_value));("swappiness",(Option.mapx.swappiness~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letswappiness=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"swappiness")inletmaxSwap=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxSwap")inlettmpfs=(Option.map~f:TmpfsList.of_xml)(Xml.childxml_arg0"tmpfs")inletsharedMemorySize=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sharedMemorySize")inletinitProcessEnabled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"initProcessEnabled")inletdevices=(Option.map~f:DevicesList.of_xml)(Xml.childxml_arg0"devices")inmake?swappiness?maxSwap?tmpfs?sharedMemorySize?initProcessEnabled?devices()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letswappiness=field_mapjson__"swappiness"Integer.of_jsoninletmaxSwap=field_mapjson__"maxSwap"Integer.of_jsoninlettmpfs=field_mapjson__"tmpfs"TmpfsList.of_jsoninletsharedMemorySize=field_mapjson__"sharedMemorySize"Integer.of_jsoninletinitProcessEnabled=field_mapjson__"initProcessEnabled"Boolean.of_jsoninletdevices=field_mapjson__"devices"DevicesList.of_jsoninmake?swappiness?maxSwap?tmpfs?sharedMemorySize?initProcessEnabled?devices()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Linux-specific modifications that are applied to the container, such as details for device mappings."]moduleLogConfiguration=structtypenonrect={logDriver:LogDriver.t[@ocaml.doc"The log driver to use for the container. The valid values that are listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default. The supported log drivers are awsfirelens, awslogs, fluentd, gelf, json-file, journald, logentries, syslog, and splunk. Jobs that are running on Fargate resources are restricted to the awslogs and splunk log drivers. awsfirelens Specifies the firelens logging driver. For more information on configuring Firelens, see Send Amazon ECS logs to an Amazon Web Services service or Amazon Web Services Partner in the Amazon Elastic Container Service Developer Guide. awslogs Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs log driver in the Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation. fluentd Specifies the Fluentd logging driver. For more information including usage and options, see Fluentd logging driver in the Docker documentation. gelf Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see Graylog Extended Format logging driver in the Docker documentation. journald Specifies the journald logging driver. For more information including usage and options, see Journald logging driver in the Docker documentation. json-file Specifies the JSON file logging driver. For more information including usage and options, see JSON File logging driver in the Docker documentation. splunk Specifies the Splunk logging driver. For more information including usage and options, see Splunk logging driver in the Docker documentation. syslog Specifies the syslog logging driver. For more information including usage and options, see Syslog logging driver in the Docker documentation. If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you can fork the Amazon ECS container agent project that's available on GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this software. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\""];options:LogConfigurationOptionsMap.toption[@ocaml.doc"The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\""];secretOptions:SecretList.toption[@ocaml.doc"The secrets to pass to the log configuration. For more information, see Specifying sensitive data in the Batch User Guide."]}letcontext_="LogConfiguration"letmake?options=fun?secretOptions->fun~logDriver->fun()->{options;secretOptions;logDriver}letto_valuex=structure_to_value[("logDriver",(Some(LogDriver.to_valuex.logDriver)));("options",(Option.mapx.options~f:LogConfigurationOptionsMap.to_value));("secretOptions",(Option.mapx.secretOptions~f:SecretList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecretOptions=(Option.map~f:SecretList.of_xml)(Xml.childxml_arg0"secretOptions")inletoptions=(Option.map~f:LogConfigurationOptionsMap.of_xml)(Xml.childxml_arg0"options")inletlogDriver=LogDriver.of_xml(Xml.child_exn~context:context_xml_arg0"logDriver")inmake?secretOptions?options~logDriver()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecretOptions=field_mapjson__"secretOptions"SecretList.of_jsoninletoptions=field_mapjson__"options"LogConfigurationOptionsMap.of_jsoninletlogDriver=field_map_exnjson__"logDriver"LogDriver.of_jsoninmake?secretOptions?options~logDriver()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Log configuration options to send to a custom log driver for the container."]moduleMountPoints=structtypenonrect=MountPoint.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MountPoint.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:MountPoint.of_xml)letof_jsonj=list_of_json~kind:"MountPoints"~of_json:MountPoint.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRepositoryCredentials=structtypenonrect={credentialsParameter:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the secret containing the private repository credentials."]}letcontext_="RepositoryCredentials"letmake~credentialsParameter=fun()->{credentialsParameter}letto_valuex=structure_to_value[("credentialsParameter",(Some(String_.to_valuex.credentialsParameter)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcredentialsParameter=String_.of_xml(Xml.child_exn~context:context_xml_arg0"credentialsParameter")inmake~credentialsParameter()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcredentialsParameter=field_map_exnjson__"credentialsParameter"String_.of_jsoninmake~credentialsParameter()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The repository credentials for private registry authentication."]moduleResourceRequirements=structtypenonrect=ResourceRequirement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ResourceRequirement.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:ResourceRequirement.of_xml)letof_jsonj=list_of_json~kind:"ResourceRequirements"~of_json:ResourceRequirement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskContainerDependencyList=structtypenonrect=TaskContainerDependency.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskContainerDependency.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:TaskContainerDependency.of_xml)letof_jsonj=list_of_json~kind:"TaskContainerDependencyList"~of_json:TaskContainerDependency.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUlimits=structtypenonrect=Ulimit.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Ulimit.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:Ulimit.of_xml)letof_jsonj=list_of_json~kind:"Ulimits"~of_json:Ulimit.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEFSVolumeConfiguration=structtypenonrect={fileSystemId:String_.t[@ocaml.doc"The Amazon EFS file system ID to use."];rootDirectory:String_.toption[@ocaml.doc"The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume is used instead. Specifying / has the same effect as omitting this parameter. The maximum length is 4,096 characters. If an EFS access point is specified in the authorizationConfig, the root directory parameter must either be omitted or set to /, which enforces the path set on the Amazon EFS access point."];transitEncryption:EFSTransitEncryption.toption[@ocaml.doc"Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of DISABLED is used. For more information, see Encrypting data in transit in the Amazon Elastic File System User Guide."];transitEncryptionPort:Integer.toption[@ocaml.doc"The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535. For more information, see EFS mount helper in the Amazon Elastic File System User Guide."];authorizationConfig:EFSAuthorizationConfig.toption[@ocaml.doc"The authorization configuration details for the Amazon EFS file system."]}letcontext_="EFSVolumeConfiguration"letmake?rootDirectory=fun?transitEncryption->fun?transitEncryptionPort->fun?authorizationConfig->fun~fileSystemId->fun()->{rootDirectory;transitEncryption;transitEncryptionPort;authorizationConfig;fileSystemId}letto_valuex=structure_to_value[("fileSystemId",(Some(String_.to_valuex.fileSystemId)));("rootDirectory",(Option.mapx.rootDirectory~f:String_.to_value));("transitEncryption",(Option.mapx.transitEncryption~f:EFSTransitEncryption.to_value));("transitEncryptionPort",(Option.mapx.transitEncryptionPort~f:Integer.to_value));("authorizationConfig",(Option.mapx.authorizationConfig~f:EFSAuthorizationConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=(Option.map~f:EFSAuthorizationConfig.of_xml)(Xml.childxml_arg0"authorizationConfig")inlettransitEncryptionPort=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"transitEncryptionPort")inlettransitEncryption=(Option.map~f:EFSTransitEncryption.of_xml)(Xml.childxml_arg0"transitEncryption")inletrootDirectory=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"rootDirectory")inletfileSystemId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"fileSystemId")inmake?authorizationConfig?transitEncryptionPort?transitEncryption?rootDirectory~fileSystemId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_mapjson__"authorizationConfig"EFSAuthorizationConfig.of_jsoninlettransitEncryptionPort=field_mapjson__"transitEncryptionPort"Integer.of_jsoninlettransitEncryption=field_mapjson__"transitEncryption"EFSTransitEncryption.of_jsoninletrootDirectory=field_mapjson__"rootDirectory"String_.of_jsoninletfileSystemId=field_map_exnjson__"fileSystemId"String_.of_jsoninmake?authorizationConfig?transitEncryptionPort?transitEncryption?rootDirectory~fileSystemId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see Amazon EFS Volumes in the Batch User Guide."]moduleHost=structtypenonrect={sourcePath:String_.toption[@ocaml.doc"The path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location doesn't exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported. This parameter isn't applicable to jobs that run on Fargate resources. Don't provide this for these jobs."]}letmake?sourcePath=fun()->{sourcePath}letto_valuex=structure_to_value[("sourcePath",(Option.mapx.sourcePath~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsourcePath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"sourcePath")inmake?sourcePath()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsourcePath=field_mapjson__"sourcePath"String_.of_jsoninmake?sourcePath()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Determine whether your data volume persists on the host container instance and where it's stored. If this parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running."]moduleS3FilesVolumeConfiguration=structtypenonrect={fileSystemArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the S3Files file system to use."];rootDirectory:String_.toption[@ocaml.doc"The directory within the S3Files file system to mount as the root directory."];transitEncryptionPort:Integer.toption[@ocaml.doc"The port to use when sending encrypted data between the Amazon ECS host and the S3Files file system server."];accessPointArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the S3Files access point to use."]}letcontext_="S3FilesVolumeConfiguration"letmake?rootDirectory=fun?transitEncryptionPort->fun?accessPointArn->fun~fileSystemArn->fun()->{rootDirectory;transitEncryptionPort;accessPointArn;fileSystemArn}letto_valuex=structure_to_value[("fileSystemArn",(Some(String_.to_valuex.fileSystemArn)));("rootDirectory",(Option.mapx.rootDirectory~f:String_.to_value));("transitEncryptionPort",(Option.mapx.transitEncryptionPort~f:Integer.to_value));("accessPointArn",(Option.mapx.accessPointArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccessPointArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"accessPointArn")inlettransitEncryptionPort=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"transitEncryptionPort")inletrootDirectory=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"rootDirectory")inletfileSystemArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"fileSystemArn")inmake?accessPointArn?transitEncryptionPort?rootDirectory~fileSystemArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccessPointArn=field_mapjson__"accessPointArn"String_.of_jsoninlettransitEncryptionPort=field_mapjson__"transitEncryptionPort"Integer.of_jsoninletrootDirectory=field_mapjson__"rootDirectory"String_.of_jsoninletfileSystemArn=field_map_exnjson__"fileSystemArn"String_.of_jsoninmake?accessPointArn?transitEncryptionPort?rootDirectory~fileSystemArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is used when you're using an S3Files file system for job storage."]moduleEksContainerEnvironmentVariable=structtypenonrect={name:String_.t[@ocaml.doc"The name of the environment variable."];value:String_.toption[@ocaml.doc"The value of the environment variable."]}letcontext_="EksContainerEnvironmentVariable"letmake?value=fun~name->fun()->{value;name}letto_valuex=structure_to_value[("name",(Some(String_.to_valuex.name)));("value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_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_mapjson__"value"String_.of_jsoninletname=field_map_exnjson__"name"String_.of_jsoninmake?value~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An environment variable."]moduleEksLimits=structtypenonrect=(String_.t*Quantity.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(Quantity.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(Quantity.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:Quantity.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksRequests=structtypenonrect=(String_.t*Quantity.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(Quantity.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(Quantity.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:Quantity.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleEksContainerVolumeMount=structtypenonrect={name:String_.toption[@ocaml.doc"The name the volume mount. This must match the name of one of the volumes in the pod."];mountPath:String_.toption[@ocaml.doc"The path on the container where the volume is mounted."];subPath:String_.toption[@ocaml.doc"A sub-path inside the referenced volume instead of its root."];readOnly:Boolean.toption[@ocaml.doc"If this value is true, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is false."]}letmake?name=fun?mountPath->fun?subPath->fun?readOnly->fun()->{name;mountPath;subPath;readOnly}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("mountPath",(Option.mapx.mountPath~f:String_.to_value));("subPath",(Option.mapx.subPath~f:String_.to_value));("readOnly",(Option.mapx.readOnly~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreadOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readOnly")inletsubPath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"subPath")inletmountPath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"mountPath")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?readOnly?subPath?mountPath?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreadOnly=field_mapjson__"readOnly"Boolean.of_jsoninletsubPath=field_mapjson__"subPath"String_.of_jsoninletmountPath=field_mapjson__"mountPath"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?readOnly?subPath?mountPath?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The volume mounts for a container for an Amazon EKS job. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation."]moduleNetworkInterface=structtypenonrect={attachmentId:String_.toption[@ocaml.doc"The attachment ID for the network interface."];ipv6Address:String_.toption[@ocaml.doc"The private IPv6 address for the network interface."];privateIpv4Address:String_.toption[@ocaml.doc"The private IPv4 address for the network interface."]}letmake?attachmentId=fun?ipv6Address->fun?privateIpv4Address->fun()->{attachmentId;ipv6Address;privateIpv4Address}letto_valuex=structure_to_value[("attachmentId",(Option.mapx.attachmentId~f:String_.to_value));("ipv6Address",(Option.mapx.ipv6Address~f:String_.to_value));("privateIpv4Address",(Option.mapx.privateIpv4Address~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprivateIpv4Address=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"privateIpv4Address")inletipv6Address=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ipv6Address")inletattachmentId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"attachmentId")inmake?privateIpv4Address?ipv6Address?attachmentId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprivateIpv4Address=field_mapjson__"privateIpv4Address"String_.of_jsoninletipv6Address=field_mapjson__"ipv6Address"String_.of_jsoninletattachmentId=field_mapjson__"attachmentId"String_.of_jsoninmake?privateIpv4Address?ipv6Address?attachmentId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the elastic network interface for a multi-node parallel job node."]moduleTaskContainerProperties=structtypenonrect={command:StringList.toption[@ocaml.doc"The command that's passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see Dockerfile reference: CMD."];dependsOn:TaskContainerDependencyList.toption[@ocaml.doc"A list of containers that this container depends on."];environment:EnvironmentVariables.toption[@ocaml.doc"The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env parameter to docker run. We don't recommend using plaintext environment variables for sensitive information, such as credential data. Environment variables cannot start with AWS_BATCH. This naming convention is reserved for variables that Batch sets."];essential:Boolean.toption[@ocaml.doc"If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, its failure doesn't affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential. All jobs must have at least one essential container. If you have an application that's composed of multiple containers, group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see Application Architecture in the Amazon Elastic Container Service Developer Guide."];firelensConfiguration:FirelensConfiguration.toption[@ocaml.doc"The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom log routing in the Amazon Elastic Container Service Developer Guide."];image:String_.t[@ocaml.doc"The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image\\@digest. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of the docker run ."];linuxParameters:LinuxParameters.toption[@ocaml.doc"Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information, see KernelCapabilities."];logConfiguration:LogConfiguration.toption[@ocaml.doc"The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information about the options for different supported log drivers, see Configure logging drivers in the Docker documentation. Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '\\{\\{.Server.APIVersion\\}\\}' The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration in the Amazon Elastic Container Service Developer Guide."];mountPoints:MountPoints.toption[@ocaml.doc"The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run. Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives."];name:String_.toption[@ocaml.doc"The name of a container. The name can be used as a unique identifier to target your dependsOn and Overrides objects."];privileged:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run. This parameter is not supported for Windows containers or tasks run on Fargate."];readonlyRootFilesystem:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run. This parameter is not supported for Windows containers."];repositoryCredentials:RepositoryCredentials.toption[@ocaml.doc"The private repository authentication credentials to use."];resourceRequirements:ResourceRequirements.toption[@ocaml.doc"The type and amount of a resource to assign to a container. The only supported resource is a GPU."];secrets:SecretList.toption[@ocaml.doc"The secrets to pass to the container. For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide."];ulimits:Ulimits.toption[@ocaml.doc"A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 1024 and the default hard limit is 65535. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '\\{\\{.Server.APIVersion\\}\\}' This parameter is not supported for Windows containers."];user:String_.toption[@ocaml.doc"The user to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run. When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security. You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer. user user:group uid uid:gid user:gi uid:group This parameter is not supported for Windows containers."];startTimeout:Integer.toption[@ocaml.doc"Time duration (in seconds) to wait before giving up on resolving dependencies for a container. The minimum value is 2 seconds and the maximum value for Fargate is 120 seconds."];stopTimeout:Integer.toption[@ocaml.doc"Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. The minimum value is 2 seconds and the maximum value for Fargate is 120 seconds. If the parameter is not specified, the default value of 30 seconds is used. For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter nor the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default value of 30 seconds is used."]}letcontext_="TaskContainerProperties"letmake?command=fun?dependsOn->fun?environment->fun?essential->fun?firelensConfiguration->fun?linuxParameters->fun?logConfiguration->fun?mountPoints->fun?name->fun?privileged->fun?readonlyRootFilesystem->fun?repositoryCredentials->fun?resourceRequirements->fun?secrets->fun?ulimits->fun?user->fun?startTimeout->fun?stopTimeout->fun~image->fun()->{command;dependsOn;environment;essential;firelensConfiguration;linuxParameters;logConfiguration;mountPoints;name;privileged;readonlyRootFilesystem;repositoryCredentials;resourceRequirements;secrets;ulimits;user;startTimeout;stopTimeout;image}letto_valuex=structure_to_value[("command",(Option.mapx.command~f:StringList.to_value));("dependsOn",(Option.mapx.dependsOn~f:TaskContainerDependencyList.to_value));("environment",(Option.mapx.environment~f:EnvironmentVariables.to_value));("essential",(Option.mapx.essential~f:Boolean.to_value));("firelensConfiguration",(Option.mapx.firelensConfiguration~f:FirelensConfiguration.to_value));("image",(Some(String_.to_valuex.image)));("linuxParameters",(Option.mapx.linuxParameters~f:LinuxParameters.to_value));("logConfiguration",(Option.mapx.logConfiguration~f:LogConfiguration.to_value));("mountPoints",(Option.mapx.mountPoints~f:MountPoints.to_value));("name",(Option.mapx.name~f:String_.to_value));("privileged",(Option.mapx.privileged~f:Boolean.to_value));("readonlyRootFilesystem",(Option.mapx.readonlyRootFilesystem~f:Boolean.to_value));("repositoryCredentials",(Option.mapx.repositoryCredentials~f:RepositoryCredentials.to_value));("resourceRequirements",(Option.mapx.resourceRequirements~f:ResourceRequirements.to_value));("secrets",(Option.mapx.secrets~f:SecretList.to_value));("ulimits",(Option.mapx.ulimits~f:Ulimits.to_value));("user",(Option.mapx.user~f:String_.to_value));("startTimeout",(Option.mapx.startTimeout~f:Integer.to_value));("stopTimeout",(Option.mapx.stopTimeout~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstopTimeout=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"stopTimeout")inletstartTimeout=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"startTimeout")inletuser=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"user")inletulimits=(Option.map~f:Ulimits.of_xml)(Xml.childxml_arg0"ulimits")inletsecrets=(Option.map~f:SecretList.of_xml)(Xml.childxml_arg0"secrets")inletresourceRequirements=(Option.map~f:ResourceRequirements.of_xml)(Xml.childxml_arg0"resourceRequirements")inletrepositoryCredentials=(Option.map~f:RepositoryCredentials.of_xml)(Xml.childxml_arg0"repositoryCredentials")inletreadonlyRootFilesystem=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readonlyRootFilesystem")inletprivileged=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"privileged")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletmountPoints=(Option.map~f:MountPoints.of_xml)(Xml.childxml_arg0"mountPoints")inletlogConfiguration=(Option.map~f:LogConfiguration.of_xml)(Xml.childxml_arg0"logConfiguration")inletlinuxParameters=(Option.map~f:LinuxParameters.of_xml)(Xml.childxml_arg0"linuxParameters")inletimage=String_.of_xml(Xml.child_exn~context:context_xml_arg0"image")inletfirelensConfiguration=(Option.map~f:FirelensConfiguration.of_xml)(Xml.childxml_arg0"firelensConfiguration")inletessential=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"essential")inletenvironment=(Option.map~f:EnvironmentVariables.of_xml)(Xml.childxml_arg0"environment")inletdependsOn=(Option.map~f:TaskContainerDependencyList.of_xml)(Xml.childxml_arg0"dependsOn")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inmake?stopTimeout?startTimeout?user?ulimits?secrets?resourceRequirements?repositoryCredentials?readonlyRootFilesystem?privileged?name?mountPoints?logConfiguration?linuxParameters~image?firelensConfiguration?essential?environment?dependsOn?command()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstopTimeout=field_mapjson__"stopTimeout"Integer.of_jsoninletstartTimeout=field_mapjson__"startTimeout"Integer.of_jsoninletuser=field_mapjson__"user"String_.of_jsoninletulimits=field_mapjson__"ulimits"Ulimits.of_jsoninletsecrets=field_mapjson__"secrets"SecretList.of_jsoninletresourceRequirements=field_mapjson__"resourceRequirements"ResourceRequirements.of_jsoninletrepositoryCredentials=field_mapjson__"repositoryCredentials"RepositoryCredentials.of_jsoninletreadonlyRootFilesystem=field_mapjson__"readonlyRootFilesystem"Boolean.of_jsoninletprivileged=field_mapjson__"privileged"Boolean.of_jsoninletname=field_mapjson__"name"String_.of_jsoninletmountPoints=field_mapjson__"mountPoints"MountPoints.of_jsoninletlogConfiguration=field_mapjson__"logConfiguration"LogConfiguration.of_jsoninletlinuxParameters=field_mapjson__"linuxParameters"LinuxParameters.of_jsoninletimage=field_map_exnjson__"image"String_.of_jsoninletfirelensConfiguration=field_mapjson__"firelensConfiguration"FirelensConfiguration.of_jsoninletessential=field_mapjson__"essential"Boolean.of_jsoninletenvironment=field_mapjson__"environment"EnvironmentVariables.of_jsoninletdependsOn=field_mapjson__"dependsOn"TaskContainerDependencyList.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninmake?stopTimeout?startTimeout?user?ulimits?secrets?resourceRequirements?repositoryCredentials?readonlyRootFilesystem?privileged?name?mountPoints?logConfiguration?linuxParameters~image?firelensConfiguration?essential?environment?dependsOn?command()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Container properties are used for Amazon ECS-based job definitions. These properties to describe the container that's launched as part of a job."]moduleAssignPublicIp=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AssignPublicIp"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AssignPublicIp"j)letto_json=simple_to_jsonto_valueendmoduleVolume=structtypenonrect={host:Host.toption[@ocaml.doc"The contents of the host parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided."];name:String_.toption[@ocaml.doc"The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume parameter of container definition mountPoints."];efsVolumeConfiguration:EFSVolumeConfiguration.toption[@ocaml.doc"This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion of at least 1.4.0."];s3filesVolumeConfiguration:S3FilesVolumeConfiguration.toption[@ocaml.doc"This parameter is specified when you're using an S3Files file system for job storage."]}letmake?host=fun?name->fun?efsVolumeConfiguration->fun?s3filesVolumeConfiguration->fun()->{host;name;efsVolumeConfiguration;s3filesVolumeConfiguration}letto_valuex=structure_to_value[("host",(Option.mapx.host~f:Host.to_value));("name",(Option.mapx.name~f:String_.to_value));("efsVolumeConfiguration",(Option.mapx.efsVolumeConfiguration~f:EFSVolumeConfiguration.to_value));("s3filesVolumeConfiguration",(Option.mapx.s3filesVolumeConfiguration~f:S3FilesVolumeConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lets3filesVolumeConfiguration=(Option.map~f:S3FilesVolumeConfiguration.of_xml)(Xml.childxml_arg0"s3filesVolumeConfiguration")inletefsVolumeConfiguration=(Option.map~f:EFSVolumeConfiguration.of_xml)(Xml.childxml_arg0"efsVolumeConfiguration")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inlethost=(Option.map~f:Host.of_xml)(Xml.childxml_arg0"host")inmake?s3filesVolumeConfiguration?efsVolumeConfiguration?name?host()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lets3filesVolumeConfiguration=field_mapjson__"s3filesVolumeConfiguration"S3FilesVolumeConfiguration.of_jsoninletefsVolumeConfiguration=field_mapjson__"efsVolumeConfiguration"EFSVolumeConfiguration.of_jsoninletname=field_mapjson__"name"String_.of_jsoninlethost=field_mapjson__"host"Host.of_jsoninmake?s3filesVolumeConfiguration?efsVolumeConfiguration?name?host()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A data volume that's used in a job's container properties."]moduleEksContainerEnvironmentVariables=structtypenonrect=EksContainerEnvironmentVariable.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksContainerEnvironmentVariable.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:EksContainerEnvironmentVariable.of_xml)letof_jsonj=list_of_json~kind:"EksContainerEnvironmentVariables"~of_json:EksContainerEnvironmentVariable.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksContainerResourceRequirements=structtypenonrect={limits:EksLimits.toption[@ocaml.doc"The type and quantity of the resources to reserve for the container. The values vary based on the name that's specified. Resources can be requested using either the limits or the requests objects. memory The memory hard limit (in MiB) for the container, using whole integers, with a \"Mi\" suffix. If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job. memory can be specified in limits, requests, or both. If memory is specified in both places, then the value that's specified in limits must be equal to the value that's specified in requests. To maximize your resource utilization, provide your jobs with as much memory as possible for the specific instance type that you are using. To learn how, see Memory management in the Batch User Guide. cpu The number of CPUs that's reserved for the container. Values must be an even multiple of 0.25. cpu can be specified in limits, requests, or both. If cpu is specified in both places, then the value that's specified in limits must be at least as large as the value that's specified in requests. nvidia.com/gpu The number of GPUs that's reserved for the container. Values must be a whole integer. memory can be specified in limits, requests, or both. If memory is specified in both places, then the value that's specified in limits must be equal to the value that's specified in requests."];requests:EksRequests.toption[@ocaml.doc"The type and quantity of the resources to request for the container. The values vary based on the name that's specified. Resources can be requested by using either the limits or the requests objects. memory The memory hard limit (in MiB) for the container, using whole integers, with a \"Mi\" suffix. If your container attempts to exceed the memory specified, the container is terminated. You must specify at least 4 MiB of memory for a job. memory can be specified in limits, requests, or both. If memory is specified in both, then the value that's specified in limits must be equal to the value that's specified in requests. If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory management in the Batch User Guide. cpu The number of CPUs that are reserved for the container. Values must be an even multiple of 0.25. cpu can be specified in limits, requests, or both. If cpu is specified in both, then the value that's specified in limits must be at least as large as the value that's specified in requests. nvidia.com/gpu The number of GPUs that are reserved for the container. Values must be a whole integer. nvidia.com/gpu can be specified in limits, requests, or both. If nvidia.com/gpu is specified in both, then the value that's specified in limits must be equal to the value that's specified in requests."]}letmake?limits=fun?requests->fun()->{limits;requests}letto_valuex=structure_to_value[("limits",(Option.mapx.limits~f:EksLimits.to_value));("requests",(Option.mapx.requests~f:EksRequests.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrequests=(Option.map~f:EksRequests.of_xml)(Xml.childxml_arg0"requests")inletlimits=(Option.map~f:EksLimits.of_xml)(Xml.childxml_arg0"limits")inmake?requests?limits()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrequests=field_mapjson__"requests"EksRequests.of_jsoninletlimits=field_mapjson__"limits"EksLimits.of_jsoninmake?requests?limits()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The type and amount of resources to assign to a container. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation."]moduleEksContainerSecurityContext=structtypenonrect={runAsUser:Long.toption[@ocaml.doc"When this parameter is specified, the container is run as the specified user ID (uid). If this parameter isn't specified, the default is the user that's specified in the image metadata. This parameter maps to RunAsUser and MustRanAs policy in the Users and groups pod security policies in the Kubernetes documentation."];runAsGroup:Long.toption[@ocaml.doc"When this parameter is specified, the container is run as the specified group ID (gid). If this parameter isn't specified, the default is the group that's specified in the image metadata. This parameter maps to RunAsGroup and MustRunAs policy in the Users and groups pod security policies in the Kubernetes documentation."];privileged:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given elevated permissions on the host container instance. The level of permissions are similar to the root user permissions. The default value is false. This parameter maps to privileged policy in the Privileged pod security policies in the Kubernetes documentation."];allowPrivilegeEscalation:Boolean.toption[@ocaml.doc"Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process. The default value is false."];readOnlyRootFilesystem:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given read-only access to its root file system. The default value is false. This parameter maps to ReadOnlyRootFilesystem policy in the Volumes and file systems pod security policies in the Kubernetes documentation."];runAsNonRoot:Boolean.toption[@ocaml.doc"When this parameter is specified, the container is run as a user with a uid other than 0. If this parameter isn't specified, so such rule is enforced. This parameter maps to RunAsUser and MustRunAsNonRoot policy in the Users and groups pod security policies in the Kubernetes documentation."]}letmake?runAsUser=fun?runAsGroup->fun?privileged->fun?allowPrivilegeEscalation->fun?readOnlyRootFilesystem->fun?runAsNonRoot->fun()->{runAsUser;runAsGroup;privileged;allowPrivilegeEscalation;readOnlyRootFilesystem;runAsNonRoot}letto_valuex=structure_to_value[("runAsUser",(Option.mapx.runAsUser~f:Long.to_value));("runAsGroup",(Option.mapx.runAsGroup~f:Long.to_value));("privileged",(Option.mapx.privileged~f:Boolean.to_value));("allowPrivilegeEscalation",(Option.mapx.allowPrivilegeEscalation~f:Boolean.to_value));("readOnlyRootFilesystem",(Option.mapx.readOnlyRootFilesystem~f:Boolean.to_value));("runAsNonRoot",(Option.mapx.runAsNonRoot~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrunAsNonRoot=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"runAsNonRoot")inletreadOnlyRootFilesystem=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readOnlyRootFilesystem")inletallowPrivilegeEscalation=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"allowPrivilegeEscalation")inletprivileged=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"privileged")inletrunAsGroup=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"runAsGroup")inletrunAsUser=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"runAsUser")inmake?runAsNonRoot?readOnlyRootFilesystem?allowPrivilegeEscalation?privileged?runAsGroup?runAsUser()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrunAsNonRoot=field_mapjson__"runAsNonRoot"Boolean.of_jsoninletreadOnlyRootFilesystem=field_mapjson__"readOnlyRootFilesystem"Boolean.of_jsoninletallowPrivilegeEscalation=field_mapjson__"allowPrivilegeEscalation"Boolean.of_jsoninletprivileged=field_mapjson__"privileged"Boolean.of_jsoninletrunAsGroup=field_mapjson__"runAsGroup"Long.of_jsoninletrunAsUser=field_mapjson__"runAsUser"Long.of_jsoninmake?runAsNonRoot?readOnlyRootFilesystem?allowPrivilegeEscalation?privileged?runAsGroup?runAsUser()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation."]moduleEksContainerVolumeMounts=structtypenonrect=EksContainerVolumeMount.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksContainerVolumeMount.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:EksContainerVolumeMount.of_xml)letof_jsonj=list_of_json~kind:"EksContainerVolumeMounts"~of_json:EksContainerVolumeMount.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksEmptyDir=structtypenonrect={medium:String_.toption[@ocaml.doc"The medium to store the volume. The default value is an empty string, which uses the storage of the node. \"\" (Default) Use the disk storage of the node. \"Memory\" Use the tmpfs volume that's backed by the RAM of the node. Contents of the volume are lost when the node reboots, and any storage on the volume counts against the container's memory limit."];sizeLimit:Quantity.toption[@ocaml.doc"The maximum size of the volume. By default, there's no maximum size defined."]}letmake?medium=fun?sizeLimit->fun()->{medium;sizeLimit}letto_valuex=structure_to_value[("medium",(Option.mapx.medium~f:String_.to_value));("sizeLimit",(Option.mapx.sizeLimit~f:Quantity.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsizeLimit=(Option.map~f:Quantity.of_xml)(Xml.childxml_arg0"sizeLimit")inletmedium=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"medium")inmake?sizeLimit?medium()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsizeLimit=field_mapjson__"sizeLimit"Quantity.of_jsoninletmedium=field_mapjson__"medium"String_.of_jsoninmake?sizeLimit?medium()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the configuration of a Kubernetes emptyDir volume. An emptyDir volume is first created when a pod is assigned to a node. It exists as long as that pod is running on that node. The emptyDir volume is initially empty. All containers in the pod can read and write the files in the emptyDir volume. However, the emptyDir volume can be mounted at the same or different paths in each container. When a pod is removed from a node for any reason, the data in the emptyDir is deleted permanently. For more information, see emptyDir in the Kubernetes documentation."]moduleEksHostPath=structtypenonrect={path:String_.toption[@ocaml.doc"The path of the file or directory on the host to mount into containers on the pod."]}letmake?path=fun()->{path}letto_valuex=structure_to_value[("path",(Option.mapx.path~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"path")inmake?path()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpath=field_mapjson__"path"String_.of_jsoninmake?path()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the configuration of a Kubernetes hostPath volume. A hostPath volume mounts an existing file or directory from the host node's filesystem into your pod. For more information, see hostPath in the Kubernetes documentation."]moduleEksPersistentVolumeClaim=structtypenonrect={claimName:String_.t[@ocaml.doc"The name of the persistentVolumeClaim bounded to a persistentVolume. For more information, see Persistent Volume Claims in the Kubernetes documentation."];readOnly:Boolean.toption[@ocaml.doc"An optional boolean value indicating if the mount is read only. Default is false. For more information, see Read Only Mounts in the Kubernetes documentation."]}letcontext_="EksPersistentVolumeClaim"letmake?readOnly=fun~claimName->fun()->{readOnly;claimName}letto_valuex=structure_to_value[("claimName",(Some(String_.to_valuex.claimName)));("readOnly",(Option.mapx.readOnly~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreadOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readOnly")inletclaimName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"claimName")inmake?readOnly~claimName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreadOnly=field_mapjson__"readOnly"Boolean.of_jsoninletclaimName=field_map_exnjson__"claimName"String_.of_jsoninmake?readOnly~claimName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A persistentVolumeClaim volume is used to mount a PersistentVolume into a Pod. PersistentVolumeClaims are a way for users to \"claim\" durable storage without knowing the details of the particular cloud environment. See the information about PersistentVolumes in the Kubernetes documentation."]moduleEksSecret=structtypenonrect={secretName:String_.t[@ocaml.doc"The name of the secret. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation."];optional:Boolean.toption[@ocaml.doc"Specifies whether the secret or the secret's keys must be defined."]}letcontext_="EksSecret"letmake?optional=fun~secretName->fun()->{optional;secretName}letto_valuex=structure_to_value[("secretName",(Some(String_.to_valuex.secretName)));("optional",(Option.mapx.optional~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoptional=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"optional")inletsecretName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"secretName")inmake?optional~secretName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoptional=field_mapjson__"optional"Boolean.of_jsoninletsecretName=field_map_exnjson__"secretName"String_.of_jsoninmake?optional~secretName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the configuration of a Kubernetes secret volume. For more information, see secret in the Kubernetes documentation."]moduleNetworkInterfaceList=structtypenonrect=NetworkInterface.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NetworkInterface.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:NetworkInterface.of_xml)letof_jsonj=list_of_json~kind:"NetworkInterfaceList"~of_json:NetworkInterface.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEphemeralStorage=structtypenonrect={sizeInGiB:Integer.t[@ocaml.doc"The total amount, in GiB, of ephemeral storage to set for the task. The minimum supported value is 21 GiB and the maximum supported value is 200 GiB."]}letcontext_="EphemeralStorage"letmake~sizeInGiB=fun()->{sizeInGiB}letto_valuex=structure_to_value[("sizeInGiB",(Some(Integer.to_valuex.sizeInGiB)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsizeInGiB=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"sizeInGiB")inmake~sizeInGiB()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsizeInGiB=field_map_exnjson__"sizeInGiB"Integer.of_jsoninmake~sizeInGiB()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate."]moduleListTaskContainerProperties=structtypenonrect=TaskContainerProperties.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskContainerProperties.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:TaskContainerProperties.of_xml)letof_jsonj=list_of_json~kind:"ListTaskContainerProperties"~of_json:TaskContainerProperties.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNetworkConfiguration=structtypenonrect={assignPublicIp:AssignPublicIp.toption[@ocaml.doc"Indicates whether the job has a public IP address. For a job that's running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking in the Amazon Elastic Container Service Developer Guide. The default value is \"DISABLED\"."]}letmake?assignPublicIp=fun()->{assignPublicIp}letto_valuex=structure_to_value[("assignPublicIp",(Option.mapx.assignPublicIp~f:AssignPublicIp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassignPublicIp=(Option.map~f:AssignPublicIp.of_xml)(Xml.childxml_arg0"assignPublicIp")inmake?assignPublicIp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassignPublicIp=field_mapjson__"assignPublicIp"AssignPublicIp.of_jsoninmake?assignPublicIp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."]moduleRuntimePlatform=structtypenonrect={operatingSystemFamily:String_.toption[@ocaml.doc"The operating system for the compute environment. Valid values are: LINUX (default), WINDOWS_SERVER_2019_CORE, WINDOWS_SERVER_2019_FULL, WINDOWS_SERVER_2022_CORE, and WINDOWS_SERVER_2022_FULL. The following parameters can\226\128\153t be set for Windows containers: linuxParameters, privileged, user, ulimits, readonlyRootFilesystem, and efsVolumeConfiguration. The Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is LINUX, the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE and FARGATE_SPOT compute environments to the same job queue."];cpuArchitecture:String_.toption[@ocaml.doc"The vCPU architecture. The default value is X86_64. Valid values are X86_64 and ARM64. This parameter must be set to X86_64 for Windows containers. Fargate Spot is not supported on Windows-based containers on Fargate. A job queue will be blocked if a Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both FARGATE and FARGATE_SPOT compute environments to the same job queue."]}letmake?operatingSystemFamily=fun?cpuArchitecture->fun()->{operatingSystemFamily;cpuArchitecture}letto_valuex=structure_to_value[("operatingSystemFamily",(Option.mapx.operatingSystemFamily~f:String_.to_value));("cpuArchitecture",(Option.mapx.cpuArchitecture~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcpuArchitecture=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"cpuArchitecture")inletoperatingSystemFamily=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"operatingSystemFamily")inmake?cpuArchitecture?operatingSystemFamily()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcpuArchitecture=field_mapjson__"cpuArchitecture"String_.of_jsoninletoperatingSystemFamily=field_mapjson__"operatingSystemFamily"String_.of_jsoninmake?cpuArchitecture?operatingSystemFamily()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the compute environment architecture for Batch jobs on Fargate."]moduleVolumes=structtypenonrect=Volume.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Volume.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:Volume.of_xml)letof_jsonj=list_of_json~kind:"Volumes"~of_json:Volume.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksContainer=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the container. If the name isn't specified, the default name \"Default\" is used. Each container in a pod must have a unique name."];image:String_.t[@ocaml.doc"The Docker image used to start the container."];imagePullPolicy:String_.toption[@ocaml.doc"The image pull policy for the container. Supported values are Always, IfNotPresent, and Never. This parameter defaults to IfNotPresent. However, if the :latest tag is specified, it defaults to Always. For more information, see Updating images in the Kubernetes documentation."];command:StringList.toption[@ocaml.doc"The entrypoint for the container. This isn't run within a shell. If this isn't specified, the ENTRYPOINT of the container image is used. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to \"$(NAME1)\" and the NAME1 environment variable doesn't exist, the command string will remain \"$(NAME1).\" $$ is replaced with $ and the resulting string isn't expanded. For example, $$(VAR_NAME) will be passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. The entrypoint can't be updated. For more information, see ENTRYPOINT in the Dockerfile reference and Define a command and arguments for a container and Entrypoint in the Kubernetes documentation."];args:StringList.toption[@ocaml.doc"An array of arguments to the entrypoint. If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to \"$(NAME1)\" and the NAME1 environment variable doesn't exist, the command string will remain \"$(NAME1).\" $$ is replaced with $, and the resulting string isn't expanded. For example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation."];env:EksContainerEnvironmentVariables.toption[@ocaml.doc"The environment variables to pass to a container. Environment variables cannot start with \"AWS_BATCH\". This naming convention is reserved for variables that Batch sets."];resources:EksContainerResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation."];volumeMounts:EksContainerVolumeMounts.toption[@ocaml.doc"The volume mounts for the container. Batch supports emptyDir, hostPath, and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation."];securityContext:EksContainerSecurityContext.toption[@ocaml.doc"The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation."]}letcontext_="EksContainer"letmake?name=fun?imagePullPolicy->fun?command->fun?args->fun?env->fun?resources->fun?volumeMounts->fun?securityContext->fun~image->fun()->{name;imagePullPolicy;command;args;env;resources;volumeMounts;securityContext;image}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("image",(Some(String_.to_valuex.image)));("imagePullPolicy",(Option.mapx.imagePullPolicy~f:String_.to_value));("command",(Option.mapx.command~f:StringList.to_value));("args",(Option.mapx.args~f:StringList.to_value));("env",(Option.mapx.env~f:EksContainerEnvironmentVariables.to_value));("resources",(Option.mapx.resources~f:EksContainerResourceRequirements.to_value));("volumeMounts",(Option.mapx.volumeMounts~f:EksContainerVolumeMounts.to_value));("securityContext",(Option.mapx.securityContext~f:EksContainerSecurityContext.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityContext=(Option.map~f:EksContainerSecurityContext.of_xml)(Xml.childxml_arg0"securityContext")inletvolumeMounts=(Option.map~f:EksContainerVolumeMounts.of_xml)(Xml.childxml_arg0"volumeMounts")inletresources=(Option.map~f:EksContainerResourceRequirements.of_xml)(Xml.childxml_arg0"resources")inletenv=(Option.map~f:EksContainerEnvironmentVariables.of_xml)(Xml.childxml_arg0"env")inletargs=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"args")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inletimagePullPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"imagePullPolicy")inletimage=String_.of_xml(Xml.child_exn~context:context_xml_arg0"image")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?securityContext?volumeMounts?resources?env?args?command?imagePullPolicy~image?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityContext=field_mapjson__"securityContext"EksContainerSecurityContext.of_jsoninletvolumeMounts=field_mapjson__"volumeMounts"EksContainerVolumeMounts.of_jsoninletresources=field_mapjson__"resources"EksContainerResourceRequirements.of_jsoninletenv=field_mapjson__"env"EksContainerEnvironmentVariables.of_jsoninletargs=field_mapjson__"args"StringList.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninletimagePullPolicy=field_mapjson__"imagePullPolicy"String_.of_jsoninletimage=field_map_exnjson__"image"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?securityContext?volumeMounts?resources?env?args?command?imagePullPolicy~image?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"EKS container properties are used in job definitions for Amazon EKS based job definitions to describe the properties for a container node in the pod that's launched as part of a job. This can't be specified for Amazon ECS based job definitions."]moduleEksAnnotationsMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksLabelsMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksVolume=structtypenonrect={name:String_.t[@ocaml.doc"The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see DNS subdomain names in the Kubernetes documentation."];hostPath:EksHostPath.toption[@ocaml.doc"Specifies the configuration of a Kubernetes hostPath volume. For more information, see hostPath in the Kubernetes documentation."];emptyDir:EksEmptyDir.toption[@ocaml.doc"Specifies the configuration of a Kubernetes emptyDir volume. For more information, see emptyDir in the Kubernetes documentation."];secret:EksSecret.toption[@ocaml.doc"Specifies the configuration of a Kubernetes secret volume. For more information, see secret in the Kubernetes documentation."];persistentVolumeClaim:EksPersistentVolumeClaim.toption[@ocaml.doc"Specifies the configuration of a Kubernetes persistentVolumeClaim bounded to a persistentVolume. For more information, see Persistent Volume Claims in the Kubernetes documentation."]}letcontext_="EksVolume"letmake?hostPath=fun?emptyDir->fun?secret->fun?persistentVolumeClaim->fun~name->fun()->{hostPath;emptyDir;secret;persistentVolumeClaim;name}letto_valuex=structure_to_value[("name",(Some(String_.to_valuex.name)));("hostPath",(Option.mapx.hostPath~f:EksHostPath.to_value));("emptyDir",(Option.mapx.emptyDir~f:EksEmptyDir.to_value));("secret",(Option.mapx.secret~f:EksSecret.to_value));("persistentVolumeClaim",(Option.mapx.persistentVolumeClaim~f:EksPersistentVolumeClaim.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpersistentVolumeClaim=(Option.map~f:EksPersistentVolumeClaim.of_xml)(Xml.childxml_arg0"persistentVolumeClaim")inletsecret=(Option.map~f:EksSecret.of_xml)(Xml.childxml_arg0"secret")inletemptyDir=(Option.map~f:EksEmptyDir.of_xml)(Xml.childxml_arg0"emptyDir")inlethostPath=(Option.map~f:EksHostPath.of_xml)(Xml.childxml_arg0"hostPath")inletname=String_.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?persistentVolumeClaim?secret?emptyDir?hostPath~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpersistentVolumeClaim=field_mapjson__"persistentVolumeClaim"EksPersistentVolumeClaim.of_jsoninletsecret=field_mapjson__"secret"EksSecret.of_jsoninletemptyDir=field_mapjson__"emptyDir"EksEmptyDir.of_jsoninlethostPath=field_mapjson__"hostPath"EksHostPath.of_jsoninletname=field_map_exnjson__"name"String_.of_jsoninmake?persistentVolumeClaim?secret?emptyDir?hostPath~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies an Amazon EKS volume for a job definition."]moduleImagePullSecret=structtypenonrect={name:String_.t[@ocaml.doc"Provides a unique identifier for the ImagePullSecret. This object is required when EksPodProperties$imagePullSecrets is used."]}letcontext_="ImagePullSecret"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(String_.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=String_.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"String_.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"References a Kubernetes secret resource. This name of the secret must start and end with an alphanumeric character, is required to be lowercase, can include periods (.) and hyphens (-), and can't contain more than 253 characters."]moduleTaskContainerOverrides=structtypenonrect={command:StringList.toption[@ocaml.doc"The command to send to the container that overrides the default command from the Docker image or the job definition. This parameter can't contain an empty string."];environment:EnvironmentVariables.toption[@ocaml.doc"The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition. Environment variables cannot start with AWS_BATCH. This naming convention is reserved for variables that Batch sets."];name:String_.toption[@ocaml.doc"A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used."];resourceRequirements:ResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU, MEMORY, and VCPU."]}letmake?command=fun?environment->fun?name->fun?resourceRequirements->fun()->{command;environment;name;resourceRequirements}letto_valuex=structure_to_value[("command",(Option.mapx.command~f:StringList.to_value));("environment",(Option.mapx.environment~f:EnvironmentVariables.to_value));("name",(Option.mapx.name~f:String_.to_value));("resourceRequirements",(Option.mapx.resourceRequirements~f:ResourceRequirements.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceRequirements=(Option.map~f:ResourceRequirements.of_xml)(Xml.childxml_arg0"resourceRequirements")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletenvironment=(Option.map~f:EnvironmentVariables.of_xml)(Xml.childxml_arg0"environment")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inmake?resourceRequirements?name?environment?command()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceRequirements=field_mapjson__"resourceRequirements"ResourceRequirements.of_jsoninletname=field_mapjson__"name"String_.of_jsoninletenvironment=field_mapjson__"environment"EnvironmentVariables.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninmake?resourceRequirements?name?environment?command()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The overrides that should be sent to a container. For information about using Batch overrides when you connect event sources to targets, see BatchContainerOverrides."]moduleAttemptTaskContainerDetails=structtypenonrect={exitCode:Integer.toption[@ocaml.doc"The exit code for the container\226\128\153s attempt. A non-zero exit code is considered failed."];name:String_.toption[@ocaml.doc"The name of a container."];reason:String_.toption[@ocaml.doc"A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container."];logStreamName:String_.toption[@ocaml.doc"The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status."];networkInterfaces:NetworkInterfaceList.toption[@ocaml.doc"The network interfaces that are associated with the job attempt."]}letmake?exitCode=fun?name->fun?reason->fun?logStreamName->fun?networkInterfaces->fun()->{exitCode;name;reason;logStreamName;networkInterfaces}letto_valuex=structure_to_value[("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("name",(Option.mapx.name~f:String_.to_value));("reason",(Option.mapx.reason~f:String_.to_value));("logStreamName",(Option.mapx.logStreamName~f:String_.to_value));("networkInterfaces",(Option.mapx.networkInterfaces~f:NetworkInterfaceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnetworkInterfaces=(Option.map~f:NetworkInterfaceList.of_xml)(Xml.childxml_arg0"networkInterfaces")inletlogStreamName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"logStreamName")inletreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inmake?networkInterfaces?logStreamName?reason?name?exitCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnetworkInterfaces=field_mapjson__"networkInterfaces"NetworkInterfaceList.of_jsoninletlogStreamName=field_mapjson__"logStreamName"String_.of_jsoninletreason=field_mapjson__"reason"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninmake?networkInterfaces?logStreamName?reason?name?exitCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a container that's part of a job attempt."]moduleConsumableResourceRequirement=structtypenonrect={consumableResource:String_.toption[@ocaml.doc"The name or ARN of the consumable resource."];quantity:Long.toption[@ocaml.doc"The quantity of the consumable resource that is needed."]}letmake?consumableResource=fun?quantity->fun()->{consumableResource;quantity}letto_valuex=structure_to_value[("consumableResource",(Option.mapx.consumableResource~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"quantity")inletconsumableResource=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResource")inmake?quantity?consumableResource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Long.of_jsoninletconsumableResource=field_mapjson__"consumableResource"String_.of_jsoninmake?quantity?consumableResource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about a consumable resource required to run a job."]moduleEcsTaskProperties=structtypenonrect={containers:ListTaskContainerProperties.t[@ocaml.doc"This object is a list of containers."];ephemeralStorage:EphemeralStorage.toption[@ocaml.doc"The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate."];executionRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see Batch execution IAM role in the Batch User Guide."];platformVersion:String_.toption[@ocaml.doc"The Fargate platform version where the jobs are running. A platform version is specified only for jobs that are running on Fargate resources. If one isn't specified, the LATEST platform version is used by default. This uses a recent, approved version of the Fargate platform for compute resources. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide."];ipcMode:String_.toption[@ocaml.doc"The IPC resource namespace to use for the containers in the task. The valid values are host, task, or none. If host is specified, all containers within the tasks that specified the host IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same IPC resources. If none is specified, the IPC resources within the containers of a task are private, and are not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see IPC settings in the Docker run reference."];taskRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) that's associated with the Amazon ECS task. This is object is comparable to ContainerProperties:jobRoleArn."];pidMode:String_.toption[@ocaml.doc"The process namespace to use for the containers in the task. The valid values are host or task. For example, monitoring sidecars might need pidMode to access information about other containers running in the same task. If host is specified, all containers within the tasks that specified the host PID mode on the same container instance share the process namespace with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same process namespace. If no value is specified, the default is a private namespace for each container. For more information, see PID settings in the Docker run reference."];networkConfiguration:NetworkConfiguration.toption[@ocaml.doc"The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."];runtimePlatform:RuntimePlatform.toption[@ocaml.doc"An object that represents the compute environment architecture for Batch jobs on Fargate."];volumes:Volumes.toption[@ocaml.doc"A list of volumes that are associated with the job."];enableExecuteCommand:Boolean.toption[@ocaml.doc"Determines whether execute command functionality is turned on for this task. If true, execute command functionality is turned on all the containers in the task."]}letcontext_="EcsTaskProperties"letmake?ephemeralStorage=fun?executionRoleArn->fun?platformVersion->fun?ipcMode->fun?taskRoleArn->fun?pidMode->fun?networkConfiguration->fun?runtimePlatform->fun?volumes->fun?enableExecuteCommand->fun~containers->fun()->{ephemeralStorage;executionRoleArn;platformVersion;ipcMode;taskRoleArn;pidMode;networkConfiguration;runtimePlatform;volumes;enableExecuteCommand;containers}letto_valuex=structure_to_value[("containers",(Some(ListTaskContainerProperties.to_valuex.containers)));("ephemeralStorage",(Option.mapx.ephemeralStorage~f:EphemeralStorage.to_value));("executionRoleArn",(Option.mapx.executionRoleArn~f:String_.to_value));("platformVersion",(Option.mapx.platformVersion~f:String_.to_value));("ipcMode",(Option.mapx.ipcMode~f:String_.to_value));("taskRoleArn",(Option.mapx.taskRoleArn~f:String_.to_value));("pidMode",(Option.mapx.pidMode~f:String_.to_value));("networkConfiguration",(Option.mapx.networkConfiguration~f:NetworkConfiguration.to_value));("runtimePlatform",(Option.mapx.runtimePlatform~f:RuntimePlatform.to_value));("volumes",(Option.mapx.volumes~f:Volumes.to_value));("enableExecuteCommand",(Option.mapx.enableExecuteCommand~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenableExecuteCommand=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"enableExecuteCommand")inletvolumes=(Option.map~f:Volumes.of_xml)(Xml.childxml_arg0"volumes")inletruntimePlatform=(Option.map~f:RuntimePlatform.of_xml)(Xml.childxml_arg0"runtimePlatform")inletnetworkConfiguration=(Option.map~f:NetworkConfiguration.of_xml)(Xml.childxml_arg0"networkConfiguration")inletpidMode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"pidMode")inlettaskRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskRoleArn")inletipcMode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ipcMode")inletplatformVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"platformVersion")inletexecutionRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionRoleArn")inletephemeralStorage=(Option.map~f:EphemeralStorage.of_xml)(Xml.childxml_arg0"ephemeralStorage")inletcontainers=ListTaskContainerProperties.of_xml(Xml.child_exn~context:context_xml_arg0"containers")inmake?enableExecuteCommand?volumes?runtimePlatform?networkConfiguration?pidMode?taskRoleArn?ipcMode?platformVersion?executionRoleArn?ephemeralStorage~containers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenableExecuteCommand=field_mapjson__"enableExecuteCommand"Boolean.of_jsoninletvolumes=field_mapjson__"volumes"Volumes.of_jsoninletruntimePlatform=field_mapjson__"runtimePlatform"RuntimePlatform.of_jsoninletnetworkConfiguration=field_mapjson__"networkConfiguration"NetworkConfiguration.of_jsoninletpidMode=field_mapjson__"pidMode"String_.of_jsoninlettaskRoleArn=field_mapjson__"taskRoleArn"String_.of_jsoninletipcMode=field_mapjson__"ipcMode"String_.of_jsoninletplatformVersion=field_mapjson__"platformVersion"String_.of_jsoninletexecutionRoleArn=field_mapjson__"executionRoleArn"String_.of_jsoninletephemeralStorage=field_mapjson__"ephemeralStorage"EphemeralStorage.of_jsoninletcontainers=field_map_exnjson__"containers"ListTaskContainerProperties.of_jsoninmake?enableExecuteCommand?volumes?runtimePlatform?networkConfiguration?pidMode?taskRoleArn?ipcMode?platformVersion?executionRoleArn?ephemeralStorage~containers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The properties for a task definition that describes the container and volume definitions of an Amazon ECS task. You can specify which Docker images to use, the required resources, and other configurations related to launching the task definition through an Amazon ECS service or task."]moduleEksContainers=structtypenonrect=EksContainer.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksContainer.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:EksContainer.of_xml)letof_jsonj=list_of_json~kind:"EksContainers"~of_json:EksContainer.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksMetadata=structtypenonrect={labels:EksLabelsMap.toption[@ocaml.doc"Key-value pairs used to identify, sort, and organize cube resources. Can contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_). Labels can be added or modified at any time. Each resource can have multiple labels, but each key must be unique for a given object."];annotations:EksAnnotationsMap.toption[@ocaml.doc"Key-value pairs used to attach arbitrary, non-identifying metadata to Kubernetes objects. Valid annotation keys have two segments: an optional prefix and a name, separated by a slash (/). The prefix is optional and must be 253 characters or less. If specified, the prefix must be a DNS subdomain\226\136\146 a series of DNS labels separated by dots (.), and it must end with a slash (/). The name segment is required and must be 63 characters or less. It can include alphanumeric characters (\\[a-z0-9A-Z\\]), dashes (-), underscores (_), and dots (.), but must begin and end with an alphanumeric character. Annotation values must be 255 characters or less. Annotations can be added or modified at any time. Each resource can have multiple annotations."];namespace:String_.toption[@ocaml.doc"The namespace of the Amazon EKS cluster. In Kubernetes, namespaces provide a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces. Batch places Batch Job pods in this namespace. If this field is provided, the value can't be empty or null. It must meet the following requirements: 1-63 characters long Can't be set to default Can't start with kube Must match the following regular expression: ^\\[a-z0-9\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?$ For more information, see Namespaces in the Kubernetes documentation. This namespace can be different from the kubernetesNamespace set in the compute environment's EksConfiguration, but must have identical role-based access control (RBAC) roles as the compute environment's kubernetesNamespace. For multi-node parallel jobs, the same value must be provided across all the node ranges."]}letmake?labels=fun?annotations->fun?namespace->fun()->{labels;annotations;namespace}letto_valuex=structure_to_value[("labels",(Option.mapx.labels~f:EksLabelsMap.to_value));("annotations",(Option.mapx.annotations~f:EksAnnotationsMap.to_value));("namespace",(Option.mapx.namespace~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnamespace=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"namespace")inletannotations=(Option.map~f:EksAnnotationsMap.of_xml)(Xml.childxml_arg0"annotations")inletlabels=(Option.map~f:EksLabelsMap.of_xml)(Xml.childxml_arg0"labels")inmake?namespace?annotations?labels()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnamespace=field_mapjson__"namespace"String_.of_jsoninletannotations=field_mapjson__"annotations"EksAnnotationsMap.of_jsoninletlabels=field_mapjson__"labels"EksLabelsMap.of_jsoninmake?namespace?annotations?labels()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID for a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation."]moduleEksVolumes=structtypenonrect=EksVolume.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksVolume.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:EksVolume.of_xml)letof_jsonj=list_of_json~kind:"EksVolumes"~of_json:EksVolume.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleImagePullSecrets=structtypenonrect=ImagePullSecret.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ImagePullSecret.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:ImagePullSecret.of_xml)letof_jsonj=list_of_json~kind:"ImagePullSecrets"~of_json:ImagePullSecret.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTaskContainerOverrides=structtypenonrect=TaskContainerOverrides.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskContainerOverrides.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:TaskContainerOverrides.of_xml)letof_jsonj=list_of_json~kind:"ListTaskContainerOverrides"~of_json:TaskContainerOverrides.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksContainerOverride=structtypenonrect={name:String_.toption[@ocaml.doc"A pointer to the container that you want to override. The name must match a unique container name that you wish to override."];image:String_.toption[@ocaml.doc"The override of the Docker image that's used to start the container."];command:StringList.toption[@ocaml.doc"The command to send to the container that overrides the default command from the Docker image or the job definition."];args:StringList.toption[@ocaml.doc"The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation."];env:EksContainerEnvironmentVariables.toption[@ocaml.doc"The environment variables to send to the container. You can add new environment variables, which are added to the container at launch. Or, you can override the existing environment variables from the Docker image or the job definition. Environment variables cannot start with \"AWS_BATCH\". This naming convention is reserved for variables that Batch sets."];resources:EksContainerResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation."]}letmake?name=fun?image->fun?command->fun?args->fun?env->fun?resources->fun()->{name;image;command;args;env;resources}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("image",(Option.mapx.image~f:String_.to_value));("command",(Option.mapx.command~f:StringList.to_value));("args",(Option.mapx.args~f:StringList.to_value));("env",(Option.mapx.env~f:EksContainerEnvironmentVariables.to_value));("resources",(Option.mapx.resources~f:EksContainerResourceRequirements.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresources=(Option.map~f:EksContainerResourceRequirements.of_xml)(Xml.childxml_arg0"resources")inletenv=(Option.map~f:EksContainerEnvironmentVariables.of_xml)(Xml.childxml_arg0"env")inletargs=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"args")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inletimage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"image")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?resources?env?args?command?image?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresources=field_mapjson__"resources"EksContainerResourceRequirements.of_jsoninletenv=field_mapjson__"env"EksContainerEnvironmentVariables.of_jsoninletargs=field_mapjson__"args"StringList.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninletimage=field_mapjson__"image"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?resources?env?args?command?image?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API operation."]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_valueendmoduleListAttemptTaskContainerDetails=structtypenonrect=AttemptTaskContainerDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttemptTaskContainerDetails.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:AttemptTaskContainerDetails.of_xml)letof_jsonj=list_of_json~kind:"ListAttemptTaskContainerDetails"~of_json:AttemptTaskContainerDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskContainerDetails=structtypenonrect={command:StringList.toption[@ocaml.doc"The command that's passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd."];dependsOn:TaskContainerDependencyList.toption[@ocaml.doc"A list of containers that this container depends on."];environment:EnvironmentVariables.toption[@ocaml.doc"The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env option to docker run. We don't recommend using plaintext environment variables for sensitive information, such as credential data."];essential:Boolean.toption[@ocaml.doc"If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, its failure doesn't affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential. All jobs must have at least one essential container. If you have an application that's composed of multiple containers, group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see Application Architecture in the Amazon Elastic Container Service Developer Guide."];firelensConfiguration:FirelensConfiguration.toption[@ocaml.doc"The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom log routing in the Amazon Elastic Container Service Developer Guide."];image:String_.toption[@ocaml.doc"The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image\\@digest. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of the docker run ."];linuxParameters:LinuxParameters.toption[@ocaml.doc"Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information, see KernelCapabilities. This parameter is not supported for Windows containers."];logConfiguration:LogConfiguration.toption[@ocaml.doc"The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container can use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information about the options for different supported log drivers, see Configure logging drivers in the Docker documentation. Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers may be available in future releases of the Amazon ECS container agent. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '\\{\\{.Server.APIVersion\\}\\}' The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration in the Amazon Elastic Container Service Developer Guide."];mountPoints:MountPoints.toption[@ocaml.doc"The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run. Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives."];name:String_.toption[@ocaml.doc"The name of a container."];privileged:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run. This parameter is not supported for Windows containers or tasks run on Fargate."];readonlyRootFilesystem:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run. This parameter is not supported for Windows containers."];repositoryCredentials:RepositoryCredentials.toption[@ocaml.doc"The private repository authentication credentials to use."];resourceRequirements:ResourceRequirements.toption[@ocaml.doc"The type and amount of a resource to assign to a container. The only supported resource is a GPU."];secrets:SecretList.toption[@ocaml.doc"The secrets to pass to the container. For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide."];ulimits:Ulimits.toption[@ocaml.doc"A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 1024 and the default hard limit is 65535. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '\\{\\{.Server.APIVersion\\}\\}' This parameter is not supported for Windows containers."];user:String_.toption[@ocaml.doc"The user to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run. When running tasks using the host network mode, don't run containers using the root user (UID 0). We recommend using a non-root user for better security. You can specify the user using the following formats. If specifying a UID or GID, you must specify it as a positive integer. user user:group uid uid:gid user:gi uid:group This parameter is not supported for Windows containers."];startTimeout:Integer.toption[@ocaml.doc"Time duration (in seconds) to wait before giving up on resolving dependencies for a container. The minimum value is 2 seconds and the maximum value for Fargate is 120 seconds."];stopTimeout:Integer.toption[@ocaml.doc"Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. The minimum value is 2 seconds and the maximum value for Fargate is 120 seconds. If the parameter is not specified, the default value of 30 seconds is used. For tasks that use the EC2 launch type, if the stopTimeout parameter isn't specified, the value set for the Amazon ECS container agent configuration variable ECS_CONTAINER_STOP_TIMEOUT is used. If neither the stopTimeout parameter nor the ECS_CONTAINER_STOP_TIMEOUT agent configuration variable are set, then the default value of 30 seconds is used."];exitCode:Integer.toption[@ocaml.doc"The exit code returned upon completion."];reason:String_.toption[@ocaml.doc"A short (255 max characters) human-readable string to provide additional details for a running or stopped container."];logStreamName:String_.toption[@ocaml.doc"The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status."];networkInterfaces:NetworkInterfaceList.toption[@ocaml.doc"The network interfaces that are associated with the job."]}letmake?command=fun?dependsOn->fun?environment->fun?essential->fun?firelensConfiguration->fun?image->fun?linuxParameters->fun?logConfiguration->fun?mountPoints->fun?name->fun?privileged->fun?readonlyRootFilesystem->fun?repositoryCredentials->fun?resourceRequirements->fun?secrets->fun?ulimits->fun?user->fun?startTimeout->fun?stopTimeout->fun?exitCode->fun?reason->fun?logStreamName->fun?networkInterfaces->fun()->{command;dependsOn;environment;essential;firelensConfiguration;image;linuxParameters;logConfiguration;mountPoints;name;privileged;readonlyRootFilesystem;repositoryCredentials;resourceRequirements;secrets;ulimits;user;startTimeout;stopTimeout;exitCode;reason;logStreamName;networkInterfaces}letto_valuex=structure_to_value[("command",(Option.mapx.command~f:StringList.to_value));("dependsOn",(Option.mapx.dependsOn~f:TaskContainerDependencyList.to_value));("environment",(Option.mapx.environment~f:EnvironmentVariables.to_value));("essential",(Option.mapx.essential~f:Boolean.to_value));("firelensConfiguration",(Option.mapx.firelensConfiguration~f:FirelensConfiguration.to_value));("image",(Option.mapx.image~f:String_.to_value));("linuxParameters",(Option.mapx.linuxParameters~f:LinuxParameters.to_value));("logConfiguration",(Option.mapx.logConfiguration~f:LogConfiguration.to_value));("mountPoints",(Option.mapx.mountPoints~f:MountPoints.to_value));("name",(Option.mapx.name~f:String_.to_value));("privileged",(Option.mapx.privileged~f:Boolean.to_value));("readonlyRootFilesystem",(Option.mapx.readonlyRootFilesystem~f:Boolean.to_value));("repositoryCredentials",(Option.mapx.repositoryCredentials~f:RepositoryCredentials.to_value));("resourceRequirements",(Option.mapx.resourceRequirements~f:ResourceRequirements.to_value));("secrets",(Option.mapx.secrets~f:SecretList.to_value));("ulimits",(Option.mapx.ulimits~f:Ulimits.to_value));("user",(Option.mapx.user~f:String_.to_value));("startTimeout",(Option.mapx.startTimeout~f:Integer.to_value));("stopTimeout",(Option.mapx.stopTimeout~f:Integer.to_value));("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("reason",(Option.mapx.reason~f:String_.to_value));("logStreamName",(Option.mapx.logStreamName~f:String_.to_value));("networkInterfaces",(Option.mapx.networkInterfaces~f:NetworkInterfaceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnetworkInterfaces=(Option.map~f:NetworkInterfaceList.of_xml)(Xml.childxml_arg0"networkInterfaces")inletlogStreamName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"logStreamName")inletreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inletstopTimeout=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"stopTimeout")inletstartTimeout=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"startTimeout")inletuser=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"user")inletulimits=(Option.map~f:Ulimits.of_xml)(Xml.childxml_arg0"ulimits")inletsecrets=(Option.map~f:SecretList.of_xml)(Xml.childxml_arg0"secrets")inletresourceRequirements=(Option.map~f:ResourceRequirements.of_xml)(Xml.childxml_arg0"resourceRequirements")inletrepositoryCredentials=(Option.map~f:RepositoryCredentials.of_xml)(Xml.childxml_arg0"repositoryCredentials")inletreadonlyRootFilesystem=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readonlyRootFilesystem")inletprivileged=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"privileged")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inletmountPoints=(Option.map~f:MountPoints.of_xml)(Xml.childxml_arg0"mountPoints")inletlogConfiguration=(Option.map~f:LogConfiguration.of_xml)(Xml.childxml_arg0"logConfiguration")inletlinuxParameters=(Option.map~f:LinuxParameters.of_xml)(Xml.childxml_arg0"linuxParameters")inletimage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"image")inletfirelensConfiguration=(Option.map~f:FirelensConfiguration.of_xml)(Xml.childxml_arg0"firelensConfiguration")inletessential=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"essential")inletenvironment=(Option.map~f:EnvironmentVariables.of_xml)(Xml.childxml_arg0"environment")inletdependsOn=(Option.map~f:TaskContainerDependencyList.of_xml)(Xml.childxml_arg0"dependsOn")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inmake?networkInterfaces?logStreamName?reason?exitCode?stopTimeout?startTimeout?user?ulimits?secrets?resourceRequirements?repositoryCredentials?readonlyRootFilesystem?privileged?name?mountPoints?logConfiguration?linuxParameters?image?firelensConfiguration?essential?environment?dependsOn?command()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnetworkInterfaces=field_mapjson__"networkInterfaces"NetworkInterfaceList.of_jsoninletlogStreamName=field_mapjson__"logStreamName"String_.of_jsoninletreason=field_mapjson__"reason"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninletstopTimeout=field_mapjson__"stopTimeout"Integer.of_jsoninletstartTimeout=field_mapjson__"startTimeout"Integer.of_jsoninletuser=field_mapjson__"user"String_.of_jsoninletulimits=field_mapjson__"ulimits"Ulimits.of_jsoninletsecrets=field_mapjson__"secrets"SecretList.of_jsoninletresourceRequirements=field_mapjson__"resourceRequirements"ResourceRequirements.of_jsoninletrepositoryCredentials=field_mapjson__"repositoryCredentials"RepositoryCredentials.of_jsoninletreadonlyRootFilesystem=field_mapjson__"readonlyRootFilesystem"Boolean.of_jsoninletprivileged=field_mapjson__"privileged"Boolean.of_jsoninletname=field_mapjson__"name"String_.of_jsoninletmountPoints=field_mapjson__"mountPoints"MountPoints.of_jsoninletlogConfiguration=field_mapjson__"logConfiguration"LogConfiguration.of_jsoninletlinuxParameters=field_mapjson__"linuxParameters"LinuxParameters.of_jsoninletimage=field_mapjson__"image"String_.of_jsoninletfirelensConfiguration=field_mapjson__"firelensConfiguration"FirelensConfiguration.of_jsoninletessential=field_mapjson__"essential"Boolean.of_jsoninletenvironment=field_mapjson__"environment"EnvironmentVariables.of_jsoninletdependsOn=field_mapjson__"dependsOn"TaskContainerDependencyList.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninmake?networkInterfaces?logStreamName?reason?exitCode?stopTimeout?startTimeout?user?ulimits?secrets?resourceRequirements?repositoryCredentials?readonlyRootFilesystem?privileged?name?mountPoints?logConfiguration?linuxParameters?image?firelensConfiguration?essential?environment?dependsOn?command()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details for the container in this task attempt."]moduleConsumableResourceList=structtypenonrect=ConsumableResourceRequirement.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConsumableResourceRequirement.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:ConsumableResourceRequirement.of_xml)letof_jsonj=list_of_json~kind:"ConsumableResourceList"~of_json:ConsumableResourceRequirement.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFargatePlatformConfiguration=structtypenonrect={platformVersion:String_.toption[@ocaml.doc"The Fargate platform version where the jobs are running. A platform version is specified only for jobs that are running on Fargate resources. If one isn't specified, the LATEST platform version is used by default. This uses a recent, approved version of the Fargate platform for compute resources. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide."]}letmake?platformVersion=fun()->{platformVersion}letto_valuex=structure_to_value[("platformVersion",(Option.mapx.platformVersion~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letplatformVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"platformVersion")inmake?platformVersion()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letplatformVersion=field_mapjson__"platformVersion"String_.of_jsoninmake?platformVersion()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The platform configuration for jobs that are running on Fargate resources. Jobs that run on Amazon EC2 resources must not specify this parameter."]moduleListEcsTaskProperties=structtypenonrect=EcsTaskProperties.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EcsTaskProperties.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:EcsTaskProperties.of_xml)letof_jsonj=list_of_json~kind:"ListEcsTaskProperties"~of_json:EcsTaskProperties.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksPodProperties=structtypenonrect={serviceAccountName:String_.toption[@ocaml.doc"The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation."];hostNetwork:Boolean.toption[@ocaml.doc"Indicates if the pod uses the hosts' network IP address. The default value is true. Setting this to false enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation."];dnsPolicy:String_.toption[@ocaml.doc"The DNS policy for the pod. The default value is ClusterFirst. If the hostNetwork parameter is not specified, the default is ClusterFirstWithHostNet. ClusterFirst indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation. Valid values: Default | ClusterFirst | ClusterFirstWithHostNet"];imagePullSecrets:ImagePullSecrets.toption[@ocaml.doc"References a Kubernetes secret resource. It holds a list of secrets. These secrets help to gain access to pull an images from a private registry. ImagePullSecret$name is required when this object is used."];containers:EksContainers.toption[@ocaml.doc"The properties of the container that's used on the Amazon EKS pod. This object is limited to 10 elements."];initContainers:EksContainers.toption[@ocaml.doc"These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation. This object is limited to 10 elements."];volumes:EksVolumes.toption[@ocaml.doc"Specifies the volumes for a job definition that uses Amazon EKS resources."];metadata:EksMetadata.toption[@ocaml.doc"Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation."];shareProcessNamespace:Boolean.toption[@ocaml.doc"Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod."]}letmake?serviceAccountName=fun?hostNetwork->fun?dnsPolicy->fun?imagePullSecrets->fun?containers->fun?initContainers->fun?volumes->fun?metadata->fun?shareProcessNamespace->fun()->{serviceAccountName;hostNetwork;dnsPolicy;imagePullSecrets;containers;initContainers;volumes;metadata;shareProcessNamespace}letto_valuex=structure_to_value[("serviceAccountName",(Option.mapx.serviceAccountName~f:String_.to_value));("hostNetwork",(Option.mapx.hostNetwork~f:Boolean.to_value));("dnsPolicy",(Option.mapx.dnsPolicy~f:String_.to_value));("imagePullSecrets",(Option.mapx.imagePullSecrets~f:ImagePullSecrets.to_value));("containers",(Option.mapx.containers~f:EksContainers.to_value));("initContainers",(Option.mapx.initContainers~f:EksContainers.to_value));("volumes",(Option.mapx.volumes~f:EksVolumes.to_value));("metadata",(Option.mapx.metadata~f:EksMetadata.to_value));("shareProcessNamespace",(Option.mapx.shareProcessNamespace~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshareProcessNamespace=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"shareProcessNamespace")inletmetadata=(Option.map~f:EksMetadata.of_xml)(Xml.childxml_arg0"metadata")inletvolumes=(Option.map~f:EksVolumes.of_xml)(Xml.childxml_arg0"volumes")inletinitContainers=(Option.map~f:EksContainers.of_xml)(Xml.childxml_arg0"initContainers")inletcontainers=(Option.map~f:EksContainers.of_xml)(Xml.childxml_arg0"containers")inletimagePullSecrets=(Option.map~f:ImagePullSecrets.of_xml)(Xml.childxml_arg0"imagePullSecrets")inletdnsPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"dnsPolicy")inlethostNetwork=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"hostNetwork")inletserviceAccountName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceAccountName")inmake?shareProcessNamespace?metadata?volumes?initContainers?containers?imagePullSecrets?dnsPolicy?hostNetwork?serviceAccountName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshareProcessNamespace=field_mapjson__"shareProcessNamespace"Boolean.of_jsoninletmetadata=field_mapjson__"metadata"EksMetadata.of_jsoninletvolumes=field_mapjson__"volumes"EksVolumes.of_jsoninletinitContainers=field_mapjson__"initContainers"EksContainers.of_jsoninletcontainers=field_mapjson__"containers"EksContainers.of_jsoninletimagePullSecrets=field_mapjson__"imagePullSecrets"ImagePullSecrets.of_jsoninletdnsPolicy=field_mapjson__"dnsPolicy"String_.of_jsoninlethostNetwork=field_mapjson__"hostNetwork"Boolean.of_jsoninletserviceAccountName=field_mapjson__"serviceAccountName"String_.of_jsoninmake?shareProcessNamespace?metadata?volumes?initContainers?containers?imagePullSecrets?dnsPolicy?hostNetwork?serviceAccountName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The properties for the pod."]moduleUserdataType=structtypenonrect=|EKS_BOOTSTRAP_SH|EKS_NODEADM|Non_static_idofstringletmakei=iletto_string=function|EKS_BOOTSTRAP_SH->"EKS_BOOTSTRAP_SH"|EKS_NODEADM->"EKS_NODEADM"|Non_static_ids->sletof_string=function|"EKS_BOOTSTRAP_SH"->EKS_BOOTSTRAP_SH|"EKS_NODEADM"->EKS_NODEADM|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 UserdataType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserdataType"j)letto_json=simple_to_jsonto_valueendmoduleTaskPropertiesOverride=structtypenonrect={containers:ListTaskContainerOverrides.toption[@ocaml.doc"The overrides for the container definition of a job."]}letmake?containers=fun()->{containers}letto_valuex=structure_to_value[("containers",(Option.mapx.containers~f:ListTaskContainerOverrides.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontainers=(Option.map~f:ListTaskContainerOverrides.of_xml)(Xml.childxml_arg0"containers")inmake?containers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontainers=field_mapjson__"containers"ListTaskContainerOverrides.of_jsoninmake?containers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains overrides for the task definition of a job."]moduleEksContainerOverrideList=structtypenonrect=EksContainerOverride.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksContainerOverride.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:EksContainerOverride.of_xml)letof_jsonj=list_of_json~kind:"EksContainerOverrideList"~of_json:EksContainerOverride.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFairshareCapacityUsage=structtypenonrect={capacityUnit:String_.toption[@ocaml.doc"The unit of measure for the capacity usage. For compute jobs, this is VCPU for Amazon EC2 and cpu for Amazon EKS. For service jobs, this is the instance type."];quantity:Double.toption[@ocaml.doc"The quantity of capacity being used, measured in the units specified by capacityUnit."]}letmake?capacityUnit=fun?quantity->fun()->{capacityUnit;quantity}letto_valuex=structure_to_value[("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"quantity")inletcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inmake?quantity?capacityUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Double.of_jsoninletcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninmake?quantity?capacityUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity usage for a fairshare scheduling job queue."]moduleQuotaShareCapacityUsage=structtypenonrect={capacityUnit:String_.toption[@ocaml.doc"The unit of compute capacity for the capacity usage."];quantity:Double.toption[@ocaml.doc"The quantity of capacity being used."]}letmake?capacityUnit=fun?quantity->fun()->{capacityUnit;quantity}letto_valuex=structure_to_value[("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"quantity")inletcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inmake?quantity?capacityUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Double.of_jsoninletcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninmake?quantity?capacityUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity usage for a quota share, including units of compute capacity and quantity of resources being used."]moduleFloat_=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Floatxletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a float"xml_arg0)letof_jsonj=float_of_json~kind:"a float"jletto_json=simple_to_jsonto_valueendmoduleAttemptEcsTaskDetails=structtypenonrect={containerInstanceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the container instance that hosts the task."];taskArn:String_.toption[@ocaml.doc"The ARN of the Amazon ECS task."];containers:ListAttemptTaskContainerDetails.toption[@ocaml.doc"A list of containers that are included in the taskProperties list."]}letmake?containerInstanceArn=fun?taskArn->fun?containers->fun()->{containerInstanceArn;taskArn;containers}letto_valuex=structure_to_value[("containerInstanceArn",(Option.mapx.containerInstanceArn~f:String_.to_value));("taskArn",(Option.mapx.taskArn~f:String_.to_value));("containers",(Option.mapx.containers~f:ListAttemptTaskContainerDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontainers=(Option.map~f:ListAttemptTaskContainerDetails.of_xml)(Xml.childxml_arg0"containers")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inletcontainerInstanceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerInstanceArn")inmake?containers?taskArn?containerInstanceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontainers=field_mapjson__"containers"ListAttemptTaskContainerDetails.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninletcontainerInstanceArn=field_mapjson__"containerInstanceArn"String_.of_jsoninmake?containers?taskArn?containerInstanceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a task."]moduleListTaskContainerDetails=structtypenonrect=TaskContainerDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskContainerDetails.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:TaskContainerDetails.of_xml)letof_jsonj=list_of_json~kind:"ListTaskContainerDetails"~of_json:TaskContainerDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksAttemptContainerDetail=structtypenonrect={name:String_.toption[@ocaml.doc"The name of a container."];containerID:String_.toption[@ocaml.doc"The ID for the container."];exitCode:Integer.toption[@ocaml.doc"The exit code returned for the job attempt. A non-zero exit code is considered failed."];reason:String_.toption[@ocaml.doc"A short (255 max characters) human-readable string to provide additional details for a running or stopped container."]}letmake?name=fun?containerID->fun?exitCode->fun?reason->fun()->{name;containerID;exitCode;reason}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("containerID",(Option.mapx.containerID~f:String_.to_value));("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("reason",(Option.mapx.reason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inletcontainerID=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerID")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?reason?exitCode?containerID?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninletcontainerID=field_mapjson__"containerID"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?reason?exitCode?containerID?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details for an attempt for a job attempt that an Amazon EKS container runs."]moduleEksContainerDetail=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the container. If the name isn't specified, the default name \"Default\" is used. Each container in a pod must have a unique name."];image:String_.toption[@ocaml.doc"The Docker image used to start the container."];imagePullPolicy:String_.toption[@ocaml.doc"The image pull policy for the container. Supported values are Always, IfNotPresent, and Never. This parameter defaults to Always if the :latest tag is specified, IfNotPresent otherwise. For more information, see Updating images in the Kubernetes documentation."];command:StringList.toption[@ocaml.doc"The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation."];args:StringList.toption[@ocaml.doc"An array of arguments to the entrypoint. If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to \"$(NAME1)\" and the NAME1 environment variable doesn't exist, the command string will remain \"$(NAME1)\". $$ is replaced with $ and the resulting string isn't expanded. For example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation."];env:EksContainerEnvironmentVariables.toption[@ocaml.doc"The environment variables to pass to a container. Environment variables cannot start with \"AWS_BATCH\". This naming convention is reserved for variables that Batch sets."];resources:EksContainerResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation."];exitCode:Integer.toption[@ocaml.doc"The exit code returned for the job attempt. A non-zero exit code is considered failed."];reason:String_.toption[@ocaml.doc"A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long."];volumeMounts:EksContainerVolumeMounts.toption[@ocaml.doc"The volume mounts for the container. Batch supports emptyDir, hostPath, and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation."];securityContext:EksContainerSecurityContext.toption[@ocaml.doc"The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation."]}letmake?name=fun?image->fun?imagePullPolicy->fun?command->fun?args->fun?env->fun?resources->fun?exitCode->fun?reason->fun?volumeMounts->fun?securityContext->fun()->{name;image;imagePullPolicy;command;args;env;resources;exitCode;reason;volumeMounts;securityContext}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("image",(Option.mapx.image~f:String_.to_value));("imagePullPolicy",(Option.mapx.imagePullPolicy~f:String_.to_value));("command",(Option.mapx.command~f:StringList.to_value));("args",(Option.mapx.args~f:StringList.to_value));("env",(Option.mapx.env~f:EksContainerEnvironmentVariables.to_value));("resources",(Option.mapx.resources~f:EksContainerResourceRequirements.to_value));("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("reason",(Option.mapx.reason~f:String_.to_value));("volumeMounts",(Option.mapx.volumeMounts~f:EksContainerVolumeMounts.to_value));("securityContext",(Option.mapx.securityContext~f:EksContainerSecurityContext.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsecurityContext=(Option.map~f:EksContainerSecurityContext.of_xml)(Xml.childxml_arg0"securityContext")inletvolumeMounts=(Option.map~f:EksContainerVolumeMounts.of_xml)(Xml.childxml_arg0"volumeMounts")inletreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inletresources=(Option.map~f:EksContainerResourceRequirements.of_xml)(Xml.childxml_arg0"resources")inletenv=(Option.map~f:EksContainerEnvironmentVariables.of_xml)(Xml.childxml_arg0"env")inletargs=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"args")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inletimagePullPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"imagePullPolicy")inletimage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"image")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?securityContext?volumeMounts?reason?exitCode?resources?env?args?command?imagePullPolicy?image?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsecurityContext=field_mapjson__"securityContext"EksContainerSecurityContext.of_jsoninletvolumeMounts=field_mapjson__"volumeMounts"EksContainerVolumeMounts.of_jsoninletreason=field_mapjson__"reason"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninletresources=field_mapjson__"resources"EksContainerResourceRequirements.of_jsoninletenv=field_mapjson__"env"EksContainerEnvironmentVariables.of_jsoninletargs=field_mapjson__"args"StringList.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninletimagePullPolicy=field_mapjson__"imagePullPolicy"String_.of_jsoninletimage=field_mapjson__"image"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?securityContext?volumeMounts?reason?exitCode?resources?env?args?command?imagePullPolicy?image?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details for container properties that are returned by DescribeJobs for jobs that use Amazon EKS."]moduleConsumableResourceProperties=structtypenonrect={consumableResourceList:ConsumableResourceList.toption[@ocaml.doc"The list of consumable resources required by a job."]}letmake?consumableResourceList=fun()->{consumableResourceList}letto_valuex=structure_to_value[("consumableResourceList",(Option.mapx.consumableResourceList~f:ConsumableResourceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceList=(Option.map~f:ConsumableResourceList.of_xml)(Xml.childxml_arg0"consumableResourceList")inmake?consumableResourceList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceList=field_mapjson__"consumableResourceList"ConsumableResourceList.of_jsoninmake?consumableResourceList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains a list of consumable resources required by a job."]moduleContainerProperties=structtypenonrect={image:String_.toption[@ocaml.doc"Required. The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of docker run. Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources. Images in Amazon ECR Public repositories use the full registry/repository\\[:tag\\] or registry/repository\\[\\@digest\\] naming conventions. For example, public.ecr.aws/registry_alias/my-web-app:latest . Images in Amazon ECR repositories use the full registry and repository URI (for example, 123456789012.dkr.ecr.<region-name>.amazonaws.com/<repository-name>). Images in official repositories on Docker Hub use a single name (for example, ubuntu or mongo). Images in other repositories on Docker Hub are qualified with an organization name (for example, amazon/amazon-ecs-agent). Images in other online repositories are qualified further by a domain name (for example, quay.io/assemblyline/ubuntu)."];vcpus:Integer.toption[@ocaml.doc"This parameter is deprecated, use resourceRequirements to specify the vCPU requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs running on Amazon EC2 resources, it specifies the number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run. The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node."];memory:Integer.toption[@ocaml.doc"This parameter is deprecated, use resourceRequirements to specify the memory requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs that run on Amazon EC2 resources, it specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in several places. It must be specified for each node at least once."];command:StringList.toption[@ocaml.doc"The command that's passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd."];jobRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide."];executionRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see Batch execution IAM role in the Batch User Guide."];volumes:Volumes.toption[@ocaml.doc"A list of data volumes used in a job."];environment:EnvironmentVariables.toption[@ocaml.doc"The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env option to docker run. We don't recommend using plaintext environment variables for sensitive information, such as credential data. Environment variables cannot start with \"AWS_BATCH\". This naming convention is reserved for variables that Batch sets."];mountPoints:MountPoints.toption[@ocaml.doc"The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run."];readonlyRootFilesystem:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run."];privileged:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run. The default value is false. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false."];ulimits:Ulimits.toption[@ocaml.doc"A list of ulimits to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided."];user:String_.toption[@ocaml.doc"The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run."];instanceType:String_.toption[@ocaml.doc"The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use the same instance type. This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided."];resourceRequirements:ResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. The supported resources include GPU, MEMORY, and VCPU."];linuxParameters:LinuxParameters.toption[@ocaml.doc"Linux-specific modifications that are applied to the container, such as details for device mappings."];logConfiguration:LogConfiguration.toption[@ocaml.doc"The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see Configure logging drivers in the Docker documentation. Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\" The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration in the Amazon Elastic Container Service Developer Guide."];secrets:SecretList.toption[@ocaml.doc"The secrets for the container. For more information, see Specifying sensitive data in the Batch User Guide."];networkConfiguration:NetworkConfiguration.toption[@ocaml.doc"The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."];fargatePlatformConfiguration:FargatePlatformConfiguration.toption[@ocaml.doc"The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."];enableExecuteCommand:Boolean.toption[@ocaml.doc"Determines whether execute command functionality is turned on for this task. If true, execute command functionality is turned on all the containers in the task."];ephemeralStorage:EphemeralStorage.toption[@ocaml.doc"The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate."];runtimePlatform:RuntimePlatform.toption[@ocaml.doc"An object that represents the compute environment architecture for Batch jobs on Fargate."];repositoryCredentials:RepositoryCredentials.toption[@ocaml.doc"The private repository authentication credentials to use."]}letmake?image=fun?vcpus->fun?memory->fun?command->fun?jobRoleArn->fun?executionRoleArn->fun?volumes->fun?environment->fun?mountPoints->fun?readonlyRootFilesystem->fun?privileged->fun?ulimits->fun?user->fun?instanceType->fun?resourceRequirements->fun?linuxParameters->fun?logConfiguration->fun?secrets->fun?networkConfiguration->fun?fargatePlatformConfiguration->fun?enableExecuteCommand->fun?ephemeralStorage->fun?runtimePlatform->fun?repositoryCredentials->fun()->{image;vcpus;memory;command;jobRoleArn;executionRoleArn;volumes;environment;mountPoints;readonlyRootFilesystem;privileged;ulimits;user;instanceType;resourceRequirements;linuxParameters;logConfiguration;secrets;networkConfiguration;fargatePlatformConfiguration;enableExecuteCommand;ephemeralStorage;runtimePlatform;repositoryCredentials}letto_valuex=structure_to_value[("image",(Option.mapx.image~f:String_.to_value));("vcpus",(Option.mapx.vcpus~f:Integer.to_value));("memory",(Option.mapx.memory~f:Integer.to_value));("command",(Option.mapx.command~f:StringList.to_value));("jobRoleArn",(Option.mapx.jobRoleArn~f:String_.to_value));("executionRoleArn",(Option.mapx.executionRoleArn~f:String_.to_value));("volumes",(Option.mapx.volumes~f:Volumes.to_value));("environment",(Option.mapx.environment~f:EnvironmentVariables.to_value));("mountPoints",(Option.mapx.mountPoints~f:MountPoints.to_value));("readonlyRootFilesystem",(Option.mapx.readonlyRootFilesystem~f:Boolean.to_value));("privileged",(Option.mapx.privileged~f:Boolean.to_value));("ulimits",(Option.mapx.ulimits~f:Ulimits.to_value));("user",(Option.mapx.user~f:String_.to_value));("instanceType",(Option.mapx.instanceType~f:String_.to_value));("resourceRequirements",(Option.mapx.resourceRequirements~f:ResourceRequirements.to_value));("linuxParameters",(Option.mapx.linuxParameters~f:LinuxParameters.to_value));("logConfiguration",(Option.mapx.logConfiguration~f:LogConfiguration.to_value));("secrets",(Option.mapx.secrets~f:SecretList.to_value));("networkConfiguration",(Option.mapx.networkConfiguration~f:NetworkConfiguration.to_value));("fargatePlatformConfiguration",(Option.mapx.fargatePlatformConfiguration~f:FargatePlatformConfiguration.to_value));("enableExecuteCommand",(Option.mapx.enableExecuteCommand~f:Boolean.to_value));("ephemeralStorage",(Option.mapx.ephemeralStorage~f:EphemeralStorage.to_value));("runtimePlatform",(Option.mapx.runtimePlatform~f:RuntimePlatform.to_value));("repositoryCredentials",(Option.mapx.repositoryCredentials~f:RepositoryCredentials.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrepositoryCredentials=(Option.map~f:RepositoryCredentials.of_xml)(Xml.childxml_arg0"repositoryCredentials")inletruntimePlatform=(Option.map~f:RuntimePlatform.of_xml)(Xml.childxml_arg0"runtimePlatform")inletephemeralStorage=(Option.map~f:EphemeralStorage.of_xml)(Xml.childxml_arg0"ephemeralStorage")inletenableExecuteCommand=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"enableExecuteCommand")inletfargatePlatformConfiguration=(Option.map~f:FargatePlatformConfiguration.of_xml)(Xml.childxml_arg0"fargatePlatformConfiguration")inletnetworkConfiguration=(Option.map~f:NetworkConfiguration.of_xml)(Xml.childxml_arg0"networkConfiguration")inletsecrets=(Option.map~f:SecretList.of_xml)(Xml.childxml_arg0"secrets")inletlogConfiguration=(Option.map~f:LogConfiguration.of_xml)(Xml.childxml_arg0"logConfiguration")inletlinuxParameters=(Option.map~f:LinuxParameters.of_xml)(Xml.childxml_arg0"linuxParameters")inletresourceRequirements=(Option.map~f:ResourceRequirements.of_xml)(Xml.childxml_arg0"resourceRequirements")inletinstanceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceType")inletuser=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"user")inletulimits=(Option.map~f:Ulimits.of_xml)(Xml.childxml_arg0"ulimits")inletprivileged=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"privileged")inletreadonlyRootFilesystem=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readonlyRootFilesystem")inletmountPoints=(Option.map~f:MountPoints.of_xml)(Xml.childxml_arg0"mountPoints")inletenvironment=(Option.map~f:EnvironmentVariables.of_xml)(Xml.childxml_arg0"environment")inletvolumes=(Option.map~f:Volumes.of_xml)(Xml.childxml_arg0"volumes")inletexecutionRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionRoleArn")inletjobRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobRoleArn")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inletmemory=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"memory")inletvcpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"vcpus")inletimage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"image")inmake?repositoryCredentials?runtimePlatform?ephemeralStorage?enableExecuteCommand?fargatePlatformConfiguration?networkConfiguration?secrets?logConfiguration?linuxParameters?resourceRequirements?instanceType?user?ulimits?privileged?readonlyRootFilesystem?mountPoints?environment?volumes?executionRoleArn?jobRoleArn?command?memory?vcpus?image()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrepositoryCredentials=field_mapjson__"repositoryCredentials"RepositoryCredentials.of_jsoninletruntimePlatform=field_mapjson__"runtimePlatform"RuntimePlatform.of_jsoninletephemeralStorage=field_mapjson__"ephemeralStorage"EphemeralStorage.of_jsoninletenableExecuteCommand=field_mapjson__"enableExecuteCommand"Boolean.of_jsoninletfargatePlatformConfiguration=field_mapjson__"fargatePlatformConfiguration"FargatePlatformConfiguration.of_jsoninletnetworkConfiguration=field_mapjson__"networkConfiguration"NetworkConfiguration.of_jsoninletsecrets=field_mapjson__"secrets"SecretList.of_jsoninletlogConfiguration=field_mapjson__"logConfiguration"LogConfiguration.of_jsoninletlinuxParameters=field_mapjson__"linuxParameters"LinuxParameters.of_jsoninletresourceRequirements=field_mapjson__"resourceRequirements"ResourceRequirements.of_jsoninletinstanceType=field_mapjson__"instanceType"String_.of_jsoninletuser=field_mapjson__"user"String_.of_jsoninletulimits=field_mapjson__"ulimits"Ulimits.of_jsoninletprivileged=field_mapjson__"privileged"Boolean.of_jsoninletreadonlyRootFilesystem=field_mapjson__"readonlyRootFilesystem"Boolean.of_jsoninletmountPoints=field_mapjson__"mountPoints"MountPoints.of_jsoninletenvironment=field_mapjson__"environment"EnvironmentVariables.of_jsoninletvolumes=field_mapjson__"volumes"Volumes.of_jsoninletexecutionRoleArn=field_mapjson__"executionRoleArn"String_.of_jsoninletjobRoleArn=field_mapjson__"jobRoleArn"String_.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninletmemory=field_mapjson__"memory"Integer.of_jsoninletvcpus=field_mapjson__"vcpus"Integer.of_jsoninletimage=field_mapjson__"image"String_.of_jsoninmake?repositoryCredentials?runtimePlatform?ephemeralStorage?enableExecuteCommand?fargatePlatformConfiguration?networkConfiguration?secrets?logConfiguration?linuxParameters?resourceRequirements?instanceType?user?ulimits?privileged?readonlyRootFilesystem?mountPoints?environment?volumes?executionRoleArn?jobRoleArn?command?memory?vcpus?image()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Container properties are used for Amazon ECS based job definitions. These properties to describe the container that's launched as part of a job."]moduleEcsProperties=structtypenonrect={taskProperties:ListEcsTaskProperties.t[@ocaml.doc"An object that contains the properties for the Amazon ECS task definition of a job. This object is currently limited to one task element. However, the task element can run up to 10 containers."]}letcontext_="EcsProperties"letmake~taskProperties=fun()->{taskProperties}letto_valuex=structure_to_value[("taskProperties",(Some(ListEcsTaskProperties.to_valuex.taskProperties)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskProperties=ListEcsTaskProperties.of_xml(Xml.child_exn~context:context_xml_arg0"taskProperties")inmake~taskProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskProperties=field_map_exnjson__"taskProperties"ListEcsTaskProperties.of_jsoninmake~taskProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the properties for the Amazon ECS resources of a job."]moduleEksProperties=structtypenonrect={podProperties:EksPodProperties.toption[@ocaml.doc"The properties for the Kubernetes pod resources of a job."]}letmake?podProperties=fun()->{podProperties}letto_valuex=structure_to_value[("podProperties",(Option.mapx.podProperties~f:EksPodProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpodProperties=(Option.map~f:EksPodProperties.of_xml)(Xml.childxml_arg0"podProperties")inmake?podProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpodProperties=field_mapjson__"podProperties"EksPodProperties.of_jsoninmake?podProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the properties for the Kubernetes resources of a job."]moduleRetryAction=structtypenonrect=|RETRY|EXIT|Non_static_idofstringletmakei=iletto_string=function|RETRY->"RETRY"|EXIT->"EXIT"|Non_static_ids->sletof_string=function|"RETRY"->RETRY|"EXIT"->EXIT|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 RetryAction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RetryAction"j)letto_json=simple_to_jsonto_valueendmoduleImageIdOverride=structtypenonrect=stringletcontext_="ImageIdOverride"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ImageIdOverride"jletto_json=simple_to_jsonto_valueendmoduleImageType=structtypenonrect=stringletcontext_="ImageType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ImageType"jletto_json=simple_to_jsonto_valueendmoduleKubernetesVersion=structtypenonrect=stringletcontext_="KubernetesVersion"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KubernetesVersion"jletto_json=simple_to_jsonto_valueendmoduleLaunchTemplateSpecificationOverride=structtypenonrect={launchTemplateId:String_.toption[@ocaml.doc"The ID of the launch template. Note: If you specify the launchTemplateId you can't specify the launchTemplateName as well."];launchTemplateName:String_.toption[@ocaml.doc"The name of the launch template. Note: If you specify the launchTemplateName you can't specify the launchTemplateId as well."];version:String_.toption[@ocaml.doc"The version number of the launch template, $Default, or $Latest. If the value is $Default, the default version of the launch template is used. If the value is $Latest, the latest version of the launch template is used. If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the updateToLatestImageVersion parameter for the compute environment is set to true. During an infrastructure update, if either $Default or $Latest is specified, Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. Default: $Default Latest: $Latest"];targetInstanceTypes:StringList.toption[@ocaml.doc"The instance type or family that this override launch template should be applied to. This parameter is required when defining a launch template override. Information included in this parameter must meet the following requirements: Must be a valid Amazon EC2 instance type or family. The following Batch InstanceTypes are not allowed: optimal, default_x86_64, and default_arm64. targetInstanceTypes can target only instance types and families that are included within the ComputeResource.instanceTypes set. targetInstanceTypes doesn't need to include all of the instances from the instanceType set, but at least a subset. For example, if ComputeResource.instanceTypes includes \\[m5, g5\\], targetInstanceTypes can include \\[m5.2xlarge\\] and \\[m5.large\\] but not \\[c5.large\\]. targetInstanceTypes included within the same launch template override or across launch template overrides can't overlap for the same compute environment. For example, you can't define one launch template override to target an instance family and another define an instance type within this same family."];userdataType:UserdataType.toption[@ocaml.doc"The EKS node initialization process to use. You only need to specify this value if you are using a custom AMI. The default value is EKS_BOOTSTRAP_SH. If imageType is a custom AMI based on EKS_AL2023 or EKS_AL2023_NVIDIA then you must choose EKS_NODEADM."]}letmake?launchTemplateId=fun?launchTemplateName->fun?version->fun?targetInstanceTypes->fun?userdataType->fun()->{launchTemplateId;launchTemplateName;version;targetInstanceTypes;userdataType}letto_valuex=structure_to_value[("launchTemplateId",(Option.mapx.launchTemplateId~f:String_.to_value));("launchTemplateName",(Option.mapx.launchTemplateName~f:String_.to_value));("version",(Option.mapx.version~f:String_.to_value));("targetInstanceTypes",(Option.mapx.targetInstanceTypes~f:StringList.to_value));("userdataType",(Option.mapx.userdataType~f:UserdataType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserdataType=(Option.map~f:UserdataType.of_xml)(Xml.childxml_arg0"userdataType")inlettargetInstanceTypes=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"targetInstanceTypes")inletversion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"version")inletlaunchTemplateName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"launchTemplateName")inletlaunchTemplateId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"launchTemplateId")inmake?userdataType?targetInstanceTypes?version?launchTemplateName?launchTemplateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserdataType=field_mapjson__"userdataType"UserdataType.of_jsoninlettargetInstanceTypes=field_mapjson__"targetInstanceTypes"StringList.of_jsoninletversion=field_mapjson__"version"String_.of_jsoninletlaunchTemplateName=field_mapjson__"launchTemplateName"String_.of_jsoninletlaunchTemplateId=field_mapjson__"launchTemplateId"String_.of_jsoninmake?userdataType?targetInstanceTypes?version?launchTemplateName?launchTemplateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a launch template to use in place of the default launch template. You must specify either the launch template ID or launch template name in the request, but not both. If security groups are specified using both the securityGroupIds parameter of CreateComputeEnvironment and the launch template, the values in the securityGroupIds parameter of CreateComputeEnvironment will be used. You can define up to ten (10) overrides for each compute environment. This object isn't applicable to jobs that are running on Fargate resources. To unset all override templates for a compute environment, you can pass an empty array to the UpdateComputeEnvironment.overrides parameter, or not include the overrides parameter when submitting the UpdateComputeEnvironment API operation."]moduleListTaskPropertiesOverride=structtypenonrect=TaskPropertiesOverride.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskPropertiesOverride.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:TaskPropertiesOverride.of_xml)letof_jsonj=list_of_json~kind:"ListTaskPropertiesOverride"~of_json:TaskPropertiesOverride.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksPodPropertiesOverride=structtypenonrect={containers:EksContainerOverrideList.toption[@ocaml.doc"The overrides for the container that's used on the Amazon EKS pod."];initContainers:EksContainerOverrideList.toption[@ocaml.doc"The overrides for the initContainers defined in the Amazon EKS pod. These containers run before application containers, always run to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init Containers in the Kubernetes documentation."];metadata:EksMetadata.toption[@ocaml.doc"Metadata about the overrides for the container that's used on the Amazon EKS pod."]}letmake?containers=fun?initContainers->fun?metadata->fun()->{containers;initContainers;metadata}letto_valuex=structure_to_value[("containers",(Option.mapx.containers~f:EksContainerOverrideList.to_value));("initContainers",(Option.mapx.initContainers~f:EksContainerOverrideList.to_value));("metadata",(Option.mapx.metadata~f:EksMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetadata=(Option.map~f:EksMetadata.of_xml)(Xml.childxml_arg0"metadata")inletinitContainers=(Option.map~f:EksContainerOverrideList.of_xml)(Xml.childxml_arg0"initContainers")inletcontainers=(Option.map~f:EksContainerOverrideList.of_xml)(Xml.childxml_arg0"containers")inmake?metadata?initContainers?containers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetadata=field_mapjson__"metadata"EksMetadata.of_jsoninletinitContainers=field_mapjson__"initContainers"EksContainerOverrideList.of_jsoninletcontainers=field_mapjson__"containers"EksContainerOverrideList.of_jsoninmake?metadata?initContainers?containers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains overrides for the Kubernetes pod properties of a job."]moduleServiceResourceIdName=structtypenonrect=|TrainingJobArn|Non_static_idofstringletmakei=iletto_string=function|TrainingJobArn->"TrainingJobArn"|Non_static_ids->sletof_string=function|"TrainingJobArn"->TrainingJobArn|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 ServiceResourceIdName"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceResourceIdName"j)letto_json=simple_to_jsonto_valueendmoduleFairshareCapacityUsageList=structtypenonrect=FairshareCapacityUsage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FairshareCapacityUsage.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:FairshareCapacityUsage.of_xml)letof_jsonj=list_of_json~kind:"FairshareCapacityUsageList"~of_json:FairshareCapacityUsage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQuotaShareCapacityUsageList=structtypenonrect=QuotaShareCapacityUsage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QuotaShareCapacityUsage.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:QuotaShareCapacityUsage.of_xml)letof_jsonj=list_of_json~kind:"QuotaShareCapacityUsageList"~of_json:QuotaShareCapacityUsage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleShareAttributes=structtypenonrect={shareIdentifier:String_.t[@ocaml.doc"A share identifier or share identifier prefix. If the string ends with an asterisk (*), this entry specifies the weight factor to use for share identifiers that start with that prefix. The list of share identifiers in a fair-share policy can't overlap. For example, you can't have one that specifies a shareIdentifier of UserA* and another that specifies a shareIdentifier of UserA1. There can be no more than 500 share identifiers active in a job queue. The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*)."];weightFactor:Float_.toption[@ocaml.doc"The weight factor for the share identifier. The default value is 1.0. A lower value has a higher priority for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8 times the compute resources of jobs that use a share identifier with a weight factor of 1. The smallest supported value is 0.0001, and the largest supported value is 999.9999."]}letcontext_="ShareAttributes"letmake?weightFactor=fun~shareIdentifier->fun()->{weightFactor;shareIdentifier}letto_valuex=structure_to_value[("shareIdentifier",(Some(String_.to_valuex.shareIdentifier)));("weightFactor",(Option.mapx.weightFactor~f:Float_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letweightFactor=(Option.map~f:Float_.of_xml)(Xml.childxml_arg0"weightFactor")inletshareIdentifier=String_.of_xml(Xml.child_exn~context:context_xml_arg0"shareIdentifier")inmake?weightFactor~shareIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letweightFactor=field_mapjson__"weightFactor"Float_.of_jsoninletshareIdentifier=field_map_exnjson__"shareIdentifier"String_.of_jsoninmake?weightFactor~shareIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the weights for the share identifiers for the fair-share policy. Share identifiers that aren't included have a default weight of 1.0."]moduleAttemptContainerDetail=structtypenonrect={containerInstanceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt."];taskArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING status."];exitCode:Integer.toption[@ocaml.doc"The exit code for the job attempt. A non-zero exit code is considered failed."];reason:String_.toption[@ocaml.doc"A short (255 max characters) human-readable string to provide additional details for a running or stopped container."];logStreamName:String_.toption[@ocaml.doc"The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status."];networkInterfaces:NetworkInterfaceList.toption[@ocaml.doc"The network interfaces that are associated with the job attempt."]}letmake?containerInstanceArn=fun?taskArn->fun?exitCode->fun?reason->fun?logStreamName->fun?networkInterfaces->fun()->{containerInstanceArn;taskArn;exitCode;reason;logStreamName;networkInterfaces}letto_valuex=structure_to_value[("containerInstanceArn",(Option.mapx.containerInstanceArn~f:String_.to_value));("taskArn",(Option.mapx.taskArn~f:String_.to_value));("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("reason",(Option.mapx.reason~f:String_.to_value));("logStreamName",(Option.mapx.logStreamName~f:String_.to_value));("networkInterfaces",(Option.mapx.networkInterfaces~f:NetworkInterfaceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnetworkInterfaces=(Option.map~f:NetworkInterfaceList.of_xml)(Xml.childxml_arg0"networkInterfaces")inletlogStreamName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"logStreamName")inletreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inletcontainerInstanceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerInstanceArn")inmake?networkInterfaces?logStreamName?reason?exitCode?taskArn?containerInstanceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnetworkInterfaces=field_mapjson__"networkInterfaces"NetworkInterfaceList.of_jsoninletlogStreamName=field_mapjson__"logStreamName"String_.of_jsoninletreason=field_mapjson__"reason"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninletcontainerInstanceArn=field_mapjson__"containerInstanceArn"String_.of_jsoninmake?networkInterfaces?logStreamName?reason?exitCode?taskArn?containerInstanceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a container that's part of a job attempt."]moduleListAttemptEcsTaskDetails=structtypenonrect=AttemptEcsTaskDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttemptEcsTaskDetails.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:AttemptEcsTaskDetails.of_xml)letof_jsonj=list_of_json~kind:"ListAttemptEcsTaskDetails"~of_json:AttemptEcsTaskDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEcsTaskDetails=structtypenonrect={containers:ListTaskContainerDetails.toption[@ocaml.doc"A list of containers that are included in the taskProperties list."];containerInstanceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the container instance that hosts the task."];taskArn:String_.toption[@ocaml.doc"The ARN of the Amazon ECS task."];ephemeralStorage:EphemeralStorage.toption[@ocaml.doc"The amount of ephemeral storage allocated for the task."];executionRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide."];platformVersion:String_.toption[@ocaml.doc"The Fargate platform version where the jobs are running."];ipcMode:String_.toption[@ocaml.doc"The IPC resource namespace to use for the containers in the task. The valid values are host, task, or none. For more information see ipcMode in EcsTaskProperties."];taskRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see IAM roles for tasks in the Amazon Elastic Container Service Developer Guide. This is object is comparable to ContainerProperties:jobRoleArn."];pidMode:String_.toption[@ocaml.doc"The process namespace to use for the containers in the task. The valid values are host, or task. For more information see pidMode in EcsTaskProperties."];networkConfiguration:NetworkConfiguration.toption[@ocaml.doc"The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."];runtimePlatform:RuntimePlatform.toption[@ocaml.doc"An object that represents the compute environment architecture for Batch jobs on Fargate."];volumes:Volumes.toption[@ocaml.doc"A list of data volumes used in a job."];enableExecuteCommand:Boolean.toption[@ocaml.doc"Determines whether execute command functionality is turned on for this task. If true, execute command functionality is turned on all the containers in the task."]}letmake?containers=fun?containerInstanceArn->fun?taskArn->fun?ephemeralStorage->fun?executionRoleArn->fun?platformVersion->fun?ipcMode->fun?taskRoleArn->fun?pidMode->fun?networkConfiguration->fun?runtimePlatform->fun?volumes->fun?enableExecuteCommand->fun()->{containers;containerInstanceArn;taskArn;ephemeralStorage;executionRoleArn;platformVersion;ipcMode;taskRoleArn;pidMode;networkConfiguration;runtimePlatform;volumes;enableExecuteCommand}letto_valuex=structure_to_value[("containers",(Option.mapx.containers~f:ListTaskContainerDetails.to_value));("containerInstanceArn",(Option.mapx.containerInstanceArn~f:String_.to_value));("taskArn",(Option.mapx.taskArn~f:String_.to_value));("ephemeralStorage",(Option.mapx.ephemeralStorage~f:EphemeralStorage.to_value));("executionRoleArn",(Option.mapx.executionRoleArn~f:String_.to_value));("platformVersion",(Option.mapx.platformVersion~f:String_.to_value));("ipcMode",(Option.mapx.ipcMode~f:String_.to_value));("taskRoleArn",(Option.mapx.taskRoleArn~f:String_.to_value));("pidMode",(Option.mapx.pidMode~f:String_.to_value));("networkConfiguration",(Option.mapx.networkConfiguration~f:NetworkConfiguration.to_value));("runtimePlatform",(Option.mapx.runtimePlatform~f:RuntimePlatform.to_value));("volumes",(Option.mapx.volumes~f:Volumes.to_value));("enableExecuteCommand",(Option.mapx.enableExecuteCommand~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenableExecuteCommand=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"enableExecuteCommand")inletvolumes=(Option.map~f:Volumes.of_xml)(Xml.childxml_arg0"volumes")inletruntimePlatform=(Option.map~f:RuntimePlatform.of_xml)(Xml.childxml_arg0"runtimePlatform")inletnetworkConfiguration=(Option.map~f:NetworkConfiguration.of_xml)(Xml.childxml_arg0"networkConfiguration")inletpidMode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"pidMode")inlettaskRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskRoleArn")inletipcMode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ipcMode")inletplatformVersion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"platformVersion")inletexecutionRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionRoleArn")inletephemeralStorage=(Option.map~f:EphemeralStorage.of_xml)(Xml.childxml_arg0"ephemeralStorage")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inletcontainerInstanceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerInstanceArn")inletcontainers=(Option.map~f:ListTaskContainerDetails.of_xml)(Xml.childxml_arg0"containers")inmake?enableExecuteCommand?volumes?runtimePlatform?networkConfiguration?pidMode?taskRoleArn?ipcMode?platformVersion?executionRoleArn?ephemeralStorage?taskArn?containerInstanceArn?containers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenableExecuteCommand=field_mapjson__"enableExecuteCommand"Boolean.of_jsoninletvolumes=field_mapjson__"volumes"Volumes.of_jsoninletruntimePlatform=field_mapjson__"runtimePlatform"RuntimePlatform.of_jsoninletnetworkConfiguration=field_mapjson__"networkConfiguration"NetworkConfiguration.of_jsoninletpidMode=field_mapjson__"pidMode"String_.of_jsoninlettaskRoleArn=field_mapjson__"taskRoleArn"String_.of_jsoninletipcMode=field_mapjson__"ipcMode"String_.of_jsoninletplatformVersion=field_mapjson__"platformVersion"String_.of_jsoninletexecutionRoleArn=field_mapjson__"executionRoleArn"String_.of_jsoninletephemeralStorage=field_mapjson__"ephemeralStorage"EphemeralStorage.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninletcontainerInstanceArn=field_mapjson__"containerInstanceArn"String_.of_jsoninletcontainers=field_mapjson__"containers"ListTaskContainerDetails.of_jsoninmake?enableExecuteCommand?volumes?runtimePlatform?networkConfiguration?pidMode?taskRoleArn?ipcMode?platformVersion?executionRoleArn?ephemeralStorage?taskArn?containerInstanceArn?containers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a task definition that describes the container and volume definitions of an Amazon ECS task."]moduleEksAttemptContainerDetails=structtypenonrect=EksAttemptContainerDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksAttemptContainerDetail.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:EksAttemptContainerDetail.of_xml)letof_jsonj=list_of_json~kind:"EksAttemptContainerDetails"~of_json:EksAttemptContainerDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksContainerDetails=structtypenonrect=EksContainerDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksContainerDetail.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:EksContainerDetail.of_xml)letof_jsonj=list_of_json~kind:"EksContainerDetails"~of_json:EksContainerDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleArrayJobDependency=structtypenonrect=|N_TO_N|SEQUENTIAL|Non_static_idofstringletmakei=iletto_string=function|N_TO_N->"N_TO_N"|SEQUENTIAL->"SEQUENTIAL"|Non_static_ids->sletof_string=function|"N_TO_N"->N_TO_N|"SEQUENTIAL"->SEQUENTIAL|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 ArrayJobDependency"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ArrayJobDependency"j)letto_json=simple_to_jsonto_valueendmoduleNodeRangeProperty=structtypenonrect={targetNodes:String_.t[@ocaml.doc"The range of nodes, using node index values. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n). You can nest node ranges (for example, 0:10 and 4:5). In this case, the 4:5 range properties override the 0:10 properties."];container:ContainerProperties.toption[@ocaml.doc"The container details for the node range."];instanceTypes:StringList.toption[@ocaml.doc"The instance types of the underlying host infrastructure of a multi-node parallel job. This parameter isn't applicable to jobs that are running on Fargate resources. In addition, this list object is currently limited to one element."];ecsProperties:EcsProperties.toption[@ocaml.doc"This is an object that represents the properties of the node range for a multi-node parallel job."];eksProperties:EksProperties.toption[@ocaml.doc"This is an object that represents the properties of the node range for a multi-node parallel job."];consumableResourceProperties:ConsumableResourceProperties.toption[@ocaml.doc"Contains a list of consumable resources required by a job."]}letcontext_="NodeRangeProperty"letmake?container=fun?instanceTypes->fun?ecsProperties->fun?eksProperties->fun?consumableResourceProperties->fun~targetNodes->fun()->{container;instanceTypes;ecsProperties;eksProperties;consumableResourceProperties;targetNodes}letto_valuex=structure_to_value[("targetNodes",(Some(String_.to_valuex.targetNodes)));("container",(Option.mapx.container~f:ContainerProperties.to_value));("instanceTypes",(Option.mapx.instanceTypes~f:StringList.to_value));("ecsProperties",(Option.mapx.ecsProperties~f:EcsProperties.to_value));("eksProperties",(Option.mapx.eksProperties~f:EksProperties.to_value));("consumableResourceProperties",(Option.mapx.consumableResourceProperties~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceProperties=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourceProperties")inleteksProperties=(Option.map~f:EksProperties.of_xml)(Xml.childxml_arg0"eksProperties")inletecsProperties=(Option.map~f:EcsProperties.of_xml)(Xml.childxml_arg0"ecsProperties")inletinstanceTypes=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"instanceTypes")inletcontainer=(Option.map~f:ContainerProperties.of_xml)(Xml.childxml_arg0"container")inlettargetNodes=String_.of_xml(Xml.child_exn~context:context_xml_arg0"targetNodes")inmake?consumableResourceProperties?eksProperties?ecsProperties?instanceTypes?container~targetNodes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceProperties=field_mapjson__"consumableResourceProperties"ConsumableResourceProperties.of_jsoninleteksProperties=field_mapjson__"eksProperties"EksProperties.of_jsoninletecsProperties=field_mapjson__"ecsProperties"EcsProperties.of_jsoninletinstanceTypes=field_mapjson__"instanceTypes"StringList.of_jsoninletcontainer=field_mapjson__"container"ContainerProperties.of_jsoninlettargetNodes=field_map_exnjson__"targetNodes"String_.of_jsoninmake?consumableResourceProperties?eksProperties?ecsProperties?instanceTypes?container~targetNodes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is an object that represents the properties of the node range for a multi-node parallel job."]moduleEvaluateOnExit=structtypenonrect={onStatusReason:String_.toption[@ocaml.doc"Contains a glob pattern to match against the StatusReason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white spaces (including spaces or tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match."];onReason:String_.toption[@ocaml.doc"Contains a glob pattern to match against the Reason returned for a job. The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match."];onExitCode:String_.toption[@ocaml.doc"Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job. The pattern can be up to 512 characters long. It can contain only numbers, and can end with an asterisk (*) so that only the start of the string needs to be an exact match. The string can contain up to 512 characters."];action:RetryAction.t[@ocaml.doc"Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive."]}letcontext_="EvaluateOnExit"letmake?onStatusReason=fun?onReason->fun?onExitCode->fun~action->fun()->{onStatusReason;onReason;onExitCode;action}letto_valuex=structure_to_value[("onStatusReason",(Option.mapx.onStatusReason~f:String_.to_value));("onReason",(Option.mapx.onReason~f:String_.to_value));("onExitCode",(Option.mapx.onExitCode~f:String_.to_value));("action",(Some(RetryAction.to_valuex.action)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=RetryAction.of_xml(Xml.child_exn~context:context_xml_arg0"action")inletonExitCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"onExitCode")inletonReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"onReason")inletonStatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"onStatusReason")inmake~action?onExitCode?onReason?onStatusReason()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_map_exnjson__"action"RetryAction.of_jsoninletonExitCode=field_mapjson__"onExitCode"String_.of_jsoninletonReason=field_mapjson__"onReason"String_.of_jsoninletonStatusReason=field_mapjson__"onStatusReason"String_.of_jsoninmake~action?onExitCode?onReason?onStatusReason()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies an array of up to 5 conditions to be met, and an action to take (RETRY or EXIT) if all conditions are met. If none of the EvaluateOnExit conditions in a RetryStrategy match, then the job is retried."]moduleJobStateTimeLimitActionsAction=structtypenonrect=|CANCEL|TERMINATE|Non_static_idofstringletmakei=iletto_string=function|CANCEL->"CANCEL"|TERMINATE->"TERMINATE"|Non_static_ids->sletof_string=function|"CANCEL"->CANCEL|"TERMINATE"->TERMINATE|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 JobStateTimeLimitActionsAction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobStateTimeLimitActionsAction"j)letto_json=simple_to_jsonto_valueendmoduleJobStateTimeLimitActionsState=structtypenonrect=|RUNNABLE|Non_static_idofstringletmakei=iletto_string=function|RUNNABLE->"RUNNABLE"|Non_static_ids->sletof_string=function|"RUNNABLE"->RUNNABLE|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 JobStateTimeLimitActionsState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobStateTimeLimitActionsState"j)letto_json=simple_to_jsonto_valueendmoduleEc2Configuration=structtypenonrect={imageType:ImageType.t[@ocaml.doc"The image type to match with the instance type to select an AMI. The supported values are different for ECS and EKS resources. ECS If the imageIdOverride parameter isn't specified, then a recent Amazon ECS-optimized Amazon Linux 2023 AMI (ECS_AL2023) is used. If a new image type is specified in an update, but neither an imageId nor a imageIdOverride parameter is specified, then the latest Amazon ECS optimized AMI for that image type that's supported by Batch is used. Amazon Web Services is ending support for Amazon ECS Amazon Linux 2-optimized and accelerated AMIs on June 30, 2026. On January 12, 2026, Batch changed the default AMI for new Amazon ECS compute environments from Amazon Linux 2 to Amazon Linux 2023. Effective June 30, 2026, Batch will block creation of new Amazon ECS compute environments using Batch-provided Amazon Linux 2 AMIs. We strongly recommend migrating your existing Batch Amazon ECS compute environments to Amazon Linux 2023 prior to June 30, 2026. For more information on upgrading from AL2 to AL2023, see How to migrate from ECS AL2 to ECS AL2023 in the Batch User Guide. ECS_AL2 Amazon Linux 2: Used for non-GPU instance families. ECS_AL2_NVIDIA Amazon Linux 2 (GPU): Used for GPU instance families (for example P4 and G4) and non Amazon Web Services Graviton-based instance types. ECS_AL2023 Amazon Linux 2023: Default for all non-GPU instance families. Amazon Linux 2023 does not support A1 instances. ECS_AL2023_NVIDIA Amazon Linux 2023 (GPU): Default for all GPU instance families and can be used for all non Amazon Web Services Graviton-based instance types. ECS_AL2023_NVIDIA doesn't support p3 and g3 instance types. EKS If the imageIdOverride parameter isn't specified, then a recent Amazon EKS-optimized Amazon Linux 2023 AMI (EKS_AL2023) is used. If a new image type is specified in an update, but neither an imageId nor a imageIdOverride parameter is specified, then the latest Amazon EKS optimized AMI for that image type that Batch supports is used. Amazon Linux 2023 AMIs are the default on Batch for Amazon EKS. Amazon Web Services ended support for Amazon EKS AL2-optimized and AL2-accelerated AMIs on November 26, 2025. Batch Amazon EKS compute environments using Amazon Linux 2 will no longer receive software updates, security patches, or bug fixes from Amazon Web Services. We recommend migrating to Amazon Linux 2023. For more information on upgrading from AL2 to AL2023, see How to upgrade from EKS AL2 to EKS AL2023 in the Batch User Guide. EKS_AL2 Amazon Linux 2: Used for non-GPU instance families. EKS_AL2_NVIDIA Amazon Linux 2 (accelerated): Used for GPU instance families (for example, P4 and G4) and can be used for all non Amazon Web Services Graviton-based instance types. EKS_AL2023 Amazon Linux 2023: Default for non-GPU instance families. Amazon Linux 2023 does not support A1 instances. EKS_AL2023_NVIDIA Amazon Linux 2023 (accelerated): Default for GPU instance families and can be used for all non Amazon Web Services Graviton-based instance types."];imageIdOverride:ImageIdOverride.toption[@ocaml.doc"The AMI ID used for instances launched in the compute environment that match the image type. This setting overrides the imageId set in the computeResource object. The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2023 AMI. For more information, see Amazon ECS-optimized Amazon Linux 2023 AMI in the Amazon Elastic Container Service Developer Guide."];batchImageStatus:String_.toption[@ocaml.doc"The status of the Batch-provided default AMIs associated with the imageType. The field only appears after the compute environment has begun scaling instances using the imageType. The field is not present when an image is specified in ComputeResources.imageId (deprecated), the default launch template, or Ec2Configuration.imageIdOverride. The field is also not present when the compute environment has a launch template override. For more information on image selection, see AMI selection order. This field is read-only and only appears in the DescribeComputeEnvironments response. LATEST \226\136\146 Using the most recent AMI supported UPDATE_AVAILABLE \226\136\146 An updated AMI is available If a compute environment has multiple AMIs for the imageType and any one AMI has UPDATE_AVAILABLE, the status shows UPDATE_AVAILABLE. For compute environments that use BEST_FIT as their allocation strategy, you can perform a blue/green update to update the AMI. For all other compute environments, you can perform an AMI version update to update the AMI to the latest version."];imageKubernetesVersion:KubernetesVersion.toption[@ocaml.doc"The Kubernetes version for the compute environment. If you don't specify a value, the latest version that Batch supports is used."]}letcontext_="Ec2Configuration"letmake?imageIdOverride=fun?batchImageStatus->fun?imageKubernetesVersion->fun~imageType->fun()->{imageIdOverride;batchImageStatus;imageKubernetesVersion;imageType}letto_valuex=structure_to_value[("imageType",(Some(ImageType.to_valuex.imageType)));("imageIdOverride",(Option.mapx.imageIdOverride~f:ImageIdOverride.to_value));("batchImageStatus",(Option.mapx.batchImageStatus~f:String_.to_value));("imageKubernetesVersion",(Option.mapx.imageKubernetesVersion~f:KubernetesVersion.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letimageKubernetesVersion=(Option.map~f:KubernetesVersion.of_xml)(Xml.childxml_arg0"imageKubernetesVersion")inletbatchImageStatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"batchImageStatus")inletimageIdOverride=(Option.map~f:ImageIdOverride.of_xml)(Xml.childxml_arg0"imageIdOverride")inletimageType=ImageType.of_xml(Xml.child_exn~context:context_xml_arg0"imageType")inmake?imageKubernetesVersion?batchImageStatus?imageIdOverride~imageType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letimageKubernetesVersion=field_mapjson__"imageKubernetesVersion"KubernetesVersion.of_jsoninletbatchImageStatus=field_mapjson__"batchImageStatus"String_.of_jsoninletimageIdOverride=field_mapjson__"imageIdOverride"ImageIdOverride.of_jsoninletimageType=field_map_exnjson__"imageType"ImageType.of_jsoninmake?imageKubernetesVersion?batchImageStatus?imageIdOverride~imageType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If Ec2Configuration isn't specified, the default is ECS_AL2023 (Amazon ECS-optimized Amazon Linux 2023) for EC2 (ECS) compute environments and EKS_AL2023 (Amazon EKS-optimized Amazon Linux 2023 AMI) for EKS compute environments. This object isn't applicable to jobs that are running on Fargate resources."]moduleLaunchTemplateSpecificationOverrideList=structtypenonrect=LaunchTemplateSpecificationOverride.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LaunchTemplateSpecificationOverride.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:LaunchTemplateSpecificationOverride.of_xml)letof_jsonj=list_of_json~kind:"LaunchTemplateSpecificationOverrideList"~of_json:LaunchTemplateSpecificationOverride.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobRetryAction=structtypenonrect=|RETRY|EXIT|Non_static_idofstringletmakei=iletto_string=function|RETRY->"RETRY"|EXIT->"EXIT"|Non_static_ids->sletof_string=function|"RETRY"->RETRY|"EXIT"->EXIT|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 ServiceJobRetryAction"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceJobRetryAction"j)letto_json=simple_to_jsonto_valueendmoduleContainerOverrides=structtypenonrect={vcpus:Integer.toption[@ocaml.doc"This parameter is deprecated, use resourceRequirements to override the vcpus parameter that's set in the job definition. It's not supported for jobs running on Fargate resources. For jobs that run on Amazon EC2 resources, it overrides the vcpus parameter set in the job definition, but doesn't override any vCPU requirement specified in the resourceRequirements structure in the job definition. To override vCPU requirements that are specified in the resourceRequirements structure in the job definition, resourceRequirements must be specified in the SubmitJob request, with type set to VCPU and value set to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide."];memory:Integer.toption[@ocaml.doc"This parameter is deprecated, use resourceRequirements to override the memory requirements specified in the job definition. It's not supported for jobs running on Fargate resources. For jobs that run on Amazon EC2 resources, it overrides the memory parameter set in the job definition, but doesn't override any memory requirement that's specified in the resourceRequirements structure in the job definition. To override memory requirements that are specified in the resourceRequirements structure in the job definition, resourceRequirements must be specified in the SubmitJob request, with type set to MEMORY and value set to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide."];command:StringList.toption[@ocaml.doc"The command to send to the container that overrides the default command from the Docker image or the job definition. This parameter can't contain an empty string."];instanceType:String_.toption[@ocaml.doc"The instance type to use for a multi-node parallel job. This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided."];environment:EnvironmentVariables.toption[@ocaml.doc"The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition. Environment variables cannot start with \"AWS_BATCH\". This naming convention is reserved for variables that Batch sets."];resourceRequirements:ResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include GPU, MEMORY, and VCPU."]}letmake?vcpus=fun?memory->fun?command->fun?instanceType->fun?environment->fun?resourceRequirements->fun()->{vcpus;memory;command;instanceType;environment;resourceRequirements}letto_valuex=structure_to_value[("vcpus",(Option.mapx.vcpus~f:Integer.to_value));("memory",(Option.mapx.memory~f:Integer.to_value));("command",(Option.mapx.command~f:StringList.to_value));("instanceType",(Option.mapx.instanceType~f:String_.to_value));("environment",(Option.mapx.environment~f:EnvironmentVariables.to_value));("resourceRequirements",(Option.mapx.resourceRequirements~f:ResourceRequirements.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceRequirements=(Option.map~f:ResourceRequirements.of_xml)(Xml.childxml_arg0"resourceRequirements")inletenvironment=(Option.map~f:EnvironmentVariables.of_xml)(Xml.childxml_arg0"environment")inletinstanceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceType")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inletmemory=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"memory")inletvcpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"vcpus")inmake?resourceRequirements?environment?instanceType?command?memory?vcpus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceRequirements=field_mapjson__"resourceRequirements"ResourceRequirements.of_jsoninletenvironment=field_mapjson__"environment"EnvironmentVariables.of_jsoninletinstanceType=field_mapjson__"instanceType"String_.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninletmemory=field_mapjson__"memory"Integer.of_jsoninletvcpus=field_mapjson__"vcpus"Integer.of_jsoninmake?resourceRequirements?environment?instanceType?command?memory?vcpus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The overrides that should be sent to a container. For information about using Batch overrides when you connect event sources to targets, see BatchContainerOverrides."]moduleEcsPropertiesOverride=structtypenonrect={taskProperties:ListTaskPropertiesOverride.toption[@ocaml.doc"The overrides for the Amazon ECS task definition of a job. This object is currently limited to one element."]}letmake?taskProperties=fun()->{taskProperties}letto_valuex=structure_to_value[("taskProperties",(Option.mapx.taskProperties~f:ListTaskPropertiesOverride.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskProperties=(Option.map~f:ListTaskPropertiesOverride.of_xml)(Xml.childxml_arg0"taskProperties")inmake?taskProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskProperties=field_mapjson__"taskProperties"ListTaskPropertiesOverride.of_jsoninmake?taskProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains overrides for the Amazon ECS task definition of a job."]moduleEksPropertiesOverride=structtypenonrect={podProperties:EksPodPropertiesOverride.toption[@ocaml.doc"The overrides for the Kubernetes pod resources of a job."]}letmake?podProperties=fun()->{podProperties}letto_valuex=structure_to_value[("podProperties",(Option.mapx.podProperties~f:EksPodPropertiesOverride.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpodProperties=(Option.map~f:EksPodPropertiesOverride.of_xml)(Xml.childxml_arg0"podProperties")inmake?podProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpodProperties=field_mapjson__"podProperties"EksPodPropertiesOverride.of_jsoninmake?podProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains overrides for the Kubernetes resources of a job."]moduleServiceResourceId=structtypenonrect={name:ServiceResourceIdName.toption[@ocaml.doc"The name of the resource identifier."];value:String_.toption[@ocaml.doc"The value of the resource identifier."]}letmake?name=fun?value->fun()->{name;value}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:ServiceResourceIdName.to_value));("value",(Option.mapx.value~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"value")inletname=(Option.map~f:ServiceResourceIdName.of_xml)(Xml.childxml_arg0"name")inmake?value?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"String_.of_jsoninletname=field_mapjson__"name"ServiceResourceIdName.of_jsoninmake?value?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The Batch unique identifier."]moduleServiceJobCapacityUsageSummary=structtypenonrect={capacityUnit:String_.toption[@ocaml.doc"The unit of measure for the service job capacity usage. For service jobs, this is the instance type."];quantity:Double.toption[@ocaml.doc"The quantity of capacity being used by the service job, measured in the units specified by capacityUnit."]}letmake?capacityUnit=fun?quantity->fun()->{capacityUnit;quantity}letto_valuex=structure_to_value[("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"quantity")inletcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inmake?quantity?capacityUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Double.of_jsoninletcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninmake?quantity?capacityUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity usage for a service job, including the unit of measure and quantity of resources being used."]moduleQuotaShareCapacityLimit=structtypenonrect={maxCapacity:Integer.t[@ocaml.doc"The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing."];capacityUnit:String_.t[@ocaml.doc"The unit of compute capacity for the capacityLimit. For example, ml.m5.large."]}letcontext_="QuotaShareCapacityLimit"letmake~maxCapacity=fun~capacityUnit->fun()->{maxCapacity;capacityUnit}letto_valuex=structure_to_value[("maxCapacity",(Some(Integer.to_valuex.maxCapacity)));("capacityUnit",(Some(String_.to_valuex.capacityUnit)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityUnit=String_.of_xml(Xml.child_exn~context:context_xml_arg0"capacityUnit")inletmaxCapacity=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"maxCapacity")inmake~capacityUnit~maxCapacity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityUnit=field_map_exnjson__"capacityUnit"String_.of_jsoninletmaxCapacity=field_map_exnjson__"maxCapacity"Integer.of_jsoninmake~capacityUnit~maxCapacity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the capacity limit for a quota share, or the type and maximum quantity of a particular resource that can be allocated to jobs in the quota share without borrowing."]moduleQuotaShareInSharePreemptionState=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration QuotaShareInSharePreemptionState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QuotaShareInSharePreemptionState"j)letto_json=simple_to_jsonto_valueendmoduleQuotaShareResourceSharingStrategy=structtypenonrect=|RESERVE|LEND|LEND_AND_BORROW|Non_static_idofstringletmakei=iletto_string=function|RESERVE->"RESERVE"|LEND->"LEND"|LEND_AND_BORROW->"LEND_AND_BORROW"|Non_static_ids->sletof_string=function|"RESERVE"->RESERVE|"LEND"->LEND|"LEND_AND_BORROW"->LEND_AND_BORROW|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 QuotaShareResourceSharingStrategy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QuotaShareResourceSharingStrategy"j)letto_json=simple_to_jsonto_valueendmoduleArrayJobStatusSummary=structtypenonrect=(String_.t*Integer.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(Integer.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(Integer.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:Integer.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobCapacityUsageSummary=structtypenonrect={capacityUnit:String_.toption[@ocaml.doc"The unit of measure for the capacity usage. This is VCPU for Amazon EC2 and cpu for Amazon EKS."];quantity:Double.toption[@ocaml.doc"The quantity of capacity being used by the job, measured in the units specified by capacityUnit."]}letmake?capacityUnit=fun?quantity->fun()->{capacityUnit;quantity}letto_valuex=structure_to_value[("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"quantity")inletcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inmake?quantity?capacityUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Double.of_jsoninletcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninmake?quantity?capacityUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity usage for a job, including the unit of measure and quantity of resources being used."]moduleFrontOfQuotaShareJobSummary=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The ARN for a job in a named quota share."];earliestTimeAtPosition:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job transitioned to its current position in the quota share."]}letmake?jobArn=fun?earliestTimeAtPosition->fun()->{jobArn;earliestTimeAtPosition}letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("earliestTimeAtPosition",(Option.mapx.earliestTimeAtPosition~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letearliestTimeAtPosition=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"earliestTimeAtPosition")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?earliestTimeAtPosition?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letearliestTimeAtPosition=field_mapjson__"earliestTimeAtPosition"Long.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?earliestTimeAtPosition?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents summary details for the first RUNNABLE job in a quota share."]moduleFairshareCapacityUtilization=structtypenonrect={shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the fairshare scheduling job queue."];capacityUsage:FairshareCapacityUsageList.toption[@ocaml.doc"The capacity usage information for this share, including the unit of measure and quantity being used. This is VCPU for Amazon EC2 and cpu for Amazon EKS."]}letmake?shareIdentifier=fun?capacityUsage->fun()->{shareIdentifier;capacityUsage}letto_valuex=structure_to_value[("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("capacityUsage",(Option.mapx.capacityUsage~f:FairshareCapacityUsageList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityUsage=(Option.map~f:FairshareCapacityUsageList.of_xml)(Xml.childxml_arg0"capacityUsage")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inmake?capacityUsage?shareIdentifier()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityUsage=field_mapjson__"capacityUsage"FairshareCapacityUsageList.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninmake?capacityUsage?shareIdentifier()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity utilization for a specific share in a fairshare scheduling job queue, including the share identifier and its current usage."]moduleQuotaShareCapacityUtilization=structtypenonrect={quotaShareName:String_.toption[@ocaml.doc"The name of the quota share."];capacityUsage:QuotaShareCapacityUsageList.toption[@ocaml.doc"The capacity usage information for this quota share, including the units of compute capacity and quantity being used."]}letmake?quotaShareName=fun?capacityUsage->fun()->{quotaShareName;capacityUsage}letto_valuex=structure_to_value[("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("capacityUsage",(Option.mapx.capacityUsage~f:QuotaShareCapacityUsageList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityUsage=(Option.map~f:QuotaShareCapacityUsageList.of_xml)(Xml.childxml_arg0"capacityUsage")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inmake?capacityUsage?quotaShareName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityUsage=field_mapjson__"capacityUsage"QuotaShareCapacityUsageList.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninmake?capacityUsage?quotaShareName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity utilization for a specific quota share, including the quota share name and its current usage."]moduleCapacityLimit=structtypenonrect={maxCapacity:Integer.toption[@ocaml.doc"The maximum capacity available for the service environment. For a quota management enabled service environment, this value represents the maximum quantity of a particular resource type (specified by capacityUnit) that can be allocated to service jobs. For other service environments, this value represents the maximum quantity of all resources that can be allocated to service jobs. For example, if maxCapacity=50 and capacityUnit=NUM_INSTANCES, you can run up to 50 instances concurrently. If you run 5 SageMaker Training jobs that each use 10 instances, a subsequent job requiring 10 instances waits in the queue until capacity is available. In a quota management enabled service environment with capacityUnit=ml.m5.large, only ml.m5.large instances count against this limit, and jobs requiring other instance types wait until a matching capacity limit is configured."];capacityUnit:String_.toption[@ocaml.doc"The unit of measure for the capacity limit, which defines how maxCapacity is interpreted. For SAGEMAKER_TRAINING jobs in a quota management enabled service environment, specify the instance type (for example, ml.m5.large). Otherwise, use NUM_INSTANCES."]}letmake?maxCapacity=fun?capacityUnit->fun()->{maxCapacity;capacityUnit}letto_valuex=structure_to_value[("maxCapacity",(Option.mapx.maxCapacity~f:Integer.to_value));("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inletmaxCapacity=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxCapacity")inmake?capacityUnit?maxCapacity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninletmaxCapacity=field_mapjson__"maxCapacity"Integer.of_jsoninmake?capacityUnit?maxCapacity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the type and maximum quantity of resources that can be allocated to service jobs in a service environment."]moduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:256);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_valueendmoduleShareAttributesList=structtypenonrect=ShareAttributes.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ShareAttributes.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:ShareAttributes.of_xml)letof_jsonj=list_of_json~kind:"ShareAttributesList"~of_json:ShareAttributes.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQuotaShareIdleResourceAssignmentStrategy=structtypenonrect=|FIFO|Non_static_idofstringletmakei=iletto_string=function|FIFO->"FIFO"|Non_static_ids->sletof_string=function|"FIFO"->FIFO|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 QuotaShareIdleResourceAssignmentStrategy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QuotaShareIdleResourceAssignmentStrategy"j)letto_json=simple_to_jsonto_valueendmoduleAttemptDetail=structtypenonrect={container:AttemptContainerDetail.toption[@ocaml.doc"The details for the container in this job attempt."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state)."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED)."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide additional details for the current status of the job attempt."];taskProperties:ListAttemptEcsTaskDetails.toption[@ocaml.doc"The properties for a task definition that describes the container and volume definitions of an Amazon ECS task."]}letmake?container=fun?startedAt->fun?stoppedAt->fun?statusReason->fun?taskProperties->fun()->{container;startedAt;stoppedAt;statusReason;taskProperties}letto_valuex=structure_to_value[("container",(Option.mapx.container~f:AttemptContainerDetail.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("taskProperties",(Option.mapx.taskProperties~f:ListAttemptEcsTaskDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskProperties=(Option.map~f:ListAttemptEcsTaskDetails.of_xml)(Xml.childxml_arg0"taskProperties")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletcontainer=(Option.map~f:AttemptContainerDetail.of_xml)(Xml.childxml_arg0"container")inmake?taskProperties?statusReason?stoppedAt?startedAt?container()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskProperties=field_mapjson__"taskProperties"ListAttemptEcsTaskDetails.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletcontainer=field_mapjson__"container"AttemptContainerDetail.of_jsoninmake?taskProperties?statusReason?stoppedAt?startedAt?container()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a job attempt."]moduleListEcsTaskDetails=structtypenonrect=EcsTaskDetails.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EcsTaskDetails.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:EcsTaskDetails.of_xml)letof_jsonj=list_of_json~kind:"ListEcsTaskDetails"~of_json:EcsTaskDetails.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksAttemptDetail=structtypenonrect={containers:EksAttemptContainerDetails.toption[@ocaml.doc"The details for the final status of the containers for this job attempt."];initContainers:EksAttemptContainerDetails.toption[@ocaml.doc"The details for the init containers."];eksClusterArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon EKS cluster."];podName:String_.toption[@ocaml.doc"The name of the pod for this job attempt."];podNamespace:String_.toption[@ocaml.doc"The namespace of the Amazon EKS cluster that the pod exists in."];nodeName:String_.toption[@ocaml.doc"The name of the node for this job attempt."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state)."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the attempt was stopped. This happens when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide additional details for the current status of the job attempt."]}letmake?containers=fun?initContainers->fun?eksClusterArn->fun?podName->fun?podNamespace->fun?nodeName->fun?startedAt->fun?stoppedAt->fun?statusReason->fun()->{containers;initContainers;eksClusterArn;podName;podNamespace;nodeName;startedAt;stoppedAt;statusReason}letto_valuex=structure_to_value[("containers",(Option.mapx.containers~f:EksAttemptContainerDetails.to_value));("initContainers",(Option.mapx.initContainers~f:EksAttemptContainerDetails.to_value));("eksClusterArn",(Option.mapx.eksClusterArn~f:String_.to_value));("podName",(Option.mapx.podName~f:String_.to_value));("podNamespace",(Option.mapx.podNamespace~f:String_.to_value));("nodeName",(Option.mapx.nodeName~f:String_.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletnodeName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nodeName")inletpodNamespace=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"podNamespace")inletpodName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"podName")inleteksClusterArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"eksClusterArn")inletinitContainers=(Option.map~f:EksAttemptContainerDetails.of_xml)(Xml.childxml_arg0"initContainers")inletcontainers=(Option.map~f:EksAttemptContainerDetails.of_xml)(Xml.childxml_arg0"containers")inmake?statusReason?stoppedAt?startedAt?nodeName?podNamespace?podName?eksClusterArn?initContainers?containers()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletnodeName=field_mapjson__"nodeName"String_.of_jsoninletpodNamespace=field_mapjson__"podNamespace"String_.of_jsoninletpodName=field_mapjson__"podName"String_.of_jsoninleteksClusterArn=field_mapjson__"eksClusterArn"String_.of_jsoninletinitContainers=field_mapjson__"initContainers"EksAttemptContainerDetails.of_jsoninletcontainers=field_mapjson__"containers"EksAttemptContainerDetails.of_jsoninmake?statusReason?stoppedAt?startedAt?nodeName?podNamespace?podName?eksClusterArn?initContainers?containers()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a job attempt for a job attempt by an Amazon EKS container."]moduleEksPodPropertiesDetail=structtypenonrect={serviceAccountName:String_.toption[@ocaml.doc"The name of the service account that's used to run the pod. For more information, see Kubernetes service accounts and Configure a Kubernetes service account to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes documentation."];hostNetwork:Boolean.toption[@ocaml.doc"Indicates if the pod uses the hosts' network IP address. The default value is true. Setting this to false enables the Kubernetes pod networking model. Most Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see Host namespaces and Pod networking in the Kubernetes documentation."];dnsPolicy:String_.toption[@ocaml.doc"The DNS policy for the pod. The default value is ClusterFirst. If the hostNetwork parameter is not specified, the default is ClusterFirstWithHostNet. ClusterFirst indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. If no value was specified for dnsPolicy in the RegisterJobDefinition API operation, then no value will be returned for dnsPolicy by either of DescribeJobDefinitions or DescribeJobs API operations. The pod spec setting will contain either ClusterFirst or ClusterFirstWithHostNet, depending on the value of the hostNetwork parameter. For more information, see Pod's DNS policy in the Kubernetes documentation. Valid values: Default | ClusterFirst | ClusterFirstWithHostNet"];imagePullSecrets:ImagePullSecrets.toption[@ocaml.doc"Displays the reference pointer to the Kubernetes secret resource. These secrets help to gain access to pull an images from a private registry."];containers:EksContainerDetails.toption[@ocaml.doc"The properties of the container that's used on the Amazon EKS pod."];initContainers:EksContainerDetails.toption[@ocaml.doc"The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store."];volumes:EksVolumes.toption[@ocaml.doc"Specifies the volumes for a job definition using Amazon EKS resources."];podName:String_.toption[@ocaml.doc"The name of the pod for this job."];nodeName:String_.toption[@ocaml.doc"The name of the node for this job."];metadata:EksMetadata.toption[@ocaml.doc"Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the jobID for a job running in the pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation."];shareProcessNamespace:Boolean.toption[@ocaml.doc"Indicates if the processes in a container are shared, or visible, to other containers in the same pod. For more information, see Share Process Namespace between Containers in a Pod."]}letmake?serviceAccountName=fun?hostNetwork->fun?dnsPolicy->fun?imagePullSecrets->fun?containers->fun?initContainers->fun?volumes->fun?podName->fun?nodeName->fun?metadata->fun?shareProcessNamespace->fun()->{serviceAccountName;hostNetwork;dnsPolicy;imagePullSecrets;containers;initContainers;volumes;podName;nodeName;metadata;shareProcessNamespace}letto_valuex=structure_to_value[("serviceAccountName",(Option.mapx.serviceAccountName~f:String_.to_value));("hostNetwork",(Option.mapx.hostNetwork~f:Boolean.to_value));("dnsPolicy",(Option.mapx.dnsPolicy~f:String_.to_value));("imagePullSecrets",(Option.mapx.imagePullSecrets~f:ImagePullSecrets.to_value));("containers",(Option.mapx.containers~f:EksContainerDetails.to_value));("initContainers",(Option.mapx.initContainers~f:EksContainerDetails.to_value));("volumes",(Option.mapx.volumes~f:EksVolumes.to_value));("podName",(Option.mapx.podName~f:String_.to_value));("nodeName",(Option.mapx.nodeName~f:String_.to_value));("metadata",(Option.mapx.metadata~f:EksMetadata.to_value));("shareProcessNamespace",(Option.mapx.shareProcessNamespace~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshareProcessNamespace=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"shareProcessNamespace")inletmetadata=(Option.map~f:EksMetadata.of_xml)(Xml.childxml_arg0"metadata")inletnodeName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nodeName")inletpodName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"podName")inletvolumes=(Option.map~f:EksVolumes.of_xml)(Xml.childxml_arg0"volumes")inletinitContainers=(Option.map~f:EksContainerDetails.of_xml)(Xml.childxml_arg0"initContainers")inletcontainers=(Option.map~f:EksContainerDetails.of_xml)(Xml.childxml_arg0"containers")inletimagePullSecrets=(Option.map~f:ImagePullSecrets.of_xml)(Xml.childxml_arg0"imagePullSecrets")inletdnsPolicy=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"dnsPolicy")inlethostNetwork=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"hostNetwork")inletserviceAccountName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceAccountName")inmake?shareProcessNamespace?metadata?nodeName?podName?volumes?initContainers?containers?imagePullSecrets?dnsPolicy?hostNetwork?serviceAccountName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshareProcessNamespace=field_mapjson__"shareProcessNamespace"Boolean.of_jsoninletmetadata=field_mapjson__"metadata"EksMetadata.of_jsoninletnodeName=field_mapjson__"nodeName"String_.of_jsoninletpodName=field_mapjson__"podName"String_.of_jsoninletvolumes=field_mapjson__"volumes"EksVolumes.of_jsoninletinitContainers=field_mapjson__"initContainers"EksContainerDetails.of_jsoninletcontainers=field_mapjson__"containers"EksContainerDetails.of_jsoninletimagePullSecrets=field_mapjson__"imagePullSecrets"ImagePullSecrets.of_jsoninletdnsPolicy=field_mapjson__"dnsPolicy"String_.of_jsoninlethostNetwork=field_mapjson__"hostNetwork"Boolean.of_jsoninletserviceAccountName=field_mapjson__"serviceAccountName"String_.of_jsoninmake?shareProcessNamespace?metadata?nodeName?podName?volumes?initContainers?containers?imagePullSecrets?dnsPolicy?hostNetwork?serviceAccountName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details for the pod."]moduleJobDependency=structtypenonrect={jobId:String_.toption[@ocaml.doc"The job ID of the Batch job that's associated with this dependency."];type_:ArrayJobDependency.toption[@ocaml.doc"The type of the job dependency."]}letmake?jobId=fun?type_->fun()->{jobId;type_}letto_valuex=structure_to_value[("jobId",(Option.mapx.jobId~f:String_.to_value));("type",(Option.mapx.type_~f:ArrayJobDependency.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:ArrayJobDependency.of_xml)(Xml.childxml_arg0"type")inletjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inmake?type_?jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"type"ArrayJobDependency.of_jsoninletjobId=field_mapjson__"jobId"String_.of_jsoninmake?type_?jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Batch job dependency."]moduleNodeRangeProperties=structtypenonrect=NodeRangeProperty.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NodeRangeProperty.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:NodeRangeProperty.of_xml)letof_jsonj=list_of_json~kind:"NodeRangeProperties"~of_json:NodeRangeProperty.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePlatformCapability=structtypenonrect=|EC2|FARGATE|Non_static_idofstringletmakei=iletto_string=function|EC2->"EC2"|FARGATE->"FARGATE"|Non_static_ids->sletof_string=function|"EC2"->EC2|"FARGATE"->FARGATE|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 PlatformCapability"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PlatformCapability"j)letto_json=simple_to_jsonto_valueendmoduleEvaluateOnExitList=structtypenonrect=EvaluateOnExit.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EvaluateOnExit.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:EvaluateOnExit.of_xml)letof_jsonj=list_of_json~kind:"EvaluateOnExitList"~of_json:EvaluateOnExit.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleComputeEnvironmentOrder=structtypenonrect={order:Integer.t[@ocaml.doc"The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first."];computeEnvironment:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the compute environment."]}letcontext_="ComputeEnvironmentOrder"letmake~order=fun~computeEnvironment->fun()->{order;computeEnvironment}letto_valuex=structure_to_value[("order",(Some(Integer.to_valuex.order)));("computeEnvironment",(Some(String_.to_valuex.computeEnvironment)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomputeEnvironment=String_.of_xml(Xml.child_exn~context:context_xml_arg0"computeEnvironment")inletorder=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"order")inmake~computeEnvironment~order()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomputeEnvironment=field_map_exnjson__"computeEnvironment"String_.of_jsoninletorder=field_map_exnjson__"order"Integer.of_jsoninmake~computeEnvironment~order()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The order that compute environments are tried in for job placement within a queue. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first. Compute environments must be in the VALID state before you can associate them with a job queue. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); Amazon EC2 and Fargate compute environments can't be mixed. All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue."]moduleJobStateTimeLimitAction=structtypenonrect={reason:String_.t[@ocaml.doc"The reason to log for the action being taken."];state:JobStateTimeLimitActionsState.t[@ocaml.doc"The state of the job needed to trigger the action. The only supported value is RUNNABLE."];maxTimeSeconds:Integer.t[@ocaml.doc"The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours)."];action:JobStateTimeLimitActionsAction.t[@ocaml.doc"The action to take when a job is at the head of the job queue in the specified state for the specified period of time. For job queues connected to a ECS, FARGATE or EKS compute environment, the only supported value is CANCEL, which will cancel the job. For job queues connected to a SAGEMAKER_TRAINING service environment, the only supported value is TERMINATE, which will terminate the job."]}letcontext_="JobStateTimeLimitAction"letmake~reason=fun~state->fun~maxTimeSeconds->fun~action->fun()->{reason;state;maxTimeSeconds;action}letto_valuex=structure_to_value[("reason",(Some(String_.to_valuex.reason)));("state",(Some(JobStateTimeLimitActionsState.to_valuex.state)));("maxTimeSeconds",(Some(Integer.to_valuex.maxTimeSeconds)));("action",(Some(JobStateTimeLimitActionsAction.to_valuex.action)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaction=JobStateTimeLimitActionsAction.of_xml(Xml.child_exn~context:context_xml_arg0"action")inletmaxTimeSeconds=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"maxTimeSeconds")inletstate=JobStateTimeLimitActionsState.of_xml(Xml.child_exn~context:context_xml_arg0"state")inletreason=String_.of_xml(Xml.child_exn~context:context_xml_arg0"reason")inmake~action~maxTimeSeconds~state~reason()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaction=field_map_exnjson__"action"JobStateTimeLimitActionsAction.of_jsoninletmaxTimeSeconds=field_map_exnjson__"maxTimeSeconds"Integer.of_jsoninletstate=field_map_exnjson__"state"JobStateTimeLimitActionsState.of_jsoninletreason=field_map_exnjson__"reason"String_.of_jsoninmake~action~maxTimeSeconds~state~reason()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies an action that Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time."]moduleServiceEnvironmentOrder=structtypenonrect={order:Integer.t[@ocaml.doc"The order of the service environment. Job queues with a higher priority are evaluated first when associated with the same service environment."];serviceEnvironment:String_.t[@ocaml.doc"The name or ARN of the service environment."]}letcontext_="ServiceEnvironmentOrder"letmake~order=fun~serviceEnvironment->fun()->{order;serviceEnvironment}letto_valuex=structure_to_value[("order",(Some(Integer.to_valuex.order)));("serviceEnvironment",(Some(String_.to_valuex.serviceEnvironment)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceEnvironment=String_.of_xml(Xml.child_exn~context:context_xml_arg0"serviceEnvironment")inletorder=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"order")inmake~serviceEnvironment~order()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceEnvironment=field_map_exnjson__"serviceEnvironment"String_.of_jsoninletorder=field_map_exnjson__"order"Integer.of_jsoninmake~serviceEnvironment~order()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the order of a service environment for a job queue. This determines the priority order when multiple service environments are associated with the same job queue."]moduleCRAllocationStrategy=structtypenonrect=|BEST_FIT|BEST_FIT_PROGRESSIVE|SPOT_CAPACITY_OPTIMIZED|SPOT_PRICE_CAPACITY_OPTIMIZED|Non_static_idofstringletmakei=iletto_string=function|BEST_FIT->"BEST_FIT"|BEST_FIT_PROGRESSIVE->"BEST_FIT_PROGRESSIVE"|SPOT_CAPACITY_OPTIMIZED->"SPOT_CAPACITY_OPTIMIZED"|SPOT_PRICE_CAPACITY_OPTIMIZED->"SPOT_PRICE_CAPACITY_OPTIMIZED"|Non_static_ids->sletof_string=function|"BEST_FIT"->BEST_FIT|"BEST_FIT_PROGRESSIVE"->BEST_FIT_PROGRESSIVE|"SPOT_CAPACITY_OPTIMIZED"->SPOT_CAPACITY_OPTIMIZED|"SPOT_PRICE_CAPACITY_OPTIMIZED"->SPOT_PRICE_CAPACITY_OPTIMIZED|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 CRAllocationStrategy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CRAllocationStrategy"j)letto_json=simple_to_jsonto_valueendmoduleCRType=structtypenonrect=|EC2|SPOT|FARGATE|FARGATE_SPOT|Non_static_idofstringletmakei=iletto_string=function|EC2->"EC2"|SPOT->"SPOT"|FARGATE->"FARGATE"|FARGATE_SPOT->"FARGATE_SPOT"|Non_static_ids->sletof_string=function|"EC2"->EC2|"SPOT"->SPOT|"FARGATE"->FARGATE|"FARGATE_SPOT"->FARGATE_SPOT|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 CRType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CRType"j)letto_json=simple_to_jsonto_valueendmoduleComputeScalingPolicy=structtypenonrect={minScaleDownDelayMinutes:Integer.toption[@ocaml.doc"The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires. Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay. Idle instances retained during the scale-down delay period are billable at standard EC2 pricing. The scale down delay does not apply to: Instances being replaced during infrastructure updates Newly launched instances that have not yet run any jobs Spot instances reclaimed due to interruption"]}letmake?minScaleDownDelayMinutes=fun()->{minScaleDownDelayMinutes}letto_valuex=structure_to_value[("minScaleDownDelayMinutes",(Option.mapx.minScaleDownDelayMinutes~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letminScaleDownDelayMinutes=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"minScaleDownDelayMinutes")inmake?minScaleDownDelayMinutes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letminScaleDownDelayMinutes=field_mapjson__"minScaleDownDelayMinutes"Integer.of_jsoninmake?minScaleDownDelayMinutes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a scaling policy for a compute environment."]moduleEc2ConfigurationList=structtypenonrect=Ec2Configuration.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Ec2Configuration.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:Ec2Configuration.of_xml)letof_jsonj=list_of_json~kind:"Ec2ConfigurationList"~of_json:Ec2Configuration.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLaunchTemplateSpecification=structtypenonrect={launchTemplateId:String_.toption[@ocaml.doc"The ID of the launch template."];launchTemplateName:String_.toption[@ocaml.doc"The name of the launch template."];version:String_.toption[@ocaml.doc"The version number of the launch template, $Default, or $Latest. If the value is $Default, the default version of the launch template is used. If the value is $Latest, the latest version of the launch template is used. If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the updateToLatestImageVersion parameter for the compute environment is set to true. During an infrastructure update, if either $Default or $Latest is specified, Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. Default: $Default Latest: $Latest"];overrides:LaunchTemplateSpecificationOverrideList.toption[@ocaml.doc"A launch template to use in place of the default launch template. You must specify either the launch template ID or launch template name in the request, but not both. You can specify up to ten (10) launch template overrides that are associated to unique instance types or families for each compute environment. To unset all override templates for a compute environment, you can pass an empty array to the UpdateComputeEnvironment.overrides parameter, or not include the overrides parameter when submitting the UpdateComputeEnvironment API operation."];userdataType:UserdataType.toption[@ocaml.doc"The EKS node initialization process to use. You only need to specify this value if you are using a custom AMI. The default value is EKS_BOOTSTRAP_SH. If imageType is a custom AMI based on EKS_AL2023 or EKS_AL2023_NVIDIA then you must choose EKS_NODEADM."]}letmake?launchTemplateId=fun?launchTemplateName->fun?version->fun?overrides->fun?userdataType->fun()->{launchTemplateId;launchTemplateName;version;overrides;userdataType}letto_valuex=structure_to_value[("launchTemplateId",(Option.mapx.launchTemplateId~f:String_.to_value));("launchTemplateName",(Option.mapx.launchTemplateName~f:String_.to_value));("version",(Option.mapx.version~f:String_.to_value));("overrides",(Option.mapx.overrides~f:LaunchTemplateSpecificationOverrideList.to_value));("userdataType",(Option.mapx.userdataType~f:UserdataType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserdataType=(Option.map~f:UserdataType.of_xml)(Xml.childxml_arg0"userdataType")inletoverrides=(Option.map~f:LaunchTemplateSpecificationOverrideList.of_xml)(Xml.childxml_arg0"overrides")inletversion=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"version")inletlaunchTemplateName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"launchTemplateName")inletlaunchTemplateId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"launchTemplateId")inmake?userdataType?overrides?version?launchTemplateName?launchTemplateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserdataType=field_mapjson__"userdataType"UserdataType.of_jsoninletoverrides=field_mapjson__"overrides"LaunchTemplateSpecificationOverrideList.of_jsoninletversion=field_mapjson__"version"String_.of_jsoninletlaunchTemplateName=field_mapjson__"launchTemplateName"String_.of_jsoninletlaunchTemplateId=field_mapjson__"launchTemplateId"String_.of_jsoninmake?userdataType?overrides?version?launchTemplateName?launchTemplateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a launch template that's associated with a compute resource. You must specify either the launch template ID or launch template name in the request, but not both. If security groups are specified using both the securityGroupIds parameter of CreateComputeEnvironment and the launch template, the values in the securityGroupIds parameter of CreateComputeEnvironment will be used. This object isn't applicable to jobs that are running on Fargate resources."]moduleTagsMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobExecutionTimeoutMinutes=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith((check_int64_maxi~max:360L)>>=(fun()->check_int64_mini~min:1L));iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleServiceJobEvaluateOnExit=structtypenonrect={action:ServiceJobRetryAction.toption[@ocaml.doc"The action to take if the service job exits with the specified condition. Valid values are RETRY and EXIT."];onStatusReason:String_.toption[@ocaml.doc"Contains a glob pattern to match against the StatusReason returned for a job. The pattern can contain up to 512 characters and can contain all printable characters. It can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match."]}letmake?action=fun?onStatusReason->fun()->{action;onStatusReason}letto_valuex=structure_to_value[("action",(Option.mapx.action~f:ServiceJobRetryAction.to_value));("onStatusReason",(Option.mapx.onStatusReason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letonStatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"onStatusReason")inletaction=(Option.map~f:ServiceJobRetryAction.of_xml)(Xml.childxml_arg0"action")inmake?onStatusReason?action()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letonStatusReason=field_mapjson__"onStatusReason"String_.of_jsoninletaction=field_mapjson__"action"ServiceJobRetryAction.of_jsoninmake?onStatusReason?action()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies conditions for when to exit or retry a service job based on the exit status or status reason."]moduleNodePropertyOverride=structtypenonrect={targetNodes:String_.t[@ocaml.doc"The range of nodes, using node index values, that's used to override. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range."];containerOverrides:ContainerOverrides.toption[@ocaml.doc"The overrides that are sent to a node range."];ecsPropertiesOverride:EcsPropertiesOverride.toption[@ocaml.doc"An object that contains the properties that you want to replace for the existing Amazon ECS resources of a job."];instanceTypes:StringList.toption[@ocaml.doc"An object that contains the instance types that you want to replace for the existing resources of a job."];eksPropertiesOverride:EksPropertiesOverride.toption[@ocaml.doc"An object that contains the properties that you want to replace for the existing Amazon EKS resources of a job."];consumableResourcePropertiesOverride:ConsumableResourceProperties.toption[@ocaml.doc"An object that contains overrides for the consumable resources of a job."]}letcontext_="NodePropertyOverride"letmake?containerOverrides=fun?ecsPropertiesOverride->fun?instanceTypes->fun?eksPropertiesOverride->fun?consumableResourcePropertiesOverride->fun~targetNodes->fun()->{containerOverrides;ecsPropertiesOverride;instanceTypes;eksPropertiesOverride;consumableResourcePropertiesOverride;targetNodes}letto_valuex=structure_to_value[("targetNodes",(Some(String_.to_valuex.targetNodes)));("containerOverrides",(Option.mapx.containerOverrides~f:ContainerOverrides.to_value));("ecsPropertiesOverride",(Option.mapx.ecsPropertiesOverride~f:EcsPropertiesOverride.to_value));("instanceTypes",(Option.mapx.instanceTypes~f:StringList.to_value));("eksPropertiesOverride",(Option.mapx.eksPropertiesOverride~f:EksPropertiesOverride.to_value));("consumableResourcePropertiesOverride",(Option.mapx.consumableResourcePropertiesOverride~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourcePropertiesOverride=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourcePropertiesOverride")inleteksPropertiesOverride=(Option.map~f:EksPropertiesOverride.of_xml)(Xml.childxml_arg0"eksPropertiesOverride")inletinstanceTypes=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"instanceTypes")inletecsPropertiesOverride=(Option.map~f:EcsPropertiesOverride.of_xml)(Xml.childxml_arg0"ecsPropertiesOverride")inletcontainerOverrides=(Option.map~f:ContainerOverrides.of_xml)(Xml.childxml_arg0"containerOverrides")inlettargetNodes=String_.of_xml(Xml.child_exn~context:context_xml_arg0"targetNodes")inmake?consumableResourcePropertiesOverride?eksPropertiesOverride?instanceTypes?ecsPropertiesOverride?containerOverrides~targetNodes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourcePropertiesOverride=field_mapjson__"consumableResourcePropertiesOverride"ConsumableResourceProperties.of_jsoninleteksPropertiesOverride=field_mapjson__"eksPropertiesOverride"EksPropertiesOverride.of_jsoninletinstanceTypes=field_mapjson__"instanceTypes"StringList.of_jsoninletecsPropertiesOverride=field_mapjson__"ecsPropertiesOverride"EcsPropertiesOverride.of_jsoninletcontainerOverrides=field_mapjson__"containerOverrides"ContainerOverrides.of_jsoninlettargetNodes=field_map_exnjson__"targetNodes"String_.of_jsoninmake?consumableResourcePropertiesOverride?eksPropertiesOverride?instanceTypes?ecsPropertiesOverride?containerOverrides~targetNodes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The object that represents any node overrides to a job definition that's used in a SubmitJob API operation."]moduleLatestServiceJobAttempt=structtypenonrect={serviceResourceId:ServiceResourceId.toption[@ocaml.doc"The service resource identifier associated with the service job attempt."]}letmake?serviceResourceId=fun()->{serviceResourceId}letto_valuex=structure_to_value[("serviceResourceId",(Option.mapx.serviceResourceId~f:ServiceResourceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceResourceId=(Option.map~f:ServiceResourceId.of_xml)(Xml.childxml_arg0"serviceResourceId")inmake?serviceResourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceResourceId=field_mapjson__"serviceResourceId"ServiceResourceId.of_jsoninmake?serviceResourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Information about the latest attempt of a service job. A Service job can transition from SCHEDULED back to RUNNABLE state when they encounter capacity constraints."]moduleServiceJobCapacityUsageSummaryList=structtypenonrect=ServiceJobCapacityUsageSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceJobCapacityUsageSummary.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:ServiceJobCapacityUsageSummary.of_xml)letof_jsonj=list_of_json~kind:"ServiceJobCapacityUsageSummaryList"~of_json:ServiceJobCapacityUsageSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobStatus=structtypenonrect=|SUBMITTED|PENDING|RUNNABLE|SCHEDULED|STARTING|RUNNING|SUCCEEDED|FAILED|Non_static_idofstringletmakei=iletto_string=function|SUBMITTED->"SUBMITTED"|PENDING->"PENDING"|RUNNABLE->"RUNNABLE"|SCHEDULED->"SCHEDULED"|STARTING->"STARTING"|RUNNING->"RUNNING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"SUBMITTED"->SUBMITTED|"PENDING"->PENDING|"RUNNABLE"->RUNNABLE|"SCHEDULED"->SCHEDULED|"STARTING"->STARTING|"RUNNING"->RUNNING|"SUCCEEDED"->SUCCEEDED|"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 ServiceJobStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceJobStatus"j)letto_json=simple_to_jsonto_valueendmoduleServiceJobType=structtypenonrect=|SAGEMAKER_TRAINING|Non_static_idofstringletmakei=iletto_string=function|SAGEMAKER_TRAINING->"SAGEMAKER_TRAINING"|Non_static_ids->sletof_string=function|"SAGEMAKER_TRAINING"->SAGEMAKER_TRAINING|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 ServiceJobType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceJobType"j)letto_json=simple_to_jsonto_valueendmoduleQuotaShareCapacityLimits=structtypenonrect=QuotaShareCapacityLimit.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QuotaShareCapacityLimit.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:QuotaShareCapacityLimit.of_xml)letof_jsonj=list_of_json~kind:"QuotaShareCapacityLimits"~of_json:QuotaShareCapacityLimit.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQuotaSharePreemptionConfiguration=structtypenonrect={inSharePreemption:QuotaShareInSharePreemptionState.t[@ocaml.doc"Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share."]}letcontext_="QuotaSharePreemptionConfiguration"letmake~inSharePreemption=fun()->{inSharePreemption}letto_valuex=structure_to_value[("inSharePreemption",(Some(QuotaShareInSharePreemptionState.to_valuex.inSharePreemption)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinSharePreemption=QuotaShareInSharePreemptionState.of_xml(Xml.child_exn~context:context_xml_arg0"inSharePreemption")inmake~inSharePreemption()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinSharePreemption=field_map_exnjson__"inSharePreemption"QuotaShareInSharePreemptionState.of_jsoninmake~inSharePreemption()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the preemption behavior for jobs in a quota share."]moduleQuotaShareResourceSharingConfiguration=structtypenonrect={strategy:QuotaShareResourceSharingStrategy.t[@ocaml.doc"The resource sharing strategy for the quota share. The RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share."];borrowLimit:Integer.toption[@ocaml.doc"The maximum percentage of additional capacity that the quota share can borrow from other shares. borrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The borrowLimit is applied uniformly across all capacity units. For example, if the borrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default borrowLimit is -1, which indicates unlimited borrowing."]}letcontext_="QuotaShareResourceSharingConfiguration"letmake?borrowLimit=fun~strategy->fun()->{borrowLimit;strategy}letto_valuex=structure_to_value[("strategy",(Some(QuotaShareResourceSharingStrategy.to_valuex.strategy)));("borrowLimit",(Option.mapx.borrowLimit~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letborrowLimit=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"borrowLimit")inletstrategy=QuotaShareResourceSharingStrategy.of_xml(Xml.child_exn~context:context_xml_arg0"strategy")inmake?borrowLimit~strategy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letborrowLimit=field_mapjson__"borrowLimit"Integer.of_jsoninletstrategy=field_map_exnjson__"strategy"QuotaShareResourceSharingStrategy.of_jsoninmake?borrowLimit~strategy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity."]moduleQuotaShareState=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration QuotaShareState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QuotaShareState"j)letto_json=simple_to_jsonto_valueendmoduleQuotaShareStatus=structtypenonrect=|CREATING|VALID|INVALID|UPDATING|DELETING|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|VALID->"VALID"|INVALID->"INVALID"|UPDATING->"UPDATING"|DELETING->"DELETING"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"VALID"->VALID|"INVALID"->INVALID|"UPDATING"->UPDATING|"DELETING"->DELETING|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 QuotaShareStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"QuotaShareStatus"j)letto_json=simple_to_jsonto_valueendmoduleArrayPropertiesSummary=structtypenonrect={size:Integer.toption[@ocaml.doc"The size of the array job. This parameter is returned for parent array jobs."];index:Integer.toption[@ocaml.doc"The job index within the array that's associated with this job. This parameter is returned for children of array jobs."];statusSummary:ArrayJobStatusSummary.toption[@ocaml.doc"A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs."];statusSummaryLastUpdatedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the statusSummary was last updated."]}letmake?size=fun?index->fun?statusSummary->fun?statusSummaryLastUpdatedAt->fun()->{size;index;statusSummary;statusSummaryLastUpdatedAt}letto_valuex=structure_to_value[("size",(Option.mapx.size~f:Integer.to_value));("index",(Option.mapx.index~f:Integer.to_value));("statusSummary",(Option.mapx.statusSummary~f:ArrayJobStatusSummary.to_value));("statusSummaryLastUpdatedAt",(Option.mapx.statusSummaryLastUpdatedAt~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusSummaryLastUpdatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"statusSummaryLastUpdatedAt")inletstatusSummary=(Option.map~f:ArrayJobStatusSummary.of_xml)(Xml.childxml_arg0"statusSummary")inletindex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"index")inletsize=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"size")inmake?statusSummaryLastUpdatedAt?statusSummary?index?size()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusSummaryLastUpdatedAt=field_mapjson__"statusSummaryLastUpdatedAt"Long.of_jsoninletstatusSummary=field_mapjson__"statusSummary"ArrayJobStatusSummary.of_jsoninletindex=field_mapjson__"index"Integer.of_jsoninletsize=field_mapjson__"size"Integer.of_jsoninmake?statusSummaryLastUpdatedAt?statusSummary?index?size()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the array properties of a job."]moduleContainerSummary=structtypenonrect={exitCode:Integer.toption[@ocaml.doc"The exit code to return upon completion."];reason:String_.toption[@ocaml.doc"A short (255 max characters) human-readable string to provide additional details for a running or stopped container."]}letmake?exitCode=fun?reason->fun()->{exitCode;reason}letto_valuex=structure_to_value[("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("reason",(Option.mapx.reason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inmake?reason?exitCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninmake?reason?exitCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents summary details of a container within a job."]moduleJobCapacityUsageSummaryList=structtypenonrect=JobCapacityUsageSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobCapacityUsageSummary.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:JobCapacityUsageSummary.of_xml)letof_jsonj=list_of_json~kind:"JobCapacityUsageSummaryList"~of_json:JobCapacityUsageSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobStatus=structtypenonrect=|SUBMITTED|PENDING|RUNNABLE|STARTING|RUNNING|SUCCEEDED|FAILED|Non_static_idofstringletmakei=iletto_string=function|SUBMITTED->"SUBMITTED"|PENDING->"PENDING"|RUNNABLE->"RUNNABLE"|STARTING->"STARTING"|RUNNING->"RUNNING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|Non_static_ids->sletof_string=function|"SUBMITTED"->SUBMITTED|"PENDING"->PENDING|"RUNNABLE"->RUNNABLE|"STARTING"->STARTING|"RUNNING"->RUNNING|"SUCCEEDED"->SUCCEEDED|"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 JobStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobStatus"j)letto_json=simple_to_jsonto_valueendmoduleNodePropertiesSummary=structtypenonrect={isMainNode:Boolean.toption[@ocaml.doc"Specifies whether the current node is the main node for a multi-node parallel job."];numNodes:Integer.toption[@ocaml.doc"The number of nodes that are associated with a multi-node parallel job."];nodeIndex:Integer.toption[@ocaml.doc"The node index for the node. Node index numbering begins at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable."]}letmake?isMainNode=fun?numNodes->fun?nodeIndex->fun()->{isMainNode;numNodes;nodeIndex}letto_valuex=structure_to_value[("isMainNode",(Option.mapx.isMainNode~f:Boolean.to_value));("numNodes",(Option.mapx.numNodes~f:Integer.to_value));("nodeIndex",(Option.mapx.nodeIndex~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnodeIndex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"nodeIndex")inletnumNodes=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"numNodes")inletisMainNode=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isMainNode")inmake?nodeIndex?numNodes?isMainNode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnodeIndex=field_mapjson__"nodeIndex"Integer.of_jsoninletnumNodes=field_mapjson__"numNodes"Integer.of_jsoninletisMainNode=field_mapjson__"isMainNode"Boolean.of_jsoninmake?nodeIndex?numNodes?isMainNode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the properties of a node that's associated with a multi-node parallel job."]moduleFrontOfQueueJobSummary=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The ARN for a job in a named job queue."];earliestTimeAtPosition:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job transitioned to its current position in the job queue."]}letmake?jobArn=fun?earliestTimeAtPosition->fun()->{jobArn;earliestTimeAtPosition}letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("earliestTimeAtPosition",(Option.mapx.earliestTimeAtPosition~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letearliestTimeAtPosition=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"earliestTimeAtPosition")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?earliestTimeAtPosition?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letearliestTimeAtPosition=field_mapjson__"earliestTimeAtPosition"Long.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?earliestTimeAtPosition?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents summary details for the first 100 RUNNABLE jobs in a job queue."]moduleFrontOfQuotaShareJobSummaryList=structtypenonrect=FrontOfQuotaShareJobSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FrontOfQuotaShareJobSummary.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:FrontOfQuotaShareJobSummary.of_xml)letof_jsonj=list_of_json~kind:"FrontOfQuotaShareJobSummaryList"~of_json:FrontOfQuotaShareJobSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFairshareCapacityUtilizationList=structtypenonrect=FairshareCapacityUtilization.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FairshareCapacityUtilization.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:FairshareCapacityUtilization.of_xml)letof_jsonj=list_of_json~kind:"FairshareCapacityUtilizationList"~of_json:FairshareCapacityUtilization.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQueueSnapshotCapacityUsage=structtypenonrect={capacityUnit:String_.toption[@ocaml.doc"The unit of measure for the capacity usage. For compute jobs, this is VCPU for Amazon EC2 and cpu for Amazon EKS. For service jobs, this is the instance type."];quantity:Double.toption[@ocaml.doc"The quantity of capacity being used in the queue snapshot, measured in the units specified by capacityUnit."]}letmake?capacityUnit=fun?quantity->fun()->{capacityUnit;quantity}letto_valuex=structure_to_value[("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"quantity")inletcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inmake?quantity?capacityUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Double.of_jsoninletcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninmake?quantity?capacityUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configured capacity usage for a job queue snapshot, including the unit of measure and quantity of resources being used."]moduleQuotaShareCapacityUtilizationList=structtypenonrect=QuotaShareCapacityUtilization.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QuotaShareCapacityUtilization.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:QuotaShareCapacityUtilization.of_xml)letof_jsonj=list_of_json~kind:"QuotaShareCapacityUtilizationList"~of_json:QuotaShareCapacityUtilization.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobPreemptedAttempt=structtypenonrect={serviceResourceId:ServiceResourceId.toption[@ocaml.doc"The service resource identifier associated with the service job attempt."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job attempt was started."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job attempt stopped running."];statusReason:String_.toption[@ocaml.doc"A string that provides additional details for the current status of the service job attempt."]}letmake?serviceResourceId=fun?startedAt->fun?stoppedAt->fun?statusReason->fun()->{serviceResourceId;startedAt;stoppedAt;statusReason}letto_valuex=structure_to_value[("serviceResourceId",(Option.mapx.serviceResourceId~f:ServiceResourceId.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletserviceResourceId=(Option.map~f:ServiceResourceId.of_xml)(Xml.childxml_arg0"serviceResourceId")inmake?statusReason?stoppedAt?startedAt?serviceResourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletserviceResourceId=field_mapjson__"serviceResourceId"ServiceResourceId.of_jsoninmake?statusReason?stoppedAt?startedAt?serviceResourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detailed information about a preempted attempt of a service job."]moduleCapacityLimits=structtypenonrect=CapacityLimit.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:CapacityLimit.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:CapacityLimit.of_xml)letof_jsonj=list_of_json~kind:"CapacityLimits"~of_json:CapacityLimit.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceEnvironmentState=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ServiceEnvironmentState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceEnvironmentState"j)letto_json=simple_to_jsonto_valueendmoduleServiceEnvironmentStatus=structtypenonrect=|CREATING|UPDATING|DELETING|DELETED|VALID|INVALID|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|UPDATING->"UPDATING"|DELETING->"DELETING"|DELETED->"DELETED"|VALID->"VALID"|INVALID->"INVALID"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"UPDATING"->UPDATING|"DELETING"->DELETING|"DELETED"->DELETED|"VALID"->VALID|"INVALID"->INVALID|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 ServiceEnvironmentStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceEnvironmentStatus"j)letto_json=simple_to_jsonto_valueendmoduleServiceEnvironmentType=structtypenonrect=|SAGEMAKER_TRAINING|Non_static_idofstringletmakei=iletto_string=function|SAGEMAKER_TRAINING->"SAGEMAKER_TRAINING"|Non_static_ids->sletof_string=function|"SAGEMAKER_TRAINING"->SAGEMAKER_TRAINING|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 ServiceEnvironmentType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ServiceEnvironmentType"j)letto_json=simple_to_jsonto_valueendmoduleTagrisTagsMap=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_valuevendmoduleFairsharePolicy=structtypenonrect={shareDecaySeconds:Integer.toption[@ocaml.doc"The amount of time (in seconds) to use to calculate a fair-share percentage for each share identifier in use. A value of zero (0) indicates the default minimum time window (600 seconds). The maximum supported value is 604800 (1 week). The decay allows for more recently run jobs to have more weight than jobs that ran earlier. Consider adjusting this number if you have jobs that (on average) run longer than ten minutes, or a large difference in job count or job run times between share identifiers, and the allocation of resources doesn't meet your needs."];computeReservation:Integer.toption[@ocaml.doc"A value used to reserve some of the available maximum vCPU for share identifiers that aren't already used. The reserved ratio is (computeReservation/100)^ActiveFairShares where ActiveFairShares is the number of active share identifiers. For example, a computeReservation value of 50 indicates that Batch reserves 50% of the maximum available vCPU if there's only one share identifier. It reserves 25% if there are two share identifiers. It reserves 12.5% if there are three share identifiers. A computeReservation value of 25 indicates that Batch should reserve 25% of the maximum available vCPU if there's only one share identifier, 6.25% if there are two fair share identifiers, and 1.56% if there are three share identifiers. The minimum value is 0 and the maximum value is 99."];shareDistribution:ShareAttributesList.toption[@ocaml.doc"An array of SharedIdentifier objects that contain the weights for the share identifiers for the fair-share policy. Share identifiers that aren't included have a default weight of 1.0."]}letmake?shareDecaySeconds=fun?computeReservation->fun?shareDistribution->fun()->{shareDecaySeconds;computeReservation;shareDistribution}letto_valuex=structure_to_value[("shareDecaySeconds",(Option.mapx.shareDecaySeconds~f:Integer.to_value));("computeReservation",(Option.mapx.computeReservation~f:Integer.to_value));("shareDistribution",(Option.mapx.shareDistribution~f:ShareAttributesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letshareDistribution=(Option.map~f:ShareAttributesList.of_xml)(Xml.childxml_arg0"shareDistribution")inletcomputeReservation=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"computeReservation")inletshareDecaySeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"shareDecaySeconds")inmake?shareDistribution?computeReservation?shareDecaySeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letshareDistribution=field_mapjson__"shareDistribution"ShareAttributesList.of_jsoninletcomputeReservation=field_mapjson__"computeReservation"Integer.of_jsoninletshareDecaySeconds=field_mapjson__"shareDecaySeconds"Integer.of_jsoninmake?shareDistribution?computeReservation?shareDecaySeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The fair-share scheduling policy details."]moduleQuotaSharePolicy=structtypenonrect={idleResourceAssignmentStrategy:QuotaShareIdleResourceAssignmentStrategy.t[@ocaml.doc"The strategy that determines how idle resources are assigned to quota shares that are borrowing capacity. Currently, only FIFO is supported."]}letcontext_="QuotaSharePolicy"letmake~idleResourceAssignmentStrategy=fun()->{idleResourceAssignmentStrategy}letto_valuex=structure_to_value[("idleResourceAssignmentStrategy",(Some(QuotaShareIdleResourceAssignmentStrategy.to_valuex.idleResourceAssignmentStrategy)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidleResourceAssignmentStrategy=QuotaShareIdleResourceAssignmentStrategy.of_xml(Xml.child_exn~context:context_xml_arg0"idleResourceAssignmentStrategy")inmake~idleResourceAssignmentStrategy()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidleResourceAssignmentStrategy=field_map_exnjson__"idleResourceAssignmentStrategy"QuotaShareIdleResourceAssignmentStrategy.of_jsoninmake~idleResourceAssignmentStrategy()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The quota share scheduling policy details for a job queue."]moduleArrayPropertiesDetail=structtypenonrect={statusSummary:ArrayJobStatusSummary.toption[@ocaml.doc"A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs."];statusSummaryLastUpdatedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the statusSummary was last updated."];size:Integer.toption[@ocaml.doc"The size of the array job. This parameter is returned for parent array jobs."];index:Integer.toption[@ocaml.doc"The job index within the array that's associated with this job. This parameter is returned for array job children."]}letmake?statusSummary=fun?statusSummaryLastUpdatedAt->fun?size->fun?index->fun()->{statusSummary;statusSummaryLastUpdatedAt;size;index}letto_valuex=structure_to_value[("statusSummary",(Option.mapx.statusSummary~f:ArrayJobStatusSummary.to_value));("statusSummaryLastUpdatedAt",(Option.mapx.statusSummaryLastUpdatedAt~f:Long.to_value));("size",(Option.mapx.size~f:Integer.to_value));("index",(Option.mapx.index~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letindex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"index")inletsize=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"size")inletstatusSummaryLastUpdatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"statusSummaryLastUpdatedAt")inletstatusSummary=(Option.map~f:ArrayJobStatusSummary.of_xml)(Xml.childxml_arg0"statusSummary")inmake?index?size?statusSummaryLastUpdatedAt?statusSummary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letindex=field_mapjson__"index"Integer.of_jsoninletsize=field_mapjson__"size"Integer.of_jsoninletstatusSummaryLastUpdatedAt=field_mapjson__"statusSummaryLastUpdatedAt"Long.of_jsoninletstatusSummary=field_mapjson__"statusSummary"ArrayJobStatusSummary.of_jsoninmake?index?size?statusSummaryLastUpdatedAt?statusSummary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the array properties of a job."]moduleAttemptDetails=structtypenonrect=AttemptDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttemptDetail.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:AttemptDetail.of_xml)letof_jsonj=list_of_json~kind:"AttemptDetails"~of_json:AttemptDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleContainerDetail=structtypenonrect={image:String_.toption[@ocaml.doc"The image used to start the container."];vcpus:Integer.toption[@ocaml.doc"The number of vCPUs reserved for the container. For jobs that run on Amazon EC2 resources, you can specify the vCPU requirement for the job using resourceRequirements, but you can't specify the vCPU requirements in both the vcpus and resourceRequirements object. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU. This is required but can be specified in several places. It must be specified for each node at least once. This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run on Fargate resources, you must specify the vCPU requirement for the job using resourceRequirements."];memory:Integer.toption[@ocaml.doc"For jobs running on Amazon EC2 resources that didn't specify memory requirements using resourceRequirements, the number of MiB of memory reserved for the job. For other jobs, including all run on Fargate resources, see resourceRequirements."];command:StringList.toption[@ocaml.doc"The command that's passed to the container."];jobRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) that's associated with the job when run."];executionRoleArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see Batch execution IAM role in the Batch User Guide."];volumes:Volumes.toption[@ocaml.doc"A list of volumes that are associated with the job."];environment:EnvironmentVariables.toption[@ocaml.doc"The environment variables to pass to a container. Environment variables cannot start with \"AWS_BATCH\". This naming convention is reserved for variables that Batch sets."];mountPoints:MountPoints.toption[@ocaml.doc"The mount points for data volumes in your container."];readonlyRootFilesystem:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run ."];ulimits:Ulimits.toption[@ocaml.doc"A list of ulimit values to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run. This parameter isn't applicable to jobs that are running on Fargate resources."];privileged:Boolean.toption[@ocaml.doc"When this parameter is true, the container is given elevated permissions on the host container instance (similar to the root user). The default value is false. This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false."];user:String_.toption[@ocaml.doc"The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run."];exitCode:Integer.toption[@ocaml.doc"The exit code returned upon completion."];reason:String_.toption[@ocaml.doc"A short (255 max characters) human-readable string to provide additional details for a running or stopped container."];containerInstanceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the container instance that the container is running on."];taskArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the container job. Each container attempt receives a task ARN when they reach the STARTING status."];logStreamName:String_.toption[@ocaml.doc"The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status."];instanceType:String_.toption[@ocaml.doc"The instance type of the underlying host infrastructure of a multi-node parallel job. This parameter isn't applicable to jobs that are running on Fargate resources."];networkInterfaces:NetworkInterfaceList.toption[@ocaml.doc"The network interfaces that are associated with the job."];resourceRequirements:ResourceRequirements.toption[@ocaml.doc"The type and amount of resources to assign to a container. The supported resources include GPU, MEMORY, and VCPU."];linuxParameters:LinuxParameters.toption[@ocaml.doc"Linux-specific modifications that are applied to the container, such as details for device mappings."];logConfiguration:LogConfiguration.toption[@ocaml.doc"The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance. Or, alternatively, it must be configured on a different log server for remote logging options. For more information on the options for different supported log drivers, see Configure logging drivers in the Docker documentation. Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the LogConfiguration data type). Additional log drivers might be available in future releases of the Amazon ECS container agent. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\" The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration in the Amazon Elastic Container Service Developer Guide."];secrets:SecretList.toption[@ocaml.doc"The secrets to pass to the container. For more information, see Specifying sensitive data in the Batch User Guide."];networkConfiguration:NetworkConfiguration.toption[@ocaml.doc"The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."];fargatePlatformConfiguration:FargatePlatformConfiguration.toption[@ocaml.doc"The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter."];ephemeralStorage:EphemeralStorage.toption[@ocaml.doc"The amount of ephemeral storage allocated for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate."];runtimePlatform:RuntimePlatform.toption[@ocaml.doc"An object that represents the compute environment architecture for Batch jobs on Fargate."];repositoryCredentials:RepositoryCredentials.toption[@ocaml.doc"The private repository authentication credentials to use."];enableExecuteCommand:Boolean.toption[@ocaml.doc"Determines whether execute command functionality is turned on for this task. If true, execute command functionality is turned on all the containers in the task."]}letmake?image=fun?vcpus->fun?memory->fun?command->fun?jobRoleArn->fun?executionRoleArn->fun?volumes->fun?environment->fun?mountPoints->fun?readonlyRootFilesystem->fun?ulimits->fun?privileged->fun?user->fun?exitCode->fun?reason->fun?containerInstanceArn->fun?taskArn->fun?logStreamName->fun?instanceType->fun?networkInterfaces->fun?resourceRequirements->fun?linuxParameters->fun?logConfiguration->fun?secrets->fun?networkConfiguration->fun?fargatePlatformConfiguration->fun?ephemeralStorage->fun?runtimePlatform->fun?repositoryCredentials->fun?enableExecuteCommand->fun()->{image;vcpus;memory;command;jobRoleArn;executionRoleArn;volumes;environment;mountPoints;readonlyRootFilesystem;ulimits;privileged;user;exitCode;reason;containerInstanceArn;taskArn;logStreamName;instanceType;networkInterfaces;resourceRequirements;linuxParameters;logConfiguration;secrets;networkConfiguration;fargatePlatformConfiguration;ephemeralStorage;runtimePlatform;repositoryCredentials;enableExecuteCommand}letto_valuex=structure_to_value[("image",(Option.mapx.image~f:String_.to_value));("vcpus",(Option.mapx.vcpus~f:Integer.to_value));("memory",(Option.mapx.memory~f:Integer.to_value));("command",(Option.mapx.command~f:StringList.to_value));("jobRoleArn",(Option.mapx.jobRoleArn~f:String_.to_value));("executionRoleArn",(Option.mapx.executionRoleArn~f:String_.to_value));("volumes",(Option.mapx.volumes~f:Volumes.to_value));("environment",(Option.mapx.environment~f:EnvironmentVariables.to_value));("mountPoints",(Option.mapx.mountPoints~f:MountPoints.to_value));("readonlyRootFilesystem",(Option.mapx.readonlyRootFilesystem~f:Boolean.to_value));("ulimits",(Option.mapx.ulimits~f:Ulimits.to_value));("privileged",(Option.mapx.privileged~f:Boolean.to_value));("user",(Option.mapx.user~f:String_.to_value));("exitCode",(Option.mapx.exitCode~f:Integer.to_value));("reason",(Option.mapx.reason~f:String_.to_value));("containerInstanceArn",(Option.mapx.containerInstanceArn~f:String_.to_value));("taskArn",(Option.mapx.taskArn~f:String_.to_value));("logStreamName",(Option.mapx.logStreamName~f:String_.to_value));("instanceType",(Option.mapx.instanceType~f:String_.to_value));("networkInterfaces",(Option.mapx.networkInterfaces~f:NetworkInterfaceList.to_value));("resourceRequirements",(Option.mapx.resourceRequirements~f:ResourceRequirements.to_value));("linuxParameters",(Option.mapx.linuxParameters~f:LinuxParameters.to_value));("logConfiguration",(Option.mapx.logConfiguration~f:LogConfiguration.to_value));("secrets",(Option.mapx.secrets~f:SecretList.to_value));("networkConfiguration",(Option.mapx.networkConfiguration~f:NetworkConfiguration.to_value));("fargatePlatformConfiguration",(Option.mapx.fargatePlatformConfiguration~f:FargatePlatformConfiguration.to_value));("ephemeralStorage",(Option.mapx.ephemeralStorage~f:EphemeralStorage.to_value));("runtimePlatform",(Option.mapx.runtimePlatform~f:RuntimePlatform.to_value));("repositoryCredentials",(Option.mapx.repositoryCredentials~f:RepositoryCredentials.to_value));("enableExecuteCommand",(Option.mapx.enableExecuteCommand~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenableExecuteCommand=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"enableExecuteCommand")inletrepositoryCredentials=(Option.map~f:RepositoryCredentials.of_xml)(Xml.childxml_arg0"repositoryCredentials")inletruntimePlatform=(Option.map~f:RuntimePlatform.of_xml)(Xml.childxml_arg0"runtimePlatform")inletephemeralStorage=(Option.map~f:EphemeralStorage.of_xml)(Xml.childxml_arg0"ephemeralStorage")inletfargatePlatformConfiguration=(Option.map~f:FargatePlatformConfiguration.of_xml)(Xml.childxml_arg0"fargatePlatformConfiguration")inletnetworkConfiguration=(Option.map~f:NetworkConfiguration.of_xml)(Xml.childxml_arg0"networkConfiguration")inletsecrets=(Option.map~f:SecretList.of_xml)(Xml.childxml_arg0"secrets")inletlogConfiguration=(Option.map~f:LogConfiguration.of_xml)(Xml.childxml_arg0"logConfiguration")inletlinuxParameters=(Option.map~f:LinuxParameters.of_xml)(Xml.childxml_arg0"linuxParameters")inletresourceRequirements=(Option.map~f:ResourceRequirements.of_xml)(Xml.childxml_arg0"resourceRequirements")inletnetworkInterfaces=(Option.map~f:NetworkInterfaceList.of_xml)(Xml.childxml_arg0"networkInterfaces")inletinstanceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceType")inletlogStreamName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"logStreamName")inlettaskArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskArn")inletcontainerInstanceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"containerInstanceArn")inletreason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"reason")inletexitCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"exitCode")inletuser=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"user")inletprivileged=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"privileged")inletulimits=(Option.map~f:Ulimits.of_xml)(Xml.childxml_arg0"ulimits")inletreadonlyRootFilesystem=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"readonlyRootFilesystem")inletmountPoints=(Option.map~f:MountPoints.of_xml)(Xml.childxml_arg0"mountPoints")inletenvironment=(Option.map~f:EnvironmentVariables.of_xml)(Xml.childxml_arg0"environment")inletvolumes=(Option.map~f:Volumes.of_xml)(Xml.childxml_arg0"volumes")inletexecutionRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionRoleArn")inletjobRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobRoleArn")inletcommand=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"command")inletmemory=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"memory")inletvcpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"vcpus")inletimage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"image")inmake?enableExecuteCommand?repositoryCredentials?runtimePlatform?ephemeralStorage?fargatePlatformConfiguration?networkConfiguration?secrets?logConfiguration?linuxParameters?resourceRequirements?networkInterfaces?instanceType?logStreamName?taskArn?containerInstanceArn?reason?exitCode?user?privileged?ulimits?readonlyRootFilesystem?mountPoints?environment?volumes?executionRoleArn?jobRoleArn?command?memory?vcpus?image()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenableExecuteCommand=field_mapjson__"enableExecuteCommand"Boolean.of_jsoninletrepositoryCredentials=field_mapjson__"repositoryCredentials"RepositoryCredentials.of_jsoninletruntimePlatform=field_mapjson__"runtimePlatform"RuntimePlatform.of_jsoninletephemeralStorage=field_mapjson__"ephemeralStorage"EphemeralStorage.of_jsoninletfargatePlatformConfiguration=field_mapjson__"fargatePlatformConfiguration"FargatePlatformConfiguration.of_jsoninletnetworkConfiguration=field_mapjson__"networkConfiguration"NetworkConfiguration.of_jsoninletsecrets=field_mapjson__"secrets"SecretList.of_jsoninletlogConfiguration=field_mapjson__"logConfiguration"LogConfiguration.of_jsoninletlinuxParameters=field_mapjson__"linuxParameters"LinuxParameters.of_jsoninletresourceRequirements=field_mapjson__"resourceRequirements"ResourceRequirements.of_jsoninletnetworkInterfaces=field_mapjson__"networkInterfaces"NetworkInterfaceList.of_jsoninletinstanceType=field_mapjson__"instanceType"String_.of_jsoninletlogStreamName=field_mapjson__"logStreamName"String_.of_jsoninlettaskArn=field_mapjson__"taskArn"String_.of_jsoninletcontainerInstanceArn=field_mapjson__"containerInstanceArn"String_.of_jsoninletreason=field_mapjson__"reason"String_.of_jsoninletexitCode=field_mapjson__"exitCode"Integer.of_jsoninletuser=field_mapjson__"user"String_.of_jsoninletprivileged=field_mapjson__"privileged"Boolean.of_jsoninletulimits=field_mapjson__"ulimits"Ulimits.of_jsoninletreadonlyRootFilesystem=field_mapjson__"readonlyRootFilesystem"Boolean.of_jsoninletmountPoints=field_mapjson__"mountPoints"MountPoints.of_jsoninletenvironment=field_mapjson__"environment"EnvironmentVariables.of_jsoninletvolumes=field_mapjson__"volumes"Volumes.of_jsoninletexecutionRoleArn=field_mapjson__"executionRoleArn"String_.of_jsoninletjobRoleArn=field_mapjson__"jobRoleArn"String_.of_jsoninletcommand=field_mapjson__"command"StringList.of_jsoninletmemory=field_mapjson__"memory"Integer.of_jsoninletvcpus=field_mapjson__"vcpus"Integer.of_jsoninletimage=field_mapjson__"image"String_.of_jsoninmake?enableExecuteCommand?repositoryCredentials?runtimePlatform?ephemeralStorage?fargatePlatformConfiguration?networkConfiguration?secrets?logConfiguration?linuxParameters?resourceRequirements?networkInterfaces?instanceType?logStreamName?taskArn?containerInstanceArn?reason?exitCode?user?privileged?ulimits?readonlyRootFilesystem?mountPoints?environment?volumes?executionRoleArn?jobRoleArn?command?memory?vcpus?image()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a container that's part of a job."]moduleEcsPropertiesDetail=structtypenonrect={taskProperties:ListEcsTaskDetails.toption[@ocaml.doc"The properties for the Amazon ECS task definition of a job."]}letmake?taskProperties=fun()->{taskProperties}letto_valuex=structure_to_value[("taskProperties",(Option.mapx.taskProperties~f:ListEcsTaskDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskProperties=(Option.map~f:ListEcsTaskDetails.of_xml)(Xml.childxml_arg0"taskProperties")inmake?taskProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskProperties=field_mapjson__"taskProperties"ListEcsTaskDetails.of_jsoninmake?taskProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the details for the Amazon ECS resources of a job."]moduleEksAttemptDetails=structtypenonrect=EksAttemptDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:EksAttemptDetail.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:EksAttemptDetail.of_xml)letof_jsonj=list_of_json~kind:"EksAttemptDetails"~of_json:EksAttemptDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleEksPropertiesDetail=structtypenonrect={podProperties:EksPodPropertiesDetail.toption[@ocaml.doc"The properties for the Kubernetes pod resources of a job."]}letmake?podProperties=fun()->{podProperties}letto_valuex=structure_to_value[("podProperties",(Option.mapx.podProperties~f:EksPodPropertiesDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpodProperties=(Option.map~f:EksPodPropertiesDetail.of_xml)(Xml.childxml_arg0"podProperties")inmake?podProperties()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpodProperties=field_mapjson__"podProperties"EksPodPropertiesDetail.of_jsoninmake?podProperties()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the details for the Kubernetes resources of a job."]moduleJobDependencyList=structtypenonrect=JobDependency.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobDependency.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:JobDependency.of_xml)letof_jsonj=list_of_json~kind:"JobDependencyList"~of_json:JobDependency.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobTimeout=structtypenonrect={attemptDurationSeconds:Integer.toption[@ocaml.doc"The job timeout time (in seconds) that's measured from the job attempt's startedAt timestamp. After this time passes, Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds. For array jobs, the timeout applies to the child jobs, not to the parent array job. For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes."]}letmake?attemptDurationSeconds=fun()->{attemptDurationSeconds}letto_valuex=structure_to_value[("attemptDurationSeconds",(Option.mapx.attemptDurationSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattemptDurationSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"attemptDurationSeconds")inmake?attemptDurationSeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattemptDurationSeconds=field_mapjson__"attemptDurationSeconds"Integer.of_jsoninmake?attemptDurationSeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a job timeout configuration."]moduleNodeDetails=structtypenonrect={nodeIndex:Integer.toption[@ocaml.doc"The node index for the node. Node index numbering starts at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable."];isMainNode:Boolean.toption[@ocaml.doc"Specifies whether the current node is the main node for a multi-node parallel job."]}letmake?nodeIndex=fun?isMainNode->fun()->{nodeIndex;isMainNode}letto_valuex=structure_to_value[("nodeIndex",(Option.mapx.nodeIndex~f:Integer.to_value));("isMainNode",(Option.mapx.isMainNode~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letisMainNode=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isMainNode")inletnodeIndex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"nodeIndex")inmake?isMainNode?nodeIndex()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letisMainNode=field_mapjson__"isMainNode"Boolean.of_jsoninletnodeIndex=field_mapjson__"nodeIndex"Integer.of_jsoninmake?isMainNode?nodeIndex()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of a multi-node parallel job node."]moduleNodeProperties=structtypenonrect={numNodes:Integer.t[@ocaml.doc"The number of nodes that are associated with a multi-node parallel job."];mainNode:Integer.t[@ocaml.doc"Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes."];nodeRangeProperties:NodeRangeProperties.t[@ocaml.doc"A list of node ranges and their properties that are associated with a multi-node parallel job."]}letcontext_="NodeProperties"letmake~numNodes=fun~mainNode->fun~nodeRangeProperties->fun()->{numNodes;mainNode;nodeRangeProperties}letto_valuex=structure_to_value[("numNodes",(Some(Integer.to_valuex.numNodes)));("mainNode",(Some(Integer.to_valuex.mainNode)));("nodeRangeProperties",(Some(NodeRangeProperties.to_valuex.nodeRangeProperties)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnodeRangeProperties=NodeRangeProperties.of_xml(Xml.child_exn~context:context_xml_arg0"nodeRangeProperties")inletmainNode=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"mainNode")inletnumNodes=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"numNodes")inmake~nodeRangeProperties~mainNode~numNodes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnodeRangeProperties=field_map_exnjson__"nodeRangeProperties"NodeRangeProperties.of_jsoninletmainNode=field_map_exnjson__"mainNode"Integer.of_jsoninletnumNodes=field_map_exnjson__"numNodes"Integer.of_jsoninmake~nodeRangeProperties~mainNode~numNodes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the node properties of a multi-node parallel job. Node properties can't be specified for Amazon EKS based job definitions."]moduleParametersMap=structtypenonrect=(String_.t*String_.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePlatformCapabilityList=structtypenonrect=PlatformCapability.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PlatformCapability.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:PlatformCapability.of_xml)letof_jsonj=list_of_json~kind:"PlatformCapabilityList"~of_json:PlatformCapability.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleRetryStrategy=structtypenonrect={attempts:Integer.toption[@ocaml.doc"The number of times to move a job to the RUNNABLE status. You can specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value."];evaluateOnExit:EvaluateOnExitList.toption[@ocaml.doc"Array of up to 5 objects that specify the conditions where jobs are retried or failed. If this parameter is specified, then the attempts parameter must also be specified. If none of the listed conditions match, then the job is retried."]}letmake?attempts=fun?evaluateOnExit->fun()->{attempts;evaluateOnExit}letto_valuex=structure_to_value[("attempts",(Option.mapx.attempts~f:Integer.to_value));("evaluateOnExit",(Option.mapx.evaluateOnExit~f:EvaluateOnExitList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevaluateOnExit=(Option.map~f:EvaluateOnExitList.of_xml)(Xml.childxml_arg0"evaluateOnExit")inletattempts=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"attempts")inmake?evaluateOnExit?attempts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevaluateOnExit=field_mapjson__"evaluateOnExit"EvaluateOnExitList.of_jsoninletattempts=field_mapjson__"attempts"Integer.of_jsoninmake?evaluateOnExit?attempts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The retry strategy that's associated with a job. For more information, see Automated job retries in the Batch User Guide."]moduleComputeEnvironmentOrders=structtypenonrect=ComputeEnvironmentOrder.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ComputeEnvironmentOrder.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:ComputeEnvironmentOrder.of_xml)letof_jsonj=list_of_json~kind:"ComputeEnvironmentOrders"~of_json:ComputeEnvironmentOrder.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJQState=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration JQState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JQState"j)letto_json=simple_to_jsonto_valueendmoduleJQStatus=structtypenonrect=|CREATING|UPDATING|DELETING|DELETED|VALID|INVALID|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|UPDATING->"UPDATING"|DELETING->"DELETING"|DELETED->"DELETED"|VALID->"VALID"|INVALID->"INVALID"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"UPDATING"->UPDATING|"DELETING"->DELETING|"DELETED"->DELETED|"VALID"->VALID|"INVALID"->INVALID|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 JQStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JQStatus"j)letto_json=simple_to_jsonto_valueendmoduleJobQueueType=structtypenonrect=|EKS|ECS|ECS_FARGATE|SAGEMAKER_TRAINING|Non_static_idofstringletmakei=iletto_string=function|EKS->"EKS"|ECS->"ECS"|ECS_FARGATE->"ECS_FARGATE"|SAGEMAKER_TRAINING->"SAGEMAKER_TRAINING"|Non_static_ids->sletof_string=function|"EKS"->EKS|"ECS"->ECS|"ECS_FARGATE"->ECS_FARGATE|"SAGEMAKER_TRAINING"->SAGEMAKER_TRAINING|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 JobQueueType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobQueueType"j)letto_json=simple_to_jsonto_valueendmoduleJobStateTimeLimitActions=structtypenonrect=JobStateTimeLimitAction.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobStateTimeLimitAction.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:JobStateTimeLimitAction.of_xml)letof_jsonj=list_of_json~kind:"JobStateTimeLimitActions"~of_json:JobStateTimeLimitAction.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceEnvironmentOrders=structtypenonrect=ServiceEnvironmentOrder.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceEnvironmentOrder.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:ServiceEnvironmentOrder.of_xml)letof_jsonj=list_of_json~kind:"ServiceEnvironmentOrders"~of_json:ServiceEnvironmentOrder.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleOrchestrationType=structtypenonrect=|ECS|EKS|Non_static_idofstringletmakei=iletto_string=function|ECS->"ECS"|EKS->"EKS"|Non_static_ids->sletof_string=function|"ECS"->ECS|"EKS"->EKS|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 OrchestrationType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OrchestrationType"j)letto_json=simple_to_jsonto_valueendmoduleCEState=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration CEState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CEState"j)letto_json=simple_to_jsonto_valueendmoduleCEStatus=structtypenonrect=|CREATING|UPDATING|DELETING|DELETED|VALID|INVALID|Non_static_idofstringletmakei=iletto_string=function|CREATING->"CREATING"|UPDATING->"UPDATING"|DELETING->"DELETING"|DELETED->"DELETED"|VALID->"VALID"|INVALID->"INVALID"|Non_static_ids->sletof_string=function|"CREATING"->CREATING|"UPDATING"->UPDATING|"DELETING"->DELETING|"DELETED"->DELETED|"VALID"->VALID|"INVALID"->INVALID|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 CEStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CEStatus"j)letto_json=simple_to_jsonto_valueendmoduleCEType=structtypenonrect=|MANAGED|UNMANAGED|Non_static_idofstringletmakei=iletto_string=function|MANAGED->"MANAGED"|UNMANAGED->"UNMANAGED"|Non_static_ids->sletof_string=function|"MANAGED"->MANAGED|"UNMANAGED"->UNMANAGED|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 CEType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CEType"j)letto_json=simple_to_jsonto_valueendmoduleComputeResource=structtypenonrect={type_:CRType.t[@ocaml.doc"The type of compute environment: EC2, SPOT, FARGATE, or FARGATE_SPOT. For more information, see Compute environments in the Batch User Guide. If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the spotIamFleetRole parameter. For more information, see Amazon EC2 spot fleet role in the Batch User Guide. Multi-node parallel jobs aren't supported on Spot Instances."];allocationStrategy:CRAllocationStrategy.toption[@ocaml.doc"The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more information, see Allocation strategies in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. BEST_FIT (default) Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, Batch waits for the additional instances to be available. If there aren't enough instances available or the user is reaching Amazon EC2 service limits, additional jobs aren't run until the currently running jobs are completed. This allocation strategy keeps costs lower but can limit scaling. If you're using Spot Fleets with BEST_FIT, the Spot Fleet IAM Role must be specified. Compute resources that use a BEST_FIT allocation strategy don't support infrastructure updates and can't update some parameters. For more information, see Updating compute environments in the Batch User Guide. BEST_FIT_PROGRESSIVE Batch selects additional instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If additional instances of the previously selected instance types aren't available, Batch selects new instance types. SPOT_CAPACITY_OPTIMIZED Batch selects one or more instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. SPOT_PRICE_CAPACITY_OPTIMIZED The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. This allocation strategy is only available for Spot Instance compute resources. With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and SPOT_PRICE_CAPACITY_OPTIMIZED (recommended) strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance."];minvCpus:Integer.toption[@ocaml.doc"The minimum number of vCPUs that a compute environment should maintain (even if the compute environment is DISABLED). This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];maxvCpus:Integer.t[@ocaml.doc"The maximum number of vCPUs that a compute environment can support. With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and SPOT_PRICE_CAPACITY_OPTIMIZED (recommended) strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance."];desiredvCpus:Integer.toption[@ocaml.doc"The desired number of vCPUS in the compute environment. Batch modifies this value between the minimum and maximum values based on job queue demand. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];instanceTypes:StringList.toption[@ocaml.doc"The instances types that can be launched. You can specify instance families to launch any instance type within those families (for example, c5 or p3), or you can specify specific sizes within a family (such as c5.8xlarge). Batch can select the instance type for you if you choose one of the following: optimal to select instance types (from the c4, m4, r4, c5, m5, and r5 instance families) that match the demand of your job queues. default_x86_64 to choose x86 based instance types (from the m6i, c6i, r6i, and c7i instance families) that matches the resource demands of the job queue. default_arm64 to choose ARM based instance types (from the m6g, c6g, r6g, and c7g instance families) that matches the resource demands of the job queue. Starting on 11/01/2025 the behavior of optimal is going to be changed to match default_x86_64. During the change your instance families could be updated to a newer generation. You do not need to perform any actions for the upgrade to happen. For more information about change, see Optimal instance type configuration to receive automatic instance family updates. Instance family availability varies by Amazon Web Services Region. For example, some Amazon Web Services Regions may not have any fourth generation instance families but have fifth and sixth generation instance families. When using default_x86_64 or default_arm64 instance bundles, Batch selects instance families based on a balance of cost-effectiveness and performance. While newer generation instances often provide better price-performance, Batch may choose an earlier generation instance family if it provides the optimal combination of availability, cost, and performance for your workload. For example, in an Amazon Web Services Region where both c6i and c7i instances are available, Batch might select c6i instances if they offer better cost-effectiveness for your specific job requirements. For more information on Batch instance types and Amazon Web Services Region availability, see Instance type compute table in the Batch User Guide. Batch periodically updates your instances in default bundles to newer, more cost-effective options. Updates happen automatically without requiring any action from you. Your workloads continue running during updates with no interruption This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. When you create a compute environment, the instance types that you select for the compute environment must share the same architecture. For example, you can't mix x86 and ARM instances in the same compute environment."];imageId:String_.toption[@ocaml.doc"The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is overridden by the imageIdOverride member of the Ec2Configuration structure. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2023 AMI. For more information, see Amazon ECS-optimized Amazon Linux 2023 AMI in the Amazon Elastic Container Service Developer Guide."];subnets:StringList.t[@ocaml.doc"The VPC subnets where the compute resources are launched. These subnets must be within the same VPC. Fargate compute resources can contain up to 16 subnets. For more information, see VPCs and subnets in the Amazon VPC User Guide. Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see Local Zones in the Amazon EC2 User Guide for Linux Instances, Amazon EKS and Amazon Web Services Local Zones in the Amazon EKS User Guide and Amazon ECS clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts in the Amazon ECS Developer Guide. Batch on Fargate doesn't currently support Local Zones."];securityGroupIds:StringList.toption[@ocaml.doc"The Amazon EC2 security groups that are associated with instances launched in the compute environment. One or more security groups must be specified, either in securityGroupIds or using a launch template referenced in launchTemplate. This parameter is required for jobs that are running on Fargate resources and must contain at least one security group. Fargate doesn't support launch templates. If security groups are specified using both securityGroupIds and launchTemplate, the values in securityGroupIds are used."];ec2KeyPair:String_.toption[@ocaml.doc"The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to log in to your instances with SSH. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];instanceRole:String_.toption[@ocaml.doc"The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This parameter is required for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ecsInstanceRole or arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole . For more information, see Amazon ECS instance role in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];tags:TagsMap.toption[@ocaml.doc"Key-value pair tags to be applied to Amazon EC2 resources that are launched in the compute environment. For Batch, these take the form of \"String1\": \"String2\", where String1 is the tag key and String2 is the tag value (for example, \\{ \"Name\": \"Batch Instance - C4OnDemand\" \\}). This is helpful for recognizing your Batch instances in the Amazon EC2 console. Updating these tags requires an infrastructure update to the compute environment. For more information, see Updating compute environments in the Batch User Guide. These tags aren't seen when using the Batch ListTagsForResource API operation. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];placementGroup:String_.toption[@ocaml.doc"The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see Placement groups in the Amazon EC2 User Guide for Linux Instances. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];bidPercentage:Integer.toption[@ocaml.doc"The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand price. For most use cases, we recommend leaving this field empty. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];spotIamFleetRole:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is required if the allocation strategy set to BEST_FIT or if the allocation strategy isn't specified. For more information, see Amazon EC2 spot fleet role in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer AmazonEC2SpotFleetTaggingRole managed policy. The previously recommended AmazonEC2SpotFleetRole managed policy doesn't have the required permissions to tag Spot Instances. For more information, see Spot instances not tagged on creation in the Batch User Guide."];launchTemplate:LaunchTemplateSpecification.toption[@ocaml.doc"The launch template to use for your compute resources. Any other compute resource parameters that you specify in a CreateComputeEnvironment API operation override the same parameters in the launch template. You must specify either the launch template ID or launch template name in the request, but not both. For more information, see Launch template support in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];ec2Configuration:Ec2ConfigurationList.toption[@ocaml.doc"Provides information that's used to select Amazon Machine Images (AMIs) for Amazon EC2 instances in the compute environment. If Ec2Configuration isn't specified, the default is ECS_AL2023 for EC2 (ECS) compute environments and EKS_AL2023 for EKS compute environments. One or two values can be provided. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];scalingPolicy:ComputeScalingPolicy.toption[@ocaml.doc"The scaling policy configuration for the compute environment. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."]}letcontext_="ComputeResource"letmake?allocationStrategy=fun?minvCpus->fun?desiredvCpus->fun?instanceTypes->fun?imageId->fun?securityGroupIds->fun?ec2KeyPair->fun?instanceRole->fun?tags->fun?placementGroup->fun?bidPercentage->fun?spotIamFleetRole->fun?launchTemplate->fun?ec2Configuration->fun?scalingPolicy->fun~type_->fun~maxvCpus->fun~subnets->fun()->{allocationStrategy;minvCpus;desiredvCpus;instanceTypes;imageId;securityGroupIds;ec2KeyPair;instanceRole;tags;placementGroup;bidPercentage;spotIamFleetRole;launchTemplate;ec2Configuration;scalingPolicy;type_;maxvCpus;subnets}letto_valuex=structure_to_value[("type",(Some(CRType.to_valuex.type_)));("allocationStrategy",(Option.mapx.allocationStrategy~f:CRAllocationStrategy.to_value));("minvCpus",(Option.mapx.minvCpus~f:Integer.to_value));("maxvCpus",(Some(Integer.to_valuex.maxvCpus)));("desiredvCpus",(Option.mapx.desiredvCpus~f:Integer.to_value));("instanceTypes",(Option.mapx.instanceTypes~f:StringList.to_value));("imageId",(Option.mapx.imageId~f:String_.to_value));("subnets",(Some(StringList.to_valuex.subnets)));("securityGroupIds",(Option.mapx.securityGroupIds~f:StringList.to_value));("ec2KeyPair",(Option.mapx.ec2KeyPair~f:String_.to_value));("instanceRole",(Option.mapx.instanceRole~f:String_.to_value));("tags",(Option.mapx.tags~f:TagsMap.to_value));("placementGroup",(Option.mapx.placementGroup~f:String_.to_value));("bidPercentage",(Option.mapx.bidPercentage~f:Integer.to_value));("spotIamFleetRole",(Option.mapx.spotIamFleetRole~f:String_.to_value));("launchTemplate",(Option.mapx.launchTemplate~f:LaunchTemplateSpecification.to_value));("ec2Configuration",(Option.mapx.ec2Configuration~f:Ec2ConfigurationList.to_value));("scalingPolicy",(Option.mapx.scalingPolicy~f:ComputeScalingPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscalingPolicy=(Option.map~f:ComputeScalingPolicy.of_xml)(Xml.childxml_arg0"scalingPolicy")inletec2Configuration=(Option.map~f:Ec2ConfigurationList.of_xml)(Xml.childxml_arg0"ec2Configuration")inletlaunchTemplate=(Option.map~f:LaunchTemplateSpecification.of_xml)(Xml.childxml_arg0"launchTemplate")inletspotIamFleetRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"spotIamFleetRole")inletbidPercentage=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"bidPercentage")inletplacementGroup=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"placementGroup")inlettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inletinstanceRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceRole")inletec2KeyPair=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ec2KeyPair")inletsecurityGroupIds=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"securityGroupIds")inletsubnets=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"subnets")inletimageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"imageId")inletinstanceTypes=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"instanceTypes")inletdesiredvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"desiredvCpus")inletmaxvCpus=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"maxvCpus")inletminvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"minvCpus")inletallocationStrategy=(Option.map~f:CRAllocationStrategy.of_xml)(Xml.childxml_arg0"allocationStrategy")inlettype_=CRType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inmake?scalingPolicy?ec2Configuration?launchTemplate?spotIamFleetRole?bidPercentage?placementGroup?tags?instanceRole?ec2KeyPair?securityGroupIds~subnets?imageId?instanceTypes?desiredvCpus~maxvCpus?minvCpus?allocationStrategy~type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscalingPolicy=field_mapjson__"scalingPolicy"ComputeScalingPolicy.of_jsoninletec2Configuration=field_mapjson__"ec2Configuration"Ec2ConfigurationList.of_jsoninletlaunchTemplate=field_mapjson__"launchTemplate"LaunchTemplateSpecification.of_jsoninletspotIamFleetRole=field_mapjson__"spotIamFleetRole"String_.of_jsoninletbidPercentage=field_mapjson__"bidPercentage"Integer.of_jsoninletplacementGroup=field_mapjson__"placementGroup"String_.of_jsoninlettags=field_mapjson__"tags"TagsMap.of_jsoninletinstanceRole=field_mapjson__"instanceRole"String_.of_jsoninletec2KeyPair=field_mapjson__"ec2KeyPair"String_.of_jsoninletsecurityGroupIds=field_mapjson__"securityGroupIds"StringList.of_jsoninletsubnets=field_map_exnjson__"subnets"StringList.of_jsoninletimageId=field_mapjson__"imageId"String_.of_jsoninletinstanceTypes=field_mapjson__"instanceTypes"StringList.of_jsoninletdesiredvCpus=field_mapjson__"desiredvCpus"Integer.of_jsoninletmaxvCpus=field_map_exnjson__"maxvCpus"Integer.of_jsoninletminvCpus=field_mapjson__"minvCpus"Integer.of_jsoninletallocationStrategy=field_mapjson__"allocationStrategy"CRAllocationStrategy.of_jsoninlettype_=field_map_exnjson__"type"CRType.of_jsoninmake?scalingPolicy?ec2Configuration?launchTemplate?spotIamFleetRole?bidPercentage?placementGroup?tags?instanceRole?ec2KeyPair?securityGroupIds~subnets?imageId?instanceTypes?desiredvCpus~maxvCpus?minvCpus?allocationStrategy~type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Batch compute resource. For more information, see Compute environments in the Batch User Guide."]moduleEksConfiguration=structtypenonrect={eksClusterArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the Amazon EKS cluster. An example is arn:aws:eks:us-east-1:123456789012:cluster/ClusterForBatch ."];kubernetesNamespace:String_.t[@ocaml.doc"The namespace of the Amazon EKS cluster. Batch manages pods in this namespace. The value can't left empty or null. It must be fewer than 64 characters long, can't be set to default, can't start with \"kube-,\" and must match this regular expression: ^\\[a-z0-9\\](\\[-a-z0-9\\]*\\[a-z0-9\\])?$. For more information, see Namespaces in the Kubernetes documentation."]}letcontext_="EksConfiguration"letmake~eksClusterArn=fun~kubernetesNamespace->fun()->{eksClusterArn;kubernetesNamespace}letto_valuex=structure_to_value[("eksClusterArn",(Some(String_.to_valuex.eksClusterArn)));("kubernetesNamespace",(Some(String_.to_valuex.kubernetesNamespace)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkubernetesNamespace=String_.of_xml(Xml.child_exn~context:context_xml_arg0"kubernetesNamespace")inleteksClusterArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"eksClusterArn")inmake~kubernetesNamespace~eksClusterArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkubernetesNamespace=field_map_exnjson__"kubernetesNamespace"String_.of_jsoninleteksClusterArn=field_map_exnjson__"eksClusterArn"String_.of_jsoninmake~kubernetesNamespace~eksClusterArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for the Amazon EKS cluster that supports the Batch compute environment. The cluster must exist before the compute environment can be created."]moduleUpdatePolicy=structtypenonrect={terminateJobsOnUpdate:Boolean.toption[@ocaml.doc"Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated. The default value is false."];jobExecutionTimeoutMinutes:JobExecutionTimeoutMinutes.toption[@ocaml.doc"Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30."]}letmake?terminateJobsOnUpdate=fun?jobExecutionTimeoutMinutes->fun()->{terminateJobsOnUpdate;jobExecutionTimeoutMinutes}letto_valuex=structure_to_value[("terminateJobsOnUpdate",(Option.mapx.terminateJobsOnUpdate~f:Boolean.to_value));("jobExecutionTimeoutMinutes",(Option.mapx.jobExecutionTimeoutMinutes~f:JobExecutionTimeoutMinutes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobExecutionTimeoutMinutes=(Option.map~f:JobExecutionTimeoutMinutes.of_xml)(Xml.childxml_arg0"jobExecutionTimeoutMinutes")inletterminateJobsOnUpdate=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"terminateJobsOnUpdate")inmake?jobExecutionTimeoutMinutes?terminateJobsOnUpdate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobExecutionTimeoutMinutes=field_mapjson__"jobExecutionTimeoutMinutes"JobExecutionTimeoutMinutes.of_jsoninletterminateJobsOnUpdate=field_mapjson__"terminateJobsOnUpdate"Boolean.of_jsoninmake?jobExecutionTimeoutMinutes?terminateJobsOnUpdate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the infrastructure update policy for the Amazon EC2 compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide."]moduleCRUpdateAllocationStrategy=structtypenonrect=|BEST_FIT_PROGRESSIVE|SPOT_CAPACITY_OPTIMIZED|SPOT_PRICE_CAPACITY_OPTIMIZED|Non_static_idofstringletmakei=iletto_string=function|BEST_FIT_PROGRESSIVE->"BEST_FIT_PROGRESSIVE"|SPOT_CAPACITY_OPTIMIZED->"SPOT_CAPACITY_OPTIMIZED"|SPOT_PRICE_CAPACITY_OPTIMIZED->"SPOT_PRICE_CAPACITY_OPTIMIZED"|Non_static_ids->sletof_string=function|"BEST_FIT_PROGRESSIVE"->BEST_FIT_PROGRESSIVE|"SPOT_CAPACITY_OPTIMIZED"->SPOT_CAPACITY_OPTIMIZED|"SPOT_PRICE_CAPACITY_OPTIMIZED"->SPOT_PRICE_CAPACITY_OPTIMIZED|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 CRUpdateAllocationStrategy"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"CRUpdateAllocationStrategy"j)letto_json=simple_to_jsonto_valueendmoduleServiceJobEvaluateOnExitList=structtypenonrect=ServiceJobEvaluateOnExit.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceJobEvaluateOnExit.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:ServiceJobEvaluateOnExit.of_xml)letof_jsonj=list_of_json~kind:"ServiceJobEvaluateOnExitList"~of_json:ServiceJobEvaluateOnExit.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNodePropertyOverrides=structtypenonrect=NodePropertyOverride.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NodePropertyOverride.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:NodePropertyOverride.of_xml)letof_jsonj=list_of_json~kind:"NodePropertyOverrides"~of_json:NodePropertyOverride.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobSummary=structtypenonrect={latestAttempt:LatestServiceJobAttempt.toption[@ocaml.doc"Information about the latest attempt for the service job."];capacityUsage:ServiceJobCapacityUsageSummaryList.toption[@ocaml.doc"The capacity usage information for this service job, including the unit of measure and quantity of resources being used."];createdAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job was created."];jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the service job."];jobId:String_.toption[@ocaml.doc"The job ID for the service job."];jobName:String_.toption[@ocaml.doc"The name of the service job."];scheduledAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job was scheduled for execution."];serviceJobType:ServiceJobType.toption[@ocaml.doc"The type of service job. For SageMaker Training jobs, this value is SAGEMAKER_TRAINING."];shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the job."];quotaShareName:String_.toption[@ocaml.doc"The quota share for the service job."];status:ServiceJobStatus.toption[@ocaml.doc"The current status of the service job."];statusReason:String_.toption[@ocaml.doc"A short string to provide more details on the current status of the service job."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job was started."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job stopped running."]}letmake?latestAttempt=fun?capacityUsage->fun?createdAt->fun?jobArn->fun?jobId->fun?jobName->fun?scheduledAt->fun?serviceJobType->fun?shareIdentifier->fun?quotaShareName->fun?status->fun?statusReason->fun?startedAt->fun?stoppedAt->fun()->{latestAttempt;capacityUsage;createdAt;jobArn;jobId;jobName;scheduledAt;serviceJobType;shareIdentifier;quotaShareName;status;statusReason;startedAt;stoppedAt}letto_valuex=structure_to_value[("latestAttempt",(Option.mapx.latestAttempt~f:LatestServiceJobAttempt.to_value));("capacityUsage",(Option.mapx.capacityUsage~f:ServiceJobCapacityUsageSummaryList.to_value));("createdAt",(Option.mapx.createdAt~f:Long.to_value));("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("scheduledAt",(Option.mapx.scheduledAt~f:Long.to_value));("serviceJobType",(Option.mapx.serviceJobType~f:ServiceJobType.to_value));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("status",(Option.mapx.status~f:ServiceJobStatus.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:ServiceJobStatus.of_xml)(Xml.childxml_arg0"status")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletserviceJobType=(Option.map~f:ServiceJobType.of_xml)(Xml.childxml_arg0"serviceJobType")inletscheduledAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"scheduledAt")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inletcreatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"createdAt")inletcapacityUsage=(Option.map~f:ServiceJobCapacityUsageSummaryList.of_xml)(Xml.childxml_arg0"capacityUsage")inletlatestAttempt=(Option.map~f:LatestServiceJobAttempt.of_xml)(Xml.childxml_arg0"latestAttempt")inmake?stoppedAt?startedAt?statusReason?status?quotaShareName?shareIdentifier?serviceJobType?scheduledAt?jobName?jobId?jobArn?createdAt?capacityUsage?latestAttempt()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstatus=field_mapjson__"status"ServiceJobStatus.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletserviceJobType=field_mapjson__"serviceJobType"ServiceJobType.of_jsoninletscheduledAt=field_mapjson__"scheduledAt"Long.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobId=field_mapjson__"jobId"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"Long.of_jsoninletcapacityUsage=field_mapjson__"capacityUsage"ServiceJobCapacityUsageSummaryList.of_jsoninletlatestAttempt=field_mapjson__"latestAttempt"LatestServiceJobAttempt.of_jsoninmake?stoppedAt?startedAt?statusReason?status?quotaShareName?shareIdentifier?serviceJobType?scheduledAt?jobName?jobId?jobArn?createdAt?capacityUsage?latestAttempt()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary information about a service job."]moduleKeyValuesPair=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the filter. Filter names are case sensitive."];values:StringList.toption[@ocaml.doc"The filter values."]}letmake?name=fun?values->fun()->{name;values}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("values",(Option.mapx.values~f:StringList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalues=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"values")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?values?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalues=field_mapjson__"values"StringList.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?values?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filter name and value pair that's used to return a more specific list of results from a ListJobs or ListJobsByConsumableResource API operation."]moduleSchedulingPolicyListingDetail=structtypenonrect={arn:String_.toption[@ocaml.doc"Amazon Resource Name (ARN) of the scheduling policy."]}letmake?arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"arn")inmake?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"arn"String_.of_jsoninmake?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that contains the details of a scheduling policy that's returned in a ListSchedulingPolicy action."]moduleQuotaShareDetail=structtypenonrect={quotaShareName:String_.toption[@ocaml.doc"The name of the quota share."];quotaShareArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share."];jobQueueArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job queue associated with the quota share."];capacityLimits:QuotaShareCapacityLimits.toption[@ocaml.doc"A list that specifies the quantity and type of compute capacity allocated to the quota share."];resourceSharingConfiguration:QuotaShareResourceSharingConfiguration.toption[@ocaml.doc"Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity."];preemptionConfiguration:QuotaSharePreemptionConfiguration.toption[@ocaml.doc"Specifies the preemption behavior for jobs in a quota share."];state:QuotaShareState.toption[@ocaml.doc"The state of the quota share."];status:QuotaShareStatus.toption[@ocaml.doc"The current status of the quota share."]}letmake?quotaShareName=fun?quotaShareArn->fun?jobQueueArn->fun?capacityLimits->fun?resourceSharingConfiguration->fun?preemptionConfiguration->fun?state->fun?status->fun()->{quotaShareName;quotaShareArn;jobQueueArn;capacityLimits;resourceSharingConfiguration;preemptionConfiguration;state;status}letto_valuex=structure_to_value[("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("quotaShareArn",(Option.mapx.quotaShareArn~f:String_.to_value));("jobQueueArn",(Option.mapx.jobQueueArn~f:String_.to_value));("capacityLimits",(Option.mapx.capacityLimits~f:QuotaShareCapacityLimits.to_value));("resourceSharingConfiguration",(Option.mapx.resourceSharingConfiguration~f:QuotaShareResourceSharingConfiguration.to_value));("preemptionConfiguration",(Option.mapx.preemptionConfiguration~f:QuotaSharePreemptionConfiguration.to_value));("state",(Option.mapx.state~f:QuotaShareState.to_value));("status",(Option.mapx.status~f:QuotaShareStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:QuotaShareStatus.of_xml)(Xml.childxml_arg0"status")inletstate=(Option.map~f:QuotaShareState.of_xml)(Xml.childxml_arg0"state")inletpreemptionConfiguration=(Option.map~f:QuotaSharePreemptionConfiguration.of_xml)(Xml.childxml_arg0"preemptionConfiguration")inletresourceSharingConfiguration=(Option.map~f:QuotaShareResourceSharingConfiguration.of_xml)(Xml.childxml_arg0"resourceSharingConfiguration")inletcapacityLimits=(Option.map~f:QuotaShareCapacityLimits.of_xml)(Xml.childxml_arg0"capacityLimits")inletjobQueueArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueArn")inletquotaShareArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareArn")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inmake?status?state?preemptionConfiguration?resourceSharingConfiguration?capacityLimits?jobQueueArn?quotaShareArn?quotaShareName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"QuotaShareStatus.of_jsoninletstate=field_mapjson__"state"QuotaShareState.of_jsoninletpreemptionConfiguration=field_mapjson__"preemptionConfiguration"QuotaSharePreemptionConfiguration.of_jsoninletresourceSharingConfiguration=field_mapjson__"resourceSharingConfiguration"QuotaShareResourceSharingConfiguration.of_jsoninletcapacityLimits=field_mapjson__"capacityLimits"QuotaShareCapacityLimits.of_jsoninletjobQueueArn=field_mapjson__"jobQueueArn"String_.of_jsoninletquotaShareArn=field_mapjson__"quotaShareArn"String_.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninmake?status?state?preemptionConfiguration?resourceSharingConfiguration?capacityLimits?jobQueueArn?quotaShareArn?quotaShareName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detailed information about a quota share, including its configuration, state, and capacity limits."]moduleJobSummary=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job."];jobId:String_.toption[@ocaml.doc"The job ID."];jobName:String_.toption[@ocaml.doc"The job name."];capacityUsage:JobCapacityUsageSummaryList.toption[@ocaml.doc"The configured capacity usage information for this job, including the unit of measure and quantity of resources."];createdAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state."];scheduledAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job was scheduled for execution. For more information on job statues, see Service job status in the Batch User Guide."];shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the fairshare scheduling queue that this job is associated with."];status:JobStatus.toption[@ocaml.doc"The current status for the job."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide more details for the current status of the job."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED."];container:ContainerSummary.toption[@ocaml.doc"An object that represents the details of the container that's associated with the job."];arrayProperties:ArrayPropertiesSummary.toption[@ocaml.doc"The array properties of the job, if it's an array job."];nodeProperties:NodePropertiesSummary.toption[@ocaml.doc"The node properties for a single node in a job summary list. This isn't applicable to jobs that are running on Fargate resources."];jobDefinition:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job definition."]}letmake?jobArn=fun?jobId->fun?jobName->fun?capacityUsage->fun?createdAt->fun?scheduledAt->fun?shareIdentifier->fun?status->fun?statusReason->fun?startedAt->fun?stoppedAt->fun?container->fun?arrayProperties->fun?nodeProperties->fun?jobDefinition->fun()->{jobArn;jobId;jobName;capacityUsage;createdAt;scheduledAt;shareIdentifier;status;statusReason;startedAt;stoppedAt;container;arrayProperties;nodeProperties;jobDefinition}letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("capacityUsage",(Option.mapx.capacityUsage~f:JobCapacityUsageSummaryList.to_value));("createdAt",(Option.mapx.createdAt~f:Long.to_value));("scheduledAt",(Option.mapx.scheduledAt~f:Long.to_value));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("status",(Option.mapx.status~f:JobStatus.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("container",(Option.mapx.container~f:ContainerSummary.to_value));("arrayProperties",(Option.mapx.arrayProperties~f:ArrayPropertiesSummary.to_value));("nodeProperties",(Option.mapx.nodeProperties~f:NodePropertiesSummary.to_value));("jobDefinition",(Option.mapx.jobDefinition~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobDefinition=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinition")inletnodeProperties=(Option.map~f:NodePropertiesSummary.of_xml)(Xml.childxml_arg0"nodeProperties")inletarrayProperties=(Option.map~f:ArrayPropertiesSummary.of_xml)(Xml.childxml_arg0"arrayProperties")inletcontainer=(Option.map~f:ContainerSummary.of_xml)(Xml.childxml_arg0"container")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:JobStatus.of_xml)(Xml.childxml_arg0"status")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletscheduledAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"scheduledAt")inletcreatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"createdAt")inletcapacityUsage=(Option.map~f:JobCapacityUsageSummaryList.of_xml)(Xml.childxml_arg0"capacityUsage")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?jobDefinition?nodeProperties?arrayProperties?container?stoppedAt?startedAt?statusReason?status?shareIdentifier?scheduledAt?createdAt?capacityUsage?jobName?jobId?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobDefinition=field_mapjson__"jobDefinition"String_.of_jsoninletnodeProperties=field_mapjson__"nodeProperties"NodePropertiesSummary.of_jsoninletarrayProperties=field_mapjson__"arrayProperties"ArrayPropertiesSummary.of_jsoninletcontainer=field_mapjson__"container"ContainerSummary.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstatus=field_mapjson__"status"JobStatus.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletscheduledAt=field_mapjson__"scheduledAt"Long.of_jsoninletcreatedAt=field_mapjson__"createdAt"Long.of_jsoninletcapacityUsage=field_mapjson__"capacityUsage"JobCapacityUsageSummaryList.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobId=field_mapjson__"jobId"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?jobDefinition?nodeProperties?arrayProperties?container?stoppedAt?startedAt?statusReason?status?shareIdentifier?scheduledAt?createdAt?capacityUsage?jobName?jobId?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents summary details of a job."]moduleListJobsByConsumableResourceSummary=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job."];jobQueueArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job queue."];jobName:String_.toption[@ocaml.doc"The name of the job."];jobDefinitionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job definition."];shareIdentifier:String_.toption[@ocaml.doc"The fair-share scheduling identifier for the job."];jobStatus:String_.toption[@ocaml.doc"The status of the job. Can be one of: SUBMITTED PENDING RUNNABLE STARTING RUNNING SUCCEEDED FAILED"];quantity:Long.toption[@ocaml.doc"The total amount of the consumable resource that is available."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide more details for the current status of the job."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state."];createdAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the consumable resource was created."];consumableResourceProperties:ConsumableResourceProperties.toption[@ocaml.doc"Contains a list of consumable resources required by the job."]}letmake?jobArn=fun?jobQueueArn->fun?jobName->fun?jobDefinitionArn->fun?shareIdentifier->fun?jobStatus->fun?quantity->fun?statusReason->fun?startedAt->fun?createdAt->fun?consumableResourceProperties->fun()->{jobArn;jobQueueArn;jobName;jobDefinitionArn;shareIdentifier;jobStatus;quantity;statusReason;startedAt;createdAt;consumableResourceProperties}letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobQueueArn",(Option.mapx.jobQueueArn~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("jobDefinitionArn",(Option.mapx.jobDefinitionArn~f:String_.to_value));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("jobStatus",(Option.mapx.jobStatus~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Long.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("createdAt",(Option.mapx.createdAt~f:Long.to_value));("consumableResourceProperties",(Option.mapx.consumableResourceProperties~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceProperties=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourceProperties")inletcreatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"createdAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletquantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"quantity")inletjobStatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobStatus")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletjobDefinitionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinitionArn")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobQueueArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueArn")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?consumableResourceProperties?createdAt?startedAt?statusReason?quantity?jobStatus?shareIdentifier?jobDefinitionArn?jobName?jobQueueArn?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceProperties=field_mapjson__"consumableResourceProperties"ConsumableResourceProperties.of_jsoninletcreatedAt=field_mapjson__"createdAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletquantity=field_mapjson__"quantity"Long.of_jsoninletjobStatus=field_mapjson__"jobStatus"String_.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletjobDefinitionArn=field_mapjson__"jobDefinitionArn"String_.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobQueueArn=field_mapjson__"jobQueueArn"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?consumableResourceProperties?createdAt?startedAt?statusReason?quantity?jobStatus?shareIdentifier?jobDefinitionArn?jobName?jobQueueArn?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Current information about a consumable resource required by a job."]moduleConsumableResourceSummary=structtypenonrect={consumableResourceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the consumable resource."];consumableResourceName:String_.toption[@ocaml.doc"The name of the consumable resource."];totalQuantity:Long.toption[@ocaml.doc"The total amount of the consumable resource that is available."];inUseQuantity:Long.toption[@ocaml.doc"The amount of the consumable resource that is currently in use."];resourceType:String_.toption[@ocaml.doc"Indicates whether the resource is available to be re-used after a job completes. Can be one of: REPLENISHABLE NON_REPLENISHABLE"]}letmake?consumableResourceArn=fun?consumableResourceName->fun?totalQuantity->fun?inUseQuantity->fun?resourceType->fun()->{consumableResourceArn;consumableResourceName;totalQuantity;inUseQuantity;resourceType}letto_valuex=structure_to_value[("consumableResourceArn",(Option.mapx.consumableResourceArn~f:String_.to_value));("consumableResourceName",(Option.mapx.consumableResourceName~f:String_.to_value));("totalQuantity",(Option.mapx.totalQuantity~f:Long.to_value));("inUseQuantity",(Option.mapx.inUseQuantity~f:Long.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletinUseQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"inUseQuantity")inlettotalQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"totalQuantity")inletconsumableResourceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceName")inletconsumableResourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceArn")inmake?resourceType?inUseQuantity?totalQuantity?consumableResourceName?consumableResourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"resourceType"String_.of_jsoninletinUseQuantity=field_mapjson__"inUseQuantity"Long.of_jsoninlettotalQuantity=field_mapjson__"totalQuantity"Long.of_jsoninletconsumableResourceName=field_mapjson__"consumableResourceName"String_.of_jsoninletconsumableResourceArn=field_mapjson__"consumableResourceArn"String_.of_jsoninmake?resourceType?inUseQuantity?totalQuantity?consumableResourceName?consumableResourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Current information about a consumable resource."]moduleFrontOfQueueJobSummaryList=structtypenonrect=FrontOfQueueJobSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:FrontOfQueueJobSummary.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:FrontOfQueueJobSummary.of_xml)letof_jsonj=list_of_json~kind:"FrontOfQueueJobSummaryList"~of_json:FrontOfQueueJobSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFrontOfQuotaSharesJobSummaryMap=structtypenonrect=(String_.t*FrontOfQuotaShareJobSummaryList.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types String FrontOfQuotaShareJobSummaryList"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(FrontOfQuotaShareJobSummaryList.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:FrontOfQuotaShareJobSummaryList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFairshareUtilizationDetail=structtypenonrect={activeShareCount:Long.toption[@ocaml.doc"The total number of active shares in the fairshare scheduling job queue that are currently utilizing capacity."];topCapacityUtilization:FairshareCapacityUtilizationList.toption[@ocaml.doc"A list of the top 20 shares with the highest capacity utilization, ordered by usage amount."]}letmake?activeShareCount=fun?topCapacityUtilization->fun()->{activeShareCount;topCapacityUtilization}letto_valuex=structure_to_value[("activeShareCount",(Option.mapx.activeShareCount~f:Long.to_value));("topCapacityUtilization",(Option.mapx.topCapacityUtilization~f:FairshareCapacityUtilizationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopCapacityUtilization=(Option.map~f:FairshareCapacityUtilizationList.of_xml)(Xml.childxml_arg0"topCapacityUtilization")inletactiveShareCount=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"activeShareCount")inmake?topCapacityUtilization?activeShareCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopCapacityUtilization=field_mapjson__"topCapacityUtilization"FairshareCapacityUtilizationList.of_jsoninletactiveShareCount=field_mapjson__"activeShareCount"Long.of_jsoninmake?topCapacityUtilization?activeShareCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The fairshare utilization for a job queue, including the number of active shares and top capacity utilization."]moduleQueueSnapshotCapacityUsageList=structtypenonrect=QueueSnapshotCapacityUsage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QueueSnapshotCapacityUsage.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:QueueSnapshotCapacityUsage.of_xml)letof_jsonj=list_of_json~kind:"QueueSnapshotCapacityUsageList"~of_json:QueueSnapshotCapacityUsage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQuotaShareUtilizationDetail=structtypenonrect={topCapacityUtilization:QuotaShareCapacityUtilizationList.toption[@ocaml.doc"A list of the top capacity utilizations across quota shares associated with a job queue."]}letmake?topCapacityUtilization=fun()->{topCapacityUtilization}letto_valuex=structure_to_value[("topCapacityUtilization",(Option.mapx.topCapacityUtilization~f:QuotaShareCapacityUtilizationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettopCapacityUtilization=(Option.map~f:QuotaShareCapacityUtilizationList.of_xml)(Xml.childxml_arg0"topCapacityUtilization")inmake?topCapacityUtilization()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettopCapacityUtilization=field_mapjson__"topCapacityUtilization"QuotaShareCapacityUtilizationList.of_jsoninmake?topCapacityUtilization()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the capacity utilization details of all quota shares associated with a single job queue."]moduleServiceJobAttemptDetail=structtypenonrect={serviceResourceId:ServiceResourceId.toption[@ocaml.doc"The service resource identifier associated with the service job attempt."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job attempt was started."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job attempt stopped running."];statusReason:String_.toption[@ocaml.doc"A string that provides additional details for the current status of the service job attempt."]}letmake?serviceResourceId=fun?startedAt->fun?stoppedAt->fun?statusReason->fun()->{serviceResourceId;startedAt;stoppedAt;statusReason}letto_valuex=structure_to_value[("serviceResourceId",(Option.mapx.serviceResourceId~f:ServiceResourceId.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletserviceResourceId=(Option.map~f:ServiceResourceId.of_xml)(Xml.childxml_arg0"serviceResourceId")inmake?statusReason?stoppedAt?startedAt?serviceResourceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletserviceResourceId=field_mapjson__"serviceResourceId"ServiceResourceId.of_jsoninmake?statusReason?stoppedAt?startedAt?serviceResourceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detailed information about an attempt to run a service job."]moduleServiceJobCapacityUsageDetail=structtypenonrect={capacityUnit:String_.toption[@ocaml.doc"The unit of measure for the service job capacity usage. For service jobs, this is the instance type."];quantity:Double.toption[@ocaml.doc"The quantity of capacity being used by the service job, measured in the units specified by capacityUnit."]}letmake?capacityUnit=fun?quantity->fun()->{capacityUnit;quantity}letto_valuex=structure_to_value[("capacityUnit",(Option.mapx.capacityUnit~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquantity=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"quantity")inletcapacityUnit=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"capacityUnit")inmake?quantity?capacityUnit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquantity=field_mapjson__"quantity"Double.of_jsoninletcapacityUnit=field_mapjson__"capacityUnit"String_.of_jsoninmake?quantity?capacityUnit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The capacity usage for a service job, including the unit of measure and quantity of resources being consumed."]moduleServiceJobRecentPreemptedAttemptList=structtypenonrect=ServiceJobPreemptedAttempt.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceJobPreemptedAttempt.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:ServiceJobPreemptedAttempt.of_xml)letof_jsonj=list_of_json~kind:"ServiceJobRecentPreemptedAttemptList"~of_json:ServiceJobPreemptedAttempt.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceEnvironmentDetail=structtypenonrect={serviceEnvironmentName:String_.toption[@ocaml.doc"The name of the service environment."];serviceEnvironmentArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the service environment."];serviceEnvironmentType:ServiceEnvironmentType.toption[@ocaml.doc"The type of service environment. For SageMaker Training jobs, this value is SAGEMAKER_TRAINING."];state:ServiceEnvironmentState.toption[@ocaml.doc"The state of the service environment. Valid values are ENABLED and DISABLED."];status:ServiceEnvironmentStatus.toption[@ocaml.doc"The current status of the service environment."];capacityLimits:CapacityLimits.toption[@ocaml.doc"The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags associated with the service environment. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources."]}letmake?serviceEnvironmentName=fun?serviceEnvironmentArn->fun?serviceEnvironmentType->fun?state->fun?status->fun?capacityLimits->fun?tags->fun()->{serviceEnvironmentName;serviceEnvironmentArn;serviceEnvironmentType;state;status;capacityLimits;tags}letto_valuex=structure_to_value[("serviceEnvironmentName",(Option.mapx.serviceEnvironmentName~f:String_.to_value));("serviceEnvironmentArn",(Option.mapx.serviceEnvironmentArn~f:String_.to_value));("serviceEnvironmentType",(Option.mapx.serviceEnvironmentType~f:ServiceEnvironmentType.to_value));("state",(Option.mapx.state~f:ServiceEnvironmentState.to_value));("status",(Option.mapx.status~f:ServiceEnvironmentStatus.to_value));("capacityLimits",(Option.mapx.capacityLimits~f:CapacityLimits.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletcapacityLimits=(Option.map~f:CapacityLimits.of_xml)(Xml.childxml_arg0"capacityLimits")inletstatus=(Option.map~f:ServiceEnvironmentStatus.of_xml)(Xml.childxml_arg0"status")inletstate=(Option.map~f:ServiceEnvironmentState.of_xml)(Xml.childxml_arg0"state")inletserviceEnvironmentType=(Option.map~f:ServiceEnvironmentType.of_xml)(Xml.childxml_arg0"serviceEnvironmentType")inletserviceEnvironmentArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceEnvironmentArn")inletserviceEnvironmentName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceEnvironmentName")inmake?tags?capacityLimits?status?state?serviceEnvironmentType?serviceEnvironmentArn?serviceEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletcapacityLimits=field_mapjson__"capacityLimits"CapacityLimits.of_jsoninletstatus=field_mapjson__"status"ServiceEnvironmentStatus.of_jsoninletstate=field_mapjson__"state"ServiceEnvironmentState.of_jsoninletserviceEnvironmentType=field_mapjson__"serviceEnvironmentType"ServiceEnvironmentType.of_jsoninletserviceEnvironmentArn=field_mapjson__"serviceEnvironmentArn"String_.of_jsoninletserviceEnvironmentName=field_mapjson__"serviceEnvironmentName"String_.of_jsoninmake?tags?capacityLimits?status?state?serviceEnvironmentType?serviceEnvironmentArn?serviceEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Detailed information about a service environment, including its configuration, state, and capacity limits."]moduleSchedulingPolicyDetail=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the fair-share scheduling policy."];arn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduling policy. An example is arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority ."];quotaSharePolicy:QuotaSharePolicy.toption[@ocaml.doc"The quota share scheduling policy details."];fairsharePolicy:FairsharePolicy.toption[@ocaml.doc"The fair-share scheduling policy details."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the fair-share scheduling policy to categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services resources in Amazon Web Services General Reference."]}letmake?name=fun?arn->fun?quotaSharePolicy->fun?fairsharePolicy->fun?tags->fun()->{name;arn;quotaSharePolicy;fairsharePolicy;tags}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("arn",(Option.mapx.arn~f:String_.to_value));("quotaSharePolicy",(Option.mapx.quotaSharePolicy~f:QuotaSharePolicy.to_value));("fairsharePolicy",(Option.mapx.fairsharePolicy~f:FairsharePolicy.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletfairsharePolicy=(Option.map~f:FairsharePolicy.of_xml)(Xml.childxml_arg0"fairsharePolicy")inletquotaSharePolicy=(Option.map~f:QuotaSharePolicy.of_xml)(Xml.childxml_arg0"quotaSharePolicy")inletarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"arn")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?tags?fairsharePolicy?quotaSharePolicy?arn?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletfairsharePolicy=field_mapjson__"fairsharePolicy"FairsharePolicy.of_jsoninletquotaSharePolicy=field_mapjson__"quotaSharePolicy"QuotaSharePolicy.of_jsoninletarn=field_mapjson__"arn"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?tags?fairsharePolicy?quotaSharePolicy?arn?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents a scheduling policy."]moduleJobDetail=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job."];jobName:String_.toption[@ocaml.doc"The job name."];jobId:String_.toption[@ocaml.doc"The job ID."];jobQueue:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job queue that the job is associated with."];status:JobStatus.toption[@ocaml.doc"The current status for the job. If your jobs don't progress to STARTING, see Jobs stuck in RUNNABLE status in the troubleshooting section of the Batch User Guide."];shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the job."];schedulingPriority:Integer.toption[@ocaml.doc"The scheduling policy of the job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority."];attempts:AttemptDetails.toption[@ocaml.doc"A list of job attempts that are associated with this job."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide more details for the current status of the job. CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY - All compute environments have insufficient capacity to service the job. MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE - All compute environments have a maxVcpu setting that is smaller than the job requirements. MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT - All compute environments have no connected instances that meet the job requirements. MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS - All compute environments have problems with the service role permissions."];createdAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state. This is specifically at the time SubmitJob was called. For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state."];retryStrategy:RetryStrategy.toption[@ocaml.doc"The retry strategy to use for this job if an attempt fails."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED."];dependsOn:JobDependencyList.toption[@ocaml.doc"A list of job IDs that this job depends on."];jobDefinition:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job definition that this job uses."];parameters:ParametersMap.toption[@ocaml.doc"Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition."];container:ContainerDetail.toption[@ocaml.doc"An object that represents the details for the container that's associated with the job. If the details are for a multiple-container job, this object will be empty."];nodeDetails:NodeDetails.toption[@ocaml.doc"An object that represents the details of a node that's associated with a multi-node parallel job."];nodeProperties:NodeProperties.toption[@ocaml.doc"An object that represents the node properties of a multi-node parallel job. This isn't applicable to jobs that are running on Fargate resources."];arrayProperties:ArrayPropertiesDetail.toption[@ocaml.doc"The array properties of the job, if it's an array job."];timeout:JobTimeout.toption[@ocaml.doc"The timeout configuration for the job."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that are applied to the job."];propagateTags:Boolean.toption[@ocaml.doc"Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state."];platformCapabilities:PlatformCapabilityList.toption[@ocaml.doc"The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE."];eksProperties:EksPropertiesDetail.toption[@ocaml.doc"An object with various properties that are specific to Amazon EKS based jobs."];eksAttempts:EksAttemptDetails.toption[@ocaml.doc"A list of job attempts that are associated with this job."];ecsProperties:EcsPropertiesDetail.toption[@ocaml.doc"An object with properties that are specific to Amazon ECS-based jobs."];isCancelled:Boolean.toption[@ocaml.doc"Indicates whether the job is canceled."];isTerminated:Boolean.toption[@ocaml.doc"Indicates whether the job is terminated."];consumableResourceProperties:ConsumableResourceProperties.toption[@ocaml.doc"Contains a list of consumable resources required by the job."]}letmake?jobArn=fun?jobName->fun?jobId->fun?jobQueue->fun?status->fun?shareIdentifier->fun?schedulingPriority->fun?attempts->fun?statusReason->fun?createdAt->fun?retryStrategy->fun?startedAt->fun?stoppedAt->fun?dependsOn->fun?jobDefinition->fun?parameters->fun?container->fun?nodeDetails->fun?nodeProperties->fun?arrayProperties->fun?timeout->fun?tags->fun?propagateTags->fun?platformCapabilities->fun?eksProperties->fun?eksAttempts->fun?ecsProperties->fun?isCancelled->fun?isTerminated->fun?consumableResourceProperties->fun()->{jobArn;jobName;jobId;jobQueue;status;shareIdentifier;schedulingPriority;attempts;statusReason;createdAt;retryStrategy;startedAt;stoppedAt;dependsOn;jobDefinition;parameters;container;nodeDetails;nodeProperties;arrayProperties;timeout;tags;propagateTags;platformCapabilities;eksProperties;eksAttempts;ecsProperties;isCancelled;isTerminated;consumableResourceProperties}letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value));("jobQueue",(Option.mapx.jobQueue~f:String_.to_value));("status",(Option.mapx.status~f:JobStatus.to_value));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("schedulingPriority",(Option.mapx.schedulingPriority~f:Integer.to_value));("attempts",(Option.mapx.attempts~f:AttemptDetails.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:Long.to_value));("retryStrategy",(Option.mapx.retryStrategy~f:RetryStrategy.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("dependsOn",(Option.mapx.dependsOn~f:JobDependencyList.to_value));("jobDefinition",(Option.mapx.jobDefinition~f:String_.to_value));("parameters",(Option.mapx.parameters~f:ParametersMap.to_value));("container",(Option.mapx.container~f:ContainerDetail.to_value));("nodeDetails",(Option.mapx.nodeDetails~f:NodeDetails.to_value));("nodeProperties",(Option.mapx.nodeProperties~f:NodeProperties.to_value));("arrayProperties",(Option.mapx.arrayProperties~f:ArrayPropertiesDetail.to_value));("timeout",(Option.mapx.timeout~f:JobTimeout.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("propagateTags",(Option.mapx.propagateTags~f:Boolean.to_value));("platformCapabilities",(Option.mapx.platformCapabilities~f:PlatformCapabilityList.to_value));("eksProperties",(Option.mapx.eksProperties~f:EksPropertiesDetail.to_value));("eksAttempts",(Option.mapx.eksAttempts~f:EksAttemptDetails.to_value));("ecsProperties",(Option.mapx.ecsProperties~f:EcsPropertiesDetail.to_value));("isCancelled",(Option.mapx.isCancelled~f:Boolean.to_value));("isTerminated",(Option.mapx.isTerminated~f:Boolean.to_value));("consumableResourceProperties",(Option.mapx.consumableResourceProperties~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceProperties=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourceProperties")inletisTerminated=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isTerminated")inletisCancelled=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isCancelled")inletecsProperties=(Option.map~f:EcsPropertiesDetail.of_xml)(Xml.childxml_arg0"ecsProperties")inleteksAttempts=(Option.map~f:EksAttemptDetails.of_xml)(Xml.childxml_arg0"eksAttempts")inleteksProperties=(Option.map~f:EksPropertiesDetail.of_xml)(Xml.childxml_arg0"eksProperties")inletplatformCapabilities=(Option.map~f:PlatformCapabilityList.of_xml)(Xml.childxml_arg0"platformCapabilities")inletpropagateTags=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"propagateTags")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inlettimeout=(Option.map~f:JobTimeout.of_xml)(Xml.childxml_arg0"timeout")inletarrayProperties=(Option.map~f:ArrayPropertiesDetail.of_xml)(Xml.childxml_arg0"arrayProperties")inletnodeProperties=(Option.map~f:NodeProperties.of_xml)(Xml.childxml_arg0"nodeProperties")inletnodeDetails=(Option.map~f:NodeDetails.of_xml)(Xml.childxml_arg0"nodeDetails")inletcontainer=(Option.map~f:ContainerDetail.of_xml)(Xml.childxml_arg0"container")inletparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"parameters")inletjobDefinition=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinition")inletdependsOn=(Option.map~f:JobDependencyList.of_xml)(Xml.childxml_arg0"dependsOn")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletretryStrategy=(Option.map~f:RetryStrategy.of_xml)(Xml.childxml_arg0"retryStrategy")inletcreatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"createdAt")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletattempts=(Option.map~f:AttemptDetails.of_xml)(Xml.childxml_arg0"attempts")inletschedulingPriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"schedulingPriority")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletstatus=(Option.map~f:JobStatus.of_xml)(Xml.childxml_arg0"status")inletjobQueue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueue")inletjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?consumableResourceProperties?isTerminated?isCancelled?ecsProperties?eksAttempts?eksProperties?platformCapabilities?propagateTags?tags?timeout?arrayProperties?nodeProperties?nodeDetails?container?parameters?jobDefinition?dependsOn?stoppedAt?startedAt?retryStrategy?createdAt?statusReason?attempts?schedulingPriority?shareIdentifier?status?jobQueue?jobId?jobName?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceProperties=field_mapjson__"consumableResourceProperties"ConsumableResourceProperties.of_jsoninletisTerminated=field_mapjson__"isTerminated"Boolean.of_jsoninletisCancelled=field_mapjson__"isCancelled"Boolean.of_jsoninletecsProperties=field_mapjson__"ecsProperties"EcsPropertiesDetail.of_jsoninleteksAttempts=field_mapjson__"eksAttempts"EksAttemptDetails.of_jsoninleteksProperties=field_mapjson__"eksProperties"EksPropertiesDetail.of_jsoninletplatformCapabilities=field_mapjson__"platformCapabilities"PlatformCapabilityList.of_jsoninletpropagateTags=field_mapjson__"propagateTags"Boolean.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninlettimeout=field_mapjson__"timeout"JobTimeout.of_jsoninletarrayProperties=field_mapjson__"arrayProperties"ArrayPropertiesDetail.of_jsoninletnodeProperties=field_mapjson__"nodeProperties"NodeProperties.of_jsoninletnodeDetails=field_mapjson__"nodeDetails"NodeDetails.of_jsoninletcontainer=field_mapjson__"container"ContainerDetail.of_jsoninletparameters=field_mapjson__"parameters"ParametersMap.of_jsoninletjobDefinition=field_mapjson__"jobDefinition"String_.of_jsoninletdependsOn=field_mapjson__"dependsOn"JobDependencyList.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletretryStrategy=field_mapjson__"retryStrategy"RetryStrategy.of_jsoninletcreatedAt=field_mapjson__"createdAt"Long.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletattempts=field_mapjson__"attempts"AttemptDetails.of_jsoninletschedulingPriority=field_mapjson__"schedulingPriority"Integer.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletstatus=field_mapjson__"status"JobStatus.of_jsoninletjobQueue=field_mapjson__"jobQueue"String_.of_jsoninletjobId=field_mapjson__"jobId"String_.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?consumableResourceProperties?isTerminated?isCancelled?ecsProperties?eksAttempts?eksProperties?platformCapabilities?propagateTags?tags?timeout?arrayProperties?nodeProperties?nodeDetails?container?parameters?jobDefinition?dependsOn?stoppedAt?startedAt?retryStrategy?createdAt?statusReason?attempts?schedulingPriority?shareIdentifier?status?jobQueue?jobId?jobName?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Batch job."]moduleJobQueueDetail=structtypenonrect={jobQueueName:String_.toption[@ocaml.doc"The job queue name."];jobQueueArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job queue."];state:JQState.toption[@ocaml.doc"Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED, it can accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can finish."];schedulingPolicyArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy."];status:JQStatus.toption[@ocaml.doc"The status of the job queue (for example, CREATING or VALID)."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide additional details for the current status of the job queue."];priority:Integer.toption[@ocaml.doc"The priority of the job queue. Job queue priority determines the order that job queues are evaluated when multiple queues dispatch jobs within a shared compute environment. A higher value for priority indicates a higher priority. Queues are evaluated in cycles, in descending order by priority. For example, a job queue with a priority value of 10 is evaluated before a queue with a priority value of 1. All of the compute environments must be either Amazon EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). Amazon EC2 and Fargate compute environments can't be mixed. Job queue priority doesn't guarantee that a particular job executes before a job in a lower priority queue. Jobs added to higher priority queues during the queue evaluation cycle might not be evaluated until the next cycle. A job is dispatched from a queue only if resources are available when the queue is evaluated. If there are insufficient resources available at that time, the cycle proceeds to the next queue. This means that jobs added to higher priority queues might have to wait for jobs in multiple lower priority queues to complete before they are dispatched. You can use job dependencies to control the order for jobs from queues with different priorities. For more information, see Job Dependencies in the Batch User Guide."];computeEnvironmentOrder:ComputeEnvironmentOrders.toption[@ocaml.doc"The compute environments that are attached to the job queue and the order that job placement is preferred. Compute environments are selected for job placement in ascending order."];serviceEnvironmentOrder:ServiceEnvironmentOrders.toption[@ocaml.doc"The order of the service environment associated with the job queue. Job queues with a higher priority are evaluated first when associated with the same service environment."];jobQueueType:JobQueueType.toption[@ocaml.doc"The type of job queue. For service jobs that run on SageMaker Training, this value is SAGEMAKER_TRAINING. For regular container jobs, this value is EKS, ECS, or ECS_FARGATE depending on the compute environment."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that are applied to the job queue. For more information, see Tagging your Batch resources in Batch User Guide."];jobStateTimeLimitActions:JobStateTimeLimitActions.toption[@ocaml.doc"The set of actions that Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. Batch will perform each action after maxTimeSeconds has passed."]}letmake?jobQueueName=fun?jobQueueArn->fun?state->fun?schedulingPolicyArn->fun?status->fun?statusReason->fun?priority->fun?computeEnvironmentOrder->fun?serviceEnvironmentOrder->fun?jobQueueType->fun?tags->fun?jobStateTimeLimitActions->fun()->{jobQueueName;jobQueueArn;state;schedulingPolicyArn;status;statusReason;priority;computeEnvironmentOrder;serviceEnvironmentOrder;jobQueueType;tags;jobStateTimeLimitActions}letto_valuex=structure_to_value[("jobQueueName",(Option.mapx.jobQueueName~f:String_.to_value));("jobQueueArn",(Option.mapx.jobQueueArn~f:String_.to_value));("state",(Option.mapx.state~f:JQState.to_value));("schedulingPolicyArn",(Option.mapx.schedulingPolicyArn~f:String_.to_value));("status",(Option.mapx.status~f:JQStatus.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("priority",(Option.mapx.priority~f:Integer.to_value));("computeEnvironmentOrder",(Option.mapx.computeEnvironmentOrder~f:ComputeEnvironmentOrders.to_value));("serviceEnvironmentOrder",(Option.mapx.serviceEnvironmentOrder~f:ServiceEnvironmentOrders.to_value));("jobQueueType",(Option.mapx.jobQueueType~f:JobQueueType.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("jobStateTimeLimitActions",(Option.mapx.jobStateTimeLimitActions~f:JobStateTimeLimitActions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobStateTimeLimitActions=(Option.map~f:JobStateTimeLimitActions.of_xml)(Xml.childxml_arg0"jobStateTimeLimitActions")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletjobQueueType=(Option.map~f:JobQueueType.of_xml)(Xml.childxml_arg0"jobQueueType")inletserviceEnvironmentOrder=(Option.map~f:ServiceEnvironmentOrders.of_xml)(Xml.childxml_arg0"serviceEnvironmentOrder")inletcomputeEnvironmentOrder=(Option.map~f:ComputeEnvironmentOrders.of_xml)(Xml.childxml_arg0"computeEnvironmentOrder")inletpriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"priority")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:JQStatus.of_xml)(Xml.childxml_arg0"status")inletschedulingPolicyArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"schedulingPolicyArn")inletstate=(Option.map~f:JQState.of_xml)(Xml.childxml_arg0"state")inletjobQueueArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueArn")inletjobQueueName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueName")inmake?jobStateTimeLimitActions?tags?jobQueueType?serviceEnvironmentOrder?computeEnvironmentOrder?priority?statusReason?status?schedulingPolicyArn?state?jobQueueArn?jobQueueName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobStateTimeLimitActions=field_mapjson__"jobStateTimeLimitActions"JobStateTimeLimitActions.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletjobQueueType=field_mapjson__"jobQueueType"JobQueueType.of_jsoninletserviceEnvironmentOrder=field_mapjson__"serviceEnvironmentOrder"ServiceEnvironmentOrders.of_jsoninletcomputeEnvironmentOrder=field_mapjson__"computeEnvironmentOrder"ComputeEnvironmentOrders.of_jsoninletpriority=field_mapjson__"priority"Integer.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstatus=field_mapjson__"status"JQStatus.of_jsoninletschedulingPolicyArn=field_mapjson__"schedulingPolicyArn"String_.of_jsoninletstate=field_mapjson__"state"JQState.of_jsoninletjobQueueArn=field_mapjson__"jobQueueArn"String_.of_jsoninletjobQueueName=field_mapjson__"jobQueueName"String_.of_jsoninmake?jobStateTimeLimitActions?tags?jobQueueType?serviceEnvironmentOrder?computeEnvironmentOrder?priority?statusReason?status?schedulingPolicyArn?state?jobQueueArn?jobQueueName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details for an Batch job queue."]moduleJobDefinition=structtypenonrect={jobDefinitionName:String_.toption[@ocaml.doc"The name of the job definition."];jobDefinitionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the job definition."];revision:Integer.toption[@ocaml.doc"The revision of the job definition."];status:String_.toption[@ocaml.doc"The status of the job definition."];type_:String_.toption[@ocaml.doc"The type of job definition. It's either container or multinode. If the job is run on Fargate resources, then multinode isn't supported. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the Batch User Guide."];schedulingPriority:Integer.toption[@ocaml.doc"The scheduling priority of the job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority."];parameters:ParametersMap.toption[@ocaml.doc"Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see Job definition parameters in the Batch User Guide."];retryStrategy:RetryStrategy.toption[@ocaml.doc"The retry strategy to use for failed jobs that are submitted with this job definition."];containerProperties:ContainerProperties.toption[@ocaml.doc"An object with properties specific to Amazon ECS-based jobs. When containerProperties is used in the job definition, it can't be used in addition to eksProperties, ecsProperties, or nodeProperties."];timeout:JobTimeout.toption[@ocaml.doc"The timeout time for jobs that are submitted with this job definition. After the amount of time you specify passes, Batch terminates your jobs if they aren't finished."];nodeProperties:NodeProperties.toption[@ocaml.doc"An object with properties that are specific to multi-node parallel jobs. When nodeProperties is used in the job definition, it can't be used in addition to containerProperties, ecsProperties, or eksProperties. If the job runs on Fargate resources, don't specify nodeProperties. Use containerProperties instead."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that are applied to the job definition."];propagateTags:Boolean.toption[@ocaml.doc"Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state."];platformCapabilities:PlatformCapabilityList.toption[@ocaml.doc"The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE."];ecsProperties:EcsProperties.toption[@ocaml.doc"An object that contains the properties for the Amazon ECS resources of a job.When ecsProperties is used in the job definition, it can't be used in addition to containerProperties, eksProperties, or nodeProperties."];eksProperties:EksProperties.toption[@ocaml.doc"An object with properties that are specific to Amazon EKS-based jobs. When eksProperties is used in the job definition, it can't be used in addition to containerProperties, ecsProperties, or nodeProperties."];containerOrchestrationType:OrchestrationType.toption[@ocaml.doc"The orchestration type of the compute environment. The valid values are ECS (default) or EKS."];consumableResourceProperties:ConsumableResourceProperties.toption[@ocaml.doc"Contains a list of consumable resources required by the job."]}letmake?jobDefinitionName=fun?jobDefinitionArn->fun?revision->fun?status->fun?type_->fun?schedulingPriority->fun?parameters->fun?retryStrategy->fun?containerProperties->fun?timeout->fun?nodeProperties->fun?tags->fun?propagateTags->fun?platformCapabilities->fun?ecsProperties->fun?eksProperties->fun?containerOrchestrationType->fun?consumableResourceProperties->fun()->{jobDefinitionName;jobDefinitionArn;revision;status;type_;schedulingPriority;parameters;retryStrategy;containerProperties;timeout;nodeProperties;tags;propagateTags;platformCapabilities;ecsProperties;eksProperties;containerOrchestrationType;consumableResourceProperties}letto_valuex=structure_to_value[("jobDefinitionName",(Option.mapx.jobDefinitionName~f:String_.to_value));("jobDefinitionArn",(Option.mapx.jobDefinitionArn~f:String_.to_value));("revision",(Option.mapx.revision~f:Integer.to_value));("status",(Option.mapx.status~f:String_.to_value));("type",(Option.mapx.type_~f:String_.to_value));("schedulingPriority",(Option.mapx.schedulingPriority~f:Integer.to_value));("parameters",(Option.mapx.parameters~f:ParametersMap.to_value));("retryStrategy",(Option.mapx.retryStrategy~f:RetryStrategy.to_value));("containerProperties",(Option.mapx.containerProperties~f:ContainerProperties.to_value));("timeout",(Option.mapx.timeout~f:JobTimeout.to_value));("nodeProperties",(Option.mapx.nodeProperties~f:NodeProperties.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("propagateTags",(Option.mapx.propagateTags~f:Boolean.to_value));("platformCapabilities",(Option.mapx.platformCapabilities~f:PlatformCapabilityList.to_value));("ecsProperties",(Option.mapx.ecsProperties~f:EcsProperties.to_value));("eksProperties",(Option.mapx.eksProperties~f:EksProperties.to_value));("containerOrchestrationType",(Option.mapx.containerOrchestrationType~f:OrchestrationType.to_value));("consumableResourceProperties",(Option.mapx.consumableResourceProperties~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceProperties=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourceProperties")inletcontainerOrchestrationType=(Option.map~f:OrchestrationType.of_xml)(Xml.childxml_arg0"containerOrchestrationType")inleteksProperties=(Option.map~f:EksProperties.of_xml)(Xml.childxml_arg0"eksProperties")inletecsProperties=(Option.map~f:EcsProperties.of_xml)(Xml.childxml_arg0"ecsProperties")inletplatformCapabilities=(Option.map~f:PlatformCapabilityList.of_xml)(Xml.childxml_arg0"platformCapabilities")inletpropagateTags=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"propagateTags")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletnodeProperties=(Option.map~f:NodeProperties.of_xml)(Xml.childxml_arg0"nodeProperties")inlettimeout=(Option.map~f:JobTimeout.of_xml)(Xml.childxml_arg0"timeout")inletcontainerProperties=(Option.map~f:ContainerProperties.of_xml)(Xml.childxml_arg0"containerProperties")inletretryStrategy=(Option.map~f:RetryStrategy.of_xml)(Xml.childxml_arg0"retryStrategy")inletparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"parameters")inletschedulingPriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"schedulingPriority")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"type")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletrevision=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"revision")inletjobDefinitionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinitionArn")inletjobDefinitionName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinitionName")inmake?consumableResourceProperties?containerOrchestrationType?eksProperties?ecsProperties?platformCapabilities?propagateTags?tags?nodeProperties?timeout?containerProperties?retryStrategy?parameters?schedulingPriority?type_?status?revision?jobDefinitionArn?jobDefinitionName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceProperties=field_mapjson__"consumableResourceProperties"ConsumableResourceProperties.of_jsoninletcontainerOrchestrationType=field_mapjson__"containerOrchestrationType"OrchestrationType.of_jsoninleteksProperties=field_mapjson__"eksProperties"EksProperties.of_jsoninletecsProperties=field_mapjson__"ecsProperties"EcsProperties.of_jsoninletplatformCapabilities=field_mapjson__"platformCapabilities"PlatformCapabilityList.of_jsoninletpropagateTags=field_mapjson__"propagateTags"Boolean.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletnodeProperties=field_mapjson__"nodeProperties"NodeProperties.of_jsoninlettimeout=field_mapjson__"timeout"JobTimeout.of_jsoninletcontainerProperties=field_mapjson__"containerProperties"ContainerProperties.of_jsoninletretryStrategy=field_mapjson__"retryStrategy"RetryStrategy.of_jsoninletparameters=field_mapjson__"parameters"ParametersMap.of_jsoninletschedulingPriority=field_mapjson__"schedulingPriority"Integer.of_jsoninlettype_=field_mapjson__"type"String_.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletrevision=field_mapjson__"revision"Integer.of_jsoninletjobDefinitionArn=field_mapjson__"jobDefinitionArn"String_.of_jsoninletjobDefinitionName=field_mapjson__"jobDefinitionName"String_.of_jsoninmake?consumableResourceProperties?containerOrchestrationType?eksProperties?ecsProperties?platformCapabilities?propagateTags?tags?nodeProperties?timeout?containerProperties?retryStrategy?parameters?schedulingPriority?type_?status?revision?jobDefinitionArn?jobDefinitionName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Batch job definition."]moduleComputeEnvironmentDetail=structtypenonrect={computeEnvironmentName:String_.toption[@ocaml.doc"The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];computeEnvironmentArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the compute environment."];unmanagedvCpus:Integer.toption[@ocaml.doc"The maximum number of VCPUs expected to be used for an unmanaged compute environment."];ecsClusterArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags applied to the compute environment."];type_:CEType.toption[@ocaml.doc"The type of the compute environment: MANAGED or UNMANAGED. For more information, see Compute environments in the Batch User Guide."];state:CEState.toption[@ocaml.doc"The state of the compute environment. The valid values are ENABLED or DISABLED. If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand. If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state don't scale out. Compute environments in a DISABLED state may continue to incur billing charges, for example, if they have running instances due to jobs that are still executing or a non-zero minvCpus setting. To prevent additional charges, disable and delete the compute environment. When an instance is idle, the instance scales down to the minvCpus value. However, the instance size doesn't change. For example, consider a c5.8xlarge instance with a minvCpus value of 4 and a desiredvCpus value of 36. This instance doesn't scale down to a c5.large instance."];status:CEStatus.toption[@ocaml.doc"The current status of the compute environment (for example, CREATING or VALID)."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide additional details for the current status of the compute environment."];computeResources:ComputeResource.toption[@ocaml.doc"The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide."];serviceRole:String_.toption[@ocaml.doc"The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide."];updatePolicy:UpdatePolicy.toption[@ocaml.doc"Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide."];eksConfiguration:EksConfiguration.toption[@ocaml.doc"The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the containerOrchestrationType is EKS."];containerOrchestrationType:OrchestrationType.toption[@ocaml.doc"The orchestration type of the compute environment. The valid values are ECS (default) or EKS."];uuid:String_.toption[@ocaml.doc"Unique identifier for the compute environment."];context:String_.toption[@ocaml.doc"Reserved."]}letmake?computeEnvironmentName=fun?computeEnvironmentArn->fun?unmanagedvCpus->fun?ecsClusterArn->fun?tags->fun?type_->fun?state->fun?status->fun?statusReason->fun?computeResources->fun?serviceRole->fun?updatePolicy->fun?eksConfiguration->fun?containerOrchestrationType->fun?uuid->fun?context->fun()->{computeEnvironmentName;computeEnvironmentArn;unmanagedvCpus;ecsClusterArn;tags;type_;state;status;statusReason;computeResources;serviceRole;updatePolicy;eksConfiguration;containerOrchestrationType;uuid;context}letto_valuex=structure_to_value[("computeEnvironmentName",(Option.mapx.computeEnvironmentName~f:String_.to_value));("computeEnvironmentArn",(Option.mapx.computeEnvironmentArn~f:String_.to_value));("unmanagedvCpus",(Option.mapx.unmanagedvCpus~f:Integer.to_value));("ecsClusterArn",(Option.mapx.ecsClusterArn~f:String_.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("type",(Option.mapx.type_~f:CEType.to_value));("state",(Option.mapx.state~f:CEState.to_value));("status",(Option.mapx.status~f:CEStatus.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("computeResources",(Option.mapx.computeResources~f:ComputeResource.to_value));("serviceRole",(Option.mapx.serviceRole~f:String_.to_value));("updatePolicy",(Option.mapx.updatePolicy~f:UpdatePolicy.to_value));("eksConfiguration",(Option.mapx.eksConfiguration~f:EksConfiguration.to_value));("containerOrchestrationType",(Option.mapx.containerOrchestrationType~f:OrchestrationType.to_value));("uuid",(Option.mapx.uuid~f:String_.to_value));("context",(Option.mapx.context~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"context")inletuuid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"uuid")inletcontainerOrchestrationType=(Option.map~f:OrchestrationType.of_xml)(Xml.childxml_arg0"containerOrchestrationType")inleteksConfiguration=(Option.map~f:EksConfiguration.of_xml)(Xml.childxml_arg0"eksConfiguration")inletupdatePolicy=(Option.map~f:UpdatePolicy.of_xml)(Xml.childxml_arg0"updatePolicy")inletserviceRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceRole")inletcomputeResources=(Option.map~f:ComputeResource.of_xml)(Xml.childxml_arg0"computeResources")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:CEStatus.of_xml)(Xml.childxml_arg0"status")inletstate=(Option.map~f:CEState.of_xml)(Xml.childxml_arg0"state")inlettype_=(Option.map~f:CEType.of_xml)(Xml.childxml_arg0"type")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletecsClusterArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ecsClusterArn")inletunmanagedvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"unmanagedvCpus")inletcomputeEnvironmentArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"computeEnvironmentArn")inletcomputeEnvironmentName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"computeEnvironmentName")inmake?context?uuid?containerOrchestrationType?eksConfiguration?updatePolicy?serviceRole?computeResources?statusReason?status?state?type_?tags?ecsClusterArn?unmanagedvCpus?computeEnvironmentArn?computeEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontext=field_mapjson__"context"String_.of_jsoninletuuid=field_mapjson__"uuid"String_.of_jsoninletcontainerOrchestrationType=field_mapjson__"containerOrchestrationType"OrchestrationType.of_jsoninleteksConfiguration=field_mapjson__"eksConfiguration"EksConfiguration.of_jsoninletupdatePolicy=field_mapjson__"updatePolicy"UpdatePolicy.of_jsoninletserviceRole=field_mapjson__"serviceRole"String_.of_jsoninletcomputeResources=field_mapjson__"computeResources"ComputeResource.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstatus=field_mapjson__"status"CEStatus.of_jsoninletstate=field_mapjson__"state"CEState.of_jsoninlettype_=field_mapjson__"type"CEType.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletecsClusterArn=field_mapjson__"ecsClusterArn"String_.of_jsoninletunmanagedvCpus=field_mapjson__"unmanagedvCpus"Integer.of_jsoninletcomputeEnvironmentArn=field_mapjson__"computeEnvironmentArn"String_.of_jsoninletcomputeEnvironmentName=field_mapjson__"computeEnvironmentName"String_.of_jsoninmake?context?uuid?containerOrchestrationType?eksConfiguration?updatePolicy?serviceRole?computeResources?statusReason?status?state?type_?tags?ecsClusterArn?unmanagedvCpus?computeEnvironmentArn?computeEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Batch compute environment."]moduleClientException=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"These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid."]moduleServerException=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"These errors are usually caused by a server issue."]moduleClientRequestToken=structtypenonrect=stringletcontext_="ClientRequestToken"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:"ClientRequestToken"jletto_json=simple_to_jsonto_valueendmoduleComputeResourceUpdate=structtypenonrect={minvCpus:Integer.toption[@ocaml.doc"The minimum number of vCPUs that an environment should maintain (even if the compute environment is DISABLED). This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];maxvCpus:Integer.toption[@ocaml.doc"The maximum number of Amazon EC2 vCPUs that an environment can reach. With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and SPOT_PRICE_CAPACITY_OPTIMIZED (recommended) strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance."];desiredvCpus:Integer.toption[@ocaml.doc"The desired number of vCPUS in the compute environment. Batch modifies this value between the minimum and maximum values based on job queue demand. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. Batch doesn't support changing the desired number of vCPUs of an existing compute environment. Don't specify this parameter for compute environments using Amazon EKS clusters. When you update the desiredvCpus setting, the value must be between the minvCpus and maxvCpus values. Additionally, the updated desiredvCpus value must be greater than or equal to the current desiredvCpus value. For more information, see Troubleshooting Batch in the Batch User Guide."];subnets:StringList.toption[@ocaml.doc"The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. For Fargate compute resources, providing an empty list will be handled as if this parameter wasn't specified and no change is made. For Amazon EC2 compute resources, providing an empty list removes the VPC subnets from the compute resource. For more information, see VPCs and subnets in the Amazon VPC User Guide. When updating a compute environment, changing the VPC subnets requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see Local Zones in the Amazon EC2 User Guide for Linux Instances, Amazon EKS and Amazon Web Services Local Zones in the Amazon EKS User Guide and Amazon ECS clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts in the Amazon ECS Developer Guide. Batch on Fargate doesn't currently support Local Zones."];securityGroupIds:StringList.toption[@ocaml.doc"The Amazon EC2 security groups that are associated with instances launched in the compute environment. This parameter is required for Fargate compute resources, where it can contain up to 5 security groups. For Fargate compute resources, providing an empty list is handled as if this parameter wasn't specified and no change is made. For Amazon EC2 compute resources, providing an empty list removes the security groups from the compute resource. When updating a compute environment, changing the Amazon EC2 security groups requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide."];allocationStrategy:CRUpdateAllocationStrategy.toption[@ocaml.doc"The allocation strategy to use for the compute resource if there's not enough instances of the best fitting instance type that can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more information, see Allocation strategies in the Batch User Guide. When updating a compute environment, changing the allocation strategy requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. BEST_FIT isn't supported when updating a compute environment. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. BEST_FIT_PROGRESSIVE Batch selects additional instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If additional instances of the previously selected instance types aren't available, Batch selects new instance types. SPOT_CAPACITY_OPTIMIZED Batch selects one or more instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. SPOT_PRICE_CAPACITY_OPTIMIZED The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. This allocation strategy is only available for Spot Instance compute resources. With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and SPOT_PRICE_CAPACITY_OPTIMIZED (recommended) strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance."];instanceTypes:StringList.toption[@ocaml.doc"The instances types that can be launched. You can specify instance families to launch any instance type within those families (for example, c5 or p3), or you can specify specific sizes within a family (such as c5.8xlarge). Batch can select the instance type for you if you choose one of the following: optimal to select instance types (from the c4, m4, r4, c5, m5, and r5 instance families) that match the demand of your job queues. default_x86_64 to choose x86 based instance types (from the m6i, c6i, r6i, and c7i instance families) that matches the resource demands of the job queue. default_arm64 to choose x86 based instance types (from the m6g, c6g, r6g, and c7g instance families) that matches the resource demands of the job queue. Starting on 11/01/2025 the behavior of optimal is going to be changed to match default_x86_64. During the change your instance families could be updated to a newer generation. You do not need to perform any actions for the upgrade to happen. For more information about change, see Optimal instance type configuration to receive automatic instance family updates. Instance family availability varies by Amazon Web Services Region. For example, some Amazon Web Services Regions may not have any fourth generation instance families but have fifth and sixth generation instance families. When using default_x86_64 or default_arm64 instance bundles, Batch selects instance families based on a balance of cost-effectiveness and performance. While newer generation instances often provide better price-performance, Batch may choose an earlier generation instance family if it provides the optimal combination of availability, cost, and performance for your workload. For example, in an Amazon Web Services Region where both c6i and c7i instances are available, Batch might select c6i instances if they offer better cost-effectiveness for your specific job requirements. For more information on Batch instance types and Amazon Web Services Region availability, see Instance type compute table in the Batch User Guide. Batch periodically updates your instances in default bundles to newer, more cost-effective options. Updates happen automatically without requiring any action from you. Your workloads continue running during updates with no interruption This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. When you create a compute environment, the instance types that you select for the compute environment must share the same architecture. For example, you can't mix x86 and ARM instances in the same compute environment."];ec2KeyPair:String_.toption[@ocaml.doc"The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to log in to your instances with SSH. To remove the Amazon EC2 key pair, set this value to an empty string. When updating a compute environment, changing the Amazon EC2 key pair requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];instanceRole:String_.toption[@ocaml.doc"The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. Required for Amazon EC2 instances. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ecsInstanceRole or arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole . For more information, see Amazon ECS instance role in the Batch User Guide. When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];tags:TagsMap.toption[@ocaml.doc"Key-value pair tags to be applied to Amazon EC2 resources that are launched in the compute environment. For Batch, these take the form of \"String1\": \"String2\", where String1 is the tag key and String2 is the tag value (for example, \\{ \"Name\": \"Batch Instance - C4OnDemand\" \\}). This is helpful for recognizing your Batch instances in the Amazon EC2 console. These tags aren't seen when using the Batch ListTagsForResource API operation. When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];placementGroup:String_.toption[@ocaml.doc"The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see Placement groups in the Amazon EC2 User Guide for Linux Instances. When updating a compute environment, changing the placement group requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];bidPercentage:Integer.toption[@ocaml.doc"The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. For most use cases, we recommend leaving this field empty. When updating a compute environment, changing the bid percentage requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];launchTemplate:LaunchTemplateSpecification.toption[@ocaml.doc"The updated launch template to use for your compute resources. You must specify either the launch template ID or launch template name in the request, but not both. For more information, see Launch template support in the Batch User Guide. To remove the custom launch template and use the default launch template, set launchTemplateId or launchTemplateName member of the launch template specification to an empty string. Removing the launch template from a compute environment will not remove the AMI specified in the launch template. In order to update the AMI specified in a launch template, the updateToLatestImageVersion parameter must be set to true. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];ec2Configuration:Ec2ConfigurationList.toption[@ocaml.doc"Provides information used to select Amazon Machine Images (AMIs) for Amazon EC2 instances in the compute environment. If Ec2Configuration isn't specified, the default is ECS_AL2023 for EC2 (ECS) compute environments and EKS_AL2023 for EKS compute environments. When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. To remove the Amazon EC2 configuration and any custom AMI ID specified in imageIdOverride, set this value to an empty string. One or two values can be provided. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."];updateToLatestImageVersion:Boolean.toption[@ocaml.doc"Specifies whether the AMI ID is updated to the latest one that's supported by Batch when the compute environment has an infrastructure update. The default value is false. An AMI ID can either be specified in the imageId or imageIdOverride parameters or be determined by the launch template that's specified in the launchTemplate parameter. If an AMI ID is specified any of these ways, this parameter is ignored. For more information about to update AMI IDs during an infrastructure update, see Updating the AMI ID in the Batch User Guide. When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide."];type_:CRType.toption[@ocaml.doc"The type of compute environment: EC2, SPOT, FARGATE, or FARGATE_SPOT. For more information, see Compute environments in the Batch User Guide. If you choose SPOT, you must also specify an Amazon EC2 Spot Fleet role with the spotIamFleetRole parameter. For more information, see Amazon EC2 spot fleet role in the Batch User Guide. When updating a compute environment, changing the type of a compute environment requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide."];imageId:String_.toption[@ocaml.doc"The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is overridden by the imageIdOverride member of the Ec2Configuration structure. To remove the custom AMI ID and use the default AMI ID, set this value to an empty string. When updating a compute environment, changing the AMI ID requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2023 AMI. For more information, see Amazon ECS-optimized Amazon Linux 2023 AMI in the Amazon Elastic Container Service Developer Guide."];scalingPolicy:ComputeScalingPolicy.toption[@ocaml.doc"The scaling policy configuration for the compute environment. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it."]}letmake?minvCpus=fun?maxvCpus->fun?desiredvCpus->fun?subnets->fun?securityGroupIds->fun?allocationStrategy->fun?instanceTypes->fun?ec2KeyPair->fun?instanceRole->fun?tags->fun?placementGroup->fun?bidPercentage->fun?launchTemplate->fun?ec2Configuration->fun?updateToLatestImageVersion->fun?type_->fun?imageId->fun?scalingPolicy->fun()->{minvCpus;maxvCpus;desiredvCpus;subnets;securityGroupIds;allocationStrategy;instanceTypes;ec2KeyPair;instanceRole;tags;placementGroup;bidPercentage;launchTemplate;ec2Configuration;updateToLatestImageVersion;type_;imageId;scalingPolicy}letto_valuex=structure_to_value[("minvCpus",(Option.mapx.minvCpus~f:Integer.to_value));("maxvCpus",(Option.mapx.maxvCpus~f:Integer.to_value));("desiredvCpus",(Option.mapx.desiredvCpus~f:Integer.to_value));("subnets",(Option.mapx.subnets~f:StringList.to_value));("securityGroupIds",(Option.mapx.securityGroupIds~f:StringList.to_value));("allocationStrategy",(Option.mapx.allocationStrategy~f:CRUpdateAllocationStrategy.to_value));("instanceTypes",(Option.mapx.instanceTypes~f:StringList.to_value));("ec2KeyPair",(Option.mapx.ec2KeyPair~f:String_.to_value));("instanceRole",(Option.mapx.instanceRole~f:String_.to_value));("tags",(Option.mapx.tags~f:TagsMap.to_value));("placementGroup",(Option.mapx.placementGroup~f:String_.to_value));("bidPercentage",(Option.mapx.bidPercentage~f:Integer.to_value));("launchTemplate",(Option.mapx.launchTemplate~f:LaunchTemplateSpecification.to_value));("ec2Configuration",(Option.mapx.ec2Configuration~f:Ec2ConfigurationList.to_value));("updateToLatestImageVersion",(Option.mapx.updateToLatestImageVersion~f:Boolean.to_value));("type",(Option.mapx.type_~f:CRType.to_value));("imageId",(Option.mapx.imageId~f:String_.to_value));("scalingPolicy",(Option.mapx.scalingPolicy~f:ComputeScalingPolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscalingPolicy=(Option.map~f:ComputeScalingPolicy.of_xml)(Xml.childxml_arg0"scalingPolicy")inletimageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"imageId")inlettype_=(Option.map~f:CRType.of_xml)(Xml.childxml_arg0"type")inletupdateToLatestImageVersion=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"updateToLatestImageVersion")inletec2Configuration=(Option.map~f:Ec2ConfigurationList.of_xml)(Xml.childxml_arg0"ec2Configuration")inletlaunchTemplate=(Option.map~f:LaunchTemplateSpecification.of_xml)(Xml.childxml_arg0"launchTemplate")inletbidPercentage=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"bidPercentage")inletplacementGroup=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"placementGroup")inlettags=(Option.map~f:TagsMap.of_xml)(Xml.childxml_arg0"tags")inletinstanceRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceRole")inletec2KeyPair=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"ec2KeyPair")inletinstanceTypes=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"instanceTypes")inletallocationStrategy=(Option.map~f:CRUpdateAllocationStrategy.of_xml)(Xml.childxml_arg0"allocationStrategy")inletsecurityGroupIds=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"securityGroupIds")inletsubnets=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"subnets")inletdesiredvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"desiredvCpus")inletmaxvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxvCpus")inletminvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"minvCpus")inmake?scalingPolicy?imageId?type_?updateToLatestImageVersion?ec2Configuration?launchTemplate?bidPercentage?placementGroup?tags?instanceRole?ec2KeyPair?instanceTypes?allocationStrategy?securityGroupIds?subnets?desiredvCpus?maxvCpus?minvCpus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscalingPolicy=field_mapjson__"scalingPolicy"ComputeScalingPolicy.of_jsoninletimageId=field_mapjson__"imageId"String_.of_jsoninlettype_=field_mapjson__"type"CRType.of_jsoninletupdateToLatestImageVersion=field_mapjson__"updateToLatestImageVersion"Boolean.of_jsoninletec2Configuration=field_mapjson__"ec2Configuration"Ec2ConfigurationList.of_jsoninletlaunchTemplate=field_mapjson__"launchTemplate"LaunchTemplateSpecification.of_jsoninletbidPercentage=field_mapjson__"bidPercentage"Integer.of_jsoninletplacementGroup=field_mapjson__"placementGroup"String_.of_jsoninlettags=field_mapjson__"tags"TagsMap.of_jsoninletinstanceRole=field_mapjson__"instanceRole"String_.of_jsoninletec2KeyPair=field_mapjson__"ec2KeyPair"String_.of_jsoninletinstanceTypes=field_mapjson__"instanceTypes"StringList.of_jsoninletallocationStrategy=field_mapjson__"allocationStrategy"CRUpdateAllocationStrategy.of_jsoninletsecurityGroupIds=field_mapjson__"securityGroupIds"StringList.of_jsoninletsubnets=field_mapjson__"subnets"StringList.of_jsoninletdesiredvCpus=field_mapjson__"desiredvCpus"Integer.of_jsoninletmaxvCpus=field_mapjson__"maxvCpus"Integer.of_jsoninletminvCpus=field_mapjson__"minvCpus"Integer.of_jsoninmake?scalingPolicy?imageId?type_?updateToLatestImageVersion?ec2Configuration?launchTemplate?bidPercentage?placementGroup?tags?instanceRole?ec2KeyPair?instanceTypes?allocationStrategy?securityGroupIds?subnets?desiredvCpus?maxvCpus?minvCpus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the attributes of a compute environment that can be updated. For more information, see Updating compute environments in the Batch User Guide."]moduleTagKeysList=structtypenonrect=TagKey.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:50)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeysList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobPreemptionConfiguration=structtypenonrect={preemptionRetriesBeforeTermination:Integer.toption[@ocaml.doc"The number of times a service job can be retried after it is preempted. A job will be terminated when preemption retries have been exhausted. If this field is unset, preempted jobs will be requeued an unlimited number of times."]}letmake?preemptionRetriesBeforeTermination=fun()->{preemptionRetriesBeforeTermination}letto_valuex=structure_to_value[("preemptionRetriesBeforeTermination",(Option.mapx.preemptionRetriesBeforeTermination~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpreemptionRetriesBeforeTermination=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"preemptionRetriesBeforeTermination")inmake?preemptionRetriesBeforeTermination()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpreemptionRetriesBeforeTermination=field_mapjson__"preemptionRetriesBeforeTermination"Integer.of_jsoninmake?preemptionRetriesBeforeTermination()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Specifies the service job behavior when preempted."]moduleServiceJobRetryStrategy=structtypenonrect={attempts:Integer.t[@ocaml.doc"The number of times to move a service job to RUNNABLE status. You can specify between 1 and 10 attempts."];evaluateOnExit:ServiceJobEvaluateOnExitList.toption[@ocaml.doc"Array of ServiceJobEvaluateOnExit objects that specify conditions under which the service job should be retried or failed."]}letcontext_="ServiceJobRetryStrategy"letmake?evaluateOnExit=fun~attempts->fun()->{evaluateOnExit;attempts}letto_valuex=structure_to_value[("attempts",(Some(Integer.to_valuex.attempts)));("evaluateOnExit",(Option.mapx.evaluateOnExit~f:ServiceJobEvaluateOnExitList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevaluateOnExit=(Option.map~f:ServiceJobEvaluateOnExitList.of_xml)(Xml.childxml_arg0"evaluateOnExit")inletattempts=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"attempts")inmake?evaluateOnExit~attempts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevaluateOnExit=field_mapjson__"evaluateOnExit"ServiceJobEvaluateOnExitList.of_jsoninletattempts=field_map_exnjson__"attempts"Integer.of_jsoninmake?evaluateOnExit~attempts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The retry strategy for service jobs. This defines how many times to retry a failed service job and under what conditions. For more information, see Service job retry strategies in the Batch User Guide."]moduleServiceJobTimeout=structtypenonrect={attemptDurationSeconds:Integer.toption[@ocaml.doc"The maximum duration in seconds that a service job attempt can run. After this time is reached, Batch terminates the service job attempt."]}letmake?attemptDurationSeconds=fun()->{attemptDurationSeconds}letto_valuex=structure_to_value[("attemptDurationSeconds",(Option.mapx.attemptDurationSeconds~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattemptDurationSeconds=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"attemptDurationSeconds")inmake?attemptDurationSeconds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattemptDurationSeconds=field_mapjson__"attemptDurationSeconds"Integer.of_jsoninmake?attemptDurationSeconds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The timeout configuration for service jobs."]moduleArrayProperties=structtypenonrect={size:Integer.toption[@ocaml.doc"The size of the array job."]}letmake?size=fun()->{size}letto_valuex=structure_to_value[("size",(Option.mapx.size~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsize=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"size")inmake?size()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsize=field_mapjson__"size"Integer.of_jsoninmake?size()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents an Batch array job."]moduleNodeOverrides=structtypenonrect={numNodes:Integer.toption[@ocaml.doc"The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override, you must meet the following conditions: There must be at least one node range in your job definition that has an open upper boundary, such as : or n:. The lower boundary of the node range that's specified in the job definition must be fewer than the number of nodes specified in the override. The main node index that's specified in the job definition must be fewer than the number of nodes specified in the override."];nodePropertyOverrides:NodePropertyOverrides.toption[@ocaml.doc"The node property overrides for the job."]}letmake?numNodes=fun?nodePropertyOverrides->fun()->{numNodes;nodePropertyOverrides}letto_valuex=structure_to_value[("numNodes",(Option.mapx.numNodes~f:Integer.to_value));("nodePropertyOverrides",(Option.mapx.nodePropertyOverrides~f:NodePropertyOverrides.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnodePropertyOverrides=(Option.map~f:NodePropertyOverrides.of_xml)(Xml.childxml_arg0"nodePropertyOverrides")inletnumNodes=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"numNodes")inmake?nodePropertyOverrides?numNodes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnodePropertyOverrides=field_mapjson__"nodePropertyOverrides"NodePropertyOverrides.of_jsoninletnumNodes=field_mapjson__"numNodes"Integer.of_jsoninmake?nodePropertyOverrides?numNodes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents any node overrides to a job definition that's used in a SubmitJob API operation. This parameter isn't applicable to jobs that are running on Fargate resources. Don't provide it for these jobs. Rather, use containerOverrides instead."]moduleJobDefinitionType=structtypenonrect=|Container|Multinode|Non_static_idofstringletmakei=iletto_string=function|Container->"container"|Multinode->"multinode"|Non_static_ids->sletof_string=function|"container"->Container|"multinode"->Multinode|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 JobDefinitionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"JobDefinitionType"j)letto_json=simple_to_jsonto_valueendmoduleServiceJobSummaryList=structtypenonrect=ServiceJobSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceJobSummary.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:ServiceJobSummary.of_xml)letof_jsonj=list_of_json~kind:"ServiceJobSummaryList"~of_json:ServiceJobSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListJobsFilterList=structtypenonrect=KeyValuesPair.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyValuesPair.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:KeyValuesPair.of_xml)letof_jsonj=list_of_json~kind:"ListJobsFilterList"~of_json:KeyValuesPair.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSchedulingPolicyListingDetailList=structtypenonrect=SchedulingPolicyListingDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SchedulingPolicyListingDetail.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:SchedulingPolicyListingDetail.of_xml)letof_jsonj=list_of_json~kind:"SchedulingPolicyListingDetailList"~of_json:SchedulingPolicyListingDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleQuotaShareList=structtypenonrect=QuotaShareDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:QuotaShareDetail.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:QuotaShareDetail.of_xml)letof_jsonj=list_of_json~kind:"QuotaShareList"~of_json:QuotaShareDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobSummaryList=structtypenonrect=JobSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobSummary.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:JobSummary.of_xml)letof_jsonj=list_of_json~kind:"JobSummaryList"~of_json:JobSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListJobsByConsumableResourceSummaryList=structtypenonrect=ListJobsByConsumableResourceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ListJobsByConsumableResourceSummary.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:ListJobsByConsumableResourceSummary.of_xml)letof_jsonj=list_of_json~kind:"ListJobsByConsumableResourceSummaryList"~of_json:ListJobsByConsumableResourceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListJobsByConsumableResourceFilterList=structtypenonrect=KeyValuesPair.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyValuesPair.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:KeyValuesPair.of_xml)letof_jsonj=list_of_json~kind:"ListJobsByConsumableResourceFilterList"~of_json:KeyValuesPair.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleConsumableResourceSummaryList=structtypenonrect=ConsumableResourceSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConsumableResourceSummary.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:ConsumableResourceSummary.of_xml)letof_jsonj=list_of_json~kind:"ConsumableResourceSummaryList"~of_json:ConsumableResourceSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListConsumableResourcesFilterList=structtypenonrect=KeyValuesPair.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:KeyValuesPair.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:KeyValuesPair.of_xml)letof_jsonj=list_of_json~kind:"ListConsumableResourcesFilterList"~of_json:KeyValuesPair.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleFrontOfQueueDetail=structtypenonrect={jobs:FrontOfQueueJobSummaryList.toption[@ocaml.doc"The Amazon Resource Names (ARNs) of the first 100 RUNNABLE jobs in a named job queue. For first-in-first-out (FIFO) job queues, jobs are ordered based on their submission time. For fair-share scheduling (FSS) job queues, jobs are ordered based on their job priority and share usage."];lastUpdatedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when each of the first 100 RUNNABLE jobs were last updated."]}letmake?jobs=fun?lastUpdatedAt->fun()->{jobs;lastUpdatedAt}letto_valuex=structure_to_value[("jobs",(Option.mapx.jobs~f:FrontOfQueueJobSummaryList.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletjobs=(Option.map~f:FrontOfQueueJobSummaryList.of_xml)(Xml.childxml_arg0"jobs")inmake?lastUpdatedAt?jobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"lastUpdatedAt"Long.of_jsoninletjobs=field_mapjson__"jobs"FrontOfQueueJobSummaryList.of_jsoninmake?lastUpdatedAt?jobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains a list of the first 100 RUNNABLE jobs associated to a single job queue."]moduleFrontOfQuotaSharesDetail=structtypenonrect={quotaShares:FrontOfQuotaSharesJobSummaryMap.toption[@ocaml.doc"Contains a list of the first RUNNABLE job in each named quota share."];lastUpdatedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the first RUNNABLE job per quota share were all last updated."]}letmake?quotaShares=fun?lastUpdatedAt->fun()->{quotaShares;lastUpdatedAt}letto_valuex=structure_to_value[("quotaShares",(Option.mapx.quotaShares~f:FrontOfQuotaSharesJobSummaryMap.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletquotaShares=(Option.map~f:FrontOfQuotaSharesJobSummaryMap.of_xml)(Xml.childxml_arg0"quotaShares")inmake?lastUpdatedAt?quotaShares()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"lastUpdatedAt"Long.of_jsoninletquotaShares=field_mapjson__"quotaShares"FrontOfQuotaSharesJobSummaryMap.of_jsoninmake?lastUpdatedAt?quotaShares()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that represents the details of the first RUNNABLE job in each named quota share associated with a single job queue."]moduleQueueSnapshotUtilizationDetail=structtypenonrect={totalCapacityUsage:QueueSnapshotCapacityUsageList.toption[@ocaml.doc"The total capacity usage for the entire job queue."];fairshareUtilization:FairshareUtilizationDetail.toption[@ocaml.doc"The utilization information for a fairshare scheduling job queues, including active share count and top capacity utilization by share."];quotaShareUtilization:QuotaShareUtilizationDetail.toption[@ocaml.doc"The utilization information for a job queue with a quota share scheduling policy."];lastUpdatedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the queue utilization information was last updated."]}letmake?totalCapacityUsage=fun?fairshareUtilization->fun?quotaShareUtilization->fun?lastUpdatedAt->fun()->{totalCapacityUsage;fairshareUtilization;quotaShareUtilization;lastUpdatedAt}letto_valuex=structure_to_value[("totalCapacityUsage",(Option.mapx.totalCapacityUsage~f:QueueSnapshotCapacityUsageList.to_value));("fairshareUtilization",(Option.mapx.fairshareUtilization~f:FairshareUtilizationDetail.to_value));("quotaShareUtilization",(Option.mapx.quotaShareUtilization~f:QuotaShareUtilizationDetail.to_value));("lastUpdatedAt",(Option.mapx.lastUpdatedAt~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlastUpdatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"lastUpdatedAt")inletquotaShareUtilization=(Option.map~f:QuotaShareUtilizationDetail.of_xml)(Xml.childxml_arg0"quotaShareUtilization")inletfairshareUtilization=(Option.map~f:FairshareUtilizationDetail.of_xml)(Xml.childxml_arg0"fairshareUtilization")inlettotalCapacityUsage=(Option.map~f:QueueSnapshotCapacityUsageList.of_xml)(Xml.childxml_arg0"totalCapacityUsage")inmake?lastUpdatedAt?quotaShareUtilization?fairshareUtilization?totalCapacityUsage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlastUpdatedAt=field_mapjson__"lastUpdatedAt"Long.of_jsoninletquotaShareUtilization=field_mapjson__"quotaShareUtilization"QuotaShareUtilizationDetail.of_jsoninletfairshareUtilization=field_mapjson__"fairshareUtilization"FairshareUtilizationDetail.of_jsoninlettotalCapacityUsage=field_mapjson__"totalCapacityUsage"QueueSnapshotCapacityUsageList.of_jsoninmake?lastUpdatedAt?quotaShareUtilization?fairshareUtilization?totalCapacityUsage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The job queue utilization at a specific point in time, including total capacity usage, and quota share or fairshare utilization breakdown depending on the job queue scheduling policy."]moduleServiceJobAttemptDetails=structtypenonrect=ServiceJobAttemptDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceJobAttemptDetail.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:ServiceJobAttemptDetail.of_xml)letof_jsonj=list_of_json~kind:"ServiceJobAttemptDetails"~of_json:ServiceJobAttemptDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobCapacityUsageDetailList=structtypenonrect=ServiceJobCapacityUsageDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceJobCapacityUsageDetail.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:ServiceJobCapacityUsageDetail.of_xml)letof_jsonj=list_of_json~kind:"ServiceJobCapacityUsageDetailList"~of_json:ServiceJobCapacityUsageDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceJobPreemptionSummary=structtypenonrect={preemptedAttemptCount:Integer.toption[@ocaml.doc"The total number of times the service job has been preempted."];recentPreemptedAttempts:ServiceJobRecentPreemptedAttemptList.toption[@ocaml.doc"A list of the most recent preemption attempts for the service job."]}letmake?preemptedAttemptCount=fun?recentPreemptedAttempts->fun()->{preemptedAttemptCount;recentPreemptedAttempts}letto_valuex=structure_to_value[("preemptedAttemptCount",(Option.mapx.preemptedAttemptCount~f:Integer.to_value));("recentPreemptedAttempts",(Option.mapx.recentPreemptedAttempts~f:ServiceJobRecentPreemptedAttemptList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecentPreemptedAttempts=(Option.map~f:ServiceJobRecentPreemptedAttemptList.of_xml)(Xml.childxml_arg0"recentPreemptedAttempts")inletpreemptedAttemptCount=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"preemptedAttemptCount")inmake?recentPreemptedAttempts?preemptedAttemptCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecentPreemptedAttempts=field_mapjson__"recentPreemptedAttempts"ServiceJobRecentPreemptedAttemptList.of_jsoninletpreemptedAttemptCount=field_mapjson__"preemptedAttemptCount"Integer.of_jsoninmake?recentPreemptedAttempts?preemptedAttemptCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summarizes the preemptions of the service job. This field appears on a service job when it has been preempted."]moduleServiceEnvironmentDetailList=structtypenonrect=ServiceEnvironmentDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ServiceEnvironmentDetail.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:ServiceEnvironmentDetail.of_xml)letof_jsonj=list_of_json~kind:"ServiceEnvironmentDetailList"~of_json:ServiceEnvironmentDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSchedulingPolicyDetailList=structtypenonrect=SchedulingPolicyDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SchedulingPolicyDetail.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:SchedulingPolicyDetail.of_xml)letof_jsonj=list_of_json~kind:"SchedulingPolicyDetailList"~of_json:SchedulingPolicyDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobDetailList=structtypenonrect=JobDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobDetail.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:JobDetail.of_xml)letof_jsonj=list_of_json~kind:"JobDetailList"~of_json:JobDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobQueueDetailList=structtypenonrect=JobQueueDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobQueueDetail.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:JobQueueDetail.of_xml)letof_jsonj=list_of_json~kind:"JobQueueDetailList"~of_json:JobQueueDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJobDefinitionList=structtypenonrect=JobDefinition.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JobDefinition.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:JobDefinition.of_xml)letof_jsonj=list_of_json~kind:"JobDefinitionList"~of_json:JobDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleComputeEnvironmentDetailList=structtypenonrect=ComputeEnvironmentDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ComputeEnvironmentDetail.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:ComputeEnvironmentDetail.of_xml)letof_jsonj=list_of_json~kind:"ComputeEnvironmentDetailList"~of_json:ComputeEnvironmentDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUpdateServiceJobResponse=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the job."];jobName:String_.toption[@ocaml.doc"The name of the job."];jobId:String_.toption[@ocaml.doc"The unique identifier for the job."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobArn=fun?jobName->fun?jobId->fun()->{jobArn;jobName;jobId}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?jobId?jobName?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_mapjson__"jobId"String_.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?jobId?jobName?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the priority of a specified service job in an Batch job queue."]moduleUpdateServiceJobRequest=structtypenonrect={jobId:String_.t[@ocaml.doc"The Batch job ID of the job to update."];schedulingPriority:Integer.t[@ocaml.doc"The scheduling priority for the job. This only affects jobs in job queues with a quota-share or fair-share scheduling policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority within a share. The minimum supported value is 0 and the maximum supported value is 9999."]}letcontext_="UpdateServiceJobRequest"letmake~jobId=fun~schedulingPriority->fun()->{jobId;schedulingPriority}letto_valuex=structure_to_value[("jobId",(Some(String_.to_valuex.jobId)));("schedulingPriority",(Some(Integer.to_valuex.schedulingPriority)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letschedulingPriority=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"schedulingPriority")inletjobId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake~schedulingPriority~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letschedulingPriority=field_map_exnjson__"schedulingPriority"Integer.of_jsoninletjobId=field_map_exnjson__"jobId"String_.of_jsoninmake~schedulingPriority~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the priority of a specified service job in an Batch job queue."]moduleUpdateServiceEnvironmentResponse=structtypenonrect={serviceEnvironmentName:String_.toption[@ocaml.doc"The name of the service environment that was updated."];serviceEnvironmentArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the service environment that was updated."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?serviceEnvironmentName=fun?serviceEnvironmentArn->fun()->{serviceEnvironmentName;serviceEnvironmentArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("serviceEnvironmentName",(Option.mapx.serviceEnvironmentName~f:String_.to_value));("serviceEnvironmentArn",(Option.mapx.serviceEnvironmentArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceEnvironmentArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceEnvironmentArn")inletserviceEnvironmentName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceEnvironmentName")inmake?serviceEnvironmentArn?serviceEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceEnvironmentArn=field_mapjson__"serviceEnvironmentArn"String_.of_jsoninletserviceEnvironmentName=field_mapjson__"serviceEnvironmentName"String_.of_jsoninmake?serviceEnvironmentArn?serviceEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a service environment. You can update the state of a service environment from ENABLED to DISABLED to prevent new service jobs from being placed in the service environment."]moduleUpdateServiceEnvironmentRequest=structtypenonrect={serviceEnvironment:String_.t[@ocaml.doc"The name or ARN of the service environment to update."];state:ServiceEnvironmentState.toption[@ocaml.doc"The state of the service environment."];capacityLimits:CapacityLimits.toption[@ocaml.doc"The capacity limits for the service environment. This defines the maximum resources that can be used by service jobs in this environment."]}letcontext_="UpdateServiceEnvironmentRequest"letmake?state=fun?capacityLimits->fun~serviceEnvironment->fun()->{state;capacityLimits;serviceEnvironment}letto_valuex=structure_to_value[("serviceEnvironment",(Some(String_.to_valuex.serviceEnvironment)));("state",(Option.mapx.state~f:ServiceEnvironmentState.to_value));("capacityLimits",(Option.mapx.capacityLimits~f:CapacityLimits.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcapacityLimits=(Option.map~f:CapacityLimits.of_xml)(Xml.childxml_arg0"capacityLimits")inletstate=(Option.map~f:ServiceEnvironmentState.of_xml)(Xml.childxml_arg0"state")inletserviceEnvironment=String_.of_xml(Xml.child_exn~context:context_xml_arg0"serviceEnvironment")inmake?capacityLimits?state~serviceEnvironment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcapacityLimits=field_mapjson__"capacityLimits"CapacityLimits.of_jsoninletstate=field_mapjson__"state"ServiceEnvironmentState.of_jsoninletserviceEnvironment=field_map_exnjson__"serviceEnvironment"String_.of_jsoninmake?capacityLimits?state~serviceEnvironment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a service environment. You can update the state of a service environment from ENABLED to DISABLED to prevent new service jobs from being placed in the service environment."]moduleUpdateSchedulingPolicyResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a scheduling policy."]moduleUpdateSchedulingPolicyRequest=structtypenonrect={arn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduling policy to update."];quotaSharePolicy:QuotaSharePolicy.toption[@ocaml.doc"The quota share scheduling policy details. Once set during creation, a quotaSharePolicy cannot be removed or changed to a fairsharePolicy."];fairsharePolicy:FairsharePolicy.toption[@ocaml.doc"The fair-share policy scheduling details. Once set during creation, a fairsharePolicy cannot be removed or changed to a quotaSharePolicy."]}letcontext_="UpdateSchedulingPolicyRequest"letmake?quotaSharePolicy=fun?fairsharePolicy->fun~arn->fun()->{quotaSharePolicy;fairsharePolicy;arn}letto_valuex=structure_to_value[("arn",(Some(String_.to_valuex.arn)));("quotaSharePolicy",(Option.mapx.quotaSharePolicy~f:QuotaSharePolicy.to_value));("fairsharePolicy",(Option.mapx.fairsharePolicy~f:FairsharePolicy.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfairsharePolicy=(Option.map~f:FairsharePolicy.of_xml)(Xml.childxml_arg0"fairsharePolicy")inletquotaSharePolicy=(Option.map~f:QuotaSharePolicy.of_xml)(Xml.childxml_arg0"quotaSharePolicy")inletarn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake?fairsharePolicy?quotaSharePolicy~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfairsharePolicy=field_mapjson__"fairsharePolicy"FairsharePolicy.of_jsoninletquotaSharePolicy=field_mapjson__"quotaSharePolicy"QuotaSharePolicy.of_jsoninletarn=field_map_exnjson__"arn"String_.of_jsoninmake?fairsharePolicy?quotaSharePolicy~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for UpdateSchedulingPolicy."]moduleUpdateQuotaShareResponse=structtypenonrect={quotaShareName:String_.toption[@ocaml.doc"The name of the quota share."];quotaShareArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?quotaShareName=fun?quotaShareArn->fun()->{quotaShareName;quotaShareArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("quotaShareArn",(Option.mapx.quotaShareArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaShareArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareArn")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inmake?quotaShareArn?quotaShareName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaShareArn=field_mapjson__"quotaShareArn"String_.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninmake?quotaShareArn?quotaShareName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a quota share."]moduleUpdateQuotaShareRequest=structtypenonrect={quotaShareArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share to update."];capacityLimits:QuotaShareCapacityLimits.toption[@ocaml.doc"A list that specifies the quantity and type of compute capacity allocated to the quota share."];resourceSharingConfiguration:QuotaShareResourceSharingConfiguration.toption[@ocaml.doc"Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity."];preemptionConfiguration:QuotaSharePreemptionConfiguration.toption[@ocaml.doc"Specifies the preemption behavior for jobs in a quota share."];state:QuotaShareState.toption[@ocaml.doc"The state of the quota share. If the quota share is ENABLED, it is able to accept jobs. If the quota share is DISABLED, new jobs won't be accepted but jobs already submitted can finish."]}letcontext_="UpdateQuotaShareRequest"letmake?capacityLimits=fun?resourceSharingConfiguration->fun?preemptionConfiguration->fun?state->fun~quotaShareArn->fun()->{capacityLimits;resourceSharingConfiguration;preemptionConfiguration;state;quotaShareArn}letto_valuex=structure_to_value[("quotaShareArn",(Some(String_.to_valuex.quotaShareArn)));("capacityLimits",(Option.mapx.capacityLimits~f:QuotaShareCapacityLimits.to_value));("resourceSharingConfiguration",(Option.mapx.resourceSharingConfiguration~f:QuotaShareResourceSharingConfiguration.to_value));("preemptionConfiguration",(Option.mapx.preemptionConfiguration~f:QuotaSharePreemptionConfiguration.to_value));("state",(Option.mapx.state~f:QuotaShareState.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:QuotaShareState.of_xml)(Xml.childxml_arg0"state")inletpreemptionConfiguration=(Option.map~f:QuotaSharePreemptionConfiguration.of_xml)(Xml.childxml_arg0"preemptionConfiguration")inletresourceSharingConfiguration=(Option.map~f:QuotaShareResourceSharingConfiguration.of_xml)(Xml.childxml_arg0"resourceSharingConfiguration")inletcapacityLimits=(Option.map~f:QuotaShareCapacityLimits.of_xml)(Xml.childxml_arg0"capacityLimits")inletquotaShareArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"quotaShareArn")inmake?state?preemptionConfiguration?resourceSharingConfiguration?capacityLimits~quotaShareArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"state"QuotaShareState.of_jsoninletpreemptionConfiguration=field_mapjson__"preemptionConfiguration"QuotaSharePreemptionConfiguration.of_jsoninletresourceSharingConfiguration=field_mapjson__"resourceSharingConfiguration"QuotaShareResourceSharingConfiguration.of_jsoninletcapacityLimits=field_mapjson__"capacityLimits"QuotaShareCapacityLimits.of_jsoninletquotaShareArn=field_map_exnjson__"quotaShareArn"String_.of_jsoninmake?state?preemptionConfiguration?resourceSharingConfiguration?capacityLimits~quotaShareArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a quota share."]moduleUpdateJobQueueResponse=structtypenonrect={jobQueueName:String_.toption[@ocaml.doc"The name of the job queue."];jobQueueArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job queue."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobQueueName=fun?jobQueueArn->fun()->{jobQueueName;jobQueueArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobQueueName",(Option.mapx.jobQueueName~f:String_.to_value));("jobQueueArn",(Option.mapx.jobQueueArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobQueueArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueArn")inletjobQueueName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueName")inmake?jobQueueArn?jobQueueName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobQueueArn=field_mapjson__"jobQueueArn"String_.of_jsoninletjobQueueName=field_mapjson__"jobQueueName"String_.of_jsoninmake?jobQueueArn?jobQueueName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a job queue."]moduleUpdateJobQueueRequest=structtypenonrect={jobQueue:String_.t[@ocaml.doc"The name or the Amazon Resource Name (ARN) of the job queue."];state:JQState.toption[@ocaml.doc"Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can finish."];schedulingPolicyArn:String_.toption[@ocaml.doc"Amazon Resource Name (ARN) of the fair-share scheduling policy. Once a job queue is created, the fair-share scheduling policy can be replaced but not removed. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy."];priority:Integer.toption[@ocaml.doc"The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed."];computeEnvironmentOrder:ComputeEnvironmentOrders.toption[@ocaml.doc"Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment runs a given job. Compute environments must be in the VALID state before you can associate them with a job queue. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed. All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue."];serviceEnvironmentOrder:ServiceEnvironmentOrders.toption[@ocaml.doc"The order of the service environment associated with the job queue. Job queues with a higher priority are evaluated first when associated with the same service environment."];jobStateTimeLimitActions:JobStateTimeLimitActions.toption[@ocaml.doc"The set of actions that Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. Batch will perform each action after maxTimeSeconds has passed. (Note: The minimum value for maxTimeSeconds is 600 (10 minutes) and its maximum value is 86,400 (24 hours).)"]}letcontext_="UpdateJobQueueRequest"letmake?state=fun?schedulingPolicyArn->fun?priority->fun?computeEnvironmentOrder->fun?serviceEnvironmentOrder->fun?jobStateTimeLimitActions->fun~jobQueue->fun()->{state;schedulingPolicyArn;priority;computeEnvironmentOrder;serviceEnvironmentOrder;jobStateTimeLimitActions;jobQueue}letto_valuex=structure_to_value[("jobQueue",(Some(String_.to_valuex.jobQueue)));("state",(Option.mapx.state~f:JQState.to_value));("schedulingPolicyArn",(Option.mapx.schedulingPolicyArn~f:String_.to_value));("priority",(Option.mapx.priority~f:Integer.to_value));("computeEnvironmentOrder",(Option.mapx.computeEnvironmentOrder~f:ComputeEnvironmentOrders.to_value));("serviceEnvironmentOrder",(Option.mapx.serviceEnvironmentOrder~f:ServiceEnvironmentOrders.to_value));("jobStateTimeLimitActions",(Option.mapx.jobStateTimeLimitActions~f:JobStateTimeLimitActions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobStateTimeLimitActions=(Option.map~f:JobStateTimeLimitActions.of_xml)(Xml.childxml_arg0"jobStateTimeLimitActions")inletserviceEnvironmentOrder=(Option.map~f:ServiceEnvironmentOrders.of_xml)(Xml.childxml_arg0"serviceEnvironmentOrder")inletcomputeEnvironmentOrder=(Option.map~f:ComputeEnvironmentOrders.of_xml)(Xml.childxml_arg0"computeEnvironmentOrder")inletpriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"priority")inletschedulingPolicyArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"schedulingPolicyArn")inletstate=(Option.map~f:JQState.of_xml)(Xml.childxml_arg0"state")inletjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inmake?jobStateTimeLimitActions?serviceEnvironmentOrder?computeEnvironmentOrder?priority?schedulingPolicyArn?state~jobQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobStateTimeLimitActions=field_mapjson__"jobStateTimeLimitActions"JobStateTimeLimitActions.of_jsoninletserviceEnvironmentOrder=field_mapjson__"serviceEnvironmentOrder"ServiceEnvironmentOrders.of_jsoninletcomputeEnvironmentOrder=field_mapjson__"computeEnvironmentOrder"ComputeEnvironmentOrders.of_jsoninletpriority=field_mapjson__"priority"Integer.of_jsoninletschedulingPolicyArn=field_mapjson__"schedulingPolicyArn"String_.of_jsoninletstate=field_mapjson__"state"JQState.of_jsoninletjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninmake?jobStateTimeLimitActions?serviceEnvironmentOrder?computeEnvironmentOrder?priority?schedulingPolicyArn?state~jobQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for UpdateJobQueue."]moduleUpdateConsumableResourceResponse=structtypenonrect={consumableResourceName:String_.toption[@ocaml.doc"The name of the consumable resource to be updated."];consumableResourceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the consumable resource."];totalQuantity:Long.toption[@ocaml.doc"The total amount of the consumable resource that is available."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumableResourceName=fun?consumableResourceArn->fun?totalQuantity->fun()->{consumableResourceName;consumableResourceArn;totalQuantity}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("consumableResourceName",(Option.mapx.consumableResourceName~f:String_.to_value));("consumableResourceArn",(Option.mapx.consumableResourceArn~f:String_.to_value));("totalQuantity",(Option.mapx.totalQuantity~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"totalQuantity")inletconsumableResourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceArn")inletconsumableResourceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceName")inmake?totalQuantity?consumableResourceArn?consumableResourceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalQuantity=field_mapjson__"totalQuantity"Long.of_jsoninletconsumableResourceArn=field_mapjson__"consumableResourceArn"String_.of_jsoninletconsumableResourceName=field_mapjson__"consumableResourceName"String_.of_jsoninmake?totalQuantity?consumableResourceArn?consumableResourceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a consumable resource."]moduleUpdateConsumableResourceRequest=structtypenonrect={consumableResource:String_.t[@ocaml.doc"The name or ARN of the consumable resource to be updated."];operation:String_.toption[@ocaml.doc"Indicates how the quantity of the consumable resource will be updated. Must be one of: SET Sets the quantity of the resource to the value specified by the quantity parameter. ADD Increases the quantity of the resource by the value specified by the quantity parameter. REMOVE Reduces the quantity of the resource by the value specified by the quantity parameter."];quantity:Long.toption[@ocaml.doc"The change in the total quantity of the consumable resource. The operation parameter determines whether the value specified here will be the new total quantity, or the amount by which the total quantity will be increased or reduced. Must be a non-negative value."];clientToken:ClientRequestToken.toption[@ocaml.doc"If this parameter is specified and two update requests with identical payloads and clientTokens are received, these requests are considered the same request. Both requests will succeed, but the update will only happen once. A clientToken is valid for 8 hours."]}letcontext_="UpdateConsumableResourceRequest"letmake?operation=fun?quantity->fun?clientToken->fun~consumableResource->fun()->{operation;quantity;clientToken;consumableResource}letto_valuex=structure_to_value[("consumableResource",(Some(String_.to_valuex.consumableResource)));("operation",(Option.mapx.operation~f:String_.to_value));("quantity",(Option.mapx.quantity~f:Long.to_value));("clientToken",(Option.mapx.clientToken~f:ClientRequestToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"clientToken")inletquantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"quantity")inletoperation=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"operation")inletconsumableResource=String_.of_xml(Xml.child_exn~context:context_xml_arg0"consumableResource")inmake?clientToken?quantity?operation~consumableResource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientRequestToken.of_jsoninletquantity=field_mapjson__"quantity"Long.of_jsoninletoperation=field_mapjson__"operation"String_.of_jsoninletconsumableResource=field_map_exnjson__"consumableResource"String_.of_jsoninmake?clientToken?quantity?operation~consumableResource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates a consumable resource."]moduleUpdateComputeEnvironmentResponse=structtypenonrect={computeEnvironmentName:String_.toption[@ocaml.doc"The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];computeEnvironmentArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the compute environment."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?computeEnvironmentName=fun?computeEnvironmentArn->fun()->{computeEnvironmentName;computeEnvironmentArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("computeEnvironmentName",(Option.mapx.computeEnvironmentName~f:String_.to_value));("computeEnvironmentArn",(Option.mapx.computeEnvironmentArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomputeEnvironmentArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"computeEnvironmentArn")inletcomputeEnvironmentName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"computeEnvironmentName")inmake?computeEnvironmentArn?computeEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomputeEnvironmentArn=field_mapjson__"computeEnvironmentArn"String_.of_jsoninletcomputeEnvironmentName=field_mapjson__"computeEnvironmentName"String_.of_jsoninmake?computeEnvironmentArn?computeEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an Batch compute environment."]moduleUpdateComputeEnvironmentRequest=structtypenonrect={computeEnvironment:String_.t[@ocaml.doc"The name or full Amazon Resource Name (ARN) of the compute environment to update."];state:CEState.toption[@ocaml.doc"The state of the compute environment. Compute environments in the ENABLED state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues. If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand. If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state don't scale out. Compute environments in a DISABLED state may continue to incur billing charges, for example, if they have running instances due to jobs that are still executing or a non-zero minvCpus setting. To prevent additional charges, disable and delete the compute environment. When an instance is idle, the instance scales down to the minvCpus value. However, the instance size doesn't change. For example, consider a c5.8xlarge instance with a minvCpus value of 4 and a desiredvCpus value of 36. This instance doesn't scale down to a c5.large instance."];unmanagedvCpus:Integer.toption[@ocaml.doc"The maximum number of vCPUs expected to be used for an unmanaged compute environment. Don't specify this parameter for a managed compute environment. This parameter is only used for fair-share scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair-share job queue, no vCPU capacity is reserved."];computeResources:ComputeResourceUpdate.toption[@ocaml.doc"Details of the compute resources managed by the compute environment. Required for a managed compute environment. For more information, see Compute Environments in the Batch User Guide."];serviceRole:String_.toption[@ocaml.doc"The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For more information, see Batch service IAM role in the Batch User Guide. If the compute environment has a service-linked role, it can't be changed to use a regular IAM role. Likewise, if the compute environment has a regular IAM role, it can't be changed to use a service-linked role. To update the parameters for the compute environment that require an infrastructure update to change, the AWSServiceRoleForBatch service-linked role must be used. For more information, see Updating compute environments in the Batch User Guide. If your specified role has a path other than /, then you must either specify the full role ARN (recommended) or prefix the role name with the path. Depending on how you created your Batch service role, its ARN might contain the service-role path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the service-role path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments."];updatePolicy:UpdatePolicy.toption[@ocaml.doc"Specifies the updated infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide."];context:String_.toption[@ocaml.doc"Reserved."]}letcontext_="UpdateComputeEnvironmentRequest"letmake?state=fun?unmanagedvCpus->fun?computeResources->fun?serviceRole->fun?updatePolicy->fun?context->fun~computeEnvironment->fun()->{state;unmanagedvCpus;computeResources;serviceRole;updatePolicy;context;computeEnvironment}letto_valuex=structure_to_value[("computeEnvironment",(Some(String_.to_valuex.computeEnvironment)));("state",(Option.mapx.state~f:CEState.to_value));("unmanagedvCpus",(Option.mapx.unmanagedvCpus~f:Integer.to_value));("computeResources",(Option.mapx.computeResources~f:ComputeResourceUpdate.to_value));("serviceRole",(Option.mapx.serviceRole~f:String_.to_value));("updatePolicy",(Option.mapx.updatePolicy~f:UpdatePolicy.to_value));("context",(Option.mapx.context~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"context")inletupdatePolicy=(Option.map~f:UpdatePolicy.of_xml)(Xml.childxml_arg0"updatePolicy")inletserviceRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceRole")inletcomputeResources=(Option.map~f:ComputeResourceUpdate.of_xml)(Xml.childxml_arg0"computeResources")inletunmanagedvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"unmanagedvCpus")inletstate=(Option.map~f:CEState.of_xml)(Xml.childxml_arg0"state")inletcomputeEnvironment=String_.of_xml(Xml.child_exn~context:context_xml_arg0"computeEnvironment")inmake?context?updatePolicy?serviceRole?computeResources?unmanagedvCpus?state~computeEnvironment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontext=field_mapjson__"context"String_.of_jsoninletupdatePolicy=field_mapjson__"updatePolicy"UpdatePolicy.of_jsoninletserviceRole=field_mapjson__"serviceRole"String_.of_jsoninletcomputeResources=field_mapjson__"computeResources"ComputeResourceUpdate.of_jsoninletunmanagedvCpus=field_mapjson__"unmanagedvCpus"Integer.of_jsoninletstate=field_mapjson__"state"CEState.of_jsoninletcomputeEnvironment=field_map_exnjson__"computeEnvironment"String_.of_jsoninmake?context?updatePolicy?serviceRole?computeResources?unmanagedvCpus?state~computeEnvironment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for UpdateComputeEnvironment."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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 specified tags from an Batch resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported."];tagKeys:TagKeysList.t[@ocaml.doc"The keys of the tags to be removed."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("tagKeys",(Some(TagKeysList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeysList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=String_.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"TagKeysList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for UntagResource."]moduleTerminateServiceJobResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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"Terminates a service job in a job queue."]moduleTerminateServiceJobRequest=structtypenonrect={jobId:String_.t[@ocaml.doc"The service job ID of the service job to terminate."];reason:String_.t[@ocaml.doc"A message to attach to the service job that explains the reason for canceling it. This message is returned by DescribeServiceJob operations on the service job."]}letcontext_="TerminateServiceJobRequest"letmake~jobId=fun~reason->fun()->{jobId;reason}letto_valuex=structure_to_value[("jobId",(Some(String_.to_valuex.jobId)));("reason",(Some(String_.to_valuex.reason)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=String_.of_xml(Xml.child_exn~context:context_xml_arg0"reason")inletjobId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake~reason~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_map_exnjson__"reason"String_.of_jsoninletjobId=field_map_exnjson__"jobId"String_.of_jsoninmake~reason~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Terminates a service job in a job queue."]moduleTerminateJobResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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"Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING state are terminated, which causes them to transition to FAILED. Jobs that have not progressed to the STARTING state are cancelled."]moduleTerminateJobRequest=structtypenonrect={jobId:String_.t[@ocaml.doc"The Batch job ID of the job to terminate."];reason:String_.t[@ocaml.doc"A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. It is also recorded in the Batch activity logs. This parameter has as limit of 1024 characters."]}letcontext_="TerminateJobRequest"letmake~jobId=fun~reason->fun()->{jobId;reason}letto_valuex=structure_to_value[("jobId",(Some(String_.to_valuex.jobId)));("reason",(Some(String_.to_valuex.reason)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=String_.of_xml(Xml.child_exn~context:context_xml_arg0"reason")inletjobId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake~reason~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_map_exnjson__"reason"String_.of_jsoninletjobId=field_map_exnjson__"jobId"String_.of_jsoninmake~reason~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for TerminateJob."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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 the specified tags to a resource with the specified resourceArn. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported."]moduleTagResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource that tags are added to. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported."];tags:TagrisTagsMap.t[@ocaml.doc"The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General Reference."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)));("tags",(Some(TagrisTagsMap.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagrisTagsMap.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=String_.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"TagrisTagsMap.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"String_.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for TagResource."]moduleSubmitServiceJobResponse=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the service job."];jobName:String_.toption[@ocaml.doc"The name of the service job."];jobId:String_.toption[@ocaml.doc"The unique identifier for the service job."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobArn=fun?jobName->fun?jobId->fun()->{jobArn;jobName;jobId}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?jobId?jobName?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_mapjson__"jobId"String_.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?jobId?jobName?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Submits a service job to a specified job queue to run on SageMaker AI. A service job is a unit of work that you submit to Batch for execution on SageMaker AI."]moduleSubmitServiceJobRequest=structtypenonrect={jobName:String_.t[@ocaml.doc"The name of the service job. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];jobQueue:String_.t[@ocaml.doc"The job queue into which the service job is submitted. You can specify either the name or the ARN of the queue. The job queue must have the type SAGEMAKER_TRAINING."];retryStrategy:ServiceJobRetryStrategy.toption[@ocaml.doc"The retry strategy to use for failed service jobs that are submitted with this service job request."];schedulingPriority:Integer.toption[@ocaml.doc"The scheduling priority of the service job. Valid values are integers between 0 and 9999."];serviceRequestPayload:String_.t[@ocaml.doc"The request, in JSON, for the service that the SubmitServiceJob operation is queueing."];serviceJobType:ServiceJobType.t[@ocaml.doc"The type of service job. For SageMaker Training jobs, specify SAGEMAKER_TRAINING."];shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the service job. Don't specify this parameter if the job queue doesn't have a fair-share scheduling policy. If the job queue has a fair-share scheduling policy, then this parameter must be specified."];quotaShareName:String_.toption[@ocaml.doc"The quota share for the service job. Don't specify this parameter if the job queue doesn't have a quota share scheduling policy. If the job queue has a quota share scheduling policy, then this parameter must be specified."];preemptionConfiguration:ServiceJobPreemptionConfiguration.toption[@ocaml.doc"Specifies the service job behavior when preempted."];timeoutConfig:ServiceJobTimeout.toption[@ocaml.doc"The timeout configuration for the service job. If none is specified, Batch defers to the default timeout of the underlying service handling the job."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the service job request. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources."];clientToken:ClientRequestToken.toption[@ocaml.doc"A unique identifier for the request. This token is used to ensure idempotency of requests. If this parameter is specified and two submit requests with identical payloads and clientTokens are received, these requests are considered the same request and the second request is rejected."]}letcontext_="SubmitServiceJobRequest"letmake?retryStrategy=fun?schedulingPriority->fun?shareIdentifier->fun?quotaShareName->fun?preemptionConfiguration->fun?timeoutConfig->fun?tags->fun?clientToken->fun~jobName->fun~jobQueue->fun~serviceRequestPayload->fun~serviceJobType->fun()->{retryStrategy;schedulingPriority;shareIdentifier;quotaShareName;preemptionConfiguration;timeoutConfig;tags;clientToken;jobName;jobQueue;serviceRequestPayload;serviceJobType}letto_valuex=structure_to_value[("jobName",(Some(String_.to_valuex.jobName)));("jobQueue",(Some(String_.to_valuex.jobQueue)));("retryStrategy",(Option.mapx.retryStrategy~f:ServiceJobRetryStrategy.to_value));("schedulingPriority",(Option.mapx.schedulingPriority~f:Integer.to_value));("serviceRequestPayload",(Some(String_.to_valuex.serviceRequestPayload)));("serviceJobType",(Some(ServiceJobType.to_valuex.serviceJobType)));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("preemptionConfiguration",(Option.mapx.preemptionConfiguration~f:ServiceJobPreemptionConfiguration.to_value));("timeoutConfig",(Option.mapx.timeoutConfig~f:ServiceJobTimeout.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("clientToken",(Option.mapx.clientToken~f:ClientRequestToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientRequestToken.of_xml)(Xml.childxml_arg0"clientToken")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inlettimeoutConfig=(Option.map~f:ServiceJobTimeout.of_xml)(Xml.childxml_arg0"timeoutConfig")inletpreemptionConfiguration=(Option.map~f:ServiceJobPreemptionConfiguration.of_xml)(Xml.childxml_arg0"preemptionConfiguration")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletserviceJobType=ServiceJobType.of_xml(Xml.child_exn~context:context_xml_arg0"serviceJobType")inletserviceRequestPayload=String_.of_xml(Xml.child_exn~context:context_xml_arg0"serviceRequestPayload")inletschedulingPriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"schedulingPriority")inletretryStrategy=(Option.map~f:ServiceJobRetryStrategy.of_xml)(Xml.childxml_arg0"retryStrategy")inletjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inletjobName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobName")inmake?clientToken?tags?timeoutConfig?preemptionConfiguration?quotaShareName?shareIdentifier~serviceJobType~serviceRequestPayload?schedulingPriority?retryStrategy~jobQueue~jobName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientRequestToken.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninlettimeoutConfig=field_mapjson__"timeoutConfig"ServiceJobTimeout.of_jsoninletpreemptionConfiguration=field_mapjson__"preemptionConfiguration"ServiceJobPreemptionConfiguration.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletserviceJobType=field_map_exnjson__"serviceJobType"ServiceJobType.of_jsoninletserviceRequestPayload=field_map_exnjson__"serviceRequestPayload"String_.of_jsoninletschedulingPriority=field_mapjson__"schedulingPriority"Integer.of_jsoninletretryStrategy=field_mapjson__"retryStrategy"ServiceJobRetryStrategy.of_jsoninletjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninletjobName=field_map_exnjson__"jobName"String_.of_jsoninmake?clientToken?tags?timeoutConfig?preemptionConfiguration?quotaShareName?shareIdentifier~serviceJobType~serviceRequestPayload?schedulingPriority?retryStrategy~jobQueue~jobName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Submits a service job to a specified job queue to run on SageMaker AI. A service job is a unit of work that you submit to Batch for execution on SageMaker AI."]moduleSubmitJobResponse=structtypenonrect={jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) for the job."];jobName:String_.toption[@ocaml.doc"The name of the job."];jobId:String_.toption[@ocaml.doc"The unique identifier for the job."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobArn=fun?jobName->fun?jobId->fun()->{jobArn;jobName;jobId}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inmake?jobId?jobName?jobArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_mapjson__"jobId"String_.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninmake?jobId?jobName?jobArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Submits an Batch job from a job definition. Parameters that are specified during SubmitJob override parameters defined in the job definition. vCPU and memory requirements that are specified in the resourceRequirements objects in the job definition are the exception. They can't be overridden this way using the memory and vcpus parameters. Rather, you must specify updates to job definition parameters in a resourceRequirements object that's included in the containerOverrides parameter. Job queues with a scheduling policy are limited to 500 active share identifiers at a time. Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14 days, Fargate resources might become unavailable and job might be terminated."]moduleSubmitJobRequest=structtypenonrect={jobName:String_.t[@ocaml.doc"The name of the job. It can be up to 128 letters long. The first character must be alphanumeric, can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];jobQueue:String_.t[@ocaml.doc"The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue."];shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the job. Don't specify this parameter if the job queue doesn't have a fair-share scheduling policy. If the job queue has a fair-share scheduling policy, then this parameter must be specified. This string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*)."];schedulingPriorityOverride:Integer.toption[@ocaml.doc"The scheduling priority for the job. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority. This overrides any scheduling priority in the job definition and works only within a single share identifier. The minimum supported value is 0 and the maximum supported value is 9999."];arrayProperties:ArrayProperties.toption[@ocaml.doc"The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the Batch User Guide."];dependsOn:JobDependencyList.toption[@ocaml.doc"A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a SEQUENTIAL type dependency without specifying a job ID for array jobs so that each child array job completes sequentially, starting at index 0. You can also specify an N_TO_N type dependency with a job ID for array jobs. In that case, each index child of this job must wait for the corresponding index child of each dependency to complete before it can begin."];jobDefinition:String_.t[@ocaml.doc"The job definition used by this job. This value can be one of definition-name, definition-name:revision, or the Amazon Resource Name (ARN) for the job definition, with or without the revision (arn:aws:batch:region:account:job-definition/definition-name:revision , or arn:aws:batch:region:account:job-definition/definition-name ). If the revision is not specified, then the latest active revision is used."];parameters:ParametersMap.toption[@ocaml.doc"Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition."];containerOverrides:ContainerOverrides.toption[@ocaml.doc"An object with properties that override the defaults for the job definition that specify the name of a container in the specified job definition and the overrides it should receive. You can override the default command for a container, which is specified in the job definition or the Docker image, with a command override. You can also override existing environment variables on a container or add new environment variables to it with an environment override."];nodeOverrides:NodeOverrides.toption[@ocaml.doc"A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range. This parameter isn't applicable to jobs that are running on Fargate resources; use containerOverrides instead."];retryStrategy:RetryStrategy.toption[@ocaml.doc"The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy is specified here, it overrides the retry strategy defined in the job definition."];propagateTags:Boolean.toption[@ocaml.doc"Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state. When specified, this overrides the tag propagation setting in the job definition."];timeout:JobTimeout.toption[@ocaml.doc"The timeout configuration for this SubmitJob operation. You can specify a timeout duration after which Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General Reference."];eksPropertiesOverride:EksPropertiesOverride.toption[@ocaml.doc"An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon EKS resources."];ecsPropertiesOverride:EcsPropertiesOverride.toption[@ocaml.doc"An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon ECS resources."];consumableResourcePropertiesOverride:ConsumableResourceProperties.toption[@ocaml.doc"An object that contains overrides for the consumable resources of a job."]}letcontext_="SubmitJobRequest"letmake?shareIdentifier=fun?schedulingPriorityOverride->fun?arrayProperties->fun?dependsOn->fun?parameters->fun?containerOverrides->fun?nodeOverrides->fun?retryStrategy->fun?propagateTags->fun?timeout->fun?tags->fun?eksPropertiesOverride->fun?ecsPropertiesOverride->fun?consumableResourcePropertiesOverride->fun~jobName->fun~jobQueue->fun~jobDefinition->fun()->{shareIdentifier;schedulingPriorityOverride;arrayProperties;dependsOn;parameters;containerOverrides;nodeOverrides;retryStrategy;propagateTags;timeout;tags;eksPropertiesOverride;ecsPropertiesOverride;consumableResourcePropertiesOverride;jobName;jobQueue;jobDefinition}letto_valuex=structure_to_value[("jobName",(Some(String_.to_valuex.jobName)));("jobQueue",(Some(String_.to_valuex.jobQueue)));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("schedulingPriorityOverride",(Option.mapx.schedulingPriorityOverride~f:Integer.to_value));("arrayProperties",(Option.mapx.arrayProperties~f:ArrayProperties.to_value));("dependsOn",(Option.mapx.dependsOn~f:JobDependencyList.to_value));("jobDefinition",(Some(String_.to_valuex.jobDefinition)));("parameters",(Option.mapx.parameters~f:ParametersMap.to_value));("containerOverrides",(Option.mapx.containerOverrides~f:ContainerOverrides.to_value));("nodeOverrides",(Option.mapx.nodeOverrides~f:NodeOverrides.to_value));("retryStrategy",(Option.mapx.retryStrategy~f:RetryStrategy.to_value));("propagateTags",(Option.mapx.propagateTags~f:Boolean.to_value));("timeout",(Option.mapx.timeout~f:JobTimeout.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("eksPropertiesOverride",(Option.mapx.eksPropertiesOverride~f:EksPropertiesOverride.to_value));("ecsPropertiesOverride",(Option.mapx.ecsPropertiesOverride~f:EcsPropertiesOverride.to_value));("consumableResourcePropertiesOverride",(Option.mapx.consumableResourcePropertiesOverride~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourcePropertiesOverride=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourcePropertiesOverride")inletecsPropertiesOverride=(Option.map~f:EcsPropertiesOverride.of_xml)(Xml.childxml_arg0"ecsPropertiesOverride")inleteksPropertiesOverride=(Option.map~f:EksPropertiesOverride.of_xml)(Xml.childxml_arg0"eksPropertiesOverride")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inlettimeout=(Option.map~f:JobTimeout.of_xml)(Xml.childxml_arg0"timeout")inletpropagateTags=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"propagateTags")inletretryStrategy=(Option.map~f:RetryStrategy.of_xml)(Xml.childxml_arg0"retryStrategy")inletnodeOverrides=(Option.map~f:NodeOverrides.of_xml)(Xml.childxml_arg0"nodeOverrides")inletcontainerOverrides=(Option.map~f:ContainerOverrides.of_xml)(Xml.childxml_arg0"containerOverrides")inletparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"parameters")inletjobDefinition=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobDefinition")inletdependsOn=(Option.map~f:JobDependencyList.of_xml)(Xml.childxml_arg0"dependsOn")inletarrayProperties=(Option.map~f:ArrayProperties.of_xml)(Xml.childxml_arg0"arrayProperties")inletschedulingPriorityOverride=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"schedulingPriorityOverride")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inletjobName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobName")inmake?consumableResourcePropertiesOverride?ecsPropertiesOverride?eksPropertiesOverride?tags?timeout?propagateTags?retryStrategy?nodeOverrides?containerOverrides?parameters~jobDefinition?dependsOn?arrayProperties?schedulingPriorityOverride?shareIdentifier~jobQueue~jobName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourcePropertiesOverride=field_mapjson__"consumableResourcePropertiesOverride"ConsumableResourceProperties.of_jsoninletecsPropertiesOverride=field_mapjson__"ecsPropertiesOverride"EcsPropertiesOverride.of_jsoninleteksPropertiesOverride=field_mapjson__"eksPropertiesOverride"EksPropertiesOverride.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninlettimeout=field_mapjson__"timeout"JobTimeout.of_jsoninletpropagateTags=field_mapjson__"propagateTags"Boolean.of_jsoninletretryStrategy=field_mapjson__"retryStrategy"RetryStrategy.of_jsoninletnodeOverrides=field_mapjson__"nodeOverrides"NodeOverrides.of_jsoninletcontainerOverrides=field_mapjson__"containerOverrides"ContainerOverrides.of_jsoninletparameters=field_mapjson__"parameters"ParametersMap.of_jsoninletjobDefinition=field_map_exnjson__"jobDefinition"String_.of_jsoninletdependsOn=field_mapjson__"dependsOn"JobDependencyList.of_jsoninletarrayProperties=field_mapjson__"arrayProperties"ArrayProperties.of_jsoninletschedulingPriorityOverride=field_mapjson__"schedulingPriorityOverride"Integer.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninletjobName=field_map_exnjson__"jobName"String_.of_jsoninmake?consumableResourcePropertiesOverride?ecsPropertiesOverride?eksPropertiesOverride?tags?timeout?propagateTags?retryStrategy?nodeOverrides?containerOverrides?parameters~jobDefinition?dependsOn?arrayProperties?schedulingPriorityOverride?shareIdentifier~jobQueue~jobName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for SubmitJob."]moduleRegisterJobDefinitionResponse=structtypenonrect={jobDefinitionName:String_.toption[@ocaml.doc"The name of the job definition."];jobDefinitionArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job definition."];revision:Integer.toption[@ocaml.doc"The revision of the job definition."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobDefinitionName=fun?jobDefinitionArn->fun?revision->fun()->{jobDefinitionName;jobDefinitionArn;revision}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobDefinitionName",(Option.mapx.jobDefinitionName~f:String_.to_value));("jobDefinitionArn",(Option.mapx.jobDefinitionArn~f:String_.to_value));("revision",(Option.mapx.revision~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrevision=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"revision")inletjobDefinitionArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinitionArn")inletjobDefinitionName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinitionName")inmake?revision?jobDefinitionArn?jobDefinitionName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrevision=field_mapjson__"revision"Integer.of_jsoninletjobDefinitionArn=field_mapjson__"jobDefinitionArn"String_.of_jsoninletjobDefinitionName=field_mapjson__"jobDefinitionName"String_.of_jsoninmake?revision?jobDefinitionArn?jobDefinitionName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Registers an Batch job definition."]moduleRegisterJobDefinitionRequest=structtypenonrect={jobDefinitionName:String_.t[@ocaml.doc"The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];type_:JobDefinitionType.t[@ocaml.doc"The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the Batch User Guide. If the value is container, then one of the following is required: containerProperties, ecsProperties, or eksProperties. If the value is multinode, then nodeProperties is required. If the job is run on Fargate resources, then multinode isn't supported."];parameters:ParametersMap.toption[@ocaml.doc"Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition."];schedulingPriority:Integer.toption[@ocaml.doc"The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job queues with a fair-share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority. The minimum supported value is 0 and the maximum supported value is 9999."];containerProperties:ContainerProperties.toption[@ocaml.doc"An object with properties specific to Amazon ECS-based single-node container-based jobs. If the job definition's type parameter is container, then you must specify either containerProperties or nodeProperties. This must not be specified for Amazon EKS-based job definitions. If the job runs on Fargate resources, then you must not specify nodeProperties; use only containerProperties."];nodeProperties:NodeProperties.toption[@ocaml.doc"An object with properties specific to multi-node parallel jobs. If you specify node properties for a job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the Batch User Guide. If the job runs on Fargate resources, then you must not specify nodeProperties; use containerProperties instead. If the job runs on Amazon EKS resources, then you must not specify nodeProperties."];retryStrategy:RetryStrategy.toption[@ocaml.doc"The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it isn't retried."];propagateTags:Boolean.toption[@ocaml.doc"Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state. If the job runs on Amazon EKS resources, then you must not specify propagateTags."];timeout:JobTimeout.toption[@ocaml.doc"The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the job definition to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Batch User Guide."];platformCapabilities:PlatformCapabilityList.toption[@ocaml.doc"The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. To run the job on Fargate resources, specify FARGATE. If the job runs on Amazon EKS resources, then you must not specify platformCapabilities."];eksProperties:EksProperties.toption[@ocaml.doc"An object with properties that are specific to Amazon EKS-based jobs. This must not be specified for Amazon ECS based job definitions."];ecsProperties:EcsProperties.toption[@ocaml.doc"An object with properties that are specific to Amazon ECS-based jobs. This must not be specified for Amazon EKS-based job definitions."];consumableResourceProperties:ConsumableResourceProperties.toption[@ocaml.doc"Contains a list of consumable resources required by the job."]}letcontext_="RegisterJobDefinitionRequest"letmake?parameters=fun?schedulingPriority->fun?containerProperties->fun?nodeProperties->fun?retryStrategy->fun?propagateTags->fun?timeout->fun?tags->fun?platformCapabilities->fun?eksProperties->fun?ecsProperties->fun?consumableResourceProperties->fun~jobDefinitionName->fun~type_->fun()->{parameters;schedulingPriority;containerProperties;nodeProperties;retryStrategy;propagateTags;timeout;tags;platformCapabilities;eksProperties;ecsProperties;consumableResourceProperties;jobDefinitionName;type_}letto_valuex=structure_to_value[("jobDefinitionName",(Some(String_.to_valuex.jobDefinitionName)));("type",(Some(JobDefinitionType.to_valuex.type_)));("parameters",(Option.mapx.parameters~f:ParametersMap.to_value));("schedulingPriority",(Option.mapx.schedulingPriority~f:Integer.to_value));("containerProperties",(Option.mapx.containerProperties~f:ContainerProperties.to_value));("nodeProperties",(Option.mapx.nodeProperties~f:NodeProperties.to_value));("retryStrategy",(Option.mapx.retryStrategy~f:RetryStrategy.to_value));("propagateTags",(Option.mapx.propagateTags~f:Boolean.to_value));("timeout",(Option.mapx.timeout~f:JobTimeout.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("platformCapabilities",(Option.mapx.platformCapabilities~f:PlatformCapabilityList.to_value));("eksProperties",(Option.mapx.eksProperties~f:EksProperties.to_value));("ecsProperties",(Option.mapx.ecsProperties~f:EcsProperties.to_value));("consumableResourceProperties",(Option.mapx.consumableResourceProperties~f:ConsumableResourceProperties.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceProperties=(Option.map~f:ConsumableResourceProperties.of_xml)(Xml.childxml_arg0"consumableResourceProperties")inletecsProperties=(Option.map~f:EcsProperties.of_xml)(Xml.childxml_arg0"ecsProperties")inleteksProperties=(Option.map~f:EksProperties.of_xml)(Xml.childxml_arg0"eksProperties")inletplatformCapabilities=(Option.map~f:PlatformCapabilityList.of_xml)(Xml.childxml_arg0"platformCapabilities")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inlettimeout=(Option.map~f:JobTimeout.of_xml)(Xml.childxml_arg0"timeout")inletpropagateTags=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"propagateTags")inletretryStrategy=(Option.map~f:RetryStrategy.of_xml)(Xml.childxml_arg0"retryStrategy")inletnodeProperties=(Option.map~f:NodeProperties.of_xml)(Xml.childxml_arg0"nodeProperties")inletcontainerProperties=(Option.map~f:ContainerProperties.of_xml)(Xml.childxml_arg0"containerProperties")inletschedulingPriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"schedulingPriority")inletparameters=(Option.map~f:ParametersMap.of_xml)(Xml.childxml_arg0"parameters")inlettype_=JobDefinitionType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletjobDefinitionName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobDefinitionName")inmake?consumableResourceProperties?ecsProperties?eksProperties?platformCapabilities?tags?timeout?propagateTags?retryStrategy?nodeProperties?containerProperties?schedulingPriority?parameters~type_~jobDefinitionName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceProperties=field_mapjson__"consumableResourceProperties"ConsumableResourceProperties.of_jsoninletecsProperties=field_mapjson__"ecsProperties"EcsProperties.of_jsoninleteksProperties=field_mapjson__"eksProperties"EksProperties.of_jsoninletplatformCapabilities=field_mapjson__"platformCapabilities"PlatformCapabilityList.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninlettimeout=field_mapjson__"timeout"JobTimeout.of_jsoninletpropagateTags=field_mapjson__"propagateTags"Boolean.of_jsoninletretryStrategy=field_mapjson__"retryStrategy"RetryStrategy.of_jsoninletnodeProperties=field_mapjson__"nodeProperties"NodeProperties.of_jsoninletcontainerProperties=field_mapjson__"containerProperties"ContainerProperties.of_jsoninletschedulingPriority=field_mapjson__"schedulingPriority"Integer.of_jsoninletparameters=field_mapjson__"parameters"ParametersMap.of_jsoninlettype_=field_map_exnjson__"type"JobDefinitionType.of_jsoninletjobDefinitionName=field_map_exnjson__"jobDefinitionName"String_.of_jsoninmake?consumableResourceProperties?ecsProperties?eksProperties?platformCapabilities?tags?timeout?propagateTags?retryStrategy?nodeProperties?containerProperties?schedulingPriority?parameters~type_~jobDefinitionName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for RegisterJobDefinition."]moduleListTagsForResourceResponse=structtypenonrect={tags:TagrisTagsMap.toption[@ocaml.doc"The tags for the resource."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(String_.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=String_.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"String_.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for ListTagsForResource."]moduleListServiceJobsResponse=structtypenonrect={jobSummaryList:ServiceJobSummaryList.toption[@ocaml.doc"A list of service job summaries."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future ListServiceJobs request. When the results of a ListServiceJobs request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobSummaryList=fun?nextToken->fun()->{jobSummaryList;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobSummaryList",(Option.mapx.jobSummaryList~f:ServiceJobSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletjobSummaryList=(Option.map~f:ServiceJobSummaryList.of_xml)(Xml.childxml_arg0"jobSummaryList")inmake?nextToken?jobSummaryList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletjobSummaryList=field_mapjson__"jobSummaryList"ServiceJobSummaryList.of_jsoninmake?nextToken?jobSummaryList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of service jobs for a specified job queue."]moduleListServiceJobsRequest=structtypenonrect={jobQueue:String_.toption[@ocaml.doc"The name or ARN of the job queue with which to list service jobs."];jobStatus:ServiceJobStatus.toption[@ocaml.doc"The job status used to filter service jobs in the specified queue. If the filters parameter is specified, the jobStatus parameter is ignored and jobs with any status are returned. The exceptions are the SHARE_IDENTIFIER filter and QUOTA_SHARE_NAME filter, which can be used with jobStatus. If you don't specify a status, only RUNNING jobs are returned. The SHARE_IDENTIFIER filter or QUOTA_SHARE_NAME filter can be used with the jobStatus field to filter results."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by ListServiceJobs in paginated output. When this parameter is used, ListServiceJobs only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another ListServiceJobs request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then ListServiceJobs returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListServiceJobs request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."];filters:ListJobsFilterList.toption[@ocaml.doc"The filter to apply to the query. Only one filter can be used at a time. When the filter is used, jobStatus is ignored with the exception that SHARE_IDENTIFIER or QUOTA_SHARE_NAME and jobStatus can be used together. The results are sorted by the createdAt field, with the most recent jobs being first. The SHARE_IDENTIFIER or QUOTA_SHARE_NAME filter and the jobStatus field can be used together to filter results. JOB_NAME The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*), the filter matches any job name that begins with the string before the '*'. This corresponds to the jobName value. For example, test1 matches both Test1 and test1, and test1* matches both test1 and Test10. When the JOB_NAME filter is used, the results are grouped by the job name and version. BEFORE_CREATED_AT The value for the filter is the time that's before the job was created. This corresponds to the createdAt value. The value is a string representation of the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970. AFTER_CREATED_AT The value for the filter is the time that's after the job was created. This corresponds to the createdAt value. The value is a string representation of the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970. SHARE_IDENTIFIER The value for the filter is the fairshare scheduling share identifier. QUOTA_SHARE_NAME The value for the filter is the quota management share name."]}letmake?jobQueue=fun?jobStatus->fun?maxResults->fun?nextToken->fun?filters->fun()->{jobQueue;jobStatus;maxResults;nextToken;filters}letto_valuex=structure_to_value[("jobQueue",(Option.mapx.jobQueue~f:String_.to_value));("jobStatus",(Option.mapx.jobStatus~f:ServiceJobStatus.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value));("filters",(Option.mapx.filters~f:ListJobsFilterList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:ListJobsFilterList.of_xml)(Xml.childxml_arg0"filters")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletjobStatus=(Option.map~f:ServiceJobStatus.of_xml)(Xml.childxml_arg0"jobStatus")inletjobQueue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueue")inmake?filters?nextToken?maxResults?jobStatus?jobQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"filters"ListJobsFilterList.of_jsoninletnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletjobStatus=field_mapjson__"jobStatus"ServiceJobStatus.of_jsoninletjobQueue=field_mapjson__"jobQueue"String_.of_jsoninmake?filters?nextToken?maxResults?jobStatus?jobQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of service jobs for a specified job queue."]moduleListSchedulingPoliciesResponse=structtypenonrect={schedulingPolicies:SchedulingPolicyListingDetailList.toption[@ocaml.doc"A list of scheduling policies that match the request."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future ListSchedulingPolicies request. When the results of a ListSchedulingPolicies request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?schedulingPolicies=fun?nextToken->fun()->{schedulingPolicies;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("schedulingPolicies",(Option.mapx.schedulingPolicies~f:SchedulingPolicyListingDetailList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletschedulingPolicies=(Option.map~f:SchedulingPolicyListingDetailList.of_xml)(Xml.childxml_arg0"schedulingPolicies")inmake?nextToken?schedulingPolicies()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletschedulingPolicies=field_mapjson__"schedulingPolicies"SchedulingPolicyListingDetailList.of_jsoninmake?nextToken?schedulingPolicies()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch scheduling policies."]moduleListSchedulingPoliciesRequest=structtypenonrect={maxResults:Integer.toption[@ocaml.doc"The maximum number of results that's returned by ListSchedulingPolicies in paginated output. When this parameter is used, ListSchedulingPolicies only returns maxResults results in a single page and a nextToken response element. You can see the remaining results of the initial request by sending another ListSchedulingPolicies request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, ListSchedulingPolicies returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value that's returned from a previous paginated ListSchedulingPolicies request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for ListSchedulingPolicies."]moduleListQuotaSharesResponse=structtypenonrect={quotaShares:QuotaShareList.toption[@ocaml.doc"A list of quota shares that match the request."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future ListQuotaShares request. When the results of a ListQuotaShares request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?quotaShares=fun?nextToken->fun()->{quotaShares;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("quotaShares",(Option.mapx.quotaShares~f:QuotaShareList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletquotaShares=(Option.map~f:QuotaShareList.of_xml)(Xml.childxml_arg0"quotaShares")inmake?nextToken?quotaShares()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletquotaShares=field_mapjson__"quotaShares"QuotaShareList.of_jsoninmake?nextToken?quotaShares()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch quota shares associated with a job queue."]moduleListQuotaSharesRequest=structtypenonrect={jobQueue:String_.t[@ocaml.doc"The name or full Amazon Resource Name (ARN) of the job queue used to list quota shares."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by ListQuotaShares in paginated output. When this parameter is used, ListQuotaShares only returns maxResults results in a single page and a nextToken response element. You can see the remaining results of the initial request by sending another ListQuotaShares request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, ListQuotaShares returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value that's returned from a previous paginated ListQuotaShares request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letcontext_="ListQuotaSharesRequest"letmake?maxResults=fun?nextToken->fun~jobQueue->fun()->{maxResults;nextToken;jobQueue}letto_valuex=structure_to_value[("jobQueue",(Some(String_.to_valuex.jobQueue)));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inmake?nextToken?maxResults~jobQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninmake?nextToken?maxResults~jobQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch quota shares associated with a job queue."]moduleListJobsResponse=structtypenonrect={jobSummaryList:JobSummaryList.toption[@ocaml.doc"A list of job summaries that match the request."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future ListJobs request. When the results of a ListJobs request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobSummaryList=fun?nextToken->fun()->{jobSummaryList;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobSummaryList",(Option.mapx.jobSummaryList~f:JobSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletjobSummaryList=(Option.map~f:JobSummaryList.of_xml)(Xml.childxml_arg0"jobSummaryList")inmake?nextToken?jobSummaryList()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletjobSummaryList=field_mapjson__"jobSummaryList"JobSummaryList.of_jsoninmake?nextToken?jobSummaryList()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch jobs. You must specify only one of the following items: A job queue ID to return a list of jobs in that job queue A multi-node parallel job ID to return a list of nodes for that job An array job ID to return a list of the children for that job"]moduleListJobsRequest=structtypenonrect={jobQueue:String_.toption[@ocaml.doc"The name or full Amazon Resource Name (ARN) of the job queue used to list jobs."];arrayJobId:String_.toption[@ocaml.doc"The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the specified array."];multiNodeJobId:String_.toption[@ocaml.doc"The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with this parameter lists all nodes that are associated with the specified job."];jobStatus:JobStatus.toption[@ocaml.doc"The job status used to filter jobs in the specified queue. If the filters parameter is specified, the jobStatus parameter is ignored and jobs with any status are returned. The exception is the SHARE_IDENTIFIER filter and jobStatus can be used together. If you don't specify a status, only RUNNING jobs are returned. Array job parents are updated to PENDING when any child job is updated to RUNNABLE and remain in PENDING status while child jobs are running. To view these jobs, filter by PENDING status until all child jobs reach a terminal state."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by ListJobs in a paginated output. When this parameter is used, ListJobs returns up to maxResults results in a single page and a nextToken response element, if applicable. The remaining results of the initial request can be seen by sending another ListJobs request with the returned nextToken value. The following outlines key parameters and limitations: The minimum value is 1. When --job-status is used, Batch returns up to 1000 values. When --filters is used, Batch returns up to 100 values. If neither parameter is used, then ListJobs returns up to 1000 results (jobs that are in the RUNNING status) and a nextToken value, if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListJobs request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."];filters:ListJobsFilterList.toption[@ocaml.doc"The filter to apply to the query. Only one filter can be used at a time. When the filter is used, jobStatus is ignored with the exception that SHARE_IDENTIFIER and jobStatus can be used together. The filter doesn't apply to child jobs in an array or multi-node parallel (MNP) jobs. The results are sorted by the createdAt field, with the most recent jobs being first. The SHARE_IDENTIFIER filter and the jobStatus field can be used together to filter results. JOB_NAME The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*), the filter matches any job name that begins with the string before the '*'. This corresponds to the jobName value. For example, test1 matches both Test1 and test1, and test1* matches both test1 and Test10. When the JOB_NAME filter is used, the results are grouped by the job name and version. JOB_DEFINITION The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This corresponds to the jobDefinition value. The value is case sensitive. When the value for the filter is the job definition name, the results include all the jobs that used any revision of that job definition name. If the value ends with an asterisk (*), the filter matches any job definition name that begins with the string before the '*'. For example, jd1 matches only jd1, and jd1* matches both jd1 and jd1A. The version of the job definition that's used doesn't affect the sort order. When the JOB_DEFINITION filter is used and the ARN is used (which is in the form arn:$\\{Partition\\}:batch:$\\{Region\\}:$\\{Account\\}:job-definition/$\\{JobDefinitionName\\}:$\\{Revision\\}), the results include jobs that used the specified revision of the job definition. Asterisk (*) isn't supported when the ARN is used. BEFORE_CREATED_AT The value for the filter is the time that's before the job was created. This corresponds to the createdAt value. The value is a string representation of the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970. AFTER_CREATED_AT The value for the filter is the time that's after the job was created. This corresponds to the createdAt value. The value is a string representation of the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970. SHARE_IDENTIFIER The value for the filter is the fairshare scheduling share identifier."]}letmake?jobQueue=fun?arrayJobId->fun?multiNodeJobId->fun?jobStatus->fun?maxResults->fun?nextToken->fun?filters->fun()->{jobQueue;arrayJobId;multiNodeJobId;jobStatus;maxResults;nextToken;filters}letto_valuex=structure_to_value[("jobQueue",(Option.mapx.jobQueue~f:String_.to_value));("arrayJobId",(Option.mapx.arrayJobId~f:String_.to_value));("multiNodeJobId",(Option.mapx.multiNodeJobId~f:String_.to_value));("jobStatus",(Option.mapx.jobStatus~f:JobStatus.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value));("filters",(Option.mapx.filters~f:ListJobsFilterList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:ListJobsFilterList.of_xml)(Xml.childxml_arg0"filters")inletnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletjobStatus=(Option.map~f:JobStatus.of_xml)(Xml.childxml_arg0"jobStatus")inletmultiNodeJobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"multiNodeJobId")inletarrayJobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"arrayJobId")inletjobQueue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueue")inmake?filters?nextToken?maxResults?jobStatus?multiNodeJobId?arrayJobId?jobQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"filters"ListJobsFilterList.of_jsoninletnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletjobStatus=field_mapjson__"jobStatus"JobStatus.of_jsoninletmultiNodeJobId=field_mapjson__"multiNodeJobId"String_.of_jsoninletarrayJobId=field_mapjson__"arrayJobId"String_.of_jsoninletjobQueue=field_mapjson__"jobQueue"String_.of_jsoninmake?filters?nextToken?maxResults?jobStatus?multiNodeJobId?arrayJobId?jobQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for ListJobs."]moduleListJobsByConsumableResourceResponse=structtypenonrect={jobs:ListJobsByConsumableResourceSummaryList.toption[@ocaml.doc"The list of jobs that require the specified consumable resources."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future ListJobsByConsumableResource request. When the results of a ListJobsByConsumableResource request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobs=fun?nextToken->fun()->{jobs;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobs",(Option.mapx.jobs~f:ListJobsByConsumableResourceSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletjobs=(Option.map~f:ListJobsByConsumableResourceSummaryList.of_xml)(Xml.childxml_arg0"jobs")inmake?nextToken?jobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletjobs=field_mapjson__"jobs"ListJobsByConsumableResourceSummaryList.of_jsoninmake?nextToken?jobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch jobs that require a specific consumable resource."]moduleListJobsByConsumableResourceRequest=structtypenonrect={consumableResource:String_.t[@ocaml.doc"The name or ARN of the consumable resource."];filters:ListJobsByConsumableResourceFilterList.toption[@ocaml.doc"The filters to apply to the job list query. If used, only those jobs requiring the specified consumable resource (consumableResource) and that match the value of the filters are listed. The filter names and values can be: name: JOB_STATUS values: SUBMITTED | PENDING | RUNNABLE | STARTING | RUNNING | SUCCEEDED | FAILED name: JOB_NAME The values are case-insensitive matches for the job name. If a filter value ends with an asterisk (*), it matches any job name that begins with the string before the '*'."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by ListJobsByConsumableResource in paginated output. When this parameter is used, ListJobsByConsumableResource only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another ListJobsByConsumableResource request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then ListJobsByConsumableResource returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListJobsByConsumableResource request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letcontext_="ListJobsByConsumableResourceRequest"letmake?filters=fun?maxResults->fun?nextToken->fun~consumableResource->fun()->{filters;maxResults;nextToken;consumableResource}letto_valuex=structure_to_value[("consumableResource",(Some(String_.to_valuex.consumableResource)));("filters",(Option.mapx.filters~f:ListJobsByConsumableResourceFilterList.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletfilters=(Option.map~f:ListJobsByConsumableResourceFilterList.of_xml)(Xml.childxml_arg0"filters")inletconsumableResource=String_.of_xml(Xml.child_exn~context:context_xml_arg0"consumableResource")inmake?nextToken?maxResults?filters~consumableResource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletfilters=field_mapjson__"filters"ListJobsByConsumableResourceFilterList.of_jsoninletconsumableResource=field_map_exnjson__"consumableResource"String_.of_jsoninmake?nextToken?maxResults?filters~consumableResource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch jobs that require a specific consumable resource."]moduleListConsumableResourcesResponse=structtypenonrect={consumableResources:ConsumableResourceSummaryList.toption[@ocaml.doc"A list of consumable resources that match the request."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future ListConsumableResources request. When the results of a ListConsumableResources request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumableResources=fun?nextToken->fun()->{consumableResources;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("consumableResources",(Option.mapx.consumableResources~f:ConsumableResourceSummaryList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletconsumableResources=(Option.map~f:ConsumableResourceSummaryList.of_xml)(Xml.childxml_arg0"consumableResources")inmake?nextToken?consumableResources()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletconsumableResources=field_mapjson__"consumableResources"ConsumableResourceSummaryList.of_jsoninmake?nextToken?consumableResources()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch consumable resources."]moduleListConsumableResourcesRequest=structtypenonrect={filters:ListConsumableResourcesFilterList.toption[@ocaml.doc"The filters to apply to the consumable resource list query. If used, only those consumable resources that match the filter are listed. Filter names and values can be: name: CONSUMABLE_RESOURCE_NAME values: case-insensitive matches for the consumable resource name. If a filter value ends with an asterisk (*), it matches any consumable resource name that begins with the string before the '*'."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by ListConsumableResources in paginated output. When this parameter is used, ListConsumableResources only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another ListConsumableResources request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then ListConsumableResources returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated ListConsumableResources request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?filters=fun?maxResults->fun?nextToken->fun()->{filters;maxResults;nextToken}letto_valuex=structure_to_value[("filters",(Option.mapx.filters~f:ListConsumableResourcesFilterList.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletfilters=(Option.map~f:ListConsumableResourcesFilterList.of_xml)(Xml.childxml_arg0"filters")inmake?nextToken?maxResults?filters()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletfilters=field_mapjson__"filters"ListConsumableResourcesFilterList.of_jsoninmake?nextToken?maxResults?filters()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a list of Batch consumable resources."]moduleGetJobQueueSnapshotResponse=structtypenonrect={frontOfQueue:FrontOfQueueDetail.toption[@ocaml.doc"The list of the first 100 RUNNABLE jobs in each job queue. For first-in-first-out (FIFO) job queues, jobs are ordered based on their submission time. For job queues with an attached fair-share scheduling (FSS) or quota-share policy, jobs are ordered based on their job priority and share usage."];frontOfQuotaShares:FrontOfQuotaSharesDetail.toption[@ocaml.doc"The first RUNNABLE job in each quota share. Jobs are ordered based on their job priority and share usage."];queueUtilization:QueueSnapshotUtilizationDetail.toption[@ocaml.doc"The job queue's capacity utilization, including total usage and breakdown per given share."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?frontOfQueue=fun?frontOfQuotaShares->fun?queueUtilization->fun()->{frontOfQueue;frontOfQuotaShares;queueUtilization}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("frontOfQueue",(Option.mapx.frontOfQueue~f:FrontOfQueueDetail.to_value));("frontOfQuotaShares",(Option.mapx.frontOfQuotaShares~f:FrontOfQuotaSharesDetail.to_value));("queueUtilization",(Option.mapx.queueUtilization~f:QueueSnapshotUtilizationDetail.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letqueueUtilization=(Option.map~f:QueueSnapshotUtilizationDetail.of_xml)(Xml.childxml_arg0"queueUtilization")inletfrontOfQuotaShares=(Option.map~f:FrontOfQuotaSharesDetail.of_xml)(Xml.childxml_arg0"frontOfQuotaShares")inletfrontOfQueue=(Option.map~f:FrontOfQueueDetail.of_xml)(Xml.childxml_arg0"frontOfQueue")inmake?queueUtilization?frontOfQuotaShares?frontOfQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letqueueUtilization=field_mapjson__"queueUtilization"QueueSnapshotUtilizationDetail.of_jsoninletfrontOfQuotaShares=field_mapjson__"frontOfQuotaShares"FrontOfQuotaSharesDetail.of_jsoninletfrontOfQueue=field_mapjson__"frontOfQueue"FrontOfQueueDetail.of_jsoninmake?queueUtilization?frontOfQuotaShares?frontOfQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a snapshot of job queue state, including ordering of RUNNABLE jobs, as well as capacity utilization for already dispatched jobs. The first 100 RUNNABLE jobs in the job queue are listed in order of dispatch. For job queues with an attached quota-share policy, the first RUNNABLE job in each quota share is also listed. Capacity utilization for the job queue is provided, as well as break downs by share for job queues with attached fair-share or quota-share scheduling policies."]moduleGetJobQueueSnapshotRequest=structtypenonrect={jobQueue:String_.t[@ocaml.doc"The job queue\226\128\153s name or full queue Amazon Resource Name (ARN)."]}letcontext_="GetJobQueueSnapshotRequest"letmake~jobQueue=fun()->{jobQueue}letto_valuex=structure_to_value[("jobQueue",(Some(String_.to_valuex.jobQueue)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inmake~jobQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninmake~jobQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a snapshot of job queue state, including ordering of RUNNABLE jobs, as well as capacity utilization for already dispatched jobs. The first 100 RUNNABLE jobs in the job queue are listed in order of dispatch. For job queues with an attached quota-share policy, the first RUNNABLE job in each quota share is also listed. Capacity utilization for the job queue is provided, as well as break downs by share for job queues with attached fair-share or quota-share scheduling policies."]moduleDescribeServiceJobResponse=structtypenonrect={attempts:ServiceJobAttemptDetails.toption[@ocaml.doc"A list of job attempts associated with the service job."];capacityUsage:ServiceJobCapacityUsageDetailList.toption[@ocaml.doc"The configured capacity for the service job, such as the number of instances. The number of instances should be the same value as the serviceRequestPayload.InstanceCount field."];createdAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job was created."];isTerminated:Boolean.toption[@ocaml.doc"Indicates whether the service job has been terminated."];jobArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the service job."];jobId:String_.toption[@ocaml.doc"The job ID for the service job."];jobName:String_.toption[@ocaml.doc"The name of the service job."];jobQueue:String_.toption[@ocaml.doc"The ARN of the job queue that the service job is associated with."];latestAttempt:LatestServiceJobAttempt.toption[@ocaml.doc"The latest attempt associated with the service job."];retryStrategy:ServiceJobRetryStrategy.toption[@ocaml.doc"The retry strategy to use for failed service jobs that are submitted with this service job."];scheduledAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job was scheduled. This represents when the service job was dispatched to SageMaker and the service job transitioned to the SCHEDULED state."];schedulingPriority:Integer.toption[@ocaml.doc"The scheduling priority of the service job."];serviceRequestPayload:String_.toption[@ocaml.doc"The request, in JSON, for the service that the SubmitServiceJob operation is queueing."];serviceJobType:ServiceJobType.toption[@ocaml.doc"The type of service job. For SageMaker Training jobs, this value is SAGEMAKER_TRAINING."];shareIdentifier:String_.toption[@ocaml.doc"The share identifier for the service job. This is used for fair-share scheduling."];quotaShareName:String_.toption[@ocaml.doc"The name of the quota share that the service job is associated with."];preemptionConfiguration:ServiceJobPreemptionConfiguration.toption[@ocaml.doc"Specifies the service job behavior when preempted."];preemptionSummary:ServiceJobPreemptionSummary.toption[@ocaml.doc"Summarizes the preemptions of the service job. This field appears on a service job when it has been preempted."];startedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job was started."];status:ServiceJobStatus.toption[@ocaml.doc"The current status of the service job."];statusReason:String_.toption[@ocaml.doc"A short, human-readable string to provide more details for the current status of the service job."];stoppedAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the service job stopped running."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that are associated with the service job. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources."];timeoutConfig:ServiceJobTimeout.toption[@ocaml.doc"The timeout configuration for the service job."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?attempts=fun?capacityUsage->fun?createdAt->fun?isTerminated->fun?jobArn->fun?jobId->fun?jobName->fun?jobQueue->fun?latestAttempt->fun?retryStrategy->fun?scheduledAt->fun?schedulingPriority->fun?serviceRequestPayload->fun?serviceJobType->fun?shareIdentifier->fun?quotaShareName->fun?preemptionConfiguration->fun?preemptionSummary->fun?startedAt->fun?status->fun?statusReason->fun?stoppedAt->fun?tags->fun?timeoutConfig->fun()->{attempts;capacityUsage;createdAt;isTerminated;jobArn;jobId;jobName;jobQueue;latestAttempt;retryStrategy;scheduledAt;schedulingPriority;serviceRequestPayload;serviceJobType;shareIdentifier;quotaShareName;preemptionConfiguration;preemptionSummary;startedAt;status;statusReason;stoppedAt;tags;timeoutConfig}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("attempts",(Option.mapx.attempts~f:ServiceJobAttemptDetails.to_value));("capacityUsage",(Option.mapx.capacityUsage~f:ServiceJobCapacityUsageDetailList.to_value));("createdAt",(Option.mapx.createdAt~f:Long.to_value));("isTerminated",(Option.mapx.isTerminated~f:Boolean.to_value));("jobArn",(Option.mapx.jobArn~f:String_.to_value));("jobId",(Option.mapx.jobId~f:String_.to_value));("jobName",(Option.mapx.jobName~f:String_.to_value));("jobQueue",(Option.mapx.jobQueue~f:String_.to_value));("latestAttempt",(Option.mapx.latestAttempt~f:LatestServiceJobAttempt.to_value));("retryStrategy",(Option.mapx.retryStrategy~f:ServiceJobRetryStrategy.to_value));("scheduledAt",(Option.mapx.scheduledAt~f:Long.to_value));("schedulingPriority",(Option.mapx.schedulingPriority~f:Integer.to_value));("serviceRequestPayload",(Option.mapx.serviceRequestPayload~f:String_.to_value));("serviceJobType",(Option.mapx.serviceJobType~f:ServiceJobType.to_value));("shareIdentifier",(Option.mapx.shareIdentifier~f:String_.to_value));("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("preemptionConfiguration",(Option.mapx.preemptionConfiguration~f:ServiceJobPreemptionConfiguration.to_value));("preemptionSummary",(Option.mapx.preemptionSummary~f:ServiceJobPreemptionSummary.to_value));("startedAt",(Option.mapx.startedAt~f:Long.to_value));("status",(Option.mapx.status~f:ServiceJobStatus.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("stoppedAt",(Option.mapx.stoppedAt~f:Long.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("timeoutConfig",(Option.mapx.timeoutConfig~f:ServiceJobTimeout.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettimeoutConfig=(Option.map~f:ServiceJobTimeout.of_xml)(Xml.childxml_arg0"timeoutConfig")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletstoppedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"stoppedAt")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletstatus=(Option.map~f:ServiceJobStatus.of_xml)(Xml.childxml_arg0"status")inletstartedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"startedAt")inletpreemptionSummary=(Option.map~f:ServiceJobPreemptionSummary.of_xml)(Xml.childxml_arg0"preemptionSummary")inletpreemptionConfiguration=(Option.map~f:ServiceJobPreemptionConfiguration.of_xml)(Xml.childxml_arg0"preemptionConfiguration")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inletshareIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"shareIdentifier")inletserviceJobType=(Option.map~f:ServiceJobType.of_xml)(Xml.childxml_arg0"serviceJobType")inletserviceRequestPayload=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceRequestPayload")inletschedulingPriority=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"schedulingPriority")inletscheduledAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"scheduledAt")inletretryStrategy=(Option.map~f:ServiceJobRetryStrategy.of_xml)(Xml.childxml_arg0"retryStrategy")inletlatestAttempt=(Option.map~f:LatestServiceJobAttempt.of_xml)(Xml.childxml_arg0"latestAttempt")inletjobQueue=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueue")inletjobName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobName")inletjobId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobId")inletjobArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobArn")inletisTerminated=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"isTerminated")inletcreatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"createdAt")inletcapacityUsage=(Option.map~f:ServiceJobCapacityUsageDetailList.of_xml)(Xml.childxml_arg0"capacityUsage")inletattempts=(Option.map~f:ServiceJobAttemptDetails.of_xml)(Xml.childxml_arg0"attempts")inmake?timeoutConfig?tags?stoppedAt?statusReason?status?startedAt?preemptionSummary?preemptionConfiguration?quotaShareName?shareIdentifier?serviceJobType?serviceRequestPayload?schedulingPriority?scheduledAt?retryStrategy?latestAttempt?jobQueue?jobName?jobId?jobArn?isTerminated?createdAt?capacityUsage?attempts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettimeoutConfig=field_mapjson__"timeoutConfig"ServiceJobTimeout.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletstoppedAt=field_mapjson__"stoppedAt"Long.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletstatus=field_mapjson__"status"ServiceJobStatus.of_jsoninletstartedAt=field_mapjson__"startedAt"Long.of_jsoninletpreemptionSummary=field_mapjson__"preemptionSummary"ServiceJobPreemptionSummary.of_jsoninletpreemptionConfiguration=field_mapjson__"preemptionConfiguration"ServiceJobPreemptionConfiguration.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninletshareIdentifier=field_mapjson__"shareIdentifier"String_.of_jsoninletserviceJobType=field_mapjson__"serviceJobType"ServiceJobType.of_jsoninletserviceRequestPayload=field_mapjson__"serviceRequestPayload"String_.of_jsoninletschedulingPriority=field_mapjson__"schedulingPriority"Integer.of_jsoninletscheduledAt=field_mapjson__"scheduledAt"Long.of_jsoninletretryStrategy=field_mapjson__"retryStrategy"ServiceJobRetryStrategy.of_jsoninletlatestAttempt=field_mapjson__"latestAttempt"LatestServiceJobAttempt.of_jsoninletjobQueue=field_mapjson__"jobQueue"String_.of_jsoninletjobName=field_mapjson__"jobName"String_.of_jsoninletjobId=field_mapjson__"jobId"String_.of_jsoninletjobArn=field_mapjson__"jobArn"String_.of_jsoninletisTerminated=field_mapjson__"isTerminated"Boolean.of_jsoninletcreatedAt=field_mapjson__"createdAt"Long.of_jsoninletcapacityUsage=field_mapjson__"capacityUsage"ServiceJobCapacityUsageDetailList.of_jsoninletattempts=field_mapjson__"attempts"ServiceJobAttemptDetails.of_jsoninmake?timeoutConfig?tags?stoppedAt?statusReason?status?startedAt?preemptionSummary?preemptionConfiguration?quotaShareName?shareIdentifier?serviceJobType?serviceRequestPayload?schedulingPriority?scheduledAt?retryStrategy?latestAttempt?jobQueue?jobName?jobId?jobArn?isTerminated?createdAt?capacityUsage?attempts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a service job."]moduleDescribeServiceJobRequest=structtypenonrect={jobId:String_.t[@ocaml.doc"The job ID for the service job to describe."]}letcontext_="DescribeServiceJobRequest"letmake~jobId=fun()->{jobId}letto_valuex=structure_to_value[("jobId",(Some(String_.to_valuex.jobId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobId=field_map_exnjson__"jobId"String_.of_jsoninmake~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a service job."]moduleDescribeServiceEnvironmentsResponse=structtypenonrect={serviceEnvironments:ServiceEnvironmentDetailList.toption[@ocaml.doc"The list of service environments that match the request."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future DescribeServiceEnvironments request. When the results of a DescribeServiceEnvironments request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?serviceEnvironments=fun?nextToken->fun()->{serviceEnvironments;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("serviceEnvironments",(Option.mapx.serviceEnvironments~f:ServiceEnvironmentDetailList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletserviceEnvironments=(Option.map~f:ServiceEnvironmentDetailList.of_xml)(Xml.childxml_arg0"serviceEnvironments")inmake?nextToken?serviceEnvironments()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletserviceEnvironments=field_mapjson__"serviceEnvironments"ServiceEnvironmentDetailList.of_jsoninmake?nextToken?serviceEnvironments()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your service environments."]moduleDescribeServiceEnvironmentsRequest=structtypenonrect={serviceEnvironments:StringList.toption[@ocaml.doc"An array of service environment names or ARN entries."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by DescribeServiceEnvironments in paginated output. When this parameter is used, DescribeServiceEnvironments only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeServiceEnvironments request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then DescribeServiceEnvironments returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated DescribeServiceEnvironments request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?serviceEnvironments=fun?maxResults->fun?nextToken->fun()->{serviceEnvironments;maxResults;nextToken}letto_valuex=structure_to_value[("serviceEnvironments",(Option.mapx.serviceEnvironments~f:StringList.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletserviceEnvironments=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"serviceEnvironments")inmake?nextToken?maxResults?serviceEnvironments()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletserviceEnvironments=field_mapjson__"serviceEnvironments"StringList.of_jsoninmake?nextToken?maxResults?serviceEnvironments()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your service environments."]moduleDescribeSchedulingPoliciesResponse=structtypenonrect={schedulingPolicies:SchedulingPolicyDetailList.toption[@ocaml.doc"The list of scheduling policies."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?schedulingPolicies=fun()->{schedulingPolicies}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("schedulingPolicies",(Option.mapx.schedulingPolicies~f:SchedulingPolicyDetailList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letschedulingPolicies=(Option.map~f:SchedulingPolicyDetailList.of_xml)(Xml.childxml_arg0"schedulingPolicies")inmake?schedulingPolicies()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letschedulingPolicies=field_mapjson__"schedulingPolicies"SchedulingPolicyDetailList.of_jsoninmake?schedulingPolicies()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your scheduling policies."]moduleDescribeSchedulingPoliciesRequest=structtypenonrect={arns:StringList.t[@ocaml.doc"A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries."]}letcontext_="DescribeSchedulingPoliciesRequest"letmake~arns=fun()->{arns}letto_valuex=structure_to_value[("arns",(Some(StringList.to_valuex.arns)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarns=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"arns")inmake~arns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarns=field_map_exnjson__"arns"StringList.of_jsoninmake~arns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DescribeSchedulingPolicies."]moduleDescribeQuotaShareResponse=structtypenonrect={quotaShareName:String_.toption[@ocaml.doc"The name of the quota share."];quotaShareArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share."];jobQueueArn:String_.toption[@ocaml.doc"The ARN of the job queue associated with the quota share."];capacityLimits:QuotaShareCapacityLimits.toption[@ocaml.doc"A list that specifies the quantity and type of compute capacity allocated to the quota share."];resourceSharingConfiguration:QuotaShareResourceSharingConfiguration.toption[@ocaml.doc"Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity."];preemptionConfiguration:QuotaSharePreemptionConfiguration.toption[@ocaml.doc"Specifies the preemption behavior for jobs in a quota share."];state:QuotaShareState.toption[@ocaml.doc"The state of the quota share."];status:QuotaShareStatus.toption[@ocaml.doc"The current status of the quota share."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags applied to the quota share."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?quotaShareName=fun?quotaShareArn->fun?jobQueueArn->fun?capacityLimits->fun?resourceSharingConfiguration->fun?preemptionConfiguration->fun?state->fun?status->fun?tags->fun()->{quotaShareName;quotaShareArn;jobQueueArn;capacityLimits;resourceSharingConfiguration;preemptionConfiguration;state;status;tags}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("quotaShareArn",(Option.mapx.quotaShareArn~f:String_.to_value));("jobQueueArn",(Option.mapx.jobQueueArn~f:String_.to_value));("capacityLimits",(Option.mapx.capacityLimits~f:QuotaShareCapacityLimits.to_value));("resourceSharingConfiguration",(Option.mapx.resourceSharingConfiguration~f:QuotaShareResourceSharingConfiguration.to_value));("preemptionConfiguration",(Option.mapx.preemptionConfiguration~f:QuotaSharePreemptionConfiguration.to_value));("state",(Option.mapx.state~f:QuotaShareState.to_value));("status",(Option.mapx.status~f:QuotaShareStatus.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletstatus=(Option.map~f:QuotaShareStatus.of_xml)(Xml.childxml_arg0"status")inletstate=(Option.map~f:QuotaShareState.of_xml)(Xml.childxml_arg0"state")inletpreemptionConfiguration=(Option.map~f:QuotaSharePreemptionConfiguration.of_xml)(Xml.childxml_arg0"preemptionConfiguration")inletresourceSharingConfiguration=(Option.map~f:QuotaShareResourceSharingConfiguration.of_xml)(Xml.childxml_arg0"resourceSharingConfiguration")inletcapacityLimits=(Option.map~f:QuotaShareCapacityLimits.of_xml)(Xml.childxml_arg0"capacityLimits")inletjobQueueArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueArn")inletquotaShareArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareArn")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inmake?tags?status?state?preemptionConfiguration?resourceSharingConfiguration?capacityLimits?jobQueueArn?quotaShareArn?quotaShareName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletstatus=field_mapjson__"status"QuotaShareStatus.of_jsoninletstate=field_mapjson__"state"QuotaShareState.of_jsoninletpreemptionConfiguration=field_mapjson__"preemptionConfiguration"QuotaSharePreemptionConfiguration.of_jsoninletresourceSharingConfiguration=field_mapjson__"resourceSharingConfiguration"QuotaShareResourceSharingConfiguration.of_jsoninletcapacityLimits=field_mapjson__"capacityLimits"QuotaShareCapacityLimits.of_jsoninletjobQueueArn=field_mapjson__"jobQueueArn"String_.of_jsoninletquotaShareArn=field_mapjson__"quotaShareArn"String_.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninmake?tags?status?state?preemptionConfiguration?resourceSharingConfiguration?capacityLimits?jobQueueArn?quotaShareArn?quotaShareName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of the specified quota share."]moduleDescribeQuotaShareRequest=structtypenonrect={quotaShareArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share."]}letcontext_="DescribeQuotaShareRequest"letmake~quotaShareArn=fun()->{quotaShareArn}letto_valuex=structure_to_value[("quotaShareArn",(Some(String_.to_valuex.quotaShareArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaShareArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"quotaShareArn")inmake~quotaShareArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaShareArn=field_map_exnjson__"quotaShareArn"String_.of_jsoninmake~quotaShareArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of the specified quota share."]moduleDescribeJobsResponse=structtypenonrect={jobs:JobDetailList.toption[@ocaml.doc"The list of jobs."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobs=fun()->{jobs}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobs",(Option.mapx.jobs~f:JobDetailList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobs=(Option.map~f:JobDetailList.of_xml)(Xml.childxml_arg0"jobs")inmake?jobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobs=field_mapjson__"jobs"JobDetailList.of_jsoninmake?jobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a list of Batch jobs."]moduleDescribeJobsRequest=structtypenonrect={jobs:StringList.t[@ocaml.doc"A list of up to 100 job IDs."]}letcontext_="DescribeJobsRequest"letmake~jobs=fun()->{jobs}letto_valuex=structure_to_value[("jobs",(Some(StringList.to_valuex.jobs)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobs=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"jobs")inmake~jobs()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobs=field_map_exnjson__"jobs"StringList.of_jsoninmake~jobs()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DescribeJobs."]moduleDescribeJobQueuesResponse=structtypenonrect={jobQueues:JobQueueDetailList.toption[@ocaml.doc"The list of job queues."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future DescribeJobQueues request. When the results of a DescribeJobQueues request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobQueues=fun?nextToken->fun()->{jobQueues;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobQueues",(Option.mapx.jobQueues~f:JobQueueDetailList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletjobQueues=(Option.map~f:JobQueueDetailList.of_xml)(Xml.childxml_arg0"jobQueues")inmake?nextToken?jobQueues()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletjobQueues=field_mapjson__"jobQueues"JobQueueDetailList.of_jsoninmake?nextToken?jobQueues()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your job queues."]moduleDescribeJobQueuesRequest=structtypenonrect={jobQueues:StringList.toption[@ocaml.doc"A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by DescribeJobQueues in paginated output. When this parameter is used, DescribeJobQueues only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeJobQueues request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then DescribeJobQueues returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated DescribeJobQueues request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?jobQueues=fun?maxResults->fun?nextToken->fun()->{jobQueues;maxResults;nextToken}letto_valuex=structure_to_value[("jobQueues",(Option.mapx.jobQueues~f:StringList.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletjobQueues=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"jobQueues")inmake?nextToken?maxResults?jobQueues()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletjobQueues=field_mapjson__"jobQueues"StringList.of_jsoninmake?nextToken?maxResults?jobQueues()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DescribeJobQueues."]moduleDescribeJobDefinitionsResponse=structtypenonrect={jobDefinitions:JobDefinitionList.toption[@ocaml.doc"The list of job definitions."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future DescribeJobDefinitions request. When the results of a DescribeJobDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobDefinitions=fun?nextToken->fun()->{jobDefinitions;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobDefinitions",(Option.mapx.jobDefinitions~f:JobDefinitionList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletjobDefinitions=(Option.map~f:JobDefinitionList.of_xml)(Xml.childxml_arg0"jobDefinitions")inmake?nextToken?jobDefinitions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletjobDefinitions=field_mapjson__"jobDefinitions"JobDefinitionList.of_jsoninmake?nextToken?jobDefinitions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes a list of job definitions. You can specify a status (such as ACTIVE) to only return job definitions that match that status."]moduleDescribeJobDefinitionsRequest=structtypenonrect={jobDefinitions:StringList.toption[@ocaml.doc"A list of up to 100 job definitions. Each entry in the list can either be an ARN in the format arn:aws:batch:$\\{Region\\}:$\\{Account\\}:job-definition/$\\{JobDefinitionName\\}:$\\{Revision\\} or a short version using the form $\\{JobDefinitionName\\}:$\\{Revision\\}. This parameter can't be used with other parameters."];maxResults:Integer.toption[@ocaml.doc"The maximum number of results returned by DescribeJobDefinitions in paginated output. When this parameter is used, DescribeJobDefinitions only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeJobDefinitions request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then DescribeJobDefinitions returns up to 100 results and a nextToken value if applicable."];jobDefinitionName:String_.toption[@ocaml.doc"The name of the job definition to describe."];status:String_.toption[@ocaml.doc"The status used to filter job definitions."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated DescribeJobDefinitions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?jobDefinitions=fun?maxResults->fun?jobDefinitionName->fun?status->fun?nextToken->fun()->{jobDefinitions;maxResults;jobDefinitionName;status;nextToken}letto_valuex=structure_to_value[("jobDefinitions",(Option.mapx.jobDefinitions~f:StringList.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("jobDefinitionName",(Option.mapx.jobDefinitionName~f:String_.to_value));("status",(Option.mapx.status~f:String_.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletstatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"status")inletjobDefinitionName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobDefinitionName")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletjobDefinitions=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"jobDefinitions")inmake?nextToken?status?jobDefinitionName?maxResults?jobDefinitions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletstatus=field_mapjson__"status"String_.of_jsoninletjobDefinitionName=field_mapjson__"jobDefinitionName"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletjobDefinitions=field_mapjson__"jobDefinitions"StringList.of_jsoninmake?nextToken?status?jobDefinitionName?maxResults?jobDefinitions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DescribeJobDefinitions."]moduleDescribeConsumableResourceResponse=structtypenonrect={consumableResourceName:String_.toption[@ocaml.doc"The name of the consumable resource."];consumableResourceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the consumable resource."];totalQuantity:Long.toption[@ocaml.doc"The total amount of the consumable resource that is available."];inUseQuantity:Long.toption[@ocaml.doc"The amount of the consumable resource that is currently in use."];availableQuantity:Long.toption[@ocaml.doc"The amount of the consumable resource that is currently available to use."];resourceType:String_.toption[@ocaml.doc"Indicates whether the resource is available to be re-used after a job completes. Can be one of: REPLENISHABLE NON_REPLENISHABLE"];createdAt:Long.toption[@ocaml.doc"The Unix timestamp (in milliseconds) for when the consumable resource was created."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the consumable resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumableResourceName=fun?consumableResourceArn->fun?totalQuantity->fun?inUseQuantity->fun?availableQuantity->fun?resourceType->fun?createdAt->fun?tags->fun()->{consumableResourceName;consumableResourceArn;totalQuantity;inUseQuantity;availableQuantity;resourceType;createdAt;tags}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("consumableResourceName",(Option.mapx.consumableResourceName~f:String_.to_value));("consumableResourceArn",(Option.mapx.consumableResourceArn~f:String_.to_value));("totalQuantity",(Option.mapx.totalQuantity~f:Long.to_value));("inUseQuantity",(Option.mapx.inUseQuantity~f:Long.to_value));("availableQuantity",(Option.mapx.availableQuantity~f:Long.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:Long.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletcreatedAt=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"createdAt")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inletavailableQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"availableQuantity")inletinUseQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"inUseQuantity")inlettotalQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"totalQuantity")inletconsumableResourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceArn")inletconsumableResourceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceName")inmake?tags?createdAt?resourceType?availableQuantity?inUseQuantity?totalQuantity?consumableResourceArn?consumableResourceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletcreatedAt=field_mapjson__"createdAt"Long.of_jsoninletresourceType=field_mapjson__"resourceType"String_.of_jsoninletavailableQuantity=field_mapjson__"availableQuantity"Long.of_jsoninletinUseQuantity=field_mapjson__"inUseQuantity"Long.of_jsoninlettotalQuantity=field_mapjson__"totalQuantity"Long.of_jsoninletconsumableResourceArn=field_mapjson__"consumableResourceArn"String_.of_jsoninletconsumableResourceName=field_mapjson__"consumableResourceName"String_.of_jsoninmake?tags?createdAt?resourceType?availableQuantity?inUseQuantity?totalQuantity?consumableResourceArn?consumableResourceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of the specified consumable resource."]moduleDescribeConsumableResourceRequest=structtypenonrect={consumableResource:String_.t[@ocaml.doc"The name or ARN of the consumable resource whose description will be returned."]}letcontext_="DescribeConsumableResourceRequest"letmake~consumableResource=fun()->{consumableResource}letto_valuex=structure_to_value[("consumableResource",(Some(String_.to_valuex.consumableResource)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResource=String_.of_xml(Xml.child_exn~context:context_xml_arg0"consumableResource")inmake~consumableResource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResource=field_map_exnjson__"consumableResource"String_.of_jsoninmake~consumableResource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns a description of the specified consumable resource."]moduleDescribeComputeEnvironmentsResponse=structtypenonrect={computeEnvironments:ComputeEnvironmentDetailList.toption[@ocaml.doc"The list of compute environments."];nextToken:String_.toption[@ocaml.doc"The nextToken value to include in a future DescribeComputeEnvironments request. When the results of a DescribeComputeEnvironments request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?computeEnvironments=fun?nextToken->fun()->{computeEnvironments;nextToken}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("computeEnvironments",(Option.mapx.computeEnvironments~f:ComputeEnvironmentDetailList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletcomputeEnvironments=(Option.map~f:ComputeEnvironmentDetailList.of_xml)(Xml.childxml_arg0"computeEnvironments")inmake?nextToken?computeEnvironments()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletcomputeEnvironments=field_mapjson__"computeEnvironments"ComputeEnvironmentDetailList.of_jsoninmake?nextToken?computeEnvironments()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one or more of your compute environments. If you're using an unmanaged compute environment, you can use the DescribeComputeEnvironment operation to determine the ecsClusterArn that you launch your Amazon ECS container instances into."]moduleDescribeComputeEnvironmentsRequest=structtypenonrect={computeEnvironments:StringList.toption[@ocaml.doc"A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries."];maxResults:Integer.toption[@ocaml.doc"The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output. When this parameter is used, DescribeComputeEnvironments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeComputeEnvironments request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then DescribeComputeEnvironments returns up to 100 results and a nextToken value if applicable."];nextToken:String_.toption[@ocaml.doc"The nextToken value returned from a previous paginated DescribeComputeEnvironments request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."]}letmake?computeEnvironments=fun?maxResults->fun?nextToken->fun()->{computeEnvironments;maxResults;nextToken}letto_valuex=structure_to_value[("computeEnvironments",(Option.mapx.computeEnvironments~f:StringList.to_value));("maxResults",(Option.mapx.maxResults~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"maxResults")inletcomputeEnvironments=(Option.map~f:StringList.of_xml)(Xml.childxml_arg0"computeEnvironments")inmake?nextToken?maxResults?computeEnvironments()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"Integer.of_jsoninletcomputeEnvironments=field_mapjson__"computeEnvironments"StringList.of_jsoninmake?nextToken?maxResults?computeEnvironments()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DescribeComputeEnvironments."]moduleDeregisterJobDefinitionResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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"Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days."]moduleDeregisterJobDefinitionRequest=structtypenonrect={jobDefinition:String_.t[@ocaml.doc"The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister."]}letcontext_="DeregisterJobDefinitionRequest"letmake~jobDefinition=fun()->{jobDefinition}letto_valuex=structure_to_value[("jobDefinition",(Some(String_.to_valuex.jobDefinition)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobDefinition=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobDefinition")inmake~jobDefinition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobDefinition=field_map_exnjson__"jobDefinition"String_.of_jsoninmake~jobDefinition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days."]moduleDeleteServiceEnvironmentResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a Service environment. Before you can delete a service environment, you must first set its state to DISABLED with the UpdateServiceEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation."]moduleDeleteServiceEnvironmentRequest=structtypenonrect={serviceEnvironment:String_.t[@ocaml.doc"The name or ARN of the service environment to delete."]}letcontext_="DeleteServiceEnvironmentRequest"letmake~serviceEnvironment=fun()->{serviceEnvironment}letto_valuex=structure_to_value[("serviceEnvironment",(Some(String_.to_valuex.serviceEnvironment)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceEnvironment=String_.of_xml(Xml.child_exn~context:context_xml_arg0"serviceEnvironment")inmake~serviceEnvironment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceEnvironment=field_map_exnjson__"serviceEnvironment"String_.of_jsoninmake~serviceEnvironment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a Service environment. Before you can delete a service environment, you must first set its state to DISABLED with the UpdateServiceEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation."]moduleDeleteSchedulingPolicyResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified scheduling policy. You can't delete a scheduling policy that's used in any job queues."]moduleDeleteSchedulingPolicyRequest=structtypenonrect={arn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduling policy to delete."]}letcontext_="DeleteSchedulingPolicyRequest"letmake~arn=fun()->{arn}letto_valuex=structure_to_value[("arn",(Some(String_.to_valuex.arn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"arn")inmake~arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_map_exnjson__"arn"String_.of_jsoninmake~arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DeleteSchedulingPolicy."]moduleDeleteQuotaShareResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified quota share. You must first disable submissions for the share by updating the state to DISABLED using the UpdateQuotaShare operation. All jobs in the share are eventually terminated when you delete a quota share."]moduleDeleteQuotaShareRequest=structtypenonrect={quotaShareArn:String_.t[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share."]}letcontext_="DeleteQuotaShareRequest"letmake~quotaShareArn=fun()->{quotaShareArn}letto_valuex=structure_to_value[("quotaShareArn",(Some(String_.to_valuex.quotaShareArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaShareArn=String_.of_xml(Xml.child_exn~context:context_xml_arg0"quotaShareArn")inmake~quotaShareArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaShareArn=field_map_exnjson__"quotaShareArn"String_.of_jsoninmake~quotaShareArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified quota share. You must first disable submissions for the share by updating the state to DISABLED using the UpdateQuotaShare operation. All jobs in the share are eventually terminated when you delete a quota share."]moduleDeleteJobQueueResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation. All jobs in the queue are eventually terminated when you delete a job queue. It's not necessary to disassociate compute environments from a queue before submitting a DeleteJobQueue request."]moduleDeleteJobQueueRequest=structtypenonrect={jobQueue:String_.t[@ocaml.doc"The short name or full Amazon Resource Name (ARN) of the queue to delete."]}letcontext_="DeleteJobQueueRequest"letmake~jobQueue=fun()->{jobQueue}letto_valuex=structure_to_value[("jobQueue",(Some(String_.to_valuex.jobQueue)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inmake~jobQueue()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninmake~jobQueue()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DeleteJobQueue."]moduleDeleteConsumableResourceResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified consumable resource."]moduleDeleteConsumableResourceRequest=structtypenonrect={consumableResource:String_.t[@ocaml.doc"The name or ARN of the consumable resource that will be deleted."]}letcontext_="DeleteConsumableResourceRequest"letmake~consumableResource=fun()->{consumableResource}letto_valuex=structure_to_value[("consumableResource",(Some(String_.to_valuex.consumableResource)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResource=String_.of_xml(Xml.child_exn~context:context_xml_arg0"consumableResource")inmake~consumableResource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResource=field_map_exnjson__"consumableResource"String_.of_jsoninmake~consumableResource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes the specified consumable resource."]moduleDeleteComputeEnvironmentResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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 Batch compute environment. Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation. Compute environments that use Fargate resources must terminate all active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute environment enters an invalid state."]moduleDeleteComputeEnvironmentRequest=structtypenonrect={computeEnvironment:String_.t[@ocaml.doc"The name or Amazon Resource Name (ARN) of the compute environment to delete."]}letcontext_="DeleteComputeEnvironmentRequest"letmake~computeEnvironment=fun()->{computeEnvironment}letto_valuex=structure_to_value[("computeEnvironment",(Some(String_.to_valuex.computeEnvironment)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomputeEnvironment=String_.of_xml(Xml.child_exn~context:context_xml_arg0"computeEnvironment")inmake~computeEnvironment()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomputeEnvironment=field_map_exnjson__"computeEnvironment"String_.of_jsoninmake~computeEnvironment()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for DeleteComputeEnvironment."]moduleCreateServiceEnvironmentResponse=structtypenonrect={serviceEnvironmentName:String_.toption[@ocaml.doc"The name of the service environment."];serviceEnvironmentArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the service environment."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?serviceEnvironmentName=fun?serviceEnvironmentArn->fun()->{serviceEnvironmentName;serviceEnvironmentArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("serviceEnvironmentName",(Option.mapx.serviceEnvironmentName~f:String_.to_value));("serviceEnvironmentArn",(Option.mapx.serviceEnvironmentArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceEnvironmentArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceEnvironmentArn")inletserviceEnvironmentName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceEnvironmentName")inmake?serviceEnvironmentArn?serviceEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceEnvironmentArn=field_mapjson__"serviceEnvironmentArn"String_.of_jsoninletserviceEnvironmentName=field_mapjson__"serviceEnvironmentName"String_.of_jsoninmake?serviceEnvironmentArn?serviceEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a service environment for running service jobs. Service environments define capacity limits for specific service types such as SageMaker Training jobs."]moduleCreateServiceEnvironmentRequest=structtypenonrect={serviceEnvironmentName:String_.t[@ocaml.doc"The name for the service environment. It can be up to 128 characters long and can contain letters, numbers, hyphens (-), and underscores (_)."];serviceEnvironmentType:ServiceEnvironmentType.t[@ocaml.doc"The type of service environment. For SageMaker Training jobs, specify SAGEMAKER_TRAINING."];state:ServiceEnvironmentState.toption[@ocaml.doc"The state of the service environment. Valid values are ENABLED and DISABLED. The default value is ENABLED."];capacityLimits:CapacityLimits.t[@ocaml.doc"The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the service environment to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources."]}letcontext_="CreateServiceEnvironmentRequest"letmake?state=fun?tags->fun~serviceEnvironmentName->fun~serviceEnvironmentType->fun~capacityLimits->fun()->{state;tags;serviceEnvironmentName;serviceEnvironmentType;capacityLimits}letto_valuex=structure_to_value[("serviceEnvironmentName",(Some(String_.to_valuex.serviceEnvironmentName)));("serviceEnvironmentType",(Some(ServiceEnvironmentType.to_valuex.serviceEnvironmentType)));("state",(Option.mapx.state~f:ServiceEnvironmentState.to_value));("capacityLimits",(Some(CapacityLimits.to_valuex.capacityLimits)));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletcapacityLimits=CapacityLimits.of_xml(Xml.child_exn~context:context_xml_arg0"capacityLimits")inletstate=(Option.map~f:ServiceEnvironmentState.of_xml)(Xml.childxml_arg0"state")inletserviceEnvironmentType=ServiceEnvironmentType.of_xml(Xml.child_exn~context:context_xml_arg0"serviceEnvironmentType")inletserviceEnvironmentName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"serviceEnvironmentName")inmake?tags~capacityLimits?state~serviceEnvironmentType~serviceEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletcapacityLimits=field_map_exnjson__"capacityLimits"CapacityLimits.of_jsoninletstate=field_mapjson__"state"ServiceEnvironmentState.of_jsoninletserviceEnvironmentType=field_map_exnjson__"serviceEnvironmentType"ServiceEnvironmentType.of_jsoninletserviceEnvironmentName=field_map_exnjson__"serviceEnvironmentName"String_.of_jsoninmake?tags~capacityLimits?state~serviceEnvironmentType~serviceEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a service environment for running service jobs. Service environments define capacity limits for specific service types such as SageMaker Training jobs."]moduleCreateSchedulingPolicyResponse=structtypenonrect={name:String_.toption[@ocaml.doc"The name of the scheduling policy."];arn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?name=fun?arn->fun()->{name;arn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("arn",(Option.mapx.arn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letarn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"arn")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?arn?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letarn=field_mapjson__"arn"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?arn?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch scheduling policy."]moduleCreateSchedulingPolicyRequest=structtypenonrect={name:String_.t[@ocaml.doc"The name of the fair-share scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];quotaSharePolicy:QuotaSharePolicy.toption[@ocaml.doc"The quota share scheduling policy details. Only one of fairsharePolicy or quotaSharePolicy can be set. Once set, this policy type cannot be removed or changed to a fairSharePolicy."];fairsharePolicy:FairsharePolicy.toption[@ocaml.doc"The fair-share scheduling policy details. Only one of fairsharePolicy or quotaSharePolicy can be set. Once set, this policy type cannot be removed or changed to a quotaSharePolicy."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General Reference. These tags can be updated or removed using the TagResource and UntagResource API operations."]}letcontext_="CreateSchedulingPolicyRequest"letmake?quotaSharePolicy=fun?fairsharePolicy->fun?tags->fun~name->fun()->{quotaSharePolicy;fairsharePolicy;tags;name}letto_valuex=structure_to_value[("name",(Some(String_.to_valuex.name)));("quotaSharePolicy",(Option.mapx.quotaSharePolicy~f:QuotaSharePolicy.to_value));("fairsharePolicy",(Option.mapx.fairsharePolicy~f:FairsharePolicy.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletfairsharePolicy=(Option.map~f:FairsharePolicy.of_xml)(Xml.childxml_arg0"fairsharePolicy")inletquotaSharePolicy=(Option.map~f:QuotaSharePolicy.of_xml)(Xml.childxml_arg0"quotaSharePolicy")inletname=String_.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?tags?fairsharePolicy?quotaSharePolicy~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletfairsharePolicy=field_mapjson__"fairsharePolicy"FairsharePolicy.of_jsoninletquotaSharePolicy=field_mapjson__"quotaSharePolicy"QuotaSharePolicy.of_jsoninletname=field_map_exnjson__"name"String_.of_jsoninmake?tags?fairsharePolicy?quotaSharePolicy~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for CreateSchedulingPolicy."]moduleCreateQuotaShareResponse=structtypenonrect={quotaShareName:String_.toption[@ocaml.doc"The name of the quota share."];quotaShareArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the quota share."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?quotaShareName=fun?quotaShareArn->fun()->{quotaShareName;quotaShareArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("quotaShareName",(Option.mapx.quotaShareName~f:String_.to_value));("quotaShareArn",(Option.mapx.quotaShareArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letquotaShareArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareArn")inletquotaShareName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"quotaShareName")inmake?quotaShareArn?quotaShareName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letquotaShareArn=field_mapjson__"quotaShareArn"String_.of_jsoninletquotaShareName=field_mapjson__"quotaShareName"String_.of_jsoninmake?quotaShareArn?quotaShareName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch quota share. Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits."]moduleCreateQuotaShareRequest=structtypenonrect={quotaShareName:String_.t[@ocaml.doc"The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];jobQueue:String_.t[@ocaml.doc"The Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the VALID state before you can associate it with a quota share."];capacityLimits:QuotaShareCapacityLimits.t[@ocaml.doc"A list that specifies the quantity and type of compute capacity allocated to the quota share."];resourceSharingConfiguration:QuotaShareResourceSharingConfiguration.t[@ocaml.doc"Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity."];preemptionConfiguration:QuotaSharePreemptionConfiguration.t[@ocaml.doc"Specifies the preemption behavior for jobs in a quota share."];state:QuotaShareState.toption[@ocaml.doc"The state of the quota share. If the quota share is ENABLED, it is able to accept jobs. If the quota share is DISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state is ENABLED."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide."]}letcontext_="CreateQuotaShareRequest"letmake?state=fun?tags->fun~quotaShareName->fun~jobQueue->fun~capacityLimits->fun~resourceSharingConfiguration->fun~preemptionConfiguration->fun()->{state;tags;quotaShareName;jobQueue;capacityLimits;resourceSharingConfiguration;preemptionConfiguration}letto_valuex=structure_to_value[("quotaShareName",(Some(String_.to_valuex.quotaShareName)));("jobQueue",(Some(String_.to_valuex.jobQueue)));("capacityLimits",(Some(QuotaShareCapacityLimits.to_valuex.capacityLimits)));("resourceSharingConfiguration",(Some(QuotaShareResourceSharingConfiguration.to_valuex.resourceSharingConfiguration)));("preemptionConfiguration",(Some(QuotaSharePreemptionConfiguration.to_valuex.preemptionConfiguration)));("state",(Option.mapx.state~f:QuotaShareState.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletstate=(Option.map~f:QuotaShareState.of_xml)(Xml.childxml_arg0"state")inletpreemptionConfiguration=QuotaSharePreemptionConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"preemptionConfiguration")inletresourceSharingConfiguration=QuotaShareResourceSharingConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"resourceSharingConfiguration")inletcapacityLimits=QuotaShareCapacityLimits.of_xml(Xml.child_exn~context:context_xml_arg0"capacityLimits")inletjobQueue=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueue")inletquotaShareName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"quotaShareName")inmake?tags?state~preemptionConfiguration~resourceSharingConfiguration~capacityLimits~jobQueue~quotaShareName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletstate=field_mapjson__"state"QuotaShareState.of_jsoninletpreemptionConfiguration=field_map_exnjson__"preemptionConfiguration"QuotaSharePreemptionConfiguration.of_jsoninletresourceSharingConfiguration=field_map_exnjson__"resourceSharingConfiguration"QuotaShareResourceSharingConfiguration.of_jsoninletcapacityLimits=field_map_exnjson__"capacityLimits"QuotaShareCapacityLimits.of_jsoninletjobQueue=field_map_exnjson__"jobQueue"String_.of_jsoninletquotaShareName=field_map_exnjson__"quotaShareName"String_.of_jsoninmake?tags?state~preemptionConfiguration~resourceSharingConfiguration~capacityLimits~jobQueue~quotaShareName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch quota share. Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits."]moduleCreateJobQueueResponse=structtypenonrect={jobQueueName:String_.toption[@ocaml.doc"The name of the job queue."];jobQueueArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the job queue."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?jobQueueName=fun?jobQueueArn->fun()->{jobQueueName;jobQueueArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("jobQueueName",(Option.mapx.jobQueueName~f:String_.to_value));("jobQueueArn",(Option.mapx.jobQueueArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobQueueArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueArn")inletjobQueueName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"jobQueueName")inmake?jobQueueArn?jobQueueName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobQueueArn=field_mapjson__"jobQueueArn"String_.of_jsoninletjobQueueName=field_mapjson__"jobQueueName"String_.of_jsoninmake?jobQueueArn?jobQueueName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments. You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment."]moduleCreateJobQueueRequest=structtypenonrect={jobQueueName:String_.t[@ocaml.doc"The name of the job queue. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];state:JQState.toption[@ocaml.doc"The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can finish."];schedulingPolicyArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the fair-share scheduling policy. Job queues that don't have a fair-share scheduling policy are scheduled in a first-in, first-out (FIFO) model. After a job queue has a fair-share scheduling policy, it can be replaced but can't be removed. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . An example is aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy. A job queue without a fair-share scheduling policy is scheduled as a FIFO job queue and can't have a fair-share scheduling policy added. Jobs queues with a fair-share scheduling policy can have a maximum of 500 active share identifiers. When the limit has been reached, submissions of any jobs that add a new share identifier fail."];priority:Integer.t[@ocaml.doc"The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed."];computeEnvironmentOrder:ComputeEnvironmentOrders.toption[@ocaml.doc"The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment runs a specific job. Compute environments must be in the VALID state before you can associate them with a job queue. You can associate up to three compute environments with a job queue. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed. All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue."];serviceEnvironmentOrder:ServiceEnvironmentOrders.toption[@ocaml.doc"A list of service environments that this job queue can use to allocate jobs. All serviceEnvironments must have the same type. A job queue can't have both a serviceEnvironmentOrder and a computeEnvironmentOrder field."];jobQueueType:JobQueueType.toption[@ocaml.doc"The type of job queue. For service jobs that run on SageMaker Training, this value is SAGEMAKER_TRAINING. For regular container jobs, this value is EKS, ECS, or ECS_FARGATE depending on the compute environment."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide."];jobStateTimeLimitActions:JobStateTimeLimitActions.toption[@ocaml.doc"The set of actions that Batch performs on jobs that remain at the head of the job queue in the specified state longer than specified times. Batch will perform each action after maxTimeSeconds has passed. (Note: The minimum value for maxTimeSeconds is 600 (10 minutes) and its maximum value is 86,400 (24 hours).)"]}letcontext_="CreateJobQueueRequest"letmake?state=fun?schedulingPolicyArn->fun?computeEnvironmentOrder->fun?serviceEnvironmentOrder->fun?jobQueueType->fun?tags->fun?jobStateTimeLimitActions->fun~jobQueueName->fun~priority->fun()->{state;schedulingPolicyArn;computeEnvironmentOrder;serviceEnvironmentOrder;jobQueueType;tags;jobStateTimeLimitActions;jobQueueName;priority}letto_valuex=structure_to_value[("jobQueueName",(Some(String_.to_valuex.jobQueueName)));("state",(Option.mapx.state~f:JQState.to_value));("schedulingPolicyArn",(Option.mapx.schedulingPolicyArn~f:String_.to_value));("priority",(Some(Integer.to_valuex.priority)));("computeEnvironmentOrder",(Option.mapx.computeEnvironmentOrder~f:ComputeEnvironmentOrders.to_value));("serviceEnvironmentOrder",(Option.mapx.serviceEnvironmentOrder~f:ServiceEnvironmentOrders.to_value));("jobQueueType",(Option.mapx.jobQueueType~f:JobQueueType.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("jobStateTimeLimitActions",(Option.mapx.jobStateTimeLimitActions~f:JobStateTimeLimitActions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjobStateTimeLimitActions=(Option.map~f:JobStateTimeLimitActions.of_xml)(Xml.childxml_arg0"jobStateTimeLimitActions")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletjobQueueType=(Option.map~f:JobQueueType.of_xml)(Xml.childxml_arg0"jobQueueType")inletserviceEnvironmentOrder=(Option.map~f:ServiceEnvironmentOrders.of_xml)(Xml.childxml_arg0"serviceEnvironmentOrder")inletcomputeEnvironmentOrder=(Option.map~f:ComputeEnvironmentOrders.of_xml)(Xml.childxml_arg0"computeEnvironmentOrder")inletpriority=Integer.of_xml(Xml.child_exn~context:context_xml_arg0"priority")inletschedulingPolicyArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"schedulingPolicyArn")inletstate=(Option.map~f:JQState.of_xml)(Xml.childxml_arg0"state")inletjobQueueName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobQueueName")inmake?jobStateTimeLimitActions?tags?jobQueueType?serviceEnvironmentOrder?computeEnvironmentOrder~priority?schedulingPolicyArn?state~jobQueueName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjobStateTimeLimitActions=field_mapjson__"jobStateTimeLimitActions"JobStateTimeLimitActions.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletjobQueueType=field_mapjson__"jobQueueType"JobQueueType.of_jsoninletserviceEnvironmentOrder=field_mapjson__"serviceEnvironmentOrder"ServiceEnvironmentOrders.of_jsoninletcomputeEnvironmentOrder=field_mapjson__"computeEnvironmentOrder"ComputeEnvironmentOrders.of_jsoninletpriority=field_map_exnjson__"priority"Integer.of_jsoninletschedulingPolicyArn=field_mapjson__"schedulingPolicyArn"String_.of_jsoninletstate=field_mapjson__"state"JQState.of_jsoninletjobQueueName=field_map_exnjson__"jobQueueName"String_.of_jsoninmake?jobStateTimeLimitActions?tags?jobQueueType?serviceEnvironmentOrder?computeEnvironmentOrder~priority?schedulingPolicyArn?state~jobQueueName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for CreateJobQueue."]moduleCreateConsumableResourceResponse=structtypenonrect={consumableResourceName:String_.toption[@ocaml.doc"The name of the consumable resource."];consumableResourceArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the consumable resource."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?consumableResourceName=fun?consumableResourceArn->fun()->{consumableResourceName;consumableResourceArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("consumableResourceName",(Option.mapx.consumableResourceName~f:String_.to_value));("consumableResourceArn",(Option.mapx.consumableResourceArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconsumableResourceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceArn")inletconsumableResourceName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"consumableResourceName")inmake?consumableResourceArn?consumableResourceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconsumableResourceArn=field_mapjson__"consumableResourceArn"String_.of_jsoninletconsumableResourceName=field_mapjson__"consumableResourceName"String_.of_jsoninmake?consumableResourceArn?consumableResourceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch consumable resource."]moduleCreateConsumableResourceRequest=structtypenonrect={consumableResourceName:String_.t[@ocaml.doc"The name of the consumable resource. Must be unique."];totalQuantity:Long.toption[@ocaml.doc"The total amount of the consumable resource that is available. Must be non-negative."];resourceType:String_.toption[@ocaml.doc"Indicates whether the resource is available to be re-used after a job completes. Can be one of: REPLENISHABLE (default) NON_REPLENISHABLE"];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the consumable resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources."]}letcontext_="CreateConsumableResourceRequest"letmake?totalQuantity=fun?resourceType->fun?tags->fun~consumableResourceName->fun()->{totalQuantity;resourceType;tags;consumableResourceName}letto_valuex=structure_to_value[("consumableResourceName",(Some(String_.to_valuex.consumableResourceName)));("totalQuantity",(Option.mapx.totalQuantity~f:Long.to_value));("resourceType",(Option.mapx.resourceType~f:String_.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletresourceType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"resourceType")inlettotalQuantity=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"totalQuantity")inletconsumableResourceName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"consumableResourceName")inmake?tags?resourceType?totalQuantity~consumableResourceName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletresourceType=field_mapjson__"resourceType"String_.of_jsoninlettotalQuantity=field_mapjson__"totalQuantity"Long.of_jsoninletconsumableResourceName=field_map_exnjson__"consumableResourceName"String_.of_jsoninmake?tags?resourceType?totalQuantity~consumableResourceName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch consumable resource."]moduleCreateComputeEnvironmentResponse=structtypenonrect={computeEnvironmentName:String_.toption[@ocaml.doc"The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];computeEnvironmentArn:String_.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the compute environment."]}typenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake?computeEnvironmentName=fun?computeEnvironmentArn->fun()->{computeEnvironmentName;computeEnvironmentArn}leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("computeEnvironmentName",(Option.mapx.computeEnvironmentName~f:String_.to_value));("computeEnvironmentArn",(Option.mapx.computeEnvironmentArn~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcomputeEnvironmentArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"computeEnvironmentArn")inletcomputeEnvironmentName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"computeEnvironmentName")inmake?computeEnvironmentArn?computeEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcomputeEnvironmentArn=field_mapjson__"computeEnvironmentArn"String_.of_jsoninletcomputeEnvironmentName=field_mapjson__"computeEnvironmentName"String_.of_jsoninmake?computeEnvironmentArn?computeEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute environments. MANAGED compute environments can use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use EC2 resources. In a managed compute environment, Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a specified percentage of the On-Demand price. In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the Amazon Elastic Container Service Developer Guide. Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For more information on how to update a compute environment's AMI, see Updating compute environments in the Batch User Guide."]moduleCreateComputeEnvironmentRequest=structtypenonrect={computeEnvironmentName:String_.t[@ocaml.doc"The name for your compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_)."];type_:CEType.t[@ocaml.doc"The type of the compute environment: MANAGED or UNMANAGED. For more information, see Compute Environments in the Batch User Guide."];state:CEState.toption[@ocaml.doc"The state of the compute environment. If the state is ENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues. If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand. If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state don't scale out. Compute environments in a DISABLED state may continue to incur billing charges, for example, if they have running instances due to jobs that are still executing or a non-zero minvCpus setting. To prevent additional charges, disable and delete the compute environment. When an instance is idle, the instance scales down to the minvCpus value. However, the instance size doesn't change. For example, consider a c5.8xlarge instance with a minvCpus value of 4 and a desiredvCpus value of 36. This instance doesn't scale down to a c5.large instance."];unmanagedvCpus:Integer.toption[@ocaml.doc"The maximum number of vCPUs for an unmanaged compute environment. This parameter is only used for fair-share scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair-share job queue, no vCPU capacity is reserved. This parameter is only supported when the type parameter is set to UNMANAGED."];computeResources:ComputeResource.toption[@ocaml.doc"Details about the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see Compute Environments in the Batch User Guide."];serviceRole:String_.toption[@ocaml.doc"The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For more information, see Batch service IAM role in the Batch User Guide. If your account already created the Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the Batch service-linked role in your account. If your specified role has a path other than /, then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path of /foo/, specify /foo/bar as the role name. For more information, see Friendly names and paths in the IAM User Guide. Depending on how you created your Batch service role, its ARN might contain the service-role path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the service-role path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments."];tags:TagrisTagsMap.toption[@ocaml.doc"The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General Reference. These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't propagate to the underlying compute resources."];eksConfiguration:EksConfiguration.toption[@ocaml.doc"The details for the Amazon EKS cluster that supports the compute environment. To create a compute environment that uses EKS resources, the caller must have permissions to call eks:DescribeCluster."];context:String_.toption[@ocaml.doc"Reserved."]}letcontext_="CreateComputeEnvironmentRequest"letmake?state=fun?unmanagedvCpus->fun?computeResources->fun?serviceRole->fun?tags->fun?eksConfiguration->fun?context->fun~computeEnvironmentName->fun~type_->fun()->{state;unmanagedvCpus;computeResources;serviceRole;tags;eksConfiguration;context;computeEnvironmentName;type_}letto_valuex=structure_to_value[("computeEnvironmentName",(Some(String_.to_valuex.computeEnvironmentName)));("type",(Some(CEType.to_valuex.type_)));("state",(Option.mapx.state~f:CEState.to_value));("unmanagedvCpus",(Option.mapx.unmanagedvCpus~f:Integer.to_value));("computeResources",(Option.mapx.computeResources~f:ComputeResource.to_value));("serviceRole",(Option.mapx.serviceRole~f:String_.to_value));("tags",(Option.mapx.tags~f:TagrisTagsMap.to_value));("eksConfiguration",(Option.mapx.eksConfiguration~f:EksConfiguration.to_value));("context",(Option.mapx.context~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"context")inleteksConfiguration=(Option.map~f:EksConfiguration.of_xml)(Xml.childxml_arg0"eksConfiguration")inlettags=(Option.map~f:TagrisTagsMap.of_xml)(Xml.childxml_arg0"tags")inletserviceRole=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"serviceRole")inletcomputeResources=(Option.map~f:ComputeResource.of_xml)(Xml.childxml_arg0"computeResources")inletunmanagedvCpus=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"unmanagedvCpus")inletstate=(Option.map~f:CEState.of_xml)(Xml.childxml_arg0"state")inlettype_=CEType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletcomputeEnvironmentName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"computeEnvironmentName")inmake?context?eksConfiguration?tags?serviceRole?computeResources?unmanagedvCpus?state~type_~computeEnvironmentName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontext=field_mapjson__"context"String_.of_jsoninleteksConfiguration=field_mapjson__"eksConfiguration"EksConfiguration.of_jsoninlettags=field_mapjson__"tags"TagrisTagsMap.of_jsoninletserviceRole=field_mapjson__"serviceRole"String_.of_jsoninletcomputeResources=field_mapjson__"computeResources"ComputeResource.of_jsoninletunmanagedvCpus=field_mapjson__"unmanagedvCpus"Integer.of_jsoninletstate=field_mapjson__"state"CEState.of_jsoninlettype_=field_map_exnjson__"type"CEType.of_jsoninletcomputeEnvironmentName=field_map_exnjson__"computeEnvironmentName"String_.of_jsoninmake?context?eksConfiguration?tags?serviceRole?computeResources?unmanagedvCpus?state~type_~computeEnvironmentName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for CreateComputeEnvironment."]moduleCancelJobResponse=structtypenonrect=unittypenonrecerror=[`ClientExceptionofClientException.t|`ServerExceptionofServerException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ClientException"->`ClientException(ClientException.of_jsonjson)|"ServerException"->`ServerException(ServerException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ClientException"->`ClientException(ClientException.of_xmlxml)|"ServerException"->`ServerException(ServerException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ClientExceptione->`Assoc[("error",(`String"ClientException"));("details",(ClientException.to_jsone))]|`ServerExceptione->`Assoc[("error",(`String"ServerException"));("details",(ServerException.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"Cancels a job in an Batch job queue. Jobs that are in a SUBMITTED, PENDING, or RUNNABLE state are cancelled and the job status is updated to FAILED. A PENDING job is canceled after all dependency jobs are completed. Therefore, it may take longer than expected to cancel a job in PENDING status. When you try to cancel an array parent job in PENDING, Batch attempts to cancel all child jobs. The array parent job is canceled when all child jobs are completed. Jobs that progressed to the STARTING or RUNNING state aren't canceled. However, the API operation still succeeds, even if no job is canceled. These jobs must be terminated with the TerminateJob operation."]moduleCancelJobRequest=structtypenonrect={jobId:String_.t[@ocaml.doc"The Batch job ID of the job to cancel."];reason:String_.t[@ocaml.doc"A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. It is also recorded in the Batch activity logs. This parameter has as limit of 1024 characters."]}letcontext_="CancelJobRequest"letmake~jobId=fun~reason->fun()->{jobId;reason}letto_valuex=structure_to_value[("jobId",(Some(String_.to_valuex.jobId)));("reason",(Some(String_.to_valuex.reason)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=String_.of_xml(Xml.child_exn~context:context_xml_arg0"reason")inletjobId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"jobId")inmake~reason~jobId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_map_exnjson__"reason"String_.of_jsoninletjobId=field_map_exnjson__"jobId"String_.of_jsoninmake~reason~jobId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the parameters for CancelJob."]