123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033(* 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.stepfunctionsletapiVersion="2016-11-23"letendpointPrefix="states"letserviceFullName="AWS Step Functions"letsignatureVersion="v4"letprotocol="json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="AWS SFN"lettargetPrefix="AWSStepFunctions"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[]))])moduleArn=structtypenonrect=stringletcontext_="Arn"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:"Arn"jletto_json=simple_to_jsonto_valueendmoduleTruncated=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_valueendmoduleLongArn=structtypenonrect=stringletcontext_="LongArn"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2000)>>=(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:"LongArn"jletto_json=simple_to_jsonto_valueendmoduleVariableName=structtypenonrect=stringletcontext_="VariableName"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:"VariableName"jletto_json=simple_to_jsonto_valueendmoduleVariableValue=structtypenonrect=stringletcontext_="VariableValue"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:"VariableValue"jletto_json=simple_to_jsonto_valueendmoduleCloudWatchLogsLogGroup=structtypenonrect={logGroupArn:Arn.toption[@ocaml.doc"The ARN of the the CloudWatch log group to which you want your logs emitted to. The ARN must end with :*"]}letmake?logGroupArn=fun()->{logGroupArn}letto_valuex=structure_to_value[("logGroupArn",(Option.mapx.logGroupArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlogGroupArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"logGroupArn")inmake?logGroupArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlogGroupArn=field_mapjson__"logGroupArn"Arn.of_jsoninmake?logGroupArn()letto_jsonv=composed_to_jsonto_valuevendmoduleSensitiveCause=structtypenonrect=stringletcontext_="SensitiveCause"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32768)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SensitiveCause"jletto_json=simple_to_jsonto_valueendmoduleSensitiveError=structtypenonrect=stringletcontext_="SensitiveError"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SensitiveError"jletto_json=simple_to_jsonto_valueendmoduleHistoryEventExecutionDataDetails=structtypenonrect={truncated:Truncated.toption[@ocaml.doc"Indicates whether input or output was truncated in the response. Always false for API calls. In CloudWatch logs, the value will be true if the data is truncated due to size limits."]}letmake?truncated=fun()->{truncated}letto_valuex=structure_to_value[("truncated",(Option.mapx.truncated~f:Truncated.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettruncated=(Option.map~f:Truncated.of_xml)(Xml.childxml_arg0"truncated")inmake?truncated()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettruncated=field_mapjson__"truncated"Truncated.of_jsoninmake?truncated()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about input or output in an execution history event."]moduleSensitiveData=structtypenonrect=stringletcontext_="SensitiveData"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:262144);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SensitiveData"jletto_json=simple_to_jsonto_valueendmoduleTimeoutInSeconds=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_valueendmoduleIdentity=structtypenonrect=stringletcontext_="Identity"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:"Identity"jletto_json=simple_to_jsonto_valueendmoduleEvaluationFailureLocation=structtypenonrect=stringletcontext_="EvaluationFailureLocation"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EvaluationFailureLocation"jletto_json=simple_to_jsonto_valueendmoduleStateName=structtypenonrect=stringletcontext_="StateName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:80)>>=(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:"StateName"jletto_json=simple_to_jsonto_valueendmoduleRedriveCount=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 RedriveCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTaskCredentials=structtypenonrect={roleArn:LongArn.toption[@ocaml.doc"The ARN of an IAM role that Step Functions assumes for the task. The role can allow cross-account access to resources."]}letmake?roleArn=fun()->{roleArn}letto_valuex=structure_to_value[("roleArn",(Option.mapx.roleArn~f:LongArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"roleArn")inmake?roleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleArn=field_mapjson__"roleArn"LongArn.of_jsoninmake?roleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the credentials that Step Functions uses for a task."]moduleName=structtypenonrect=stringletcontext_="Name"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:80)>>=(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:"Name"jletto_json=simple_to_jsonto_valueendmoduleUnsignedInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 UnsignedInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAssignedVariables=structtypenonrect=(VariableName.t*VariableValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((VariableName.of_stringchopped),(VariableValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(VariableName.to_valuex)|>(funx->(VariableValue.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:VariableName.of_string~of_json:VariableValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAssignedVariablesDetails=structtypenonrect={truncated:Truncated.toption[@ocaml.doc"Indicates whether assigned variables were truncated in the response. Always false for API calls. In CloudWatch logs, the value will be true if the data is truncated due to size limits."]}letmake?truncated=fun()->{truncated}letto_valuex=structure_to_value[("truncated",(Option.mapx.truncated~f:Truncated.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettruncated=(Option.map~f:Truncated.of_xml)(Xml.childxml_arg0"truncated")inmake?truncated()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettruncated=field_mapjson__"truncated"Truncated.of_jsoninmake?truncated()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about assigned variables in an execution history event."]moduleConnectorParameters=structtypenonrect=stringletcontext_="ConnectorParameters"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:262144)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ConnectorParameters"jletto_json=simple_to_jsonto_valueendmoduleValidateStateMachineDefinitionCode=structtypenonrect=stringletcontext_="ValidateStateMachineDefinitionCode"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:"ValidateStateMachineDefinitionCode"jletto_json=simple_to_jsonto_valueendmoduleValidateStateMachineDefinitionLocation=structtypenonrect=stringletcontext_="ValidateStateMachineDefinitionLocation"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:"ValidateStateMachineDefinitionLocation"jletto_json=simple_to_jsonto_valueendmoduleValidateStateMachineDefinitionMessage=structtypenonrect=stringletcontext_="ValidateStateMachineDefinitionMessage"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:"ValidateStateMachineDefinitionMessage"jletto_json=simple_to_jsonto_valueendmoduleValidateStateMachineDefinitionSeverity=structtypenonrect=|ERROR|WARNING|Non_static_idofstringletmakei=iletto_string=function|ERROR->"ERROR"|WARNING->"WARNING"|Non_static_ids->sletof_string=function|"ERROR"->ERROR|"WARNING"->WARNING|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 ValidateStateMachineDefinitionSeverity"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidateStateMachineDefinitionSeverity"j)letto_json=simple_to_jsonto_valueendmoduleLogDestination=structtypenonrect={cloudWatchLogsLogGroup:CloudWatchLogsLogGroup.toption[@ocaml.doc"An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup in the CloudFormation User Guide."]}letmake?cloudWatchLogsLogGroup=fun()->{cloudWatchLogsLogGroup}letto_valuex=structure_to_value[("cloudWatchLogsLogGroup",(Option.mapx.cloudWatchLogsLogGroup~f:CloudWatchLogsLogGroup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcloudWatchLogsLogGroup=(Option.map~f:CloudWatchLogsLogGroup.of_xml)(Xml.childxml_arg0"cloudWatchLogsLogGroup")inmake?cloudWatchLogsLogGroup()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcloudWatchLogsLogGroup=field_mapjson__"cloudWatchLogsLogGroup"CloudWatchLogsLogGroup.of_jsoninmake?cloudWatchLogsLogGroup()letto_jsonv=composed_to_jsonto_valuevendmoduleVersionWeight=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));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 VersionWeight"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleHTTPBody=structtypenonrect=stringletcontext_="HTTPBody"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:"HTTPBody"jletto_json=simple_to_jsonto_valueendmoduleHTTPHeaders=structtypenonrect=stringletcontext_="HTTPHeaders"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:"HTTPHeaders"jletto_json=simple_to_jsonto_valueendmoduleHTTPMethod=structtypenonrect=stringletcontext_="HTTPMethod"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:"HTTPMethod"jletto_json=simple_to_jsonto_valueendmoduleHTTPProtocol=structtypenonrect=stringletcontext_="HTTPProtocol"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:"HTTPProtocol"jletto_json=simple_to_jsonto_valueendmoduleURL=structtypenonrect=stringletcontext_="URL"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:"URL"jletto_json=simple_to_jsonto_valueendmoduleHTTPStatusCode=structtypenonrect=stringletcontext_="HTTPStatusCode"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:"HTTPStatusCode"jletto_json=simple_to_jsonto_valueendmoduleHTTPStatusMessage=structtypenonrect=stringletcontext_="HTTPStatusMessage"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:"HTTPStatusMessage"jletto_json=simple_to_jsonto_valueendmoduleExceptionHandlerIndex=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 ExceptionHandlerIndex"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRetryBackoffIntervalSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 RetryBackoffIntervalSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTagKey=structtypenonrect=stringletcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueendmoduleTagValue=structtypenonrect=stringletcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueendmoduleStateMachineType=structtypenonrect=|STANDARD|EXPRESS|Non_static_idofstringletmakei=iletto_string=function|STANDARD->"STANDARD"|EXPRESS->"EXPRESS"|Non_static_ids->sletof_string=function|"STANDARD"->STANDARD|"EXPRESS"->EXPRESS|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 StateMachineType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StateMachineType"j)letto_json=simple_to_jsonto_valueendmoduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleExecutionStatus=structtypenonrect=|RUNNING|SUCCEEDED|FAILED|TIMED_OUT|ABORTED|PENDING_REDRIVE|Non_static_idofstringletmakei=iletto_string=function|RUNNING->"RUNNING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|TIMED_OUT->"TIMED_OUT"|ABORTED->"ABORTED"|PENDING_REDRIVE->"PENDING_REDRIVE"|Non_static_ids->sletof_string=function|"RUNNING"->RUNNING|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"TIMED_OUT"->TIMED_OUT|"ABORTED"->ABORTED|"PENDING_REDRIVE"->PENDING_REDRIVE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleActivityFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an activity that failed during an execution."]moduleActivityScheduleFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an activity schedule failure that occurred during an execution."]moduleActivityScheduledEventDetails=structtypenonrect={resource:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduled activity."];input:SensitiveData.toption[@ocaml.doc"The JSON data input to the activity task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];inputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the input for an execution history event."];timeoutInSeconds:TimeoutInSeconds.toption[@ocaml.doc"The maximum allowed duration of the activity task."];heartbeatInSeconds:TimeoutInSeconds.toption[@ocaml.doc"The maximum allowed duration between two heartbeats for the activity task."]}letmake?resource=fun?input->fun?inputDetails->fun?timeoutInSeconds->fun?heartbeatInSeconds->fun()->{resource;input;inputDetails;timeoutInSeconds;heartbeatInSeconds}letto_valuex=structure_to_value[("resource",(Option.mapx.resource~f:Arn.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("inputDetails",(Option.mapx.inputDetails~f:HistoryEventExecutionDataDetails.to_value));("timeoutInSeconds",(Option.mapx.timeoutInSeconds~f:TimeoutInSeconds.to_value));("heartbeatInSeconds",(Option.mapx.heartbeatInSeconds~f:TimeoutInSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letheartbeatInSeconds=(Option.map~f:TimeoutInSeconds.of_xml)(Xml.childxml_arg0"heartbeatInSeconds")inlettimeoutInSeconds=(Option.map~f:TimeoutInSeconds.of_xml)(Xml.childxml_arg0"timeoutInSeconds")inletinputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"inputDetails")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletresource=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"resource")inmake?heartbeatInSeconds?timeoutInSeconds?inputDetails?input?resource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letheartbeatInSeconds=field_mapjson__"heartbeatInSeconds"TimeoutInSeconds.of_jsoninlettimeoutInSeconds=field_mapjson__"timeoutInSeconds"TimeoutInSeconds.of_jsoninletinputDetails=field_mapjson__"inputDetails"HistoryEventExecutionDataDetails.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletresource=field_mapjson__"resource"Arn.of_jsoninmake?heartbeatInSeconds?timeoutInSeconds?inputDetails?input?resource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an activity scheduled during an execution."]moduleActivityStartedEventDetails=structtypenonrect={workerName:Identity.toption[@ocaml.doc"The name of the worker that the task is assigned to. These names are provided by the workers when calling GetActivityTask."]}letmake?workerName=fun()->{workerName}letto_valuex=structure_to_value[("workerName",(Option.mapx.workerName~f:Identity.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkerName=(Option.map~f:Identity.of_xml)(Xml.childxml_arg0"workerName")inmake?workerName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkerName=field_mapjson__"workerName"Identity.of_jsoninmake?workerName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the start of an activity during an execution."]moduleActivitySucceededEventDetails=structtypenonrect={output:SensitiveData.toption[@ocaml.doc"The JSON data output by the activity task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];outputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the output of an execution history event."]}letmake?output=fun?outputDetails->fun()->{output;outputDetails}letto_valuex=structure_to_value[("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:HistoryEventExecutionDataDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inmake?outputDetails?output()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputDetails=field_mapjson__"outputDetails"HistoryEventExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninmake?outputDetails?output()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an activity that successfully terminated during an execution."]moduleActivityTimedOutEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the timeout."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an activity timeout that occurred during an execution."]moduleEvaluationFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."];location:EvaluationFailureLocation.toption[@ocaml.doc"The location of the field in the state in which the evaluation error occurred."];state:StateName.toption[@ocaml.doc"The name of the state in which the evaluation error occurred."]}letmake?error=fun?cause->fun?location->fun?state->fun()->{error;cause;location;state}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value));("location",(Option.mapx.location~f:EvaluationFailureLocation.to_value));("state",(Option.mapx.state~f:StateName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=(Option.map~f:StateName.of_xml)(Xml.childxml_arg0"state")inletlocation=(Option.map~f:EvaluationFailureLocation.of_xml)(Xml.childxml_arg0"location")inletcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?state?location?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_mapjson__"state"StateName.of_jsoninletlocation=field_mapjson__"location"EvaluationFailureLocation.of_jsoninletcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?state?location?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an evaluation failure that occurred while processing a state, for example, when a JSONata expression throws an error. This event will only be present in state machines that have QueryLanguage set to JSONata, or individual states set to JSONata."]moduleEventId=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_valueendmoduleExecutionAbortedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an abort of an execution."]moduleExecutionFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an execution failure event."]moduleExecutionRedrivenEventDetails=structtypenonrect={redriveCount:RedriveCount.toption[@ocaml.doc"The number of times you've redriven an execution. If you have not yet redriven an execution, the redriveCount is 0. This count is not updated for redrives that failed to start or are pending to be redriven."]}letmake?redriveCount=fun()->{redriveCount}letto_valuex=structure_to_value[("redriveCount",(Option.mapx.redriveCount~f:RedriveCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveCount=(Option.map~f:RedriveCount.of_xml)(Xml.childxml_arg0"redriveCount")inmake?redriveCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveCount=field_mapjson__"redriveCount"RedriveCount.of_jsoninmake?redriveCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a redriven execution."]moduleExecutionStartedEventDetails=structtypenonrect={input:SensitiveData.toption[@ocaml.doc"The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];inputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the input for an execution history event."];roleArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks."];stateMachineAliasArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine execution."];stateMachineVersionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine execution."]}letmake?input=fun?inputDetails->fun?roleArn->fun?stateMachineAliasArn->fun?stateMachineVersionArn->fun()->{input;inputDetails;roleArn;stateMachineAliasArn;stateMachineVersionArn}letto_valuex=structure_to_value[("input",(Option.mapx.input~f:SensitiveData.to_value));("inputDetails",(Option.mapx.inputDetails~f:HistoryEventExecutionDataDetails.to_value));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("stateMachineAliasArn",(Option.mapx.stateMachineAliasArn~f:Arn.to_value));("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineVersionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inletstateMachineAliasArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineAliasArn")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inletinputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"inputDetails")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inmake?stateMachineVersionArn?stateMachineAliasArn?roleArn?inputDetails?input()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"Arn.of_jsoninletstateMachineAliasArn=field_mapjson__"stateMachineAliasArn"Arn.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninletinputDetails=field_mapjson__"inputDetails"HistoryEventExecutionDataDetails.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninmake?stateMachineVersionArn?stateMachineAliasArn?roleArn?inputDetails?input()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the start of the execution."]moduleExecutionSucceededEventDetails=structtypenonrect={output:SensitiveData.toption[@ocaml.doc"The JSON data output by the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];outputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the output of an execution history event."]}letmake?output=fun?outputDetails->fun()->{output;outputDetails}letto_valuex=structure_to_value[("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:HistoryEventExecutionDataDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inmake?outputDetails?output()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputDetails=field_mapjson__"outputDetails"HistoryEventExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninmake?outputDetails?output()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the successful termination of the execution."]moduleExecutionTimedOutEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the timeout."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the execution timeout that occurred during the execution."]moduleHistoryEventType=structtypenonrect=|ActivityFailed|ActivityScheduled|ActivityScheduleFailed|ActivityStarted|ActivitySucceeded|ActivityTimedOut|ChoiceStateEntered|ChoiceStateExited|ExecutionAborted|ExecutionFailed|ExecutionStarted|ExecutionSucceeded|ExecutionTimedOut|FailStateEntered|LambdaFunctionFailed|LambdaFunctionScheduled|LambdaFunctionScheduleFailed|LambdaFunctionStarted|LambdaFunctionStartFailed|LambdaFunctionSucceeded|LambdaFunctionTimedOut|MapIterationAborted|MapIterationFailed|MapIterationStarted|MapIterationSucceeded|MapStateAborted|MapStateEntered|MapStateExited|MapStateFailed|MapStateStarted|MapStateSucceeded|ParallelStateAborted|ParallelStateEntered|ParallelStateExited|ParallelStateFailed|ParallelStateStarted|ParallelStateSucceeded|PassStateEntered|PassStateExited|SucceedStateEntered|SucceedStateExited|TaskFailed|TaskScheduled|TaskStarted|TaskStartFailed|TaskStateAborted|TaskStateEntered|TaskStateExited|TaskSubmitFailed|TaskSubmitted|TaskSucceeded|TaskTimedOut|WaitStateAborted|WaitStateEntered|WaitStateExited|MapRunAborted|MapRunFailed|MapRunStarted|MapRunSucceeded|ExecutionRedriven|MapRunRedriven|EvaluationFailed|Non_static_idofstringletmakei=iletto_string=function|ActivityFailed->"ActivityFailed"|ActivityScheduled->"ActivityScheduled"|ActivityScheduleFailed->"ActivityScheduleFailed"|ActivityStarted->"ActivityStarted"|ActivitySucceeded->"ActivitySucceeded"|ActivityTimedOut->"ActivityTimedOut"|ChoiceStateEntered->"ChoiceStateEntered"|ChoiceStateExited->"ChoiceStateExited"|ExecutionAborted->"ExecutionAborted"|ExecutionFailed->"ExecutionFailed"|ExecutionStarted->"ExecutionStarted"|ExecutionSucceeded->"ExecutionSucceeded"|ExecutionTimedOut->"ExecutionTimedOut"|FailStateEntered->"FailStateEntered"|LambdaFunctionFailed->"LambdaFunctionFailed"|LambdaFunctionScheduled->"LambdaFunctionScheduled"|LambdaFunctionScheduleFailed->"LambdaFunctionScheduleFailed"|LambdaFunctionStarted->"LambdaFunctionStarted"|LambdaFunctionStartFailed->"LambdaFunctionStartFailed"|LambdaFunctionSucceeded->"LambdaFunctionSucceeded"|LambdaFunctionTimedOut->"LambdaFunctionTimedOut"|MapIterationAborted->"MapIterationAborted"|MapIterationFailed->"MapIterationFailed"|MapIterationStarted->"MapIterationStarted"|MapIterationSucceeded->"MapIterationSucceeded"|MapStateAborted->"MapStateAborted"|MapStateEntered->"MapStateEntered"|MapStateExited->"MapStateExited"|MapStateFailed->"MapStateFailed"|MapStateStarted->"MapStateStarted"|MapStateSucceeded->"MapStateSucceeded"|ParallelStateAborted->"ParallelStateAborted"|ParallelStateEntered->"ParallelStateEntered"|ParallelStateExited->"ParallelStateExited"|ParallelStateFailed->"ParallelStateFailed"|ParallelStateStarted->"ParallelStateStarted"|ParallelStateSucceeded->"ParallelStateSucceeded"|PassStateEntered->"PassStateEntered"|PassStateExited->"PassStateExited"|SucceedStateEntered->"SucceedStateEntered"|SucceedStateExited->"SucceedStateExited"|TaskFailed->"TaskFailed"|TaskScheduled->"TaskScheduled"|TaskStarted->"TaskStarted"|TaskStartFailed->"TaskStartFailed"|TaskStateAborted->"TaskStateAborted"|TaskStateEntered->"TaskStateEntered"|TaskStateExited->"TaskStateExited"|TaskSubmitFailed->"TaskSubmitFailed"|TaskSubmitted->"TaskSubmitted"|TaskSucceeded->"TaskSucceeded"|TaskTimedOut->"TaskTimedOut"|WaitStateAborted->"WaitStateAborted"|WaitStateEntered->"WaitStateEntered"|WaitStateExited->"WaitStateExited"|MapRunAborted->"MapRunAborted"|MapRunFailed->"MapRunFailed"|MapRunStarted->"MapRunStarted"|MapRunSucceeded->"MapRunSucceeded"|ExecutionRedriven->"ExecutionRedriven"|MapRunRedriven->"MapRunRedriven"|EvaluationFailed->"EvaluationFailed"|Non_static_ids->sletof_string=function|"ActivityFailed"->ActivityFailed|"ActivityScheduled"->ActivityScheduled|"ActivityScheduleFailed"->ActivityScheduleFailed|"ActivityStarted"->ActivityStarted|"ActivitySucceeded"->ActivitySucceeded|"ActivityTimedOut"->ActivityTimedOut|"ChoiceStateEntered"->ChoiceStateEntered|"ChoiceStateExited"->ChoiceStateExited|"ExecutionAborted"->ExecutionAborted|"ExecutionFailed"->ExecutionFailed|"ExecutionStarted"->ExecutionStarted|"ExecutionSucceeded"->ExecutionSucceeded|"ExecutionTimedOut"->ExecutionTimedOut|"FailStateEntered"->FailStateEntered|"LambdaFunctionFailed"->LambdaFunctionFailed|"LambdaFunctionScheduled"->LambdaFunctionScheduled|"LambdaFunctionScheduleFailed"->LambdaFunctionScheduleFailed|"LambdaFunctionStarted"->LambdaFunctionStarted|"LambdaFunctionStartFailed"->LambdaFunctionStartFailed|"LambdaFunctionSucceeded"->LambdaFunctionSucceeded|"LambdaFunctionTimedOut"->LambdaFunctionTimedOut|"MapIterationAborted"->MapIterationAborted|"MapIterationFailed"->MapIterationFailed|"MapIterationStarted"->MapIterationStarted|"MapIterationSucceeded"->MapIterationSucceeded|"MapStateAborted"->MapStateAborted|"MapStateEntered"->MapStateEntered|"MapStateExited"->MapStateExited|"MapStateFailed"->MapStateFailed|"MapStateStarted"->MapStateStarted|"MapStateSucceeded"->MapStateSucceeded|"ParallelStateAborted"->ParallelStateAborted|"ParallelStateEntered"->ParallelStateEntered|"ParallelStateExited"->ParallelStateExited|"ParallelStateFailed"->ParallelStateFailed|"ParallelStateStarted"->ParallelStateStarted|"ParallelStateSucceeded"->ParallelStateSucceeded|"PassStateEntered"->PassStateEntered|"PassStateExited"->PassStateExited|"SucceedStateEntered"->SucceedStateEntered|"SucceedStateExited"->SucceedStateExited|"TaskFailed"->TaskFailed|"TaskScheduled"->TaskScheduled|"TaskStarted"->TaskStarted|"TaskStartFailed"->TaskStartFailed|"TaskStateAborted"->TaskStateAborted|"TaskStateEntered"->TaskStateEntered|"TaskStateExited"->TaskStateExited|"TaskSubmitFailed"->TaskSubmitFailed|"TaskSubmitted"->TaskSubmitted|"TaskSucceeded"->TaskSucceeded|"TaskTimedOut"->TaskTimedOut|"WaitStateAborted"->WaitStateAborted|"WaitStateEntered"->WaitStateEntered|"WaitStateExited"->WaitStateExited|"MapRunAborted"->MapRunAborted|"MapRunFailed"->MapRunFailed|"MapRunStarted"->MapRunStarted|"MapRunSucceeded"->MapRunSucceeded|"ExecutionRedriven"->ExecutionRedriven|"MapRunRedriven"->MapRunRedriven|"EvaluationFailed"->EvaluationFailed|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 HistoryEventType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"HistoryEventType"j)letto_json=simple_to_jsonto_valueendmoduleLambdaFunctionFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Lambda function that failed during an execution."]moduleLambdaFunctionScheduleFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a failed Lambda function schedule event that occurred during an execution."]moduleLambdaFunctionScheduledEventDetails=structtypenonrect={resource:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the scheduled Lambda function."];input:SensitiveData.toption[@ocaml.doc"The JSON data input to the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];inputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about input for an execution history event."];timeoutInSeconds:TimeoutInSeconds.toption[@ocaml.doc"The maximum allowed duration of the Lambda function."];taskCredentials:TaskCredentials.toption[@ocaml.doc"The credentials that Step Functions uses for the task."]}letmake?resource=fun?input->fun?inputDetails->fun?timeoutInSeconds->fun?taskCredentials->fun()->{resource;input;inputDetails;timeoutInSeconds;taskCredentials}letto_valuex=structure_to_value[("resource",(Option.mapx.resource~f:Arn.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("inputDetails",(Option.mapx.inputDetails~f:HistoryEventExecutionDataDetails.to_value));("timeoutInSeconds",(Option.mapx.timeoutInSeconds~f:TimeoutInSeconds.to_value));("taskCredentials",(Option.mapx.taskCredentials~f:TaskCredentials.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskCredentials=(Option.map~f:TaskCredentials.of_xml)(Xml.childxml_arg0"taskCredentials")inlettimeoutInSeconds=(Option.map~f:TimeoutInSeconds.of_xml)(Xml.childxml_arg0"timeoutInSeconds")inletinputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"inputDetails")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletresource=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"resource")inmake?taskCredentials?timeoutInSeconds?inputDetails?input?resource()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskCredentials=field_mapjson__"taskCredentials"TaskCredentials.of_jsoninlettimeoutInSeconds=field_mapjson__"timeoutInSeconds"TimeoutInSeconds.of_jsoninletinputDetails=field_mapjson__"inputDetails"HistoryEventExecutionDataDetails.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletresource=field_mapjson__"resource"Arn.of_jsoninmake?taskCredentials?timeoutInSeconds?inputDetails?input?resource()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Lambda function scheduled during an execution."]moduleLambdaFunctionStartFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a lambda function that failed to start during an execution."]moduleLambdaFunctionSucceededEventDetails=structtypenonrect={output:SensitiveData.toption[@ocaml.doc"The JSON data output by the Lambda function. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];outputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the output of an execution history event."]}letmake?output=fun?outputDetails->fun()->{output;outputDetails}letto_valuex=structure_to_value[("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:HistoryEventExecutionDataDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inmake?outputDetails?output()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputDetails=field_mapjson__"outputDetails"HistoryEventExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninmake?outputDetails?output()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Lambda function that successfully terminated during an execution."]moduleLambdaFunctionTimedOutEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the timeout."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Lambda function timeout that occurred during an execution."]moduleMapIterationEventDetails=structtypenonrect={name:Name.toption[@ocaml.doc"The name of the iteration\226\128\153s parent Map state."];index:UnsignedInteger.toption[@ocaml.doc"The index of the array belonging to the Map state iteration."]}letmake?name=fun?index->fun()->{name;index}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:Name.to_value));("index",(Option.mapx.index~f:UnsignedInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letindex=(Option.map~f:UnsignedInteger.of_xml)(Xml.childxml_arg0"index")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inmake?index?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letindex=field_mapjson__"index"UnsignedInteger.of_jsoninletname=field_mapjson__"name"Name.of_jsoninmake?index?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an iteration of a Map state."]moduleMapRunFailedEventDetails=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"The error code of the Map Run failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Map Run failure event that occurred during a state machine execution."]moduleMapRunRedrivenEventDetails=structtypenonrect={mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a Map Run that was redriven."];redriveCount:RedriveCount.toption[@ocaml.doc"The number of times the Map Run has been redriven at this point in the execution's history including this event. The redrive count for a redriven Map Run is always greater than 0."]}letmake?mapRunArn=fun?redriveCount->fun()->{mapRunArn;redriveCount}letto_valuex=structure_to_value[("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("redriveCount",(Option.mapx.redriveCount~f:RedriveCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveCount=(Option.map~f:RedriveCount.of_xml)(Xml.childxml_arg0"redriveCount")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inmake?redriveCount?mapRunArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveCount=field_mapjson__"redriveCount"RedriveCount.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninmake?redriveCount?mapRunArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Map Run that was redriven."]moduleMapRunStartedEventDetails=structtypenonrect={mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a Map Run that was started."]}letmake?mapRunArn=fun()->{mapRunArn}letto_valuex=structure_to_value[("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inmake?mapRunArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninmake?mapRunArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a Map Run that was started during a state machine execution."]moduleMapStateStartedEventDetails=structtypenonrect={length:UnsignedInteger.toption[@ocaml.doc"The size of the array for Map state iterations."]}letmake?length=fun()->{length}letto_valuex=structure_to_value[("length",(Option.mapx.length~f:UnsignedInteger.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlength=(Option.map~f:UnsignedInteger.of_xml)(Xml.childxml_arg0"length")inmake?length()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlength=field_mapjson__"length"UnsignedInteger.of_jsoninmake?length()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details about a Map state that was started."]moduleStateEnteredEventDetails=structtypenonrect={name:Name.toption[@ocaml.doc"The name of the state."];input:SensitiveData.toption[@ocaml.doc"The string that contains the JSON input data for the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];inputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the input for an execution history event."]}letmake?name=fun?input->fun?inputDetails->fun()->{name;input;inputDetails}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:Name.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("inputDetails",(Option.mapx.inputDetails~f:HistoryEventExecutionDataDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"inputDetails")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inmake?inputDetails?input?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinputDetails=field_mapjson__"inputDetails"HistoryEventExecutionDataDetails.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletname=field_mapjson__"name"Name.of_jsoninmake?inputDetails?input?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a state entered during an execution."]moduleStateExitedEventDetails=structtypenonrect={name:Name.toption[@ocaml.doc"The name of the state. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];output:SensitiveData.toption[@ocaml.doc"The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];outputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the output of an execution history event."];assignedVariables:AssignedVariables.toption[@ocaml.doc"Map of variable name and value as a serialized JSON representation."];assignedVariablesDetails:AssignedVariablesDetails.toption[@ocaml.doc"Provides details about input or output in an execution history event."]}letmake?name=fun?output->fun?outputDetails->fun?assignedVariables->fun?assignedVariablesDetails->fun()->{name;output;outputDetails;assignedVariables;assignedVariablesDetails}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:Name.to_value));("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:HistoryEventExecutionDataDetails.to_value));("assignedVariables",(Option.mapx.assignedVariables~f:AssignedVariables.to_value));("assignedVariablesDetails",(Option.mapx.assignedVariablesDetails~f:AssignedVariablesDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassignedVariablesDetails=(Option.map~f:AssignedVariablesDetails.of_xml)(Xml.childxml_arg0"assignedVariablesDetails")inletassignedVariables=(Option.map~f:AssignedVariables.of_xml)(Xml.childxml_arg0"assignedVariables")inletoutputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inmake?assignedVariablesDetails?assignedVariables?outputDetails?output?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassignedVariablesDetails=field_mapjson__"assignedVariablesDetails"AssignedVariablesDetails.of_jsoninletassignedVariables=field_mapjson__"assignedVariables"AssignedVariables.of_jsoninletoutputDetails=field_mapjson__"outputDetails"HistoryEventExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninletname=field_mapjson__"name"Name.of_jsoninmake?assignedVariablesDetails?assignedVariables?outputDetails?output?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an exit from a state during an execution."]moduleTaskFailedEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?resourceType=fun?resource->fun?error->fun?cause->fun()->{resourceType;resource;error;cause}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?cause?error?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?cause?error?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a task failure event."]moduleTaskScheduledEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];region:Name.toption[@ocaml.doc"The region of the scheduled task"];parameters:ConnectorParameters.toption[@ocaml.doc"The JSON data passed to the resource referenced in a task state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];timeoutInSeconds:TimeoutInSeconds.toption[@ocaml.doc"The maximum allowed duration of the task."];heartbeatInSeconds:TimeoutInSeconds.toption[@ocaml.doc"The maximum allowed duration between two heartbeats for the task."];taskCredentials:TaskCredentials.toption[@ocaml.doc"The credentials that Step Functions uses for the task."]}letmake?resourceType=fun?resource->fun?region->fun?parameters->fun?timeoutInSeconds->fun?heartbeatInSeconds->fun?taskCredentials->fun()->{resourceType;resource;region;parameters;timeoutInSeconds;heartbeatInSeconds;taskCredentials}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("region",(Option.mapx.region~f:Name.to_value));("parameters",(Option.mapx.parameters~f:ConnectorParameters.to_value));("timeoutInSeconds",(Option.mapx.timeoutInSeconds~f:TimeoutInSeconds.to_value));("heartbeatInSeconds",(Option.mapx.heartbeatInSeconds~f:TimeoutInSeconds.to_value));("taskCredentials",(Option.mapx.taskCredentials~f:TaskCredentials.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskCredentials=(Option.map~f:TaskCredentials.of_xml)(Xml.childxml_arg0"taskCredentials")inletheartbeatInSeconds=(Option.map~f:TimeoutInSeconds.of_xml)(Xml.childxml_arg0"heartbeatInSeconds")inlettimeoutInSeconds=(Option.map~f:TimeoutInSeconds.of_xml)(Xml.childxml_arg0"timeoutInSeconds")inletparameters=(Option.map~f:ConnectorParameters.of_xml)(Xml.childxml_arg0"parameters")inletregion=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"region")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?taskCredentials?heartbeatInSeconds?timeoutInSeconds?parameters?region?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskCredentials=field_mapjson__"taskCredentials"TaskCredentials.of_jsoninletheartbeatInSeconds=field_mapjson__"heartbeatInSeconds"TimeoutInSeconds.of_jsoninlettimeoutInSeconds=field_mapjson__"timeoutInSeconds"TimeoutInSeconds.of_jsoninletparameters=field_mapjson__"parameters"ConnectorParameters.of_jsoninletregion=field_mapjson__"region"Name.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?taskCredentials?heartbeatInSeconds?timeoutInSeconds?parameters?region?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a task scheduled during an execution."]moduleTaskStartFailedEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?resourceType=fun?resource->fun?error->fun?cause->fun()->{resourceType;resource;error;cause}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?cause?error?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?cause?error?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a task that failed to start during an execution."]moduleTaskStartedEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."]}letmake?resourceType=fun?resource->fun()->{resourceType;resource}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the start of a task during an execution."]moduleTaskSubmitFailedEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?resourceType=fun?resource->fun?error->fun?cause->fun()->{resourceType;resource;error;cause}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?cause?error?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?cause?error?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a task that failed to submit during an execution."]moduleTaskSubmittedEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];output:SensitiveData.toption[@ocaml.doc"The response from a resource when a task has started. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];outputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the output of an execution history event."]}letmake?resourceType=fun?resource->fun?output->fun?outputDetails->fun()->{resourceType;resource;output;outputDetails}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:HistoryEventExecutionDataDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?outputDetails?output?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputDetails=field_mapjson__"outputDetails"HistoryEventExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?outputDetails?output?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a task submitted to a resource ."]moduleTaskSucceededEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];output:SensitiveData.toption[@ocaml.doc"The full JSON response from a resource when a task has succeeded. This response becomes the output of the related task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];outputDetails:HistoryEventExecutionDataDetails.toption[@ocaml.doc"Contains details about the output of an execution history event."]}letmake?resourceType=fun?resource->fun?output->fun?outputDetails->fun()->{resourceType;resource;output;outputDetails}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:HistoryEventExecutionDataDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutputDetails=(Option.map~f:HistoryEventExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?outputDetails?output?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutputDetails=field_mapjson__"outputDetails"HistoryEventExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?outputDetails?output?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the successful completion of a task state."]moduleTaskTimedOutEventDetails=structtypenonrect={resourceType:Name.toption[@ocaml.doc"The service name of the resource in a task state."];resource:Name.toption[@ocaml.doc"The action of the resource called by a task state."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letmake?resourceType=fun?resource->fun?error->fun?cause->fun()->{resourceType;resource;error;cause}letto_valuex=structure_to_value[("resourceType",(Option.mapx.resourceType~f:Name.to_value));("resource",(Option.mapx.resource~f:Name.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletresource=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resource")inletresourceType=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"resourceType")inmake?cause?error?resource?resourceType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletresource=field_mapjson__"resource"Name.of_jsoninletresourceType=field_mapjson__"resourceType"Name.of_jsoninmake?cause?error?resource?resourceType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a resource timeout that occurred during an execution."]moduleValidateStateMachineDefinitionDiagnostic=structtypenonrect={severity:ValidateStateMachineDefinitionSeverity.toption[@ocaml.doc"A value of ERROR means that you cannot create or update a state machine with this definition. WARNING level diagnostics alert you to potential issues, but they will not prevent you from creating or updating your state machine."];code:ValidateStateMachineDefinitionCode.toption[@ocaml.doc"Identifying code for the diagnostic."];message:ValidateStateMachineDefinitionMessage.toption[@ocaml.doc"Message describing the diagnostic condition."];location:ValidateStateMachineDefinitionLocation.toption[@ocaml.doc"Location of the issue in the state machine, if available. For errors specific to a field, the location could be in the format: /States/<StateName>/<FieldName>, for example: /States/FailState/ErrorPath."]}letmake?severity=fun?code->fun?message->fun?location->fun()->{severity;code;message;location}letto_valuex=structure_to_value[("severity",(Option.mapx.severity~f:ValidateStateMachineDefinitionSeverity.to_value));("code",(Option.mapx.code~f:ValidateStateMachineDefinitionCode.to_value));("message",(Option.mapx.message~f:ValidateStateMachineDefinitionMessage.to_value));("location",(Option.mapx.location~f:ValidateStateMachineDefinitionLocation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocation=(Option.map~f:ValidateStateMachineDefinitionLocation.of_xml)(Xml.childxml_arg0"location")inletmessage=(Option.map~f:ValidateStateMachineDefinitionMessage.of_xml)(Xml.childxml_arg0"message")inletcode=(Option.map~f:ValidateStateMachineDefinitionCode.of_xml)(Xml.childxml_arg0"code")inletseverity=(Option.map~f:ValidateStateMachineDefinitionSeverity.of_xml)(Xml.childxml_arg0"severity")inmake?location?message?code?severity()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocation=field_mapjson__"location"ValidateStateMachineDefinitionLocation.of_jsoninletmessage=field_mapjson__"message"ValidateStateMachineDefinitionMessage.of_jsoninletcode=field_mapjson__"code"ValidateStateMachineDefinitionCode.of_jsoninletseverity=field_mapjson__"severity"ValidateStateMachineDefinitionSeverity.of_jsoninmake?location?message?code?severity()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes potential issues found during state machine validation. Rather than raise an exception, validation will return a list of diagnostic elements containing diagnostic information. The ValidateStateMachineDefinitionlAPI might add new diagnostics in the future, adjust diagnostic codes, or change the message wording. Your automated processes should only rely on the value of the result field value (OK, FAIL). Do not rely on the exact order, count, or wording of diagnostic messages. List of warning codes NO_DOLLAR No .$ on a field that appears to be a JSONPath or Intrinsic Function. NO_PATH Field value looks like a path, but field name does not end with 'Path'. PASS_RESULT_IS_STATIC Attempt to use a path in the result of a pass state. List of error codes INVALID_JSON_DESCRIPTION JSON syntax problem found. MISSING_DESCRIPTION Received a null or empty workflow input. SCHEMA_VALIDATION_FAILED Schema validation reported errors. INVALID_RESOURCE The value of a Task-state resource field is invalid. MISSING_END_STATE The workflow does not have a terminal state. DUPLICATE_STATE_NAME The same state name appears more than once. INVALID_STATE_NAME The state name does not follow the naming convention. STATE_MACHINE_NAME_EMPTY The state machine name has not been specified. STATE_MACHINE_NAME_INVALID The state machine name does not follow the naming convention. STATE_MACHINE_NAME_TOO_LONG The state name exceeds the allowed length. STATE_MACHINE_NAME_ALREADY_EXISTS The state name already exists. DUPLICATE_LABEL_NAME A label name appears more than once. INVALID_LABEL_NAME You have provided an invalid label name. MISSING_TRANSITION_TARGET The value of \"Next\" field doesn't match a known state name. TOO_DEEPLY_NESTED The states are too deeply nested."]moduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleValidationExceptionReason=structtypenonrect=|API_DOES_NOT_SUPPORT_LABELED_ARNS|MISSING_REQUIRED_PARAMETER|CANNOT_UPDATE_COMPLETED_MAP_RUN|INVALID_ROUTING_CONFIGURATION|Non_static_idofstringletmakei=iletto_string=function|API_DOES_NOT_SUPPORT_LABELED_ARNS->"API_DOES_NOT_SUPPORT_LABELED_ARNS"|MISSING_REQUIRED_PARAMETER->"MISSING_REQUIRED_PARAMETER"|CANNOT_UPDATE_COMPLETED_MAP_RUN->"CANNOT_UPDATE_COMPLETED_MAP_RUN"|INVALID_ROUTING_CONFIGURATION->"INVALID_ROUTING_CONFIGURATION"|Non_static_ids->sletof_string=function|"API_DOES_NOT_SUPPORT_LABELED_ARNS"->API_DOES_NOT_SUPPORT_LABELED_ARNS|"MISSING_REQUIRED_PARAMETER"->MISSING_REQUIRED_PARAMETER|"CANNOT_UPDATE_COMPLETED_MAP_RUN"->CANNOT_UPDATE_COMPLETED_MAP_RUN|"INVALID_ROUTING_CONFIGURATION"->INVALID_ROUTING_CONFIGURATION|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ValidationExceptionReason"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationExceptionReason"j)letto_json=simple_to_jsonto_valueendmoduleEncryptionType=structtypenonrect=|AWS_OWNED_KEY|CUSTOMER_MANAGED_KMS_KEY|Non_static_idofstringletmakei=iletto_string=function|AWS_OWNED_KEY->"AWS_OWNED_KEY"|CUSTOMER_MANAGED_KMS_KEY->"CUSTOMER_MANAGED_KMS_KEY"|Non_static_ids->sletof_string=function|"AWS_OWNED_KEY"->AWS_OWNED_KEY|"CUSTOMER_MANAGED_KMS_KEY"->CUSTOMER_MANAGED_KMS_KEY|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 EncryptionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EncryptionType"j)letto_json=simple_to_jsonto_valueendmoduleKmsDataKeyReusePeriodSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:900)>>=(fun()->check_int_mini~min:60));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 KmsDataKeyReusePeriodSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleKmsKeyId=structtypenonrect=stringletcontext_="KmsKeyId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"KmsKeyId"jletto_json=simple_to_jsonto_valueendmoduleIncludeExecutionData=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_valueendmoduleLogDestinationList=structtypenonrect=LogDestination.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LogDestination.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:LogDestination.of_xml)letof_jsonj=list_of_json~kind:"LogDestinationList"~of_json:LogDestination.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLogLevel=structtypenonrect=|ALL|ERROR|FATAL|OFF|Non_static_idofstringletmakei=iletto_string=function|ALL->"ALL"|ERROR->"ERROR"|FATAL->"FATAL"|OFF->"OFF"|Non_static_ids->sletof_string=function|"ALL"->ALL|"ERROR"->ERROR|"FATAL"->FATAL|"OFF"->OFF|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 LogLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"LogLevel"j)letto_json=simple_to_jsonto_valueendmoduleEnabled=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_valueendmoduleRoutingConfigurationListItem=structtypenonrect={stateMachineVersionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) that identifies one or two state machine versions defined in the routing configuration. If you specify the ARN of a second version, it must belong to the same state machine as the first version."];weight:VersionWeight.t[@ocaml.doc"The percentage of traffic you want to route to a state machine version. The sum of the weights in the routing configuration must be equal to 100."]}letcontext_="RoutingConfigurationListItem"letmake~stateMachineVersionArn=fun~weight->fun()->{stateMachineVersionArn;weight}letto_valuex=structure_to_value[("stateMachineVersionArn",(Some(Arn.to_valuex.stateMachineVersionArn)));("weight",(Some(VersionWeight.to_valuex.weight)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letweight=VersionWeight.of_xml(Xml.child_exn~context:context_xml_arg0"weight")inletstateMachineVersionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineVersionArn")inmake~weight~stateMachineVersionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letweight=field_map_exnjson__"weight"VersionWeight.of_jsoninletstateMachineVersionArn=field_map_exnjson__"stateMachineVersionArn"Arn.of_jsoninmake~weight~stateMachineVersionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the routing configuration of a state machine alias. In a routing configuration, you define an array of objects that specify up to two state machine versions. You also specify the percentage of traffic to be routed to each version."]moduleInspectionDataRequest=structtypenonrect={protocol:HTTPProtocol.toption[@ocaml.doc"The protocol used to make the HTTP request."];method_:HTTPMethod.toption[@ocaml.doc"The HTTP method used for the HTTP request."];url:URL.toption[@ocaml.doc"The API endpoint used for the HTTP request."];headers:HTTPHeaders.toption[@ocaml.doc"The request headers associated with the HTTP request."];body:HTTPBody.toption[@ocaml.doc"The request body for the HTTP request."]}letmake?protocol=fun?method_->fun?url->fun?headers->fun?body->fun()->{protocol;method_;url;headers;body}letto_valuex=structure_to_value[("protocol",(Option.mapx.protocol~f:HTTPProtocol.to_value));("method",(Option.mapx.method_~f:HTTPMethod.to_value));("url",(Option.mapx.url~f:URL.to_value));("headers",(Option.mapx.headers~f:HTTPHeaders.to_value));("body",(Option.mapx.body~f:HTTPBody.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbody=(Option.map~f:HTTPBody.of_xml)(Xml.childxml_arg0"body")inletheaders=(Option.map~f:HTTPHeaders.of_xml)(Xml.childxml_arg0"headers")inleturl=(Option.map~f:URL.of_xml)(Xml.childxml_arg0"url")inletmethod_=(Option.map~f:HTTPMethod.of_xml)(Xml.childxml_arg0"method")inletprotocol=(Option.map~f:HTTPProtocol.of_xml)(Xml.childxml_arg0"protocol")inmake?body?headers?url?method_?protocol()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbody=field_mapjson__"body"HTTPBody.of_jsoninletheaders=field_mapjson__"headers"HTTPHeaders.of_jsoninleturl=field_mapjson__"url"URL.of_jsoninletmethod_=field_mapjson__"method"HTTPMethod.of_jsoninletprotocol=field_mapjson__"protocol"HTTPProtocol.of_jsoninmake?body?headers?url?method_?protocol()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains additional details about the state's execution, including its input and output data processing flow, and HTTP request information."]moduleInspectionDataResponse=structtypenonrect={protocol:HTTPProtocol.toption[@ocaml.doc"The protocol used to return the HTTP response."];statusCode:HTTPStatusCode.toption[@ocaml.doc"The HTTP response status code for the HTTP response."];statusMessage:HTTPStatusMessage.toption[@ocaml.doc"The message associated with the HTTP status code."];headers:HTTPHeaders.toption[@ocaml.doc"The response headers associated with the HTTP response."];body:HTTPBody.toption[@ocaml.doc"The HTTP response returned."]}letmake?protocol=fun?statusCode->fun?statusMessage->fun?headers->fun?body->fun()->{protocol;statusCode;statusMessage;headers;body}letto_valuex=structure_to_value[("protocol",(Option.mapx.protocol~f:HTTPProtocol.to_value));("statusCode",(Option.mapx.statusCode~f:HTTPStatusCode.to_value));("statusMessage",(Option.mapx.statusMessage~f:HTTPStatusMessage.to_value));("headers",(Option.mapx.headers~f:HTTPHeaders.to_value));("body",(Option.mapx.body~f:HTTPBody.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbody=(Option.map~f:HTTPBody.of_xml)(Xml.childxml_arg0"body")inletheaders=(Option.map~f:HTTPHeaders.of_xml)(Xml.childxml_arg0"headers")inletstatusMessage=(Option.map~f:HTTPStatusMessage.of_xml)(Xml.childxml_arg0"statusMessage")inletstatusCode=(Option.map~f:HTTPStatusCode.of_xml)(Xml.childxml_arg0"statusCode")inletprotocol=(Option.map~f:HTTPProtocol.of_xml)(Xml.childxml_arg0"protocol")inmake?body?headers?statusMessage?statusCode?protocol()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbody=field_mapjson__"body"HTTPBody.of_jsoninletheaders=field_mapjson__"headers"HTTPHeaders.of_jsoninletstatusMessage=field_mapjson__"statusMessage"HTTPStatusMessage.of_jsoninletstatusCode=field_mapjson__"statusCode"HTTPStatusCode.of_jsoninletprotocol=field_mapjson__"protocol"HTTPProtocol.of_jsoninmake?body?headers?statusMessage?statusCode?protocol()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains additional details about the state's execution, including its input and output data processing flow, and HTTP response information. The inspectionLevel request parameter specifies which details are returned."]moduleInspectionErrorDetails=structtypenonrect={catchIndex:ExceptionHandlerIndex.toption[@ocaml.doc"The array index of the Catch which handled the exception."];retryIndex:ExceptionHandlerIndex.toption[@ocaml.doc"The array index of the Retry which handled the exception."];retryBackoffIntervalSeconds:RetryBackoffIntervalSeconds.toption[@ocaml.doc"The duration in seconds of the backoff for a retry on a failed state invocation."]}letmake?catchIndex=fun?retryIndex->fun?retryBackoffIntervalSeconds->fun()->{catchIndex;retryIndex;retryBackoffIntervalSeconds}letto_valuex=structure_to_value[("catchIndex",(Option.mapx.catchIndex~f:ExceptionHandlerIndex.to_value));("retryIndex",(Option.mapx.retryIndex~f:ExceptionHandlerIndex.to_value));("retryBackoffIntervalSeconds",(Option.mapx.retryBackoffIntervalSeconds~f:RetryBackoffIntervalSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letretryBackoffIntervalSeconds=(Option.map~f:RetryBackoffIntervalSeconds.of_xml)(Xml.childxml_arg0"retryBackoffIntervalSeconds")inletretryIndex=(Option.map~f:ExceptionHandlerIndex.of_xml)(Xml.childxml_arg0"retryIndex")inletcatchIndex=(Option.map~f:ExceptionHandlerIndex.of_xml)(Xml.childxml_arg0"catchIndex")inmake?retryBackoffIntervalSeconds?retryIndex?catchIndex()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letretryBackoffIntervalSeconds=field_mapjson__"retryBackoffIntervalSeconds"RetryBackoffIntervalSeconds.of_jsoninletretryIndex=field_mapjson__"retryIndex"ExceptionHandlerIndex.of_jsoninletcatchIndex=field_mapjson__"catchIndex"ExceptionHandlerIndex.of_jsoninmake?retryBackoffIntervalSeconds?retryIndex?catchIndex()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object containing data about a handled exception in the tested state."]moduleInspectionMaxConcurrency=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 InspectionMaxConcurrency"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInspectionToleratedFailureCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 InspectionToleratedFailureCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleInspectionToleratedFailurePercentage=structtypenonrect=floatletmakei=letopenResultinok_or_failwith((check_float_mini~min:100.)>>=(fun()->check_float_mini~min:0.));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_valueendmoduleMockErrorOutput=structtypenonrect={error:SensitiveError.toption[@ocaml.doc"A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified."];cause:SensitiveCause.toption[@ocaml.doc"A string containing the cause of the exception thrown when executing the state's logic."]}letmake?error=fun?cause->fun()->{error;cause}letto_valuex=structure_to_value[("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inmake?cause?error()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninmake?cause?error()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A JSON object that contains a mocked error."]moduleMockResponseValidationMode=structtypenonrect=|STRICT|PRESENT|NONE|Non_static_idofstringletmakei=iletto_string=function|STRICT->"STRICT"|PRESENT->"PRESENT"|NONE->"NONE"|Non_static_ids->sletof_string=function|"STRICT"->STRICT|"PRESENT"->PRESENT|"NONE"->NONE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MockResponseValidationMode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MockResponseValidationMode"j)letto_json=simple_to_jsonto_valueendmoduleMapIterationFailureCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 MapIterationFailureCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRetrierRetryCount=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 RetrierRetryCount"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTestStateStateName=structtypenonrect=stringletcontext_="TestStateStateName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:80)>>=(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:"TestStateStateName"jletto_json=simple_to_jsonto_valueendmoduleTag=structtypenonrect={key:TagKey.toption[@ocaml.doc"The key of a tag."];value:TagValue.toption[@ocaml.doc"The value of a tag."]}letmake?key=fun?value->fun()->{key;value}letto_valuex=structure_to_value[("key",(Option.mapx.key~f:TagKey.to_value));("value",(Option.mapx.value~f:TagValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValue.of_xml)(Xml.childxml_arg0"value")inletkey=(Option.map~f:TagKey.of_xml)(Xml.childxml_arg0"key")inmake?value?key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"TagValue.of_jsoninletkey=field_mapjson__"key"TagKey.of_jsoninmake?value?key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Tags are key-value pairs that can be associated with Step Functions state machines and activities. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."]moduleKmsKeyState=structtypenonrect=|DISABLED|PENDING_DELETION|PENDING_IMPORT|UNAVAILABLE|CREATING|Non_static_idofstringletmakei=iletto_string=function|DISABLED->"DISABLED"|PENDING_DELETION->"PENDING_DELETION"|PENDING_IMPORT->"PENDING_IMPORT"|UNAVAILABLE->"UNAVAILABLE"|CREATING->"CREATING"|Non_static_ids->sletof_string=function|"DISABLED"->DISABLED|"PENDING_DELETION"->PENDING_DELETION|"PENDING_IMPORT"->PENDING_IMPORT|"UNAVAILABLE"->UNAVAILABLE|"CREATING"->CREATING|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 KmsKeyState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"KmsKeyState"j)letto_json=simple_to_jsonto_valueendmoduleBilledDuration=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleBilledMemoryUsed=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleIncludedDetails=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_valueendmoduleStateMachineListItem=structtypenonrect={stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the state machine."];name:Name.toption[@ocaml.doc"The name of the state machine. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];type_:StateMachineType.toption;creationDate:Timestamp.toption[@ocaml.doc"The date the state machine is created."]}letmake?stateMachineArn=fun?name->fun?type_->fun?creationDate->fun()->{stateMachineArn;name;type_;creationDate}letto_valuex=structure_to_value[("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("type",(Option.mapx.type_~f:StateMachineType.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inlettype_=(Option.map~f:StateMachineType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inmake?creationDate?type_?name?stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninlettype_=field_mapjson__"type"StateMachineType.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninmake?creationDate?type_?name?stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the state machine."]moduleStateMachineVersionListItem=structtypenonrect={stateMachineVersionArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a state machine version. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example, stateMachineARN:1."];creationDate:Timestamp.toption[@ocaml.doc"The creation date of a state machine version."]}letmake?stateMachineVersionArn=fun?creationDate->fun()->{stateMachineVersionArn;creationDate}letto_valuex=structure_to_value[("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:LongArn.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletstateMachineVersionArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inmake?creationDate?stateMachineVersionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"LongArn.of_jsoninmake?creationDate?stateMachineVersionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a specific state machine version."]moduleStateMachineAliasListItem=structtypenonrect={stateMachineAliasArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a state machine alias. The alias ARN is a combination of state machine ARN and the alias name separated by a colon (:). For example, stateMachineARN:PROD."];creationDate:Timestamp.toption[@ocaml.doc"The creation date of a state machine alias."]}letmake?stateMachineAliasArn=fun?creationDate->fun()->{stateMachineAliasArn;creationDate}letto_valuex=structure_to_value[("stateMachineAliasArn",(Option.mapx.stateMachineAliasArn~f:LongArn.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletstateMachineAliasArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"stateMachineAliasArn")inmake?creationDate?stateMachineAliasArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletstateMachineAliasArn=field_mapjson__"stateMachineAliasArn"LongArn.of_jsoninmake?creationDate?stateMachineAliasArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a specific state machine alias."]moduleMapRunListItem=structtypenonrect={executionArn:Arn.toption[@ocaml.doc"The executionArn of the execution from which the Map Run was started."];mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Map Run."];stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the executed state machine."];startDate:Timestamp.toption[@ocaml.doc"The date on which the Map Run started."];stopDate:Timestamp.toption[@ocaml.doc"The date on which the Map Run stopped."]}letmake?executionArn=fun?mapRunArn->fun?stateMachineArn->fun?startDate->fun?stopDate->fun()->{executionArn;mapRunArn;stateMachineArn;startDate;stopDate}letto_valuex=structure_to_value[("executionArn",(Option.mapx.executionArn~f:Arn.to_value));("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("startDate",(Option.mapx.startDate~f:Timestamp.to_value));("stopDate",(Option.mapx.stopDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstopDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"stopDate")inletstartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startDate")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inletexecutionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"executionArn")inmake?stopDate?startDate?stateMachineArn?mapRunArn?executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstopDate=field_mapjson__"stopDate"Timestamp.of_jsoninletstartDate=field_mapjson__"startDate"Timestamp.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninletexecutionArn=field_mapjson__"executionArn"Arn.of_jsoninmake?stopDate?startDate?stateMachineArn?mapRunArn?executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about a specific Map Run."]moduleExecutionListItem=structtypenonrect={executionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the execution."];stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine that ran the execution."];name:Name.toption[@ocaml.doc"The name of the execution. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];status:ExecutionStatus.toption[@ocaml.doc"The current status of the execution."];startDate:Timestamp.toption[@ocaml.doc"The date the execution started."];stopDate:Timestamp.toption[@ocaml.doc"If the execution already ended, the date the execution stopped."];mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of a Map Run. This field is returned only if mapRunArn was specified in the ListExecutions API action. If stateMachineArn was specified in ListExecutions, the mapRunArn isn't returned."];itemCount:UnsignedInteger.toption[@ocaml.doc"The total number of items processed in a child workflow execution. This field is returned only if mapRunArn was specified in the ListExecutions API action. If stateMachineArn was specified in ListExecutions, the itemCount field isn't returned."];stateMachineVersionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine version associated with the execution. If the state machine execution was started with an unqualified ARN, it returns null. If the execution was started using a stateMachineAliasArn, both the stateMachineAliasArn and stateMachineVersionArn parameters contain the respective values."];stateMachineAliasArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine alias used to start an execution. If the state machine execution was started with an unqualified ARN or a version ARN, it returns null."];redriveCount:RedriveCount.toption[@ocaml.doc"The number of times you've redriven an execution. If you have not yet redriven an execution, the redriveCount is 0. This count is only updated when you successfully redrive an execution."];redriveDate:Timestamp.toption[@ocaml.doc"The date the execution was last redriven."]}letmake?executionArn=fun?stateMachineArn->fun?name->fun?status->fun?startDate->fun?stopDate->fun?mapRunArn->fun?itemCount->fun?stateMachineVersionArn->fun?stateMachineAliasArn->fun?redriveCount->fun?redriveDate->fun()->{executionArn;stateMachineArn;name;status;startDate;stopDate;mapRunArn;itemCount;stateMachineVersionArn;stateMachineAliasArn;redriveCount;redriveDate}letto_valuex=structure_to_value[("executionArn",(Option.mapx.executionArn~f:Arn.to_value));("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("status",(Option.mapx.status~f:ExecutionStatus.to_value));("startDate",(Option.mapx.startDate~f:Timestamp.to_value));("stopDate",(Option.mapx.stopDate~f:Timestamp.to_value));("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("itemCount",(Option.mapx.itemCount~f:UnsignedInteger.to_value));("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:Arn.to_value));("stateMachineAliasArn",(Option.mapx.stateMachineAliasArn~f:Arn.to_value));("redriveCount",(Option.mapx.redriveCount~f:RedriveCount.to_value));("redriveDate",(Option.mapx.redriveDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"redriveDate")inletredriveCount=(Option.map~f:RedriveCount.of_xml)(Xml.childxml_arg0"redriveCount")inletstateMachineAliasArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineAliasArn")inletstateMachineVersionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inletitemCount=(Option.map~f:UnsignedInteger.of_xml)(Xml.childxml_arg0"itemCount")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inletstopDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"stopDate")inletstartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startDate")inletstatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inletexecutionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"executionArn")inmake?redriveDate?redriveCount?stateMachineAliasArn?stateMachineVersionArn?itemCount?mapRunArn?stopDate?startDate?status?name?stateMachineArn?executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveDate=field_mapjson__"redriveDate"Timestamp.of_jsoninletredriveCount=field_mapjson__"redriveCount"RedriveCount.of_jsoninletstateMachineAliasArn=field_mapjson__"stateMachineAliasArn"Arn.of_jsoninletstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"Arn.of_jsoninletitemCount=field_mapjson__"itemCount"UnsignedInteger.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninletstopDate=field_mapjson__"stopDate"Timestamp.of_jsoninletstartDate=field_mapjson__"startDate"Timestamp.of_jsoninletstatus=field_mapjson__"status"ExecutionStatus.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninletexecutionArn=field_mapjson__"executionArn"Arn.of_jsoninmake?redriveDate?redriveCount?stateMachineAliasArn?stateMachineVersionArn?itemCount?mapRunArn?stopDate?startDate?status?name?stateMachineArn?executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an execution."]moduleActivityListItem=structtypenonrect={activityArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the activity."];name:Name.toption[@ocaml.doc"The name of the activity. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];creationDate:Timestamp.toption[@ocaml.doc"The date the activity is created."]}letmake?activityArn=fun?name->fun?creationDate->fun()->{activityArn;name;creationDate}letto_valuex=structure_to_value[("activityArn",(Option.mapx.activityArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletactivityArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"activityArn")inmake?creationDate?name?activityArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletactivityArn=field_mapjson__"activityArn"Arn.of_jsoninmake?creationDate?name?activityArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about an activity."]moduleHistoryEvent=structtypenonrect={timestamp:Timestamp.toption[@ocaml.doc"The date and time the event occurred, expressed in seconds and fractional milliseconds since the Unix epoch, which is defined as January 1, 1970, at 00:00:00 Coordinated Universal Time (UTC)."];type_:HistoryEventType.toption[@ocaml.doc"The type of the event."];id:EventId.toption[@ocaml.doc"The id of the event. Events are numbered sequentially, starting at one."];previousEventId:EventId.toption[@ocaml.doc"The id of the previous event."];activityFailedEventDetails:ActivityFailedEventDetails.toption;activityScheduleFailedEventDetails:ActivityScheduleFailedEventDetails.toption[@ocaml.doc"Contains details about an activity schedule event that failed during an execution."];activityScheduledEventDetails:ActivityScheduledEventDetails.toption;activityStartedEventDetails:ActivityStartedEventDetails.toption;activitySucceededEventDetails:ActivitySucceededEventDetails.toption;activityTimedOutEventDetails:ActivityTimedOutEventDetails.toption;taskFailedEventDetails:TaskFailedEventDetails.toption[@ocaml.doc"Contains details about the failure of a task."];taskScheduledEventDetails:TaskScheduledEventDetails.toption[@ocaml.doc"Contains details about a task that was scheduled."];taskStartFailedEventDetails:TaskStartFailedEventDetails.toption[@ocaml.doc"Contains details about a task that failed to start."];taskStartedEventDetails:TaskStartedEventDetails.toption[@ocaml.doc"Contains details about a task that was started."];taskSubmitFailedEventDetails:TaskSubmitFailedEventDetails.toption[@ocaml.doc"Contains details about a task that where the submit failed."];taskSubmittedEventDetails:TaskSubmittedEventDetails.toption[@ocaml.doc"Contains details about a submitted task."];taskSucceededEventDetails:TaskSucceededEventDetails.toption[@ocaml.doc"Contains details about a task that succeeded."];taskTimedOutEventDetails:TaskTimedOutEventDetails.toption[@ocaml.doc"Contains details about a task that timed out."];executionFailedEventDetails:ExecutionFailedEventDetails.toption;executionStartedEventDetails:ExecutionStartedEventDetails.toption;executionSucceededEventDetails:ExecutionSucceededEventDetails.toption;executionAbortedEventDetails:ExecutionAbortedEventDetails.toption;executionTimedOutEventDetails:ExecutionTimedOutEventDetails.toption;executionRedrivenEventDetails:ExecutionRedrivenEventDetails.toption[@ocaml.doc"Contains details about the redrive attempt of an execution."];mapStateStartedEventDetails:MapStateStartedEventDetails.toption[@ocaml.doc"Contains details about Map state that was started."];mapIterationStartedEventDetails:MapIterationEventDetails.toption[@ocaml.doc"Contains details about an iteration of a Map state that was started."];mapIterationSucceededEventDetails:MapIterationEventDetails.toption[@ocaml.doc"Contains details about an iteration of a Map state that succeeded."];mapIterationFailedEventDetails:MapIterationEventDetails.toption[@ocaml.doc"Contains details about an iteration of a Map state that failed."];mapIterationAbortedEventDetails:MapIterationEventDetails.toption[@ocaml.doc"Contains details about an iteration of a Map state that was aborted."];lambdaFunctionFailedEventDetails:LambdaFunctionFailedEventDetails.toption;lambdaFunctionScheduleFailedEventDetails:LambdaFunctionScheduleFailedEventDetails.toption;lambdaFunctionScheduledEventDetails:LambdaFunctionScheduledEventDetails.toption;lambdaFunctionStartFailedEventDetails:LambdaFunctionStartFailedEventDetails.toption[@ocaml.doc"Contains details about a lambda function that failed to start during an execution."];lambdaFunctionSucceededEventDetails:LambdaFunctionSucceededEventDetails.toption[@ocaml.doc"Contains details about a Lambda function that terminated successfully during an execution."];lambdaFunctionTimedOutEventDetails:LambdaFunctionTimedOutEventDetails.toption;stateEnteredEventDetails:StateEnteredEventDetails.toption;stateExitedEventDetails:StateExitedEventDetails.toption;mapRunStartedEventDetails:MapRunStartedEventDetails.toption[@ocaml.doc"Contains details, such as mapRunArn, and the start date and time of a Map Run. mapRunArn is the Amazon Resource Name (ARN) of the Map Run that was started."];mapRunFailedEventDetails:MapRunFailedEventDetails.toption[@ocaml.doc"Contains error and cause details about a Map Run that failed."];mapRunRedrivenEventDetails:MapRunRedrivenEventDetails.toption[@ocaml.doc"Contains details about the redrive attempt of a Map Run."];evaluationFailedEventDetails:EvaluationFailedEventDetails.toption[@ocaml.doc"Contains details about an evaluation failure that occurred while processing a state."]}letmake?timestamp=fun?type_->fun?id->fun?previousEventId->fun?activityFailedEventDetails->fun?activityScheduleFailedEventDetails->fun?activityScheduledEventDetails->fun?activityStartedEventDetails->fun?activitySucceededEventDetails->fun?activityTimedOutEventDetails->fun?taskFailedEventDetails->fun?taskScheduledEventDetails->fun?taskStartFailedEventDetails->fun?taskStartedEventDetails->fun?taskSubmitFailedEventDetails->fun?taskSubmittedEventDetails->fun?taskSucceededEventDetails->fun?taskTimedOutEventDetails->fun?executionFailedEventDetails->fun?executionStartedEventDetails->fun?executionSucceededEventDetails->fun?executionAbortedEventDetails->fun?executionTimedOutEventDetails->fun?executionRedrivenEventDetails->fun?mapStateStartedEventDetails->fun?mapIterationStartedEventDetails->fun?mapIterationSucceededEventDetails->fun?mapIterationFailedEventDetails->fun?mapIterationAbortedEventDetails->fun?lambdaFunctionFailedEventDetails->fun?lambdaFunctionScheduleFailedEventDetails->fun?lambdaFunctionScheduledEventDetails->fun?lambdaFunctionStartFailedEventDetails->fun?lambdaFunctionSucceededEventDetails->fun?lambdaFunctionTimedOutEventDetails->fun?stateEnteredEventDetails->fun?stateExitedEventDetails->fun?mapRunStartedEventDetails->fun?mapRunFailedEventDetails->fun?mapRunRedrivenEventDetails->fun?evaluationFailedEventDetails->fun()->{timestamp;type_;id;previousEventId;activityFailedEventDetails;activityScheduleFailedEventDetails;activityScheduledEventDetails;activityStartedEventDetails;activitySucceededEventDetails;activityTimedOutEventDetails;taskFailedEventDetails;taskScheduledEventDetails;taskStartFailedEventDetails;taskStartedEventDetails;taskSubmitFailedEventDetails;taskSubmittedEventDetails;taskSucceededEventDetails;taskTimedOutEventDetails;executionFailedEventDetails;executionStartedEventDetails;executionSucceededEventDetails;executionAbortedEventDetails;executionTimedOutEventDetails;executionRedrivenEventDetails;mapStateStartedEventDetails;mapIterationStartedEventDetails;mapIterationSucceededEventDetails;mapIterationFailedEventDetails;mapIterationAbortedEventDetails;lambdaFunctionFailedEventDetails;lambdaFunctionScheduleFailedEventDetails;lambdaFunctionScheduledEventDetails;lambdaFunctionStartFailedEventDetails;lambdaFunctionSucceededEventDetails;lambdaFunctionTimedOutEventDetails;stateEnteredEventDetails;stateExitedEventDetails;mapRunStartedEventDetails;mapRunFailedEventDetails;mapRunRedrivenEventDetails;evaluationFailedEventDetails}letto_valuex=structure_to_value[("timestamp",(Option.mapx.timestamp~f:Timestamp.to_value));("type",(Option.mapx.type_~f:HistoryEventType.to_value));("id",(Option.mapx.id~f:EventId.to_value));("previousEventId",(Option.mapx.previousEventId~f:EventId.to_value));("activityFailedEventDetails",(Option.mapx.activityFailedEventDetails~f:ActivityFailedEventDetails.to_value));("activityScheduleFailedEventDetails",(Option.mapx.activityScheduleFailedEventDetails~f:ActivityScheduleFailedEventDetails.to_value));("activityScheduledEventDetails",(Option.mapx.activityScheduledEventDetails~f:ActivityScheduledEventDetails.to_value));("activityStartedEventDetails",(Option.mapx.activityStartedEventDetails~f:ActivityStartedEventDetails.to_value));("activitySucceededEventDetails",(Option.mapx.activitySucceededEventDetails~f:ActivitySucceededEventDetails.to_value));("activityTimedOutEventDetails",(Option.mapx.activityTimedOutEventDetails~f:ActivityTimedOutEventDetails.to_value));("taskFailedEventDetails",(Option.mapx.taskFailedEventDetails~f:TaskFailedEventDetails.to_value));("taskScheduledEventDetails",(Option.mapx.taskScheduledEventDetails~f:TaskScheduledEventDetails.to_value));("taskStartFailedEventDetails",(Option.mapx.taskStartFailedEventDetails~f:TaskStartFailedEventDetails.to_value));("taskStartedEventDetails",(Option.mapx.taskStartedEventDetails~f:TaskStartedEventDetails.to_value));("taskSubmitFailedEventDetails",(Option.mapx.taskSubmitFailedEventDetails~f:TaskSubmitFailedEventDetails.to_value));("taskSubmittedEventDetails",(Option.mapx.taskSubmittedEventDetails~f:TaskSubmittedEventDetails.to_value));("taskSucceededEventDetails",(Option.mapx.taskSucceededEventDetails~f:TaskSucceededEventDetails.to_value));("taskTimedOutEventDetails",(Option.mapx.taskTimedOutEventDetails~f:TaskTimedOutEventDetails.to_value));("executionFailedEventDetails",(Option.mapx.executionFailedEventDetails~f:ExecutionFailedEventDetails.to_value));("executionStartedEventDetails",(Option.mapx.executionStartedEventDetails~f:ExecutionStartedEventDetails.to_value));("executionSucceededEventDetails",(Option.mapx.executionSucceededEventDetails~f:ExecutionSucceededEventDetails.to_value));("executionAbortedEventDetails",(Option.mapx.executionAbortedEventDetails~f:ExecutionAbortedEventDetails.to_value));("executionTimedOutEventDetails",(Option.mapx.executionTimedOutEventDetails~f:ExecutionTimedOutEventDetails.to_value));("executionRedrivenEventDetails",(Option.mapx.executionRedrivenEventDetails~f:ExecutionRedrivenEventDetails.to_value));("mapStateStartedEventDetails",(Option.mapx.mapStateStartedEventDetails~f:MapStateStartedEventDetails.to_value));("mapIterationStartedEventDetails",(Option.mapx.mapIterationStartedEventDetails~f:MapIterationEventDetails.to_value));("mapIterationSucceededEventDetails",(Option.mapx.mapIterationSucceededEventDetails~f:MapIterationEventDetails.to_value));("mapIterationFailedEventDetails",(Option.mapx.mapIterationFailedEventDetails~f:MapIterationEventDetails.to_value));("mapIterationAbortedEventDetails",(Option.mapx.mapIterationAbortedEventDetails~f:MapIterationEventDetails.to_value));("lambdaFunctionFailedEventDetails",(Option.mapx.lambdaFunctionFailedEventDetails~f:LambdaFunctionFailedEventDetails.to_value));("lambdaFunctionScheduleFailedEventDetails",(Option.mapx.lambdaFunctionScheduleFailedEventDetails~f:LambdaFunctionScheduleFailedEventDetails.to_value));("lambdaFunctionScheduledEventDetails",(Option.mapx.lambdaFunctionScheduledEventDetails~f:LambdaFunctionScheduledEventDetails.to_value));("lambdaFunctionStartFailedEventDetails",(Option.mapx.lambdaFunctionStartFailedEventDetails~f:LambdaFunctionStartFailedEventDetails.to_value));("lambdaFunctionSucceededEventDetails",(Option.mapx.lambdaFunctionSucceededEventDetails~f:LambdaFunctionSucceededEventDetails.to_value));("lambdaFunctionTimedOutEventDetails",(Option.mapx.lambdaFunctionTimedOutEventDetails~f:LambdaFunctionTimedOutEventDetails.to_value));("stateEnteredEventDetails",(Option.mapx.stateEnteredEventDetails~f:StateEnteredEventDetails.to_value));("stateExitedEventDetails",(Option.mapx.stateExitedEventDetails~f:StateExitedEventDetails.to_value));("mapRunStartedEventDetails",(Option.mapx.mapRunStartedEventDetails~f:MapRunStartedEventDetails.to_value));("mapRunFailedEventDetails",(Option.mapx.mapRunFailedEventDetails~f:MapRunFailedEventDetails.to_value));("mapRunRedrivenEventDetails",(Option.mapx.mapRunRedrivenEventDetails~f:MapRunRedrivenEventDetails.to_value));("evaluationFailedEventDetails",(Option.mapx.evaluationFailedEventDetails~f:EvaluationFailedEventDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevaluationFailedEventDetails=(Option.map~f:EvaluationFailedEventDetails.of_xml)(Xml.childxml_arg0"evaluationFailedEventDetails")inletmapRunRedrivenEventDetails=(Option.map~f:MapRunRedrivenEventDetails.of_xml)(Xml.childxml_arg0"mapRunRedrivenEventDetails")inletmapRunFailedEventDetails=(Option.map~f:MapRunFailedEventDetails.of_xml)(Xml.childxml_arg0"mapRunFailedEventDetails")inletmapRunStartedEventDetails=(Option.map~f:MapRunStartedEventDetails.of_xml)(Xml.childxml_arg0"mapRunStartedEventDetails")inletstateExitedEventDetails=(Option.map~f:StateExitedEventDetails.of_xml)(Xml.childxml_arg0"stateExitedEventDetails")inletstateEnteredEventDetails=(Option.map~f:StateEnteredEventDetails.of_xml)(Xml.childxml_arg0"stateEnteredEventDetails")inletlambdaFunctionTimedOutEventDetails=(Option.map~f:LambdaFunctionTimedOutEventDetails.of_xml)(Xml.childxml_arg0"lambdaFunctionTimedOutEventDetails")inletlambdaFunctionSucceededEventDetails=(Option.map~f:LambdaFunctionSucceededEventDetails.of_xml)(Xml.childxml_arg0"lambdaFunctionSucceededEventDetails")inletlambdaFunctionStartFailedEventDetails=(Option.map~f:LambdaFunctionStartFailedEventDetails.of_xml)(Xml.childxml_arg0"lambdaFunctionStartFailedEventDetails")inletlambdaFunctionScheduledEventDetails=(Option.map~f:LambdaFunctionScheduledEventDetails.of_xml)(Xml.childxml_arg0"lambdaFunctionScheduledEventDetails")inletlambdaFunctionScheduleFailedEventDetails=(Option.map~f:LambdaFunctionScheduleFailedEventDetails.of_xml)(Xml.childxml_arg0"lambdaFunctionScheduleFailedEventDetails")inletlambdaFunctionFailedEventDetails=(Option.map~f:LambdaFunctionFailedEventDetails.of_xml)(Xml.childxml_arg0"lambdaFunctionFailedEventDetails")inletmapIterationAbortedEventDetails=(Option.map~f:MapIterationEventDetails.of_xml)(Xml.childxml_arg0"mapIterationAbortedEventDetails")inletmapIterationFailedEventDetails=(Option.map~f:MapIterationEventDetails.of_xml)(Xml.childxml_arg0"mapIterationFailedEventDetails")inletmapIterationSucceededEventDetails=(Option.map~f:MapIterationEventDetails.of_xml)(Xml.childxml_arg0"mapIterationSucceededEventDetails")inletmapIterationStartedEventDetails=(Option.map~f:MapIterationEventDetails.of_xml)(Xml.childxml_arg0"mapIterationStartedEventDetails")inletmapStateStartedEventDetails=(Option.map~f:MapStateStartedEventDetails.of_xml)(Xml.childxml_arg0"mapStateStartedEventDetails")inletexecutionRedrivenEventDetails=(Option.map~f:ExecutionRedrivenEventDetails.of_xml)(Xml.childxml_arg0"executionRedrivenEventDetails")inletexecutionTimedOutEventDetails=(Option.map~f:ExecutionTimedOutEventDetails.of_xml)(Xml.childxml_arg0"executionTimedOutEventDetails")inletexecutionAbortedEventDetails=(Option.map~f:ExecutionAbortedEventDetails.of_xml)(Xml.childxml_arg0"executionAbortedEventDetails")inletexecutionSucceededEventDetails=(Option.map~f:ExecutionSucceededEventDetails.of_xml)(Xml.childxml_arg0"executionSucceededEventDetails")inletexecutionStartedEventDetails=(Option.map~f:ExecutionStartedEventDetails.of_xml)(Xml.childxml_arg0"executionStartedEventDetails")inletexecutionFailedEventDetails=(Option.map~f:ExecutionFailedEventDetails.of_xml)(Xml.childxml_arg0"executionFailedEventDetails")inlettaskTimedOutEventDetails=(Option.map~f:TaskTimedOutEventDetails.of_xml)(Xml.childxml_arg0"taskTimedOutEventDetails")inlettaskSucceededEventDetails=(Option.map~f:TaskSucceededEventDetails.of_xml)(Xml.childxml_arg0"taskSucceededEventDetails")inlettaskSubmittedEventDetails=(Option.map~f:TaskSubmittedEventDetails.of_xml)(Xml.childxml_arg0"taskSubmittedEventDetails")inlettaskSubmitFailedEventDetails=(Option.map~f:TaskSubmitFailedEventDetails.of_xml)(Xml.childxml_arg0"taskSubmitFailedEventDetails")inlettaskStartedEventDetails=(Option.map~f:TaskStartedEventDetails.of_xml)(Xml.childxml_arg0"taskStartedEventDetails")inlettaskStartFailedEventDetails=(Option.map~f:TaskStartFailedEventDetails.of_xml)(Xml.childxml_arg0"taskStartFailedEventDetails")inlettaskScheduledEventDetails=(Option.map~f:TaskScheduledEventDetails.of_xml)(Xml.childxml_arg0"taskScheduledEventDetails")inlettaskFailedEventDetails=(Option.map~f:TaskFailedEventDetails.of_xml)(Xml.childxml_arg0"taskFailedEventDetails")inletactivityTimedOutEventDetails=(Option.map~f:ActivityTimedOutEventDetails.of_xml)(Xml.childxml_arg0"activityTimedOutEventDetails")inletactivitySucceededEventDetails=(Option.map~f:ActivitySucceededEventDetails.of_xml)(Xml.childxml_arg0"activitySucceededEventDetails")inletactivityStartedEventDetails=(Option.map~f:ActivityStartedEventDetails.of_xml)(Xml.childxml_arg0"activityStartedEventDetails")inletactivityScheduledEventDetails=(Option.map~f:ActivityScheduledEventDetails.of_xml)(Xml.childxml_arg0"activityScheduledEventDetails")inletactivityScheduleFailedEventDetails=(Option.map~f:ActivityScheduleFailedEventDetails.of_xml)(Xml.childxml_arg0"activityScheduleFailedEventDetails")inletactivityFailedEventDetails=(Option.map~f:ActivityFailedEventDetails.of_xml)(Xml.childxml_arg0"activityFailedEventDetails")inletpreviousEventId=(Option.map~f:EventId.of_xml)(Xml.childxml_arg0"previousEventId")inletid=(Option.map~f:EventId.of_xml)(Xml.childxml_arg0"id")inlettype_=(Option.map~f:HistoryEventType.of_xml)(Xml.childxml_arg0"type")inlettimestamp=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"timestamp")inmake?evaluationFailedEventDetails?mapRunRedrivenEventDetails?mapRunFailedEventDetails?mapRunStartedEventDetails?stateExitedEventDetails?stateEnteredEventDetails?lambdaFunctionTimedOutEventDetails?lambdaFunctionSucceededEventDetails?lambdaFunctionStartFailedEventDetails?lambdaFunctionScheduledEventDetails?lambdaFunctionScheduleFailedEventDetails?lambdaFunctionFailedEventDetails?mapIterationAbortedEventDetails?mapIterationFailedEventDetails?mapIterationSucceededEventDetails?mapIterationStartedEventDetails?mapStateStartedEventDetails?executionRedrivenEventDetails?executionTimedOutEventDetails?executionAbortedEventDetails?executionSucceededEventDetails?executionStartedEventDetails?executionFailedEventDetails?taskTimedOutEventDetails?taskSucceededEventDetails?taskSubmittedEventDetails?taskSubmitFailedEventDetails?taskStartedEventDetails?taskStartFailedEventDetails?taskScheduledEventDetails?taskFailedEventDetails?activityTimedOutEventDetails?activitySucceededEventDetails?activityStartedEventDetails?activityScheduledEventDetails?activityScheduleFailedEventDetails?activityFailedEventDetails?previousEventId?id?type_?timestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevaluationFailedEventDetails=field_mapjson__"evaluationFailedEventDetails"EvaluationFailedEventDetails.of_jsoninletmapRunRedrivenEventDetails=field_mapjson__"mapRunRedrivenEventDetails"MapRunRedrivenEventDetails.of_jsoninletmapRunFailedEventDetails=field_mapjson__"mapRunFailedEventDetails"MapRunFailedEventDetails.of_jsoninletmapRunStartedEventDetails=field_mapjson__"mapRunStartedEventDetails"MapRunStartedEventDetails.of_jsoninletstateExitedEventDetails=field_mapjson__"stateExitedEventDetails"StateExitedEventDetails.of_jsoninletstateEnteredEventDetails=field_mapjson__"stateEnteredEventDetails"StateEnteredEventDetails.of_jsoninletlambdaFunctionTimedOutEventDetails=field_mapjson__"lambdaFunctionTimedOutEventDetails"LambdaFunctionTimedOutEventDetails.of_jsoninletlambdaFunctionSucceededEventDetails=field_mapjson__"lambdaFunctionSucceededEventDetails"LambdaFunctionSucceededEventDetails.of_jsoninletlambdaFunctionStartFailedEventDetails=field_mapjson__"lambdaFunctionStartFailedEventDetails"LambdaFunctionStartFailedEventDetails.of_jsoninletlambdaFunctionScheduledEventDetails=field_mapjson__"lambdaFunctionScheduledEventDetails"LambdaFunctionScheduledEventDetails.of_jsoninletlambdaFunctionScheduleFailedEventDetails=field_mapjson__"lambdaFunctionScheduleFailedEventDetails"LambdaFunctionScheduleFailedEventDetails.of_jsoninletlambdaFunctionFailedEventDetails=field_mapjson__"lambdaFunctionFailedEventDetails"LambdaFunctionFailedEventDetails.of_jsoninletmapIterationAbortedEventDetails=field_mapjson__"mapIterationAbortedEventDetails"MapIterationEventDetails.of_jsoninletmapIterationFailedEventDetails=field_mapjson__"mapIterationFailedEventDetails"MapIterationEventDetails.of_jsoninletmapIterationSucceededEventDetails=field_mapjson__"mapIterationSucceededEventDetails"MapIterationEventDetails.of_jsoninletmapIterationStartedEventDetails=field_mapjson__"mapIterationStartedEventDetails"MapIterationEventDetails.of_jsoninletmapStateStartedEventDetails=field_mapjson__"mapStateStartedEventDetails"MapStateStartedEventDetails.of_jsoninletexecutionRedrivenEventDetails=field_mapjson__"executionRedrivenEventDetails"ExecutionRedrivenEventDetails.of_jsoninletexecutionTimedOutEventDetails=field_mapjson__"executionTimedOutEventDetails"ExecutionTimedOutEventDetails.of_jsoninletexecutionAbortedEventDetails=field_mapjson__"executionAbortedEventDetails"ExecutionAbortedEventDetails.of_jsoninletexecutionSucceededEventDetails=field_mapjson__"executionSucceededEventDetails"ExecutionSucceededEventDetails.of_jsoninletexecutionStartedEventDetails=field_mapjson__"executionStartedEventDetails"ExecutionStartedEventDetails.of_jsoninletexecutionFailedEventDetails=field_mapjson__"executionFailedEventDetails"ExecutionFailedEventDetails.of_jsoninlettaskTimedOutEventDetails=field_mapjson__"taskTimedOutEventDetails"TaskTimedOutEventDetails.of_jsoninlettaskSucceededEventDetails=field_mapjson__"taskSucceededEventDetails"TaskSucceededEventDetails.of_jsoninlettaskSubmittedEventDetails=field_mapjson__"taskSubmittedEventDetails"TaskSubmittedEventDetails.of_jsoninlettaskSubmitFailedEventDetails=field_mapjson__"taskSubmitFailedEventDetails"TaskSubmitFailedEventDetails.of_jsoninlettaskStartedEventDetails=field_mapjson__"taskStartedEventDetails"TaskStartedEventDetails.of_jsoninlettaskStartFailedEventDetails=field_mapjson__"taskStartFailedEventDetails"TaskStartFailedEventDetails.of_jsoninlettaskScheduledEventDetails=field_mapjson__"taskScheduledEventDetails"TaskScheduledEventDetails.of_jsoninlettaskFailedEventDetails=field_mapjson__"taskFailedEventDetails"TaskFailedEventDetails.of_jsoninletactivityTimedOutEventDetails=field_mapjson__"activityTimedOutEventDetails"ActivityTimedOutEventDetails.of_jsoninletactivitySucceededEventDetails=field_mapjson__"activitySucceededEventDetails"ActivitySucceededEventDetails.of_jsoninletactivityStartedEventDetails=field_mapjson__"activityStartedEventDetails"ActivityStartedEventDetails.of_jsoninletactivityScheduledEventDetails=field_mapjson__"activityScheduledEventDetails"ActivityScheduledEventDetails.of_jsoninletactivityScheduleFailedEventDetails=field_mapjson__"activityScheduleFailedEventDetails"ActivityScheduleFailedEventDetails.of_jsoninletactivityFailedEventDetails=field_mapjson__"activityFailedEventDetails"ActivityFailedEventDetails.of_jsoninletpreviousEventId=field_mapjson__"previousEventId"EventId.of_jsoninletid=field_mapjson__"id"EventId.of_jsoninlettype_=field_mapjson__"type"HistoryEventType.of_jsoninlettimestamp=field_mapjson__"timestamp"Timestamp.of_jsoninmake?evaluationFailedEventDetails?mapRunRedrivenEventDetails?mapRunFailedEventDetails?mapRunStartedEventDetails?stateExitedEventDetails?stateEnteredEventDetails?lambdaFunctionTimedOutEventDetails?lambdaFunctionSucceededEventDetails?lambdaFunctionStartFailedEventDetails?lambdaFunctionScheduledEventDetails?lambdaFunctionScheduleFailedEventDetails?lambdaFunctionFailedEventDetails?mapIterationAbortedEventDetails?mapIterationFailedEventDetails?mapIterationSucceededEventDetails?mapIterationStartedEventDetails?mapStateStartedEventDetails?executionRedrivenEventDetails?executionTimedOutEventDetails?executionAbortedEventDetails?executionSucceededEventDetails?executionStartedEventDetails?executionFailedEventDetails?taskTimedOutEventDetails?taskSucceededEventDetails?taskSubmittedEventDetails?taskSubmitFailedEventDetails?taskStartedEventDetails?taskStartFailedEventDetails?taskScheduledEventDetails?taskFailedEventDetails?activityTimedOutEventDetails?activitySucceededEventDetails?activityStartedEventDetails?activityScheduledEventDetails?activityScheduleFailedEventDetails?activityFailedEventDetails?previousEventId?id?type_?timestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about the events of an execution."]moduleVariableNameList=structtypenonrect=VariableName.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:VariableName.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:VariableName.of_xml)letof_jsonj=list_of_json~kind:"VariableNameList"~of_json:VariableName.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLongObject=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_valueendmoduleUnsignedLong=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleValidateStateMachineDefinitionDiagnosticList=structtypenonrect=ValidateStateMachineDefinitionDiagnostic.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidateStateMachineDefinitionDiagnostic.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:ValidateStateMachineDefinitionDiagnostic.of_xml)letof_jsonj=list_of_json~kind:"ValidateStateMachineDefinitionDiagnosticList"~of_json:ValidateStateMachineDefinitionDiagnostic.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidateStateMachineDefinitionResultCode=structtypenonrect=|OK|FAIL|Non_static_idofstringletmakei=iletto_string=function|OK->"OK"|FAIL->"FAIL"|Non_static_ids->sletof_string=function|"OK"->OK|"FAIL"->FAIL|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 ValidateStateMachineDefinitionResultCode"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidateStateMachineDefinitionResultCode"j)letto_json=simple_to_jsonto_valueendmoduleValidateStateMachineDefinitionTruncated=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_valueendmoduleValidationException=structtypenonrect={message:ErrorMessage.toption;reason:ValidationExceptionReason.toption[@ocaml.doc"The input does not satisfy the constraints specified by an Amazon Web Services service."]}letmake?message=fun?reason->fun()->{message;reason}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("reason",(Option.mapx.reason~f:ValidationExceptionReason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreason=(Option.map~f:ValidationExceptionReason.of_xml)(Xml.childxml_arg0"reason")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?reason?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreason=field_mapjson__"reason"ValidationExceptionReason.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?reason?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input does not satisfy the constraints specified by an Amazon Web Services service."]moduleDefinition=structtypenonrect=stringletcontext_="Definition"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1048576)>>=(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:"Definition"jletto_json=simple_to_jsonto_valueendmoduleValidateStateMachineDefinitionMaxResult=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));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 ValidateStateMachineDefinitionMaxResult"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the publish parameter set to true. HTTP Status Code: 409"]moduleInvalidArn=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided Amazon Resource Name (ARN) is not valid."]moduleInvalidDefinition=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided Amazon States Language definition is not valid."]moduleInvalidEncryptionConfiguration=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Received when encryptionConfiguration is specified but various conditions exist which make the configuration invalid. For example, if type is set to CUSTOMER_MANAGED_KMS_KEY, but kmsKeyId is null, or kmsDataKeyReusePeriodSeconds is not between 60 and 900, or the KMS key is not symmetric or inactive."]moduleInvalidLoggingConfiguration=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration is not valid."]moduleInvalidTracingConfiguration=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Your tracingConfiguration key does not match, or enabled has not been set to true or false."]moduleKmsAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Either your KMS key policy or API caller does not have the required permissions."]moduleKmsThrottlingException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Received when KMS returns ThrottlingException for a KMS call that Step Functions makes on behalf of the caller."]moduleMissingRequiredParameter=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request is missing a required parameter. This error occurs if both definition and roleArn are not specified."]moduleRevisionId=structtypenonrect=stringletcontext_="RevisionId"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:"RevisionId"jletto_json=simple_to_jsonto_valueendmoduleServiceQuotaExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request would cause a service quota to be exceeded. HTTP Status Code: 402"]moduleStateMachineDeleting=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified state machine is being deleted."]moduleStateMachineDoesNotExist=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified state machine does not exist."]moduleEncryptionConfiguration=structtypenonrect={kmsKeyId:KmsKeyId.toption[@ocaml.doc"An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN."];kmsDataKeyReusePeriodSeconds:KmsDataKeyReusePeriodSeconds.toption[@ocaml.doc"Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will call GenerateDataKey. Only applies to customer managed keys."];type_:EncryptionType.t[@ocaml.doc"Encryption type"]}letcontext_="EncryptionConfiguration"letmake?kmsKeyId=fun?kmsDataKeyReusePeriodSeconds->fun~type_->fun()->{kmsKeyId;kmsDataKeyReusePeriodSeconds;type_}letto_valuex=structure_to_value[("kmsKeyId",(Option.mapx.kmsKeyId~f:KmsKeyId.to_value));("kmsDataKeyReusePeriodSeconds",(Option.mapx.kmsDataKeyReusePeriodSeconds~f:KmsDataKeyReusePeriodSeconds.to_value));("type",(Some(EncryptionType.to_valuex.type_)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=EncryptionType.of_xml(Xml.child_exn~context:context_xml_arg0"type")inletkmsDataKeyReusePeriodSeconds=(Option.map~f:KmsDataKeyReusePeriodSeconds.of_xml)(Xml.childxml_arg0"kmsDataKeyReusePeriodSeconds")inletkmsKeyId=(Option.map~f:KmsKeyId.of_xml)(Xml.childxml_arg0"kmsKeyId")inmake~type_?kmsDataKeyReusePeriodSeconds?kmsKeyId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_map_exnjson__"type"EncryptionType.of_jsoninletkmsDataKeyReusePeriodSeconds=field_mapjson__"kmsDataKeyReusePeriodSeconds"KmsDataKeyReusePeriodSeconds.of_jsoninletkmsKeyId=field_mapjson__"kmsKeyId"KmsKeyId.of_jsoninmake~type_?kmsDataKeyReusePeriodSeconds?kmsKeyId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Settings to configure server-side encryption. For additional control over security, you can encrypt your data using a customer-managed key for Step Functions state machines and activities. You can configure a symmetric KMS key and data key reuse period when creating or updating a State Machine, and when creating an Activity. The execution history and state machine definition will be encrypted with the key applied to the State Machine. Activity inputs will be encrypted with the key applied to the Activity. Step Functions automatically enables encryption at rest using Amazon Web Services owned keys at no charge. However, KMS charges apply when using a customer managed key. For more information about pricing, see Key Management Service pricing. For more information on KMS, see What is Key Management Service?"]moduleLoggingConfiguration=structtypenonrect={level:LogLevel.toption[@ocaml.doc"Defines which category of execution history events are logged."];includeExecutionData:IncludeExecutionData.toption[@ocaml.doc"Determines whether execution data is included in your log. When set to false, data is excluded."];destinations:LogDestinationList.toption[@ocaml.doc"An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to OFF."]}letmake?level=fun?includeExecutionData->fun?destinations->fun()->{level;includeExecutionData;destinations}letto_valuex=structure_to_value[("level",(Option.mapx.level~f:LogLevel.to_value));("includeExecutionData",(Option.mapx.includeExecutionData~f:IncludeExecutionData.to_value));("destinations",(Option.mapx.destinations~f:LogDestinationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinations=(Option.map~f:LogDestinationList.of_xml)(Xml.childxml_arg0"destinations")inletincludeExecutionData=(Option.map~f:IncludeExecutionData.of_xml)(Xml.childxml_arg0"includeExecutionData")inletlevel=(Option.map~f:LogLevel.of_xml)(Xml.childxml_arg0"level")inmake?destinations?includeExecutionData?level()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinations=field_mapjson__"destinations"LogDestinationList.of_jsoninletincludeExecutionData=field_mapjson__"includeExecutionData"IncludeExecutionData.of_jsoninletlevel=field_mapjson__"level"LogLevel.of_jsoninmake?destinations?includeExecutionData?level()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The LoggingConfiguration data type is used to set CloudWatch Logs options."]modulePublish=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_valueendmoduleTracingConfiguration=structtypenonrect={enabled:Enabled.toption[@ocaml.doc"When set to true, X-Ray tracing is enabled."]}letmake?enabled=fun()->{enabled}letto_valuex=structure_to_value[("enabled",(Option.mapx.enabled~f:Enabled.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letenabled=(Option.map~f:Enabled.of_xml)(Xml.childxml_arg0"enabled")inmake?enabled()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letenabled=field_mapjson__"enabled"Enabled.of_jsoninmake?enabled()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Selects whether or not the state machine's X-Ray tracing is enabled. Default is false"]moduleVersionDescription=structtypenonrect=stringletcontext_="VersionDescription"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:"VersionDescription"jletto_json=simple_to_jsonto_valueendmoduleResourceNotFound=structtypenonrect={message:ErrorMessage.toption;resourceName:Arn.toption}letmake?message=fun?resourceName->fun()->{message;resourceName}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceName",(Option.mapx.resourceName~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceName=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"resourceName")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceName?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceName=field_mapjson__"resourceName"Arn.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceName?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Could not find the referenced resource."]moduleAliasDescription=structtypenonrect=stringletcontext_="AliasDescription"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:"AliasDescription"jletto_json=simple_to_jsonto_valueendmoduleRoutingConfigurationList=structtypenonrect=RoutingConfigurationListItem.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:2)>>=(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:RoutingConfigurationListItem.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:RoutingConfigurationListItem.of_xml)letof_jsonj=list_of_json~kind:"RoutingConfigurationList"~of_json:RoutingConfigurationListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxConcurrency=structtypenonrect=intletmakei=letopenResultinok_or_failwith(check_int_mini~min:0);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 MaxConcurrency"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleToleratedFailureCount=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:0L);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_valueendmoduleToleratedFailurePercentage=structtypenonrect=floatletmakei=letopenResultinok_or_failwith((check_float_mini~min:100.)>>=(fun()->check_float_mini~min:0.));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_valueendmoduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleInspectionData=structtypenonrect={input:SensitiveData.toption[@ocaml.doc"The raw state input."];afterArguments:SensitiveData.toption[@ocaml.doc"The input after Step Functions applies an Arguments filter. This event will only be present when QueryLanguage for the state machine or individual states is set to JSONata. For more info, see Transforming data with Step Functions."];afterInputPath:SensitiveData.toption[@ocaml.doc"The input after Step Functions applies the InputPath filter. Not populated when QueryLanguage is JSONata."];afterParameters:SensitiveData.toption[@ocaml.doc"The effective input after Step Functions applies the Parameters filter. Not populated when QueryLanguage is JSONata."];result:SensitiveData.toption[@ocaml.doc"The state's raw result."];afterResultSelector:SensitiveData.toption[@ocaml.doc"The effective result after Step Functions applies the ResultSelector filter. Not populated when QueryLanguage is JSONata."];afterResultPath:SensitiveData.toption[@ocaml.doc"The effective result combined with the raw state input after Step Functions applies the ResultPath filter. Not populated when QueryLanguage is JSONata."];request:InspectionDataRequest.toption[@ocaml.doc"The raw HTTP request that is sent when you test an HTTP Task."];response:InspectionDataResponse.toption[@ocaml.doc"The raw HTTP response that is returned when you test an HTTP Task."];variables:SensitiveData.toption[@ocaml.doc"JSON string that contains the set of workflow variables after execution of the state. The set will include variables assigned in the state and variables set up as test state input."];errorDetails:InspectionErrorDetails.toption[@ocaml.doc"An object containing data about a handled exception in the tested state."];afterItemsPath:SensitiveData.toption[@ocaml.doc"The effective input after the ItemsPath filter is applied. Not populated when the QueryLanguage is JSONata."];afterItemSelector:SensitiveData.toption[@ocaml.doc"An array containing the inputs for each Map iteration, transformed by the ItemSelector specified in a Map state."];afterItemBatcher:SensitiveData.toption[@ocaml.doc"The effective input after the ItemBatcher filter is applied in a Map state."];afterItemsPointer:SensitiveData.toption[@ocaml.doc"The effective input after the ItemsPointer filter is applied in a Map state."];toleratedFailureCount:InspectionToleratedFailureCount.toption[@ocaml.doc"The tolerated failure threshold for a Map state as defined in number of Map state iterations."];toleratedFailurePercentage:InspectionToleratedFailurePercentage.toption[@ocaml.doc"The tolerated failure threshold for a Map state as defined in percentage of Map state iterations."];maxConcurrency:InspectionMaxConcurrency.toption[@ocaml.doc"The max concurrency of the Map state."]}letmake?input=fun?afterArguments->fun?afterInputPath->fun?afterParameters->fun?result->fun?afterResultSelector->fun?afterResultPath->fun?request->fun?response->fun?variables->fun?errorDetails->fun?afterItemsPath->fun?afterItemSelector->fun?afterItemBatcher->fun?afterItemsPointer->fun?toleratedFailureCount->fun?toleratedFailurePercentage->fun?maxConcurrency->fun()->{input;afterArguments;afterInputPath;afterParameters;result;afterResultSelector;afterResultPath;request;response;variables;errorDetails;afterItemsPath;afterItemSelector;afterItemBatcher;afterItemsPointer;toleratedFailureCount;toleratedFailurePercentage;maxConcurrency}letto_valuex=structure_to_value[("input",(Option.mapx.input~f:SensitiveData.to_value));("afterArguments",(Option.mapx.afterArguments~f:SensitiveData.to_value));("afterInputPath",(Option.mapx.afterInputPath~f:SensitiveData.to_value));("afterParameters",(Option.mapx.afterParameters~f:SensitiveData.to_value));("result",(Option.mapx.result~f:SensitiveData.to_value));("afterResultSelector",(Option.mapx.afterResultSelector~f:SensitiveData.to_value));("afterResultPath",(Option.mapx.afterResultPath~f:SensitiveData.to_value));("request",(Option.mapx.request~f:InspectionDataRequest.to_value));("response",(Option.mapx.response~f:InspectionDataResponse.to_value));("variables",(Option.mapx.variables~f:SensitiveData.to_value));("errorDetails",(Option.mapx.errorDetails~f:InspectionErrorDetails.to_value));("afterItemsPath",(Option.mapx.afterItemsPath~f:SensitiveData.to_value));("afterItemSelector",(Option.mapx.afterItemSelector~f:SensitiveData.to_value));("afterItemBatcher",(Option.mapx.afterItemBatcher~f:SensitiveData.to_value));("afterItemsPointer",(Option.mapx.afterItemsPointer~f:SensitiveData.to_value));("toleratedFailureCount",(Option.mapx.toleratedFailureCount~f:InspectionToleratedFailureCount.to_value));("toleratedFailurePercentage",(Option.mapx.toleratedFailurePercentage~f:InspectionToleratedFailurePercentage.to_value));("maxConcurrency",(Option.mapx.maxConcurrency~f:InspectionMaxConcurrency.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxConcurrency=(Option.map~f:InspectionMaxConcurrency.of_xml)(Xml.childxml_arg0"maxConcurrency")inlettoleratedFailurePercentage=(Option.map~f:InspectionToleratedFailurePercentage.of_xml)(Xml.childxml_arg0"toleratedFailurePercentage")inlettoleratedFailureCount=(Option.map~f:InspectionToleratedFailureCount.of_xml)(Xml.childxml_arg0"toleratedFailureCount")inletafterItemsPointer=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterItemsPointer")inletafterItemBatcher=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterItemBatcher")inletafterItemSelector=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterItemSelector")inletafterItemsPath=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterItemsPath")inleterrorDetails=(Option.map~f:InspectionErrorDetails.of_xml)(Xml.childxml_arg0"errorDetails")inletvariables=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"variables")inletresponse=(Option.map~f:InspectionDataResponse.of_xml)(Xml.childxml_arg0"response")inletrequest=(Option.map~f:InspectionDataRequest.of_xml)(Xml.childxml_arg0"request")inletafterResultPath=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterResultPath")inletafterResultSelector=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterResultSelector")inletresult=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"result")inletafterParameters=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterParameters")inletafterInputPath=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterInputPath")inletafterArguments=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"afterArguments")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inmake?maxConcurrency?toleratedFailurePercentage?toleratedFailureCount?afterItemsPointer?afterItemBatcher?afterItemSelector?afterItemsPath?errorDetails?variables?response?request?afterResultPath?afterResultSelector?result?afterParameters?afterInputPath?afterArguments?input()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxConcurrency=field_mapjson__"maxConcurrency"InspectionMaxConcurrency.of_jsoninlettoleratedFailurePercentage=field_mapjson__"toleratedFailurePercentage"InspectionToleratedFailurePercentage.of_jsoninlettoleratedFailureCount=field_mapjson__"toleratedFailureCount"InspectionToleratedFailureCount.of_jsoninletafterItemsPointer=field_mapjson__"afterItemsPointer"SensitiveData.of_jsoninletafterItemBatcher=field_mapjson__"afterItemBatcher"SensitiveData.of_jsoninletafterItemSelector=field_mapjson__"afterItemSelector"SensitiveData.of_jsoninletafterItemsPath=field_mapjson__"afterItemsPath"SensitiveData.of_jsoninleterrorDetails=field_mapjson__"errorDetails"InspectionErrorDetails.of_jsoninletvariables=field_mapjson__"variables"SensitiveData.of_jsoninletresponse=field_mapjson__"response"InspectionDataResponse.of_jsoninletrequest=field_mapjson__"request"InspectionDataRequest.of_jsoninletafterResultPath=field_mapjson__"afterResultPath"SensitiveData.of_jsoninletafterResultSelector=field_mapjson__"afterResultSelector"SensitiveData.of_jsoninletresult=field_mapjson__"result"SensitiveData.of_jsoninletafterParameters=field_mapjson__"afterParameters"SensitiveData.of_jsoninletafterInputPath=field_mapjson__"afterInputPath"SensitiveData.of_jsoninletafterArguments=field_mapjson__"afterArguments"SensitiveData.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninmake?maxConcurrency?toleratedFailurePercentage?toleratedFailureCount?afterItemsPointer?afterItemBatcher?afterItemSelector?afterItemsPath?errorDetails?variables?response?request?afterResultPath?afterResultSelector?result?afterParameters?afterInputPath?afterArguments?input()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information."]moduleInvalidExecutionInput=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided JSON input data is not valid."]moduleTestExecutionStatus=structtypenonrect=|SUCCEEDED|FAILED|RETRIABLE|CAUGHT_ERROR|Non_static_idofstringletmakei=iletto_string=function|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|RETRIABLE->"RETRIABLE"|CAUGHT_ERROR->"CAUGHT_ERROR"|Non_static_ids->sletof_string=function|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"RETRIABLE"->RETRIABLE|"CAUGHT_ERROR"->CAUGHT_ERROR|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 TestExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TestExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleInspectionLevel=structtypenonrect=|INFO|DEBUG|TRACE|Non_static_idofstringletmakei=iletto_string=function|INFO->"INFO"|DEBUG->"DEBUG"|TRACE->"TRACE"|Non_static_ids->sletof_string=function|"INFO"->INFO|"DEBUG"->DEBUG|"TRACE"->TRACE|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 InspectionLevel"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"InspectionLevel"j)letto_json=simple_to_jsonto_valueendmoduleMockInput=structtypenonrect={result:SensitiveData.toption[@ocaml.doc"A JSON string containing the mocked result of the state invocation."];errorOutput:MockErrorOutput.toption[@ocaml.doc"The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON object that contains an error and cause field."];fieldValidationMode:MockResponseValidationMode.toption[@ocaml.doc"Determines the level of strictness when validating mocked results against their respective API models. Values include: STRICT: All required fields must be present, and all present fields must conform to the API's schema. PRESENT: All present fields must conform to the API's schema. NONE: No validation is performed. If no value is specified, the default value is STRICT."]}letmake?result=fun?errorOutput->fun?fieldValidationMode->fun()->{result;errorOutput;fieldValidationMode}letto_valuex=structure_to_value[("result",(Option.mapx.result~f:SensitiveData.to_value));("errorOutput",(Option.mapx.errorOutput~f:MockErrorOutput.to_value));("fieldValidationMode",(Option.mapx.fieldValidationMode~f:MockResponseValidationMode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldValidationMode=(Option.map~f:MockResponseValidationMode.of_xml)(Xml.childxml_arg0"fieldValidationMode")inleterrorOutput=(Option.map~f:MockErrorOutput.of_xml)(Xml.childxml_arg0"errorOutput")inletresult=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"result")inmake?fieldValidationMode?errorOutput?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldValidationMode=field_mapjson__"fieldValidationMode"MockResponseValidationMode.of_jsoninleterrorOutput=field_mapjson__"errorOutput"MockErrorOutput.of_jsoninletresult=field_mapjson__"result"SensitiveData.of_jsoninmake?fieldValidationMode?errorOutput?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A JSON object that contains a mocked result or errorOutput."]moduleRevealSecrets=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_valueendmoduleTestStateConfiguration=structtypenonrect={retrierRetryCount:RetrierRetryCount.toption[@ocaml.doc"The number of retry attempts that have occurred for the state's Retry that applies to the mocked error."];errorCausedByState:TestStateStateName.toption[@ocaml.doc"The name of the state from which an error originates when an error is mocked for a Map or Parallel state."];mapIterationFailureCount:MapIterationFailureCount.toption[@ocaml.doc"The number of Map state iterations that failed during the Map state invocation."];mapItemReaderData:SensitiveData.toption[@ocaml.doc"The data read by ItemReader in Distributed Map states as found in its original source."]}letmake?retrierRetryCount=fun?errorCausedByState->fun?mapIterationFailureCount->fun?mapItemReaderData->fun()->{retrierRetryCount;errorCausedByState;mapIterationFailureCount;mapItemReaderData}letto_valuex=structure_to_value[("retrierRetryCount",(Option.mapx.retrierRetryCount~f:RetrierRetryCount.to_value));("errorCausedByState",(Option.mapx.errorCausedByState~f:TestStateStateName.to_value));("mapIterationFailureCount",(Option.mapx.mapIterationFailureCount~f:MapIterationFailureCount.to_value));("mapItemReaderData",(Option.mapx.mapItemReaderData~f:SensitiveData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmapItemReaderData=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"mapItemReaderData")inletmapIterationFailureCount=(Option.map~f:MapIterationFailureCount.of_xml)(Xml.childxml_arg0"mapIterationFailureCount")inleterrorCausedByState=(Option.map~f:TestStateStateName.of_xml)(Xml.childxml_arg0"errorCausedByState")inletretrierRetryCount=(Option.map~f:RetrierRetryCount.of_xml)(Xml.childxml_arg0"retrierRetryCount")inmake?mapItemReaderData?mapIterationFailureCount?errorCausedByState?retrierRetryCount()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmapItemReaderData=field_mapjson__"mapItemReaderData"SensitiveData.of_jsoninletmapIterationFailureCount=field_mapjson__"mapIterationFailureCount"MapIterationFailureCount.of_jsoninleterrorCausedByState=field_mapjson__"errorCausedByState"TestStateStateName.of_jsoninletretrierRetryCount=field_mapjson__"retrierRetryCount"RetrierRetryCount.of_jsoninmake?mapItemReaderData?mapIterationFailureCount?errorCausedByState?retrierRetryCount()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains configurations for the tested state."]moduleTooManyTags=structtypenonrect={message:ErrorMessage.toption;resourceName:Arn.toption}letmake?message=fun?resourceName->fun()->{message;resourceName}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value));("resourceName",(Option.mapx.resourceName~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceName=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"resourceName")inletmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?resourceName?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceName=field_mapjson__"resourceName"Arn.of_jsoninletmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?resourceName?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide."]moduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExecutionDoesNotExist=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified execution does not exist."]moduleKmsInvalidStateException=structtypenonrect={kmsKeyState:KmsKeyState.toption[@ocaml.doc"Current status of the KMS; key. For example: DISABLED, PENDING_DELETION, PENDING_IMPORT, UNAVAILABLE, CREATING."];message:ErrorMessage.toption}letmake?kmsKeyState=fun?message->fun()->{kmsKeyState;message}letto_valuex=structure_to_value[("kmsKeyState",(Option.mapx.kmsKeyState~f:KmsKeyState.to_value));("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inletkmsKeyState=(Option.map~f:KmsKeyState.of_xml)(Xml.childxml_arg0"kmsKeyState")inmake?message?kmsKeyState()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninletkmsKeyState=field_mapjson__"kmsKeyState"KmsKeyState.of_jsoninmake?message?kmsKeyState()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The KMS key is not in valid state, for example: Disabled or Deleted."]moduleBillingDetails=structtypenonrect={billedMemoryUsedInMB:BilledMemoryUsed.toption[@ocaml.doc"Billed memory consumption of your workflow, in MB."];billedDurationInMilliseconds:BilledDuration.toption[@ocaml.doc"Billed duration of your workflow, in milliseconds."]}letmake?billedMemoryUsedInMB=fun?billedDurationInMilliseconds->fun()->{billedMemoryUsedInMB;billedDurationInMilliseconds}letto_valuex=structure_to_value[("billedMemoryUsedInMB",(Option.mapx.billedMemoryUsedInMB~f:BilledMemoryUsed.to_value));("billedDurationInMilliseconds",(Option.mapx.billedDurationInMilliseconds~f:BilledDuration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbilledDurationInMilliseconds=(Option.map~f:BilledDuration.of_xml)(Xml.childxml_arg0"billedDurationInMilliseconds")inletbilledMemoryUsedInMB=(Option.map~f:BilledMemoryUsed.of_xml)(Xml.childxml_arg0"billedMemoryUsedInMB")inmake?billedDurationInMilliseconds?billedMemoryUsedInMB()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbilledDurationInMilliseconds=field_mapjson__"billedDurationInMilliseconds"BilledDuration.of_jsoninletbilledMemoryUsedInMB=field_mapjson__"billedMemoryUsedInMB"BilledMemoryUsed.of_jsoninmake?billedDurationInMilliseconds?billedMemoryUsedInMB()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An object that describes workflow billing details."]moduleCloudWatchEventsExecutionDataDetails=structtypenonrect={included:IncludedDetails.toption[@ocaml.doc"Indicates whether input or output was included in the response. Always true for API calls."]}letmake?included=fun()->{included}letto_valuex=structure_to_value[("included",(Option.mapx.included~f:IncludedDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincluded=(Option.map~f:IncludedDetails.of_xml)(Xml.childxml_arg0"included")inmake?included()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincluded=field_mapjson__"included"IncludedDetails.of_jsoninmake?included()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides details about execution input or output."]moduleInvalidName=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided name is not valid."]moduleStateMachineTypeNotSupported=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"State machine type is not supported."]moduleSyncExecutionStatus=structtypenonrect=|SUCCEEDED|FAILED|TIMED_OUT|Non_static_idofstringletmakei=iletto_string=function|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|TIMED_OUT->"TIMED_OUT"|Non_static_ids->sletof_string=function|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"TIMED_OUT"->TIMED_OUT|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 SyncExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SyncExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleTraceHeader=structtypenonrect=stringletcontext_="TraceHeader"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"\\p{ASCII}*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TraceHeader"jletto_json=simple_to_jsonto_valueendmoduleIncludedData=structtypenonrect=|ALL_DATA|METADATA_ONLY|Non_static_idofstringletmakei=iletto_string=function|ALL_DATA->"ALL_DATA"|METADATA_ONLY->"METADATA_ONLY"|Non_static_ids->sletof_string=function|"ALL_DATA"->ALL_DATA|"METADATA_ONLY"->METADATA_ONLY|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 IncludedData"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IncludedData"j)letto_json=simple_to_jsonto_valueendmoduleExecutionAlreadyExists=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The execution has the same name as another execution (but a different input). Executions with the same name and input are considered idempotent."]moduleExecutionLimitExceeded=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started."]moduleInvalidOutput=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided JSON output data is not valid."]moduleInvalidToken=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The provided token is not valid."]moduleTaskDoesNotExist=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The activity does not exist."]moduleTaskTimedOut=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The task token has either expired or the task associated with the token has already been closed."]moduleTaskToken=structtypenonrect=stringletcontext_="TaskToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(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:"TaskToken"jletto_json=simple_to_jsonto_valueendmoduleExecutionNotRedrivable=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The execution Amazon Resource Name (ARN) that you specified for executionArn cannot be redriven."]moduleClientToken=structtypenonrect=stringletcontext_="ClientToken"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[!-~]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientToken"jletto_json=simple_to_jsonto_valueendmodulePageToken=structtypenonrect=stringletcontext_="PageToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PageToken"jletto_json=simple_to_jsonto_valueendmoduleStateMachineList=structtypenonrect=StateMachineListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StateMachineListItem.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:StateMachineListItem.of_xml)letof_jsonj=list_of_json~kind:"StateMachineList"~of_json:StateMachineListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePageSize=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(fun()->check_int_mini~min:0));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 PageSize"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleStateMachineVersionList=structtypenonrect=StateMachineVersionListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StateMachineVersionListItem.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:StateMachineVersionListItem.of_xml)letof_jsonj=list_of_json~kind:"StateMachineVersionList"~of_json:StateMachineVersionListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStateMachineAliasList=structtypenonrect=StateMachineAliasListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:StateMachineAliasListItem.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:StateMachineAliasListItem.of_xml)letof_jsonj=list_of_json~kind:"StateMachineAliasList"~of_json:StateMachineAliasListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMapRunList=structtypenonrect=MapRunListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MapRunListItem.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:MapRunListItem.of_xml)letof_jsonj=list_of_json~kind:"MapRunList"~of_json:MapRunListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleExecutionList=structtypenonrect=ExecutionListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ExecutionListItem.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:ExecutionListItem.of_xml)letof_jsonj=list_of_json~kind:"ExecutionList"~of_json:ExecutionListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListExecutionsPageToken=structtypenonrect=stringletcontext_="ListExecutionsPageToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:3096)>>=(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:"ListExecutionsPageToken"jletto_json=simple_to_jsonto_valueendmoduleExecutionRedriveFilter=structtypenonrect=|REDRIVEN|NOT_REDRIVEN|Non_static_idofstringletmakei=iletto_string=function|REDRIVEN->"REDRIVEN"|NOT_REDRIVEN->"NOT_REDRIVEN"|Non_static_ids->sletof_string=function|"REDRIVEN"->REDRIVEN|"NOT_REDRIVEN"->NOT_REDRIVEN|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 ExecutionRedriveFilter"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionRedriveFilter"j)letto_json=simple_to_jsonto_valueendmoduleActivityList=structtypenonrect=ActivityListItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ActivityListItem.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:ActivityListItem.of_xml)letof_jsonj=list_of_json~kind:"ActivityList"~of_json:ActivityListItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleHistoryEventList=structtypenonrect=HistoryEvent.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:HistoryEvent.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:HistoryEvent.of_xml)letof_jsonj=list_of_json~kind:"HistoryEventList"~of_json:HistoryEvent.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIncludeExecutionDataGetExecutionHistory=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_valueendmoduleReverseOrder=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_valueendmoduleActivityDoesNotExist=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The specified activity does not exist."]moduleActivityWorkerLimitExceeded=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The maximum number of workers concurrently polling for activity tasks has been reached."]moduleSensitiveDataJobInput=structtypenonrect=stringletcontext_="SensitiveDataJobInput"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:1048576);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SensitiveDataJobInput"jletto_json=simple_to_jsonto_valueendmoduleMapRunLabel=structtypenonrect=stringletcontext_="MapRunLabel"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:"MapRunLabel"jletto_json=simple_to_jsonto_valueendmoduleStateMachineStatus=structtypenonrect=|ACTIVE|DELETING|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|DELETING->"DELETING"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"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 StateMachineStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"StateMachineStatus"j)letto_json=simple_to_jsonto_valueendmoduleVariableReferences=structtypenonrect=(StateName.t*VariableNameList.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 StateName VariableNameList"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(StateName.to_valuex)|>(funx->(VariableNameList.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:StateName.of_string~of_json:VariableNameList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMapRunExecutionCounts=structtypenonrect={pending:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run, but haven't started executing yet."];running:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run and are currently in-progress."];succeeded:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run and have completed successfully."];failed:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run, but have failed."];timedOut:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run and have timed out."];aborted:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run and were running, but were either stopped by the user or by Step Functions because the Map Run failed."];total:UnsignedLong.toption[@ocaml.doc"The total number of child workflow executions that were started by a Map Run."];resultsWritten:UnsignedLong.toption[@ocaml.doc"Returns the count of child workflow executions whose results were written by ResultWriter. For more information, see ResultWriter in the Step Functions Developer Guide."];failuresNotRedrivable:LongObject.toption[@ocaml.doc"The number of FAILED, ABORTED, or TIMED_OUT child workflow executions that cannot be redriven because their execution status is terminal. For example, child workflows with an execution status of FAILED, ABORTED, or TIMED_OUT and a redriveStatus of NOT_REDRIVABLE."];pendingRedrive:LongObject.toption[@ocaml.doc"The number of unsuccessful child workflow executions currently waiting to be redriven. The status of these child workflow executions could be FAILED, ABORTED, or TIMED_OUT in the original execution attempt or a previous redrive attempt."]}letmake?pending=fun?running->fun?succeeded->fun?failed->fun?timedOut->fun?aborted->fun?total->fun?resultsWritten->fun?failuresNotRedrivable->fun?pendingRedrive->fun()->{pending;running;succeeded;failed;timedOut;aborted;total;resultsWritten;failuresNotRedrivable;pendingRedrive}letto_valuex=structure_to_value[("pending",(Option.mapx.pending~f:UnsignedLong.to_value));("running",(Option.mapx.running~f:UnsignedLong.to_value));("succeeded",(Option.mapx.succeeded~f:UnsignedLong.to_value));("failed",(Option.mapx.failed~f:UnsignedLong.to_value));("timedOut",(Option.mapx.timedOut~f:UnsignedLong.to_value));("aborted",(Option.mapx.aborted~f:UnsignedLong.to_value));("total",(Option.mapx.total~f:UnsignedLong.to_value));("resultsWritten",(Option.mapx.resultsWritten~f:UnsignedLong.to_value));("failuresNotRedrivable",(Option.mapx.failuresNotRedrivable~f:LongObject.to_value));("pendingRedrive",(Option.mapx.pendingRedrive~f:LongObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpendingRedrive=(Option.map~f:LongObject.of_xml)(Xml.childxml_arg0"pendingRedrive")inletfailuresNotRedrivable=(Option.map~f:LongObject.of_xml)(Xml.childxml_arg0"failuresNotRedrivable")inletresultsWritten=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"resultsWritten")inlettotal=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"total")inletaborted=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"aborted")inlettimedOut=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"timedOut")inletfailed=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"failed")inletsucceeded=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"succeeded")inletrunning=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"running")inletpending=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"pending")inmake?pendingRedrive?failuresNotRedrivable?resultsWritten?total?aborted?timedOut?failed?succeeded?running?pending()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpendingRedrive=field_mapjson__"pendingRedrive"LongObject.of_jsoninletfailuresNotRedrivable=field_mapjson__"failuresNotRedrivable"LongObject.of_jsoninletresultsWritten=field_mapjson__"resultsWritten"UnsignedLong.of_jsoninlettotal=field_mapjson__"total"UnsignedLong.of_jsoninletaborted=field_mapjson__"aborted"UnsignedLong.of_jsoninlettimedOut=field_mapjson__"timedOut"UnsignedLong.of_jsoninletfailed=field_mapjson__"failed"UnsignedLong.of_jsoninletsucceeded=field_mapjson__"succeeded"UnsignedLong.of_jsoninletrunning=field_mapjson__"running"UnsignedLong.of_jsoninletpending=field_mapjson__"pending"UnsignedLong.of_jsoninmake?pendingRedrive?failuresNotRedrivable?resultsWritten?total?aborted?timedOut?failed?succeeded?running?pending()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about all of the child workflow executions started by a Map Run."]moduleMapRunItemCounts=structtypenonrect={pending:UnsignedLong.toption[@ocaml.doc"The total number of items to process in child workflow executions that haven't started running yet."];running:UnsignedLong.toption[@ocaml.doc"The total number of items being processed in child workflow executions that are currently in-progress."];succeeded:UnsignedLong.toption[@ocaml.doc"The total number of items processed in child workflow executions that have completed successfully."];failed:UnsignedLong.toption[@ocaml.doc"The total number of items processed in child workflow executions that have failed."];timedOut:UnsignedLong.toption[@ocaml.doc"The total number of items processed in child workflow executions that have timed out."];aborted:UnsignedLong.toption[@ocaml.doc"The total number of items processed in child workflow executions that were either stopped by the user or by Step Functions, because the Map Run failed."];total:UnsignedLong.toption[@ocaml.doc"The total number of items processed in all the child workflow executions started by a Map Run."];resultsWritten:UnsignedLong.toption[@ocaml.doc"Returns the count of items whose results were written by ResultWriter. For more information, see ResultWriter in the Step Functions Developer Guide."];failuresNotRedrivable:LongObject.toption[@ocaml.doc"The number of FAILED, ABORTED, or TIMED_OUT items in child workflow executions that cannot be redriven because the execution status of those child workflows is terminal. For example, child workflows with an execution status of FAILED, ABORTED, or TIMED_OUT and a redriveStatus of NOT_REDRIVABLE."];pendingRedrive:LongObject.toption[@ocaml.doc"The number of unsuccessful items in child workflow executions currently waiting to be redriven."]}letmake?pending=fun?running->fun?succeeded->fun?failed->fun?timedOut->fun?aborted->fun?total->fun?resultsWritten->fun?failuresNotRedrivable->fun?pendingRedrive->fun()->{pending;running;succeeded;failed;timedOut;aborted;total;resultsWritten;failuresNotRedrivable;pendingRedrive}letto_valuex=structure_to_value[("pending",(Option.mapx.pending~f:UnsignedLong.to_value));("running",(Option.mapx.running~f:UnsignedLong.to_value));("succeeded",(Option.mapx.succeeded~f:UnsignedLong.to_value));("failed",(Option.mapx.failed~f:UnsignedLong.to_value));("timedOut",(Option.mapx.timedOut~f:UnsignedLong.to_value));("aborted",(Option.mapx.aborted~f:UnsignedLong.to_value));("total",(Option.mapx.total~f:UnsignedLong.to_value));("resultsWritten",(Option.mapx.resultsWritten~f:UnsignedLong.to_value));("failuresNotRedrivable",(Option.mapx.failuresNotRedrivable~f:LongObject.to_value));("pendingRedrive",(Option.mapx.pendingRedrive~f:LongObject.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpendingRedrive=(Option.map~f:LongObject.of_xml)(Xml.childxml_arg0"pendingRedrive")inletfailuresNotRedrivable=(Option.map~f:LongObject.of_xml)(Xml.childxml_arg0"failuresNotRedrivable")inletresultsWritten=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"resultsWritten")inlettotal=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"total")inletaborted=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"aborted")inlettimedOut=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"timedOut")inletfailed=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"failed")inletsucceeded=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"succeeded")inletrunning=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"running")inletpending=(Option.map~f:UnsignedLong.of_xml)(Xml.childxml_arg0"pending")inmake?pendingRedrive?failuresNotRedrivable?resultsWritten?total?aborted?timedOut?failed?succeeded?running?pending()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpendingRedrive=field_mapjson__"pendingRedrive"LongObject.of_jsoninletfailuresNotRedrivable=field_mapjson__"failuresNotRedrivable"LongObject.of_jsoninletresultsWritten=field_mapjson__"resultsWritten"UnsignedLong.of_jsoninlettotal=field_mapjson__"total"UnsignedLong.of_jsoninletaborted=field_mapjson__"aborted"UnsignedLong.of_jsoninlettimedOut=field_mapjson__"timedOut"UnsignedLong.of_jsoninletfailed=field_mapjson__"failed"UnsignedLong.of_jsoninletsucceeded=field_mapjson__"succeeded"UnsignedLong.of_jsoninletrunning=field_mapjson__"running"UnsignedLong.of_jsoninletpending=field_mapjson__"pending"UnsignedLong.of_jsoninmake?pendingRedrive?failuresNotRedrivable?resultsWritten?total?aborted?timedOut?failed?succeeded?running?pending()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains details about items that were processed in all of the child workflow executions that were started by a Map Run."]moduleMapRunStatus=structtypenonrect=|RUNNING|SUCCEEDED|FAILED|ABORTED|Non_static_idofstringletmakei=iletto_string=function|RUNNING->"RUNNING"|SUCCEEDED->"SUCCEEDED"|FAILED->"FAILED"|ABORTED->"ABORTED"|Non_static_ids->sletof_string=function|"RUNNING"->RUNNING|"SUCCEEDED"->SUCCEEDED|"FAILED"->FAILED|"ABORTED"->ABORTED|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 MapRunStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MapRunStatus"j)letto_json=simple_to_jsonto_valueendmoduleExecutionRedriveStatus=structtypenonrect=|REDRIVABLE|NOT_REDRIVABLE|REDRIVABLE_BY_MAP_RUN|Non_static_idofstringletmakei=iletto_string=function|REDRIVABLE->"REDRIVABLE"|NOT_REDRIVABLE->"NOT_REDRIVABLE"|REDRIVABLE_BY_MAP_RUN->"REDRIVABLE_BY_MAP_RUN"|Non_static_ids->sletof_string=function|"REDRIVABLE"->REDRIVABLE|"NOT_REDRIVABLE"->NOT_REDRIVABLE|"REDRIVABLE_BY_MAP_RUN"->REDRIVABLE_BY_MAP_RUN|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 ExecutionRedriveStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionRedriveStatus"j)letto_json=simple_to_jsonto_valueendmoduleStateMachineAlreadyExists=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A state machine with the same name but a different definition or role ARN already exists."]moduleStateMachineLimitExceeded=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created."]moduleCharacterRestrictedName=structtypenonrect=stringletcontext_="CharacterRestrictedName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:80)>>=(fun()->check_patterni~pattern:"^(?=.*[a-zA-Z_\\-\\.])[a-zA-Z0-9_\\-\\.]+$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CharacterRestrictedName"jletto_json=simple_to_jsonto_valueendmoduleActivityAlreadyExists=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Activity already exists. EncryptionConfiguration may not be updated."]moduleActivityLimitExceeded=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created."]moduleValidateStateMachineDefinitionOutput=structtypenonrect={result:ValidateStateMachineDefinitionResultCode.toption[@ocaml.doc"The result value will be OK when no syntax errors are found, or FAIL if the workflow definition does not pass verification."];diagnostics:ValidateStateMachineDefinitionDiagnosticList.toption[@ocaml.doc"An array of diagnostic errors and warnings found during validation of the state machine definition. Since warnings do not prevent deploying your workflow definition, the result value could be OK even when warning diagnostics are present in the response."];truncated:ValidateStateMachineDefinitionTruncated.toption[@ocaml.doc"The result value will be true if the number of diagnostics found in the workflow definition exceeds maxResults. When all diagnostics results are returned, the value will be false."]}typenonrecerror=[`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?result=fun?diagnostics->fun?truncated->fun()->{result;diagnostics;truncated}leterror_of_jsonnamejson=matchnamewith|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("result",(Option.mapx.result~f:ValidateStateMachineDefinitionResultCode.to_value));("diagnostics",(Option.mapx.diagnostics~f:ValidateStateMachineDefinitionDiagnosticList.to_value));("truncated",(Option.mapx.truncated~f:ValidateStateMachineDefinitionTruncated.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettruncated=(Option.map~f:ValidateStateMachineDefinitionTruncated.of_xml)(Xml.childxml_arg0"truncated")inletdiagnostics=(Option.map~f:ValidateStateMachineDefinitionDiagnosticList.of_xml)(Xml.childxml_arg0"diagnostics")inletresult=(Option.map~f:ValidateStateMachineDefinitionResultCode.of_xml)(Xml.childxml_arg0"result")inmake?truncated?diagnostics?result()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettruncated=field_mapjson__"truncated"ValidateStateMachineDefinitionTruncated.of_jsoninletdiagnostics=field_mapjson__"diagnostics"ValidateStateMachineDefinitionDiagnosticList.of_jsoninletresult=field_mapjson__"result"ValidateStateMachineDefinitionResultCode.of_jsoninmake?truncated?diagnostics?result()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Validates the syntax of a state machine definition specified in Amazon States Language (ASL), a JSON-based, structured language. You can validate that a state machine definition is correct without creating a state machine resource. Suggested uses for ValidateStateMachineDefinition: Integrate automated checks into your code review or Continuous Integration (CI) process to check state machine definitions before starting deployments. Run validation from a Git pre-commit hook to verify the definition before committing to your source repository. Validation will look for problems in your state machine definition and return a result and a list of diagnostic elements. The result value will be OK when your workflow definition can be successfully created or updated. Note the result can be OK even when diagnostic warnings are present in the response. The result value will be FAIL when the workflow definition contains errors that would prevent you from creating or updating your state machine. The list of ValidateStateMachineDefinitionDiagnostic data elements can contain zero or more WARNING and/or ERROR elements. The ValidateStateMachineDefinition API might add new diagnostics in the future, adjust diagnostic codes, or change the message wording. Your automated processes should only rely on the value of the result field value (OK, FAIL). Do not rely on the exact order, count, or wording of diagnostic messages."]moduleValidateStateMachineDefinitionInput=structtypenonrect={definition:Definition.t[@ocaml.doc"The Amazon States Language definition of the state machine. For more information, see Amazon States Language (ASL)."];type_:StateMachineType.toption[@ocaml.doc"The target type of state machine for this definition. The default is STANDARD."];severity:ValidateStateMachineDefinitionSeverity.toption[@ocaml.doc"Minimum level of diagnostics to return. ERROR returns only ERROR diagnostics, whereas WARNING returns both WARNING and ERROR diagnostics. The default is ERROR."];maxResults:ValidateStateMachineDefinitionMaxResult.toption[@ocaml.doc"The maximum number of diagnostics that are returned per call. The default and maximum value is 100. Setting the value to 0 will also use the default of 100. If the number of diagnostics returned in the response exceeds maxResults, the value of the truncated field in the response will be set to true."]}letcontext_="ValidateStateMachineDefinitionInput"letmake?type_=fun?severity->fun?maxResults->fun~definition->fun()->{type_;severity;maxResults;definition}letto_valuex=structure_to_value[("definition",(Some(Definition.to_valuex.definition)));("type",(Option.mapx.type_~f:StateMachineType.to_value));("severity",(Option.mapx.severity~f:ValidateStateMachineDefinitionSeverity.to_value));("maxResults",(Option.mapx.maxResults~f:ValidateStateMachineDefinitionMaxResult.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:ValidateStateMachineDefinitionMaxResult.of_xml)(Xml.childxml_arg0"maxResults")inletseverity=(Option.map~f:ValidateStateMachineDefinitionSeverity.of_xml)(Xml.childxml_arg0"severity")inlettype_=(Option.map~f:StateMachineType.of_xml)(Xml.childxml_arg0"type")inletdefinition=Definition.of_xml(Xml.child_exn~context:context_xml_arg0"definition")inmake?maxResults?severity?type_~definition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"ValidateStateMachineDefinitionMaxResult.of_jsoninletseverity=field_mapjson__"severity"ValidateStateMachineDefinitionSeverity.of_jsoninlettype_=field_mapjson__"type"StateMachineType.of_jsoninletdefinition=field_map_exnjson__"definition"Definition.of_jsoninmake?maxResults?severity?type_~definition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Validates the syntax of a state machine definition specified in Amazon States Language (ASL), a JSON-based, structured language. You can validate that a state machine definition is correct without creating a state machine resource. Suggested uses for ValidateStateMachineDefinition: Integrate automated checks into your code review or Continuous Integration (CI) process to check state machine definitions before starting deployments. Run validation from a Git pre-commit hook to verify the definition before committing to your source repository. Validation will look for problems in your state machine definition and return a result and a list of diagnostic elements. The result value will be OK when your workflow definition can be successfully created or updated. Note the result can be OK even when diagnostic warnings are present in the response. The result value will be FAIL when the workflow definition contains errors that would prevent you from creating or updating your state machine. The list of ValidateStateMachineDefinitionDiagnostic data elements can contain zero or more WARNING and/or ERROR elements. The ValidateStateMachineDefinition API might add new diagnostics in the future, adjust diagnostic codes, or change the message wording. Your automated processes should only rely on the value of the result field value (OK, FAIL). Do not rely on the exact order, count, or wording of diagnostic messages."]moduleUpdateStateMachineOutput=structtypenonrect={updateDate:Timestamp.toption[@ocaml.doc"The date and time the state machine was updated."];revisionId:RevisionId.toption[@ocaml.doc"The revision identifier for the updated state machine."];stateMachineVersionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the published state machine version. If the publish parameter isn't set to true, this field returns null."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`InvalidDefinitionofInvalidDefinition.t|`InvalidEncryptionConfigurationofInvalidEncryptionConfiguration.t|`InvalidLoggingConfigurationofInvalidLoggingConfiguration.t|`InvalidTracingConfigurationofInvalidTracingConfiguration.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`MissingRequiredParameterofMissingRequiredParameter.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`StateMachineDeletingofStateMachineDeleting.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?updateDate=fun?revisionId->fun?stateMachineVersionArn->fun()->{updateDate;revisionId;stateMachineVersionArn}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidDefinition"->`InvalidDefinition(InvalidDefinition.of_jsonjson)|"InvalidEncryptionConfiguration"->`InvalidEncryptionConfiguration(InvalidEncryptionConfiguration.of_jsonjson)|"InvalidLoggingConfiguration"->`InvalidLoggingConfiguration(InvalidLoggingConfiguration.of_jsonjson)|"InvalidTracingConfiguration"->`InvalidTracingConfiguration(InvalidTracingConfiguration.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"MissingRequiredParameter"->`MissingRequiredParameter(MissingRequiredParameter.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidDefinition"->`InvalidDefinition(InvalidDefinition.of_xmlxml)|"InvalidEncryptionConfiguration"->`InvalidEncryptionConfiguration(InvalidEncryptionConfiguration.of_xmlxml)|"InvalidLoggingConfiguration"->`InvalidLoggingConfiguration(InvalidLoggingConfiguration.of_xmlxml)|"InvalidTracingConfiguration"->`InvalidTracingConfiguration(InvalidTracingConfiguration.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"MissingRequiredParameter"->`MissingRequiredParameter(MissingRequiredParameter.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidDefinitione->`Assoc[("error",(`String"InvalidDefinition"));("details",(InvalidDefinition.to_jsone))]|`InvalidEncryptionConfiguratione->`Assoc[("error",(`String"InvalidEncryptionConfiguration"));("details",(InvalidEncryptionConfiguration.to_jsone))]|`InvalidLoggingConfiguratione->`Assoc[("error",(`String"InvalidLoggingConfiguration"));("details",(InvalidLoggingConfiguration.to_jsone))]|`InvalidTracingConfiguratione->`Assoc[("error",(`String"InvalidTracingConfiguration"));("details",(InvalidTracingConfiguration.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`MissingRequiredParametere->`Assoc[("error",(`String"MissingRequiredParameter"));("details",(MissingRequiredParameter.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("updateDate",(Option.mapx.updateDate~f:Timestamp.to_value));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value));("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineVersionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inletrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletupdateDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updateDate")inmake?stateMachineVersionArn?revisionId?updateDate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"Arn.of_jsoninletrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletupdateDate=field_mapjson__"updateDate"Timestamp.of_jsoninmake?stateMachineVersionArn?revisionId?updateDate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing state machine by modifying its definition, roleArn, loggingConfiguration, or EncryptionConfiguration. Running executions will continue to use the previous definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error. A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel refers to a Distributed Map state with a label mapStateLabel in the state machine named stateMachineName. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> After you update your state machine, you can set the publish parameter to true in the same action to publish a new version. This way, you can opt-in to strict versioning of your state machine. Step Functions assigns monotonically increasing integers for state machine versions, starting at version number 1. All StartExecution calls within a few seconds use the updated definition and roleArn. Executions started immediately after you call UpdateStateMachine may use the previous state machine definition and roleArn."]moduleUpdateStateMachineInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine."];definition:Definition.toption[@ocaml.doc"The Amazon States Language definition of the state machine. See Amazon States Language."];roleArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role of the state machine."];loggingConfiguration:LoggingConfiguration.toption[@ocaml.doc"Use the LoggingConfiguration data type to set CloudWatch Logs options."];tracingConfiguration:TracingConfiguration.toption[@ocaml.doc"Selects whether X-Ray tracing is enabled."];publish:Publish.toption[@ocaml.doc"Specifies whether the state machine version is published. The default is false. To publish a version after updating the state machine, set publish to true."];versionDescription:VersionDescription.toption[@ocaml.doc"An optional description of the state machine version to publish. You can only specify the versionDescription parameter if you've set publish to true."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Settings to configure server-side encryption."]}letcontext_="UpdateStateMachineInput"letmake?definition=fun?roleArn->fun?loggingConfiguration->fun?tracingConfiguration->fun?publish->fun?versionDescription->fun?encryptionConfiguration->fun~stateMachineArn->fun()->{definition;roleArn;loggingConfiguration;tracingConfiguration;publish;versionDescription;encryptionConfiguration;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("definition",(Option.mapx.definition~f:Definition.to_value));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("loggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfiguration.to_value));("tracingConfiguration",(Option.mapx.tracingConfiguration~f:TracingConfiguration.to_value));("publish",(Option.mapx.publish~f:Publish.to_value));("versionDescription",(Option.mapx.versionDescription~f:VersionDescription.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletversionDescription=(Option.map~f:VersionDescription.of_xml)(Xml.childxml_arg0"versionDescription")inletpublish=(Option.map~f:Publish.of_xml)(Xml.childxml_arg0"publish")inlettracingConfiguration=(Option.map~f:TracingConfiguration.of_xml)(Xml.childxml_arg0"tracingConfiguration")inletloggingConfiguration=(Option.map~f:LoggingConfiguration.of_xml)(Xml.childxml_arg0"loggingConfiguration")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inletdefinition=(Option.map~f:Definition.of_xml)(Xml.childxml_arg0"definition")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?encryptionConfiguration?versionDescription?publish?tracingConfiguration?loggingConfiguration?roleArn?definition~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletversionDescription=field_mapjson__"versionDescription"VersionDescription.of_jsoninletpublish=field_mapjson__"publish"Publish.of_jsoninlettracingConfiguration=field_mapjson__"tracingConfiguration"TracingConfiguration.of_jsoninletloggingConfiguration=field_mapjson__"loggingConfiguration"LoggingConfiguration.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninletdefinition=field_mapjson__"definition"Definition.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?encryptionConfiguration?versionDescription?publish?tracingConfiguration?loggingConfiguration?roleArn?definition~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing state machine by modifying its definition, roleArn, loggingConfiguration, or EncryptionConfiguration. Running executions will continue to use the previous definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error. A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel refers to a Distributed Map state with a label mapStateLabel in the state machine named stateMachineName. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> After you update your state machine, you can set the publish parameter to true in the same action to publish a new version. This way, you can opt-in to strict versioning of your state machine. Step Functions assigns monotonically increasing integers for state machine versions, starting at version number 1. All StartExecution calls within a few seconds use the updated definition and roleArn. Executions started immediately after you call UpdateStateMachine may use the previous state machine definition and roleArn."]moduleUpdateStateMachineAliasOutput=structtypenonrect={updateDate:Timestamp.toption[@ocaml.doc"The date and time the state machine alias was updated."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`StateMachineDeletingofStateMachineDeleting.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?updateDate=fun()->{updateDate}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("updateDate",(Option.mapx.updateDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdateDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updateDate")inmake?updateDate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdateDate=field_mapjson__"updateDate"Timestamp.of_jsoninmake?updateDate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration of an existing state machine alias by modifying its description or routingConfiguration. You must specify at least one of the description or routingConfiguration parameters to update a state machine alias. UpdateStateMachineAlias is an idempotent API. Step Functions bases the idempotency check on the stateMachineAliasArn, description, and routingConfiguration parameters. Requests with the same parameters return an idempotent response. This operation is eventually consistent. All StartExecution requests made within a few seconds use the latest alias configuration. Executions started immediately after calling UpdateStateMachineAlias may use the previous routing configuration. Related operations: CreateStateMachineAlias DescribeStateMachineAlias ListStateMachineAliases DeleteStateMachineAlias"]moduleUpdateStateMachineAliasInput=structtypenonrect={stateMachineAliasArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine alias."];description:AliasDescription.toption[@ocaml.doc"A description of the state machine alias."];routingConfiguration:RoutingConfigurationList.toption[@ocaml.doc"The routing configuration of the state machine alias. An array of RoutingConfig objects that specifies up to two state machine versions that the alias starts executions for."]}letcontext_="UpdateStateMachineAliasInput"letmake?description=fun?routingConfiguration->fun~stateMachineAliasArn->fun()->{description;routingConfiguration;stateMachineAliasArn}letto_valuex=structure_to_value[("stateMachineAliasArn",(Some(Arn.to_valuex.stateMachineAliasArn)));("description",(Option.mapx.description~f:AliasDescription.to_value));("routingConfiguration",(Option.mapx.routingConfiguration~f:RoutingConfigurationList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroutingConfiguration=(Option.map~f:RoutingConfigurationList.of_xml)(Xml.childxml_arg0"routingConfiguration")inletdescription=(Option.map~f:AliasDescription.of_xml)(Xml.childxml_arg0"description")inletstateMachineAliasArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineAliasArn")inmake?routingConfiguration?description~stateMachineAliasArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroutingConfiguration=field_mapjson__"routingConfiguration"RoutingConfigurationList.of_jsoninletdescription=field_mapjson__"description"AliasDescription.of_jsoninletstateMachineAliasArn=field_map_exnjson__"stateMachineAliasArn"Arn.of_jsoninmake?routingConfiguration?description~stateMachineAliasArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates the configuration of an existing state machine alias by modifying its description or routingConfiguration. You must specify at least one of the description or routingConfiguration parameters to update a state machine alias. UpdateStateMachineAlias is an idempotent API. Step Functions bases the idempotency check on the stateMachineAliasArn, description, and routingConfiguration parameters. Requests with the same parameters return an idempotent response. This operation is eventually consistent. All StartExecution requests made within a few seconds use the latest alias configuration. Executions started immediately after calling UpdateStateMachineAlias may use the previous routing configuration. Related operations: CreateStateMachineAlias DescribeStateMachineAlias ListStateMachineAliases DeleteStateMachineAlias"]moduleUpdateMapRunOutput=structtypenonrect=unittypenonrecerror=[`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure."]moduleUpdateMapRunInput=structtypenonrect={mapRunArn:LongArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of a Map Run."];maxConcurrency:MaxConcurrency.toption[@ocaml.doc"The maximum number of child workflow executions that can be specified to run in parallel for the Map Run at the same time."];toleratedFailurePercentage:ToleratedFailurePercentage.toption[@ocaml.doc"The maximum percentage of failed items before the Map Run fails."];toleratedFailureCount:ToleratedFailureCount.toption[@ocaml.doc"The maximum number of failed items before the Map Run fails."]}letcontext_="UpdateMapRunInput"letmake?maxConcurrency=fun?toleratedFailurePercentage->fun?toleratedFailureCount->fun~mapRunArn->fun()->{maxConcurrency;toleratedFailurePercentage;toleratedFailureCount;mapRunArn}letto_valuex=structure_to_value[("mapRunArn",(Some(LongArn.to_valuex.mapRunArn)));("maxConcurrency",(Option.mapx.maxConcurrency~f:MaxConcurrency.to_value));("toleratedFailurePercentage",(Option.mapx.toleratedFailurePercentage~f:ToleratedFailurePercentage.to_value));("toleratedFailureCount",(Option.mapx.toleratedFailureCount~f:ToleratedFailureCount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoleratedFailureCount=(Option.map~f:ToleratedFailureCount.of_xml)(Xml.childxml_arg0"toleratedFailureCount")inlettoleratedFailurePercentage=(Option.map~f:ToleratedFailurePercentage.of_xml)(Xml.childxml_arg0"toleratedFailurePercentage")inletmaxConcurrency=(Option.map~f:MaxConcurrency.of_xml)(Xml.childxml_arg0"maxConcurrency")inletmapRunArn=LongArn.of_xml(Xml.child_exn~context:context_xml_arg0"mapRunArn")inmake?toleratedFailureCount?toleratedFailurePercentage?maxConcurrency~mapRunArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoleratedFailureCount=field_mapjson__"toleratedFailureCount"ToleratedFailureCount.of_jsoninlettoleratedFailurePercentage=field_mapjson__"toleratedFailurePercentage"ToleratedFailurePercentage.of_jsoninletmaxConcurrency=field_mapjson__"maxConcurrency"MaxConcurrency.of_jsoninletmapRunArn=field_map_exnjson__"mapRunArn"LongArn.of_jsoninmake?toleratedFailureCount?toleratedFailurePercentage?maxConcurrency~mapRunArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure."]moduleUntagResourceOutput=structtypenonrect=unittypenonrecerror=[`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.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"Remove a tag from a Step Functions resource"]moduleUntagResourceInput=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for the Step Functions state machine or activity."];tagKeys:TagKeyList.t[@ocaml.doc"The list of tags to remove from the resource."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Remove a tag from a Step Functions resource"]moduleTestStateOutput=structtypenonrect={output:SensitiveData.toption[@ocaml.doc"The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];error:SensitiveError.toption[@ocaml.doc"The error returned when the execution of a state fails."];cause:SensitiveCause.toption[@ocaml.doc"A detailed explanation of the cause for the error when the execution of a state fails."];inspectionData:InspectionData.toption[@ocaml.doc"Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned."];nextState:StateName.toption[@ocaml.doc"The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value."];status:TestExecutionStatus.toption[@ocaml.doc"The execution status of the state."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`InvalidDefinitionofInvalidDefinition.t|`InvalidExecutionInputofInvalidExecutionInput.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?output=fun?error->fun?cause->fun?inspectionData->fun?nextState->fun?status->fun()->{output;error;cause;inspectionData;nextState;status}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidDefinition"->`InvalidDefinition(InvalidDefinition.of_jsonjson)|"InvalidExecutionInput"->`InvalidExecutionInput(InvalidExecutionInput.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidDefinition"->`InvalidDefinition(InvalidDefinition.of_xmlxml)|"InvalidExecutionInput"->`InvalidExecutionInput(InvalidExecutionInput.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidDefinitione->`Assoc[("error",(`String"InvalidDefinition"));("details",(InvalidDefinition.to_jsone))]|`InvalidExecutionInpute->`Assoc[("error",(`String"InvalidExecutionInput"));("details",(InvalidExecutionInput.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("output",(Option.mapx.output~f:SensitiveData.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value));("inspectionData",(Option.mapx.inspectionData~f:InspectionData.to_value));("nextState",(Option.mapx.nextState~f:StateName.to_value));("status",(Option.mapx.status~f:TestExecutionStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:TestExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletnextState=(Option.map~f:StateName.of_xml)(Xml.childxml_arg0"nextState")inletinspectionData=(Option.map~f:InspectionData.of_xml)(Xml.childxml_arg0"inspectionData")inletcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inmake?status?nextState?inspectionData?cause?error?output()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"TestExecutionStatus.of_jsoninletnextState=field_mapjson__"nextState"StateName.of_jsoninletinspectionData=field_mapjson__"inspectionData"InspectionData.of_jsoninletcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninmake?status?nextState?inspectionData?cause?error?output()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts the definition of a single state and executes it. You can test a state without creating a state machine or updating an existing state machine. Using this API, you can test the following: A state's input and output processing data flow An Amazon Web Services service integration request and response An HTTP Task request and response You can call this API on only one state at a time. The states that you can test include the following: All Task types except Activity Pass Wait Choice Succeed Fail The TestState API assumes an IAM role which must contain the required IAM permissions for the resources your state is accessing. For information about the permissions a state might need, see IAM permissions to test a state. The TestState API can run for up to five minutes. If the execution of a state exceeds this duration, it fails with the States.Timeout error. TestState only supports the following when a mock is specified: Activity tasks, .sync or .waitForTaskToken service integration patterns, Parallel, or Map states."]moduleTestStateInput=structtypenonrect={definition:Definition.t[@ocaml.doc"The Amazon States Language (ASL) definition of the state or state machine."];roleArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the execution role with the required IAM permissions for the state."];input:SensitiveData.toption[@ocaml.doc"A string that contains the JSON input data for the state."];inspectionLevel:InspectionLevel.toption[@ocaml.doc"Determines the values to return when a state is tested. You can specify one of the following types: INFO: Shows the final state output. By default, Step Functions sets inspectionLevel to INFO if you don't specify a level. DEBUG: Shows the final state output along with the input and output data processing result. TRACE: Shows the HTTP request and response for an HTTP Task. This level also shows the final state output along with the input and output data processing result. Each of these levels also provide information about the status of the state execution and the next state to transition to."];revealSecrets:RevealSecrets.toption[@ocaml.doc"Specifies whether or not to include secret information in the test result. For HTTP Tasks, a secret includes the data that an EventBridge connection adds to modify the HTTP request headers, query parameters, and body. Step Functions doesn't omit any information included in the state definition or the HTTP response. If you set revealSecrets to true, you must make sure that the IAM user that calls the TestState API has permission for the states:RevealSecrets action. For an example of IAM policy that sets the states:RevealSecrets permission, see IAM permissions to test a state. Without this permission, Step Functions throws an access denied error. By default, revealSecrets is set to false."];variables:SensitiveData.toption[@ocaml.doc"JSON object literal that sets variables used in the state under test. Object keys are the variable names and values are the variable values."];stateName:TestStateStateName.toption[@ocaml.doc"Denotes the particular state within a state machine definition to be tested. If this field is specified, the definition must contain a fully-formed state machine definition."];mock:MockInput.toption[@ocaml.doc"Defines a mocked result or error for the state under test. A mock can only be specified for Task, Map, or Parallel states. If it is specified for another state type, an exception will be thrown."];context:SensitiveData.toption[@ocaml.doc"A JSON string representing a valid Context object for the state under test. This field may only be specified if a mock is specified in the same request."];stateConfiguration:TestStateConfiguration.toption[@ocaml.doc"Contains configurations for the state under test."]}letcontext_="TestStateInput"letmake?roleArn=fun?input->fun?inspectionLevel->fun?revealSecrets->fun?variables->fun?stateName->fun?mock->fun?context->fun?stateConfiguration->fun~definition->fun()->{roleArn;input;inspectionLevel;revealSecrets;variables;stateName;mock;context;stateConfiguration;definition}letto_valuex=structure_to_value[("definition",(Some(Definition.to_valuex.definition)));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("inspectionLevel",(Option.mapx.inspectionLevel~f:InspectionLevel.to_value));("revealSecrets",(Option.mapx.revealSecrets~f:RevealSecrets.to_value));("variables",(Option.mapx.variables~f:SensitiveData.to_value));("stateName",(Option.mapx.stateName~f:TestStateStateName.to_value));("mock",(Option.mapx.mock~f:MockInput.to_value));("context",(Option.mapx.context~f:SensitiveData.to_value));("stateConfiguration",(Option.mapx.stateConfiguration~f:TestStateConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateConfiguration=(Option.map~f:TestStateConfiguration.of_xml)(Xml.childxml_arg0"stateConfiguration")inletcontext=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"context")inletmock=(Option.map~f:MockInput.of_xml)(Xml.childxml_arg0"mock")inletstateName=(Option.map~f:TestStateStateName.of_xml)(Xml.childxml_arg0"stateName")inletvariables=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"variables")inletrevealSecrets=(Option.map~f:RevealSecrets.of_xml)(Xml.childxml_arg0"revealSecrets")inletinspectionLevel=(Option.map~f:InspectionLevel.of_xml)(Xml.childxml_arg0"inspectionLevel")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inletdefinition=Definition.of_xml(Xml.child_exn~context:context_xml_arg0"definition")inmake?stateConfiguration?context?mock?stateName?variables?revealSecrets?inspectionLevel?input?roleArn~definition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateConfiguration=field_mapjson__"stateConfiguration"TestStateConfiguration.of_jsoninletcontext=field_mapjson__"context"SensitiveData.of_jsoninletmock=field_mapjson__"mock"MockInput.of_jsoninletstateName=field_mapjson__"stateName"TestStateStateName.of_jsoninletvariables=field_mapjson__"variables"SensitiveData.of_jsoninletrevealSecrets=field_mapjson__"revealSecrets"RevealSecrets.of_jsoninletinspectionLevel=field_mapjson__"inspectionLevel"InspectionLevel.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninletdefinition=field_map_exnjson__"definition"Definition.of_jsoninmake?stateConfiguration?context?mock?stateName?variables?revealSecrets?inspectionLevel?input?roleArn~definition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Accepts the definition of a single state and executes it. You can test a state without creating a state machine or updating an existing state machine. Using this API, you can test the following: A state's input and output processing data flow An Amazon Web Services service integration request and response An HTTP Task request and response You can call this API on only one state at a time. The states that you can test include the following: All Task types except Activity Pass Wait Choice Succeed Fail The TestState API assumes an IAM role which must contain the required IAM permissions for the resources your state is accessing. For information about the permissions a state might need, see IAM permissions to test a state. The TestState API can run for up to five minutes. If the execution of a state exceeds this duration, it fails with the States.Timeout error. TestState only supports the following when a mock is specified: Activity tasks, .sync or .waitForTaskToken service integration patterns, Parallel, or Map states."]moduleTagResourceOutput=structtypenonrect=unittypenonrecerror=[`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`TooManyTagsofTooManyTags.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"TooManyTags"->`TooManyTags(TooManyTags.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"TooManyTags"->`TooManyTags(TooManyTags.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`TooManyTagse->`Assoc[("error",(`String"TooManyTags"));("details",(TooManyTags.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"Add a tag to a Step Functions resource. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."]moduleTagResourceInput=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for the Step Functions state machine or activity."];tags:TagList.t[@ocaml.doc"The list of tags to add to a resource. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"TagList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add a tag to a Step Functions resource. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."]moduleStopExecutionOutput=structtypenonrect={stopDate:Timestamp.toption[@ocaml.doc"The date the execution is stopped."]}typenonrecerror=[`ExecutionDoesNotExistofExecutionDoesNotExist.t|`InvalidArnofInvalidArn.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stopDate=fun()->{stopDate}leterror_of_jsonnamejson=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionDoesNotExiste->`Assoc[("error",(`String"ExecutionDoesNotExist"));("details",(ExecutionDoesNotExist.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stopDate",(Option.mapx.stopDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstopDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"stopDate")inmake?stopDate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstopDate=field_mapjson__"stopDate"Timestamp.of_jsoninmake?stopDate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an execution. This API action is not supported by EXPRESS state machines. For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role. A caller can stop an execution without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted."]moduleStopExecutionInput=structtypenonrect={executionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution to stop."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letcontext_="StopExecutionInput"letmake?error=fun?cause->fun~executionArn->fun()->{error;cause;executionArn}letto_valuex=structure_to_value[("executionArn",(Some(Arn.to_valuex.executionArn)));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletexecutionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"executionArn")inmake?cause?error~executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletexecutionArn=field_map_exnjson__"executionArn"Arn.of_jsoninmake?cause?error~executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Stops an execution. This API action is not supported by EXPRESS state machines. For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role. A caller can stop an execution without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted."]moduleStartSyncExecutionOutput=structtypenonrect={executionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the execution."];stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the state machine."];name:Name.toption[@ocaml.doc"The name of the execution."];startDate:Timestamp.toption[@ocaml.doc"The date the execution is started."];stopDate:Timestamp.toption[@ocaml.doc"If the execution has already ended, the date the execution stopped."];status:SyncExecutionStatus.toption[@ocaml.doc"The current status of the execution."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."];input:SensitiveData.toption[@ocaml.doc"The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];inputDetails:CloudWatchEventsExecutionDataDetails.toption;output:SensitiveData.toption[@ocaml.doc"The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding. This field is set only if the execution succeeds. If the execution fails, this field is null."];outputDetails:CloudWatchEventsExecutionDataDetails.toption;traceHeader:TraceHeader.toption[@ocaml.doc"The X-Ray trace header that was passed to the execution. For X-Ray traces, all Amazon Web Services services use the X-Amzn-Trace-Id header from the HTTP request. Using the header is the preferred mechanism to identify a trace. StartExecution and StartSyncExecution API operations can also use traceHeader from the body of the request payload. If both sources are provided, Step Functions will use the header value (preferred) over the value in the request body."];billingDetails:BillingDetails.toption[@ocaml.doc"An object that describes workflow billing details, including billed duration and memory use."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`InvalidExecutionInputofInvalidExecutionInput.t|`InvalidNameofInvalidName.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`StateMachineDeletingofStateMachineDeleting.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`StateMachineTypeNotSupportedofStateMachineTypeNotSupported.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionArn=fun?stateMachineArn->fun?name->fun?startDate->fun?stopDate->fun?status->fun?error->fun?cause->fun?input->fun?inputDetails->fun?output->fun?outputDetails->fun?traceHeader->fun?billingDetails->fun()->{executionArn;stateMachineArn;name;startDate;stopDate;status;error;cause;input;inputDetails;output;outputDetails;traceHeader;billingDetails}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidExecutionInput"->`InvalidExecutionInput(InvalidExecutionInput.of_jsonjson)|"InvalidName"->`InvalidName(InvalidName.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|"StateMachineTypeNotSupported"->`StateMachineTypeNotSupported(StateMachineTypeNotSupported.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidExecutionInput"->`InvalidExecutionInput(InvalidExecutionInput.of_xmlxml)|"InvalidName"->`InvalidName(InvalidName.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|"StateMachineTypeNotSupported"->`StateMachineTypeNotSupported(StateMachineTypeNotSupported.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidExecutionInpute->`Assoc[("error",(`String"InvalidExecutionInput"));("details",(InvalidExecutionInput.to_jsone))]|`InvalidNamee->`Assoc[("error",(`String"InvalidName"));("details",(InvalidName.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`StateMachineTypeNotSupportede->`Assoc[("error",(`String"StateMachineTypeNotSupported"));("details",(StateMachineTypeNotSupported.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executionArn",(Option.mapx.executionArn~f:Arn.to_value));("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("startDate",(Option.mapx.startDate~f:Timestamp.to_value));("stopDate",(Option.mapx.stopDate~f:Timestamp.to_value));("status",(Option.mapx.status~f:SyncExecutionStatus.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("inputDetails",(Option.mapx.inputDetails~f:CloudWatchEventsExecutionDataDetails.to_value));("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:CloudWatchEventsExecutionDataDetails.to_value));("traceHeader",(Option.mapx.traceHeader~f:TraceHeader.to_value));("billingDetails",(Option.mapx.billingDetails~f:BillingDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letbillingDetails=(Option.map~f:BillingDetails.of_xml)(Xml.childxml_arg0"billingDetails")inlettraceHeader=(Option.map~f:TraceHeader.of_xml)(Xml.childxml_arg0"traceHeader")inletoutputDetails=(Option.map~f:CloudWatchEventsExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inletinputDetails=(Option.map~f:CloudWatchEventsExecutionDataDetails.of_xml)(Xml.childxml_arg0"inputDetails")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletstatus=(Option.map~f:SyncExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletstopDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"stopDate")inletstartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startDate")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inletexecutionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"executionArn")inmake?billingDetails?traceHeader?outputDetails?output?inputDetails?input?cause?error?status?stopDate?startDate?name?stateMachineArn?executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letbillingDetails=field_mapjson__"billingDetails"BillingDetails.of_jsoninlettraceHeader=field_mapjson__"traceHeader"TraceHeader.of_jsoninletoutputDetails=field_mapjson__"outputDetails"CloudWatchEventsExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninletinputDetails=field_mapjson__"inputDetails"CloudWatchEventsExecutionDataDetails.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletstatus=field_mapjson__"status"SyncExecutionStatus.of_jsoninletstopDate=field_mapjson__"stopDate"Timestamp.of_jsoninletstartDate=field_mapjson__"startDate"Timestamp.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninletexecutionArn=field_mapjson__"executionArn"Arn.of_jsoninmake?billingDetails?traceHeader?outputDetails?output?inputDetails?input?cause?error?status?stopDate?startDate?name?stateMachineArn?executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a Synchronous Express state machine execution. StartSyncExecution is not available for STANDARD workflows. StartSyncExecution will return a 200 OK response, even if your execution fails, because the status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your execution from running, such as permissions errors, limit errors, or issues with your state machine code and configuration. This API action isn't logged in CloudTrail."]moduleStartSyncExecutionInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine to execute."];name:Name.toption[@ocaml.doc"The name of the execution."];input:SensitiveData.toption[@ocaml.doc"The string that contains the JSON input data for the execution, for example: \"\\{\\\"first_name\\\" : \\\"Alejandro\\\"\\}\" If you don't include any JSON input data, you still must include the two braces, for example: \"\\{\\}\" Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];traceHeader:TraceHeader.toption[@ocaml.doc"Passes the X-Ray trace header. The trace header can also be passed in the request payload. For X-Ray traces, all Amazon Web Services services use the X-Amzn-Trace-Id header from the HTTP request. Using the header is the preferred mechanism to identify a trace. StartExecution and StartSyncExecution API operations can also use traceHeader from the body of the request payload. If both sources are provided, Step Functions will use the header value (preferred) over the value in the request body."];includedData:IncludedData.toption[@ocaml.doc"If your state machine definition is encrypted with a KMS key, callers must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the API with includedData = METADATA_ONLY to get a successful response without the encrypted definition."]}letcontext_="StartSyncExecutionInput"letmake?name=fun?input->fun?traceHeader->fun?includedData->fun~stateMachineArn->fun()->{name;input;traceHeader;includedData;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("name",(Option.mapx.name~f:Name.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("traceHeader",(Option.mapx.traceHeader~f:TraceHeader.to_value));("includedData",(Option.mapx.includedData~f:IncludedData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludedData=(Option.map~f:IncludedData.of_xml)(Xml.childxml_arg0"includedData")inlettraceHeader=(Option.map~f:TraceHeader.of_xml)(Xml.childxml_arg0"traceHeader")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?includedData?traceHeader?input?name~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludedData=field_mapjson__"includedData"IncludedData.of_jsoninlettraceHeader=field_mapjson__"traceHeader"TraceHeader.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?includedData?traceHeader?input?name~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a Synchronous Express state machine execution. StartSyncExecution is not available for STANDARD workflows. StartSyncExecution will return a 200 OK response, even if your execution fails, because the status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your execution from running, such as permissions errors, limit errors, or issues with your state machine code and configuration. This API action isn't logged in CloudTrail."]moduleStartExecutionOutput=structtypenonrect={executionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the execution."];startDate:Timestamp.toption[@ocaml.doc"The date the execution is started."]}typenonrecerror=[`ExecutionAlreadyExistsofExecutionAlreadyExists.t|`ExecutionLimitExceededofExecutionLimitExceeded.t|`InvalidArnofInvalidArn.t|`InvalidExecutionInputofInvalidExecutionInput.t|`InvalidNameofInvalidName.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`StateMachineDeletingofStateMachineDeleting.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionArn=fun?startDate->fun()->{executionArn;startDate}leterror_of_jsonnamejson=matchnamewith|"ExecutionAlreadyExists"->`ExecutionAlreadyExists(ExecutionAlreadyExists.of_jsonjson)|"ExecutionLimitExceeded"->`ExecutionLimitExceeded(ExecutionLimitExceeded.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidExecutionInput"->`InvalidExecutionInput(InvalidExecutionInput.of_jsonjson)|"InvalidName"->`InvalidName(InvalidName.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionAlreadyExists"->`ExecutionAlreadyExists(ExecutionAlreadyExists.of_xmlxml)|"ExecutionLimitExceeded"->`ExecutionLimitExceeded(ExecutionLimitExceeded.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidExecutionInput"->`InvalidExecutionInput(InvalidExecutionInput.of_xmlxml)|"InvalidName"->`InvalidName(InvalidName.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionAlreadyExistse->`Assoc[("error",(`String"ExecutionAlreadyExists"));("details",(ExecutionAlreadyExists.to_jsone))]|`ExecutionLimitExceedede->`Assoc[("error",(`String"ExecutionLimitExceeded"));("details",(ExecutionLimitExceeded.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidExecutionInpute->`Assoc[("error",(`String"InvalidExecutionInput"));("details",(InvalidExecutionInput.to_jsone))]|`InvalidNamee->`Assoc[("error",(`String"InvalidName"));("details",(InvalidName.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executionArn",(Option.mapx.executionArn~f:Arn.to_value));("startDate",(Option.mapx.startDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startDate")inletexecutionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"executionArn")inmake?startDate?executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstartDate=field_mapjson__"startDate"Timestamp.of_jsoninletexecutionArn=field_mapjson__"executionArn"Arn.of_jsoninmake?startDate?executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a state machine execution. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> If you start an execution with an unqualified state machine ARN, Step Functions uses the latest revision of the state machine for the execution. To start executions of a state machine version, call StartExecution and provide the version ARN or the ARN of an alias that points to the version. StartExecution is idempotent for STANDARD workflows. For a STANDARD workflow, if you call StartExecution with the same name and input as a running execution, the call succeeds and return the same response as the original request. If the execution is closed or if the input is different, it returns a 400 ExecutionAlreadyExists error. You can reuse names after 90 days. StartExecution isn't idempotent for EXPRESS workflows."]moduleStartExecutionInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine to execute. The stateMachineArn parameter accepts one of the following inputs: An unqualified state machine ARN \226\128\147 Refers to a state machine ARN that isn't qualified with a version or alias ARN. The following is an example of an unqualified state machine ARN. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> Step Functions doesn't associate state machine executions that you start with an unqualified ARN with a version. This is true even if that version uses the same revision that the execution used. A state machine version ARN \226\128\147 Refers to a version ARN, which is a combination of state machine ARN and the version number separated by a colon (:). The following is an example of the ARN for version 10. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine>:10 Step Functions doesn't associate executions that you start with a version ARN with any aliases that point to that version. A state machine alias ARN \226\128\147 Refers to an alias ARN, which is a combination of state machine ARN and the alias name separated by a colon (:). The following is an example of the ARN for an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> Step Functions associates executions that you start with an alias ARN with that alias and the state machine version used for that execution."];name:Name.toption[@ocaml.doc"Optional name of the execution. This name must be unique for your Amazon Web Services account, Region, and state machine for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide. If you don't provide a name for the execution, Step Functions automatically generates a universally unique identifier (UUID) as the execution name. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];input:SensitiveData.toption[@ocaml.doc"The string that contains the JSON input data for the execution, for example: \"\\{\\\"first_name\\\" : \\\"Alejandro\\\"\\}\" If you don't include any JSON input data, you still must include the two braces, for example: \"\\{\\}\" Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];traceHeader:TraceHeader.toption[@ocaml.doc"Passes the X-Ray trace header. The trace header can also be passed in the request payload. For X-Ray traces, all Amazon Web Services services use the X-Amzn-Trace-Id header from the HTTP request. Using the header is the preferred mechanism to identify a trace. StartExecution and StartSyncExecution API operations can also use traceHeader from the body of the request payload. If both sources are provided, Step Functions will use the header value (preferred) over the value in the request body."]}letcontext_="StartExecutionInput"letmake?name=fun?input->fun?traceHeader->fun~stateMachineArn->fun()->{name;input;traceHeader;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("name",(Option.mapx.name~f:Name.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("traceHeader",(Option.mapx.traceHeader~f:TraceHeader.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettraceHeader=(Option.map~f:TraceHeader.of_xml)(Xml.childxml_arg0"traceHeader")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?traceHeader?input?name~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettraceHeader=field_mapjson__"traceHeader"TraceHeader.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?traceHeader?input?name~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Starts a state machine execution. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> If you start an execution with an unqualified state machine ARN, Step Functions uses the latest revision of the state machine for the execution. To start executions of a state machine version, call StartExecution and provide the version ARN or the ARN of an alias that points to the version. StartExecution is idempotent for STANDARD workflows. For a STANDARD workflow, if you call StartExecution with the same name and input as a running execution, the call succeeds and return the same response as the original request. If the execution is closed or if the input is different, it returns a 400 ExecutionAlreadyExists error. You can reuse names after 90 days. StartExecution isn't idempotent for EXPRESS workflows."]moduleSendTaskSuccessOutput=structtypenonrect=unittypenonrecerror=[`InvalidOutputofInvalidOutput.t|`InvalidTokenofInvalidToken.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`TaskDoesNotExistofTaskDoesNotExist.t|`TaskTimedOutofTaskTimedOut.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidOutput"->`InvalidOutput(InvalidOutput.of_jsonjson)|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"TaskDoesNotExist"->`TaskDoesNotExist(TaskDoesNotExist.of_jsonjson)|"TaskTimedOut"->`TaskTimedOut(TaskTimedOut.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidOutput"->`InvalidOutput(InvalidOutput.of_xmlxml)|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"TaskDoesNotExist"->`TaskDoesNotExist(TaskDoesNotExist.of_xmlxml)|"TaskTimedOut"->`TaskTimedOut(TaskTimedOut.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidOutpute->`Assoc[("error",(`String"InvalidOutput"));("details",(InvalidOutput.to_jsone))]|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`TaskDoesNotExiste->`Assoc[("error",(`String"TaskDoesNotExist"));("details",(TaskDoesNotExist.to_jsone))]|`TaskTimedOute->`Assoc[("error",(`String"TaskTimedOut"));("details",(TaskTimedOut.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"Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken completed successfully."]moduleSendTaskSuccessInput=structtypenonrect={taskToken:TaskToken.t[@ocaml.doc"The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken."];output:SensitiveData.t[@ocaml.doc"The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."]}letcontext_="SendTaskSuccessInput"letmake~taskToken=fun~output->fun()->{taskToken;output}letto_valuex=structure_to_value[("taskToken",(Some(TaskToken.to_valuex.taskToken)));("output",(Some(SensitiveData.to_valuex.output)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoutput=SensitiveData.of_xml(Xml.child_exn~context:context_xml_arg0"output")inlettaskToken=TaskToken.of_xml(Xml.child_exn~context:context_xml_arg0"taskToken")inmake~output~taskToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoutput=field_map_exnjson__"output"SensitiveData.of_jsoninlettaskToken=field_map_exnjson__"taskToken"TaskToken.of_jsoninmake~output~taskToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken completed successfully."]moduleSendTaskHeartbeatOutput=structtypenonrect=unittypenonrecerror=[`InvalidTokenofInvalidToken.t|`TaskDoesNotExistofTaskDoesNotExist.t|`TaskTimedOutofTaskTimedOut.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"TaskDoesNotExist"->`TaskDoesNotExist(TaskDoesNotExist.of_jsonjson)|"TaskTimedOut"->`TaskTimedOut(TaskTimedOut.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"TaskDoesNotExist"->`TaskDoesNotExist(TaskDoesNotExist.of_xmlxml)|"TaskTimedOut"->`TaskTimedOut(TaskTimedOut.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`TaskDoesNotExiste->`Assoc[("error",(`String"TaskDoesNotExist"));("details",(TaskDoesNotExist.to_jsone))]|`TaskTimedOute->`Assoc[("error",(`String"TaskTimedOut"));("details",(TaskTimedOut.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"Used by activity workers and Task states using the callback pattern, and optionally Task states using the job run pattern to report to Step Functions that the task represented by the specified taskToken is still making progress. This action resets the Heartbeat clock. The Heartbeat threshold is specified in the state machine's Amazon States Language definition (HeartbeatSeconds). This action does not in itself create an event in the execution history. However, if the task times out, the execution history contains an ActivityTimedOut entry for activities, or a TaskTimedOut entry for tasks using the job run or callback pattern. The Timeout of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat requests received. Use HeartbeatSeconds to configure the timeout interval for heartbeats."]moduleSendTaskHeartbeatInput=structtypenonrect={taskToken:TaskToken.t[@ocaml.doc"The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken."]}letcontext_="SendTaskHeartbeatInput"letmake~taskToken=fun()->{taskToken}letto_valuex=structure_to_value[("taskToken",(Some(TaskToken.to_valuex.taskToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskToken=TaskToken.of_xml(Xml.child_exn~context:context_xml_arg0"taskToken")inmake~taskToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskToken=field_map_exnjson__"taskToken"TaskToken.of_jsoninmake~taskToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used by activity workers and Task states using the callback pattern, and optionally Task states using the job run pattern to report to Step Functions that the task represented by the specified taskToken is still making progress. This action resets the Heartbeat clock. The Heartbeat threshold is specified in the state machine's Amazon States Language definition (HeartbeatSeconds). This action does not in itself create an event in the execution history. However, if the task times out, the execution history contains an ActivityTimedOut entry for activities, or a TaskTimedOut entry for tasks using the job run or callback pattern. The Timeout of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat requests received. Use HeartbeatSeconds to configure the timeout interval for heartbeats."]moduleSendTaskFailureOutput=structtypenonrect=unittypenonrecerror=[`InvalidTokenofInvalidToken.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`TaskDoesNotExistofTaskDoesNotExist.t|`TaskTimedOutofTaskTimedOut.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"TaskDoesNotExist"->`TaskDoesNotExist(TaskDoesNotExist.of_jsonjson)|"TaskTimedOut"->`TaskTimedOut(TaskTimedOut.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"TaskDoesNotExist"->`TaskDoesNotExist(TaskDoesNotExist.of_xmlxml)|"TaskTimedOut"->`TaskTimedOut(TaskTimedOut.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`TaskDoesNotExiste->`Assoc[("error",(`String"TaskDoesNotExist"));("details",(TaskDoesNotExist.to_jsone))]|`TaskTimedOute->`Assoc[("error",(`String"TaskTimedOut"));("details",(TaskTimedOut.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"Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken failed. For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role. A caller can mark a task as fail without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted."]moduleSendTaskFailureInput=structtypenonrect={taskToken:TaskToken.t[@ocaml.doc"The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken."];error:SensitiveError.toption[@ocaml.doc"The error code of the failure."];cause:SensitiveCause.toption[@ocaml.doc"A more detailed explanation of the cause of the failure."]}letcontext_="SendTaskFailureInput"letmake?error=fun?cause->fun~taskToken->fun()->{error;cause;taskToken}letto_valuex=structure_to_value[("taskToken",(Some(TaskToken.to_valuex.taskToken)));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inlettaskToken=TaskToken.of_xml(Xml.child_exn~context:context_xml_arg0"taskToken")inmake?cause?error~taskToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninlettaskToken=field_map_exnjson__"taskToken"TaskToken.of_jsoninmake?cause?error~taskToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken failed. For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role. A caller can mark a task as fail without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted."]moduleRedriveExecutionOutput=structtypenonrect={redriveDate:Timestamp.toption[@ocaml.doc"The date the execution was last redriven."]}typenonrecerror=[`ExecutionDoesNotExistofExecutionDoesNotExist.t|`ExecutionLimitExceededofExecutionLimitExceeded.t|`ExecutionNotRedrivableofExecutionNotRedrivable.t|`InvalidArnofInvalidArn.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?redriveDate=fun()->{redriveDate}leterror_of_jsonnamejson=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_jsonjson)|"ExecutionLimitExceeded"->`ExecutionLimitExceeded(ExecutionLimitExceeded.of_jsonjson)|"ExecutionNotRedrivable"->`ExecutionNotRedrivable(ExecutionNotRedrivable.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_xmlxml)|"ExecutionLimitExceeded"->`ExecutionLimitExceeded(ExecutionLimitExceeded.of_xmlxml)|"ExecutionNotRedrivable"->`ExecutionNotRedrivable(ExecutionNotRedrivable.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionDoesNotExiste->`Assoc[("error",(`String"ExecutionDoesNotExist"));("details",(ExecutionDoesNotExist.to_jsone))]|`ExecutionLimitExceedede->`Assoc[("error",(`String"ExecutionLimitExceeded"));("details",(ExecutionLimitExceeded.to_jsone))]|`ExecutionNotRedrivablee->`Assoc[("error",(`String"ExecutionNotRedrivable"));("details",(ExecutionNotRedrivable.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("redriveDate",(Option.mapx.redriveDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"redriveDate")inmake?redriveDate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveDate=field_mapjson__"redriveDate"Timestamp.of_jsoninmake?redriveDate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Restarts unsuccessful executions of Standard workflows that didn't complete successfully in the last 14 days. These include failed, aborted, or timed out executions. When you redrive an execution, it continues the failed execution from the unsuccessful step and uses the same input. Step Functions preserves the results and execution history of the successful steps, and doesn't rerun these steps when you redrive an execution. Redriven executions use the same state machine definition and execution ARN as the original execution attempt. For workflows that include an Inline Map or Parallel state, RedriveExecution API action reschedules and redrives only the iterations and branches that failed or aborted. To redrive a workflow that includes a Distributed Map state whose Map Run failed, you must redrive the parent workflow. The parent workflow redrives all the unsuccessful states, including a failed Map Run. If a Map Run was not started in the original execution attempt, the redriven parent workflow starts the Map Run. This API action is not supported by EXPRESS state machines. However, you can restart the unsuccessful executions of Express child workflows in a Distributed Map by redriving its Map Run. When you redrive a Map Run, the Express child workflows are rerun using the StartExecution API action. For more information, see Redriving Map Runs. You can redrive executions if your original execution meets the following conditions: The execution status isn't SUCCEEDED. Your workflow execution has not exceeded the redrivable period of 14 days. Redrivable period refers to the time during which you can redrive a given execution. This period starts from the day a state machine completes its execution. The workflow execution has not exceeded the maximum open time of one year. For more information about state machine quotas, see Quotas related to state machine executions. The execution event history count is less than 24,999. Redriven executions append their event history to the existing event history. Make sure your workflow execution contains less than 24,999 events to accommodate the ExecutionRedriven history event and at least one other history event."]moduleRedriveExecutionInput=structtypenonrect={executionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution to be redriven."];clientToken:ClientToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don\226\128\153t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency. The API will return idempotent responses for the last 10 client tokens used to successfully redrive the execution. These client tokens are valid for up to 15 minutes after they are first used."]}letcontext_="RedriveExecutionInput"letmake?clientToken=fun~executionArn->fun()->{clientToken;executionArn}letto_valuex=structure_to_value[("executionArn",(Some(Arn.to_valuex.executionArn)));("clientToken",(Option.mapx.clientToken~f:ClientToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"clientToken")inletexecutionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"executionArn")inmake?clientToken~executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"ClientToken.of_jsoninletexecutionArn=field_map_exnjson__"executionArn"Arn.of_jsoninmake?clientToken~executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Restarts unsuccessful executions of Standard workflows that didn't complete successfully in the last 14 days. These include failed, aborted, or timed out executions. When you redrive an execution, it continues the failed execution from the unsuccessful step and uses the same input. Step Functions preserves the results and execution history of the successful steps, and doesn't rerun these steps when you redrive an execution. Redriven executions use the same state machine definition and execution ARN as the original execution attempt. For workflows that include an Inline Map or Parallel state, RedriveExecution API action reschedules and redrives only the iterations and branches that failed or aborted. To redrive a workflow that includes a Distributed Map state whose Map Run failed, you must redrive the parent workflow. The parent workflow redrives all the unsuccessful states, including a failed Map Run. If a Map Run was not started in the original execution attempt, the redriven parent workflow starts the Map Run. This API action is not supported by EXPRESS state machines. However, you can restart the unsuccessful executions of Express child workflows in a Distributed Map by redriving its Map Run. When you redrive a Map Run, the Express child workflows are rerun using the StartExecution API action. For more information, see Redriving Map Runs. You can redrive executions if your original execution meets the following conditions: The execution status isn't SUCCEEDED. Your workflow execution has not exceeded the redrivable period of 14 days. Redrivable period refers to the time during which you can redrive a given execution. This period starts from the day a state machine completes its execution. The workflow execution has not exceeded the maximum open time of one year. For more information about state machine quotas, see Quotas related to state machine executions. The execution event history count is less than 24,999. Redriven executions append their event history to the existing event history. Make sure your workflow execution contains less than 24,999 events to accommodate the ExecutionRedriven history event and at least one other history event."]modulePublishStateMachineVersionOutput=structtypenonrect={creationDate:Timestamp.toption[@ocaml.doc"The date the version was created."];stateMachineVersionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) (ARN) that identifies the state machine version."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`StateMachineDeletingofStateMachineDeleting.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?creationDate=fun?stateMachineVersionArn->fun()->{creationDate;stateMachineVersionArn}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value));("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineVersionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inletcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inmake?stateMachineVersionArn?creationDate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"Arn.of_jsoninletcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninmake?stateMachineVersionArn?creationDate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a version from the current revision of a state machine. Use versions to create immutable snapshots of your state machine. You can start executions from versions either directly or with an alias. To create an alias, use CreateStateMachineAlias. You can publish up to 1000 versions for each state machine. You must manually delete unused versions using the DeleteStateMachineVersion API action. PublishStateMachineVersion is an idempotent API. It doesn't create a duplicate state machine version if it already exists for the current revision. Step Functions bases PublishStateMachineVersion's idempotency check on the stateMachineArn, name, and revisionId parameters. Requests with the same parameters return a successful idempotent response. If you don't specify a revisionId, Step Functions checks for a previously published version of the state machine's current revision. Related operations: DeleteStateMachineVersion ListStateMachineVersions"]modulePublishStateMachineVersionInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine."];revisionId:RevisionId.toption[@ocaml.doc"Only publish the state machine version if the current state machine's revision ID matches the specified ID. Use this option to avoid publishing a version if the state machine changed since you last updated it. If the specified revision ID doesn't match the state machine's current revision ID, the API returns ConflictException. To specify an initial revision ID for a state machine with no revision ID assigned, specify the string INITIAL for the revisionId parameter. For example, you can specify a revisionID of INITIAL when you create a state machine using the CreateStateMachine API action."];description:VersionDescription.toption[@ocaml.doc"An optional description of the state machine version."]}letcontext_="PublishStateMachineVersionInput"letmake?revisionId=fun?description->fun~stateMachineArn->fun()->{revisionId;description;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value));("description",(Option.mapx.description~f:VersionDescription.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:VersionDescription.of_xml)(Xml.childxml_arg0"description")inletrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?description?revisionId~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"description"VersionDescription.of_jsoninletrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?description?revisionId~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a version from the current revision of a state machine. Use versions to create immutable snapshots of your state machine. You can start executions from versions either directly or with an alias. To create an alias, use CreateStateMachineAlias. You can publish up to 1000 versions for each state machine. You must manually delete unused versions using the DeleteStateMachineVersion API action. PublishStateMachineVersion is an idempotent API. It doesn't create a duplicate state machine version if it already exists for the current revision. Step Functions bases PublishStateMachineVersion's idempotency check on the stateMachineArn, name, and revisionId parameters. Requests with the same parameters return a successful idempotent response. If you don't specify a revisionId, Step Functions checks for a previously published version of the state machine's current revision. Related operations: DeleteStateMachineVersion ListStateMachineVersions"]moduleListTagsForResourceOutput=structtypenonrect={tags:TagList.toption[@ocaml.doc"An array of tags associated with the resource."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List tags for a given resource. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) for the Step Functions state machine or activity."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List tags for a given resource. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."]moduleListStateMachinesOutput=structtypenonrect={stateMachines:StateMachineList.toption;nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`InvalidTokenofInvalidToken.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachines=fun?nextToken->fun()->{stateMachines;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachines",(Option.mapx.stateMachines~f:StateMachineList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletstateMachines=(Option.map~f:StateMachineList.of_xml)(Xml.childxml_arg0"stateMachines")inmake?nextToken?stateMachines()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletstateMachines=field_mapjson__"stateMachines"StateMachineList.of_jsoninmake?nextToken?stateMachines()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the existing state machines. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleListStateMachinesInput=structtypenonrect={maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:PageSize.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:PageSize.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"PageToken.of_jsoninletmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the existing state machines. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleListStateMachineVersionsOutput=structtypenonrect={stateMachineVersions:StateMachineVersionList.toption[@ocaml.doc"Versions for the state machine."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`InvalidTokenofInvalidToken.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineVersions=fun?nextToken->fun()->{stateMachineVersions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineVersions",(Option.mapx.stateMachineVersions~f:StateMachineVersionList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletstateMachineVersions=(Option.map~f:StateMachineVersionList.of_xml)(Xml.childxml_arg0"stateMachineVersions")inmake?nextToken?stateMachineVersions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletstateMachineVersions=field_mapjson__"stateMachineVersions"StateMachineVersionList.of_jsoninmake?nextToken?stateMachineVersions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists versions for the specified state machine Amazon Resource Name (ARN). The results are sorted in descending order of the version creation time. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. Related operations: PublishStateMachineVersion DeleteStateMachineVersion"]moduleListStateMachineVersionsInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."];maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."]}letcontext_="ListStateMachineVersionsInput"letmake?nextToken=fun?maxResults->fun~stateMachineArn->fun()->{nextToken;maxResults;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("maxResults",(Option.mapx.maxResults~f:PageSize.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:PageSize.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?maxResults?nextToken~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?maxResults?nextToken~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists versions for the specified state machine Amazon Resource Name (ARN). The results are sorted in descending order of the version creation time. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. Related operations: PublishStateMachineVersion DeleteStateMachineVersion"]moduleListStateMachineAliasesOutput=structtypenonrect={stateMachineAliases:StateMachineAliasList.toption[@ocaml.doc"Aliases for the state machine."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`InvalidTokenofInvalidToken.t|`ResourceNotFoundofResourceNotFound.t|`StateMachineDeletingofStateMachineDeleting.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineAliases=fun?nextToken->fun()->{stateMachineAliases;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineAliases",(Option.mapx.stateMachineAliases~f:StateMachineAliasList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletstateMachineAliases=(Option.map~f:StateMachineAliasList.of_xml)(Xml.childxml_arg0"stateMachineAliases")inmake?nextToken?stateMachineAliases()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletstateMachineAliases=field_mapjson__"stateMachineAliases"StateMachineAliasList.of_jsoninmake?nextToken?stateMachineAliases()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists aliases for a specified state machine ARN. Results are sorted by time, with the most recently created aliases listed first. To list aliases that reference a state machine version, you can specify the version ARN in the stateMachineArn parameter. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. Related operations: CreateStateMachineAlias DescribeStateMachineAlias UpdateStateMachineAlias DeleteStateMachineAlias"]moduleListStateMachineAliasesInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine for which you want to list aliases. If you specify a state machine version ARN, this API returns a list of aliases for that version."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."];maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."]}letcontext_="ListStateMachineAliasesInput"letmake?nextToken=fun?maxResults->fun~stateMachineArn->fun()->{nextToken;maxResults;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("maxResults",(Option.mapx.maxResults~f:PageSize.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:PageSize.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?maxResults?nextToken~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?maxResults?nextToken~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists aliases for a specified state machine ARN. Results are sorted by time, with the most recently created aliases listed first. To list aliases that reference a state machine version, you can specify the version ARN in the stateMachineArn parameter. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. Related operations: CreateStateMachineAlias DescribeStateMachineAlias UpdateStateMachineAlias DeleteStateMachineAlias"]moduleListMapRunsOutput=structtypenonrect={mapRuns:MapRunList.toption[@ocaml.doc"An array that lists information related to a Map Run, such as the Amazon Resource Name (ARN) of the Map Run and the ARN of the state machine that started the Map Run."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`ExecutionDoesNotExistofExecutionDoesNotExist.t|`InvalidArnofInvalidArn.t|`InvalidTokenofInvalidToken.t|`Unknown_operation_errorof(string*stringoption)]letmake?mapRuns=fun?nextToken->fun()->{mapRuns;nextToken}leterror_of_jsonnamejson=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionDoesNotExiste->`Assoc[("error",(`String"ExecutionDoesNotExist"));("details",(ExecutionDoesNotExist.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("mapRuns",(Option.mapx.mapRuns~f:MapRunList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletmapRuns=(Option.map~f:MapRunList.of_xml)(Xml.childxml_arg0"mapRuns")inmake?nextToken?mapRuns()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletmapRuns=field_mapjson__"mapRuns"MapRunList.of_jsoninmake?nextToken?mapRuns()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call DescribeMapRun to obtain more information, if needed."]moduleListMapRunsInput=structtypenonrect={executionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution for which the Map Runs must be listed."];maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}letcontext_="ListMapRunsInput"letmake?maxResults=fun?nextToken->fun~executionArn->fun()->{maxResults;nextToken;executionArn}letto_valuex=structure_to_value[("executionArn",(Some(Arn.to_valuex.executionArn)));("maxResults",(Option.mapx.maxResults~f:PageSize.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:PageSize.of_xml)(Xml.childxml_arg0"maxResults")inletexecutionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"executionArn")inmake?nextToken?maxResults~executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninletexecutionArn=field_map_exnjson__"executionArn"Arn.of_jsoninmake?nextToken?maxResults~executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all Map Runs that were started by a given state machine execution. Use this API action to obtain Map Run ARNs, and then call DescribeMapRun to obtain more information, if needed."]moduleListExecutionsOutput=structtypenonrect={executions:ExecutionList.toption[@ocaml.doc"The list of matching executions."];nextToken:ListExecutionsPageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`InvalidTokenofInvalidToken.t|`ResourceNotFoundofResourceNotFound.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`StateMachineTypeNotSupportedofStateMachineTypeNotSupported.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executions=fun?nextToken->fun()->{executions;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|"StateMachineTypeNotSupported"->`StateMachineTypeNotSupported(StateMachineTypeNotSupported.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|"StateMachineTypeNotSupported"->`StateMachineTypeNotSupported(StateMachineTypeNotSupported.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`StateMachineTypeNotSupportede->`Assoc[("error",(`String"StateMachineTypeNotSupported"));("details",(StateMachineTypeNotSupported.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executions",(Option.mapx.executions~f:ExecutionList.to_value));("nextToken",(Option.mapx.nextToken~f:ListExecutionsPageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:ListExecutionsPageToken.of_xml)(Xml.childxml_arg0"nextToken")inletexecutions=(Option.map~f:ExecutionList.of_xml)(Xml.childxml_arg0"executions")inmake?nextToken?executions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"ListExecutionsPageToken.of_jsoninletexecutions=field_mapjson__"executions"ExecutionList.of_jsoninmake?nextToken?executions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN. Using this API action, you can also list all redriven executions. You can also provide a state machine alias ARN or version ARN to list the executions associated with a specific alias or version. Results are sorted by time, with the most recent execution first. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. This API action is not supported by EXPRESS state machines."]moduleListExecutionsInput=structtypenonrect={stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine whose executions is listed. You can specify either a mapRunArn or a stateMachineArn, but not both. You can also return a list of executions associated with a specific alias or version, by specifying an alias ARN or a version ARN in the stateMachineArn parameter."];statusFilter:ExecutionStatus.toption[@ocaml.doc"If specified, only list the executions whose current execution status matches the given filter. If you provide a PENDING_REDRIVE statusFilter, you must specify mapRunArn. For more information, see Child workflow execution redrive behaviour in the Step Functions Developer Guide. If you provide a stateMachineArn and a PENDING_REDRIVE statusFilter, the API returns a validation exception."];maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."];nextToken:ListExecutionsPageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."];mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Map Run that started the child workflow executions. If the mapRunArn field is specified, a list of all of the child workflow executions started by a Map Run is returned. For more information, see Examining Map Run in the Step Functions Developer Guide. You can specify either a mapRunArn or a stateMachineArn, but not both."];redriveFilter:ExecutionRedriveFilter.toption[@ocaml.doc"Sets a filter to list executions based on whether or not they have been redriven. For a Distributed Map, redriveFilter sets a filter to list child workflow executions based on whether or not they have been redriven. If you do not provide a redriveFilter, Step Functions returns a list of both redriven and non-redriven executions. If you provide a state machine ARN in redriveFilter, the API returns a validation exception."]}letmake?stateMachineArn=fun?statusFilter->fun?maxResults->fun?nextToken->fun?mapRunArn->fun?redriveFilter->fun()->{stateMachineArn;statusFilter;maxResults;nextToken;mapRunArn;redriveFilter}letto_valuex=structure_to_value[("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("statusFilter",(Option.mapx.statusFilter~f:ExecutionStatus.to_value));("maxResults",(Option.mapx.maxResults~f:PageSize.to_value));("nextToken",(Option.mapx.nextToken~f:ListExecutionsPageToken.to_value));("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("redriveFilter",(Option.mapx.redriveFilter~f:ExecutionRedriveFilter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveFilter=(Option.map~f:ExecutionRedriveFilter.of_xml)(Xml.childxml_arg0"redriveFilter")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inletnextToken=(Option.map~f:ListExecutionsPageToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:PageSize.of_xml)(Xml.childxml_arg0"maxResults")inletstatusFilter=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"statusFilter")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inmake?redriveFilter?mapRunArn?nextToken?maxResults?statusFilter?stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveFilter=field_mapjson__"redriveFilter"ExecutionRedriveFilter.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninletnextToken=field_mapjson__"nextToken"ListExecutionsPageToken.of_jsoninletmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninletstatusFilter=field_mapjson__"statusFilter"ExecutionStatus.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninmake?redriveFilter?mapRunArn?nextToken?maxResults?statusFilter?stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN. Using this API action, you can also list all redriven executions. You can also provide a state machine alias ARN or version ARN to list the executions associated with a specific alias or version. Results are sorted by time, with the most recent execution first. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. This API action is not supported by EXPRESS state machines."]moduleListActivitiesOutput=structtypenonrect={activities:ActivityList.toption[@ocaml.doc"The list of activities."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`InvalidTokenofInvalidToken.t|`Unknown_operation_errorof(string*stringoption)]letmake?activities=fun?nextToken->fun()->{activities;nextToken}leterror_of_jsonnamejson=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("activities",(Option.mapx.activities~f:ActivityList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletactivities=(Option.map~f:ActivityList.of_xml)(Xml.childxml_arg0"activities")inmake?nextToken?activities()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletactivities=field_mapjson__"activities"ActivityList.of_jsoninmake?nextToken?activities()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the existing activities. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleListActivitiesInput=structtypenonrect={maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:PageSize.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:PageSize.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"PageToken.of_jsoninletmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists the existing activities. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleGetExecutionHistoryOutput=structtypenonrect={events:HistoryEventList.toption[@ocaml.doc"The list of events that occurred in the execution."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."]}typenonrecerror=[`ExecutionDoesNotExistofExecutionDoesNotExist.t|`InvalidArnofInvalidArn.t|`InvalidTokenofInvalidToken.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?events=fun?nextToken->fun()->{events;nextToken}leterror_of_jsonnamejson=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidToken"->`InvalidToken(InvalidToken.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidToken"->`InvalidToken(InvalidToken.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionDoesNotExiste->`Assoc[("error",(`String"ExecutionDoesNotExist"));("details",(ExecutionDoesNotExist.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidTokene->`Assoc[("error",(`String"InvalidToken"));("details",(InvalidToken.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("events",(Option.mapx.events~f:HistoryEventList.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletevents=(Option.map~f:HistoryEventList.of_xml)(Xml.childxml_arg0"events")inmake?nextToken?events()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletevents=field_mapjson__"events"HistoryEventList.of_jsoninmake?nextToken?events()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This API action is not supported by EXPRESS state machines."]moduleGetExecutionHistoryInput=structtypenonrect={executionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution."];maxResults:PageSize.toption[@ocaml.doc"The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum."];reverseOrder:ReverseOrder.toption[@ocaml.doc"Lists events in descending order of their timeStamp."];nextToken:PageToken.toption[@ocaml.doc"If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error."];includeExecutionData:IncludeExecutionDataGetExecutionHistory.toption[@ocaml.doc"You can select whether execution data (input or output of a history event) is returned. The default is true."]}letcontext_="GetExecutionHistoryInput"letmake?maxResults=fun?reverseOrder->fun?nextToken->fun?includeExecutionData->fun~executionArn->fun()->{maxResults;reverseOrder;nextToken;includeExecutionData;executionArn}letto_valuex=structure_to_value[("executionArn",(Some(Arn.to_valuex.executionArn)));("maxResults",(Option.mapx.maxResults~f:PageSize.to_value));("reverseOrder",(Option.mapx.reverseOrder~f:ReverseOrder.to_value));("nextToken",(Option.mapx.nextToken~f:PageToken.to_value));("includeExecutionData",(Option.mapx.includeExecutionData~f:IncludeExecutionDataGetExecutionHistory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludeExecutionData=(Option.map~f:IncludeExecutionDataGetExecutionHistory.of_xml)(Xml.childxml_arg0"includeExecutionData")inletnextToken=(Option.map~f:PageToken.of_xml)(Xml.childxml_arg0"nextToken")inletreverseOrder=(Option.map~f:ReverseOrder.of_xml)(Xml.childxml_arg0"reverseOrder")inletmaxResults=(Option.map~f:PageSize.of_xml)(Xml.childxml_arg0"maxResults")inletexecutionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"executionArn")inmake?includeExecutionData?nextToken?reverseOrder?maxResults~executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludeExecutionData=field_mapjson__"includeExecutionData"IncludeExecutionDataGetExecutionHistory.of_jsoninletnextToken=field_mapjson__"nextToken"PageToken.of_jsoninletreverseOrder=field_mapjson__"reverseOrder"ReverseOrder.of_jsoninletmaxResults=field_mapjson__"maxResults"PageSize.of_jsoninletexecutionArn=field_map_exnjson__"executionArn"Arn.of_jsoninmake?includeExecutionData?nextToken?reverseOrder?maxResults~executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. This API action is not supported by EXPRESS state machines."]moduleGetActivityTaskOutput=structtypenonrect={taskToken:TaskToken.toption[@ocaml.doc"A token that identifies the scheduled task. This token must be copied and included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure in order to report the progress or completion of the task."];input:SensitiveDataJobInput.toption[@ocaml.doc"The string that contains the JSON input data for the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."]}typenonrecerror=[`ActivityDoesNotExistofActivityDoesNotExist.t|`ActivityWorkerLimitExceededofActivityWorkerLimitExceeded.t|`InvalidArnofInvalidArn.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?taskToken=fun?input->fun()->{taskToken;input}leterror_of_jsonnamejson=matchnamewith|"ActivityDoesNotExist"->`ActivityDoesNotExist(ActivityDoesNotExist.of_jsonjson)|"ActivityWorkerLimitExceeded"->`ActivityWorkerLimitExceeded(ActivityWorkerLimitExceeded.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ActivityDoesNotExist"->`ActivityDoesNotExist(ActivityDoesNotExist.of_xmlxml)|"ActivityWorkerLimitExceeded"->`ActivityWorkerLimitExceeded(ActivityWorkerLimitExceeded.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ActivityDoesNotExiste->`Assoc[("error",(`String"ActivityDoesNotExist"));("details",(ActivityDoesNotExist.to_jsone))]|`ActivityWorkerLimitExceedede->`Assoc[("error",(`String"ActivityWorkerLimitExceeded"));("details",(ActivityWorkerLimitExceeded.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("taskToken",(Option.mapx.taskToken~f:TaskToken.to_value));("input",(Option.mapx.input~f:SensitiveDataJobInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinput=(Option.map~f:SensitiveDataJobInput.of_xml)(Xml.childxml_arg0"input")inlettaskToken=(Option.map~f:TaskToken.of_xml)(Xml.childxml_arg0"taskToken")inmake?input?taskToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinput=field_mapjson__"input"SensitiveDataJobInput.of_jsoninlettaskToken=field_mapjson__"taskToken"TaskToken.of_jsoninmake?input?taskToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns a taskToken with a null string. This API action isn't logged in CloudTrail. Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request). Polling with GetActivityTask can cause latency in some implementations. See Avoid Latency When Polling for Activity Tasks in the Step Functions Developer Guide."]moduleGetActivityTaskInput=structtypenonrect={activityArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using CreateActivity.)"];workerName:Name.toption[@ocaml.doc"You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history."]}letcontext_="GetActivityTaskInput"letmake?workerName=fun~activityArn->fun()->{workerName;activityArn}letto_valuex=structure_to_value[("activityArn",(Some(Arn.to_valuex.activityArn)));("workerName",(Option.mapx.workerName~f:Name.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letworkerName=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"workerName")inletactivityArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"activityArn")inmake?workerName~activityArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letworkerName=field_mapjson__"workerName"Name.of_jsoninletactivityArn=field_map_exnjson__"activityArn"Arn.of_jsoninmake?workerName~activityArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns a taskToken with a null string. This API action isn't logged in CloudTrail. Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll request). Polling with GetActivityTask can cause latency in some implementations. See Avoid Latency When Polling for Activity Tasks in the Step Functions Developer Guide."]moduleDescribeStateMachineOutput=structtypenonrect={stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the state machine. If you specified a state machine version ARN in your request, the API returns the version ARN. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example, stateMachineARN:1."];name:Name.toption[@ocaml.doc"The name of the state machine. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];status:StateMachineStatus.toption[@ocaml.doc"The current status of the state machine."];definition:Definition.toption[@ocaml.doc"The Amazon States Language definition of the state machine. See Amazon States Language. If called with includedData = METADATA_ONLY, the returned definition will be \\{\\}."];roleArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role used when creating this state machine. (The IAM role maintains security by granting Step Functions access to Amazon Web Services resources.)"];type_:StateMachineType.toption[@ocaml.doc"The type of the state machine (STANDARD or EXPRESS)."];creationDate:Timestamp.toption[@ocaml.doc"The date the state machine is created. For a state machine version, creationDate is the date the version was created."];loggingConfiguration:LoggingConfiguration.toption;tracingConfiguration:TracingConfiguration.toption[@ocaml.doc"Selects whether X-Ray tracing is enabled."];label:MapRunLabel.toption[@ocaml.doc"A user-defined or an auto-generated string that identifies a Map state. This parameter is present only if the stateMachineArn specified in input is a qualified state machine ARN."];revisionId:RevisionId.toption[@ocaml.doc"The revision identifier for the state machine. Use the revisionId parameter to compare between versions of a state machine configuration used for executions without performing a diff of the properties, such as definition and roleArn."];description:VersionDescription.toption[@ocaml.doc"The description of the state machine version."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Settings to configure server-side encryption."];variableReferences:VariableReferences.toption[@ocaml.doc"A map of state name to a list of variables referenced by that state. States that do not use variable references will not be shown in the response."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`StateMachineDoesNotExistofStateMachineDoesNotExist.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineArn=fun?name->fun?status->fun?definition->fun?roleArn->fun?type_->fun?creationDate->fun?loggingConfiguration->fun?tracingConfiguration->fun?label->fun?revisionId->fun?description->fun?encryptionConfiguration->fun?variableReferences->fun()->{stateMachineArn;name;status;definition;roleArn;type_;creationDate;loggingConfiguration;tracingConfiguration;label;revisionId;description;encryptionConfiguration;variableReferences}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"StateMachineDoesNotExist"->`StateMachineDoesNotExist(StateMachineDoesNotExist.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`StateMachineDoesNotExiste->`Assoc[("error",(`String"StateMachineDoesNotExist"));("details",(StateMachineDoesNotExist.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("status",(Option.mapx.status~f:StateMachineStatus.to_value));("definition",(Option.mapx.definition~f:Definition.to_value));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("type",(Option.mapx.type_~f:StateMachineType.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value));("loggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfiguration.to_value));("tracingConfiguration",(Option.mapx.tracingConfiguration~f:TracingConfiguration.to_value));("label",(Option.mapx.label~f:MapRunLabel.to_value));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value));("description",(Option.mapx.description~f:VersionDescription.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value));("variableReferences",(Option.mapx.variableReferences~f:VariableReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvariableReferences=(Option.map~f:VariableReferences.of_xml)(Xml.childxml_arg0"variableReferences")inletencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletdescription=(Option.map~f:VersionDescription.of_xml)(Xml.childxml_arg0"description")inletrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletlabel=(Option.map~f:MapRunLabel.of_xml)(Xml.childxml_arg0"label")inlettracingConfiguration=(Option.map~f:TracingConfiguration.of_xml)(Xml.childxml_arg0"tracingConfiguration")inletloggingConfiguration=(Option.map~f:LoggingConfiguration.of_xml)(Xml.childxml_arg0"loggingConfiguration")inletcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inlettype_=(Option.map~f:StateMachineType.of_xml)(Xml.childxml_arg0"type")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inletdefinition=(Option.map~f:Definition.of_xml)(Xml.childxml_arg0"definition")inletstatus=(Option.map~f:StateMachineStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inmake?variableReferences?encryptionConfiguration?description?revisionId?label?tracingConfiguration?loggingConfiguration?creationDate?type_?roleArn?definition?status?name?stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvariableReferences=field_mapjson__"variableReferences"VariableReferences.of_jsoninletencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletdescription=field_mapjson__"description"VersionDescription.of_jsoninletrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletlabel=field_mapjson__"label"MapRunLabel.of_jsoninlettracingConfiguration=field_mapjson__"tracingConfiguration"TracingConfiguration.of_jsoninletloggingConfiguration=field_mapjson__"loggingConfiguration"LoggingConfiguration.of_jsoninletcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninlettype_=field_mapjson__"type"StateMachineType.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninletdefinition=field_mapjson__"definition"Definition.of_jsoninletstatus=field_mapjson__"status"StateMachineStatus.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninmake?variableReferences?encryptionConfiguration?description?revisionId?label?tracingConfiguration?loggingConfiguration?creationDate?type_?roleArn?definition?status?name?stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> This API action returns the details for a state machine version if the stateMachineArn you specify is a state machine version ARN. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleDescribeStateMachineInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine for which you want the information. If you specify a state machine version ARN, this API returns details about that version. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example, stateMachineARN:1."];includedData:IncludedData.toption[@ocaml.doc"If your state machine definition is encrypted with a KMS key, callers must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the API with includedData = METADATA_ONLY to get a successful response without the encrypted definition. When calling a labelled ARN for an encrypted state machine, the includedData = METADATA_ONLY parameter will not apply because Step Functions needs to decrypt the entire state machine definition to get the Distributed Map state\226\128\153s definition. In this case, the API caller needs to have kms:Decrypt permission."]}letcontext_="DescribeStateMachineInput"letmake?includedData=fun~stateMachineArn->fun()->{includedData;stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)));("includedData",(Option.mapx.includedData~f:IncludedData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludedData=(Option.map~f:IncludedData.of_xml)(Xml.childxml_arg0"includedData")inletstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake?includedData~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludedData=field_mapjson__"includedData"IncludedData.of_jsoninletstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake?includedData~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> This API action returns the details for a state machine version if the stateMachineArn you specify is a state machine version ARN. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleDescribeStateMachineForExecutionOutput=structtypenonrect={stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine associated with the execution."];name:Name.toption[@ocaml.doc"The name of the state machine associated with the execution."];definition:Definition.toption[@ocaml.doc"The Amazon States Language definition of the state machine. See Amazon States Language."];roleArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution."];updateDate:Timestamp.toption[@ocaml.doc"The date and time the state machine associated with an execution was updated. For a newly created state machine, this is the creation date."];loggingConfiguration:LoggingConfiguration.toption;tracingConfiguration:TracingConfiguration.toption[@ocaml.doc"Selects whether X-Ray tracing is enabled."];mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned only if the executionArn is a child workflow execution that was started by a Distributed Map state."];label:MapRunLabel.toption[@ocaml.doc"A user-defined or an auto-generated string that identifies a Map state. This field is returned only if the executionArn is a child workflow execution that was started by a Distributed Map state."];revisionId:RevisionId.toption[@ocaml.doc"The revision identifier for the state machine. The first revision ID when you create the state machine is null. Use the state machine revisionId parameter to compare the revision of a state machine with the configuration of the state machine used for executions without performing a diff of the properties, such as definition and roleArn."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Settings to configure server-side encryption."];variableReferences:VariableReferences.toption[@ocaml.doc"A map of state name to a list of variables referenced by that state. States that do not use variable references will not be shown in the response."]}typenonrecerror=[`ExecutionDoesNotExistofExecutionDoesNotExist.t|`InvalidArnofInvalidArn.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineArn=fun?name->fun?definition->fun?roleArn->fun?updateDate->fun?loggingConfiguration->fun?tracingConfiguration->fun?mapRunArn->fun?label->fun?revisionId->fun?encryptionConfiguration->fun?variableReferences->fun()->{stateMachineArn;name;definition;roleArn;updateDate;loggingConfiguration;tracingConfiguration;mapRunArn;label;revisionId;encryptionConfiguration;variableReferences}leterror_of_jsonnamejson=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionDoesNotExiste->`Assoc[("error",(`String"ExecutionDoesNotExist"));("details",(ExecutionDoesNotExist.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("definition",(Option.mapx.definition~f:Definition.to_value));("roleArn",(Option.mapx.roleArn~f:Arn.to_value));("updateDate",(Option.mapx.updateDate~f:Timestamp.to_value));("loggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfiguration.to_value));("tracingConfiguration",(Option.mapx.tracingConfiguration~f:TracingConfiguration.to_value));("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("label",(Option.mapx.label~f:MapRunLabel.to_value));("revisionId",(Option.mapx.revisionId~f:RevisionId.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value));("variableReferences",(Option.mapx.variableReferences~f:VariableReferences.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvariableReferences=(Option.map~f:VariableReferences.of_xml)(Xml.childxml_arg0"variableReferences")inletencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletrevisionId=(Option.map~f:RevisionId.of_xml)(Xml.childxml_arg0"revisionId")inletlabel=(Option.map~f:MapRunLabel.of_xml)(Xml.childxml_arg0"label")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inlettracingConfiguration=(Option.map~f:TracingConfiguration.of_xml)(Xml.childxml_arg0"tracingConfiguration")inletloggingConfiguration=(Option.map~f:LoggingConfiguration.of_xml)(Xml.childxml_arg0"loggingConfiguration")inletupdateDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updateDate")inletroleArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"roleArn")inletdefinition=(Option.map~f:Definition.of_xml)(Xml.childxml_arg0"definition")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inmake?variableReferences?encryptionConfiguration?revisionId?label?mapRunArn?tracingConfiguration?loggingConfiguration?updateDate?roleArn?definition?name?stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvariableReferences=field_mapjson__"variableReferences"VariableReferences.of_jsoninletencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletrevisionId=field_mapjson__"revisionId"RevisionId.of_jsoninletlabel=field_mapjson__"label"MapRunLabel.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninlettracingConfiguration=field_mapjson__"tracingConfiguration"TracingConfiguration.of_jsoninletloggingConfiguration=field_mapjson__"loggingConfiguration"LoggingConfiguration.of_jsoninletupdateDate=field_mapjson__"updateDate"Timestamp.of_jsoninletroleArn=field_mapjson__"roleArn"Arn.of_jsoninletdefinition=field_mapjson__"definition"Definition.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninmake?variableReferences?encryptionConfiguration?revisionId?label?mapRunArn?tracingConfiguration?loggingConfiguration?updateDate?roleArn?definition?name?stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a state machine's definition, its execution role ARN, and configuration. If a Map Run dispatched the execution, this action returns the Map Run Amazon Resource Name (ARN) in the response. The state machine returned is the state machine associated with the Map Run. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. This API action is not supported by EXPRESS state machines."]moduleDescribeStateMachineForExecutionInput=structtypenonrect={executionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution you want state machine information for."];includedData:IncludedData.toption[@ocaml.doc"If your state machine definition is encrypted with a KMS key, callers must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call the API with includedData = METADATA_ONLY to get a successful response without the encrypted definition."]}letcontext_="DescribeStateMachineForExecutionInput"letmake?includedData=fun~executionArn->fun()->{includedData;executionArn}letto_valuex=structure_to_value[("executionArn",(Some(Arn.to_valuex.executionArn)));("includedData",(Option.mapx.includedData~f:IncludedData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludedData=(Option.map~f:IncludedData.of_xml)(Xml.childxml_arg0"includedData")inletexecutionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"executionArn")inmake?includedData~executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludedData=field_mapjson__"includedData"IncludedData.of_jsoninletexecutionArn=field_map_exnjson__"executionArn"Arn.of_jsoninmake?includedData~executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a state machine's definition, its execution role ARN, and configuration. If a Map Run dispatched the execution, this action returns the Map Run Amazon Resource Name (ARN) in the response. The state machine returned is the state machine associated with the Map Run. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. This API action is not supported by EXPRESS state machines."]moduleDescribeStateMachineAliasOutput=structtypenonrect={stateMachineAliasArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine alias."];name:Name.toption[@ocaml.doc"The name of the state machine alias."];description:AliasDescription.toption[@ocaml.doc"A description of the alias."];routingConfiguration:RoutingConfigurationList.toption[@ocaml.doc"The routing configuration of the alias."];creationDate:Timestamp.toption[@ocaml.doc"The date the state machine alias was created."];updateDate:Timestamp.toption[@ocaml.doc"The date the state machine alias was last updated. For a newly created state machine, this is the same as the creation date."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineAliasArn=fun?name->fun?description->fun?routingConfiguration->fun?creationDate->fun?updateDate->fun()->{stateMachineAliasArn;name;description;routingConfiguration;creationDate;updateDate}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineAliasArn",(Option.mapx.stateMachineAliasArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("description",(Option.mapx.description~f:AliasDescription.to_value));("routingConfiguration",(Option.mapx.routingConfiguration~f:RoutingConfigurationList.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value));("updateDate",(Option.mapx.updateDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdateDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updateDate")inletcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletroutingConfiguration=(Option.map~f:RoutingConfigurationList.of_xml)(Xml.childxml_arg0"routingConfiguration")inletdescription=(Option.map~f:AliasDescription.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineAliasArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineAliasArn")inmake?updateDate?creationDate?routingConfiguration?description?name?stateMachineAliasArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdateDate=field_mapjson__"updateDate"Timestamp.of_jsoninletcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletroutingConfiguration=field_mapjson__"routingConfiguration"RoutingConfigurationList.of_jsoninletdescription=field_mapjson__"description"AliasDescription.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineAliasArn=field_mapjson__"stateMachineAliasArn"Arn.of_jsoninmake?updateDate?creationDate?routingConfiguration?description?name?stateMachineAliasArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns details about a state machine alias. Related operations: CreateStateMachineAlias ListStateMachineAliases UpdateStateMachineAlias DeleteStateMachineAlias"]moduleDescribeStateMachineAliasInput=structtypenonrect={stateMachineAliasArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine alias."]}letcontext_="DescribeStateMachineAliasInput"letmake~stateMachineAliasArn=fun()->{stateMachineAliasArn}letto_valuex=structure_to_value[("stateMachineAliasArn",(Some(Arn.to_valuex.stateMachineAliasArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineAliasArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineAliasArn")inmake~stateMachineAliasArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineAliasArn=field_map_exnjson__"stateMachineAliasArn"Arn.of_jsoninmake~stateMachineAliasArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Returns details about a state machine alias. Related operations: CreateStateMachineAlias ListStateMachineAliases UpdateStateMachineAlias DeleteStateMachineAlias"]moduleDescribeMapRunOutput=structtypenonrect={mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a Map Run."];executionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the execution in which the Map Run was started."];status:MapRunStatus.toption[@ocaml.doc"The current status of the Map Run."];startDate:Timestamp.toption[@ocaml.doc"The date when the Map Run was started."];stopDate:Timestamp.toption[@ocaml.doc"The date when the Map Run was stopped."];maxConcurrency:MaxConcurrency.toption[@ocaml.doc"The maximum number of child workflow executions configured to run in parallel for the Map Run at the same time."];toleratedFailurePercentage:ToleratedFailurePercentage.toption[@ocaml.doc"The maximum percentage of failed child workflow executions before the Map Run fails."];toleratedFailureCount:ToleratedFailureCount.toption[@ocaml.doc"The maximum number of failed child workflow executions before the Map Run fails."];itemCounts:MapRunItemCounts.toption[@ocaml.doc"A JSON object that contains information about the total number of items, and the item count for each processing status, such as pending and failed."];executionCounts:MapRunExecutionCounts.toption[@ocaml.doc"A JSON object that contains information about the total number of child workflow executions for the Map Run, and the count of child workflow executions for each status, such as failed and succeeded."];redriveCount:RedriveCount.toption[@ocaml.doc"The number of times you've redriven a Map Run. If you have not yet redriven a Map Run, the redriveCount is 0. This count is only updated if you successfully redrive a Map Run."];redriveDate:Timestamp.toption[@ocaml.doc"The date a Map Run was last redriven. If you have not yet redriven a Map Run, the redriveDate is null."]}typenonrecerror=[`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`Unknown_operation_errorof(string*stringoption)]letmake?mapRunArn=fun?executionArn->fun?status->fun?startDate->fun?stopDate->fun?maxConcurrency->fun?toleratedFailurePercentage->fun?toleratedFailureCount->fun?itemCounts->fun?executionCounts->fun?redriveCount->fun?redriveDate->fun()->{mapRunArn;executionArn;status;startDate;stopDate;maxConcurrency;toleratedFailurePercentage;toleratedFailureCount;itemCounts;executionCounts;redriveCount;redriveDate}leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("executionArn",(Option.mapx.executionArn~f:Arn.to_value));("status",(Option.mapx.status~f:MapRunStatus.to_value));("startDate",(Option.mapx.startDate~f:Timestamp.to_value));("stopDate",(Option.mapx.stopDate~f:Timestamp.to_value));("maxConcurrency",(Option.mapx.maxConcurrency~f:MaxConcurrency.to_value));("toleratedFailurePercentage",(Option.mapx.toleratedFailurePercentage~f:ToleratedFailurePercentage.to_value));("toleratedFailureCount",(Option.mapx.toleratedFailureCount~f:ToleratedFailureCount.to_value));("itemCounts",(Option.mapx.itemCounts~f:MapRunItemCounts.to_value));("executionCounts",(Option.mapx.executionCounts~f:MapRunExecutionCounts.to_value));("redriveCount",(Option.mapx.redriveCount~f:RedriveCount.to_value));("redriveDate",(Option.mapx.redriveDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"redriveDate")inletredriveCount=(Option.map~f:RedriveCount.of_xml)(Xml.childxml_arg0"redriveCount")inletexecutionCounts=(Option.map~f:MapRunExecutionCounts.of_xml)(Xml.childxml_arg0"executionCounts")inletitemCounts=(Option.map~f:MapRunItemCounts.of_xml)(Xml.childxml_arg0"itemCounts")inlettoleratedFailureCount=(Option.map~f:ToleratedFailureCount.of_xml)(Xml.childxml_arg0"toleratedFailureCount")inlettoleratedFailurePercentage=(Option.map~f:ToleratedFailurePercentage.of_xml)(Xml.childxml_arg0"toleratedFailurePercentage")inletmaxConcurrency=(Option.map~f:MaxConcurrency.of_xml)(Xml.childxml_arg0"maxConcurrency")inletstopDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"stopDate")inletstartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startDate")inletstatus=(Option.map~f:MapRunStatus.of_xml)(Xml.childxml_arg0"status")inletexecutionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"executionArn")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inmake?redriveDate?redriveCount?executionCounts?itemCounts?toleratedFailureCount?toleratedFailurePercentage?maxConcurrency?stopDate?startDate?status?executionArn?mapRunArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveDate=field_mapjson__"redriveDate"Timestamp.of_jsoninletredriveCount=field_mapjson__"redriveCount"RedriveCount.of_jsoninletexecutionCounts=field_mapjson__"executionCounts"MapRunExecutionCounts.of_jsoninletitemCounts=field_mapjson__"itemCounts"MapRunItemCounts.of_jsoninlettoleratedFailureCount=field_mapjson__"toleratedFailureCount"ToleratedFailureCount.of_jsoninlettoleratedFailurePercentage=field_mapjson__"toleratedFailurePercentage"ToleratedFailurePercentage.of_jsoninletmaxConcurrency=field_mapjson__"maxConcurrency"MaxConcurrency.of_jsoninletstopDate=field_mapjson__"stopDate"Timestamp.of_jsoninletstartDate=field_mapjson__"startDate"Timestamp.of_jsoninletstatus=field_mapjson__"status"MapRunStatus.of_jsoninletexecutionArn=field_mapjson__"executionArn"Arn.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninmake?redriveDate?redriveCount?executionCounts?itemCounts?toleratedFailureCount?toleratedFailurePercentage?maxConcurrency?stopDate?startDate?status?executionArn?mapRunArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a Map Run's configuration, progress, and results. If you've redriven a Map Run, this API action also returns information about the redrives of that Map Run. For more information, see Examining Map Run in the Step Functions Developer Guide."]moduleDescribeMapRunInput=structtypenonrect={mapRunArn:LongArn.t[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a Map Run."]}letcontext_="DescribeMapRunInput"letmake~mapRunArn=fun()->{mapRunArn}letto_valuex=structure_to_value[("mapRunArn",(Some(LongArn.to_valuex.mapRunArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmapRunArn=LongArn.of_xml(Xml.child_exn~context:context_xml_arg0"mapRunArn")inmake~mapRunArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmapRunArn=field_map_exnjson__"mapRunArn"LongArn.of_jsoninmake~mapRunArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a Map Run's configuration, progress, and results. If you've redriven a Map Run, this API action also returns information about the redrives of that Map Run. For more information, see Examining Map Run in the Step Functions Developer Guide."]moduleDescribeExecutionOutput=structtypenonrect={executionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the execution."];stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the executed stated machine."];name:Name.toption[@ocaml.doc"The name of the execution. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];status:ExecutionStatus.toption[@ocaml.doc"The current status of the execution."];startDate:Timestamp.toption[@ocaml.doc"The date the execution is started."];stopDate:Timestamp.toption[@ocaml.doc"If the execution ended, the date the execution stopped."];input:SensitiveData.toption[@ocaml.doc"The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding."];inputDetails:CloudWatchEventsExecutionDataDetails.toption;output:SensitiveData.toption[@ocaml.doc"The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding. This field is set only if the execution succeeds. If the execution fails, this field is null."];outputDetails:CloudWatchEventsExecutionDataDetails.toption;traceHeader:TraceHeader.toption[@ocaml.doc"The X-Ray trace header that was passed to the execution. For X-Ray traces, all Amazon Web Services services use the X-Amzn-Trace-Id header from the HTTP request. Using the header is the preferred mechanism to identify a trace. StartExecution and StartSyncExecution API operations can also use traceHeader from the body of the request payload. If both sources are provided, Step Functions will use the header value (preferred) over the value in the request body."];mapRunArn:LongArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies a Map Run, which dispatched this execution."];error:SensitiveError.toption[@ocaml.doc"The error string if the state machine execution failed."];cause:SensitiveCause.toption[@ocaml.doc"The cause string if the state machine execution failed."];stateMachineVersionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine version associated with the execution. The version ARN is a combination of state machine ARN and the version number separated by a colon (:). For example, stateMachineARN:1. If you start an execution from a StartExecution request without specifying a state machine version or alias ARN, Step Functions returns a null value."];stateMachineAliasArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine alias associated with the execution. The alias ARN is a combination of state machine ARN and the alias name separated by a colon (:). For example, stateMachineARN:PROD. If you start an execution from a StartExecution request with a state machine version ARN, this field will be null."];redriveCount:RedriveCount.toption[@ocaml.doc"The number of times you've redriven an execution. If you have not yet redriven an execution, the redriveCount is 0. This count is only updated if you successfully redrive an execution."];redriveDate:Timestamp.toption[@ocaml.doc"The date the execution was last redriven. If you have not yet redriven an execution, the redriveDate is null. The redriveDate is unavailable if you redrive a Map Run that starts child workflow executions of type EXPRESS."];redriveStatus:ExecutionRedriveStatus.toption[@ocaml.doc"Indicates whether or not an execution can be redriven at a given point in time. For executions of type STANDARD, redriveStatus is NOT_REDRIVABLE if calling the RedriveExecution API action would return the ExecutionNotRedrivable error. For a Distributed Map that includes child workflows of type STANDARD, redriveStatus indicates whether or not the Map Run can redrive child workflow executions. For a Distributed Map that includes child workflows of type EXPRESS, redriveStatus indicates whether or not the Map Run can redrive child workflow executions. You can redrive failed or timed out EXPRESS workflows only if they're a part of a Map Run. When you redrive the Map Run, these workflows are restarted using the StartExecution API action."];redriveStatusReason:SensitiveData.toption[@ocaml.doc"When redriveStatus is NOT_REDRIVABLE, redriveStatusReason specifies the reason why an execution cannot be redriven. For executions of type STANDARD, or for a Distributed Map that includes child workflows of type STANDARD, redriveStatusReason can include one of the following reasons: State machine is in DELETING status. Execution is RUNNING and cannot be redriven. Execution is SUCCEEDED and cannot be redriven. Execution was started before the launch of RedriveExecution. Execution history event limit exceeded. Execution has exceeded the max execution time. Execution redrivable period exceeded. For a Distributed Map that includes child workflows of type EXPRESS, redriveStatusReason is only returned if the child workflows are not redrivable. This happens when the child workflow executions have completed successfully."]}typenonrecerror=[`ExecutionDoesNotExistofExecutionDoesNotExist.t|`InvalidArnofInvalidArn.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsInvalidStateExceptionofKmsInvalidStateException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionArn=fun?stateMachineArn->fun?name->fun?status->fun?startDate->fun?stopDate->fun?input->fun?inputDetails->fun?output->fun?outputDetails->fun?traceHeader->fun?mapRunArn->fun?error->fun?cause->fun?stateMachineVersionArn->fun?stateMachineAliasArn->fun?redriveCount->fun?redriveDate->fun?redriveStatus->fun?redriveStatusReason->fun()->{executionArn;stateMachineArn;name;status;startDate;stopDate;input;inputDetails;output;outputDetails;traceHeader;mapRunArn;error;cause;stateMachineVersionArn;stateMachineAliasArn;redriveCount;redriveDate;redriveStatus;redriveStatusReason}leterror_of_jsonnamejson=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ExecutionDoesNotExist"->`ExecutionDoesNotExist(ExecutionDoesNotExist.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsInvalidStateException"->`KmsInvalidStateException(KmsInvalidStateException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ExecutionDoesNotExiste->`Assoc[("error",(`String"ExecutionDoesNotExist"));("details",(ExecutionDoesNotExist.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsInvalidStateExceptione->`Assoc[("error",(`String"KmsInvalidStateException"));("details",(KmsInvalidStateException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executionArn",(Option.mapx.executionArn~f:Arn.to_value));("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("status",(Option.mapx.status~f:ExecutionStatus.to_value));("startDate",(Option.mapx.startDate~f:Timestamp.to_value));("stopDate",(Option.mapx.stopDate~f:Timestamp.to_value));("input",(Option.mapx.input~f:SensitiveData.to_value));("inputDetails",(Option.mapx.inputDetails~f:CloudWatchEventsExecutionDataDetails.to_value));("output",(Option.mapx.output~f:SensitiveData.to_value));("outputDetails",(Option.mapx.outputDetails~f:CloudWatchEventsExecutionDataDetails.to_value));("traceHeader",(Option.mapx.traceHeader~f:TraceHeader.to_value));("mapRunArn",(Option.mapx.mapRunArn~f:LongArn.to_value));("error",(Option.mapx.error~f:SensitiveError.to_value));("cause",(Option.mapx.cause~f:SensitiveCause.to_value));("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:Arn.to_value));("stateMachineAliasArn",(Option.mapx.stateMachineAliasArn~f:Arn.to_value));("redriveCount",(Option.mapx.redriveCount~f:RedriveCount.to_value));("redriveDate",(Option.mapx.redriveDate~f:Timestamp.to_value));("redriveStatus",(Option.mapx.redriveStatus~f:ExecutionRedriveStatus.to_value));("redriveStatusReason",(Option.mapx.redriveStatusReason~f:SensitiveData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letredriveStatusReason=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"redriveStatusReason")inletredriveStatus=(Option.map~f:ExecutionRedriveStatus.of_xml)(Xml.childxml_arg0"redriveStatus")inletredriveDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"redriveDate")inletredriveCount=(Option.map~f:RedriveCount.of_xml)(Xml.childxml_arg0"redriveCount")inletstateMachineAliasArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineAliasArn")inletstateMachineVersionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inletcause=(Option.map~f:SensitiveCause.of_xml)(Xml.childxml_arg0"cause")inleterror=(Option.map~f:SensitiveError.of_xml)(Xml.childxml_arg0"error")inletmapRunArn=(Option.map~f:LongArn.of_xml)(Xml.childxml_arg0"mapRunArn")inlettraceHeader=(Option.map~f:TraceHeader.of_xml)(Xml.childxml_arg0"traceHeader")inletoutputDetails=(Option.map~f:CloudWatchEventsExecutionDataDetails.of_xml)(Xml.childxml_arg0"outputDetails")inletoutput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"output")inletinputDetails=(Option.map~f:CloudWatchEventsExecutionDataDetails.of_xml)(Xml.childxml_arg0"inputDetails")inletinput=(Option.map~f:SensitiveData.of_xml)(Xml.childxml_arg0"input")inletstopDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"stopDate")inletstartDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"startDate")inletstatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inletexecutionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"executionArn")inmake?redriveStatusReason?redriveStatus?redriveDate?redriveCount?stateMachineAliasArn?stateMachineVersionArn?cause?error?mapRunArn?traceHeader?outputDetails?output?inputDetails?input?stopDate?startDate?status?name?stateMachineArn?executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letredriveStatusReason=field_mapjson__"redriveStatusReason"SensitiveData.of_jsoninletredriveStatus=field_mapjson__"redriveStatus"ExecutionRedriveStatus.of_jsoninletredriveDate=field_mapjson__"redriveDate"Timestamp.of_jsoninletredriveCount=field_mapjson__"redriveCount"RedriveCount.of_jsoninletstateMachineAliasArn=field_mapjson__"stateMachineAliasArn"Arn.of_jsoninletstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"Arn.of_jsoninletcause=field_mapjson__"cause"SensitiveCause.of_jsoninleterror=field_mapjson__"error"SensitiveError.of_jsoninletmapRunArn=field_mapjson__"mapRunArn"LongArn.of_jsoninlettraceHeader=field_mapjson__"traceHeader"TraceHeader.of_jsoninletoutputDetails=field_mapjson__"outputDetails"CloudWatchEventsExecutionDataDetails.of_jsoninletoutput=field_mapjson__"output"SensitiveData.of_jsoninletinputDetails=field_mapjson__"inputDetails"CloudWatchEventsExecutionDataDetails.of_jsoninletinput=field_mapjson__"input"SensitiveData.of_jsoninletstopDate=field_mapjson__"stopDate"Timestamp.of_jsoninletstartDate=field_mapjson__"startDate"Timestamp.of_jsoninletstatus=field_mapjson__"status"ExecutionStatus.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninletexecutionArn=field_mapjson__"executionArn"Arn.of_jsoninmake?redriveStatusReason?redriveStatus?redriveDate?redriveCount?stateMachineAliasArn?stateMachineVersionArn?cause?error?mapRunArn?traceHeader?outputDetails?output?inputDetails?input?stopDate?startDate?status?name?stateMachineArn?executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. If you've redriven an execution, you can use this API action to return information about the redrives of that execution. In addition, you can use this API action to return the Map Run Amazon Resource Name (ARN) if the execution was dispatched by a Map Run. If you specify a version or alias ARN when you call the StartExecution API action, DescribeExecution returns that ARN. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. Executions of an EXPRESS state machine aren't supported by DescribeExecution unless a Map Run dispatched them."]moduleDescribeExecutionInput=structtypenonrect={executionArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the execution to describe."];includedData:IncludedData.toption[@ocaml.doc"If your state machine definition is encrypted with a KMS key, callers must have kms:Decrypt permission to decrypt the definition. Alternatively, you can call DescribeStateMachine API with includedData = METADATA_ONLY to get a successful response without the encrypted definition."]}letcontext_="DescribeExecutionInput"letmake?includedData=fun~executionArn->fun()->{includedData;executionArn}letto_valuex=structure_to_value[("executionArn",(Some(Arn.to_valuex.executionArn)));("includedData",(Option.mapx.includedData~f:IncludedData.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letincludedData=(Option.map~f:IncludedData.of_xml)(Xml.childxml_arg0"includedData")inletexecutionArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"executionArn")inmake?includedData~executionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letincludedData=field_mapjson__"includedData"IncludedData.of_jsoninletexecutionArn=field_map_exnjson__"executionArn"Arn.of_jsoninmake?includedData~executionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata. If you've redriven an execution, you can use this API action to return information about the redrives of that execution. In addition, you can use this API action to return the Map Run Amazon Resource Name (ARN) if the execution was dispatched by a Map Run. If you specify a version or alias ARN when you call the StartExecution API action, DescribeExecution returns that ARN. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. Executions of an EXPRESS state machine aren't supported by DescribeExecution unless a Map Run dispatched them."]moduleDescribeActivityOutput=structtypenonrect={activityArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the activity."];name:Name.toption[@ocaml.doc"The name of the activity. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];creationDate:Timestamp.toption[@ocaml.doc"The date the activity is created."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Settings for configured server-side encryption."]}typenonrecerror=[`ActivityDoesNotExistofActivityDoesNotExist.t|`InvalidArnofInvalidArn.t|`Unknown_operation_errorof(string*stringoption)]letmake?activityArn=fun?name->fun?creationDate->fun?encryptionConfiguration->fun()->{activityArn;name;creationDate;encryptionConfiguration}leterror_of_jsonnamejson=matchnamewith|"ActivityDoesNotExist"->`ActivityDoesNotExist(ActivityDoesNotExist.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ActivityDoesNotExist"->`ActivityDoesNotExist(ActivityDoesNotExist.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ActivityDoesNotExiste->`Assoc[("error",(`String"ActivityDoesNotExist"));("details",(ActivityDoesNotExist.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("activityArn",(Option.mapx.activityArn~f:Arn.to_value));("name",(Option.mapx.name~f:Name.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletname=(Option.map~f:Name.of_xml)(Xml.childxml_arg0"name")inletactivityArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"activityArn")inmake?encryptionConfiguration?creationDate?name?activityArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletname=field_mapjson__"name"Name.of_jsoninletactivityArn=field_mapjson__"activityArn"Arn.of_jsoninmake?encryptionConfiguration?creationDate?name?activityArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleDescribeActivityInput=structtypenonrect={activityArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the activity to describe."]}letcontext_="DescribeActivityInput"letmake~activityArn=fun()->{activityArn}letto_valuex=structure_to_value[("activityArn",(Some(Arn.to_valuex.activityArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactivityArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"activityArn")inmake~activityArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactivityArn=field_map_exnjson__"activityArn"Arn.of_jsoninmake~activityArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes an activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes."]moduleDeleteStateMachineVersionOutput=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a state machine version. After you delete a version, you can't call StartExecution using that version's ARN or use the version with a state machine alias. Deleting a state machine version won't terminate its in-progress executions. You can't delete a state machine version currently referenced by one or more aliases. Before you delete a version, you must either delete the aliases or update them to point to another state machine version. Related operations: PublishStateMachineVersion ListStateMachineVersions"]moduleDeleteStateMachineVersionInput=structtypenonrect={stateMachineVersionArn:LongArn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine version to delete."]}letcontext_="DeleteStateMachineVersionInput"letmake~stateMachineVersionArn=fun()->{stateMachineVersionArn}letto_valuex=structure_to_value[("stateMachineVersionArn",(Some(LongArn.to_valuex.stateMachineVersionArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineVersionArn=LongArn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineVersionArn")inmake~stateMachineVersionArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineVersionArn=field_map_exnjson__"stateMachineVersionArn"LongArn.of_jsoninmake~stateMachineVersionArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a state machine version. After you delete a version, you can't call StartExecution using that version's ARN or use the version with a state machine alias. Deleting a state machine version won't terminate its in-progress executions. You can't delete a state machine version currently referenced by one or more aliases. Before you delete a version, you must either delete the aliases or update them to point to another state machine version. Related operations: PublishStateMachineVersion ListStateMachineVersions"]moduleDeleteStateMachineOutput=structtypenonrect=unittypenonrecerror=[`InvalidArnofInvalidArn.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a state machine. This is an asynchronous operation. It sets the state machine's status to DELETING and begins the deletion process. A state machine is deleted only when all its executions are completed. On the next state transition, the state machine's executions are terminated. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine This API action also deletes all versions and aliases associated with a state machine. For EXPRESS state machines, the deletion happens eventually (usually in less than a minute). Running executions may emit logs after DeleteStateMachine API is called."]moduleDeleteStateMachineInput=structtypenonrect={stateMachineArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine to delete."]}letcontext_="DeleteStateMachineInput"letmake~stateMachineArn=fun()->{stateMachineArn}letto_valuex=structure_to_value[("stateMachineArn",(Some(Arn.to_valuex.stateMachineArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineArn")inmake~stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineArn=field_map_exnjson__"stateMachineArn"Arn.of_jsoninmake~stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a state machine. This is an asynchronous operation. It sets the state machine's status to DELETING and begins the deletion process. A state machine is deleted only when all its executions are completed. On the next state transition, the state machine's executions are terminated. A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN. The following are some examples of qualified and unqualified state machine ARNs: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine This API action also deletes all versions and aliases associated with a state machine. For EXPRESS state machines, the deletion happens eventually (usually in less than a minute). Running executions may emit logs after DeleteStateMachine API is called."]moduleDeleteStateMachineAliasOutput=structtypenonrect=unittypenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`ResourceNotFoundofResourceNotFound.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a state machine alias. After you delete a state machine alias, you can't use it to start executions. When you delete a state machine alias, Step Functions doesn't delete the state machine versions that alias references. Related operations: CreateStateMachineAlias DescribeStateMachineAlias ListStateMachineAliases UpdateStateMachineAlias"]moduleDeleteStateMachineAliasInput=structtypenonrect={stateMachineAliasArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the state machine alias to delete."]}letcontext_="DeleteStateMachineAliasInput"letmake~stateMachineAliasArn=fun()->{stateMachineAliasArn}letto_valuex=structure_to_value[("stateMachineAliasArn",(Some(Arn.to_valuex.stateMachineAliasArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineAliasArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"stateMachineAliasArn")inmake~stateMachineAliasArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineAliasArn=field_map_exnjson__"stateMachineAliasArn"Arn.of_jsoninmake~stateMachineAliasArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a state machine alias. After you delete a state machine alias, you can't use it to start executions. When you delete a state machine alias, Step Functions doesn't delete the state machine versions that alias references. Related operations: CreateStateMachineAlias DescribeStateMachineAlias ListStateMachineAliases UpdateStateMachineAlias"]moduleDeleteActivityOutput=structtypenonrect=unittypenonrecerror=[`InvalidArnofInvalidArn.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.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 activity."]moduleDeleteActivityInput=structtypenonrect={activityArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the activity to delete."]}letcontext_="DeleteActivityInput"letmake~activityArn=fun()->{activityArn}letto_valuex=structure_to_value[("activityArn",(Some(Arn.to_valuex.activityArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactivityArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"activityArn")inmake~activityArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactivityArn=field_map_exnjson__"activityArn"Arn.of_jsoninmake~activityArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes an activity."]moduleCreateStateMachineOutput=structtypenonrect={stateMachineArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the created state machine."];creationDate:Timestamp.toption[@ocaml.doc"The date the state machine is created."];stateMachineVersionArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the publish parameter to true, this field returns null value."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`InvalidDefinitionofInvalidDefinition.t|`InvalidEncryptionConfigurationofInvalidEncryptionConfiguration.t|`InvalidLoggingConfigurationofInvalidLoggingConfiguration.t|`InvalidNameofInvalidName.t|`InvalidTracingConfigurationofInvalidTracingConfiguration.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`StateMachineAlreadyExistsofStateMachineAlreadyExists.t|`StateMachineDeletingofStateMachineDeleting.t|`StateMachineLimitExceededofStateMachineLimitExceeded.t|`StateMachineTypeNotSupportedofStateMachineTypeNotSupported.t|`TooManyTagsofTooManyTags.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineArn=fun?creationDate->fun?stateMachineVersionArn->fun()->{stateMachineArn;creationDate;stateMachineVersionArn}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidDefinition"->`InvalidDefinition(InvalidDefinition.of_jsonjson)|"InvalidEncryptionConfiguration"->`InvalidEncryptionConfiguration(InvalidEncryptionConfiguration.of_jsonjson)|"InvalidLoggingConfiguration"->`InvalidLoggingConfiguration(InvalidLoggingConfiguration.of_jsonjson)|"InvalidName"->`InvalidName(InvalidName.of_jsonjson)|"InvalidTracingConfiguration"->`InvalidTracingConfiguration(InvalidTracingConfiguration.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"StateMachineAlreadyExists"->`StateMachineAlreadyExists(StateMachineAlreadyExists.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"StateMachineLimitExceeded"->`StateMachineLimitExceeded(StateMachineLimitExceeded.of_jsonjson)|"StateMachineTypeNotSupported"->`StateMachineTypeNotSupported(StateMachineTypeNotSupported.of_jsonjson)|"TooManyTags"->`TooManyTags(TooManyTags.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidDefinition"->`InvalidDefinition(InvalidDefinition.of_xmlxml)|"InvalidEncryptionConfiguration"->`InvalidEncryptionConfiguration(InvalidEncryptionConfiguration.of_xmlxml)|"InvalidLoggingConfiguration"->`InvalidLoggingConfiguration(InvalidLoggingConfiguration.of_xmlxml)|"InvalidName"->`InvalidName(InvalidName.of_xmlxml)|"InvalidTracingConfiguration"->`InvalidTracingConfiguration(InvalidTracingConfiguration.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"StateMachineAlreadyExists"->`StateMachineAlreadyExists(StateMachineAlreadyExists.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"StateMachineLimitExceeded"->`StateMachineLimitExceeded(StateMachineLimitExceeded.of_xmlxml)|"StateMachineTypeNotSupported"->`StateMachineTypeNotSupported(StateMachineTypeNotSupported.of_xmlxml)|"TooManyTags"->`TooManyTags(TooManyTags.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidDefinitione->`Assoc[("error",(`String"InvalidDefinition"));("details",(InvalidDefinition.to_jsone))]|`InvalidEncryptionConfiguratione->`Assoc[("error",(`String"InvalidEncryptionConfiguration"));("details",(InvalidEncryptionConfiguration.to_jsone))]|`InvalidLoggingConfiguratione->`Assoc[("error",(`String"InvalidLoggingConfiguration"));("details",(InvalidLoggingConfiguration.to_jsone))]|`InvalidNamee->`Assoc[("error",(`String"InvalidName"));("details",(InvalidName.to_jsone))]|`InvalidTracingConfiguratione->`Assoc[("error",(`String"InvalidTracingConfiguration"));("details",(InvalidTracingConfiguration.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`StateMachineAlreadyExistse->`Assoc[("error",(`String"StateMachineAlreadyExists"));("details",(StateMachineAlreadyExists.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`StateMachineLimitExceedede->`Assoc[("error",(`String"StateMachineLimitExceeded"));("details",(StateMachineLimitExceeded.to_jsone))]|`StateMachineTypeNotSupportede->`Assoc[("error",(`String"StateMachineTypeNotSupported"));("details",(StateMachineTypeNotSupported.to_jsone))]|`TooManyTagse->`Assoc[("error",(`String"TooManyTags"));("details",(TooManyTags.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineArn",(Option.mapx.stateMachineArn~f:Arn.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value));("stateMachineVersionArn",(Option.mapx.stateMachineVersionArn~f:Arn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstateMachineVersionArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineVersionArn")inletcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletstateMachineArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineArn")inmake?stateMachineVersionArn?creationDate?stateMachineArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstateMachineVersionArn=field_mapjson__"stateMachineVersionArn"Arn.of_jsoninletcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletstateMachineArn=field_mapjson__"stateMachineArn"Arn.of_jsoninmake?stateMachineVersionArn?creationDate?stateMachineArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a state machine. A state machine consists of a collection of states that can do work (Task states), determine to which states to transition next (Choice states), stop an execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language. For more information, see Amazon States Language in the Step Functions User Guide. If you set the publish parameter of this API action to true, it publishes version 1 as the first revision of the state machine. For additional control over security, you can encrypt your data using a customer-managed key for Step Functions state machines. You can configure a symmetric KMS key and data key reuse period when creating or updating a State Machine. The execution history and state machine definition will be encrypted with the key applied to the State Machine. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateStateMachine is an idempotent API. Subsequent requests won\226\128\153t create a duplicate resource if it was already created. CreateStateMachine's idempotency check is based on the state machine name, definition, type, LoggingConfiguration, TracingConfiguration, and EncryptionConfiguration The check is also based on the publish and versionDescription parameters. If a following request has a different roleArn or tags, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, roleArn and tags will not be updated, even if they are different."]moduleCreateStateMachineInput=structtypenonrect={name:Name.t[@ocaml.doc"The name of the state machine. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];definition:Definition.t[@ocaml.doc"The Amazon States Language definition of the state machine. See Amazon States Language."];roleArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the IAM role to use for this state machine."];type_:StateMachineType.toption[@ocaml.doc"Determines whether a Standard or Express state machine is created. The default is STANDARD. You cannot update the type of a state machine once it has been created."];loggingConfiguration:LoggingConfiguration.toption[@ocaml.doc"Defines what execution history events are logged and where they are logged. By default, the level is set to OFF. For more information see Log Levels in the Step Functions User Guide."];tags:TagList.toption[@ocaml.doc"Tags to be added when creating a state machine. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."];tracingConfiguration:TracingConfiguration.toption[@ocaml.doc"Selects whether X-Ray tracing is enabled."];publish:Publish.toption[@ocaml.doc"Set to true to publish the first version of the state machine during creation. The default is false."];versionDescription:VersionDescription.toption[@ocaml.doc"Sets description about the state machine version. You can only set the description if the publish parameter is set to true. Otherwise, if you set versionDescription, but publish to false, this API action throws ValidationException."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Settings to configure server-side encryption."]}letcontext_="CreateStateMachineInput"letmake?type_=fun?loggingConfiguration->fun?tags->fun?tracingConfiguration->fun?publish->fun?versionDescription->fun?encryptionConfiguration->fun~name->fun~definition->fun~roleArn->fun()->{type_;loggingConfiguration;tags;tracingConfiguration;publish;versionDescription;encryptionConfiguration;name;definition;roleArn}letto_valuex=structure_to_value[("name",(Some(Name.to_valuex.name)));("definition",(Some(Definition.to_valuex.definition)));("roleArn",(Some(Arn.to_valuex.roleArn)));("type",(Option.mapx.type_~f:StateMachineType.to_value));("loggingConfiguration",(Option.mapx.loggingConfiguration~f:LoggingConfiguration.to_value));("tags",(Option.mapx.tags~f:TagList.to_value));("tracingConfiguration",(Option.mapx.tracingConfiguration~f:TracingConfiguration.to_value));("publish",(Option.mapx.publish~f:Publish.to_value));("versionDescription",(Option.mapx.versionDescription~f:VersionDescription.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inletversionDescription=(Option.map~f:VersionDescription.of_xml)(Xml.childxml_arg0"versionDescription")inletpublish=(Option.map~f:Publish.of_xml)(Xml.childxml_arg0"publish")inlettracingConfiguration=(Option.map~f:TracingConfiguration.of_xml)(Xml.childxml_arg0"tracingConfiguration")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletloggingConfiguration=(Option.map~f:LoggingConfiguration.of_xml)(Xml.childxml_arg0"loggingConfiguration")inlettype_=(Option.map~f:StateMachineType.of_xml)(Xml.childxml_arg0"type")inletroleArn=Arn.of_xml(Xml.child_exn~context:context_xml_arg0"roleArn")inletdefinition=Definition.of_xml(Xml.child_exn~context:context_xml_arg0"definition")inletname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?encryptionConfiguration?versionDescription?publish?tracingConfiguration?tags?loggingConfiguration?type_~roleArn~definition~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninletversionDescription=field_mapjson__"versionDescription"VersionDescription.of_jsoninletpublish=field_mapjson__"publish"Publish.of_jsoninlettracingConfiguration=field_mapjson__"tracingConfiguration"TracingConfiguration.of_jsoninlettags=field_mapjson__"tags"TagList.of_jsoninletloggingConfiguration=field_mapjson__"loggingConfiguration"LoggingConfiguration.of_jsoninlettype_=field_mapjson__"type"StateMachineType.of_jsoninletroleArn=field_map_exnjson__"roleArn"Arn.of_jsoninletdefinition=field_map_exnjson__"definition"Definition.of_jsoninletname=field_map_exnjson__"name"Name.of_jsoninmake?encryptionConfiguration?versionDescription?publish?tracingConfiguration?tags?loggingConfiguration?type_~roleArn~definition~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a state machine. A state machine consists of a collection of states that can do work (Task states), determine to which states to transition next (Choice states), stop an execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language. For more information, see Amazon States Language in the Step Functions User Guide. If you set the publish parameter of this API action to true, it publishes version 1 as the first revision of the state machine. For additional control over security, you can encrypt your data using a customer-managed key for Step Functions state machines. You can configure a symmetric KMS key and data key reuse period when creating or updating a State Machine. The execution history and state machine definition will be encrypted with the key applied to the State Machine. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateStateMachine is an idempotent API. Subsequent requests won\226\128\153t create a duplicate resource if it was already created. CreateStateMachine's idempotency check is based on the state machine name, definition, type, LoggingConfiguration, TracingConfiguration, and EncryptionConfiguration The check is also based on the publish and versionDescription parameters. If a following request has a different roleArn or tags, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, roleArn and tags will not be updated, even if they are different."]moduleCreateStateMachineAliasOutput=structtypenonrect={stateMachineAliasArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the created state machine alias."];creationDate:Timestamp.toption[@ocaml.doc"The date the state machine alias was created."]}typenonrecerror=[`ConflictExceptionofConflictException.t|`InvalidArnofInvalidArn.t|`InvalidNameofInvalidName.t|`ResourceNotFoundofResourceNotFound.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`StateMachineDeletingofStateMachineDeleting.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?stateMachineAliasArn=fun?creationDate->fun()->{stateMachineAliasArn;creationDate}leterror_of_jsonnamejson=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InvalidArn"->`InvalidArn(InvalidArn.of_jsonjson)|"InvalidName"->`InvalidName(InvalidName.of_jsonjson)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InvalidArn"->`InvalidArn(InvalidArn.of_xmlxml)|"InvalidName"->`InvalidName(InvalidName.of_xmlxml)|"ResourceNotFound"->`ResourceNotFound(ResourceNotFound.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"StateMachineDeleting"->`StateMachineDeleting(StateMachineDeleting.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InvalidArne->`Assoc[("error",(`String"InvalidArn"));("details",(InvalidArn.to_jsone))]|`InvalidNamee->`Assoc[("error",(`String"InvalidName"));("details",(InvalidName.to_jsone))]|`ResourceNotFounde->`Assoc[("error",(`String"ResourceNotFound"));("details",(ResourceNotFound.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`StateMachineDeletinge->`Assoc[("error",(`String"StateMachineDeleting"));("details",(StateMachineDeleting.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("stateMachineAliasArn",(Option.mapx.stateMachineAliasArn~f:Arn.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletstateMachineAliasArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"stateMachineAliasArn")inmake?creationDate?stateMachineAliasArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletstateMachineAliasArn=field_mapjson__"stateMachineAliasArn"Arn.of_jsoninmake?creationDate?stateMachineAliasArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an alias for a state machine that points to one or two versions of the same state machine. You can set your application to call StartExecution with an alias and update the version the alias uses without changing the client's code. You can also map an alias to split StartExecution requests between two versions of a state machine. To do this, add a second RoutingConfig object in the routingConfiguration parameter. You must also specify the percentage of execution run requests each version should receive in both RoutingConfig objects. Step Functions randomly chooses which version runs a given execution based on the percentage you specify. To create an alias that points to a single version, specify a single RoutingConfig object with a weight set to 100. You can create up to 100 aliases for each state machine. You must delete unused aliases using the DeleteStateMachineAlias API action. CreateStateMachineAlias is an idempotent API. Step Functions bases the idempotency check on the stateMachineArn, description, name, and routingConfiguration parameters. Requests that contain the same values for these parameters return a successful idempotent response without creating a duplicate resource. Related operations: DescribeStateMachineAlias ListStateMachineAliases UpdateStateMachineAlias DeleteStateMachineAlias"]moduleCreateStateMachineAliasInput=structtypenonrect={description:AliasDescription.toption[@ocaml.doc"A description for the state machine alias."];name:CharacterRestrictedName.t[@ocaml.doc"The name of the state machine alias. To avoid conflict with version ARNs, don't use an integer in the name of the alias."];routingConfiguration:RoutingConfigurationList.t[@ocaml.doc"The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions. routingConfiguration contains an array of RoutingConfig objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to each RoutingConfig."]}letcontext_="CreateStateMachineAliasInput"letmake?description=fun~name->fun~routingConfiguration->fun()->{description;name;routingConfiguration}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:AliasDescription.to_value));("name",(Some(CharacterRestrictedName.to_valuex.name)));("routingConfiguration",(Some(RoutingConfigurationList.to_valuex.routingConfiguration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroutingConfiguration=RoutingConfigurationList.of_xml(Xml.child_exn~context:context_xml_arg0"routingConfiguration")inletname=CharacterRestrictedName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inletdescription=(Option.map~f:AliasDescription.of_xml)(Xml.childxml_arg0"description")inmake~routingConfiguration~name?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroutingConfiguration=field_map_exnjson__"routingConfiguration"RoutingConfigurationList.of_jsoninletname=field_map_exnjson__"name"CharacterRestrictedName.of_jsoninletdescription=field_mapjson__"description"AliasDescription.of_jsoninmake~routingConfiguration~name?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an alias for a state machine that points to one or two versions of the same state machine. You can set your application to call StartExecution with an alias and update the version the alias uses without changing the client's code. You can also map an alias to split StartExecution requests between two versions of a state machine. To do this, add a second RoutingConfig object in the routingConfiguration parameter. You must also specify the percentage of execution run requests each version should receive in both RoutingConfig objects. Step Functions randomly chooses which version runs a given execution based on the percentage you specify. To create an alias that points to a single version, specify a single RoutingConfig object with a weight set to 100. You can create up to 100 aliases for each state machine. You must delete unused aliases using the DeleteStateMachineAlias API action. CreateStateMachineAlias is an idempotent API. Step Functions bases the idempotency check on the stateMachineArn, description, name, and routingConfiguration parameters. Requests that contain the same values for these parameters return a successful idempotent response without creating a duplicate resource. Related operations: DescribeStateMachineAlias ListStateMachineAliases UpdateStateMachineAlias DeleteStateMachineAlias"]moduleCreateActivityOutput=structtypenonrect={activityArn:Arn.toption[@ocaml.doc"The Amazon Resource Name (ARN) that identifies the created activity."];creationDate:Timestamp.toption[@ocaml.doc"The date the activity is created."]}typenonrecerror=[`ActivityAlreadyExistsofActivityAlreadyExists.t|`ActivityLimitExceededofActivityLimitExceeded.t|`InvalidEncryptionConfigurationofInvalidEncryptionConfiguration.t|`InvalidNameofInvalidName.t|`KmsAccessDeniedExceptionofKmsAccessDeniedException.t|`KmsThrottlingExceptionofKmsThrottlingException.t|`TooManyTagsofTooManyTags.t|`Unknown_operation_errorof(string*stringoption)]letmake?activityArn=fun?creationDate->fun()->{activityArn;creationDate}leterror_of_jsonnamejson=matchnamewith|"ActivityAlreadyExists"->`ActivityAlreadyExists(ActivityAlreadyExists.of_jsonjson)|"ActivityLimitExceeded"->`ActivityLimitExceeded(ActivityLimitExceeded.of_jsonjson)|"InvalidEncryptionConfiguration"->`InvalidEncryptionConfiguration(InvalidEncryptionConfiguration.of_jsonjson)|"InvalidName"->`InvalidName(InvalidName.of_jsonjson)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_jsonjson)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_jsonjson)|"TooManyTags"->`TooManyTags(TooManyTags.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"ActivityAlreadyExists"->`ActivityAlreadyExists(ActivityAlreadyExists.of_xmlxml)|"ActivityLimitExceeded"->`ActivityLimitExceeded(ActivityLimitExceeded.of_xmlxml)|"InvalidEncryptionConfiguration"->`InvalidEncryptionConfiguration(InvalidEncryptionConfiguration.of_xmlxml)|"InvalidName"->`InvalidName(InvalidName.of_xmlxml)|"KmsAccessDeniedException"->`KmsAccessDeniedException(KmsAccessDeniedException.of_xmlxml)|"KmsThrottlingException"->`KmsThrottlingException(KmsThrottlingException.of_xmlxml)|"TooManyTags"->`TooManyTags(TooManyTags.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`ActivityAlreadyExistse->`Assoc[("error",(`String"ActivityAlreadyExists"));("details",(ActivityAlreadyExists.to_jsone))]|`ActivityLimitExceedede->`Assoc[("error",(`String"ActivityLimitExceeded"));("details",(ActivityLimitExceeded.to_jsone))]|`InvalidEncryptionConfiguratione->`Assoc[("error",(`String"InvalidEncryptionConfiguration"));("details",(InvalidEncryptionConfiguration.to_jsone))]|`InvalidNamee->`Assoc[("error",(`String"InvalidName"));("details",(InvalidName.to_jsone))]|`KmsAccessDeniedExceptione->`Assoc[("error",(`String"KmsAccessDeniedException"));("details",(KmsAccessDeniedException.to_jsone))]|`KmsThrottlingExceptione->`Assoc[("error",(`String"KmsThrottlingException"));("details",(KmsThrottlingException.to_jsone))]|`TooManyTagse->`Assoc[("error",(`String"TooManyTags"));("details",(TooManyTags.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("activityArn",(Option.mapx.activityArn~f:Arn.to_value));("creationDate",(Option.mapx.creationDate~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreationDate=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"creationDate")inletactivityArn=(Option.map~f:Arn.of_xml)(Xml.childxml_arg0"activityArn")inmake?creationDate?activityArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreationDate=field_mapjson__"creationDate"Timestamp.of_jsoninletactivityArn=field_mapjson__"activityArn"Arn.of_jsoninmake?creationDate?activityArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an activity. An activity is a task that you write in any programming language and host on any machine that has access to Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateActivity is an idempotent API. Subsequent requests won\226\128\153t create a duplicate resource if it was already created. CreateActivity's idempotency check is based on the activity name. If a following request has different tags values, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different."]moduleCreateActivityInput=structtypenonrect={name:Name.t[@ocaml.doc"The name of the activity to create. This name must be unique for your Amazon Web Services account and region for 90 days. For more information, see Limits Related to State Machine Executions in the Step Functions Developer Guide. A name must not contain: white space brackets < > \\{ \\} \\[ \\] wildcard characters ? * special characters \" # % \\ ^ | ~ ` $ & , ; : / control characters (U+0000-001F, U+007F-009F, U+FFFE-FFFF) surrogates (U+D800-DFFF) invalid characters ( U+10FFFF) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _."];tags:TagList.toption[@ocaml.doc"The list of tags to add to a resource. An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - \\@."];encryptionConfiguration:EncryptionConfiguration.toption[@ocaml.doc"Settings to configure server-side encryption."]}letcontext_="CreateActivityInput"letmake?tags=fun?encryptionConfiguration->fun~name->fun()->{tags;encryptionConfiguration;name}letto_valuex=structure_to_value[("name",(Some(Name.to_valuex.name)));("tags",(Option.mapx.tags~f:TagList.to_value));("encryptionConfiguration",(Option.mapx.encryptionConfiguration~f:EncryptionConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letencryptionConfiguration=(Option.map~f:EncryptionConfiguration.of_xml)(Xml.childxml_arg0"encryptionConfiguration")inlettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletname=Name.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?encryptionConfiguration?tags~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letencryptionConfiguration=field_mapjson__"encryptionConfiguration"EncryptionConfiguration.of_jsoninlettags=field_mapjson__"tags"TagList.of_jsoninletname=field_map_exnjson__"name"Name.of_jsoninmake?encryptionConfiguration?tags~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates an activity. An activity is a task that you write in any programming language and host on any machine that has access to Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateActivity is an idempotent API. Subsequent requests won\226\128\153t create a duplicate resource if it was already created. CreateActivity's idempotency check is based on the activity name. If a following request has different tags values, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, tags will not be updated, even if they are different."]