api.go 452 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package swf provides a client for Amazon Simple Workflow Service.
  3. package swf
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions"
  13. // CountClosedWorkflowExecutionsRequest generates a "aws/request.Request" representing the
  14. // client's request for the CountClosedWorkflowExecutions operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See CountClosedWorkflowExecutions for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the CountClosedWorkflowExecutions method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the CountClosedWorkflowExecutionsRequest method.
  30. // req, resp := client.CountClosedWorkflowExecutionsRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) {
  38. op := &request.Operation{
  39. Name: opCountClosedWorkflowExecutions,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &CountClosedWorkflowExecutionsInput{}
  45. }
  46. req = c.newRequest(op, input, output)
  47. output = &WorkflowExecutionCount{}
  48. req.Data = output
  49. return
  50. }
  51. // CountClosedWorkflowExecutions API operation for Amazon Simple Workflow Service.
  52. //
  53. // Returns the number of closed workflow executions within the given domain
  54. // that meet the specified filtering criteria.
  55. //
  56. // This operation is eventually consistent. The results are best effort and
  57. // may not exactly reflect recent updates and changes.Access Control
  58. //
  59. // You can use IAM policies to control this action's access to Amazon SWF resources
  60. // as follows:
  61. //
  62. // * Use a Resource element with the domain name to limit the action to only
  63. // specified domains.
  64. // * Use an Action element to allow or deny permission to call this action.
  65. //
  66. // * Constrain the following parameters by using a Condition element with
  67. // the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag.
  68. //
  69. // typeFilter.name: String constraint. The key is swf:typeFilter.name.
  70. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  71. //
  72. // If the caller does not have sufficient permissions to invoke the action,
  73. // or the parameter values fall outside the specified constraints, the action
  74. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  75. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  76. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  77. //
  78. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  79. // with awserr.Error's Code and Message methods to get detailed information about
  80. // the error.
  81. //
  82. // See the AWS API reference guide for Amazon Simple Workflow Service's
  83. // API operation CountClosedWorkflowExecutions for usage and error information.
  84. //
  85. // Returned Error Codes:
  86. // * UnknownResourceFault
  87. // Returned when the named resource cannot be found with in the scope of this
  88. // operation (region or domain). This could happen if the named resource was
  89. // never created or is no longer available for this operation.
  90. //
  91. // * OperationNotPermittedFault
  92. // Returned when the caller does not have sufficient permissions to invoke the
  93. // action.
  94. //
  95. func (c *SWF) CountClosedWorkflowExecutions(input *CountClosedWorkflowExecutionsInput) (*WorkflowExecutionCount, error) {
  96. req, out := c.CountClosedWorkflowExecutionsRequest(input)
  97. err := req.Send()
  98. return out, err
  99. }
  100. const opCountOpenWorkflowExecutions = "CountOpenWorkflowExecutions"
  101. // CountOpenWorkflowExecutionsRequest generates a "aws/request.Request" representing the
  102. // client's request for the CountOpenWorkflowExecutions operation. The "output" return
  103. // value can be used to capture response data after the request's "Send" method
  104. // is called.
  105. //
  106. // See CountOpenWorkflowExecutions for usage and error information.
  107. //
  108. // Creating a request object using this method should be used when you want to inject
  109. // custom logic into the request's lifecycle using a custom handler, or if you want to
  110. // access properties on the request object before or after sending the request. If
  111. // you just want the service response, call the CountOpenWorkflowExecutions method directly
  112. // instead.
  113. //
  114. // Note: You must call the "Send" method on the returned request object in order
  115. // to execute the request.
  116. //
  117. // // Example sending a request using the CountOpenWorkflowExecutionsRequest method.
  118. // req, resp := client.CountOpenWorkflowExecutionsRequest(params)
  119. //
  120. // err := req.Send()
  121. // if err == nil { // resp is now filled
  122. // fmt.Println(resp)
  123. // }
  124. //
  125. func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) {
  126. op := &request.Operation{
  127. Name: opCountOpenWorkflowExecutions,
  128. HTTPMethod: "POST",
  129. HTTPPath: "/",
  130. }
  131. if input == nil {
  132. input = &CountOpenWorkflowExecutionsInput{}
  133. }
  134. req = c.newRequest(op, input, output)
  135. output = &WorkflowExecutionCount{}
  136. req.Data = output
  137. return
  138. }
  139. // CountOpenWorkflowExecutions API operation for Amazon Simple Workflow Service.
  140. //
  141. // Returns the number of open workflow executions within the given domain that
  142. // meet the specified filtering criteria.
  143. //
  144. // This operation is eventually consistent. The results are best effort and
  145. // may not exactly reflect recent updates and changes.Access Control
  146. //
  147. // You can use IAM policies to control this action's access to Amazon SWF resources
  148. // as follows:
  149. //
  150. // * Use a Resource element with the domain name to limit the action to only
  151. // specified domains.
  152. // * Use an Action element to allow or deny permission to call this action.
  153. //
  154. // * Constrain the following parameters by using a Condition element with
  155. // the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag.
  156. //
  157. // typeFilter.name: String constraint. The key is swf:typeFilter.name.
  158. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  159. //
  160. // If the caller does not have sufficient permissions to invoke the action,
  161. // or the parameter values fall outside the specified constraints, the action
  162. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  163. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  164. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  165. //
  166. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  167. // with awserr.Error's Code and Message methods to get detailed information about
  168. // the error.
  169. //
  170. // See the AWS API reference guide for Amazon Simple Workflow Service's
  171. // API operation CountOpenWorkflowExecutions for usage and error information.
  172. //
  173. // Returned Error Codes:
  174. // * UnknownResourceFault
  175. // Returned when the named resource cannot be found with in the scope of this
  176. // operation (region or domain). This could happen if the named resource was
  177. // never created or is no longer available for this operation.
  178. //
  179. // * OperationNotPermittedFault
  180. // Returned when the caller does not have sufficient permissions to invoke the
  181. // action.
  182. //
  183. func (c *SWF) CountOpenWorkflowExecutions(input *CountOpenWorkflowExecutionsInput) (*WorkflowExecutionCount, error) {
  184. req, out := c.CountOpenWorkflowExecutionsRequest(input)
  185. err := req.Send()
  186. return out, err
  187. }
  188. const opCountPendingActivityTasks = "CountPendingActivityTasks"
  189. // CountPendingActivityTasksRequest generates a "aws/request.Request" representing the
  190. // client's request for the CountPendingActivityTasks operation. The "output" return
  191. // value can be used to capture response data after the request's "Send" method
  192. // is called.
  193. //
  194. // See CountPendingActivityTasks for usage and error information.
  195. //
  196. // Creating a request object using this method should be used when you want to inject
  197. // custom logic into the request's lifecycle using a custom handler, or if you want to
  198. // access properties on the request object before or after sending the request. If
  199. // you just want the service response, call the CountPendingActivityTasks method directly
  200. // instead.
  201. //
  202. // Note: You must call the "Send" method on the returned request object in order
  203. // to execute the request.
  204. //
  205. // // Example sending a request using the CountPendingActivityTasksRequest method.
  206. // req, resp := client.CountPendingActivityTasksRequest(params)
  207. //
  208. // err := req.Send()
  209. // if err == nil { // resp is now filled
  210. // fmt.Println(resp)
  211. // }
  212. //
  213. func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksInput) (req *request.Request, output *PendingTaskCount) {
  214. op := &request.Operation{
  215. Name: opCountPendingActivityTasks,
  216. HTTPMethod: "POST",
  217. HTTPPath: "/",
  218. }
  219. if input == nil {
  220. input = &CountPendingActivityTasksInput{}
  221. }
  222. req = c.newRequest(op, input, output)
  223. output = &PendingTaskCount{}
  224. req.Data = output
  225. return
  226. }
  227. // CountPendingActivityTasks API operation for Amazon Simple Workflow Service.
  228. //
  229. // Returns the estimated number of activity tasks in the specified task list.
  230. // The count returned is an approximation and is not guaranteed to be exact.
  231. // If you specify a task list that no activity task was ever scheduled in then
  232. // 0 will be returned.
  233. //
  234. // Access Control
  235. //
  236. // You can use IAM policies to control this action's access to Amazon SWF resources
  237. // as follows:
  238. //
  239. // * Use a Resource element with the domain name to limit the action to only
  240. // specified domains.
  241. // * Use an Action element to allow or deny permission to call this action.
  242. //
  243. // * Constrain the taskList.name parameter by using a Condition element with
  244. // the swf:taskList.name key to allow the action to access only certain task
  245. // lists.
  246. // If the caller does not have sufficient permissions to invoke the action,
  247. // or the parameter values fall outside the specified constraints, the action
  248. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  249. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  250. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  251. //
  252. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  253. // with awserr.Error's Code and Message methods to get detailed information about
  254. // the error.
  255. //
  256. // See the AWS API reference guide for Amazon Simple Workflow Service's
  257. // API operation CountPendingActivityTasks for usage and error information.
  258. //
  259. // Returned Error Codes:
  260. // * UnknownResourceFault
  261. // Returned when the named resource cannot be found with in the scope of this
  262. // operation (region or domain). This could happen if the named resource was
  263. // never created or is no longer available for this operation.
  264. //
  265. // * OperationNotPermittedFault
  266. // Returned when the caller does not have sufficient permissions to invoke the
  267. // action.
  268. //
  269. func (c *SWF) CountPendingActivityTasks(input *CountPendingActivityTasksInput) (*PendingTaskCount, error) {
  270. req, out := c.CountPendingActivityTasksRequest(input)
  271. err := req.Send()
  272. return out, err
  273. }
  274. const opCountPendingDecisionTasks = "CountPendingDecisionTasks"
  275. // CountPendingDecisionTasksRequest generates a "aws/request.Request" representing the
  276. // client's request for the CountPendingDecisionTasks operation. The "output" return
  277. // value can be used to capture response data after the request's "Send" method
  278. // is called.
  279. //
  280. // See CountPendingDecisionTasks for usage and error information.
  281. //
  282. // Creating a request object using this method should be used when you want to inject
  283. // custom logic into the request's lifecycle using a custom handler, or if you want to
  284. // access properties on the request object before or after sending the request. If
  285. // you just want the service response, call the CountPendingDecisionTasks method directly
  286. // instead.
  287. //
  288. // Note: You must call the "Send" method on the returned request object in order
  289. // to execute the request.
  290. //
  291. // // Example sending a request using the CountPendingDecisionTasksRequest method.
  292. // req, resp := client.CountPendingDecisionTasksRequest(params)
  293. //
  294. // err := req.Send()
  295. // if err == nil { // resp is now filled
  296. // fmt.Println(resp)
  297. // }
  298. //
  299. func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksInput) (req *request.Request, output *PendingTaskCount) {
  300. op := &request.Operation{
  301. Name: opCountPendingDecisionTasks,
  302. HTTPMethod: "POST",
  303. HTTPPath: "/",
  304. }
  305. if input == nil {
  306. input = &CountPendingDecisionTasksInput{}
  307. }
  308. req = c.newRequest(op, input, output)
  309. output = &PendingTaskCount{}
  310. req.Data = output
  311. return
  312. }
  313. // CountPendingDecisionTasks API operation for Amazon Simple Workflow Service.
  314. //
  315. // Returns the estimated number of decision tasks in the specified task list.
  316. // The count returned is an approximation and is not guaranteed to be exact.
  317. // If you specify a task list that no decision task was ever scheduled in then
  318. // 0 will be returned.
  319. //
  320. // Access Control
  321. //
  322. // You can use IAM policies to control this action's access to Amazon SWF resources
  323. // as follows:
  324. //
  325. // * Use a Resource element with the domain name to limit the action to only
  326. // specified domains.
  327. // * Use an Action element to allow or deny permission to call this action.
  328. //
  329. // * Constrain the taskList.name parameter by using a Condition element with
  330. // the swf:taskList.name key to allow the action to access only certain task
  331. // lists.
  332. // If the caller does not have sufficient permissions to invoke the action,
  333. // or the parameter values fall outside the specified constraints, the action
  334. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  335. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  336. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  337. //
  338. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  339. // with awserr.Error's Code and Message methods to get detailed information about
  340. // the error.
  341. //
  342. // See the AWS API reference guide for Amazon Simple Workflow Service's
  343. // API operation CountPendingDecisionTasks for usage and error information.
  344. //
  345. // Returned Error Codes:
  346. // * UnknownResourceFault
  347. // Returned when the named resource cannot be found with in the scope of this
  348. // operation (region or domain). This could happen if the named resource was
  349. // never created or is no longer available for this operation.
  350. //
  351. // * OperationNotPermittedFault
  352. // Returned when the caller does not have sufficient permissions to invoke the
  353. // action.
  354. //
  355. func (c *SWF) CountPendingDecisionTasks(input *CountPendingDecisionTasksInput) (*PendingTaskCount, error) {
  356. req, out := c.CountPendingDecisionTasksRequest(input)
  357. err := req.Send()
  358. return out, err
  359. }
  360. const opDeprecateActivityType = "DeprecateActivityType"
  361. // DeprecateActivityTypeRequest generates a "aws/request.Request" representing the
  362. // client's request for the DeprecateActivityType operation. The "output" return
  363. // value can be used to capture response data after the request's "Send" method
  364. // is called.
  365. //
  366. // See DeprecateActivityType for usage and error information.
  367. //
  368. // Creating a request object using this method should be used when you want to inject
  369. // custom logic into the request's lifecycle using a custom handler, or if you want to
  370. // access properties on the request object before or after sending the request. If
  371. // you just want the service response, call the DeprecateActivityType method directly
  372. // instead.
  373. //
  374. // Note: You must call the "Send" method on the returned request object in order
  375. // to execute the request.
  376. //
  377. // // Example sending a request using the DeprecateActivityTypeRequest method.
  378. // req, resp := client.DeprecateActivityTypeRequest(params)
  379. //
  380. // err := req.Send()
  381. // if err == nil { // resp is now filled
  382. // fmt.Println(resp)
  383. // }
  384. //
  385. func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (req *request.Request, output *DeprecateActivityTypeOutput) {
  386. op := &request.Operation{
  387. Name: opDeprecateActivityType,
  388. HTTPMethod: "POST",
  389. HTTPPath: "/",
  390. }
  391. if input == nil {
  392. input = &DeprecateActivityTypeInput{}
  393. }
  394. req = c.newRequest(op, input, output)
  395. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  396. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  397. output = &DeprecateActivityTypeOutput{}
  398. req.Data = output
  399. return
  400. }
  401. // DeprecateActivityType API operation for Amazon Simple Workflow Service.
  402. //
  403. // Deprecates the specified activity type. After an activity type has been deprecated,
  404. // you cannot create new tasks of that activity type. Tasks of this type that
  405. // were scheduled before the type was deprecated will continue to run.
  406. //
  407. // This operation is eventually consistent. The results are best effort and
  408. // may not exactly reflect recent updates and changes.Access Control
  409. //
  410. // You can use IAM policies to control this action's access to Amazon SWF resources
  411. // as follows:
  412. //
  413. // * Use a Resource element with the domain name to limit the action to only
  414. // specified domains.
  415. // * Use an Action element to allow or deny permission to call this action.
  416. //
  417. // * Constrain the following parameters by using a Condition element with
  418. // the appropriate keys. activityType.name: String constraint. The key is
  419. // swf:activityType.name.
  420. // activityType.version: String constraint. The key is swf:activityType.version.
  421. //
  422. // If the caller does not have sufficient permissions to invoke the action,
  423. // or the parameter values fall outside the specified constraints, the action
  424. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  425. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  426. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  427. //
  428. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  429. // with awserr.Error's Code and Message methods to get detailed information about
  430. // the error.
  431. //
  432. // See the AWS API reference guide for Amazon Simple Workflow Service's
  433. // API operation DeprecateActivityType for usage and error information.
  434. //
  435. // Returned Error Codes:
  436. // * UnknownResourceFault
  437. // Returned when the named resource cannot be found with in the scope of this
  438. // operation (region or domain). This could happen if the named resource was
  439. // never created or is no longer available for this operation.
  440. //
  441. // * TypeDeprecatedFault
  442. // Returned when the specified activity or workflow type was already deprecated.
  443. //
  444. // * OperationNotPermittedFault
  445. // Returned when the caller does not have sufficient permissions to invoke the
  446. // action.
  447. //
  448. func (c *SWF) DeprecateActivityType(input *DeprecateActivityTypeInput) (*DeprecateActivityTypeOutput, error) {
  449. req, out := c.DeprecateActivityTypeRequest(input)
  450. err := req.Send()
  451. return out, err
  452. }
  453. const opDeprecateDomain = "DeprecateDomain"
  454. // DeprecateDomainRequest generates a "aws/request.Request" representing the
  455. // client's request for the DeprecateDomain operation. The "output" return
  456. // value can be used to capture response data after the request's "Send" method
  457. // is called.
  458. //
  459. // See DeprecateDomain for usage and error information.
  460. //
  461. // Creating a request object using this method should be used when you want to inject
  462. // custom logic into the request's lifecycle using a custom handler, or if you want to
  463. // access properties on the request object before or after sending the request. If
  464. // you just want the service response, call the DeprecateDomain method directly
  465. // instead.
  466. //
  467. // Note: You must call the "Send" method on the returned request object in order
  468. // to execute the request.
  469. //
  470. // // Example sending a request using the DeprecateDomainRequest method.
  471. // req, resp := client.DeprecateDomainRequest(params)
  472. //
  473. // err := req.Send()
  474. // if err == nil { // resp is now filled
  475. // fmt.Println(resp)
  476. // }
  477. //
  478. func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request.Request, output *DeprecateDomainOutput) {
  479. op := &request.Operation{
  480. Name: opDeprecateDomain,
  481. HTTPMethod: "POST",
  482. HTTPPath: "/",
  483. }
  484. if input == nil {
  485. input = &DeprecateDomainInput{}
  486. }
  487. req = c.newRequest(op, input, output)
  488. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  489. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  490. output = &DeprecateDomainOutput{}
  491. req.Data = output
  492. return
  493. }
  494. // DeprecateDomain API operation for Amazon Simple Workflow Service.
  495. //
  496. // Deprecates the specified domain. After a domain has been deprecated it cannot
  497. // be used to create new workflow executions or register new types. However,
  498. // you can still use visibility actions on this domain. Deprecating a domain
  499. // also deprecates all activity and workflow types registered in the domain.
  500. // Executions that were started before the domain was deprecated will continue
  501. // to run.
  502. //
  503. // This operation is eventually consistent. The results are best effort and
  504. // may not exactly reflect recent updates and changes.Access Control
  505. //
  506. // You can use IAM policies to control this action's access to Amazon SWF resources
  507. // as follows:
  508. //
  509. // * Use a Resource element with the domain name to limit the action to only
  510. // specified domains.
  511. // * Use an Action element to allow or deny permission to call this action.
  512. //
  513. // * You cannot use an IAM policy to constrain this action's parameters.
  514. //
  515. // If the caller does not have sufficient permissions to invoke the action,
  516. // or the parameter values fall outside the specified constraints, the action
  517. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  518. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  519. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  520. //
  521. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  522. // with awserr.Error's Code and Message methods to get detailed information about
  523. // the error.
  524. //
  525. // See the AWS API reference guide for Amazon Simple Workflow Service's
  526. // API operation DeprecateDomain for usage and error information.
  527. //
  528. // Returned Error Codes:
  529. // * UnknownResourceFault
  530. // Returned when the named resource cannot be found with in the scope of this
  531. // operation (region or domain). This could happen if the named resource was
  532. // never created or is no longer available for this operation.
  533. //
  534. // * DomainDeprecatedFault
  535. // Returned when the specified domain has been deprecated.
  536. //
  537. // * OperationNotPermittedFault
  538. // Returned when the caller does not have sufficient permissions to invoke the
  539. // action.
  540. //
  541. func (c *SWF) DeprecateDomain(input *DeprecateDomainInput) (*DeprecateDomainOutput, error) {
  542. req, out := c.DeprecateDomainRequest(input)
  543. err := req.Send()
  544. return out, err
  545. }
  546. const opDeprecateWorkflowType = "DeprecateWorkflowType"
  547. // DeprecateWorkflowTypeRequest generates a "aws/request.Request" representing the
  548. // client's request for the DeprecateWorkflowType operation. The "output" return
  549. // value can be used to capture response data after the request's "Send" method
  550. // is called.
  551. //
  552. // See DeprecateWorkflowType for usage and error information.
  553. //
  554. // Creating a request object using this method should be used when you want to inject
  555. // custom logic into the request's lifecycle using a custom handler, or if you want to
  556. // access properties on the request object before or after sending the request. If
  557. // you just want the service response, call the DeprecateWorkflowType method directly
  558. // instead.
  559. //
  560. // Note: You must call the "Send" method on the returned request object in order
  561. // to execute the request.
  562. //
  563. // // Example sending a request using the DeprecateWorkflowTypeRequest method.
  564. // req, resp := client.DeprecateWorkflowTypeRequest(params)
  565. //
  566. // err := req.Send()
  567. // if err == nil { // resp is now filled
  568. // fmt.Println(resp)
  569. // }
  570. //
  571. func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (req *request.Request, output *DeprecateWorkflowTypeOutput) {
  572. op := &request.Operation{
  573. Name: opDeprecateWorkflowType,
  574. HTTPMethod: "POST",
  575. HTTPPath: "/",
  576. }
  577. if input == nil {
  578. input = &DeprecateWorkflowTypeInput{}
  579. }
  580. req = c.newRequest(op, input, output)
  581. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  582. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  583. output = &DeprecateWorkflowTypeOutput{}
  584. req.Data = output
  585. return
  586. }
  587. // DeprecateWorkflowType API operation for Amazon Simple Workflow Service.
  588. //
  589. // Deprecates the specified workflow type. After a workflow type has been deprecated,
  590. // you cannot create new executions of that type. Executions that were started
  591. // before the type was deprecated will continue to run. A deprecated workflow
  592. // type may still be used when calling visibility actions.
  593. //
  594. // This operation is eventually consistent. The results are best effort and
  595. // may not exactly reflect recent updates and changes.Access Control
  596. //
  597. // You can use IAM policies to control this action's access to Amazon SWF resources
  598. // as follows:
  599. //
  600. // * Use a Resource element with the domain name to limit the action to only
  601. // specified domains.
  602. // * Use an Action element to allow or deny permission to call this action.
  603. //
  604. // * Constrain the following parameters by using a Condition element with
  605. // the appropriate keys. workflowType.name: String constraint. The key is
  606. // swf:workflowType.name.
  607. // workflowType.version: String constraint. The key is swf:workflowType.version.
  608. //
  609. // If the caller does not have sufficient permissions to invoke the action,
  610. // or the parameter values fall outside the specified constraints, the action
  611. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  612. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  613. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  614. //
  615. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  616. // with awserr.Error's Code and Message methods to get detailed information about
  617. // the error.
  618. //
  619. // See the AWS API reference guide for Amazon Simple Workflow Service's
  620. // API operation DeprecateWorkflowType for usage and error information.
  621. //
  622. // Returned Error Codes:
  623. // * UnknownResourceFault
  624. // Returned when the named resource cannot be found with in the scope of this
  625. // operation (region or domain). This could happen if the named resource was
  626. // never created or is no longer available for this operation.
  627. //
  628. // * TypeDeprecatedFault
  629. // Returned when the specified activity or workflow type was already deprecated.
  630. //
  631. // * OperationNotPermittedFault
  632. // Returned when the caller does not have sufficient permissions to invoke the
  633. // action.
  634. //
  635. func (c *SWF) DeprecateWorkflowType(input *DeprecateWorkflowTypeInput) (*DeprecateWorkflowTypeOutput, error) {
  636. req, out := c.DeprecateWorkflowTypeRequest(input)
  637. err := req.Send()
  638. return out, err
  639. }
  640. const opDescribeActivityType = "DescribeActivityType"
  641. // DescribeActivityTypeRequest generates a "aws/request.Request" representing the
  642. // client's request for the DescribeActivityType operation. The "output" return
  643. // value can be used to capture response data after the request's "Send" method
  644. // is called.
  645. //
  646. // See DescribeActivityType for usage and error information.
  647. //
  648. // Creating a request object using this method should be used when you want to inject
  649. // custom logic into the request's lifecycle using a custom handler, or if you want to
  650. // access properties on the request object before or after sending the request. If
  651. // you just want the service response, call the DescribeActivityType method directly
  652. // instead.
  653. //
  654. // Note: You must call the "Send" method on the returned request object in order
  655. // to execute the request.
  656. //
  657. // // Example sending a request using the DescribeActivityTypeRequest method.
  658. // req, resp := client.DescribeActivityTypeRequest(params)
  659. //
  660. // err := req.Send()
  661. // if err == nil { // resp is now filled
  662. // fmt.Println(resp)
  663. // }
  664. //
  665. func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req *request.Request, output *DescribeActivityTypeOutput) {
  666. op := &request.Operation{
  667. Name: opDescribeActivityType,
  668. HTTPMethod: "POST",
  669. HTTPPath: "/",
  670. }
  671. if input == nil {
  672. input = &DescribeActivityTypeInput{}
  673. }
  674. req = c.newRequest(op, input, output)
  675. output = &DescribeActivityTypeOutput{}
  676. req.Data = output
  677. return
  678. }
  679. // DescribeActivityType API operation for Amazon Simple Workflow Service.
  680. //
  681. // Returns information about the specified activity type. This includes configuration
  682. // settings provided when the type was registered and other general information
  683. // about the type.
  684. //
  685. // Access Control
  686. //
  687. // You can use IAM policies to control this action's access to Amazon SWF resources
  688. // as follows:
  689. //
  690. // * Use a Resource element with the domain name to limit the action to only
  691. // specified domains.
  692. // * Use an Action element to allow or deny permission to call this action.
  693. //
  694. // * Constrain the following parameters by using a Condition element with
  695. // the appropriate keys. activityType.name: String constraint. The key is
  696. // swf:activityType.name.
  697. // activityType.version: String constraint. The key is swf:activityType.version.
  698. //
  699. // If the caller does not have sufficient permissions to invoke the action,
  700. // or the parameter values fall outside the specified constraints, the action
  701. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  702. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  703. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  704. //
  705. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  706. // with awserr.Error's Code and Message methods to get detailed information about
  707. // the error.
  708. //
  709. // See the AWS API reference guide for Amazon Simple Workflow Service's
  710. // API operation DescribeActivityType for usage and error information.
  711. //
  712. // Returned Error Codes:
  713. // * UnknownResourceFault
  714. // Returned when the named resource cannot be found with in the scope of this
  715. // operation (region or domain). This could happen if the named resource was
  716. // never created or is no longer available for this operation.
  717. //
  718. // * OperationNotPermittedFault
  719. // Returned when the caller does not have sufficient permissions to invoke the
  720. // action.
  721. //
  722. func (c *SWF) DescribeActivityType(input *DescribeActivityTypeInput) (*DescribeActivityTypeOutput, error) {
  723. req, out := c.DescribeActivityTypeRequest(input)
  724. err := req.Send()
  725. return out, err
  726. }
  727. const opDescribeDomain = "DescribeDomain"
  728. // DescribeDomainRequest generates a "aws/request.Request" representing the
  729. // client's request for the DescribeDomain operation. The "output" return
  730. // value can be used to capture response data after the request's "Send" method
  731. // is called.
  732. //
  733. // See DescribeDomain for usage and error information.
  734. //
  735. // Creating a request object using this method should be used when you want to inject
  736. // custom logic into the request's lifecycle using a custom handler, or if you want to
  737. // access properties on the request object before or after sending the request. If
  738. // you just want the service response, call the DescribeDomain method directly
  739. // instead.
  740. //
  741. // Note: You must call the "Send" method on the returned request object in order
  742. // to execute the request.
  743. //
  744. // // Example sending a request using the DescribeDomainRequest method.
  745. // req, resp := client.DescribeDomainRequest(params)
  746. //
  747. // err := req.Send()
  748. // if err == nil { // resp is now filled
  749. // fmt.Println(resp)
  750. // }
  751. //
  752. func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) {
  753. op := &request.Operation{
  754. Name: opDescribeDomain,
  755. HTTPMethod: "POST",
  756. HTTPPath: "/",
  757. }
  758. if input == nil {
  759. input = &DescribeDomainInput{}
  760. }
  761. req = c.newRequest(op, input, output)
  762. output = &DescribeDomainOutput{}
  763. req.Data = output
  764. return
  765. }
  766. // DescribeDomain API operation for Amazon Simple Workflow Service.
  767. //
  768. // Returns information about the specified domain, including description and
  769. // status.
  770. //
  771. // Access Control
  772. //
  773. // You can use IAM policies to control this action's access to Amazon SWF resources
  774. // as follows:
  775. //
  776. // * Use a Resource element with the domain name to limit the action to only
  777. // specified domains.
  778. // * Use an Action element to allow or deny permission to call this action.
  779. //
  780. // * You cannot use an IAM policy to constrain this action's parameters.
  781. //
  782. // If the caller does not have sufficient permissions to invoke the action,
  783. // or the parameter values fall outside the specified constraints, the action
  784. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  785. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  786. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  787. //
  788. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  789. // with awserr.Error's Code and Message methods to get detailed information about
  790. // the error.
  791. //
  792. // See the AWS API reference guide for Amazon Simple Workflow Service's
  793. // API operation DescribeDomain for usage and error information.
  794. //
  795. // Returned Error Codes:
  796. // * UnknownResourceFault
  797. // Returned when the named resource cannot be found with in the scope of this
  798. // operation (region or domain). This could happen if the named resource was
  799. // never created or is no longer available for this operation.
  800. //
  801. // * OperationNotPermittedFault
  802. // Returned when the caller does not have sufficient permissions to invoke the
  803. // action.
  804. //
  805. func (c *SWF) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) {
  806. req, out := c.DescribeDomainRequest(input)
  807. err := req.Send()
  808. return out, err
  809. }
  810. const opDescribeWorkflowExecution = "DescribeWorkflowExecution"
  811. // DescribeWorkflowExecutionRequest generates a "aws/request.Request" representing the
  812. // client's request for the DescribeWorkflowExecution operation. The "output" return
  813. // value can be used to capture response data after the request's "Send" method
  814. // is called.
  815. //
  816. // See DescribeWorkflowExecution for usage and error information.
  817. //
  818. // Creating a request object using this method should be used when you want to inject
  819. // custom logic into the request's lifecycle using a custom handler, or if you want to
  820. // access properties on the request object before or after sending the request. If
  821. // you just want the service response, call the DescribeWorkflowExecution method directly
  822. // instead.
  823. //
  824. // Note: You must call the "Send" method on the returned request object in order
  825. // to execute the request.
  826. //
  827. // // Example sending a request using the DescribeWorkflowExecutionRequest method.
  828. // req, resp := client.DescribeWorkflowExecutionRequest(params)
  829. //
  830. // err := req.Send()
  831. // if err == nil { // resp is now filled
  832. // fmt.Println(resp)
  833. // }
  834. //
  835. func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionInput) (req *request.Request, output *DescribeWorkflowExecutionOutput) {
  836. op := &request.Operation{
  837. Name: opDescribeWorkflowExecution,
  838. HTTPMethod: "POST",
  839. HTTPPath: "/",
  840. }
  841. if input == nil {
  842. input = &DescribeWorkflowExecutionInput{}
  843. }
  844. req = c.newRequest(op, input, output)
  845. output = &DescribeWorkflowExecutionOutput{}
  846. req.Data = output
  847. return
  848. }
  849. // DescribeWorkflowExecution API operation for Amazon Simple Workflow Service.
  850. //
  851. // Returns information about the specified workflow execution including its
  852. // type and some statistics.
  853. //
  854. // This operation is eventually consistent. The results are best effort and
  855. // may not exactly reflect recent updates and changes.Access Control
  856. //
  857. // You can use IAM policies to control this action's access to Amazon SWF resources
  858. // as follows:
  859. //
  860. // * Use a Resource element with the domain name to limit the action to only
  861. // specified domains.
  862. // * Use an Action element to allow or deny permission to call this action.
  863. //
  864. // * You cannot use an IAM policy to constrain this action's parameters.
  865. //
  866. // If the caller does not have sufficient permissions to invoke the action,
  867. // or the parameter values fall outside the specified constraints, the action
  868. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  869. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  870. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  871. //
  872. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  873. // with awserr.Error's Code and Message methods to get detailed information about
  874. // the error.
  875. //
  876. // See the AWS API reference guide for Amazon Simple Workflow Service's
  877. // API operation DescribeWorkflowExecution for usage and error information.
  878. //
  879. // Returned Error Codes:
  880. // * UnknownResourceFault
  881. // Returned when the named resource cannot be found with in the scope of this
  882. // operation (region or domain). This could happen if the named resource was
  883. // never created or is no longer available for this operation.
  884. //
  885. // * OperationNotPermittedFault
  886. // Returned when the caller does not have sufficient permissions to invoke the
  887. // action.
  888. //
  889. func (c *SWF) DescribeWorkflowExecution(input *DescribeWorkflowExecutionInput) (*DescribeWorkflowExecutionOutput, error) {
  890. req, out := c.DescribeWorkflowExecutionRequest(input)
  891. err := req.Send()
  892. return out, err
  893. }
  894. const opDescribeWorkflowType = "DescribeWorkflowType"
  895. // DescribeWorkflowTypeRequest generates a "aws/request.Request" representing the
  896. // client's request for the DescribeWorkflowType operation. The "output" return
  897. // value can be used to capture response data after the request's "Send" method
  898. // is called.
  899. //
  900. // See DescribeWorkflowType for usage and error information.
  901. //
  902. // Creating a request object using this method should be used when you want to inject
  903. // custom logic into the request's lifecycle using a custom handler, or if you want to
  904. // access properties on the request object before or after sending the request. If
  905. // you just want the service response, call the DescribeWorkflowType method directly
  906. // instead.
  907. //
  908. // Note: You must call the "Send" method on the returned request object in order
  909. // to execute the request.
  910. //
  911. // // Example sending a request using the DescribeWorkflowTypeRequest method.
  912. // req, resp := client.DescribeWorkflowTypeRequest(params)
  913. //
  914. // err := req.Send()
  915. // if err == nil { // resp is now filled
  916. // fmt.Println(resp)
  917. // }
  918. //
  919. func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req *request.Request, output *DescribeWorkflowTypeOutput) {
  920. op := &request.Operation{
  921. Name: opDescribeWorkflowType,
  922. HTTPMethod: "POST",
  923. HTTPPath: "/",
  924. }
  925. if input == nil {
  926. input = &DescribeWorkflowTypeInput{}
  927. }
  928. req = c.newRequest(op, input, output)
  929. output = &DescribeWorkflowTypeOutput{}
  930. req.Data = output
  931. return
  932. }
  933. // DescribeWorkflowType API operation for Amazon Simple Workflow Service.
  934. //
  935. // Returns information about the specified workflow type. This includes configuration
  936. // settings specified when the type was registered and other information such
  937. // as creation date, current status, and so on.
  938. //
  939. // Access Control
  940. //
  941. // You can use IAM policies to control this action's access to Amazon SWF resources
  942. // as follows:
  943. //
  944. // * Use a Resource element with the domain name to limit the action to only
  945. // specified domains.
  946. // * Use an Action element to allow or deny permission to call this action.
  947. //
  948. // * Constrain the following parameters by using a Condition element with
  949. // the appropriate keys. workflowType.name: String constraint. The key is
  950. // swf:workflowType.name.
  951. // workflowType.version: String constraint. The key is swf:workflowType.version.
  952. //
  953. // If the caller does not have sufficient permissions to invoke the action,
  954. // or the parameter values fall outside the specified constraints, the action
  955. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  956. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  957. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  958. //
  959. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  960. // with awserr.Error's Code and Message methods to get detailed information about
  961. // the error.
  962. //
  963. // See the AWS API reference guide for Amazon Simple Workflow Service's
  964. // API operation DescribeWorkflowType for usage and error information.
  965. //
  966. // Returned Error Codes:
  967. // * UnknownResourceFault
  968. // Returned when the named resource cannot be found with in the scope of this
  969. // operation (region or domain). This could happen if the named resource was
  970. // never created or is no longer available for this operation.
  971. //
  972. // * OperationNotPermittedFault
  973. // Returned when the caller does not have sufficient permissions to invoke the
  974. // action.
  975. //
  976. func (c *SWF) DescribeWorkflowType(input *DescribeWorkflowTypeInput) (*DescribeWorkflowTypeOutput, error) {
  977. req, out := c.DescribeWorkflowTypeRequest(input)
  978. err := req.Send()
  979. return out, err
  980. }
  981. const opGetWorkflowExecutionHistory = "GetWorkflowExecutionHistory"
  982. // GetWorkflowExecutionHistoryRequest generates a "aws/request.Request" representing the
  983. // client's request for the GetWorkflowExecutionHistory operation. The "output" return
  984. // value can be used to capture response data after the request's "Send" method
  985. // is called.
  986. //
  987. // See GetWorkflowExecutionHistory for usage and error information.
  988. //
  989. // Creating a request object using this method should be used when you want to inject
  990. // custom logic into the request's lifecycle using a custom handler, or if you want to
  991. // access properties on the request object before or after sending the request. If
  992. // you just want the service response, call the GetWorkflowExecutionHistory method directly
  993. // instead.
  994. //
  995. // Note: You must call the "Send" method on the returned request object in order
  996. // to execute the request.
  997. //
  998. // // Example sending a request using the GetWorkflowExecutionHistoryRequest method.
  999. // req, resp := client.GetWorkflowExecutionHistoryRequest(params)
  1000. //
  1001. // err := req.Send()
  1002. // if err == nil { // resp is now filled
  1003. // fmt.Println(resp)
  1004. // }
  1005. //
  1006. func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHistoryInput) (req *request.Request, output *GetWorkflowExecutionHistoryOutput) {
  1007. op := &request.Operation{
  1008. Name: opGetWorkflowExecutionHistory,
  1009. HTTPMethod: "POST",
  1010. HTTPPath: "/",
  1011. Paginator: &request.Paginator{
  1012. InputTokens: []string{"nextPageToken"},
  1013. OutputTokens: []string{"nextPageToken"},
  1014. LimitToken: "maximumPageSize",
  1015. TruncationToken: "",
  1016. },
  1017. }
  1018. if input == nil {
  1019. input = &GetWorkflowExecutionHistoryInput{}
  1020. }
  1021. req = c.newRequest(op, input, output)
  1022. output = &GetWorkflowExecutionHistoryOutput{}
  1023. req.Data = output
  1024. return
  1025. }
  1026. // GetWorkflowExecutionHistory API operation for Amazon Simple Workflow Service.
  1027. //
  1028. // Returns the history of the specified workflow execution. The results may
  1029. // be split into multiple pages. To retrieve subsequent pages, make the call
  1030. // again using the nextPageToken returned by the initial call.
  1031. //
  1032. // This operation is eventually consistent. The results are best effort and
  1033. // may not exactly reflect recent updates and changes.Access Control
  1034. //
  1035. // You can use IAM policies to control this action's access to Amazon SWF resources
  1036. // as follows:
  1037. //
  1038. // * Use a Resource element with the domain name to limit the action to only
  1039. // specified domains.
  1040. // * Use an Action element to allow or deny permission to call this action.
  1041. //
  1042. // * You cannot use an IAM policy to constrain this action's parameters.
  1043. //
  1044. // If the caller does not have sufficient permissions to invoke the action,
  1045. // or the parameter values fall outside the specified constraints, the action
  1046. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1047. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1048. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1049. //
  1050. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1051. // with awserr.Error's Code and Message methods to get detailed information about
  1052. // the error.
  1053. //
  1054. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1055. // API operation GetWorkflowExecutionHistory for usage and error information.
  1056. //
  1057. // Returned Error Codes:
  1058. // * UnknownResourceFault
  1059. // Returned when the named resource cannot be found with in the scope of this
  1060. // operation (region or domain). This could happen if the named resource was
  1061. // never created or is no longer available for this operation.
  1062. //
  1063. // * OperationNotPermittedFault
  1064. // Returned when the caller does not have sufficient permissions to invoke the
  1065. // action.
  1066. //
  1067. func (c *SWF) GetWorkflowExecutionHistory(input *GetWorkflowExecutionHistoryInput) (*GetWorkflowExecutionHistoryOutput, error) {
  1068. req, out := c.GetWorkflowExecutionHistoryRequest(input)
  1069. err := req.Send()
  1070. return out, err
  1071. }
  1072. // GetWorkflowExecutionHistoryPages iterates over the pages of a GetWorkflowExecutionHistory operation,
  1073. // calling the "fn" function with the response data for each page. To stop
  1074. // iterating, return false from the fn function.
  1075. //
  1076. // See GetWorkflowExecutionHistory method for more information on how to use this operation.
  1077. //
  1078. // Note: This operation can generate multiple requests to a service.
  1079. //
  1080. // // Example iterating over at most 3 pages of a GetWorkflowExecutionHistory operation.
  1081. // pageNum := 0
  1082. // err := client.GetWorkflowExecutionHistoryPages(params,
  1083. // func(page *GetWorkflowExecutionHistoryOutput, lastPage bool) bool {
  1084. // pageNum++
  1085. // fmt.Println(page)
  1086. // return pageNum <= 3
  1087. // })
  1088. //
  1089. func (c *SWF) GetWorkflowExecutionHistoryPages(input *GetWorkflowExecutionHistoryInput, fn func(p *GetWorkflowExecutionHistoryOutput, lastPage bool) (shouldContinue bool)) error {
  1090. page, _ := c.GetWorkflowExecutionHistoryRequest(input)
  1091. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1092. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1093. return fn(p.(*GetWorkflowExecutionHistoryOutput), lastPage)
  1094. })
  1095. }
  1096. const opListActivityTypes = "ListActivityTypes"
  1097. // ListActivityTypesRequest generates a "aws/request.Request" representing the
  1098. // client's request for the ListActivityTypes operation. The "output" return
  1099. // value can be used to capture response data after the request's "Send" method
  1100. // is called.
  1101. //
  1102. // See ListActivityTypes for usage and error information.
  1103. //
  1104. // Creating a request object using this method should be used when you want to inject
  1105. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1106. // access properties on the request object before or after sending the request. If
  1107. // you just want the service response, call the ListActivityTypes method directly
  1108. // instead.
  1109. //
  1110. // Note: You must call the "Send" method on the returned request object in order
  1111. // to execute the request.
  1112. //
  1113. // // Example sending a request using the ListActivityTypesRequest method.
  1114. // req, resp := client.ListActivityTypesRequest(params)
  1115. //
  1116. // err := req.Send()
  1117. // if err == nil { // resp is now filled
  1118. // fmt.Println(resp)
  1119. // }
  1120. //
  1121. func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *request.Request, output *ListActivityTypesOutput) {
  1122. op := &request.Operation{
  1123. Name: opListActivityTypes,
  1124. HTTPMethod: "POST",
  1125. HTTPPath: "/",
  1126. Paginator: &request.Paginator{
  1127. InputTokens: []string{"nextPageToken"},
  1128. OutputTokens: []string{"nextPageToken"},
  1129. LimitToken: "maximumPageSize",
  1130. TruncationToken: "",
  1131. },
  1132. }
  1133. if input == nil {
  1134. input = &ListActivityTypesInput{}
  1135. }
  1136. req = c.newRequest(op, input, output)
  1137. output = &ListActivityTypesOutput{}
  1138. req.Data = output
  1139. return
  1140. }
  1141. // ListActivityTypes API operation for Amazon Simple Workflow Service.
  1142. //
  1143. // Returns information about all activities registered in the specified domain
  1144. // that match the specified name and registration status. The result includes
  1145. // information like creation date, current status of the activity, etc. The
  1146. // results may be split into multiple pages. To retrieve subsequent pages, make
  1147. // the call again using the nextPageToken returned by the initial call.
  1148. //
  1149. // Access Control
  1150. //
  1151. // You can use IAM policies to control this action's access to Amazon SWF resources
  1152. // as follows:
  1153. //
  1154. // * Use a Resource element with the domain name to limit the action to only
  1155. // specified domains.
  1156. // * Use an Action element to allow or deny permission to call this action.
  1157. //
  1158. // * You cannot use an IAM policy to constrain this action's parameters.
  1159. //
  1160. // If the caller does not have sufficient permissions to invoke the action,
  1161. // or the parameter values fall outside the specified constraints, the action
  1162. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1163. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1164. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1165. //
  1166. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1167. // with awserr.Error's Code and Message methods to get detailed information about
  1168. // the error.
  1169. //
  1170. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1171. // API operation ListActivityTypes for usage and error information.
  1172. //
  1173. // Returned Error Codes:
  1174. // * OperationNotPermittedFault
  1175. // Returned when the caller does not have sufficient permissions to invoke the
  1176. // action.
  1177. //
  1178. // * UnknownResourceFault
  1179. // Returned when the named resource cannot be found with in the scope of this
  1180. // operation (region or domain). This could happen if the named resource was
  1181. // never created or is no longer available for this operation.
  1182. //
  1183. func (c *SWF) ListActivityTypes(input *ListActivityTypesInput) (*ListActivityTypesOutput, error) {
  1184. req, out := c.ListActivityTypesRequest(input)
  1185. err := req.Send()
  1186. return out, err
  1187. }
  1188. // ListActivityTypesPages iterates over the pages of a ListActivityTypes operation,
  1189. // calling the "fn" function with the response data for each page. To stop
  1190. // iterating, return false from the fn function.
  1191. //
  1192. // See ListActivityTypes method for more information on how to use this operation.
  1193. //
  1194. // Note: This operation can generate multiple requests to a service.
  1195. //
  1196. // // Example iterating over at most 3 pages of a ListActivityTypes operation.
  1197. // pageNum := 0
  1198. // err := client.ListActivityTypesPages(params,
  1199. // func(page *ListActivityTypesOutput, lastPage bool) bool {
  1200. // pageNum++
  1201. // fmt.Println(page)
  1202. // return pageNum <= 3
  1203. // })
  1204. //
  1205. func (c *SWF) ListActivityTypesPages(input *ListActivityTypesInput, fn func(p *ListActivityTypesOutput, lastPage bool) (shouldContinue bool)) error {
  1206. page, _ := c.ListActivityTypesRequest(input)
  1207. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1208. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1209. return fn(p.(*ListActivityTypesOutput), lastPage)
  1210. })
  1211. }
  1212. const opListClosedWorkflowExecutions = "ListClosedWorkflowExecutions"
  1213. // ListClosedWorkflowExecutionsRequest generates a "aws/request.Request" representing the
  1214. // client's request for the ListClosedWorkflowExecutions operation. The "output" return
  1215. // value can be used to capture response data after the request's "Send" method
  1216. // is called.
  1217. //
  1218. // See ListClosedWorkflowExecutions for usage and error information.
  1219. //
  1220. // Creating a request object using this method should be used when you want to inject
  1221. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1222. // access properties on the request object before or after sending the request. If
  1223. // you just want the service response, call the ListClosedWorkflowExecutions method directly
  1224. // instead.
  1225. //
  1226. // Note: You must call the "Send" method on the returned request object in order
  1227. // to execute the request.
  1228. //
  1229. // // Example sending a request using the ListClosedWorkflowExecutionsRequest method.
  1230. // req, resp := client.ListClosedWorkflowExecutionsRequest(params)
  1231. //
  1232. // err := req.Send()
  1233. // if err == nil { // resp is now filled
  1234. // fmt.Println(resp)
  1235. // }
  1236. //
  1237. func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) {
  1238. op := &request.Operation{
  1239. Name: opListClosedWorkflowExecutions,
  1240. HTTPMethod: "POST",
  1241. HTTPPath: "/",
  1242. Paginator: &request.Paginator{
  1243. InputTokens: []string{"nextPageToken"},
  1244. OutputTokens: []string{"nextPageToken"},
  1245. LimitToken: "maximumPageSize",
  1246. TruncationToken: "",
  1247. },
  1248. }
  1249. if input == nil {
  1250. input = &ListClosedWorkflowExecutionsInput{}
  1251. }
  1252. req = c.newRequest(op, input, output)
  1253. output = &WorkflowExecutionInfos{}
  1254. req.Data = output
  1255. return
  1256. }
  1257. // ListClosedWorkflowExecutions API operation for Amazon Simple Workflow Service.
  1258. //
  1259. // Returns a list of closed workflow executions in the specified domain that
  1260. // meet the filtering criteria. The results may be split into multiple pages.
  1261. // To retrieve subsequent pages, make the call again using the nextPageToken
  1262. // returned by the initial call.
  1263. //
  1264. // This operation is eventually consistent. The results are best effort and
  1265. // may not exactly reflect recent updates and changes.Access Control
  1266. //
  1267. // You can use IAM policies to control this action's access to Amazon SWF resources
  1268. // as follows:
  1269. //
  1270. // * Use a Resource element with the domain name to limit the action to only
  1271. // specified domains.
  1272. // * Use an Action element to allow or deny permission to call this action.
  1273. //
  1274. // * Constrain the following parameters by using a Condition element with
  1275. // the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag.
  1276. //
  1277. // typeFilter.name: String constraint. The key is swf:typeFilter.name.
  1278. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  1279. //
  1280. // If the caller does not have sufficient permissions to invoke the action,
  1281. // or the parameter values fall outside the specified constraints, the action
  1282. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1283. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1284. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1285. //
  1286. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1287. // with awserr.Error's Code and Message methods to get detailed information about
  1288. // the error.
  1289. //
  1290. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1291. // API operation ListClosedWorkflowExecutions for usage and error information.
  1292. //
  1293. // Returned Error Codes:
  1294. // * UnknownResourceFault
  1295. // Returned when the named resource cannot be found with in the scope of this
  1296. // operation (region or domain). This could happen if the named resource was
  1297. // never created or is no longer available for this operation.
  1298. //
  1299. // * OperationNotPermittedFault
  1300. // Returned when the caller does not have sufficient permissions to invoke the
  1301. // action.
  1302. //
  1303. func (c *SWF) ListClosedWorkflowExecutions(input *ListClosedWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) {
  1304. req, out := c.ListClosedWorkflowExecutionsRequest(input)
  1305. err := req.Send()
  1306. return out, err
  1307. }
  1308. // ListClosedWorkflowExecutionsPages iterates over the pages of a ListClosedWorkflowExecutions operation,
  1309. // calling the "fn" function with the response data for each page. To stop
  1310. // iterating, return false from the fn function.
  1311. //
  1312. // See ListClosedWorkflowExecutions method for more information on how to use this operation.
  1313. //
  1314. // Note: This operation can generate multiple requests to a service.
  1315. //
  1316. // // Example iterating over at most 3 pages of a ListClosedWorkflowExecutions operation.
  1317. // pageNum := 0
  1318. // err := client.ListClosedWorkflowExecutionsPages(params,
  1319. // func(page *WorkflowExecutionInfos, lastPage bool) bool {
  1320. // pageNum++
  1321. // fmt.Println(page)
  1322. // return pageNum <= 3
  1323. // })
  1324. //
  1325. func (c *SWF) ListClosedWorkflowExecutionsPages(input *ListClosedWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error {
  1326. page, _ := c.ListClosedWorkflowExecutionsRequest(input)
  1327. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1328. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1329. return fn(p.(*WorkflowExecutionInfos), lastPage)
  1330. })
  1331. }
  1332. const opListDomains = "ListDomains"
  1333. // ListDomainsRequest generates a "aws/request.Request" representing the
  1334. // client's request for the ListDomains operation. The "output" return
  1335. // value can be used to capture response data after the request's "Send" method
  1336. // is called.
  1337. //
  1338. // See ListDomains for usage and error information.
  1339. //
  1340. // Creating a request object using this method should be used when you want to inject
  1341. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1342. // access properties on the request object before or after sending the request. If
  1343. // you just want the service response, call the ListDomains method directly
  1344. // instead.
  1345. //
  1346. // Note: You must call the "Send" method on the returned request object in order
  1347. // to execute the request.
  1348. //
  1349. // // Example sending a request using the ListDomainsRequest method.
  1350. // req, resp := client.ListDomainsRequest(params)
  1351. //
  1352. // err := req.Send()
  1353. // if err == nil { // resp is now filled
  1354. // fmt.Println(resp)
  1355. // }
  1356. //
  1357. func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) {
  1358. op := &request.Operation{
  1359. Name: opListDomains,
  1360. HTTPMethod: "POST",
  1361. HTTPPath: "/",
  1362. Paginator: &request.Paginator{
  1363. InputTokens: []string{"nextPageToken"},
  1364. OutputTokens: []string{"nextPageToken"},
  1365. LimitToken: "maximumPageSize",
  1366. TruncationToken: "",
  1367. },
  1368. }
  1369. if input == nil {
  1370. input = &ListDomainsInput{}
  1371. }
  1372. req = c.newRequest(op, input, output)
  1373. output = &ListDomainsOutput{}
  1374. req.Data = output
  1375. return
  1376. }
  1377. // ListDomains API operation for Amazon Simple Workflow Service.
  1378. //
  1379. // Returns the list of domains registered in the account. The results may be
  1380. // split into multiple pages. To retrieve subsequent pages, make the call again
  1381. // using the nextPageToken returned by the initial call.
  1382. //
  1383. // This operation is eventually consistent. The results are best effort and
  1384. // may not exactly reflect recent updates and changes.Access Control
  1385. //
  1386. // You can use IAM policies to control this action's access to Amazon SWF resources
  1387. // as follows:
  1388. //
  1389. // * Use a Resource element with the domain name to limit the action to only
  1390. // specified domains. The element must be set to arn:aws:swf::AccountID:domain/*,
  1391. // where AccountID is the account ID, with no dashes.
  1392. // * Use an Action element to allow or deny permission to call this action.
  1393. //
  1394. // * You cannot use an IAM policy to constrain this action's parameters.
  1395. //
  1396. // If the caller does not have sufficient permissions to invoke the action,
  1397. // or the parameter values fall outside the specified constraints, the action
  1398. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1399. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1400. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1401. //
  1402. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1403. // with awserr.Error's Code and Message methods to get detailed information about
  1404. // the error.
  1405. //
  1406. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1407. // API operation ListDomains for usage and error information.
  1408. //
  1409. // Returned Error Codes:
  1410. // * OperationNotPermittedFault
  1411. // Returned when the caller does not have sufficient permissions to invoke the
  1412. // action.
  1413. //
  1414. func (c *SWF) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) {
  1415. req, out := c.ListDomainsRequest(input)
  1416. err := req.Send()
  1417. return out, err
  1418. }
  1419. // ListDomainsPages iterates over the pages of a ListDomains operation,
  1420. // calling the "fn" function with the response data for each page. To stop
  1421. // iterating, return false from the fn function.
  1422. //
  1423. // See ListDomains method for more information on how to use this operation.
  1424. //
  1425. // Note: This operation can generate multiple requests to a service.
  1426. //
  1427. // // Example iterating over at most 3 pages of a ListDomains operation.
  1428. // pageNum := 0
  1429. // err := client.ListDomainsPages(params,
  1430. // func(page *ListDomainsOutput, lastPage bool) bool {
  1431. // pageNum++
  1432. // fmt.Println(page)
  1433. // return pageNum <= 3
  1434. // })
  1435. //
  1436. func (c *SWF) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error {
  1437. page, _ := c.ListDomainsRequest(input)
  1438. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1439. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1440. return fn(p.(*ListDomainsOutput), lastPage)
  1441. })
  1442. }
  1443. const opListOpenWorkflowExecutions = "ListOpenWorkflowExecutions"
  1444. // ListOpenWorkflowExecutionsRequest generates a "aws/request.Request" representing the
  1445. // client's request for the ListOpenWorkflowExecutions operation. The "output" return
  1446. // value can be used to capture response data after the request's "Send" method
  1447. // is called.
  1448. //
  1449. // See ListOpenWorkflowExecutions for usage and error information.
  1450. //
  1451. // Creating a request object using this method should be used when you want to inject
  1452. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1453. // access properties on the request object before or after sending the request. If
  1454. // you just want the service response, call the ListOpenWorkflowExecutions method directly
  1455. // instead.
  1456. //
  1457. // Note: You must call the "Send" method on the returned request object in order
  1458. // to execute the request.
  1459. //
  1460. // // Example sending a request using the ListOpenWorkflowExecutionsRequest method.
  1461. // req, resp := client.ListOpenWorkflowExecutionsRequest(params)
  1462. //
  1463. // err := req.Send()
  1464. // if err == nil { // resp is now filled
  1465. // fmt.Println(resp)
  1466. // }
  1467. //
  1468. func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) {
  1469. op := &request.Operation{
  1470. Name: opListOpenWorkflowExecutions,
  1471. HTTPMethod: "POST",
  1472. HTTPPath: "/",
  1473. Paginator: &request.Paginator{
  1474. InputTokens: []string{"nextPageToken"},
  1475. OutputTokens: []string{"nextPageToken"},
  1476. LimitToken: "maximumPageSize",
  1477. TruncationToken: "",
  1478. },
  1479. }
  1480. if input == nil {
  1481. input = &ListOpenWorkflowExecutionsInput{}
  1482. }
  1483. req = c.newRequest(op, input, output)
  1484. output = &WorkflowExecutionInfos{}
  1485. req.Data = output
  1486. return
  1487. }
  1488. // ListOpenWorkflowExecutions API operation for Amazon Simple Workflow Service.
  1489. //
  1490. // Returns a list of open workflow executions in the specified domain that meet
  1491. // the filtering criteria. The results may be split into multiple pages. To
  1492. // retrieve subsequent pages, make the call again using the nextPageToken returned
  1493. // by the initial call.
  1494. //
  1495. // This operation is eventually consistent. The results are best effort and
  1496. // may not exactly reflect recent updates and changes.Access Control
  1497. //
  1498. // You can use IAM policies to control this action's access to Amazon SWF resources
  1499. // as follows:
  1500. //
  1501. // * Use a Resource element with the domain name to limit the action to only
  1502. // specified domains.
  1503. // * Use an Action element to allow or deny permission to call this action.
  1504. //
  1505. // * Constrain the following parameters by using a Condition element with
  1506. // the appropriate keys. tagFilter.tag: String constraint. The key is swf:tagFilter.tag.
  1507. //
  1508. // typeFilter.name: String constraint. The key is swf:typeFilter.name.
  1509. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  1510. //
  1511. // If the caller does not have sufficient permissions to invoke the action,
  1512. // or the parameter values fall outside the specified constraints, the action
  1513. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1514. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1515. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1516. //
  1517. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1518. // with awserr.Error's Code and Message methods to get detailed information about
  1519. // the error.
  1520. //
  1521. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1522. // API operation ListOpenWorkflowExecutions for usage and error information.
  1523. //
  1524. // Returned Error Codes:
  1525. // * UnknownResourceFault
  1526. // Returned when the named resource cannot be found with in the scope of this
  1527. // operation (region or domain). This could happen if the named resource was
  1528. // never created or is no longer available for this operation.
  1529. //
  1530. // * OperationNotPermittedFault
  1531. // Returned when the caller does not have sufficient permissions to invoke the
  1532. // action.
  1533. //
  1534. func (c *SWF) ListOpenWorkflowExecutions(input *ListOpenWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) {
  1535. req, out := c.ListOpenWorkflowExecutionsRequest(input)
  1536. err := req.Send()
  1537. return out, err
  1538. }
  1539. // ListOpenWorkflowExecutionsPages iterates over the pages of a ListOpenWorkflowExecutions operation,
  1540. // calling the "fn" function with the response data for each page. To stop
  1541. // iterating, return false from the fn function.
  1542. //
  1543. // See ListOpenWorkflowExecutions method for more information on how to use this operation.
  1544. //
  1545. // Note: This operation can generate multiple requests to a service.
  1546. //
  1547. // // Example iterating over at most 3 pages of a ListOpenWorkflowExecutions operation.
  1548. // pageNum := 0
  1549. // err := client.ListOpenWorkflowExecutionsPages(params,
  1550. // func(page *WorkflowExecutionInfos, lastPage bool) bool {
  1551. // pageNum++
  1552. // fmt.Println(page)
  1553. // return pageNum <= 3
  1554. // })
  1555. //
  1556. func (c *SWF) ListOpenWorkflowExecutionsPages(input *ListOpenWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error {
  1557. page, _ := c.ListOpenWorkflowExecutionsRequest(input)
  1558. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1559. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1560. return fn(p.(*WorkflowExecutionInfos), lastPage)
  1561. })
  1562. }
  1563. const opListWorkflowTypes = "ListWorkflowTypes"
  1564. // ListWorkflowTypesRequest generates a "aws/request.Request" representing the
  1565. // client's request for the ListWorkflowTypes operation. The "output" return
  1566. // value can be used to capture response data after the request's "Send" method
  1567. // is called.
  1568. //
  1569. // See ListWorkflowTypes for usage and error information.
  1570. //
  1571. // Creating a request object using this method should be used when you want to inject
  1572. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1573. // access properties on the request object before or after sending the request. If
  1574. // you just want the service response, call the ListWorkflowTypes method directly
  1575. // instead.
  1576. //
  1577. // Note: You must call the "Send" method on the returned request object in order
  1578. // to execute the request.
  1579. //
  1580. // // Example sending a request using the ListWorkflowTypesRequest method.
  1581. // req, resp := client.ListWorkflowTypesRequest(params)
  1582. //
  1583. // err := req.Send()
  1584. // if err == nil { // resp is now filled
  1585. // fmt.Println(resp)
  1586. // }
  1587. //
  1588. func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *request.Request, output *ListWorkflowTypesOutput) {
  1589. op := &request.Operation{
  1590. Name: opListWorkflowTypes,
  1591. HTTPMethod: "POST",
  1592. HTTPPath: "/",
  1593. Paginator: &request.Paginator{
  1594. InputTokens: []string{"nextPageToken"},
  1595. OutputTokens: []string{"nextPageToken"},
  1596. LimitToken: "maximumPageSize",
  1597. TruncationToken: "",
  1598. },
  1599. }
  1600. if input == nil {
  1601. input = &ListWorkflowTypesInput{}
  1602. }
  1603. req = c.newRequest(op, input, output)
  1604. output = &ListWorkflowTypesOutput{}
  1605. req.Data = output
  1606. return
  1607. }
  1608. // ListWorkflowTypes API operation for Amazon Simple Workflow Service.
  1609. //
  1610. // Returns information about workflow types in the specified domain. The results
  1611. // may be split into multiple pages that can be retrieved by making the call
  1612. // repeatedly.
  1613. //
  1614. // Access Control
  1615. //
  1616. // You can use IAM policies to control this action's access to Amazon SWF resources
  1617. // as follows:
  1618. //
  1619. // * Use a Resource element with the domain name to limit the action to only
  1620. // specified domains.
  1621. // * Use an Action element to allow or deny permission to call this action.
  1622. //
  1623. // * You cannot use an IAM policy to constrain this action's parameters.
  1624. //
  1625. // If the caller does not have sufficient permissions to invoke the action,
  1626. // or the parameter values fall outside the specified constraints, the action
  1627. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1628. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1629. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1630. //
  1631. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1632. // with awserr.Error's Code and Message methods to get detailed information about
  1633. // the error.
  1634. //
  1635. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1636. // API operation ListWorkflowTypes for usage and error information.
  1637. //
  1638. // Returned Error Codes:
  1639. // * OperationNotPermittedFault
  1640. // Returned when the caller does not have sufficient permissions to invoke the
  1641. // action.
  1642. //
  1643. // * UnknownResourceFault
  1644. // Returned when the named resource cannot be found with in the scope of this
  1645. // operation (region or domain). This could happen if the named resource was
  1646. // never created or is no longer available for this operation.
  1647. //
  1648. func (c *SWF) ListWorkflowTypes(input *ListWorkflowTypesInput) (*ListWorkflowTypesOutput, error) {
  1649. req, out := c.ListWorkflowTypesRequest(input)
  1650. err := req.Send()
  1651. return out, err
  1652. }
  1653. // ListWorkflowTypesPages iterates over the pages of a ListWorkflowTypes operation,
  1654. // calling the "fn" function with the response data for each page. To stop
  1655. // iterating, return false from the fn function.
  1656. //
  1657. // See ListWorkflowTypes method for more information on how to use this operation.
  1658. //
  1659. // Note: This operation can generate multiple requests to a service.
  1660. //
  1661. // // Example iterating over at most 3 pages of a ListWorkflowTypes operation.
  1662. // pageNum := 0
  1663. // err := client.ListWorkflowTypesPages(params,
  1664. // func(page *ListWorkflowTypesOutput, lastPage bool) bool {
  1665. // pageNum++
  1666. // fmt.Println(page)
  1667. // return pageNum <= 3
  1668. // })
  1669. //
  1670. func (c *SWF) ListWorkflowTypesPages(input *ListWorkflowTypesInput, fn func(p *ListWorkflowTypesOutput, lastPage bool) (shouldContinue bool)) error {
  1671. page, _ := c.ListWorkflowTypesRequest(input)
  1672. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1673. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1674. return fn(p.(*ListWorkflowTypesOutput), lastPage)
  1675. })
  1676. }
  1677. const opPollForActivityTask = "PollForActivityTask"
  1678. // PollForActivityTaskRequest generates a "aws/request.Request" representing the
  1679. // client's request for the PollForActivityTask operation. The "output" return
  1680. // value can be used to capture response data after the request's "Send" method
  1681. // is called.
  1682. //
  1683. // See PollForActivityTask for usage and error information.
  1684. //
  1685. // Creating a request object using this method should be used when you want to inject
  1686. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1687. // access properties on the request object before or after sending the request. If
  1688. // you just want the service response, call the PollForActivityTask method directly
  1689. // instead.
  1690. //
  1691. // Note: You must call the "Send" method on the returned request object in order
  1692. // to execute the request.
  1693. //
  1694. // // Example sending a request using the PollForActivityTaskRequest method.
  1695. // req, resp := client.PollForActivityTaskRequest(params)
  1696. //
  1697. // err := req.Send()
  1698. // if err == nil { // resp is now filled
  1699. // fmt.Println(resp)
  1700. // }
  1701. //
  1702. func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req *request.Request, output *PollForActivityTaskOutput) {
  1703. op := &request.Operation{
  1704. Name: opPollForActivityTask,
  1705. HTTPMethod: "POST",
  1706. HTTPPath: "/",
  1707. }
  1708. if input == nil {
  1709. input = &PollForActivityTaskInput{}
  1710. }
  1711. req = c.newRequest(op, input, output)
  1712. output = &PollForActivityTaskOutput{}
  1713. req.Data = output
  1714. return
  1715. }
  1716. // PollForActivityTask API operation for Amazon Simple Workflow Service.
  1717. //
  1718. // Used by workers to get an ActivityTask from the specified activity taskList.
  1719. // This initiates a long poll, where the service holds the HTTP connection open
  1720. // and responds as soon as a task becomes available. The maximum time the service
  1721. // holds on to the request before responding is 60 seconds. If no task is available
  1722. // within 60 seconds, the poll will return an empty result. An empty result,
  1723. // in this context, means that an ActivityTask is returned, but that the value
  1724. // of taskToken is an empty string. If a task is returned, the worker should
  1725. // use its type to identify and process it correctly.
  1726. //
  1727. // Workers should set their client side socket timeout to at least 70 seconds
  1728. // (10 seconds higher than the maximum time service may hold the poll request).Access Control
  1729. //
  1730. // You can use IAM policies to control this action's access to Amazon SWF resources
  1731. // as follows:
  1732. //
  1733. // * Use a Resource element with the domain name to limit the action to only
  1734. // specified domains.
  1735. // * Use an Action element to allow or deny permission to call this action.
  1736. //
  1737. // * Constrain the taskList.name parameter by using a Condition element with
  1738. // the swf:taskList.name key to allow the action to access only certain task
  1739. // lists.
  1740. // If the caller does not have sufficient permissions to invoke the action,
  1741. // or the parameter values fall outside the specified constraints, the action
  1742. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1743. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1744. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1745. //
  1746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1747. // with awserr.Error's Code and Message methods to get detailed information about
  1748. // the error.
  1749. //
  1750. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1751. // API operation PollForActivityTask for usage and error information.
  1752. //
  1753. // Returned Error Codes:
  1754. // * UnknownResourceFault
  1755. // Returned when the named resource cannot be found with in the scope of this
  1756. // operation (region or domain). This could happen if the named resource was
  1757. // never created or is no longer available for this operation.
  1758. //
  1759. // * OperationNotPermittedFault
  1760. // Returned when the caller does not have sufficient permissions to invoke the
  1761. // action.
  1762. //
  1763. // * LimitExceededFault
  1764. // Returned by any operation if a system imposed limitation has been reached.
  1765. // To address this fault you should either clean up unused resources or increase
  1766. // the limit by contacting AWS.
  1767. //
  1768. func (c *SWF) PollForActivityTask(input *PollForActivityTaskInput) (*PollForActivityTaskOutput, error) {
  1769. req, out := c.PollForActivityTaskRequest(input)
  1770. err := req.Send()
  1771. return out, err
  1772. }
  1773. const opPollForDecisionTask = "PollForDecisionTask"
  1774. // PollForDecisionTaskRequest generates a "aws/request.Request" representing the
  1775. // client's request for the PollForDecisionTask operation. The "output" return
  1776. // value can be used to capture response data after the request's "Send" method
  1777. // is called.
  1778. //
  1779. // See PollForDecisionTask for usage and error information.
  1780. //
  1781. // Creating a request object using this method should be used when you want to inject
  1782. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1783. // access properties on the request object before or after sending the request. If
  1784. // you just want the service response, call the PollForDecisionTask method directly
  1785. // instead.
  1786. //
  1787. // Note: You must call the "Send" method on the returned request object in order
  1788. // to execute the request.
  1789. //
  1790. // // Example sending a request using the PollForDecisionTaskRequest method.
  1791. // req, resp := client.PollForDecisionTaskRequest(params)
  1792. //
  1793. // err := req.Send()
  1794. // if err == nil { // resp is now filled
  1795. // fmt.Println(resp)
  1796. // }
  1797. //
  1798. func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req *request.Request, output *PollForDecisionTaskOutput) {
  1799. op := &request.Operation{
  1800. Name: opPollForDecisionTask,
  1801. HTTPMethod: "POST",
  1802. HTTPPath: "/",
  1803. Paginator: &request.Paginator{
  1804. InputTokens: []string{"nextPageToken"},
  1805. OutputTokens: []string{"nextPageToken"},
  1806. LimitToken: "maximumPageSize",
  1807. TruncationToken: "",
  1808. },
  1809. }
  1810. if input == nil {
  1811. input = &PollForDecisionTaskInput{}
  1812. }
  1813. req = c.newRequest(op, input, output)
  1814. output = &PollForDecisionTaskOutput{}
  1815. req.Data = output
  1816. return
  1817. }
  1818. // PollForDecisionTask API operation for Amazon Simple Workflow Service.
  1819. //
  1820. // Used by deciders to get a DecisionTask from the specified decision taskList.
  1821. // A decision task may be returned for any open workflow execution that is using
  1822. // the specified task list. The task includes a paginated view of the history
  1823. // of the workflow execution. The decider should use the workflow type and the
  1824. // history to determine how to properly handle the task.
  1825. //
  1826. // This action initiates a long poll, where the service holds the HTTP connection
  1827. // open and responds as soon a task becomes available. If no decision task is
  1828. // available in the specified task list before the timeout of 60 seconds expires,
  1829. // an empty result is returned. An empty result, in this context, means that
  1830. // a DecisionTask is returned, but that the value of taskToken is an empty string.
  1831. //
  1832. // Deciders should set their client-side socket timeout to at least 70 seconds
  1833. // (10 seconds higher than the timeout).Because the number of workflow history events for a single workflow execution
  1834. // might be very large, the result returned might be split up across a number
  1835. // of pages. To retrieve subsequent pages, make additional calls to PollForDecisionTask
  1836. // using the nextPageToken returned by the initial call. Note that you do not
  1837. // call GetWorkflowExecutionHistory with this nextPageToken. Instead, call PollForDecisionTask
  1838. // again.Access Control
  1839. //
  1840. // You can use IAM policies to control this action's access to Amazon SWF resources
  1841. // as follows:
  1842. //
  1843. // * Use a Resource element with the domain name to limit the action to only
  1844. // specified domains.
  1845. // * Use an Action element to allow or deny permission to call this action.
  1846. //
  1847. // * Constrain the taskList.name parameter by using a Condition element with
  1848. // the swf:taskList.name key to allow the action to access only certain task
  1849. // lists.
  1850. // If the caller does not have sufficient permissions to invoke the action,
  1851. // or the parameter values fall outside the specified constraints, the action
  1852. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1853. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1854. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1855. //
  1856. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1857. // with awserr.Error's Code and Message methods to get detailed information about
  1858. // the error.
  1859. //
  1860. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1861. // API operation PollForDecisionTask for usage and error information.
  1862. //
  1863. // Returned Error Codes:
  1864. // * UnknownResourceFault
  1865. // Returned when the named resource cannot be found with in the scope of this
  1866. // operation (region or domain). This could happen if the named resource was
  1867. // never created or is no longer available for this operation.
  1868. //
  1869. // * OperationNotPermittedFault
  1870. // Returned when the caller does not have sufficient permissions to invoke the
  1871. // action.
  1872. //
  1873. // * LimitExceededFault
  1874. // Returned by any operation if a system imposed limitation has been reached.
  1875. // To address this fault you should either clean up unused resources or increase
  1876. // the limit by contacting AWS.
  1877. //
  1878. func (c *SWF) PollForDecisionTask(input *PollForDecisionTaskInput) (*PollForDecisionTaskOutput, error) {
  1879. req, out := c.PollForDecisionTaskRequest(input)
  1880. err := req.Send()
  1881. return out, err
  1882. }
  1883. // PollForDecisionTaskPages iterates over the pages of a PollForDecisionTask operation,
  1884. // calling the "fn" function with the response data for each page. To stop
  1885. // iterating, return false from the fn function.
  1886. //
  1887. // See PollForDecisionTask method for more information on how to use this operation.
  1888. //
  1889. // Note: This operation can generate multiple requests to a service.
  1890. //
  1891. // // Example iterating over at most 3 pages of a PollForDecisionTask operation.
  1892. // pageNum := 0
  1893. // err := client.PollForDecisionTaskPages(params,
  1894. // func(page *PollForDecisionTaskOutput, lastPage bool) bool {
  1895. // pageNum++
  1896. // fmt.Println(page)
  1897. // return pageNum <= 3
  1898. // })
  1899. //
  1900. func (c *SWF) PollForDecisionTaskPages(input *PollForDecisionTaskInput, fn func(p *PollForDecisionTaskOutput, lastPage bool) (shouldContinue bool)) error {
  1901. page, _ := c.PollForDecisionTaskRequest(input)
  1902. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1903. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1904. return fn(p.(*PollForDecisionTaskOutput), lastPage)
  1905. })
  1906. }
  1907. const opRecordActivityTaskHeartbeat = "RecordActivityTaskHeartbeat"
  1908. // RecordActivityTaskHeartbeatRequest generates a "aws/request.Request" representing the
  1909. // client's request for the RecordActivityTaskHeartbeat operation. The "output" return
  1910. // value can be used to capture response data after the request's "Send" method
  1911. // is called.
  1912. //
  1913. // See RecordActivityTaskHeartbeat for usage and error information.
  1914. //
  1915. // Creating a request object using this method should be used when you want to inject
  1916. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1917. // access properties on the request object before or after sending the request. If
  1918. // you just want the service response, call the RecordActivityTaskHeartbeat method directly
  1919. // instead.
  1920. //
  1921. // Note: You must call the "Send" method on the returned request object in order
  1922. // to execute the request.
  1923. //
  1924. // // Example sending a request using the RecordActivityTaskHeartbeatRequest method.
  1925. // req, resp := client.RecordActivityTaskHeartbeatRequest(params)
  1926. //
  1927. // err := req.Send()
  1928. // if err == nil { // resp is now filled
  1929. // fmt.Println(resp)
  1930. // }
  1931. //
  1932. func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartbeatInput) (req *request.Request, output *RecordActivityTaskHeartbeatOutput) {
  1933. op := &request.Operation{
  1934. Name: opRecordActivityTaskHeartbeat,
  1935. HTTPMethod: "POST",
  1936. HTTPPath: "/",
  1937. }
  1938. if input == nil {
  1939. input = &RecordActivityTaskHeartbeatInput{}
  1940. }
  1941. req = c.newRequest(op, input, output)
  1942. output = &RecordActivityTaskHeartbeatOutput{}
  1943. req.Data = output
  1944. return
  1945. }
  1946. // RecordActivityTaskHeartbeat API operation for Amazon Simple Workflow Service.
  1947. //
  1948. // Used by activity workers to report to the service that the ActivityTask represented
  1949. // by the specified taskToken is still making progress. The worker can also
  1950. // (optionally) specify details of the progress, for example percent complete,
  1951. // using the details parameter. This action can also be used by the worker as
  1952. // a mechanism to check if cancellation is being requested for the activity
  1953. // task. If a cancellation is being attempted for the specified task, then the
  1954. // boolean cancelRequested flag returned by the service is set to true.
  1955. //
  1956. // This action resets the taskHeartbeatTimeout clock. The taskHeartbeatTimeout
  1957. // is specified in RegisterActivityType.
  1958. //
  1959. // This action does not in itself create an event in the workflow execution
  1960. // history. However, if the task times out, the workflow execution history will
  1961. // contain a ActivityTaskTimedOut event that contains the information from the
  1962. // last heartbeat generated by the activity worker.
  1963. //
  1964. // The taskStartToCloseTimeout of an activity type is the maximum duration of
  1965. // an activity task, regardless of the number of RecordActivityTaskHeartbeat
  1966. // requests received. The taskStartToCloseTimeout is also specified in RegisterActivityType.This operation is only useful for long-lived activities to report liveliness
  1967. // of the task and to determine if a cancellation is being attempted. If the cancelRequested flag returns true, a cancellation is being attempted.
  1968. // If the worker can cancel the activity, it should respond with RespondActivityTaskCanceled.
  1969. // Otherwise, it should ignore the cancellation request.Access Control
  1970. //
  1971. // You can use IAM policies to control this action's access to Amazon SWF resources
  1972. // as follows:
  1973. //
  1974. // * Use a Resource element with the domain name to limit the action to only
  1975. // specified domains.
  1976. // * Use an Action element to allow or deny permission to call this action.
  1977. //
  1978. // * You cannot use an IAM policy to constrain this action's parameters.
  1979. //
  1980. // If the caller does not have sufficient permissions to invoke the action,
  1981. // or the parameter values fall outside the specified constraints, the action
  1982. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1983. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1984. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1985. //
  1986. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1987. // with awserr.Error's Code and Message methods to get detailed information about
  1988. // the error.
  1989. //
  1990. // See the AWS API reference guide for Amazon Simple Workflow Service's
  1991. // API operation RecordActivityTaskHeartbeat for usage and error information.
  1992. //
  1993. // Returned Error Codes:
  1994. // * UnknownResourceFault
  1995. // Returned when the named resource cannot be found with in the scope of this
  1996. // operation (region or domain). This could happen if the named resource was
  1997. // never created or is no longer available for this operation.
  1998. //
  1999. // * OperationNotPermittedFault
  2000. // Returned when the caller does not have sufficient permissions to invoke the
  2001. // action.
  2002. //
  2003. func (c *SWF) RecordActivityTaskHeartbeat(input *RecordActivityTaskHeartbeatInput) (*RecordActivityTaskHeartbeatOutput, error) {
  2004. req, out := c.RecordActivityTaskHeartbeatRequest(input)
  2005. err := req.Send()
  2006. return out, err
  2007. }
  2008. const opRegisterActivityType = "RegisterActivityType"
  2009. // RegisterActivityTypeRequest generates a "aws/request.Request" representing the
  2010. // client's request for the RegisterActivityType operation. The "output" return
  2011. // value can be used to capture response data after the request's "Send" method
  2012. // is called.
  2013. //
  2014. // See RegisterActivityType for usage and error information.
  2015. //
  2016. // Creating a request object using this method should be used when you want to inject
  2017. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2018. // access properties on the request object before or after sending the request. If
  2019. // you just want the service response, call the RegisterActivityType method directly
  2020. // instead.
  2021. //
  2022. // Note: You must call the "Send" method on the returned request object in order
  2023. // to execute the request.
  2024. //
  2025. // // Example sending a request using the RegisterActivityTypeRequest method.
  2026. // req, resp := client.RegisterActivityTypeRequest(params)
  2027. //
  2028. // err := req.Send()
  2029. // if err == nil { // resp is now filled
  2030. // fmt.Println(resp)
  2031. // }
  2032. //
  2033. func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req *request.Request, output *RegisterActivityTypeOutput) {
  2034. op := &request.Operation{
  2035. Name: opRegisterActivityType,
  2036. HTTPMethod: "POST",
  2037. HTTPPath: "/",
  2038. }
  2039. if input == nil {
  2040. input = &RegisterActivityTypeInput{}
  2041. }
  2042. req = c.newRequest(op, input, output)
  2043. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2044. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2045. output = &RegisterActivityTypeOutput{}
  2046. req.Data = output
  2047. return
  2048. }
  2049. // RegisterActivityType API operation for Amazon Simple Workflow Service.
  2050. //
  2051. // Registers a new activity type along with its configuration settings in the
  2052. // specified domain.
  2053. //
  2054. // A TypeAlreadyExists fault is returned if the type already exists in the domain.
  2055. // You cannot change any configuration settings of the type after its registration,
  2056. // and it must be registered as a new version.Access Control
  2057. //
  2058. // You can use IAM policies to control this action's access to Amazon SWF resources
  2059. // as follows:
  2060. //
  2061. // * Use a Resource element with the domain name to limit the action to only
  2062. // specified domains.
  2063. // * Use an Action element to allow or deny permission to call this action.
  2064. //
  2065. // * Constrain the following parameters by using a Condition element with
  2066. // the appropriate keys. defaultTaskList.name: String constraint. The key
  2067. // is swf:defaultTaskList.name.
  2068. // name: String constraint. The key is swf:name.
  2069. // version: String constraint. The key is swf:version.
  2070. //
  2071. // If the caller does not have sufficient permissions to invoke the action,
  2072. // or the parameter values fall outside the specified constraints, the action
  2073. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2074. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2075. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2076. //
  2077. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2078. // with awserr.Error's Code and Message methods to get detailed information about
  2079. // the error.
  2080. //
  2081. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2082. // API operation RegisterActivityType for usage and error information.
  2083. //
  2084. // Returned Error Codes:
  2085. // * TypeAlreadyExistsFault
  2086. // Returned if the type already exists in the specified domain. You will get
  2087. // this fault even if the existing type is in deprecated status. You can specify
  2088. // another version if the intent is to create a new distinct version of the
  2089. // type.
  2090. //
  2091. // * LimitExceededFault
  2092. // Returned by any operation if a system imposed limitation has been reached.
  2093. // To address this fault you should either clean up unused resources or increase
  2094. // the limit by contacting AWS.
  2095. //
  2096. // * UnknownResourceFault
  2097. // Returned when the named resource cannot be found with in the scope of this
  2098. // operation (region or domain). This could happen if the named resource was
  2099. // never created or is no longer available for this operation.
  2100. //
  2101. // * OperationNotPermittedFault
  2102. // Returned when the caller does not have sufficient permissions to invoke the
  2103. // action.
  2104. //
  2105. func (c *SWF) RegisterActivityType(input *RegisterActivityTypeInput) (*RegisterActivityTypeOutput, error) {
  2106. req, out := c.RegisterActivityTypeRequest(input)
  2107. err := req.Send()
  2108. return out, err
  2109. }
  2110. const opRegisterDomain = "RegisterDomain"
  2111. // RegisterDomainRequest generates a "aws/request.Request" representing the
  2112. // client's request for the RegisterDomain operation. The "output" return
  2113. // value can be used to capture response data after the request's "Send" method
  2114. // is called.
  2115. //
  2116. // See RegisterDomain for usage and error information.
  2117. //
  2118. // Creating a request object using this method should be used when you want to inject
  2119. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2120. // access properties on the request object before or after sending the request. If
  2121. // you just want the service response, call the RegisterDomain method directly
  2122. // instead.
  2123. //
  2124. // Note: You must call the "Send" method on the returned request object in order
  2125. // to execute the request.
  2126. //
  2127. // // Example sending a request using the RegisterDomainRequest method.
  2128. // req, resp := client.RegisterDomainRequest(params)
  2129. //
  2130. // err := req.Send()
  2131. // if err == nil { // resp is now filled
  2132. // fmt.Println(resp)
  2133. // }
  2134. //
  2135. func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Request, output *RegisterDomainOutput) {
  2136. op := &request.Operation{
  2137. Name: opRegisterDomain,
  2138. HTTPMethod: "POST",
  2139. HTTPPath: "/",
  2140. }
  2141. if input == nil {
  2142. input = &RegisterDomainInput{}
  2143. }
  2144. req = c.newRequest(op, input, output)
  2145. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2146. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2147. output = &RegisterDomainOutput{}
  2148. req.Data = output
  2149. return
  2150. }
  2151. // RegisterDomain API operation for Amazon Simple Workflow Service.
  2152. //
  2153. // Registers a new domain.
  2154. //
  2155. // Access Control
  2156. //
  2157. // You can use IAM policies to control this action's access to Amazon SWF resources
  2158. // as follows:
  2159. //
  2160. // * You cannot use an IAM policy to control domain access for this action.
  2161. // The name of the domain being registered is available as the resource of
  2162. // this action.
  2163. // * Use an Action element to allow or deny permission to call this action.
  2164. //
  2165. // * You cannot use an IAM policy to constrain this action's parameters.
  2166. //
  2167. // If the caller does not have sufficient permissions to invoke the action,
  2168. // or the parameter values fall outside the specified constraints, the action
  2169. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2170. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2171. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2172. //
  2173. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2174. // with awserr.Error's Code and Message methods to get detailed information about
  2175. // the error.
  2176. //
  2177. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2178. // API operation RegisterDomain for usage and error information.
  2179. //
  2180. // Returned Error Codes:
  2181. // * DomainAlreadyExistsFault
  2182. // Returned if the specified domain already exists. You will get this fault
  2183. // even if the existing domain is in deprecated status.
  2184. //
  2185. // * LimitExceededFault
  2186. // Returned by any operation if a system imposed limitation has been reached.
  2187. // To address this fault you should either clean up unused resources or increase
  2188. // the limit by contacting AWS.
  2189. //
  2190. // * OperationNotPermittedFault
  2191. // Returned when the caller does not have sufficient permissions to invoke the
  2192. // action.
  2193. //
  2194. func (c *SWF) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) {
  2195. req, out := c.RegisterDomainRequest(input)
  2196. err := req.Send()
  2197. return out, err
  2198. }
  2199. const opRegisterWorkflowType = "RegisterWorkflowType"
  2200. // RegisterWorkflowTypeRequest generates a "aws/request.Request" representing the
  2201. // client's request for the RegisterWorkflowType operation. The "output" return
  2202. // value can be used to capture response data after the request's "Send" method
  2203. // is called.
  2204. //
  2205. // See RegisterWorkflowType for usage and error information.
  2206. //
  2207. // Creating a request object using this method should be used when you want to inject
  2208. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2209. // access properties on the request object before or after sending the request. If
  2210. // you just want the service response, call the RegisterWorkflowType method directly
  2211. // instead.
  2212. //
  2213. // Note: You must call the "Send" method on the returned request object in order
  2214. // to execute the request.
  2215. //
  2216. // // Example sending a request using the RegisterWorkflowTypeRequest method.
  2217. // req, resp := client.RegisterWorkflowTypeRequest(params)
  2218. //
  2219. // err := req.Send()
  2220. // if err == nil { // resp is now filled
  2221. // fmt.Println(resp)
  2222. // }
  2223. //
  2224. func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req *request.Request, output *RegisterWorkflowTypeOutput) {
  2225. op := &request.Operation{
  2226. Name: opRegisterWorkflowType,
  2227. HTTPMethod: "POST",
  2228. HTTPPath: "/",
  2229. }
  2230. if input == nil {
  2231. input = &RegisterWorkflowTypeInput{}
  2232. }
  2233. req = c.newRequest(op, input, output)
  2234. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2235. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2236. output = &RegisterWorkflowTypeOutput{}
  2237. req.Data = output
  2238. return
  2239. }
  2240. // RegisterWorkflowType API operation for Amazon Simple Workflow Service.
  2241. //
  2242. // Registers a new workflow type and its configuration settings in the specified
  2243. // domain.
  2244. //
  2245. // The retention period for the workflow history is set by the RegisterDomain
  2246. // action.
  2247. //
  2248. // If the type already exists, then a TypeAlreadyExists fault is returned. You
  2249. // cannot change the configuration settings of a workflow type once it is registered
  2250. // and it must be registered as a new version.Access Control
  2251. //
  2252. // You can use IAM policies to control this action's access to Amazon SWF resources
  2253. // as follows:
  2254. //
  2255. // * Use a Resource element with the domain name to limit the action to only
  2256. // specified domains.
  2257. // * Use an Action element to allow or deny permission to call this action.
  2258. //
  2259. // * Constrain the following parameters by using a Condition element with
  2260. // the appropriate keys. defaultTaskList.name: String constraint. The key
  2261. // is swf:defaultTaskList.name.
  2262. // name: String constraint. The key is swf:name.
  2263. // version: String constraint. The key is swf:version.
  2264. //
  2265. // If the caller does not have sufficient permissions to invoke the action,
  2266. // or the parameter values fall outside the specified constraints, the action
  2267. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2268. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2269. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2270. //
  2271. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2272. // with awserr.Error's Code and Message methods to get detailed information about
  2273. // the error.
  2274. //
  2275. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2276. // API operation RegisterWorkflowType for usage and error information.
  2277. //
  2278. // Returned Error Codes:
  2279. // * TypeAlreadyExistsFault
  2280. // Returned if the type already exists in the specified domain. You will get
  2281. // this fault even if the existing type is in deprecated status. You can specify
  2282. // another version if the intent is to create a new distinct version of the
  2283. // type.
  2284. //
  2285. // * LimitExceededFault
  2286. // Returned by any operation if a system imposed limitation has been reached.
  2287. // To address this fault you should either clean up unused resources or increase
  2288. // the limit by contacting AWS.
  2289. //
  2290. // * UnknownResourceFault
  2291. // Returned when the named resource cannot be found with in the scope of this
  2292. // operation (region or domain). This could happen if the named resource was
  2293. // never created or is no longer available for this operation.
  2294. //
  2295. // * OperationNotPermittedFault
  2296. // Returned when the caller does not have sufficient permissions to invoke the
  2297. // action.
  2298. //
  2299. func (c *SWF) RegisterWorkflowType(input *RegisterWorkflowTypeInput) (*RegisterWorkflowTypeOutput, error) {
  2300. req, out := c.RegisterWorkflowTypeRequest(input)
  2301. err := req.Send()
  2302. return out, err
  2303. }
  2304. const opRequestCancelWorkflowExecution = "RequestCancelWorkflowExecution"
  2305. // RequestCancelWorkflowExecutionRequest generates a "aws/request.Request" representing the
  2306. // client's request for the RequestCancelWorkflowExecution operation. The "output" return
  2307. // value can be used to capture response data after the request's "Send" method
  2308. // is called.
  2309. //
  2310. // See RequestCancelWorkflowExecution for usage and error information.
  2311. //
  2312. // Creating a request object using this method should be used when you want to inject
  2313. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2314. // access properties on the request object before or after sending the request. If
  2315. // you just want the service response, call the RequestCancelWorkflowExecution method directly
  2316. // instead.
  2317. //
  2318. // Note: You must call the "Send" method on the returned request object in order
  2319. // to execute the request.
  2320. //
  2321. // // Example sending a request using the RequestCancelWorkflowExecutionRequest method.
  2322. // req, resp := client.RequestCancelWorkflowExecutionRequest(params)
  2323. //
  2324. // err := req.Send()
  2325. // if err == nil { // resp is now filled
  2326. // fmt.Println(resp)
  2327. // }
  2328. //
  2329. func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflowExecutionInput) (req *request.Request, output *RequestCancelWorkflowExecutionOutput) {
  2330. op := &request.Operation{
  2331. Name: opRequestCancelWorkflowExecution,
  2332. HTTPMethod: "POST",
  2333. HTTPPath: "/",
  2334. }
  2335. if input == nil {
  2336. input = &RequestCancelWorkflowExecutionInput{}
  2337. }
  2338. req = c.newRequest(op, input, output)
  2339. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2340. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2341. output = &RequestCancelWorkflowExecutionOutput{}
  2342. req.Data = output
  2343. return
  2344. }
  2345. // RequestCancelWorkflowExecution API operation for Amazon Simple Workflow Service.
  2346. //
  2347. // Records a WorkflowExecutionCancelRequested event in the currently running
  2348. // workflow execution identified by the given domain, workflowId, and runId.
  2349. // This logically requests the cancellation of the workflow execution as a whole.
  2350. // It is up to the decider to take appropriate actions when it receives an execution
  2351. // history with this event.
  2352. //
  2353. // If the runId is not specified, the WorkflowExecutionCancelRequested event
  2354. // is recorded in the history of the current open workflow execution with the
  2355. // specified workflowId in the domain.Because this action allows the workflow to properly clean up and gracefully
  2356. // close, it should be used instead of TerminateWorkflowExecution when possible.Access Control
  2357. //
  2358. // You can use IAM policies to control this action's access to Amazon SWF resources
  2359. // as follows:
  2360. //
  2361. // * Use a Resource element with the domain name to limit the action to only
  2362. // specified domains.
  2363. // * Use an Action element to allow or deny permission to call this action.
  2364. //
  2365. // * You cannot use an IAM policy to constrain this action's parameters.
  2366. //
  2367. // If the caller does not have sufficient permissions to invoke the action,
  2368. // or the parameter values fall outside the specified constraints, the action
  2369. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2370. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2371. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2372. //
  2373. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2374. // with awserr.Error's Code and Message methods to get detailed information about
  2375. // the error.
  2376. //
  2377. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2378. // API operation RequestCancelWorkflowExecution for usage and error information.
  2379. //
  2380. // Returned Error Codes:
  2381. // * UnknownResourceFault
  2382. // Returned when the named resource cannot be found with in the scope of this
  2383. // operation (region or domain). This could happen if the named resource was
  2384. // never created or is no longer available for this operation.
  2385. //
  2386. // * OperationNotPermittedFault
  2387. // Returned when the caller does not have sufficient permissions to invoke the
  2388. // action.
  2389. //
  2390. func (c *SWF) RequestCancelWorkflowExecution(input *RequestCancelWorkflowExecutionInput) (*RequestCancelWorkflowExecutionOutput, error) {
  2391. req, out := c.RequestCancelWorkflowExecutionRequest(input)
  2392. err := req.Send()
  2393. return out, err
  2394. }
  2395. const opRespondActivityTaskCanceled = "RespondActivityTaskCanceled"
  2396. // RespondActivityTaskCanceledRequest generates a "aws/request.Request" representing the
  2397. // client's request for the RespondActivityTaskCanceled operation. The "output" return
  2398. // value can be used to capture response data after the request's "Send" method
  2399. // is called.
  2400. //
  2401. // See RespondActivityTaskCanceled for usage and error information.
  2402. //
  2403. // Creating a request object using this method should be used when you want to inject
  2404. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2405. // access properties on the request object before or after sending the request. If
  2406. // you just want the service response, call the RespondActivityTaskCanceled method directly
  2407. // instead.
  2408. //
  2409. // Note: You must call the "Send" method on the returned request object in order
  2410. // to execute the request.
  2411. //
  2412. // // Example sending a request using the RespondActivityTaskCanceledRequest method.
  2413. // req, resp := client.RespondActivityTaskCanceledRequest(params)
  2414. //
  2415. // err := req.Send()
  2416. // if err == nil { // resp is now filled
  2417. // fmt.Println(resp)
  2418. // }
  2419. //
  2420. func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCanceledInput) (req *request.Request, output *RespondActivityTaskCanceledOutput) {
  2421. op := &request.Operation{
  2422. Name: opRespondActivityTaskCanceled,
  2423. HTTPMethod: "POST",
  2424. HTTPPath: "/",
  2425. }
  2426. if input == nil {
  2427. input = &RespondActivityTaskCanceledInput{}
  2428. }
  2429. req = c.newRequest(op, input, output)
  2430. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2431. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2432. output = &RespondActivityTaskCanceledOutput{}
  2433. req.Data = output
  2434. return
  2435. }
  2436. // RespondActivityTaskCanceled API operation for Amazon Simple Workflow Service.
  2437. //
  2438. // Used by workers to tell the service that the ActivityTask identified by the
  2439. // taskToken was successfully canceled. Additional details can be optionally
  2440. // provided using the details argument.
  2441. //
  2442. // These details (if provided) appear in the ActivityTaskCanceled event added
  2443. // to the workflow history.
  2444. //
  2445. // Only use this operation if the canceled flag of a RecordActivityTaskHeartbeat
  2446. // request returns true and if the activity can be safely undone or abandoned.A task is considered open from the time that it is scheduled until it is
  2447. // closed. Therefore a task is reported as open while a worker is processing
  2448. // it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted,
  2449. // RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed
  2450. // out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types).
  2451. //
  2452. // Access Control
  2453. //
  2454. // You can use IAM policies to control this action's access to Amazon SWF resources
  2455. // as follows:
  2456. //
  2457. // * Use a Resource element with the domain name to limit the action to only
  2458. // specified domains.
  2459. // * Use an Action element to allow or deny permission to call this action.
  2460. //
  2461. // * You cannot use an IAM policy to constrain this action's parameters.
  2462. //
  2463. // If the caller does not have sufficient permissions to invoke the action,
  2464. // or the parameter values fall outside the specified constraints, the action
  2465. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2466. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2467. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2468. //
  2469. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2470. // with awserr.Error's Code and Message methods to get detailed information about
  2471. // the error.
  2472. //
  2473. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2474. // API operation RespondActivityTaskCanceled for usage and error information.
  2475. //
  2476. // Returned Error Codes:
  2477. // * UnknownResourceFault
  2478. // Returned when the named resource cannot be found with in the scope of this
  2479. // operation (region or domain). This could happen if the named resource was
  2480. // never created or is no longer available for this operation.
  2481. //
  2482. // * OperationNotPermittedFault
  2483. // Returned when the caller does not have sufficient permissions to invoke the
  2484. // action.
  2485. //
  2486. func (c *SWF) RespondActivityTaskCanceled(input *RespondActivityTaskCanceledInput) (*RespondActivityTaskCanceledOutput, error) {
  2487. req, out := c.RespondActivityTaskCanceledRequest(input)
  2488. err := req.Send()
  2489. return out, err
  2490. }
  2491. const opRespondActivityTaskCompleted = "RespondActivityTaskCompleted"
  2492. // RespondActivityTaskCompletedRequest generates a "aws/request.Request" representing the
  2493. // client's request for the RespondActivityTaskCompleted operation. The "output" return
  2494. // value can be used to capture response data after the request's "Send" method
  2495. // is called.
  2496. //
  2497. // See RespondActivityTaskCompleted for usage and error information.
  2498. //
  2499. // Creating a request object using this method should be used when you want to inject
  2500. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2501. // access properties on the request object before or after sending the request. If
  2502. // you just want the service response, call the RespondActivityTaskCompleted method directly
  2503. // instead.
  2504. //
  2505. // Note: You must call the "Send" method on the returned request object in order
  2506. // to execute the request.
  2507. //
  2508. // // Example sending a request using the RespondActivityTaskCompletedRequest method.
  2509. // req, resp := client.RespondActivityTaskCompletedRequest(params)
  2510. //
  2511. // err := req.Send()
  2512. // if err == nil { // resp is now filled
  2513. // fmt.Println(resp)
  2514. // }
  2515. //
  2516. func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskCompletedInput) (req *request.Request, output *RespondActivityTaskCompletedOutput) {
  2517. op := &request.Operation{
  2518. Name: opRespondActivityTaskCompleted,
  2519. HTTPMethod: "POST",
  2520. HTTPPath: "/",
  2521. }
  2522. if input == nil {
  2523. input = &RespondActivityTaskCompletedInput{}
  2524. }
  2525. req = c.newRequest(op, input, output)
  2526. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2527. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2528. output = &RespondActivityTaskCompletedOutput{}
  2529. req.Data = output
  2530. return
  2531. }
  2532. // RespondActivityTaskCompleted API operation for Amazon Simple Workflow Service.
  2533. //
  2534. // Used by workers to tell the service that the ActivityTask identified by the
  2535. // taskToken completed successfully with a result (if provided). The result
  2536. // appears in the ActivityTaskCompleted event in the workflow history.
  2537. //
  2538. // If the requested task does not complete successfully, use RespondActivityTaskFailed
  2539. // instead. If the worker finds that the task is canceled through the canceled
  2540. // flag returned by RecordActivityTaskHeartbeat, it should cancel the task,
  2541. // clean up and then call RespondActivityTaskCanceled.A task is considered open from the time that it is scheduled until it is
  2542. // closed. Therefore a task is reported as open while a worker is processing
  2543. // it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted,
  2544. // RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed
  2545. // out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types).
  2546. //
  2547. // Access Control
  2548. //
  2549. // You can use IAM policies to control this action's access to Amazon SWF resources
  2550. // as follows:
  2551. //
  2552. // * Use a Resource element with the domain name to limit the action to only
  2553. // specified domains.
  2554. // * Use an Action element to allow or deny permission to call this action.
  2555. //
  2556. // * You cannot use an IAM policy to constrain this action's parameters.
  2557. //
  2558. // If the caller does not have sufficient permissions to invoke the action,
  2559. // or the parameter values fall outside the specified constraints, the action
  2560. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2561. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2562. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2563. //
  2564. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2565. // with awserr.Error's Code and Message methods to get detailed information about
  2566. // the error.
  2567. //
  2568. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2569. // API operation RespondActivityTaskCompleted for usage and error information.
  2570. //
  2571. // Returned Error Codes:
  2572. // * UnknownResourceFault
  2573. // Returned when the named resource cannot be found with in the scope of this
  2574. // operation (region or domain). This could happen if the named resource was
  2575. // never created or is no longer available for this operation.
  2576. //
  2577. // * OperationNotPermittedFault
  2578. // Returned when the caller does not have sufficient permissions to invoke the
  2579. // action.
  2580. //
  2581. func (c *SWF) RespondActivityTaskCompleted(input *RespondActivityTaskCompletedInput) (*RespondActivityTaskCompletedOutput, error) {
  2582. req, out := c.RespondActivityTaskCompletedRequest(input)
  2583. err := req.Send()
  2584. return out, err
  2585. }
  2586. const opRespondActivityTaskFailed = "RespondActivityTaskFailed"
  2587. // RespondActivityTaskFailedRequest generates a "aws/request.Request" representing the
  2588. // client's request for the RespondActivityTaskFailed operation. The "output" return
  2589. // value can be used to capture response data after the request's "Send" method
  2590. // is called.
  2591. //
  2592. // See RespondActivityTaskFailed for usage and error information.
  2593. //
  2594. // Creating a request object using this method should be used when you want to inject
  2595. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2596. // access properties on the request object before or after sending the request. If
  2597. // you just want the service response, call the RespondActivityTaskFailed method directly
  2598. // instead.
  2599. //
  2600. // Note: You must call the "Send" method on the returned request object in order
  2601. // to execute the request.
  2602. //
  2603. // // Example sending a request using the RespondActivityTaskFailedRequest method.
  2604. // req, resp := client.RespondActivityTaskFailedRequest(params)
  2605. //
  2606. // err := req.Send()
  2607. // if err == nil { // resp is now filled
  2608. // fmt.Println(resp)
  2609. // }
  2610. //
  2611. func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedInput) (req *request.Request, output *RespondActivityTaskFailedOutput) {
  2612. op := &request.Operation{
  2613. Name: opRespondActivityTaskFailed,
  2614. HTTPMethod: "POST",
  2615. HTTPPath: "/",
  2616. }
  2617. if input == nil {
  2618. input = &RespondActivityTaskFailedInput{}
  2619. }
  2620. req = c.newRequest(op, input, output)
  2621. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2622. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2623. output = &RespondActivityTaskFailedOutput{}
  2624. req.Data = output
  2625. return
  2626. }
  2627. // RespondActivityTaskFailed API operation for Amazon Simple Workflow Service.
  2628. //
  2629. // Used by workers to tell the service that the ActivityTask identified by the
  2630. // taskToken has failed with reason (if specified). The reason and details appear
  2631. // in the ActivityTaskFailed event added to the workflow history.
  2632. //
  2633. // A task is considered open from the time that it is scheduled until it is
  2634. // closed. Therefore a task is reported as open while a worker is processing
  2635. // it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted,
  2636. // RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed
  2637. // out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types).
  2638. //
  2639. // Access Control
  2640. //
  2641. // You can use IAM policies to control this action's access to Amazon SWF resources
  2642. // as follows:
  2643. //
  2644. // * Use a Resource element with the domain name to limit the action to only
  2645. // specified domains.
  2646. // * Use an Action element to allow or deny permission to call this action.
  2647. //
  2648. // * You cannot use an IAM policy to constrain this action's parameters.
  2649. //
  2650. // If the caller does not have sufficient permissions to invoke the action,
  2651. // or the parameter values fall outside the specified constraints, the action
  2652. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2653. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2654. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2655. //
  2656. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2657. // with awserr.Error's Code and Message methods to get detailed information about
  2658. // the error.
  2659. //
  2660. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2661. // API operation RespondActivityTaskFailed for usage and error information.
  2662. //
  2663. // Returned Error Codes:
  2664. // * UnknownResourceFault
  2665. // Returned when the named resource cannot be found with in the scope of this
  2666. // operation (region or domain). This could happen if the named resource was
  2667. // never created or is no longer available for this operation.
  2668. //
  2669. // * OperationNotPermittedFault
  2670. // Returned when the caller does not have sufficient permissions to invoke the
  2671. // action.
  2672. //
  2673. func (c *SWF) RespondActivityTaskFailed(input *RespondActivityTaskFailedInput) (*RespondActivityTaskFailedOutput, error) {
  2674. req, out := c.RespondActivityTaskFailedRequest(input)
  2675. err := req.Send()
  2676. return out, err
  2677. }
  2678. const opRespondDecisionTaskCompleted = "RespondDecisionTaskCompleted"
  2679. // RespondDecisionTaskCompletedRequest generates a "aws/request.Request" representing the
  2680. // client's request for the RespondDecisionTaskCompleted operation. The "output" return
  2681. // value can be used to capture response data after the request's "Send" method
  2682. // is called.
  2683. //
  2684. // See RespondDecisionTaskCompleted for usage and error information.
  2685. //
  2686. // Creating a request object using this method should be used when you want to inject
  2687. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2688. // access properties on the request object before or after sending the request. If
  2689. // you just want the service response, call the RespondDecisionTaskCompleted method directly
  2690. // instead.
  2691. //
  2692. // Note: You must call the "Send" method on the returned request object in order
  2693. // to execute the request.
  2694. //
  2695. // // Example sending a request using the RespondDecisionTaskCompletedRequest method.
  2696. // req, resp := client.RespondDecisionTaskCompletedRequest(params)
  2697. //
  2698. // err := req.Send()
  2699. // if err == nil { // resp is now filled
  2700. // fmt.Println(resp)
  2701. // }
  2702. //
  2703. func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskCompletedInput) (req *request.Request, output *RespondDecisionTaskCompletedOutput) {
  2704. op := &request.Operation{
  2705. Name: opRespondDecisionTaskCompleted,
  2706. HTTPMethod: "POST",
  2707. HTTPPath: "/",
  2708. }
  2709. if input == nil {
  2710. input = &RespondDecisionTaskCompletedInput{}
  2711. }
  2712. req = c.newRequest(op, input, output)
  2713. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2714. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2715. output = &RespondDecisionTaskCompletedOutput{}
  2716. req.Data = output
  2717. return
  2718. }
  2719. // RespondDecisionTaskCompleted API operation for Amazon Simple Workflow Service.
  2720. //
  2721. // Used by deciders to tell the service that the DecisionTask identified by
  2722. // the taskToken has successfully completed. The decisions argument specifies
  2723. // the list of decisions made while processing the task.
  2724. //
  2725. // A DecisionTaskCompleted event is added to the workflow history. The executionContext
  2726. // specified is attached to the event in the workflow execution history.
  2727. //
  2728. // Access Control
  2729. //
  2730. // If an IAM policy grants permission to use RespondDecisionTaskCompleted, it
  2731. // can express permissions for the list of decisions in the decisions parameter.
  2732. // Each of the decisions has one or more parameters, much like a regular API
  2733. // call. To allow for policies to be as readable as possible, you can express
  2734. // permissions on decisions as if they were actual API calls, including applying
  2735. // conditions to some parameters. For more information, see Using IAM to Manage
  2736. // Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2737. //
  2738. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2739. // with awserr.Error's Code and Message methods to get detailed information about
  2740. // the error.
  2741. //
  2742. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2743. // API operation RespondDecisionTaskCompleted for usage and error information.
  2744. //
  2745. // Returned Error Codes:
  2746. // * UnknownResourceFault
  2747. // Returned when the named resource cannot be found with in the scope of this
  2748. // operation (region or domain). This could happen if the named resource was
  2749. // never created or is no longer available for this operation.
  2750. //
  2751. // * OperationNotPermittedFault
  2752. // Returned when the caller does not have sufficient permissions to invoke the
  2753. // action.
  2754. //
  2755. func (c *SWF) RespondDecisionTaskCompleted(input *RespondDecisionTaskCompletedInput) (*RespondDecisionTaskCompletedOutput, error) {
  2756. req, out := c.RespondDecisionTaskCompletedRequest(input)
  2757. err := req.Send()
  2758. return out, err
  2759. }
  2760. const opSignalWorkflowExecution = "SignalWorkflowExecution"
  2761. // SignalWorkflowExecutionRequest generates a "aws/request.Request" representing the
  2762. // client's request for the SignalWorkflowExecution operation. The "output" return
  2763. // value can be used to capture response data after the request's "Send" method
  2764. // is called.
  2765. //
  2766. // See SignalWorkflowExecution for usage and error information.
  2767. //
  2768. // Creating a request object using this method should be used when you want to inject
  2769. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2770. // access properties on the request object before or after sending the request. If
  2771. // you just want the service response, call the SignalWorkflowExecution method directly
  2772. // instead.
  2773. //
  2774. // Note: You must call the "Send" method on the returned request object in order
  2775. // to execute the request.
  2776. //
  2777. // // Example sending a request using the SignalWorkflowExecutionRequest method.
  2778. // req, resp := client.SignalWorkflowExecutionRequest(params)
  2779. //
  2780. // err := req.Send()
  2781. // if err == nil { // resp is now filled
  2782. // fmt.Println(resp)
  2783. // }
  2784. //
  2785. func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput) (req *request.Request, output *SignalWorkflowExecutionOutput) {
  2786. op := &request.Operation{
  2787. Name: opSignalWorkflowExecution,
  2788. HTTPMethod: "POST",
  2789. HTTPPath: "/",
  2790. }
  2791. if input == nil {
  2792. input = &SignalWorkflowExecutionInput{}
  2793. }
  2794. req = c.newRequest(op, input, output)
  2795. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2796. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2797. output = &SignalWorkflowExecutionOutput{}
  2798. req.Data = output
  2799. return
  2800. }
  2801. // SignalWorkflowExecution API operation for Amazon Simple Workflow Service.
  2802. //
  2803. // Records a WorkflowExecutionSignaled event in the workflow execution history
  2804. // and creates a decision task for the workflow execution identified by the
  2805. // given domain, workflowId and runId. The event is recorded with the specified
  2806. // user defined signalName and input (if provided).
  2807. //
  2808. // If a runId is not specified, then the WorkflowExecutionSignaled event is
  2809. // recorded in the history of the current open workflow with the matching workflowId
  2810. // in the domain.If the specified workflow execution is not open, this method fails with UnknownResource.Access Control
  2811. //
  2812. // You can use IAM policies to control this action's access to Amazon SWF resources
  2813. // as follows:
  2814. //
  2815. // * Use a Resource element with the domain name to limit the action to only
  2816. // specified domains.
  2817. // * Use an Action element to allow or deny permission to call this action.
  2818. //
  2819. // * You cannot use an IAM policy to constrain this action's parameters.
  2820. //
  2821. // If the caller does not have sufficient permissions to invoke the action,
  2822. // or the parameter values fall outside the specified constraints, the action
  2823. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2824. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2825. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2826. //
  2827. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2828. // with awserr.Error's Code and Message methods to get detailed information about
  2829. // the error.
  2830. //
  2831. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2832. // API operation SignalWorkflowExecution for usage and error information.
  2833. //
  2834. // Returned Error Codes:
  2835. // * UnknownResourceFault
  2836. // Returned when the named resource cannot be found with in the scope of this
  2837. // operation (region or domain). This could happen if the named resource was
  2838. // never created or is no longer available for this operation.
  2839. //
  2840. // * OperationNotPermittedFault
  2841. // Returned when the caller does not have sufficient permissions to invoke the
  2842. // action.
  2843. //
  2844. func (c *SWF) SignalWorkflowExecution(input *SignalWorkflowExecutionInput) (*SignalWorkflowExecutionOutput, error) {
  2845. req, out := c.SignalWorkflowExecutionRequest(input)
  2846. err := req.Send()
  2847. return out, err
  2848. }
  2849. const opStartWorkflowExecution = "StartWorkflowExecution"
  2850. // StartWorkflowExecutionRequest generates a "aws/request.Request" representing the
  2851. // client's request for the StartWorkflowExecution operation. The "output" return
  2852. // value can be used to capture response data after the request's "Send" method
  2853. // is called.
  2854. //
  2855. // See StartWorkflowExecution for usage and error information.
  2856. //
  2857. // Creating a request object using this method should be used when you want to inject
  2858. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2859. // access properties on the request object before or after sending the request. If
  2860. // you just want the service response, call the StartWorkflowExecution method directly
  2861. // instead.
  2862. //
  2863. // Note: You must call the "Send" method on the returned request object in order
  2864. // to execute the request.
  2865. //
  2866. // // Example sending a request using the StartWorkflowExecutionRequest method.
  2867. // req, resp := client.StartWorkflowExecutionRequest(params)
  2868. //
  2869. // err := req.Send()
  2870. // if err == nil { // resp is now filled
  2871. // fmt.Println(resp)
  2872. // }
  2873. //
  2874. func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) (req *request.Request, output *StartWorkflowExecutionOutput) {
  2875. op := &request.Operation{
  2876. Name: opStartWorkflowExecution,
  2877. HTTPMethod: "POST",
  2878. HTTPPath: "/",
  2879. }
  2880. if input == nil {
  2881. input = &StartWorkflowExecutionInput{}
  2882. }
  2883. req = c.newRequest(op, input, output)
  2884. output = &StartWorkflowExecutionOutput{}
  2885. req.Data = output
  2886. return
  2887. }
  2888. // StartWorkflowExecution API operation for Amazon Simple Workflow Service.
  2889. //
  2890. // Starts an execution of the workflow type in the specified domain using the
  2891. // provided workflowId and input data.
  2892. //
  2893. // This action returns the newly started workflow execution.
  2894. //
  2895. // Access Control
  2896. //
  2897. // You can use IAM policies to control this action's access to Amazon SWF resources
  2898. // as follows:
  2899. //
  2900. // * Use a Resource element with the domain name to limit the action to only
  2901. // specified domains.
  2902. // * Use an Action element to allow or deny permission to call this action.
  2903. //
  2904. // * Constrain the following parameters by using a Condition element with
  2905. // the appropriate keys. tagList.member.0: The key is swf:tagList.member.0.
  2906. //
  2907. // tagList.member.1: The key is swf:tagList.member.1.
  2908. // tagList.member.2: The key is swf:tagList.member.2.
  2909. // tagList.member.3: The key is swf:tagList.member.3.
  2910. // tagList.member.4: The key is swf:tagList.member.4.
  2911. // taskList: String constraint. The key is swf:taskList.name.
  2912. // workflowType.name: String constraint. The key is swf:workflowType.name.
  2913. // workflowType.version: String constraint. The key is swf:workflowType.version.
  2914. //
  2915. // If the caller does not have sufficient permissions to invoke the action,
  2916. // or the parameter values fall outside the specified constraints, the action
  2917. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2918. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2919. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2920. //
  2921. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2922. // with awserr.Error's Code and Message methods to get detailed information about
  2923. // the error.
  2924. //
  2925. // See the AWS API reference guide for Amazon Simple Workflow Service's
  2926. // API operation StartWorkflowExecution for usage and error information.
  2927. //
  2928. // Returned Error Codes:
  2929. // * UnknownResourceFault
  2930. // Returned when the named resource cannot be found with in the scope of this
  2931. // operation (region or domain). This could happen if the named resource was
  2932. // never created or is no longer available for this operation.
  2933. //
  2934. // * TypeDeprecatedFault
  2935. // Returned when the specified activity or workflow type was already deprecated.
  2936. //
  2937. // * WorkflowExecutionAlreadyStartedFault
  2938. // Returned by StartWorkflowExecution when an open execution with the same workflowId
  2939. // is already running in the specified domain.
  2940. //
  2941. // * LimitExceededFault
  2942. // Returned by any operation if a system imposed limitation has been reached.
  2943. // To address this fault you should either clean up unused resources or increase
  2944. // the limit by contacting AWS.
  2945. //
  2946. // * OperationNotPermittedFault
  2947. // Returned when the caller does not have sufficient permissions to invoke the
  2948. // action.
  2949. //
  2950. // * DefaultUndefinedFault
  2951. //
  2952. func (c *SWF) StartWorkflowExecution(input *StartWorkflowExecutionInput) (*StartWorkflowExecutionOutput, error) {
  2953. req, out := c.StartWorkflowExecutionRequest(input)
  2954. err := req.Send()
  2955. return out, err
  2956. }
  2957. const opTerminateWorkflowExecution = "TerminateWorkflowExecution"
  2958. // TerminateWorkflowExecutionRequest generates a "aws/request.Request" representing the
  2959. // client's request for the TerminateWorkflowExecution operation. The "output" return
  2960. // value can be used to capture response data after the request's "Send" method
  2961. // is called.
  2962. //
  2963. // See TerminateWorkflowExecution for usage and error information.
  2964. //
  2965. // Creating a request object using this method should be used when you want to inject
  2966. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2967. // access properties on the request object before or after sending the request. If
  2968. // you just want the service response, call the TerminateWorkflowExecution method directly
  2969. // instead.
  2970. //
  2971. // Note: You must call the "Send" method on the returned request object in order
  2972. // to execute the request.
  2973. //
  2974. // // Example sending a request using the TerminateWorkflowExecutionRequest method.
  2975. // req, resp := client.TerminateWorkflowExecutionRequest(params)
  2976. //
  2977. // err := req.Send()
  2978. // if err == nil { // resp is now filled
  2979. // fmt.Println(resp)
  2980. // }
  2981. //
  2982. func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutionInput) (req *request.Request, output *TerminateWorkflowExecutionOutput) {
  2983. op := &request.Operation{
  2984. Name: opTerminateWorkflowExecution,
  2985. HTTPMethod: "POST",
  2986. HTTPPath: "/",
  2987. }
  2988. if input == nil {
  2989. input = &TerminateWorkflowExecutionInput{}
  2990. }
  2991. req = c.newRequest(op, input, output)
  2992. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2993. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2994. output = &TerminateWorkflowExecutionOutput{}
  2995. req.Data = output
  2996. return
  2997. }
  2998. // TerminateWorkflowExecution API operation for Amazon Simple Workflow Service.
  2999. //
  3000. // Records a WorkflowExecutionTerminated event and forces closure of the workflow
  3001. // execution identified by the given domain, runId, and workflowId. The child
  3002. // policy, registered with the workflow type or specified when starting this
  3003. // execution, is applied to any open child workflow executions of this workflow
  3004. // execution.
  3005. //
  3006. // If the identified workflow execution was in progress, it is terminated immediately.If a runId is not specified, then the WorkflowExecutionTerminated event is
  3007. // recorded in the history of the current open workflow with the matching workflowId
  3008. // in the domain.You should consider using RequestCancelWorkflowExecution action instead because
  3009. // it allows the workflow to gracefully close while TerminateWorkflowExecution
  3010. // does not.Access Control
  3011. //
  3012. // You can use IAM policies to control this action's access to Amazon SWF resources
  3013. // as follows:
  3014. //
  3015. // * Use a Resource element with the domain name to limit the action to only
  3016. // specified domains.
  3017. // * Use an Action element to allow or deny permission to call this action.
  3018. //
  3019. // * You cannot use an IAM policy to constrain this action's parameters.
  3020. //
  3021. // If the caller does not have sufficient permissions to invoke the action,
  3022. // or the parameter values fall outside the specified constraints, the action
  3023. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  3024. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  3025. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3026. //
  3027. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3028. // with awserr.Error's Code and Message methods to get detailed information about
  3029. // the error.
  3030. //
  3031. // See the AWS API reference guide for Amazon Simple Workflow Service's
  3032. // API operation TerminateWorkflowExecution for usage and error information.
  3033. //
  3034. // Returned Error Codes:
  3035. // * UnknownResourceFault
  3036. // Returned when the named resource cannot be found with in the scope of this
  3037. // operation (region or domain). This could happen if the named resource was
  3038. // never created or is no longer available for this operation.
  3039. //
  3040. // * OperationNotPermittedFault
  3041. // Returned when the caller does not have sufficient permissions to invoke the
  3042. // action.
  3043. //
  3044. func (c *SWF) TerminateWorkflowExecution(input *TerminateWorkflowExecutionInput) (*TerminateWorkflowExecutionOutput, error) {
  3045. req, out := c.TerminateWorkflowExecutionRequest(input)
  3046. err := req.Send()
  3047. return out, err
  3048. }
  3049. // Provides details of the ActivityTaskCancelRequested event.
  3050. type ActivityTaskCancelRequestedEventAttributes struct {
  3051. _ struct{} `type:"structure"`
  3052. // The unique ID of the task.
  3053. //
  3054. // ActivityId is a required field
  3055. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  3056. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3057. // that resulted in the RequestCancelActivityTask decision for this cancellation
  3058. // request. This information can be useful for diagnosing problems by tracing
  3059. // back the chain of events leading up to this event.
  3060. //
  3061. // DecisionTaskCompletedEventId is a required field
  3062. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3063. }
  3064. // String returns the string representation
  3065. func (s ActivityTaskCancelRequestedEventAttributes) String() string {
  3066. return awsutil.Prettify(s)
  3067. }
  3068. // GoString returns the string representation
  3069. func (s ActivityTaskCancelRequestedEventAttributes) GoString() string {
  3070. return s.String()
  3071. }
  3072. // Provides details of the ActivityTaskCanceled event.
  3073. type ActivityTaskCanceledEventAttributes struct {
  3074. _ struct{} `type:"structure"`
  3075. // Details of the cancellation (if any).
  3076. Details *string `locationName:"details" type:"string"`
  3077. // If set, contains the ID of the last ActivityTaskCancelRequested event recorded
  3078. // for this activity task. This information can be useful for diagnosing problems
  3079. // by tracing back the chain of events leading up to this event.
  3080. LatestCancelRequestedEventId *int64 `locationName:"latestCancelRequestedEventId" type:"long"`
  3081. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  3082. // task was scheduled. This information can be useful for diagnosing problems
  3083. // by tracing back the chain of events leading up to this event.
  3084. //
  3085. // ScheduledEventId is a required field
  3086. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3087. // The ID of the ActivityTaskStarted event recorded when this activity task
  3088. // was started. This information can be useful for diagnosing problems by tracing
  3089. // back the chain of events leading up to this event.
  3090. //
  3091. // StartedEventId is a required field
  3092. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3093. }
  3094. // String returns the string representation
  3095. func (s ActivityTaskCanceledEventAttributes) String() string {
  3096. return awsutil.Prettify(s)
  3097. }
  3098. // GoString returns the string representation
  3099. func (s ActivityTaskCanceledEventAttributes) GoString() string {
  3100. return s.String()
  3101. }
  3102. // Provides details of the ActivityTaskCompleted event.
  3103. type ActivityTaskCompletedEventAttributes struct {
  3104. _ struct{} `type:"structure"`
  3105. // The results of the activity task (if any).
  3106. Result *string `locationName:"result" type:"string"`
  3107. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  3108. // task was scheduled. This information can be useful for diagnosing problems
  3109. // by tracing back the chain of events leading up to this event.
  3110. //
  3111. // ScheduledEventId is a required field
  3112. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3113. // The ID of the ActivityTaskStarted event recorded when this activity task
  3114. // was started. This information can be useful for diagnosing problems by tracing
  3115. // back the chain of events leading up to this event.
  3116. //
  3117. // StartedEventId is a required field
  3118. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3119. }
  3120. // String returns the string representation
  3121. func (s ActivityTaskCompletedEventAttributes) String() string {
  3122. return awsutil.Prettify(s)
  3123. }
  3124. // GoString returns the string representation
  3125. func (s ActivityTaskCompletedEventAttributes) GoString() string {
  3126. return s.String()
  3127. }
  3128. // Provides details of the ActivityTaskFailed event.
  3129. type ActivityTaskFailedEventAttributes struct {
  3130. _ struct{} `type:"structure"`
  3131. // The details of the failure (if any).
  3132. Details *string `locationName:"details" type:"string"`
  3133. // The reason provided for the failure (if any).
  3134. Reason *string `locationName:"reason" type:"string"`
  3135. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  3136. // task was scheduled. This information can be useful for diagnosing problems
  3137. // by tracing back the chain of events leading up to this event.
  3138. //
  3139. // ScheduledEventId is a required field
  3140. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3141. // The ID of the ActivityTaskStarted event recorded when this activity task
  3142. // was started. This information can be useful for diagnosing problems by tracing
  3143. // back the chain of events leading up to this event.
  3144. //
  3145. // StartedEventId is a required field
  3146. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3147. }
  3148. // String returns the string representation
  3149. func (s ActivityTaskFailedEventAttributes) String() string {
  3150. return awsutil.Prettify(s)
  3151. }
  3152. // GoString returns the string representation
  3153. func (s ActivityTaskFailedEventAttributes) GoString() string {
  3154. return s.String()
  3155. }
  3156. // Provides details of the ActivityTaskScheduled event.
  3157. type ActivityTaskScheduledEventAttributes struct {
  3158. _ struct{} `type:"structure"`
  3159. // The unique ID of the activity task.
  3160. //
  3161. // ActivityId is a required field
  3162. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  3163. // The type of the activity task.
  3164. //
  3165. // ActivityType is a required field
  3166. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  3167. // Optional. Data attached to the event that can be used by the decider in subsequent
  3168. // workflow tasks. This data is not sent to the activity.
  3169. Control *string `locationName:"control" type:"string"`
  3170. // The ID of the DecisionTaskCompleted event corresponding to the decision that
  3171. // resulted in the scheduling of this activity task. This information can be
  3172. // useful for diagnosing problems by tracing back the chain of events leading
  3173. // up to this event.
  3174. //
  3175. // DecisionTaskCompletedEventId is a required field
  3176. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3177. // The maximum time before which the worker processing this task must report
  3178. // progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded,
  3179. // the activity task is automatically timed out. If the worker subsequently
  3180. // attempts to record a heartbeat or return a result, it will be ignored.
  3181. HeartbeatTimeout *string `locationName:"heartbeatTimeout" type:"string"`
  3182. // The input provided to the activity task.
  3183. Input *string `locationName:"input" type:"string"`
  3184. // The maximum amount of time for this activity task.
  3185. ScheduleToCloseTimeout *string `locationName:"scheduleToCloseTimeout" type:"string"`
  3186. // The maximum amount of time the activity task can wait to be assigned to a
  3187. // worker.
  3188. ScheduleToStartTimeout *string `locationName:"scheduleToStartTimeout" type:"string"`
  3189. // The maximum amount of time a worker may take to process the activity task.
  3190. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  3191. // The task list in which the activity task has been scheduled.
  3192. //
  3193. // TaskList is a required field
  3194. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  3195. // Optional. The priority to assign to the scheduled activity task. If set,
  3196. // this will override any default priority value that was assigned when the
  3197. // activity type was registered.
  3198. //
  3199. // Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  3200. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  3201. //
  3202. // For more information about setting task priority, see Setting Task Priority
  3203. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  3204. // in the Amazon Simple Workflow Developer Guide.
  3205. TaskPriority *string `locationName:"taskPriority" type:"string"`
  3206. }
  3207. // String returns the string representation
  3208. func (s ActivityTaskScheduledEventAttributes) String() string {
  3209. return awsutil.Prettify(s)
  3210. }
  3211. // GoString returns the string representation
  3212. func (s ActivityTaskScheduledEventAttributes) GoString() string {
  3213. return s.String()
  3214. }
  3215. // Provides details of the ActivityTaskStarted event.
  3216. type ActivityTaskStartedEventAttributes struct {
  3217. _ struct{} `type:"structure"`
  3218. // Identity of the worker that was assigned this task. This aids diagnostics
  3219. // when problems arise. The form of this identity is user defined.
  3220. Identity *string `locationName:"identity" type:"string"`
  3221. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  3222. // task was scheduled. This information can be useful for diagnosing problems
  3223. // by tracing back the chain of events leading up to this event.
  3224. //
  3225. // ScheduledEventId is a required field
  3226. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3227. }
  3228. // String returns the string representation
  3229. func (s ActivityTaskStartedEventAttributes) String() string {
  3230. return awsutil.Prettify(s)
  3231. }
  3232. // GoString returns the string representation
  3233. func (s ActivityTaskStartedEventAttributes) GoString() string {
  3234. return s.String()
  3235. }
  3236. // Provides details of the ActivityTaskTimedOut event.
  3237. type ActivityTaskTimedOutEventAttributes struct {
  3238. _ struct{} `type:"structure"`
  3239. // Contains the content of the details parameter for the last call made by the
  3240. // activity to RecordActivityTaskHeartbeat.
  3241. Details *string `locationName:"details" type:"string"`
  3242. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  3243. // task was scheduled. This information can be useful for diagnosing problems
  3244. // by tracing back the chain of events leading up to this event.
  3245. //
  3246. // ScheduledEventId is a required field
  3247. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3248. // The ID of the ActivityTaskStarted event recorded when this activity task
  3249. // was started. This information can be useful for diagnosing problems by tracing
  3250. // back the chain of events leading up to this event.
  3251. //
  3252. // StartedEventId is a required field
  3253. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3254. // The type of the timeout that caused this event.
  3255. //
  3256. // TimeoutType is a required field
  3257. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"ActivityTaskTimeoutType"`
  3258. }
  3259. // String returns the string representation
  3260. func (s ActivityTaskTimedOutEventAttributes) String() string {
  3261. return awsutil.Prettify(s)
  3262. }
  3263. // GoString returns the string representation
  3264. func (s ActivityTaskTimedOutEventAttributes) GoString() string {
  3265. return s.String()
  3266. }
  3267. // Represents an activity type.
  3268. type ActivityType struct {
  3269. _ struct{} `type:"structure"`
  3270. // The name of this activity.
  3271. //
  3272. // The combination of activity type name and version must be unique within a
  3273. // domain.
  3274. //
  3275. // Name is a required field
  3276. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3277. // The version of this activity.
  3278. //
  3279. // The combination of activity type name and version must be unique with in
  3280. // a domain.
  3281. //
  3282. // Version is a required field
  3283. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  3284. }
  3285. // String returns the string representation
  3286. func (s ActivityType) String() string {
  3287. return awsutil.Prettify(s)
  3288. }
  3289. // GoString returns the string representation
  3290. func (s ActivityType) GoString() string {
  3291. return s.String()
  3292. }
  3293. // Validate inspects the fields of the type to determine if they are valid.
  3294. func (s *ActivityType) Validate() error {
  3295. invalidParams := request.ErrInvalidParams{Context: "ActivityType"}
  3296. if s.Name == nil {
  3297. invalidParams.Add(request.NewErrParamRequired("Name"))
  3298. }
  3299. if s.Name != nil && len(*s.Name) < 1 {
  3300. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3301. }
  3302. if s.Version == nil {
  3303. invalidParams.Add(request.NewErrParamRequired("Version"))
  3304. }
  3305. if s.Version != nil && len(*s.Version) < 1 {
  3306. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  3307. }
  3308. if invalidParams.Len() > 0 {
  3309. return invalidParams
  3310. }
  3311. return nil
  3312. }
  3313. // Configuration settings registered with the activity type.
  3314. type ActivityTypeConfiguration struct {
  3315. _ struct{} `type:"structure"`
  3316. // Optional. The default maximum time, in seconds, before which a worker processing
  3317. // a task must report progress by calling RecordActivityTaskHeartbeat.
  3318. //
  3319. // You can specify this value only when registering an activity type. The registered
  3320. // default value can be overridden when you schedule a task through the ScheduleActivityTask
  3321. // decision. If the activity worker subsequently attempts to record a heartbeat
  3322. // or returns a result, the activity worker receives an UnknownResource fault.
  3323. // In this case, Amazon SWF no longer considers the activity task to be valid;
  3324. // the activity worker should clean up the activity task.
  3325. //
  3326. // The duration is specified in seconds; an integer greater than or equal to
  3327. // 0. The value "NONE" can be used to specify unlimited duration.
  3328. DefaultTaskHeartbeatTimeout *string `locationName:"defaultTaskHeartbeatTimeout" type:"string"`
  3329. // Optional. The default task list specified for this activity type at registration.
  3330. // This default is used if a task list is not provided when a task is scheduled
  3331. // through the ScheduleActivityTask decision. You can override the default registered
  3332. // task list when scheduling a task through the ScheduleActivityTask decision.
  3333. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  3334. // Optional. The default task priority for tasks of this activity type, specified
  3335. // at registration. If not set, then "0" will be used as the default priority.
  3336. // This default can be overridden when scheduling an activity task.
  3337. //
  3338. // Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  3339. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  3340. //
  3341. // For more information about setting task priority, see Setting Task Priority
  3342. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  3343. // in the Amazon Simple Workflow Developer Guide.
  3344. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  3345. // Optional. The default maximum duration, specified when registering the activity
  3346. // type, for tasks of this activity type. You can override this default when
  3347. // scheduling a task through the ScheduleActivityTask decision.
  3348. //
  3349. // The duration is specified in seconds; an integer greater than or equal to
  3350. // 0. The value "NONE" can be used to specify unlimited duration.
  3351. DefaultTaskScheduleToCloseTimeout *string `locationName:"defaultTaskScheduleToCloseTimeout" type:"string"`
  3352. // Optional. The default maximum duration, specified when registering the activity
  3353. // type, that a task of an activity type can wait before being assigned to a
  3354. // worker. You can override this default when scheduling a task through the
  3355. // ScheduleActivityTask decision.
  3356. //
  3357. // The duration is specified in seconds; an integer greater than or equal to
  3358. // 0. The value "NONE" can be used to specify unlimited duration.
  3359. DefaultTaskScheduleToStartTimeout *string `locationName:"defaultTaskScheduleToStartTimeout" type:"string"`
  3360. // Optional. The default maximum duration for tasks of an activity type specified
  3361. // when registering the activity type. You can override this default when scheduling
  3362. // a task through the ScheduleActivityTask decision.
  3363. //
  3364. // The duration is specified in seconds; an integer greater than or equal to
  3365. // 0. The value "NONE" can be used to specify unlimited duration.
  3366. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  3367. }
  3368. // String returns the string representation
  3369. func (s ActivityTypeConfiguration) String() string {
  3370. return awsutil.Prettify(s)
  3371. }
  3372. // GoString returns the string representation
  3373. func (s ActivityTypeConfiguration) GoString() string {
  3374. return s.String()
  3375. }
  3376. // Detailed information about an activity type.
  3377. type ActivityTypeInfo struct {
  3378. _ struct{} `type:"structure"`
  3379. // The ActivityType type structure representing the activity type.
  3380. //
  3381. // ActivityType is a required field
  3382. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  3383. // The date and time this activity type was created through RegisterActivityType.
  3384. //
  3385. // CreationDate is a required field
  3386. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
  3387. // If DEPRECATED, the date and time DeprecateActivityType was called.
  3388. DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
  3389. // The description of the activity type provided in RegisterActivityType.
  3390. Description *string `locationName:"description" type:"string"`
  3391. // The current status of the activity type.
  3392. //
  3393. // Status is a required field
  3394. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"`
  3395. }
  3396. // String returns the string representation
  3397. func (s ActivityTypeInfo) String() string {
  3398. return awsutil.Prettify(s)
  3399. }
  3400. // GoString returns the string representation
  3401. func (s ActivityTypeInfo) GoString() string {
  3402. return s.String()
  3403. }
  3404. // Provides details of the CancelTimer decision.
  3405. //
  3406. // Access Control
  3407. //
  3408. // You can use IAM policies to control this decision's access to Amazon SWF
  3409. // resources as follows:
  3410. //
  3411. // * Use a Resource element with the domain name to limit the action to only
  3412. // specified domains.
  3413. // * Use an Action element to allow or deny permission to call this action.
  3414. //
  3415. // * You cannot use an IAM policy to constrain this action's parameters.
  3416. //
  3417. // If the caller does not have sufficient permissions to invoke the action,
  3418. // or the parameter values fall outside the specified constraints, the action
  3419. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  3420. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  3421. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3422. type CancelTimerDecisionAttributes struct {
  3423. _ struct{} `type:"structure"`
  3424. // Required. The unique ID of the timer to cancel.
  3425. //
  3426. // TimerId is a required field
  3427. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  3428. }
  3429. // String returns the string representation
  3430. func (s CancelTimerDecisionAttributes) String() string {
  3431. return awsutil.Prettify(s)
  3432. }
  3433. // GoString returns the string representation
  3434. func (s CancelTimerDecisionAttributes) GoString() string {
  3435. return s.String()
  3436. }
  3437. // Validate inspects the fields of the type to determine if they are valid.
  3438. func (s *CancelTimerDecisionAttributes) Validate() error {
  3439. invalidParams := request.ErrInvalidParams{Context: "CancelTimerDecisionAttributes"}
  3440. if s.TimerId == nil {
  3441. invalidParams.Add(request.NewErrParamRequired("TimerId"))
  3442. }
  3443. if s.TimerId != nil && len(*s.TimerId) < 1 {
  3444. invalidParams.Add(request.NewErrParamMinLen("TimerId", 1))
  3445. }
  3446. if invalidParams.Len() > 0 {
  3447. return invalidParams
  3448. }
  3449. return nil
  3450. }
  3451. // Provides details of the CancelTimerFailed event.
  3452. type CancelTimerFailedEventAttributes struct {
  3453. _ struct{} `type:"structure"`
  3454. // The cause of the failure. This information is generated by the system and
  3455. // can be useful for diagnostic purposes.
  3456. //
  3457. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  3458. // lacked sufficient permissions. For details and example IAM policies, see
  3459. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3460. //
  3461. // Cause is a required field
  3462. Cause *string `locationName:"cause" type:"string" required:"true" enum:"CancelTimerFailedCause"`
  3463. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3464. // that resulted in the CancelTimer decision to cancel this timer. This information
  3465. // can be useful for diagnosing problems by tracing back the chain of events
  3466. // leading up to this event.
  3467. //
  3468. // DecisionTaskCompletedEventId is a required field
  3469. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3470. // The timerId provided in the CancelTimer decision that failed.
  3471. //
  3472. // TimerId is a required field
  3473. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  3474. }
  3475. // String returns the string representation
  3476. func (s CancelTimerFailedEventAttributes) String() string {
  3477. return awsutil.Prettify(s)
  3478. }
  3479. // GoString returns the string representation
  3480. func (s CancelTimerFailedEventAttributes) GoString() string {
  3481. return s.String()
  3482. }
  3483. // Provides details of the CancelWorkflowExecution decision.
  3484. //
  3485. // Access Control
  3486. //
  3487. // You can use IAM policies to control this decision's access to Amazon SWF
  3488. // resources as follows:
  3489. //
  3490. // * Use a Resource element with the domain name to limit the action to only
  3491. // specified domains.
  3492. // * Use an Action element to allow or deny permission to call this action.
  3493. //
  3494. // * You cannot use an IAM policy to constrain this action's parameters.
  3495. //
  3496. // If the caller does not have sufficient permissions to invoke the action,
  3497. // or the parameter values fall outside the specified constraints, the action
  3498. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  3499. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  3500. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3501. type CancelWorkflowExecutionDecisionAttributes struct {
  3502. _ struct{} `type:"structure"`
  3503. // Optional. details of the cancellation.
  3504. Details *string `locationName:"details" type:"string"`
  3505. }
  3506. // String returns the string representation
  3507. func (s CancelWorkflowExecutionDecisionAttributes) String() string {
  3508. return awsutil.Prettify(s)
  3509. }
  3510. // GoString returns the string representation
  3511. func (s CancelWorkflowExecutionDecisionAttributes) GoString() string {
  3512. return s.String()
  3513. }
  3514. // Provides details of the CancelWorkflowExecutionFailed event.
  3515. type CancelWorkflowExecutionFailedEventAttributes struct {
  3516. _ struct{} `type:"structure"`
  3517. // The cause of the failure. This information is generated by the system and
  3518. // can be useful for diagnostic purposes.
  3519. //
  3520. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  3521. // lacked sufficient permissions. For details and example IAM policies, see
  3522. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3523. //
  3524. // Cause is a required field
  3525. Cause *string `locationName:"cause" type:"string" required:"true" enum:"CancelWorkflowExecutionFailedCause"`
  3526. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3527. // that resulted in the CancelWorkflowExecution decision for this cancellation
  3528. // request. This information can be useful for diagnosing problems by tracing
  3529. // back the chain of events leading up to this event.
  3530. //
  3531. // DecisionTaskCompletedEventId is a required field
  3532. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3533. }
  3534. // String returns the string representation
  3535. func (s CancelWorkflowExecutionFailedEventAttributes) String() string {
  3536. return awsutil.Prettify(s)
  3537. }
  3538. // GoString returns the string representation
  3539. func (s CancelWorkflowExecutionFailedEventAttributes) GoString() string {
  3540. return s.String()
  3541. }
  3542. // Provide details of the ChildWorkflowExecutionCanceled event.
  3543. type ChildWorkflowExecutionCanceledEventAttributes struct {
  3544. _ struct{} `type:"structure"`
  3545. // Details of the cancellation (if provided).
  3546. Details *string `locationName:"details" type:"string"`
  3547. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  3548. // the StartChildWorkflowExecution decision to start this child workflow execution.
  3549. // This information can be useful for diagnosing problems by tracing back the
  3550. // chain of events leading up to this event.
  3551. //
  3552. // InitiatedEventId is a required field
  3553. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3554. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  3555. // workflow execution was started. This information can be useful for diagnosing
  3556. // problems by tracing back the chain of events leading up to this event.
  3557. //
  3558. // StartedEventId is a required field
  3559. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3560. // The child workflow execution that was canceled.
  3561. //
  3562. // WorkflowExecution is a required field
  3563. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3564. // The type of the child workflow execution.
  3565. //
  3566. // WorkflowType is a required field
  3567. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  3568. }
  3569. // String returns the string representation
  3570. func (s ChildWorkflowExecutionCanceledEventAttributes) String() string {
  3571. return awsutil.Prettify(s)
  3572. }
  3573. // GoString returns the string representation
  3574. func (s ChildWorkflowExecutionCanceledEventAttributes) GoString() string {
  3575. return s.String()
  3576. }
  3577. // Provides details of the ChildWorkflowExecutionCompleted event.
  3578. type ChildWorkflowExecutionCompletedEventAttributes struct {
  3579. _ struct{} `type:"structure"`
  3580. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  3581. // the StartChildWorkflowExecution decision to start this child workflow execution.
  3582. // This information can be useful for diagnosing problems by tracing back the
  3583. // chain of events leading up to this event.
  3584. //
  3585. // InitiatedEventId is a required field
  3586. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3587. // The result of the child workflow execution (if any).
  3588. Result *string `locationName:"result" type:"string"`
  3589. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  3590. // workflow execution was started. This information can be useful for diagnosing
  3591. // problems by tracing back the chain of events leading up to this event.
  3592. //
  3593. // StartedEventId is a required field
  3594. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3595. // The child workflow execution that was completed.
  3596. //
  3597. // WorkflowExecution is a required field
  3598. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3599. // The type of the child workflow execution.
  3600. //
  3601. // WorkflowType is a required field
  3602. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  3603. }
  3604. // String returns the string representation
  3605. func (s ChildWorkflowExecutionCompletedEventAttributes) String() string {
  3606. return awsutil.Prettify(s)
  3607. }
  3608. // GoString returns the string representation
  3609. func (s ChildWorkflowExecutionCompletedEventAttributes) GoString() string {
  3610. return s.String()
  3611. }
  3612. // Provides details of the ChildWorkflowExecutionFailed event.
  3613. type ChildWorkflowExecutionFailedEventAttributes struct {
  3614. _ struct{} `type:"structure"`
  3615. // The details of the failure (if provided).
  3616. Details *string `locationName:"details" type:"string"`
  3617. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  3618. // the StartChildWorkflowExecution decision to start this child workflow execution.
  3619. // This information can be useful for diagnosing problems by tracing back the
  3620. // chain of events leading up to this event.
  3621. //
  3622. // InitiatedEventId is a required field
  3623. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3624. // The reason for the failure (if provided).
  3625. Reason *string `locationName:"reason" type:"string"`
  3626. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  3627. // workflow execution was started. This information can be useful for diagnosing
  3628. // problems by tracing back the chain of events leading up to this event.
  3629. //
  3630. // StartedEventId is a required field
  3631. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3632. // The child workflow execution that failed.
  3633. //
  3634. // WorkflowExecution is a required field
  3635. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3636. // The type of the child workflow execution.
  3637. //
  3638. // WorkflowType is a required field
  3639. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  3640. }
  3641. // String returns the string representation
  3642. func (s ChildWorkflowExecutionFailedEventAttributes) String() string {
  3643. return awsutil.Prettify(s)
  3644. }
  3645. // GoString returns the string representation
  3646. func (s ChildWorkflowExecutionFailedEventAttributes) GoString() string {
  3647. return s.String()
  3648. }
  3649. // Provides details of the ChildWorkflowExecutionStarted event.
  3650. type ChildWorkflowExecutionStartedEventAttributes struct {
  3651. _ struct{} `type:"structure"`
  3652. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  3653. // the StartChildWorkflowExecution decision to start this child workflow execution.
  3654. // This information can be useful for diagnosing problems by tracing back the
  3655. // chain of events leading up to this event.
  3656. //
  3657. // InitiatedEventId is a required field
  3658. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3659. // The child workflow execution that was started.
  3660. //
  3661. // WorkflowExecution is a required field
  3662. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3663. // The type of the child workflow execution.
  3664. //
  3665. // WorkflowType is a required field
  3666. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  3667. }
  3668. // String returns the string representation
  3669. func (s ChildWorkflowExecutionStartedEventAttributes) String() string {
  3670. return awsutil.Prettify(s)
  3671. }
  3672. // GoString returns the string representation
  3673. func (s ChildWorkflowExecutionStartedEventAttributes) GoString() string {
  3674. return s.String()
  3675. }
  3676. // Provides details of the ChildWorkflowExecutionTerminated event.
  3677. type ChildWorkflowExecutionTerminatedEventAttributes struct {
  3678. _ struct{} `type:"structure"`
  3679. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  3680. // the StartChildWorkflowExecution decision to start this child workflow execution.
  3681. // This information can be useful for diagnosing problems by tracing back the
  3682. // chain of events leading up to this event.
  3683. //
  3684. // InitiatedEventId is a required field
  3685. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3686. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  3687. // workflow execution was started. This information can be useful for diagnosing
  3688. // problems by tracing back the chain of events leading up to this event.
  3689. //
  3690. // StartedEventId is a required field
  3691. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3692. // The child workflow execution that was terminated.
  3693. //
  3694. // WorkflowExecution is a required field
  3695. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3696. // The type of the child workflow execution.
  3697. //
  3698. // WorkflowType is a required field
  3699. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  3700. }
  3701. // String returns the string representation
  3702. func (s ChildWorkflowExecutionTerminatedEventAttributes) String() string {
  3703. return awsutil.Prettify(s)
  3704. }
  3705. // GoString returns the string representation
  3706. func (s ChildWorkflowExecutionTerminatedEventAttributes) GoString() string {
  3707. return s.String()
  3708. }
  3709. // Provides details of the ChildWorkflowExecutionTimedOut event.
  3710. type ChildWorkflowExecutionTimedOutEventAttributes struct {
  3711. _ struct{} `type:"structure"`
  3712. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  3713. // the StartChildWorkflowExecution decision to start this child workflow execution.
  3714. // This information can be useful for diagnosing problems by tracing back the
  3715. // chain of events leading up to this event.
  3716. //
  3717. // InitiatedEventId is a required field
  3718. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3719. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  3720. // workflow execution was started. This information can be useful for diagnosing
  3721. // problems by tracing back the chain of events leading up to this event.
  3722. //
  3723. // StartedEventId is a required field
  3724. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3725. // The type of the timeout that caused the child workflow execution to time
  3726. // out.
  3727. //
  3728. // TimeoutType is a required field
  3729. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"WorkflowExecutionTimeoutType"`
  3730. // The child workflow execution that timed out.
  3731. //
  3732. // WorkflowExecution is a required field
  3733. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3734. // The type of the child workflow execution.
  3735. //
  3736. // WorkflowType is a required field
  3737. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  3738. }
  3739. // String returns the string representation
  3740. func (s ChildWorkflowExecutionTimedOutEventAttributes) String() string {
  3741. return awsutil.Prettify(s)
  3742. }
  3743. // GoString returns the string representation
  3744. func (s ChildWorkflowExecutionTimedOutEventAttributes) GoString() string {
  3745. return s.String()
  3746. }
  3747. // Used to filter the closed workflow executions in visibility APIs by their
  3748. // close status.
  3749. type CloseStatusFilter struct {
  3750. _ struct{} `type:"structure"`
  3751. // Required. The close status that must match the close status of an execution
  3752. // for it to meet the criteria of this filter.
  3753. //
  3754. // Status is a required field
  3755. Status *string `locationName:"status" type:"string" required:"true" enum:"CloseStatus"`
  3756. }
  3757. // String returns the string representation
  3758. func (s CloseStatusFilter) String() string {
  3759. return awsutil.Prettify(s)
  3760. }
  3761. // GoString returns the string representation
  3762. func (s CloseStatusFilter) GoString() string {
  3763. return s.String()
  3764. }
  3765. // Validate inspects the fields of the type to determine if they are valid.
  3766. func (s *CloseStatusFilter) Validate() error {
  3767. invalidParams := request.ErrInvalidParams{Context: "CloseStatusFilter"}
  3768. if s.Status == nil {
  3769. invalidParams.Add(request.NewErrParamRequired("Status"))
  3770. }
  3771. if invalidParams.Len() > 0 {
  3772. return invalidParams
  3773. }
  3774. return nil
  3775. }
  3776. // Provides details of the CompleteWorkflowExecution decision.
  3777. //
  3778. // Access Control
  3779. //
  3780. // You can use IAM policies to control this decision's access to Amazon SWF
  3781. // resources as follows:
  3782. //
  3783. // * Use a Resource element with the domain name to limit the action to only
  3784. // specified domains.
  3785. // * Use an Action element to allow or deny permission to call this action.
  3786. //
  3787. // * You cannot use an IAM policy to constrain this action's parameters.
  3788. //
  3789. // If the caller does not have sufficient permissions to invoke the action,
  3790. // or the parameter values fall outside the specified constraints, the action
  3791. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  3792. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  3793. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3794. type CompleteWorkflowExecutionDecisionAttributes struct {
  3795. _ struct{} `type:"structure"`
  3796. // The result of the workflow execution. The form of the result is implementation
  3797. // defined.
  3798. Result *string `locationName:"result" type:"string"`
  3799. }
  3800. // String returns the string representation
  3801. func (s CompleteWorkflowExecutionDecisionAttributes) String() string {
  3802. return awsutil.Prettify(s)
  3803. }
  3804. // GoString returns the string representation
  3805. func (s CompleteWorkflowExecutionDecisionAttributes) GoString() string {
  3806. return s.String()
  3807. }
  3808. // Provides details of the CompleteWorkflowExecutionFailed event.
  3809. type CompleteWorkflowExecutionFailedEventAttributes struct {
  3810. _ struct{} `type:"structure"`
  3811. // The cause of the failure. This information is generated by the system and
  3812. // can be useful for diagnostic purposes.
  3813. //
  3814. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  3815. // lacked sufficient permissions. For details and example IAM policies, see
  3816. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3817. //
  3818. // Cause is a required field
  3819. Cause *string `locationName:"cause" type:"string" required:"true" enum:"CompleteWorkflowExecutionFailedCause"`
  3820. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3821. // that resulted in the CompleteWorkflowExecution decision to complete this
  3822. // execution. This information can be useful for diagnosing problems by tracing
  3823. // back the chain of events leading up to this event.
  3824. //
  3825. // DecisionTaskCompletedEventId is a required field
  3826. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3827. }
  3828. // String returns the string representation
  3829. func (s CompleteWorkflowExecutionFailedEventAttributes) String() string {
  3830. return awsutil.Prettify(s)
  3831. }
  3832. // GoString returns the string representation
  3833. func (s CompleteWorkflowExecutionFailedEventAttributes) GoString() string {
  3834. return s.String()
  3835. }
  3836. // Provides details of the ContinueAsNewWorkflowExecution decision.
  3837. //
  3838. // Access Control
  3839. //
  3840. // You can use IAM policies to control this decision's access to Amazon SWF
  3841. // resources as follows:
  3842. //
  3843. // * Use a Resource element with the domain name to limit the action to only
  3844. // specified domains.
  3845. // * Use an Action element to allow or deny permission to call this action.
  3846. //
  3847. // * Constrain the following parameters by using a Condition element with
  3848. // the appropriate keys. tag: Optional.. A tag used to identify the workflow
  3849. // execution
  3850. // taskList: String constraint. The key is swf:taskList.name.
  3851. // workflowType.version: String constraint. The key is swf:workflowType.version.
  3852. //
  3853. // If the caller does not have sufficient permissions to invoke the action,
  3854. // or the parameter values fall outside the specified constraints, the action
  3855. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  3856. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  3857. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3858. type ContinueAsNewWorkflowExecutionDecisionAttributes struct {
  3859. _ struct{} `type:"structure"`
  3860. // If set, specifies the policy to use for the child workflow executions of
  3861. // the new execution if it is terminated by calling the TerminateWorkflowExecution
  3862. // action explicitly or due to an expired timeout. This policy overrides the
  3863. // default child policy specified when registering the workflow type using RegisterWorkflowType.
  3864. //
  3865. // The supported child policies are:
  3866. //
  3867. // * TERMINATE: the child executions will be terminated.
  3868. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  3869. // execution by recording a WorkflowExecutionCancelRequested event in its
  3870. // history. It is up to the decider to take appropriate actions when it receives
  3871. // an execution history with this event.
  3872. // * ABANDON: no action will be taken. The child executions will continue
  3873. // to run.
  3874. // A child policy for this workflow execution must be specified either as a
  3875. // default for the workflow type or through this parameter. If neither this
  3876. // parameter is set nor a default child policy was specified at registration
  3877. // time then a fault will be returned.
  3878. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  3879. // If set, specifies the total duration for this workflow execution. This overrides
  3880. // the defaultExecutionStartToCloseTimeout specified when registering the workflow
  3881. // type.
  3882. //
  3883. // The duration is specified in seconds; an integer greater than or equal to
  3884. // 0. The value "NONE" can be used to specify unlimited duration.
  3885. //
  3886. // An execution start-to-close timeout for this workflow execution must be specified
  3887. // either as a default for the workflow type or through this field. If neither
  3888. // this field is set nor a default execution start-to-close timeout was specified
  3889. // at registration time then a fault will be returned.
  3890. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  3891. // The input provided to the new workflow execution.
  3892. Input *string `locationName:"input" type:"string"`
  3893. // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
  3894. //
  3895. // In order for this workflow execution to invoke AWS Lambda functions, an appropriate
  3896. // IAM role must be specified either as a default for the workflow type or through
  3897. // this field.
  3898. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  3899. // The list of tags to associate with the new workflow execution. A maximum
  3900. // of 5 tags can be specified. You can list workflow executions with a specific
  3901. // tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions
  3902. // and specifying a TagFilter.
  3903. TagList []*string `locationName:"tagList" type:"list"`
  3904. // Represents a task list.
  3905. TaskList *TaskList `locationName:"taskList" type:"structure"`
  3906. // Optional. The task priority that, if set, specifies the priority for the
  3907. // decision tasks for this workflow execution. This overrides the defaultTaskPriority
  3908. // specified when registering the workflow type. Valid values are integers that
  3909. // range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647).
  3910. // Higher numbers indicate higher priority.
  3911. //
  3912. // For more information about setting task priority, see Setting Task Priority
  3913. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  3914. // in the Amazon Simple Workflow Developer Guide.
  3915. TaskPriority *string `locationName:"taskPriority" type:"string"`
  3916. // Specifies the maximum duration of decision tasks for the new workflow execution.
  3917. // This parameter overrides the defaultTaskStartToCloseTimout specified when
  3918. // registering the workflow type using RegisterWorkflowType.
  3919. //
  3920. // The duration is specified in seconds; an integer greater than or equal to
  3921. // 0. The value "NONE" can be used to specify unlimited duration.
  3922. //
  3923. // A task start-to-close timeout for the new workflow execution must be specified
  3924. // either as a default for the workflow type or through this parameter. If neither
  3925. // this parameter is set nor a default task start-to-close timeout was specified
  3926. // at registration time then a fault will be returned.
  3927. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  3928. WorkflowTypeVersion *string `locationName:"workflowTypeVersion" min:"1" type:"string"`
  3929. }
  3930. // String returns the string representation
  3931. func (s ContinueAsNewWorkflowExecutionDecisionAttributes) String() string {
  3932. return awsutil.Prettify(s)
  3933. }
  3934. // GoString returns the string representation
  3935. func (s ContinueAsNewWorkflowExecutionDecisionAttributes) GoString() string {
  3936. return s.String()
  3937. }
  3938. // Validate inspects the fields of the type to determine if they are valid.
  3939. func (s *ContinueAsNewWorkflowExecutionDecisionAttributes) Validate() error {
  3940. invalidParams := request.ErrInvalidParams{Context: "ContinueAsNewWorkflowExecutionDecisionAttributes"}
  3941. if s.LambdaRole != nil && len(*s.LambdaRole) < 1 {
  3942. invalidParams.Add(request.NewErrParamMinLen("LambdaRole", 1))
  3943. }
  3944. if s.WorkflowTypeVersion != nil && len(*s.WorkflowTypeVersion) < 1 {
  3945. invalidParams.Add(request.NewErrParamMinLen("WorkflowTypeVersion", 1))
  3946. }
  3947. if s.TaskList != nil {
  3948. if err := s.TaskList.Validate(); err != nil {
  3949. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  3950. }
  3951. }
  3952. if invalidParams.Len() > 0 {
  3953. return invalidParams
  3954. }
  3955. return nil
  3956. }
  3957. // Provides details of the ContinueAsNewWorkflowExecutionFailed event.
  3958. type ContinueAsNewWorkflowExecutionFailedEventAttributes struct {
  3959. _ struct{} `type:"structure"`
  3960. // The cause of the failure. This information is generated by the system and
  3961. // can be useful for diagnostic purposes.
  3962. //
  3963. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  3964. // lacked sufficient permissions. For details and example IAM policies, see
  3965. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3966. //
  3967. // Cause is a required field
  3968. Cause *string `locationName:"cause" type:"string" required:"true" enum:"ContinueAsNewWorkflowExecutionFailedCause"`
  3969. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3970. // that resulted in the ContinueAsNewWorkflowExecution decision that started
  3971. // this execution. This information can be useful for diagnosing problems by
  3972. // tracing back the chain of events leading up to this event.
  3973. //
  3974. // DecisionTaskCompletedEventId is a required field
  3975. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3976. }
  3977. // String returns the string representation
  3978. func (s ContinueAsNewWorkflowExecutionFailedEventAttributes) String() string {
  3979. return awsutil.Prettify(s)
  3980. }
  3981. // GoString returns the string representation
  3982. func (s ContinueAsNewWorkflowExecutionFailedEventAttributes) GoString() string {
  3983. return s.String()
  3984. }
  3985. type CountClosedWorkflowExecutionsInput struct {
  3986. _ struct{} `type:"structure"`
  3987. // If specified, only workflow executions that match this close status are counted.
  3988. // This filter has an affect only if executionStatus is specified as CLOSED.
  3989. //
  3990. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  3991. // exclusive. You can specify at most one of these in a request.
  3992. CloseStatusFilter *CloseStatusFilter `locationName:"closeStatusFilter" type:"structure"`
  3993. // If specified, only workflow executions that meet the close time criteria
  3994. // of the filter are counted.
  3995. //
  3996. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  3997. // one of these in a request but not both.
  3998. CloseTimeFilter *ExecutionTimeFilter `locationName:"closeTimeFilter" type:"structure"`
  3999. // The name of the domain containing the workflow executions to count.
  4000. //
  4001. // Domain is a required field
  4002. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4003. // If specified, only workflow executions matching the WorkflowId in the filter
  4004. // are counted.
  4005. //
  4006. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  4007. // exclusive. You can specify at most one of these in a request.
  4008. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  4009. // If specified, only workflow executions that meet the start time criteria
  4010. // of the filter are counted.
  4011. //
  4012. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  4013. // one of these in a request but not both.
  4014. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure"`
  4015. // If specified, only executions that have a tag that matches the filter are
  4016. // counted.
  4017. //
  4018. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  4019. // exclusive. You can specify at most one of these in a request.
  4020. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  4021. // If specified, indicates the type of the workflow executions to be counted.
  4022. //
  4023. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  4024. // exclusive. You can specify at most one of these in a request.
  4025. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  4026. }
  4027. // String returns the string representation
  4028. func (s CountClosedWorkflowExecutionsInput) String() string {
  4029. return awsutil.Prettify(s)
  4030. }
  4031. // GoString returns the string representation
  4032. func (s CountClosedWorkflowExecutionsInput) GoString() string {
  4033. return s.String()
  4034. }
  4035. // Validate inspects the fields of the type to determine if they are valid.
  4036. func (s *CountClosedWorkflowExecutionsInput) Validate() error {
  4037. invalidParams := request.ErrInvalidParams{Context: "CountClosedWorkflowExecutionsInput"}
  4038. if s.Domain == nil {
  4039. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4040. }
  4041. if s.Domain != nil && len(*s.Domain) < 1 {
  4042. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4043. }
  4044. if s.CloseStatusFilter != nil {
  4045. if err := s.CloseStatusFilter.Validate(); err != nil {
  4046. invalidParams.AddNested("CloseStatusFilter", err.(request.ErrInvalidParams))
  4047. }
  4048. }
  4049. if s.CloseTimeFilter != nil {
  4050. if err := s.CloseTimeFilter.Validate(); err != nil {
  4051. invalidParams.AddNested("CloseTimeFilter", err.(request.ErrInvalidParams))
  4052. }
  4053. }
  4054. if s.ExecutionFilter != nil {
  4055. if err := s.ExecutionFilter.Validate(); err != nil {
  4056. invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams))
  4057. }
  4058. }
  4059. if s.StartTimeFilter != nil {
  4060. if err := s.StartTimeFilter.Validate(); err != nil {
  4061. invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams))
  4062. }
  4063. }
  4064. if s.TagFilter != nil {
  4065. if err := s.TagFilter.Validate(); err != nil {
  4066. invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams))
  4067. }
  4068. }
  4069. if s.TypeFilter != nil {
  4070. if err := s.TypeFilter.Validate(); err != nil {
  4071. invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams))
  4072. }
  4073. }
  4074. if invalidParams.Len() > 0 {
  4075. return invalidParams
  4076. }
  4077. return nil
  4078. }
  4079. type CountOpenWorkflowExecutionsInput struct {
  4080. _ struct{} `type:"structure"`
  4081. // The name of the domain containing the workflow executions to count.
  4082. //
  4083. // Domain is a required field
  4084. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4085. // If specified, only workflow executions matching the WorkflowId in the filter
  4086. // are counted.
  4087. //
  4088. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  4089. // specify at most one of these in a request.
  4090. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  4091. // Specifies the start time criteria that workflow executions must meet in order
  4092. // to be counted.
  4093. //
  4094. // StartTimeFilter is a required field
  4095. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure" required:"true"`
  4096. // If specified, only executions that have a tag that matches the filter are
  4097. // counted.
  4098. //
  4099. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  4100. // specify at most one of these in a request.
  4101. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  4102. // Specifies the type of the workflow executions to be counted.
  4103. //
  4104. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  4105. // specify at most one of these in a request.
  4106. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  4107. }
  4108. // String returns the string representation
  4109. func (s CountOpenWorkflowExecutionsInput) String() string {
  4110. return awsutil.Prettify(s)
  4111. }
  4112. // GoString returns the string representation
  4113. func (s CountOpenWorkflowExecutionsInput) GoString() string {
  4114. return s.String()
  4115. }
  4116. // Validate inspects the fields of the type to determine if they are valid.
  4117. func (s *CountOpenWorkflowExecutionsInput) Validate() error {
  4118. invalidParams := request.ErrInvalidParams{Context: "CountOpenWorkflowExecutionsInput"}
  4119. if s.Domain == nil {
  4120. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4121. }
  4122. if s.Domain != nil && len(*s.Domain) < 1 {
  4123. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4124. }
  4125. if s.StartTimeFilter == nil {
  4126. invalidParams.Add(request.NewErrParamRequired("StartTimeFilter"))
  4127. }
  4128. if s.ExecutionFilter != nil {
  4129. if err := s.ExecutionFilter.Validate(); err != nil {
  4130. invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams))
  4131. }
  4132. }
  4133. if s.StartTimeFilter != nil {
  4134. if err := s.StartTimeFilter.Validate(); err != nil {
  4135. invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams))
  4136. }
  4137. }
  4138. if s.TagFilter != nil {
  4139. if err := s.TagFilter.Validate(); err != nil {
  4140. invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams))
  4141. }
  4142. }
  4143. if s.TypeFilter != nil {
  4144. if err := s.TypeFilter.Validate(); err != nil {
  4145. invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams))
  4146. }
  4147. }
  4148. if invalidParams.Len() > 0 {
  4149. return invalidParams
  4150. }
  4151. return nil
  4152. }
  4153. type CountPendingActivityTasksInput struct {
  4154. _ struct{} `type:"structure"`
  4155. // The name of the domain that contains the task list.
  4156. //
  4157. // Domain is a required field
  4158. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4159. // The name of the task list.
  4160. //
  4161. // TaskList is a required field
  4162. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  4163. }
  4164. // String returns the string representation
  4165. func (s CountPendingActivityTasksInput) String() string {
  4166. return awsutil.Prettify(s)
  4167. }
  4168. // GoString returns the string representation
  4169. func (s CountPendingActivityTasksInput) GoString() string {
  4170. return s.String()
  4171. }
  4172. // Validate inspects the fields of the type to determine if they are valid.
  4173. func (s *CountPendingActivityTasksInput) Validate() error {
  4174. invalidParams := request.ErrInvalidParams{Context: "CountPendingActivityTasksInput"}
  4175. if s.Domain == nil {
  4176. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4177. }
  4178. if s.Domain != nil && len(*s.Domain) < 1 {
  4179. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4180. }
  4181. if s.TaskList == nil {
  4182. invalidParams.Add(request.NewErrParamRequired("TaskList"))
  4183. }
  4184. if s.TaskList != nil {
  4185. if err := s.TaskList.Validate(); err != nil {
  4186. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  4187. }
  4188. }
  4189. if invalidParams.Len() > 0 {
  4190. return invalidParams
  4191. }
  4192. return nil
  4193. }
  4194. type CountPendingDecisionTasksInput struct {
  4195. _ struct{} `type:"structure"`
  4196. // The name of the domain that contains the task list.
  4197. //
  4198. // Domain is a required field
  4199. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4200. // The name of the task list.
  4201. //
  4202. // TaskList is a required field
  4203. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  4204. }
  4205. // String returns the string representation
  4206. func (s CountPendingDecisionTasksInput) String() string {
  4207. return awsutil.Prettify(s)
  4208. }
  4209. // GoString returns the string representation
  4210. func (s CountPendingDecisionTasksInput) GoString() string {
  4211. return s.String()
  4212. }
  4213. // Validate inspects the fields of the type to determine if they are valid.
  4214. func (s *CountPendingDecisionTasksInput) Validate() error {
  4215. invalidParams := request.ErrInvalidParams{Context: "CountPendingDecisionTasksInput"}
  4216. if s.Domain == nil {
  4217. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4218. }
  4219. if s.Domain != nil && len(*s.Domain) < 1 {
  4220. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4221. }
  4222. if s.TaskList == nil {
  4223. invalidParams.Add(request.NewErrParamRequired("TaskList"))
  4224. }
  4225. if s.TaskList != nil {
  4226. if err := s.TaskList.Validate(); err != nil {
  4227. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  4228. }
  4229. }
  4230. if invalidParams.Len() > 0 {
  4231. return invalidParams
  4232. }
  4233. return nil
  4234. }
  4235. // Specifies a decision made by the decider. A decision can be one of these
  4236. // types:
  4237. //
  4238. // * CancelTimer: cancels a previously started timer and records a TimerCanceled
  4239. // event in the history.
  4240. // * CancelWorkflowExecution: closes the workflow execution and records a
  4241. // WorkflowExecutionCanceled event in the history.
  4242. // * CompleteWorkflowExecution: closes the workflow execution and records
  4243. // a WorkflowExecutionCompleted event in the history .
  4244. // * ContinueAsNewWorkflowExecution: closes the workflow execution and starts
  4245. // a new workflow execution of the same type using the same workflow ID and
  4246. // a unique run ID. A WorkflowExecutionContinuedAsNew event is recorded in
  4247. // the history.
  4248. // * FailWorkflowExecution: closes the workflow execution and records a WorkflowExecutionFailed
  4249. // event in the history.
  4250. // * RecordMarker: records a MarkerRecorded event in the history. Markers
  4251. // can be used for adding custom information in the history for instance
  4252. // to let deciders know that they do not need to look at the history beyond
  4253. // the marker event.
  4254. // * RequestCancelActivityTask: attempts to cancel a previously scheduled
  4255. // activity task. If the activity task was scheduled but has not been assigned
  4256. // to a worker, then it will be canceled. If the activity task was already
  4257. // assigned to a worker, then the worker will be informed that cancellation
  4258. // has been requested in the response to RecordActivityTaskHeartbeat.
  4259. // * RequestCancelExternalWorkflowExecution: requests that a request be made
  4260. // to cancel the specified external workflow execution and records a RequestCancelExternalWorkflowExecutionInitiated
  4261. // event in the history.
  4262. // * ScheduleActivityTask: schedules an activity task.
  4263. // * ScheduleLambdaFunction: schedules a AWS Lambda function.
  4264. // * SignalExternalWorkflowExecution: requests a signal to be delivered to
  4265. // the specified external workflow execution and records a SignalExternalWorkflowExecutionInitiated
  4266. // event in the history.
  4267. // * StartChildWorkflowExecution: requests that a child workflow execution
  4268. // be started and records a StartChildWorkflowExecutionInitiated event in
  4269. // the history. The child workflow execution is a separate workflow execution
  4270. // with its own history.
  4271. // * StartTimer: starts a timer for this workflow execution and records a
  4272. // TimerStarted event in the history. This timer will fire after the specified
  4273. // delay and record a TimerFired event.
  4274. // Access Control
  4275. //
  4276. // If you grant permission to use RespondDecisionTaskCompleted, you can use
  4277. // IAM policies to express permissions for the list of decisions returned by
  4278. // this action as if they were members of the API. Treating decisions as a pseudo
  4279. // API maintains a uniform conceptual model and helps keep policies readable.
  4280. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4281. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4282. //
  4283. // Decision Failure
  4284. //
  4285. // Decisions can fail for several reasons
  4286. //
  4287. // * The ordering of decisions should follow a logical flow. Some decisions
  4288. // might not make sense in the current context of the workflow execution
  4289. // and will therefore fail.
  4290. // * A limit on your account was reached.
  4291. // * The decision lacks sufficient permissions.
  4292. // One of the following events might be added to the history to indicate an
  4293. // error. The event attribute's cause parameter indicates the cause. If cause
  4294. // is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked
  4295. // sufficient permissions. For details and example IAM policies, see Using IAM
  4296. // to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4297. //
  4298. // * ScheduleActivityTaskFailed: a ScheduleActivityTask decision failed.
  4299. // This could happen if the activity type specified in the decision is not
  4300. // registered, is in a deprecated state, or the decision is not properly
  4301. // configured.
  4302. // * ScheduleLambdaFunctionFailed: a ScheduleLambdaFunctionFailed decision
  4303. // failed. This could happen if the AWS Lambda function specified in the
  4304. // decision does not exist, or the AWS Lambda service's limits are exceeded.
  4305. //
  4306. // * RequestCancelActivityTaskFailed: a RequestCancelActivityTask decision
  4307. // failed. This could happen if there is no open activity task with the specified
  4308. // activityId.
  4309. // * StartTimerFailed: a StartTimer decision failed. This could happen if
  4310. // there is another open timer with the same timerId.
  4311. // * CancelTimerFailed: a CancelTimer decision failed. This could happen
  4312. // if there is no open timer with the specified timerId.
  4313. // * StartChildWorkflowExecutionFailed: a StartChildWorkflowExecution decision
  4314. // failed. This could happen if the workflow type specified is not registered,
  4315. // is deprecated, or the decision is not properly configured.
  4316. // * SignalExternalWorkflowExecutionFailed: a SignalExternalWorkflowExecution
  4317. // decision failed. This could happen if the workflowID specified in the
  4318. // decision was incorrect.
  4319. // * RequestCancelExternalWorkflowExecutionFailed: a RequestCancelExternalWorkflowExecution
  4320. // decision failed. This could happen if the workflowID specified in the
  4321. // decision was incorrect.
  4322. // * CancelWorkflowExecutionFailed: a CancelWorkflowExecution decision failed.
  4323. // This could happen if there is an unhandled decision task pending in the
  4324. // workflow execution.
  4325. // * CompleteWorkflowExecutionFailed: a CompleteWorkflowExecution decision
  4326. // failed. This could happen if there is an unhandled decision task pending
  4327. // in the workflow execution.
  4328. // * ContinueAsNewWorkflowExecutionFailed: a ContinueAsNewWorkflowExecution
  4329. // decision failed. This could happen if there is an unhandled decision task
  4330. // pending in the workflow execution or the ContinueAsNewWorkflowExecution
  4331. // decision was not configured correctly.
  4332. // * FailWorkflowExecutionFailed: a FailWorkflowExecution decision failed.
  4333. // This could happen if there is an unhandled decision task pending in the
  4334. // workflow execution.
  4335. // The preceding error events might occur due to an error in the decider logic,
  4336. // which might put the workflow execution in an unstable state The cause field
  4337. // in the event structure for the error event indicates the cause of the error.
  4338. //
  4339. // A workflow execution may be closed by the decider by returning one of the
  4340. // following decisions when completing a decision task: CompleteWorkflowExecution,
  4341. // FailWorkflowExecution, CancelWorkflowExecution and ContinueAsNewWorkflowExecution.
  4342. // An UnhandledDecision fault will be returned if a workflow closing decision
  4343. // is specified and a signal or activity event had been added to the history
  4344. // while the decision task was being performed by the decider. Unlike the above
  4345. // situations which are logic issues, this fault is always possible because
  4346. // of race conditions in a distributed system. The right action here is to call
  4347. // RespondDecisionTaskCompleted without any decisions. This would result in
  4348. // another decision task with these new events included in the history. The
  4349. // decider should handle the new events and may decide to close the workflow
  4350. // execution.How to code a decision
  4351. //
  4352. // You code a decision by first setting the decision type field to one of the
  4353. // above decision values, and then set the corresponding attributes field shown
  4354. // below:
  4355. //
  4356. // * ScheduleActivityTaskDecisionAttributes
  4357. // * ScheduleLambdaFunctionDecisionAttributes
  4358. // * RequestCancelActivityTaskDecisionAttributes
  4359. // * CompleteWorkflowExecutionDecisionAttributes
  4360. // * FailWorkflowExecutionDecisionAttributes
  4361. // * CancelWorkflowExecutionDecisionAttributes
  4362. // * ContinueAsNewWorkflowExecutionDecisionAttributes
  4363. // * RecordMarkerDecisionAttributes
  4364. // * StartTimerDecisionAttributes
  4365. // * CancelTimerDecisionAttributes
  4366. // * SignalExternalWorkflowExecutionDecisionAttributes
  4367. // * RequestCancelExternalWorkflowExecutionDecisionAttributes
  4368. // * StartChildWorkflowExecutionDecisionAttributes
  4369. type Decision struct {
  4370. _ struct{} `type:"structure"`
  4371. // Provides details of the CancelTimer decision. It is not set for other decision
  4372. // types.
  4373. CancelTimerDecisionAttributes *CancelTimerDecisionAttributes `locationName:"cancelTimerDecisionAttributes" type:"structure"`
  4374. // Provides details of the CancelWorkflowExecution decision. It is not set for
  4375. // other decision types.
  4376. CancelWorkflowExecutionDecisionAttributes *CancelWorkflowExecutionDecisionAttributes `locationName:"cancelWorkflowExecutionDecisionAttributes" type:"structure"`
  4377. // Provides details of the CompleteWorkflowExecution decision. It is not set
  4378. // for other decision types.
  4379. CompleteWorkflowExecutionDecisionAttributes *CompleteWorkflowExecutionDecisionAttributes `locationName:"completeWorkflowExecutionDecisionAttributes" type:"structure"`
  4380. // Provides details of the ContinueAsNewWorkflowExecution decision. It is not
  4381. // set for other decision types.
  4382. ContinueAsNewWorkflowExecutionDecisionAttributes *ContinueAsNewWorkflowExecutionDecisionAttributes `locationName:"continueAsNewWorkflowExecutionDecisionAttributes" type:"structure"`
  4383. // Specifies the type of the decision.
  4384. //
  4385. // DecisionType is a required field
  4386. DecisionType *string `locationName:"decisionType" type:"string" required:"true" enum:"DecisionType"`
  4387. // Provides details of the FailWorkflowExecution decision. It is not set for
  4388. // other decision types.
  4389. FailWorkflowExecutionDecisionAttributes *FailWorkflowExecutionDecisionAttributes `locationName:"failWorkflowExecutionDecisionAttributes" type:"structure"`
  4390. // Provides details of the RecordMarker decision. It is not set for other decision
  4391. // types.
  4392. RecordMarkerDecisionAttributes *RecordMarkerDecisionAttributes `locationName:"recordMarkerDecisionAttributes" type:"structure"`
  4393. // Provides details of the RequestCancelActivityTask decision. It is not set
  4394. // for other decision types.
  4395. RequestCancelActivityTaskDecisionAttributes *RequestCancelActivityTaskDecisionAttributes `locationName:"requestCancelActivityTaskDecisionAttributes" type:"structure"`
  4396. // Provides details of the RequestCancelExternalWorkflowExecution decision.
  4397. // It is not set for other decision types.
  4398. RequestCancelExternalWorkflowExecutionDecisionAttributes *RequestCancelExternalWorkflowExecutionDecisionAttributes `locationName:"requestCancelExternalWorkflowExecutionDecisionAttributes" type:"structure"`
  4399. // Provides details of the ScheduleActivityTask decision. It is not set for
  4400. // other decision types.
  4401. ScheduleActivityTaskDecisionAttributes *ScheduleActivityTaskDecisionAttributes `locationName:"scheduleActivityTaskDecisionAttributes" type:"structure"`
  4402. // Provides details of the ScheduleLambdaFunction decision.
  4403. //
  4404. // Access Control
  4405. //
  4406. // You can use IAM policies to control this decision's access to Amazon SWF
  4407. // resources as follows:
  4408. //
  4409. // * Use a Resource element with the domain name to limit the action to only
  4410. // specified domains.
  4411. // * Use an Action element to allow or deny permission to call this action.
  4412. //
  4413. // * Constrain the following parameters by using a Condition element with
  4414. // the appropriate keys. activityType.name: String constraint. The key is
  4415. // swf:activityType.name.
  4416. // activityType.version: String constraint. The key is swf:activityType.version.
  4417. //
  4418. // taskList: String constraint. The key is swf:taskList.name.
  4419. //
  4420. // If the caller does not have sufficient permissions to invoke the action,
  4421. // or the parameter values fall outside the specified constraints, the action
  4422. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4423. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4424. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4425. ScheduleLambdaFunctionDecisionAttributes *ScheduleLambdaFunctionDecisionAttributes `locationName:"scheduleLambdaFunctionDecisionAttributes" type:"structure"`
  4426. // Provides details of the SignalExternalWorkflowExecution decision. It is not
  4427. // set for other decision types.
  4428. SignalExternalWorkflowExecutionDecisionAttributes *SignalExternalWorkflowExecutionDecisionAttributes `locationName:"signalExternalWorkflowExecutionDecisionAttributes" type:"structure"`
  4429. // Provides details of the StartChildWorkflowExecution decision. It is not set
  4430. // for other decision types.
  4431. StartChildWorkflowExecutionDecisionAttributes *StartChildWorkflowExecutionDecisionAttributes `locationName:"startChildWorkflowExecutionDecisionAttributes" type:"structure"`
  4432. // Provides details of the StartTimer decision. It is not set for other decision
  4433. // types.
  4434. StartTimerDecisionAttributes *StartTimerDecisionAttributes `locationName:"startTimerDecisionAttributes" type:"structure"`
  4435. }
  4436. // String returns the string representation
  4437. func (s Decision) String() string {
  4438. return awsutil.Prettify(s)
  4439. }
  4440. // GoString returns the string representation
  4441. func (s Decision) GoString() string {
  4442. return s.String()
  4443. }
  4444. // Validate inspects the fields of the type to determine if they are valid.
  4445. func (s *Decision) Validate() error {
  4446. invalidParams := request.ErrInvalidParams{Context: "Decision"}
  4447. if s.DecisionType == nil {
  4448. invalidParams.Add(request.NewErrParamRequired("DecisionType"))
  4449. }
  4450. if s.CancelTimerDecisionAttributes != nil {
  4451. if err := s.CancelTimerDecisionAttributes.Validate(); err != nil {
  4452. invalidParams.AddNested("CancelTimerDecisionAttributes", err.(request.ErrInvalidParams))
  4453. }
  4454. }
  4455. if s.ContinueAsNewWorkflowExecutionDecisionAttributes != nil {
  4456. if err := s.ContinueAsNewWorkflowExecutionDecisionAttributes.Validate(); err != nil {
  4457. invalidParams.AddNested("ContinueAsNewWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams))
  4458. }
  4459. }
  4460. if s.RecordMarkerDecisionAttributes != nil {
  4461. if err := s.RecordMarkerDecisionAttributes.Validate(); err != nil {
  4462. invalidParams.AddNested("RecordMarkerDecisionAttributes", err.(request.ErrInvalidParams))
  4463. }
  4464. }
  4465. if s.RequestCancelActivityTaskDecisionAttributes != nil {
  4466. if err := s.RequestCancelActivityTaskDecisionAttributes.Validate(); err != nil {
  4467. invalidParams.AddNested("RequestCancelActivityTaskDecisionAttributes", err.(request.ErrInvalidParams))
  4468. }
  4469. }
  4470. if s.RequestCancelExternalWorkflowExecutionDecisionAttributes != nil {
  4471. if err := s.RequestCancelExternalWorkflowExecutionDecisionAttributes.Validate(); err != nil {
  4472. invalidParams.AddNested("RequestCancelExternalWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams))
  4473. }
  4474. }
  4475. if s.ScheduleActivityTaskDecisionAttributes != nil {
  4476. if err := s.ScheduleActivityTaskDecisionAttributes.Validate(); err != nil {
  4477. invalidParams.AddNested("ScheduleActivityTaskDecisionAttributes", err.(request.ErrInvalidParams))
  4478. }
  4479. }
  4480. if s.ScheduleLambdaFunctionDecisionAttributes != nil {
  4481. if err := s.ScheduleLambdaFunctionDecisionAttributes.Validate(); err != nil {
  4482. invalidParams.AddNested("ScheduleLambdaFunctionDecisionAttributes", err.(request.ErrInvalidParams))
  4483. }
  4484. }
  4485. if s.SignalExternalWorkflowExecutionDecisionAttributes != nil {
  4486. if err := s.SignalExternalWorkflowExecutionDecisionAttributes.Validate(); err != nil {
  4487. invalidParams.AddNested("SignalExternalWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams))
  4488. }
  4489. }
  4490. if s.StartChildWorkflowExecutionDecisionAttributes != nil {
  4491. if err := s.StartChildWorkflowExecutionDecisionAttributes.Validate(); err != nil {
  4492. invalidParams.AddNested("StartChildWorkflowExecutionDecisionAttributes", err.(request.ErrInvalidParams))
  4493. }
  4494. }
  4495. if s.StartTimerDecisionAttributes != nil {
  4496. if err := s.StartTimerDecisionAttributes.Validate(); err != nil {
  4497. invalidParams.AddNested("StartTimerDecisionAttributes", err.(request.ErrInvalidParams))
  4498. }
  4499. }
  4500. if invalidParams.Len() > 0 {
  4501. return invalidParams
  4502. }
  4503. return nil
  4504. }
  4505. // Provides details of the DecisionTaskCompleted event.
  4506. type DecisionTaskCompletedEventAttributes struct {
  4507. _ struct{} `type:"structure"`
  4508. // User defined context for the workflow execution.
  4509. ExecutionContext *string `locationName:"executionContext" type:"string"`
  4510. // The ID of the DecisionTaskScheduled event that was recorded when this decision
  4511. // task was scheduled. This information can be useful for diagnosing problems
  4512. // by tracing back the chain of events leading up to this event.
  4513. //
  4514. // ScheduledEventId is a required field
  4515. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  4516. // The ID of the DecisionTaskStarted event recorded when this decision task
  4517. // was started. This information can be useful for diagnosing problems by tracing
  4518. // back the chain of events leading up to this event.
  4519. //
  4520. // StartedEventId is a required field
  4521. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  4522. }
  4523. // String returns the string representation
  4524. func (s DecisionTaskCompletedEventAttributes) String() string {
  4525. return awsutil.Prettify(s)
  4526. }
  4527. // GoString returns the string representation
  4528. func (s DecisionTaskCompletedEventAttributes) GoString() string {
  4529. return s.String()
  4530. }
  4531. // Provides details about the DecisionTaskScheduled event.
  4532. type DecisionTaskScheduledEventAttributes struct {
  4533. _ struct{} `type:"structure"`
  4534. // The maximum duration for this decision task. The task is considered timed
  4535. // out if it does not completed within this duration.
  4536. //
  4537. // The duration is specified in seconds; an integer greater than or equal to
  4538. // 0. The value "NONE" can be used to specify unlimited duration.
  4539. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  4540. // The name of the task list in which the decision task was scheduled.
  4541. //
  4542. // TaskList is a required field
  4543. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  4544. // Optional. A task priority that, if set, specifies the priority for this decision
  4545. // task. Valid values are integers that range from Java's Integer.MIN_VALUE
  4546. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  4547. // higher priority.
  4548. //
  4549. // For more information about setting task priority, see Setting Task Priority
  4550. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  4551. // in the Amazon Simple Workflow Developer Guide.
  4552. TaskPriority *string `locationName:"taskPriority" type:"string"`
  4553. }
  4554. // String returns the string representation
  4555. func (s DecisionTaskScheduledEventAttributes) String() string {
  4556. return awsutil.Prettify(s)
  4557. }
  4558. // GoString returns the string representation
  4559. func (s DecisionTaskScheduledEventAttributes) GoString() string {
  4560. return s.String()
  4561. }
  4562. // Provides details of the DecisionTaskStarted event.
  4563. type DecisionTaskStartedEventAttributes struct {
  4564. _ struct{} `type:"structure"`
  4565. // Identity of the decider making the request. This enables diagnostic tracing
  4566. // when problems arise. The form of this identity is user defined.
  4567. Identity *string `locationName:"identity" type:"string"`
  4568. // The ID of the DecisionTaskScheduled event that was recorded when this decision
  4569. // task was scheduled. This information can be useful for diagnosing problems
  4570. // by tracing back the chain of events leading up to this event.
  4571. //
  4572. // ScheduledEventId is a required field
  4573. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  4574. }
  4575. // String returns the string representation
  4576. func (s DecisionTaskStartedEventAttributes) String() string {
  4577. return awsutil.Prettify(s)
  4578. }
  4579. // GoString returns the string representation
  4580. func (s DecisionTaskStartedEventAttributes) GoString() string {
  4581. return s.String()
  4582. }
  4583. // Provides details of the DecisionTaskTimedOut event.
  4584. type DecisionTaskTimedOutEventAttributes struct {
  4585. _ struct{} `type:"structure"`
  4586. // The ID of the DecisionTaskScheduled event that was recorded when this decision
  4587. // task was scheduled. This information can be useful for diagnosing problems
  4588. // by tracing back the chain of events leading up to this event.
  4589. //
  4590. // ScheduledEventId is a required field
  4591. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  4592. // The ID of the DecisionTaskStarted event recorded when this decision task
  4593. // was started. This information can be useful for diagnosing problems by tracing
  4594. // back the chain of events leading up to this event.
  4595. //
  4596. // StartedEventId is a required field
  4597. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  4598. // The type of timeout that expired before the decision task could be completed.
  4599. //
  4600. // TimeoutType is a required field
  4601. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"DecisionTaskTimeoutType"`
  4602. }
  4603. // String returns the string representation
  4604. func (s DecisionTaskTimedOutEventAttributes) String() string {
  4605. return awsutil.Prettify(s)
  4606. }
  4607. // GoString returns the string representation
  4608. func (s DecisionTaskTimedOutEventAttributes) GoString() string {
  4609. return s.String()
  4610. }
  4611. type DeprecateActivityTypeInput struct {
  4612. _ struct{} `type:"structure"`
  4613. // The activity type to deprecate.
  4614. //
  4615. // ActivityType is a required field
  4616. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  4617. // The name of the domain in which the activity type is registered.
  4618. //
  4619. // Domain is a required field
  4620. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4621. }
  4622. // String returns the string representation
  4623. func (s DeprecateActivityTypeInput) String() string {
  4624. return awsutil.Prettify(s)
  4625. }
  4626. // GoString returns the string representation
  4627. func (s DeprecateActivityTypeInput) GoString() string {
  4628. return s.String()
  4629. }
  4630. // Validate inspects the fields of the type to determine if they are valid.
  4631. func (s *DeprecateActivityTypeInput) Validate() error {
  4632. invalidParams := request.ErrInvalidParams{Context: "DeprecateActivityTypeInput"}
  4633. if s.ActivityType == nil {
  4634. invalidParams.Add(request.NewErrParamRequired("ActivityType"))
  4635. }
  4636. if s.Domain == nil {
  4637. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4638. }
  4639. if s.Domain != nil && len(*s.Domain) < 1 {
  4640. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4641. }
  4642. if s.ActivityType != nil {
  4643. if err := s.ActivityType.Validate(); err != nil {
  4644. invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams))
  4645. }
  4646. }
  4647. if invalidParams.Len() > 0 {
  4648. return invalidParams
  4649. }
  4650. return nil
  4651. }
  4652. type DeprecateActivityTypeOutput struct {
  4653. _ struct{} `type:"structure"`
  4654. }
  4655. // String returns the string representation
  4656. func (s DeprecateActivityTypeOutput) String() string {
  4657. return awsutil.Prettify(s)
  4658. }
  4659. // GoString returns the string representation
  4660. func (s DeprecateActivityTypeOutput) GoString() string {
  4661. return s.String()
  4662. }
  4663. type DeprecateDomainInput struct {
  4664. _ struct{} `type:"structure"`
  4665. // The name of the domain to deprecate.
  4666. //
  4667. // Name is a required field
  4668. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4669. }
  4670. // String returns the string representation
  4671. func (s DeprecateDomainInput) String() string {
  4672. return awsutil.Prettify(s)
  4673. }
  4674. // GoString returns the string representation
  4675. func (s DeprecateDomainInput) GoString() string {
  4676. return s.String()
  4677. }
  4678. // Validate inspects the fields of the type to determine if they are valid.
  4679. func (s *DeprecateDomainInput) Validate() error {
  4680. invalidParams := request.ErrInvalidParams{Context: "DeprecateDomainInput"}
  4681. if s.Name == nil {
  4682. invalidParams.Add(request.NewErrParamRequired("Name"))
  4683. }
  4684. if s.Name != nil && len(*s.Name) < 1 {
  4685. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4686. }
  4687. if invalidParams.Len() > 0 {
  4688. return invalidParams
  4689. }
  4690. return nil
  4691. }
  4692. type DeprecateDomainOutput struct {
  4693. _ struct{} `type:"structure"`
  4694. }
  4695. // String returns the string representation
  4696. func (s DeprecateDomainOutput) String() string {
  4697. return awsutil.Prettify(s)
  4698. }
  4699. // GoString returns the string representation
  4700. func (s DeprecateDomainOutput) GoString() string {
  4701. return s.String()
  4702. }
  4703. type DeprecateWorkflowTypeInput struct {
  4704. _ struct{} `type:"structure"`
  4705. // The name of the domain in which the workflow type is registered.
  4706. //
  4707. // Domain is a required field
  4708. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4709. // The workflow type to deprecate.
  4710. //
  4711. // WorkflowType is a required field
  4712. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  4713. }
  4714. // String returns the string representation
  4715. func (s DeprecateWorkflowTypeInput) String() string {
  4716. return awsutil.Prettify(s)
  4717. }
  4718. // GoString returns the string representation
  4719. func (s DeprecateWorkflowTypeInput) GoString() string {
  4720. return s.String()
  4721. }
  4722. // Validate inspects the fields of the type to determine if they are valid.
  4723. func (s *DeprecateWorkflowTypeInput) Validate() error {
  4724. invalidParams := request.ErrInvalidParams{Context: "DeprecateWorkflowTypeInput"}
  4725. if s.Domain == nil {
  4726. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4727. }
  4728. if s.Domain != nil && len(*s.Domain) < 1 {
  4729. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4730. }
  4731. if s.WorkflowType == nil {
  4732. invalidParams.Add(request.NewErrParamRequired("WorkflowType"))
  4733. }
  4734. if s.WorkflowType != nil {
  4735. if err := s.WorkflowType.Validate(); err != nil {
  4736. invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams))
  4737. }
  4738. }
  4739. if invalidParams.Len() > 0 {
  4740. return invalidParams
  4741. }
  4742. return nil
  4743. }
  4744. type DeprecateWorkflowTypeOutput struct {
  4745. _ struct{} `type:"structure"`
  4746. }
  4747. // String returns the string representation
  4748. func (s DeprecateWorkflowTypeOutput) String() string {
  4749. return awsutil.Prettify(s)
  4750. }
  4751. // GoString returns the string representation
  4752. func (s DeprecateWorkflowTypeOutput) GoString() string {
  4753. return s.String()
  4754. }
  4755. type DescribeActivityTypeInput struct {
  4756. _ struct{} `type:"structure"`
  4757. // The activity type to get information about. Activity types are identified
  4758. // by the name and version that were supplied when the activity was registered.
  4759. //
  4760. // ActivityType is a required field
  4761. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  4762. // The name of the domain in which the activity type is registered.
  4763. //
  4764. // Domain is a required field
  4765. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4766. }
  4767. // String returns the string representation
  4768. func (s DescribeActivityTypeInput) String() string {
  4769. return awsutil.Prettify(s)
  4770. }
  4771. // GoString returns the string representation
  4772. func (s DescribeActivityTypeInput) GoString() string {
  4773. return s.String()
  4774. }
  4775. // Validate inspects the fields of the type to determine if they are valid.
  4776. func (s *DescribeActivityTypeInput) Validate() error {
  4777. invalidParams := request.ErrInvalidParams{Context: "DescribeActivityTypeInput"}
  4778. if s.ActivityType == nil {
  4779. invalidParams.Add(request.NewErrParamRequired("ActivityType"))
  4780. }
  4781. if s.Domain == nil {
  4782. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4783. }
  4784. if s.Domain != nil && len(*s.Domain) < 1 {
  4785. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4786. }
  4787. if s.ActivityType != nil {
  4788. if err := s.ActivityType.Validate(); err != nil {
  4789. invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams))
  4790. }
  4791. }
  4792. if invalidParams.Len() > 0 {
  4793. return invalidParams
  4794. }
  4795. return nil
  4796. }
  4797. // Detailed information about an activity type.
  4798. type DescribeActivityTypeOutput struct {
  4799. _ struct{} `type:"structure"`
  4800. // The configuration settings registered with the activity type.
  4801. //
  4802. // Configuration is a required field
  4803. Configuration *ActivityTypeConfiguration `locationName:"configuration" type:"structure" required:"true"`
  4804. // General information about the activity type.
  4805. //
  4806. // The status of activity type (returned in the ActivityTypeInfo structure)
  4807. // can be one of the following.
  4808. //
  4809. // * REGISTERED: The type is registered and available. Workers supporting
  4810. // this type should be running.
  4811. // * DEPRECATED: The type was deprecated using DeprecateActivityType, but
  4812. // is still in use. You should keep workers supporting this type running.
  4813. // You cannot create new tasks of this type.
  4814. //
  4815. // TypeInfo is a required field
  4816. TypeInfo *ActivityTypeInfo `locationName:"typeInfo" type:"structure" required:"true"`
  4817. }
  4818. // String returns the string representation
  4819. func (s DescribeActivityTypeOutput) String() string {
  4820. return awsutil.Prettify(s)
  4821. }
  4822. // GoString returns the string representation
  4823. func (s DescribeActivityTypeOutput) GoString() string {
  4824. return s.String()
  4825. }
  4826. type DescribeDomainInput struct {
  4827. _ struct{} `type:"structure"`
  4828. // The name of the domain to describe.
  4829. //
  4830. // Name is a required field
  4831. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4832. }
  4833. // String returns the string representation
  4834. func (s DescribeDomainInput) String() string {
  4835. return awsutil.Prettify(s)
  4836. }
  4837. // GoString returns the string representation
  4838. func (s DescribeDomainInput) GoString() string {
  4839. return s.String()
  4840. }
  4841. // Validate inspects the fields of the type to determine if they are valid.
  4842. func (s *DescribeDomainInput) Validate() error {
  4843. invalidParams := request.ErrInvalidParams{Context: "DescribeDomainInput"}
  4844. if s.Name == nil {
  4845. invalidParams.Add(request.NewErrParamRequired("Name"))
  4846. }
  4847. if s.Name != nil && len(*s.Name) < 1 {
  4848. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4849. }
  4850. if invalidParams.Len() > 0 {
  4851. return invalidParams
  4852. }
  4853. return nil
  4854. }
  4855. // Contains details of a domain.
  4856. type DescribeDomainOutput struct {
  4857. _ struct{} `type:"structure"`
  4858. // Contains the configuration settings of a domain.
  4859. //
  4860. // Configuration is a required field
  4861. Configuration *DomainConfiguration `locationName:"configuration" type:"structure" required:"true"`
  4862. // Contains general information about a domain.
  4863. //
  4864. // DomainInfo is a required field
  4865. DomainInfo *DomainInfo `locationName:"domainInfo" type:"structure" required:"true"`
  4866. }
  4867. // String returns the string representation
  4868. func (s DescribeDomainOutput) String() string {
  4869. return awsutil.Prettify(s)
  4870. }
  4871. // GoString returns the string representation
  4872. func (s DescribeDomainOutput) GoString() string {
  4873. return s.String()
  4874. }
  4875. type DescribeWorkflowExecutionInput struct {
  4876. _ struct{} `type:"structure"`
  4877. // The name of the domain containing the workflow execution.
  4878. //
  4879. // Domain is a required field
  4880. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4881. // The workflow execution to describe.
  4882. //
  4883. // Execution is a required field
  4884. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"`
  4885. }
  4886. // String returns the string representation
  4887. func (s DescribeWorkflowExecutionInput) String() string {
  4888. return awsutil.Prettify(s)
  4889. }
  4890. // GoString returns the string representation
  4891. func (s DescribeWorkflowExecutionInput) GoString() string {
  4892. return s.String()
  4893. }
  4894. // Validate inspects the fields of the type to determine if they are valid.
  4895. func (s *DescribeWorkflowExecutionInput) Validate() error {
  4896. invalidParams := request.ErrInvalidParams{Context: "DescribeWorkflowExecutionInput"}
  4897. if s.Domain == nil {
  4898. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4899. }
  4900. if s.Domain != nil && len(*s.Domain) < 1 {
  4901. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4902. }
  4903. if s.Execution == nil {
  4904. invalidParams.Add(request.NewErrParamRequired("Execution"))
  4905. }
  4906. if s.Execution != nil {
  4907. if err := s.Execution.Validate(); err != nil {
  4908. invalidParams.AddNested("Execution", err.(request.ErrInvalidParams))
  4909. }
  4910. }
  4911. if invalidParams.Len() > 0 {
  4912. return invalidParams
  4913. }
  4914. return nil
  4915. }
  4916. // Contains details about a workflow execution.
  4917. type DescribeWorkflowExecutionOutput struct {
  4918. _ struct{} `type:"structure"`
  4919. // The configuration settings for this workflow execution including timeout
  4920. // values, tasklist etc.
  4921. //
  4922. // ExecutionConfiguration is a required field
  4923. ExecutionConfiguration *WorkflowExecutionConfiguration `locationName:"executionConfiguration" type:"structure" required:"true"`
  4924. // Information about the workflow execution.
  4925. //
  4926. // ExecutionInfo is a required field
  4927. ExecutionInfo *WorkflowExecutionInfo `locationName:"executionInfo" type:"structure" required:"true"`
  4928. // The time when the last activity task was scheduled for this workflow execution.
  4929. // You can use this information to determine if the workflow has not made progress
  4930. // for an unusually long period of time and might require a corrective action.
  4931. LatestActivityTaskTimestamp *time.Time `locationName:"latestActivityTaskTimestamp" type:"timestamp" timestampFormat:"unix"`
  4932. // The latest executionContext provided by the decider for this workflow execution.
  4933. // A decider can provide an executionContext (a free-form string) when closing
  4934. // a decision task using RespondDecisionTaskCompleted.
  4935. LatestExecutionContext *string `locationName:"latestExecutionContext" type:"string"`
  4936. // The number of tasks for this workflow execution. This includes open and closed
  4937. // tasks of all types.
  4938. //
  4939. // OpenCounts is a required field
  4940. OpenCounts *WorkflowExecutionOpenCounts `locationName:"openCounts" type:"structure" required:"true"`
  4941. }
  4942. // String returns the string representation
  4943. func (s DescribeWorkflowExecutionOutput) String() string {
  4944. return awsutil.Prettify(s)
  4945. }
  4946. // GoString returns the string representation
  4947. func (s DescribeWorkflowExecutionOutput) GoString() string {
  4948. return s.String()
  4949. }
  4950. type DescribeWorkflowTypeInput struct {
  4951. _ struct{} `type:"structure"`
  4952. // The name of the domain in which this workflow type is registered.
  4953. //
  4954. // Domain is a required field
  4955. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  4956. // The workflow type to describe.
  4957. //
  4958. // WorkflowType is a required field
  4959. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  4960. }
  4961. // String returns the string representation
  4962. func (s DescribeWorkflowTypeInput) String() string {
  4963. return awsutil.Prettify(s)
  4964. }
  4965. // GoString returns the string representation
  4966. func (s DescribeWorkflowTypeInput) GoString() string {
  4967. return s.String()
  4968. }
  4969. // Validate inspects the fields of the type to determine if they are valid.
  4970. func (s *DescribeWorkflowTypeInput) Validate() error {
  4971. invalidParams := request.ErrInvalidParams{Context: "DescribeWorkflowTypeInput"}
  4972. if s.Domain == nil {
  4973. invalidParams.Add(request.NewErrParamRequired("Domain"))
  4974. }
  4975. if s.Domain != nil && len(*s.Domain) < 1 {
  4976. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  4977. }
  4978. if s.WorkflowType == nil {
  4979. invalidParams.Add(request.NewErrParamRequired("WorkflowType"))
  4980. }
  4981. if s.WorkflowType != nil {
  4982. if err := s.WorkflowType.Validate(); err != nil {
  4983. invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams))
  4984. }
  4985. }
  4986. if invalidParams.Len() > 0 {
  4987. return invalidParams
  4988. }
  4989. return nil
  4990. }
  4991. // Contains details about a workflow type.
  4992. type DescribeWorkflowTypeOutput struct {
  4993. _ struct{} `type:"structure"`
  4994. // Configuration settings of the workflow type registered through RegisterWorkflowType
  4995. //
  4996. // Configuration is a required field
  4997. Configuration *WorkflowTypeConfiguration `locationName:"configuration" type:"structure" required:"true"`
  4998. // General information about the workflow type.
  4999. //
  5000. // The status of the workflow type (returned in the WorkflowTypeInfo structure)
  5001. // can be one of the following.
  5002. //
  5003. // * REGISTERED: The type is registered and available. Workers supporting
  5004. // this type should be running.
  5005. // * DEPRECATED: The type was deprecated using DeprecateWorkflowType, but
  5006. // is still in use. You should keep workers supporting this type running.
  5007. // You cannot create new workflow executions of this type.
  5008. //
  5009. // TypeInfo is a required field
  5010. TypeInfo *WorkflowTypeInfo `locationName:"typeInfo" type:"structure" required:"true"`
  5011. }
  5012. // String returns the string representation
  5013. func (s DescribeWorkflowTypeOutput) String() string {
  5014. return awsutil.Prettify(s)
  5015. }
  5016. // GoString returns the string representation
  5017. func (s DescribeWorkflowTypeOutput) GoString() string {
  5018. return s.String()
  5019. }
  5020. // Contains the configuration settings of a domain.
  5021. type DomainConfiguration struct {
  5022. _ struct{} `type:"structure"`
  5023. // The retention period for workflow executions in this domain.
  5024. //
  5025. // WorkflowExecutionRetentionPeriodInDays is a required field
  5026. WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" min:"1" type:"string" required:"true"`
  5027. }
  5028. // String returns the string representation
  5029. func (s DomainConfiguration) String() string {
  5030. return awsutil.Prettify(s)
  5031. }
  5032. // GoString returns the string representation
  5033. func (s DomainConfiguration) GoString() string {
  5034. return s.String()
  5035. }
  5036. // Contains general information about a domain.
  5037. type DomainInfo struct {
  5038. _ struct{} `type:"structure"`
  5039. // The description of the domain provided through RegisterDomain.
  5040. Description *string `locationName:"description" type:"string"`
  5041. // The name of the domain. This name is unique within the account.
  5042. //
  5043. // Name is a required field
  5044. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5045. // The status of the domain:
  5046. //
  5047. // * REGISTERED: The domain is properly registered and available. You can
  5048. // use this domain for registering types and creating new workflow executions.
  5049. //
  5050. // * DEPRECATED: The domain was deprecated using DeprecateDomain, but is
  5051. // still in use. You should not create new workflow executions in this domain.
  5052. //
  5053. //
  5054. // Status is a required field
  5055. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"`
  5056. }
  5057. // String returns the string representation
  5058. func (s DomainInfo) String() string {
  5059. return awsutil.Prettify(s)
  5060. }
  5061. // GoString returns the string representation
  5062. func (s DomainInfo) GoString() string {
  5063. return s.String()
  5064. }
  5065. // Used to filter the workflow executions in visibility APIs by various time-based
  5066. // rules. Each parameter, if specified, defines a rule that must be satisfied
  5067. // by each returned query result. The parameter values are in the Unix Time
  5068. // format (https://en.wikipedia.org/wiki/Unix_time). For example: "oldestDate":
  5069. // 1325376070.
  5070. type ExecutionTimeFilter struct {
  5071. _ struct{} `type:"structure"`
  5072. // Specifies the latest start or close date and time to return.
  5073. LatestDate *time.Time `locationName:"latestDate" type:"timestamp" timestampFormat:"unix"`
  5074. // Specifies the oldest start or close date and time to return.
  5075. //
  5076. // OldestDate is a required field
  5077. OldestDate *time.Time `locationName:"oldestDate" type:"timestamp" timestampFormat:"unix" required:"true"`
  5078. }
  5079. // String returns the string representation
  5080. func (s ExecutionTimeFilter) String() string {
  5081. return awsutil.Prettify(s)
  5082. }
  5083. // GoString returns the string representation
  5084. func (s ExecutionTimeFilter) GoString() string {
  5085. return s.String()
  5086. }
  5087. // Validate inspects the fields of the type to determine if they are valid.
  5088. func (s *ExecutionTimeFilter) Validate() error {
  5089. invalidParams := request.ErrInvalidParams{Context: "ExecutionTimeFilter"}
  5090. if s.OldestDate == nil {
  5091. invalidParams.Add(request.NewErrParamRequired("OldestDate"))
  5092. }
  5093. if invalidParams.Len() > 0 {
  5094. return invalidParams
  5095. }
  5096. return nil
  5097. }
  5098. // Provides details of the ExternalWorkflowExecutionCancelRequested event.
  5099. type ExternalWorkflowExecutionCancelRequestedEventAttributes struct {
  5100. _ struct{} `type:"structure"`
  5101. // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding
  5102. // to the RequestCancelExternalWorkflowExecution decision to cancel this external
  5103. // workflow execution. This information can be useful for diagnosing problems
  5104. // by tracing back the chain of events leading up to this event.
  5105. //
  5106. // InitiatedEventId is a required field
  5107. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  5108. // The external workflow execution to which the cancellation request was delivered.
  5109. //
  5110. // WorkflowExecution is a required field
  5111. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  5112. }
  5113. // String returns the string representation
  5114. func (s ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string {
  5115. return awsutil.Prettify(s)
  5116. }
  5117. // GoString returns the string representation
  5118. func (s ExternalWorkflowExecutionCancelRequestedEventAttributes) GoString() string {
  5119. return s.String()
  5120. }
  5121. // Provides details of the ExternalWorkflowExecutionSignaled event.
  5122. type ExternalWorkflowExecutionSignaledEventAttributes struct {
  5123. _ struct{} `type:"structure"`
  5124. // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding
  5125. // to the SignalExternalWorkflowExecution decision to request this signal. This
  5126. // information can be useful for diagnosing problems by tracing back the chain
  5127. // of events leading up to this event.
  5128. //
  5129. // InitiatedEventId is a required field
  5130. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  5131. // The external workflow execution that the signal was delivered to.
  5132. //
  5133. // WorkflowExecution is a required field
  5134. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  5135. }
  5136. // String returns the string representation
  5137. func (s ExternalWorkflowExecutionSignaledEventAttributes) String() string {
  5138. return awsutil.Prettify(s)
  5139. }
  5140. // GoString returns the string representation
  5141. func (s ExternalWorkflowExecutionSignaledEventAttributes) GoString() string {
  5142. return s.String()
  5143. }
  5144. // Provides details of the FailWorkflowExecution decision.
  5145. //
  5146. // Access Control
  5147. //
  5148. // You can use IAM policies to control this decision's access to Amazon SWF
  5149. // resources as follows:
  5150. //
  5151. // * Use a Resource element with the domain name to limit the action to only
  5152. // specified domains.
  5153. // * Use an Action element to allow or deny permission to call this action.
  5154. //
  5155. // * You cannot use an IAM policy to constrain this action's parameters.
  5156. //
  5157. // If the caller does not have sufficient permissions to invoke the action,
  5158. // or the parameter values fall outside the specified constraints, the action
  5159. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  5160. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  5161. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5162. type FailWorkflowExecutionDecisionAttributes struct {
  5163. _ struct{} `type:"structure"`
  5164. // Optional. Details of the failure.
  5165. Details *string `locationName:"details" type:"string"`
  5166. // A descriptive reason for the failure that may help in diagnostics.
  5167. Reason *string `locationName:"reason" type:"string"`
  5168. }
  5169. // String returns the string representation
  5170. func (s FailWorkflowExecutionDecisionAttributes) String() string {
  5171. return awsutil.Prettify(s)
  5172. }
  5173. // GoString returns the string representation
  5174. func (s FailWorkflowExecutionDecisionAttributes) GoString() string {
  5175. return s.String()
  5176. }
  5177. // Provides details of the FailWorkflowExecutionFailed event.
  5178. type FailWorkflowExecutionFailedEventAttributes struct {
  5179. _ struct{} `type:"structure"`
  5180. // The cause of the failure. This information is generated by the system and
  5181. // can be useful for diagnostic purposes.
  5182. //
  5183. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  5184. // lacked sufficient permissions. For details and example IAM policies, see
  5185. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5186. //
  5187. // Cause is a required field
  5188. Cause *string `locationName:"cause" type:"string" required:"true" enum:"FailWorkflowExecutionFailedCause"`
  5189. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5190. // that resulted in the FailWorkflowExecution decision to fail this execution.
  5191. // This information can be useful for diagnosing problems by tracing back the
  5192. // chain of events leading up to this event.
  5193. //
  5194. // DecisionTaskCompletedEventId is a required field
  5195. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5196. }
  5197. // String returns the string representation
  5198. func (s FailWorkflowExecutionFailedEventAttributes) String() string {
  5199. return awsutil.Prettify(s)
  5200. }
  5201. // GoString returns the string representation
  5202. func (s FailWorkflowExecutionFailedEventAttributes) GoString() string {
  5203. return s.String()
  5204. }
  5205. type GetWorkflowExecutionHistoryInput struct {
  5206. _ struct{} `type:"structure"`
  5207. // The name of the domain containing the workflow execution.
  5208. //
  5209. // Domain is a required field
  5210. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  5211. // Specifies the workflow execution for which to return the history.
  5212. //
  5213. // Execution is a required field
  5214. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"`
  5215. // The maximum number of results that will be returned per call. nextPageToken
  5216. // can be used to obtain futher pages of results. The default is 1000, which
  5217. // is the maximum allowed page size. You can, however, specify a page size smaller
  5218. // than the maximum.
  5219. //
  5220. // This is an upper limit only; the actual number of results returned per call
  5221. // may be fewer than the specified maximum.
  5222. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  5223. // If a NextPageToken was returned by a previous call, there are more results
  5224. // available. To retrieve the next page of results, make the call again using
  5225. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5226. //
  5227. // The configured maximumPageSize determines how many results can be returned
  5228. // in a single call.
  5229. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5230. // When set to true, returns the events in reverse order. By default the results
  5231. // are returned in ascending order of the eventTimeStamp of the events.
  5232. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  5233. }
  5234. // String returns the string representation
  5235. func (s GetWorkflowExecutionHistoryInput) String() string {
  5236. return awsutil.Prettify(s)
  5237. }
  5238. // GoString returns the string representation
  5239. func (s GetWorkflowExecutionHistoryInput) GoString() string {
  5240. return s.String()
  5241. }
  5242. // Validate inspects the fields of the type to determine if they are valid.
  5243. func (s *GetWorkflowExecutionHistoryInput) Validate() error {
  5244. invalidParams := request.ErrInvalidParams{Context: "GetWorkflowExecutionHistoryInput"}
  5245. if s.Domain == nil {
  5246. invalidParams.Add(request.NewErrParamRequired("Domain"))
  5247. }
  5248. if s.Domain != nil && len(*s.Domain) < 1 {
  5249. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  5250. }
  5251. if s.Execution == nil {
  5252. invalidParams.Add(request.NewErrParamRequired("Execution"))
  5253. }
  5254. if s.Execution != nil {
  5255. if err := s.Execution.Validate(); err != nil {
  5256. invalidParams.AddNested("Execution", err.(request.ErrInvalidParams))
  5257. }
  5258. }
  5259. if invalidParams.Len() > 0 {
  5260. return invalidParams
  5261. }
  5262. return nil
  5263. }
  5264. // Paginated representation of a workflow history for a workflow execution.
  5265. // This is the up to date, complete and authoritative record of the events related
  5266. // to all tasks and events in the life of the workflow execution.
  5267. type GetWorkflowExecutionHistoryOutput struct {
  5268. _ struct{} `type:"structure"`
  5269. // The list of history events.
  5270. //
  5271. // Events is a required field
  5272. Events []*HistoryEvent `locationName:"events" type:"list" required:"true"`
  5273. // If a NextPageToken was returned by a previous call, there are more results
  5274. // available. To retrieve the next page of results, make the call again using
  5275. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5276. //
  5277. // The configured maximumPageSize determines how many results can be returned
  5278. // in a single call.
  5279. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5280. }
  5281. // String returns the string representation
  5282. func (s GetWorkflowExecutionHistoryOutput) String() string {
  5283. return awsutil.Prettify(s)
  5284. }
  5285. // GoString returns the string representation
  5286. func (s GetWorkflowExecutionHistoryOutput) GoString() string {
  5287. return s.String()
  5288. }
  5289. // Event within a workflow execution. A history event can be one of these types:
  5290. //
  5291. // * WorkflowExecutionStarted: The workflow execution was started.
  5292. // * WorkflowExecutionCompleted: The workflow execution was closed due to
  5293. // successful completion.
  5294. // * WorkflowExecutionFailed: The workflow execution closed due to a failure.
  5295. //
  5296. // * WorkflowExecutionTimedOut: The workflow execution was closed because
  5297. // a time out was exceeded.
  5298. // * WorkflowExecutionCanceled: The workflow execution was successfully canceled
  5299. // and closed.
  5300. // * WorkflowExecutionTerminated: The workflow execution was terminated.
  5301. //
  5302. // * WorkflowExecutionContinuedAsNew: The workflow execution was closed and
  5303. // a new execution of the same type was created with the same workflowId.
  5304. //
  5305. // * WorkflowExecutionCancelRequested: A request to cancel this workflow
  5306. // execution was made.
  5307. // * DecisionTaskScheduled: A decision task was scheduled for the workflow
  5308. // execution.
  5309. // * DecisionTaskStarted: The decision task was dispatched to a decider.
  5310. //
  5311. // * DecisionTaskCompleted: The decider successfully completed a decision
  5312. // task by calling RespondDecisionTaskCompleted.
  5313. // * DecisionTaskTimedOut: The decision task timed out.
  5314. // * ActivityTaskScheduled: An activity task was scheduled for execution.
  5315. //
  5316. // * ScheduleActivityTaskFailed: Failed to process ScheduleActivityTask decision.
  5317. // This happens when the decision is not configured properly, for example
  5318. // the activity type specified is not registered.
  5319. // * ActivityTaskStarted: The scheduled activity task was dispatched to a
  5320. // worker.
  5321. // * ActivityTaskCompleted: An activity worker successfully completed an
  5322. // activity task by calling RespondActivityTaskCompleted.
  5323. // * ActivityTaskFailed: An activity worker failed an activity task by calling
  5324. // RespondActivityTaskFailed.
  5325. // * ActivityTaskTimedOut: The activity task timed out.
  5326. // * ActivityTaskCanceled: The activity task was successfully canceled.
  5327. // * ActivityTaskCancelRequested: A RequestCancelActivityTask decision was
  5328. // received by the system.
  5329. // * RequestCancelActivityTaskFailed: Failed to process RequestCancelActivityTask
  5330. // decision. This happens when the decision is not configured properly.
  5331. // * WorkflowExecutionSignaled: An external signal was received for the workflow
  5332. // execution.
  5333. // * MarkerRecorded: A marker was recorded in the workflow history as the
  5334. // result of a RecordMarker decision.
  5335. // * TimerStarted: A timer was started for the workflow execution due to
  5336. // a StartTimer decision.
  5337. // * StartTimerFailed: Failed to process StartTimer decision. This happens
  5338. // when the decision is not configured properly, for example a timer already
  5339. // exists with the specified timer ID.
  5340. // * TimerFired: A timer, previously started for this workflow execution,
  5341. // fired.
  5342. // * TimerCanceled: A timer, previously started for this workflow execution,
  5343. // was successfully canceled.
  5344. // * CancelTimerFailed: Failed to process CancelTimer decision. This happens
  5345. // when the decision is not configured properly, for example no timer exists
  5346. // with the specified timer ID.
  5347. // * StartChildWorkflowExecutionInitiated: A request was made to start a
  5348. // child workflow execution.
  5349. // * StartChildWorkflowExecutionFailed: Failed to process StartChildWorkflowExecution
  5350. // decision. This happens when the decision is not configured properly, for
  5351. // example the workflow type specified is not registered.
  5352. // * ChildWorkflowExecutionStarted: A child workflow execution was successfully
  5353. // started.
  5354. // * ChildWorkflowExecutionCompleted: A child workflow execution, started
  5355. // by this workflow execution, completed successfully and was closed.
  5356. // * ChildWorkflowExecutionFailed: A child workflow execution, started by
  5357. // this workflow execution, failed to complete successfully and was closed.
  5358. //
  5359. // * ChildWorkflowExecutionTimedOut: A child workflow execution, started
  5360. // by this workflow execution, timed out and was closed.
  5361. // * ChildWorkflowExecutionCanceled: A child workflow execution, started
  5362. // by this workflow execution, was canceled and closed.
  5363. // * ChildWorkflowExecutionTerminated: A child workflow execution, started
  5364. // by this workflow execution, was terminated.
  5365. // * SignalExternalWorkflowExecutionInitiated: A request to signal an external
  5366. // workflow was made.
  5367. // * ExternalWorkflowExecutionSignaled: A signal, requested by this workflow
  5368. // execution, was successfully delivered to the target external workflow
  5369. // execution.
  5370. // * SignalExternalWorkflowExecutionFailed: The request to signal an external
  5371. // workflow execution failed.
  5372. // * RequestCancelExternalWorkflowExecutionInitiated: A request was made
  5373. // to request the cancellation of an external workflow execution.
  5374. // * ExternalWorkflowExecutionCancelRequested: Request to cancel an external
  5375. // workflow execution was successfully delivered to the target execution.
  5376. //
  5377. // * RequestCancelExternalWorkflowExecutionFailed: Request to cancel an external
  5378. // workflow execution failed.
  5379. // * LambdaFunctionScheduled: An AWS Lambda function was scheduled for execution.
  5380. //
  5381. // * LambdaFunctionStarted: The scheduled function was invoked in the AWS
  5382. // Lambda service.
  5383. // * LambdaFunctionCompleted: The AWS Lambda function successfully completed.
  5384. //
  5385. // * LambdaFunctionFailed: The AWS Lambda function execution failed.
  5386. // * LambdaFunctionTimedOut: The AWS Lambda function execution timed out.
  5387. //
  5388. // * ScheduleLambdaFunctionFailed: Failed to process ScheduleLambdaFunction
  5389. // decision. This happens when the workflow execution does not have the proper
  5390. // IAM role attached to invoke AWS Lambda functions.
  5391. // * StartLambdaFunctionFailed: Failed to invoke the scheduled function in
  5392. // the AWS Lambda service. This happens when the AWS Lambda service is not
  5393. // available in the current region, or received too many requests.
  5394. type HistoryEvent struct {
  5395. _ struct{} `type:"structure"`
  5396. // If the event is of type ActivityTaskcancelRequested then this member is set
  5397. // and provides detailed information about the event. It is not set for other
  5398. // event types.
  5399. ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes `locationName:"activityTaskCancelRequestedEventAttributes" type:"structure"`
  5400. // If the event is of type ActivityTaskCanceled then this member is set and
  5401. // provides detailed information about the event. It is not set for other event
  5402. // types.
  5403. ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes `locationName:"activityTaskCanceledEventAttributes" type:"structure"`
  5404. // If the event is of type ActivityTaskCompleted then this member is set and
  5405. // provides detailed information about the event. It is not set for other event
  5406. // types.
  5407. ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes `locationName:"activityTaskCompletedEventAttributes" type:"structure"`
  5408. // If the event is of type ActivityTaskFailed then this member is set and provides
  5409. // detailed information about the event. It is not set for other event types.
  5410. ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes `locationName:"activityTaskFailedEventAttributes" type:"structure"`
  5411. // If the event is of type ActivityTaskScheduled then this member is set and
  5412. // provides detailed information about the event. It is not set for other event
  5413. // types.
  5414. ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes `locationName:"activityTaskScheduledEventAttributes" type:"structure"`
  5415. // If the event is of type ActivityTaskStarted then this member is set and provides
  5416. // detailed information about the event. It is not set for other event types.
  5417. ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes `locationName:"activityTaskStartedEventAttributes" type:"structure"`
  5418. // If the event is of type ActivityTaskTimedOut then this member is set and
  5419. // provides detailed information about the event. It is not set for other event
  5420. // types.
  5421. ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes `locationName:"activityTaskTimedOutEventAttributes" type:"structure"`
  5422. // If the event is of type CancelTimerFailed then this member is set and provides
  5423. // detailed information about the event. It is not set for other event types.
  5424. CancelTimerFailedEventAttributes *CancelTimerFailedEventAttributes `locationName:"cancelTimerFailedEventAttributes" type:"structure"`
  5425. // If the event is of type CancelWorkflowExecutionFailed then this member is
  5426. // set and provides detailed information about the event. It is not set for
  5427. // other event types.
  5428. CancelWorkflowExecutionFailedEventAttributes *CancelWorkflowExecutionFailedEventAttributes `locationName:"cancelWorkflowExecutionFailedEventAttributes" type:"structure"`
  5429. // If the event is of type ChildWorkflowExecutionCanceled then this member is
  5430. // set and provides detailed information about the event. It is not set for
  5431. // other event types.
  5432. ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes `locationName:"childWorkflowExecutionCanceledEventAttributes" type:"structure"`
  5433. // If the event is of type ChildWorkflowExecutionCompleted then this member
  5434. // is set and provides detailed information about the event. It is not set for
  5435. // other event types.
  5436. ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes `locationName:"childWorkflowExecutionCompletedEventAttributes" type:"structure"`
  5437. // If the event is of type ChildWorkflowExecutionFailed then this member is
  5438. // set and provides detailed information about the event. It is not set for
  5439. // other event types.
  5440. ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes `locationName:"childWorkflowExecutionFailedEventAttributes" type:"structure"`
  5441. // If the event is of type ChildWorkflowExecutionStarted then this member is
  5442. // set and provides detailed information about the event. It is not set for
  5443. // other event types.
  5444. ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes `locationName:"childWorkflowExecutionStartedEventAttributes" type:"structure"`
  5445. // If the event is of type ChildWorkflowExecutionTerminated then this member
  5446. // is set and provides detailed information about the event. It is not set for
  5447. // other event types.
  5448. ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes `locationName:"childWorkflowExecutionTerminatedEventAttributes" type:"structure"`
  5449. // If the event is of type ChildWorkflowExecutionTimedOut then this member is
  5450. // set and provides detailed information about the event. It is not set for
  5451. // other event types.
  5452. ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes `locationName:"childWorkflowExecutionTimedOutEventAttributes" type:"structure"`
  5453. // If the event is of type CompleteWorkflowExecutionFailed then this member
  5454. // is set and provides detailed information about the event. It is not set for
  5455. // other event types.
  5456. CompleteWorkflowExecutionFailedEventAttributes *CompleteWorkflowExecutionFailedEventAttributes `locationName:"completeWorkflowExecutionFailedEventAttributes" type:"structure"`
  5457. // If the event is of type ContinueAsNewWorkflowExecutionFailed then this member
  5458. // is set and provides detailed information about the event. It is not set for
  5459. // other event types.
  5460. ContinueAsNewWorkflowExecutionFailedEventAttributes *ContinueAsNewWorkflowExecutionFailedEventAttributes `locationName:"continueAsNewWorkflowExecutionFailedEventAttributes" type:"structure"`
  5461. // If the event is of type DecisionTaskCompleted then this member is set and
  5462. // provides detailed information about the event. It is not set for other event
  5463. // types.
  5464. DecisionTaskCompletedEventAttributes *DecisionTaskCompletedEventAttributes `locationName:"decisionTaskCompletedEventAttributes" type:"structure"`
  5465. // If the event is of type DecisionTaskScheduled then this member is set and
  5466. // provides detailed information about the event. It is not set for other event
  5467. // types.
  5468. DecisionTaskScheduledEventAttributes *DecisionTaskScheduledEventAttributes `locationName:"decisionTaskScheduledEventAttributes" type:"structure"`
  5469. // If the event is of type DecisionTaskStarted then this member is set and provides
  5470. // detailed information about the event. It is not set for other event types.
  5471. DecisionTaskStartedEventAttributes *DecisionTaskStartedEventAttributes `locationName:"decisionTaskStartedEventAttributes" type:"structure"`
  5472. // If the event is of type DecisionTaskTimedOut then this member is set and
  5473. // provides detailed information about the event. It is not set for other event
  5474. // types.
  5475. DecisionTaskTimedOutEventAttributes *DecisionTaskTimedOutEventAttributes `locationName:"decisionTaskTimedOutEventAttributes" type:"structure"`
  5476. // The system generated ID of the event. This ID uniquely identifies the event
  5477. // with in the workflow execution history.
  5478. //
  5479. // EventId is a required field
  5480. EventId *int64 `locationName:"eventId" type:"long" required:"true"`
  5481. // The date and time when the event occurred.
  5482. //
  5483. // EventTimestamp is a required field
  5484. EventTimestamp *time.Time `locationName:"eventTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
  5485. // The type of the history event.
  5486. //
  5487. // EventType is a required field
  5488. EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"`
  5489. // If the event is of type ExternalWorkflowExecutionCancelRequested then this
  5490. // member is set and provides detailed information about the event. It is not
  5491. // set for other event types.
  5492. ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes `locationName:"externalWorkflowExecutionCancelRequestedEventAttributes" type:"structure"`
  5493. // If the event is of type ExternalWorkflowExecutionSignaled then this member
  5494. // is set and provides detailed information about the event. It is not set for
  5495. // other event types.
  5496. ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes `locationName:"externalWorkflowExecutionSignaledEventAttributes" type:"structure"`
  5497. // If the event is of type FailWorkflowExecutionFailed then this member is set
  5498. // and provides detailed information about the event. It is not set for other
  5499. // event types.
  5500. FailWorkflowExecutionFailedEventAttributes *FailWorkflowExecutionFailedEventAttributes `locationName:"failWorkflowExecutionFailedEventAttributes" type:"structure"`
  5501. // Provides details for the LambdaFunctionCompleted event.
  5502. LambdaFunctionCompletedEventAttributes *LambdaFunctionCompletedEventAttributes `locationName:"lambdaFunctionCompletedEventAttributes" type:"structure"`
  5503. // Provides details for the LambdaFunctionFailed event.
  5504. LambdaFunctionFailedEventAttributes *LambdaFunctionFailedEventAttributes `locationName:"lambdaFunctionFailedEventAttributes" type:"structure"`
  5505. // Provides details for the LambdaFunctionScheduled event.
  5506. LambdaFunctionScheduledEventAttributes *LambdaFunctionScheduledEventAttributes `locationName:"lambdaFunctionScheduledEventAttributes" type:"structure"`
  5507. // Provides details for the LambdaFunctionStarted event.
  5508. LambdaFunctionStartedEventAttributes *LambdaFunctionStartedEventAttributes `locationName:"lambdaFunctionStartedEventAttributes" type:"structure"`
  5509. // Provides details for the LambdaFunctionTimedOut event.
  5510. LambdaFunctionTimedOutEventAttributes *LambdaFunctionTimedOutEventAttributes `locationName:"lambdaFunctionTimedOutEventAttributes" type:"structure"`
  5511. // If the event is of type MarkerRecorded then this member is set and provides
  5512. // detailed information about the event. It is not set for other event types.
  5513. MarkerRecordedEventAttributes *MarkerRecordedEventAttributes `locationName:"markerRecordedEventAttributes" type:"structure"`
  5514. // If the event is of type DecisionTaskFailed then this member is set and provides
  5515. // detailed information about the event. It is not set for other event types.
  5516. RecordMarkerFailedEventAttributes *RecordMarkerFailedEventAttributes `locationName:"recordMarkerFailedEventAttributes" type:"structure"`
  5517. // If the event is of type RequestCancelActivityTaskFailed then this member
  5518. // is set and provides detailed information about the event. It is not set for
  5519. // other event types.
  5520. RequestCancelActivityTaskFailedEventAttributes *RequestCancelActivityTaskFailedEventAttributes `locationName:"requestCancelActivityTaskFailedEventAttributes" type:"structure"`
  5521. // If the event is of type RequestCancelExternalWorkflowExecutionFailed then
  5522. // this member is set and provides detailed information about the event. It
  5523. // is not set for other event types.
  5524. RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes `locationName:"requestCancelExternalWorkflowExecutionFailedEventAttributes" type:"structure"`
  5525. // If the event is of type RequestCancelExternalWorkflowExecutionInitiated then
  5526. // this member is set and provides detailed information about the event. It
  5527. // is not set for other event types.
  5528. RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes `locationName:"requestCancelExternalWorkflowExecutionInitiatedEventAttributes" type:"structure"`
  5529. // If the event is of type ScheduleActivityTaskFailed then this member is set
  5530. // and provides detailed information about the event. It is not set for other
  5531. // event types.
  5532. ScheduleActivityTaskFailedEventAttributes *ScheduleActivityTaskFailedEventAttributes `locationName:"scheduleActivityTaskFailedEventAttributes" type:"structure"`
  5533. // Provides details for the ScheduleLambdaFunctionFailed event.
  5534. ScheduleLambdaFunctionFailedEventAttributes *ScheduleLambdaFunctionFailedEventAttributes `locationName:"scheduleLambdaFunctionFailedEventAttributes" type:"structure"`
  5535. // If the event is of type SignalExternalWorkflowExecutionFailed then this member
  5536. // is set and provides detailed information about the event. It is not set for
  5537. // other event types.
  5538. SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes `locationName:"signalExternalWorkflowExecutionFailedEventAttributes" type:"structure"`
  5539. // If the event is of type SignalExternalWorkflowExecutionInitiated then this
  5540. // member is set and provides detailed information about the event. It is not
  5541. // set for other event types.
  5542. SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes `locationName:"signalExternalWorkflowExecutionInitiatedEventAttributes" type:"structure"`
  5543. // If the event is of type StartChildWorkflowExecutionFailed then this member
  5544. // is set and provides detailed information about the event. It is not set for
  5545. // other event types.
  5546. StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes `locationName:"startChildWorkflowExecutionFailedEventAttributes" type:"structure"`
  5547. // If the event is of type StartChildWorkflowExecutionInitiated then this member
  5548. // is set and provides detailed information about the event. It is not set for
  5549. // other event types.
  5550. StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `locationName:"startChildWorkflowExecutionInitiatedEventAttributes" type:"structure"`
  5551. // Provides details for the StartLambdaFunctionFailed event.
  5552. StartLambdaFunctionFailedEventAttributes *StartLambdaFunctionFailedEventAttributes `locationName:"startLambdaFunctionFailedEventAttributes" type:"structure"`
  5553. // If the event is of type StartTimerFailed then this member is set and provides
  5554. // detailed information about the event. It is not set for other event types.
  5555. StartTimerFailedEventAttributes *StartTimerFailedEventAttributes `locationName:"startTimerFailedEventAttributes" type:"structure"`
  5556. // If the event is of type TimerCanceled then this member is set and provides
  5557. // detailed information about the event. It is not set for other event types.
  5558. TimerCanceledEventAttributes *TimerCanceledEventAttributes `locationName:"timerCanceledEventAttributes" type:"structure"`
  5559. // If the event is of type TimerFired then this member is set and provides detailed
  5560. // information about the event. It is not set for other event types.
  5561. TimerFiredEventAttributes *TimerFiredEventAttributes `locationName:"timerFiredEventAttributes" type:"structure"`
  5562. // If the event is of type TimerStarted then this member is set and provides
  5563. // detailed information about the event. It is not set for other event types.
  5564. TimerStartedEventAttributes *TimerStartedEventAttributes `locationName:"timerStartedEventAttributes" type:"structure"`
  5565. // If the event is of type WorkflowExecutionCancelRequested then this member
  5566. // is set and provides detailed information about the event. It is not set for
  5567. // other event types.
  5568. WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes `locationName:"workflowExecutionCancelRequestedEventAttributes" type:"structure"`
  5569. // If the event is of type WorkflowExecutionCanceled then this member is set
  5570. // and provides detailed information about the event. It is not set for other
  5571. // event types.
  5572. WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `locationName:"workflowExecutionCanceledEventAttributes" type:"structure"`
  5573. // If the event is of type WorkflowExecutionCompleted then this member is set
  5574. // and provides detailed information about the event. It is not set for other
  5575. // event types.
  5576. WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `locationName:"workflowExecutionCompletedEventAttributes" type:"structure"`
  5577. // If the event is of type WorkflowExecutionContinuedAsNew then this member
  5578. // is set and provides detailed information about the event. It is not set for
  5579. // other event types.
  5580. WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `locationName:"workflowExecutionContinuedAsNewEventAttributes" type:"structure"`
  5581. // If the event is of type WorkflowExecutionFailed then this member is set and
  5582. // provides detailed information about the event. It is not set for other event
  5583. // types.
  5584. WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `locationName:"workflowExecutionFailedEventAttributes" type:"structure"`
  5585. // If the event is of type WorkflowExecutionSignaled then this member is set
  5586. // and provides detailed information about the event. It is not set for other
  5587. // event types.
  5588. WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `locationName:"workflowExecutionSignaledEventAttributes" type:"structure"`
  5589. // If the event is of type WorkflowExecutionStarted then this member is set
  5590. // and provides detailed information about the event. It is not set for other
  5591. // event types.
  5592. WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `locationName:"workflowExecutionStartedEventAttributes" type:"structure"`
  5593. // If the event is of type WorkflowExecutionTerminated then this member is set
  5594. // and provides detailed information about the event. It is not set for other
  5595. // event types.
  5596. WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `locationName:"workflowExecutionTerminatedEventAttributes" type:"structure"`
  5597. // If the event is of type WorkflowExecutionTimedOut then this member is set
  5598. // and provides detailed information about the event. It is not set for other
  5599. // event types.
  5600. WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `locationName:"workflowExecutionTimedOutEventAttributes" type:"structure"`
  5601. }
  5602. // String returns the string representation
  5603. func (s HistoryEvent) String() string {
  5604. return awsutil.Prettify(s)
  5605. }
  5606. // GoString returns the string representation
  5607. func (s HistoryEvent) GoString() string {
  5608. return s.String()
  5609. }
  5610. // Provides details for the LambdaFunctionCompleted event.
  5611. type LambdaFunctionCompletedEventAttributes struct {
  5612. _ struct{} `type:"structure"`
  5613. // The result of the function execution (if any).
  5614. Result *string `locationName:"result" type:"string"`
  5615. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  5616. // Lambda function was scheduled. This information can be useful for diagnosing
  5617. // problems by tracing back the chain of events leading up to this event.
  5618. //
  5619. // ScheduledEventId is a required field
  5620. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  5621. // The ID of the LambdaFunctionStarted event recorded in the history.
  5622. //
  5623. // StartedEventId is a required field
  5624. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  5625. }
  5626. // String returns the string representation
  5627. func (s LambdaFunctionCompletedEventAttributes) String() string {
  5628. return awsutil.Prettify(s)
  5629. }
  5630. // GoString returns the string representation
  5631. func (s LambdaFunctionCompletedEventAttributes) GoString() string {
  5632. return s.String()
  5633. }
  5634. // Provides details for the LambdaFunctionFailed event.
  5635. type LambdaFunctionFailedEventAttributes struct {
  5636. _ struct{} `type:"structure"`
  5637. // The details of the failure (if any).
  5638. Details *string `locationName:"details" type:"string"`
  5639. // The reason provided for the failure (if any).
  5640. Reason *string `locationName:"reason" type:"string"`
  5641. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  5642. // Lambda function was scheduled. This information can be useful for diagnosing
  5643. // problems by tracing back the chain of events leading up to this event.
  5644. //
  5645. // ScheduledEventId is a required field
  5646. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  5647. // The ID of the LambdaFunctionStarted event recorded in the history.
  5648. //
  5649. // StartedEventId is a required field
  5650. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  5651. }
  5652. // String returns the string representation
  5653. func (s LambdaFunctionFailedEventAttributes) String() string {
  5654. return awsutil.Prettify(s)
  5655. }
  5656. // GoString returns the string representation
  5657. func (s LambdaFunctionFailedEventAttributes) GoString() string {
  5658. return s.String()
  5659. }
  5660. // Provides details for the LambdaFunctionScheduled event.
  5661. type LambdaFunctionScheduledEventAttributes struct {
  5662. _ struct{} `type:"structure"`
  5663. // The ID of the DecisionTaskCompleted event for the decision that resulted
  5664. // in the scheduling of this AWS Lambda function. This information can be useful
  5665. // for diagnosing problems by tracing back the chain of events leading up to
  5666. // this event.
  5667. //
  5668. // DecisionTaskCompletedEventId is a required field
  5669. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5670. // The unique Amazon SWF ID for the AWS Lambda task.
  5671. //
  5672. // Id is a required field
  5673. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  5674. // Input provided to the AWS Lambda function.
  5675. Input *string `locationName:"input" min:"1" type:"string"`
  5676. // The name of the scheduled AWS Lambda function.
  5677. //
  5678. // Name is a required field
  5679. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5680. // The maximum time, in seconds, that the AWS Lambda function can take to execute
  5681. // from start to close before it is marked as failed.
  5682. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  5683. }
  5684. // String returns the string representation
  5685. func (s LambdaFunctionScheduledEventAttributes) String() string {
  5686. return awsutil.Prettify(s)
  5687. }
  5688. // GoString returns the string representation
  5689. func (s LambdaFunctionScheduledEventAttributes) GoString() string {
  5690. return s.String()
  5691. }
  5692. // Provides details for the LambdaFunctionStarted event.
  5693. type LambdaFunctionStartedEventAttributes struct {
  5694. _ struct{} `type:"structure"`
  5695. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  5696. // Lambda function was scheduled. This information can be useful for diagnosing
  5697. // problems by tracing back the chain of events leading up to this event.
  5698. //
  5699. // ScheduledEventId is a required field
  5700. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  5701. }
  5702. // String returns the string representation
  5703. func (s LambdaFunctionStartedEventAttributes) String() string {
  5704. return awsutil.Prettify(s)
  5705. }
  5706. // GoString returns the string representation
  5707. func (s LambdaFunctionStartedEventAttributes) GoString() string {
  5708. return s.String()
  5709. }
  5710. // Provides details for the LambdaFunctionTimedOut event.
  5711. type LambdaFunctionTimedOutEventAttributes struct {
  5712. _ struct{} `type:"structure"`
  5713. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  5714. // Lambda function was scheduled. This information can be useful for diagnosing
  5715. // problems by tracing back the chain of events leading up to this event.
  5716. //
  5717. // ScheduledEventId is a required field
  5718. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  5719. // The ID of the LambdaFunctionStarted event recorded in the history.
  5720. //
  5721. // StartedEventId is a required field
  5722. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  5723. // The type of the timeout that caused this event.
  5724. TimeoutType *string `locationName:"timeoutType" type:"string" enum:"LambdaFunctionTimeoutType"`
  5725. }
  5726. // String returns the string representation
  5727. func (s LambdaFunctionTimedOutEventAttributes) String() string {
  5728. return awsutil.Prettify(s)
  5729. }
  5730. // GoString returns the string representation
  5731. func (s LambdaFunctionTimedOutEventAttributes) GoString() string {
  5732. return s.String()
  5733. }
  5734. type ListActivityTypesInput struct {
  5735. _ struct{} `type:"structure"`
  5736. // The name of the domain in which the activity types have been registered.
  5737. //
  5738. // Domain is a required field
  5739. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  5740. // The maximum number of results that will be returned per call. nextPageToken
  5741. // can be used to obtain futher pages of results. The default is 1000, which
  5742. // is the maximum allowed page size. You can, however, specify a page size smaller
  5743. // than the maximum.
  5744. //
  5745. // This is an upper limit only; the actual number of results returned per call
  5746. // may be fewer than the specified maximum.
  5747. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  5748. // If specified, only lists the activity types that have this name.
  5749. Name *string `locationName:"name" min:"1" type:"string"`
  5750. // If a NextPageToken was returned by a previous call, there are more results
  5751. // available. To retrieve the next page of results, make the call again using
  5752. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5753. //
  5754. // The configured maximumPageSize determines how many results can be returned
  5755. // in a single call.
  5756. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5757. // Specifies the registration status of the activity types to list.
  5758. //
  5759. // RegistrationStatus is a required field
  5760. RegistrationStatus *string `locationName:"registrationStatus" type:"string" required:"true" enum:"RegistrationStatus"`
  5761. // When set to true, returns the results in reverse order. By default, the results
  5762. // are returned in ascending alphabetical order by name of the activity types.
  5763. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  5764. }
  5765. // String returns the string representation
  5766. func (s ListActivityTypesInput) String() string {
  5767. return awsutil.Prettify(s)
  5768. }
  5769. // GoString returns the string representation
  5770. func (s ListActivityTypesInput) GoString() string {
  5771. return s.String()
  5772. }
  5773. // Validate inspects the fields of the type to determine if they are valid.
  5774. func (s *ListActivityTypesInput) Validate() error {
  5775. invalidParams := request.ErrInvalidParams{Context: "ListActivityTypesInput"}
  5776. if s.Domain == nil {
  5777. invalidParams.Add(request.NewErrParamRequired("Domain"))
  5778. }
  5779. if s.Domain != nil && len(*s.Domain) < 1 {
  5780. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  5781. }
  5782. if s.Name != nil && len(*s.Name) < 1 {
  5783. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5784. }
  5785. if s.RegistrationStatus == nil {
  5786. invalidParams.Add(request.NewErrParamRequired("RegistrationStatus"))
  5787. }
  5788. if invalidParams.Len() > 0 {
  5789. return invalidParams
  5790. }
  5791. return nil
  5792. }
  5793. // Contains a paginated list of activity type information structures.
  5794. type ListActivityTypesOutput struct {
  5795. _ struct{} `type:"structure"`
  5796. // If a NextPageToken was returned by a previous call, there are more results
  5797. // available. To retrieve the next page of results, make the call again using
  5798. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5799. //
  5800. // The configured maximumPageSize determines how many results can be returned
  5801. // in a single call.
  5802. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5803. // List of activity type information.
  5804. //
  5805. // TypeInfos is a required field
  5806. TypeInfos []*ActivityTypeInfo `locationName:"typeInfos" type:"list" required:"true"`
  5807. }
  5808. // String returns the string representation
  5809. func (s ListActivityTypesOutput) String() string {
  5810. return awsutil.Prettify(s)
  5811. }
  5812. // GoString returns the string representation
  5813. func (s ListActivityTypesOutput) GoString() string {
  5814. return s.String()
  5815. }
  5816. type ListClosedWorkflowExecutionsInput struct {
  5817. _ struct{} `type:"structure"`
  5818. // If specified, only workflow executions that match this close status are listed.
  5819. // For example, if TERMINATED is specified, then only TERMINATED workflow executions
  5820. // are listed.
  5821. //
  5822. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  5823. // exclusive. You can specify at most one of these in a request.
  5824. CloseStatusFilter *CloseStatusFilter `locationName:"closeStatusFilter" type:"structure"`
  5825. // If specified, the workflow executions are included in the returned results
  5826. // based on whether their close times are within the range specified by this
  5827. // filter. Also, if this parameter is specified, the returned results are ordered
  5828. // by their close times.
  5829. //
  5830. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  5831. // one of these in a request but not both.
  5832. CloseTimeFilter *ExecutionTimeFilter `locationName:"closeTimeFilter" type:"structure"`
  5833. // The name of the domain that contains the workflow executions to list.
  5834. //
  5835. // Domain is a required field
  5836. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  5837. // If specified, only workflow executions matching the workflow ID specified
  5838. // in the filter are returned.
  5839. //
  5840. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  5841. // exclusive. You can specify at most one of these in a request.
  5842. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  5843. // The maximum number of results that will be returned per call. nextPageToken
  5844. // can be used to obtain futher pages of results. The default is 1000, which
  5845. // is the maximum allowed page size. You can, however, specify a page size smaller
  5846. // than the maximum.
  5847. //
  5848. // This is an upper limit only; the actual number of results returned per call
  5849. // may be fewer than the specified maximum.
  5850. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  5851. // If a NextPageToken was returned by a previous call, there are more results
  5852. // available. To retrieve the next page of results, make the call again using
  5853. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5854. //
  5855. // The configured maximumPageSize determines how many results can be returned
  5856. // in a single call.
  5857. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5858. // When set to true, returns the results in reverse order. By default the results
  5859. // are returned in descending order of the start or the close time of the executions.
  5860. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  5861. // If specified, the workflow executions are included in the returned results
  5862. // based on whether their start times are within the range specified by this
  5863. // filter. Also, if this parameter is specified, the returned results are ordered
  5864. // by their start times.
  5865. //
  5866. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  5867. // one of these in a request but not both.
  5868. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure"`
  5869. // If specified, only executions that have the matching tag are listed.
  5870. //
  5871. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  5872. // exclusive. You can specify at most one of these in a request.
  5873. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  5874. // If specified, only executions of the type specified in the filter are returned.
  5875. //
  5876. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  5877. // exclusive. You can specify at most one of these in a request.
  5878. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  5879. }
  5880. // String returns the string representation
  5881. func (s ListClosedWorkflowExecutionsInput) String() string {
  5882. return awsutil.Prettify(s)
  5883. }
  5884. // GoString returns the string representation
  5885. func (s ListClosedWorkflowExecutionsInput) GoString() string {
  5886. return s.String()
  5887. }
  5888. // Validate inspects the fields of the type to determine if they are valid.
  5889. func (s *ListClosedWorkflowExecutionsInput) Validate() error {
  5890. invalidParams := request.ErrInvalidParams{Context: "ListClosedWorkflowExecutionsInput"}
  5891. if s.Domain == nil {
  5892. invalidParams.Add(request.NewErrParamRequired("Domain"))
  5893. }
  5894. if s.Domain != nil && len(*s.Domain) < 1 {
  5895. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  5896. }
  5897. if s.CloseStatusFilter != nil {
  5898. if err := s.CloseStatusFilter.Validate(); err != nil {
  5899. invalidParams.AddNested("CloseStatusFilter", err.(request.ErrInvalidParams))
  5900. }
  5901. }
  5902. if s.CloseTimeFilter != nil {
  5903. if err := s.CloseTimeFilter.Validate(); err != nil {
  5904. invalidParams.AddNested("CloseTimeFilter", err.(request.ErrInvalidParams))
  5905. }
  5906. }
  5907. if s.ExecutionFilter != nil {
  5908. if err := s.ExecutionFilter.Validate(); err != nil {
  5909. invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams))
  5910. }
  5911. }
  5912. if s.StartTimeFilter != nil {
  5913. if err := s.StartTimeFilter.Validate(); err != nil {
  5914. invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams))
  5915. }
  5916. }
  5917. if s.TagFilter != nil {
  5918. if err := s.TagFilter.Validate(); err != nil {
  5919. invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams))
  5920. }
  5921. }
  5922. if s.TypeFilter != nil {
  5923. if err := s.TypeFilter.Validate(); err != nil {
  5924. invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams))
  5925. }
  5926. }
  5927. if invalidParams.Len() > 0 {
  5928. return invalidParams
  5929. }
  5930. return nil
  5931. }
  5932. type ListDomainsInput struct {
  5933. _ struct{} `type:"structure"`
  5934. // The maximum number of results that will be returned per call. nextPageToken
  5935. // can be used to obtain futher pages of results. The default is 1000, which
  5936. // is the maximum allowed page size. You can, however, specify a page size smaller
  5937. // than the maximum.
  5938. //
  5939. // This is an upper limit only; the actual number of results returned per call
  5940. // may be fewer than the specified maximum.
  5941. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  5942. // If a NextPageToken was returned by a previous call, there are more results
  5943. // available. To retrieve the next page of results, make the call again using
  5944. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5945. //
  5946. // The configured maximumPageSize determines how many results can be returned
  5947. // in a single call.
  5948. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5949. // Specifies the registration status of the domains to list.
  5950. //
  5951. // RegistrationStatus is a required field
  5952. RegistrationStatus *string `locationName:"registrationStatus" type:"string" required:"true" enum:"RegistrationStatus"`
  5953. // When set to true, returns the results in reverse order. By default, the results
  5954. // are returned in ascending alphabetical order by name of the domains.
  5955. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  5956. }
  5957. // String returns the string representation
  5958. func (s ListDomainsInput) String() string {
  5959. return awsutil.Prettify(s)
  5960. }
  5961. // GoString returns the string representation
  5962. func (s ListDomainsInput) GoString() string {
  5963. return s.String()
  5964. }
  5965. // Validate inspects the fields of the type to determine if they are valid.
  5966. func (s *ListDomainsInput) Validate() error {
  5967. invalidParams := request.ErrInvalidParams{Context: "ListDomainsInput"}
  5968. if s.RegistrationStatus == nil {
  5969. invalidParams.Add(request.NewErrParamRequired("RegistrationStatus"))
  5970. }
  5971. if invalidParams.Len() > 0 {
  5972. return invalidParams
  5973. }
  5974. return nil
  5975. }
  5976. // Contains a paginated collection of DomainInfo structures.
  5977. type ListDomainsOutput struct {
  5978. _ struct{} `type:"structure"`
  5979. // A list of DomainInfo structures.
  5980. //
  5981. // DomainInfos is a required field
  5982. DomainInfos []*DomainInfo `locationName:"domainInfos" type:"list" required:"true"`
  5983. // If a NextPageToken was returned by a previous call, there are more results
  5984. // available. To retrieve the next page of results, make the call again using
  5985. // the returned token in nextPageToken. Keep all other arguments unchanged.
  5986. //
  5987. // The configured maximumPageSize determines how many results can be returned
  5988. // in a single call.
  5989. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  5990. }
  5991. // String returns the string representation
  5992. func (s ListDomainsOutput) String() string {
  5993. return awsutil.Prettify(s)
  5994. }
  5995. // GoString returns the string representation
  5996. func (s ListDomainsOutput) GoString() string {
  5997. return s.String()
  5998. }
  5999. type ListOpenWorkflowExecutionsInput struct {
  6000. _ struct{} `type:"structure"`
  6001. // The name of the domain that contains the workflow executions to list.
  6002. //
  6003. // Domain is a required field
  6004. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  6005. // If specified, only workflow executions matching the workflow ID specified
  6006. // in the filter are returned.
  6007. //
  6008. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  6009. // specify at most one of these in a request.
  6010. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  6011. // The maximum number of results that will be returned per call. nextPageToken
  6012. // can be used to obtain futher pages of results. The default is 1000, which
  6013. // is the maximum allowed page size. You can, however, specify a page size smaller
  6014. // than the maximum.
  6015. //
  6016. // This is an upper limit only; the actual number of results returned per call
  6017. // may be fewer than the specified maximum.
  6018. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  6019. // If a NextPageToken was returned by a previous call, there are more results
  6020. // available. To retrieve the next page of results, make the call again using
  6021. // the returned token in nextPageToken. Keep all other arguments unchanged.
  6022. //
  6023. // The configured maximumPageSize determines how many results can be returned
  6024. // in a single call.
  6025. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  6026. // When set to true, returns the results in reverse order. By default the results
  6027. // are returned in descending order of the start time of the executions.
  6028. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  6029. // Workflow executions are included in the returned results based on whether
  6030. // their start times are within the range specified by this filter.
  6031. //
  6032. // StartTimeFilter is a required field
  6033. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure" required:"true"`
  6034. // If specified, only executions that have the matching tag are listed.
  6035. //
  6036. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  6037. // specify at most one of these in a request.
  6038. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  6039. // If specified, only executions of the type specified in the filter are returned.
  6040. //
  6041. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  6042. // specify at most one of these in a request.
  6043. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  6044. }
  6045. // String returns the string representation
  6046. func (s ListOpenWorkflowExecutionsInput) String() string {
  6047. return awsutil.Prettify(s)
  6048. }
  6049. // GoString returns the string representation
  6050. func (s ListOpenWorkflowExecutionsInput) GoString() string {
  6051. return s.String()
  6052. }
  6053. // Validate inspects the fields of the type to determine if they are valid.
  6054. func (s *ListOpenWorkflowExecutionsInput) Validate() error {
  6055. invalidParams := request.ErrInvalidParams{Context: "ListOpenWorkflowExecutionsInput"}
  6056. if s.Domain == nil {
  6057. invalidParams.Add(request.NewErrParamRequired("Domain"))
  6058. }
  6059. if s.Domain != nil && len(*s.Domain) < 1 {
  6060. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  6061. }
  6062. if s.StartTimeFilter == nil {
  6063. invalidParams.Add(request.NewErrParamRequired("StartTimeFilter"))
  6064. }
  6065. if s.ExecutionFilter != nil {
  6066. if err := s.ExecutionFilter.Validate(); err != nil {
  6067. invalidParams.AddNested("ExecutionFilter", err.(request.ErrInvalidParams))
  6068. }
  6069. }
  6070. if s.StartTimeFilter != nil {
  6071. if err := s.StartTimeFilter.Validate(); err != nil {
  6072. invalidParams.AddNested("StartTimeFilter", err.(request.ErrInvalidParams))
  6073. }
  6074. }
  6075. if s.TagFilter != nil {
  6076. if err := s.TagFilter.Validate(); err != nil {
  6077. invalidParams.AddNested("TagFilter", err.(request.ErrInvalidParams))
  6078. }
  6079. }
  6080. if s.TypeFilter != nil {
  6081. if err := s.TypeFilter.Validate(); err != nil {
  6082. invalidParams.AddNested("TypeFilter", err.(request.ErrInvalidParams))
  6083. }
  6084. }
  6085. if invalidParams.Len() > 0 {
  6086. return invalidParams
  6087. }
  6088. return nil
  6089. }
  6090. type ListWorkflowTypesInput struct {
  6091. _ struct{} `type:"structure"`
  6092. // The name of the domain in which the workflow types have been registered.
  6093. //
  6094. // Domain is a required field
  6095. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  6096. // The maximum number of results that will be returned per call. nextPageToken
  6097. // can be used to obtain futher pages of results. The default is 1000, which
  6098. // is the maximum allowed page size. You can, however, specify a page size smaller
  6099. // than the maximum.
  6100. //
  6101. // This is an upper limit only; the actual number of results returned per call
  6102. // may be fewer than the specified maximum.
  6103. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  6104. // If specified, lists the workflow type with this name.
  6105. Name *string `locationName:"name" min:"1" type:"string"`
  6106. // If a NextPageToken was returned by a previous call, there are more results
  6107. // available. To retrieve the next page of results, make the call again using
  6108. // the returned token in nextPageToken. Keep all other arguments unchanged.
  6109. //
  6110. // The configured maximumPageSize determines how many results can be returned
  6111. // in a single call.
  6112. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  6113. // Specifies the registration status of the workflow types to list.
  6114. //
  6115. // RegistrationStatus is a required field
  6116. RegistrationStatus *string `locationName:"registrationStatus" type:"string" required:"true" enum:"RegistrationStatus"`
  6117. // When set to true, returns the results in reverse order. By default the results
  6118. // are returned in ascending alphabetical order of the name of the workflow
  6119. // types.
  6120. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  6121. }
  6122. // String returns the string representation
  6123. func (s ListWorkflowTypesInput) String() string {
  6124. return awsutil.Prettify(s)
  6125. }
  6126. // GoString returns the string representation
  6127. func (s ListWorkflowTypesInput) GoString() string {
  6128. return s.String()
  6129. }
  6130. // Validate inspects the fields of the type to determine if they are valid.
  6131. func (s *ListWorkflowTypesInput) Validate() error {
  6132. invalidParams := request.ErrInvalidParams{Context: "ListWorkflowTypesInput"}
  6133. if s.Domain == nil {
  6134. invalidParams.Add(request.NewErrParamRequired("Domain"))
  6135. }
  6136. if s.Domain != nil && len(*s.Domain) < 1 {
  6137. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  6138. }
  6139. if s.Name != nil && len(*s.Name) < 1 {
  6140. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6141. }
  6142. if s.RegistrationStatus == nil {
  6143. invalidParams.Add(request.NewErrParamRequired("RegistrationStatus"))
  6144. }
  6145. if invalidParams.Len() > 0 {
  6146. return invalidParams
  6147. }
  6148. return nil
  6149. }
  6150. // Contains a paginated list of information structures about workflow types.
  6151. type ListWorkflowTypesOutput struct {
  6152. _ struct{} `type:"structure"`
  6153. // If a NextPageToken was returned by a previous call, there are more results
  6154. // available. To retrieve the next page of results, make the call again using
  6155. // the returned token in nextPageToken. Keep all other arguments unchanged.
  6156. //
  6157. // The configured maximumPageSize determines how many results can be returned
  6158. // in a single call.
  6159. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  6160. // The list of workflow type information.
  6161. //
  6162. // TypeInfos is a required field
  6163. TypeInfos []*WorkflowTypeInfo `locationName:"typeInfos" type:"list" required:"true"`
  6164. }
  6165. // String returns the string representation
  6166. func (s ListWorkflowTypesOutput) String() string {
  6167. return awsutil.Prettify(s)
  6168. }
  6169. // GoString returns the string representation
  6170. func (s ListWorkflowTypesOutput) GoString() string {
  6171. return s.String()
  6172. }
  6173. // Provides details of the MarkerRecorded event.
  6174. type MarkerRecordedEventAttributes struct {
  6175. _ struct{} `type:"structure"`
  6176. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  6177. // that resulted in the RecordMarker decision that requested this marker. This
  6178. // information can be useful for diagnosing problems by tracing back the chain
  6179. // of events leading up to this event.
  6180. //
  6181. // DecisionTaskCompletedEventId is a required field
  6182. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  6183. // Details of the marker (if any).
  6184. Details *string `locationName:"details" type:"string"`
  6185. // The name of the marker.
  6186. //
  6187. // MarkerName is a required field
  6188. MarkerName *string `locationName:"markerName" min:"1" type:"string" required:"true"`
  6189. }
  6190. // String returns the string representation
  6191. func (s MarkerRecordedEventAttributes) String() string {
  6192. return awsutil.Prettify(s)
  6193. }
  6194. // GoString returns the string representation
  6195. func (s MarkerRecordedEventAttributes) GoString() string {
  6196. return s.String()
  6197. }
  6198. // Contains the count of tasks in a task list.
  6199. type PendingTaskCount struct {
  6200. _ struct{} `type:"structure"`
  6201. // The number of tasks in the task list.
  6202. //
  6203. // Count is a required field
  6204. Count *int64 `locationName:"count" type:"integer" required:"true"`
  6205. // If set to true, indicates that the actual count was more than the maximum
  6206. // supported by this API and the count returned is the truncated value.
  6207. Truncated *bool `locationName:"truncated" type:"boolean"`
  6208. }
  6209. // String returns the string representation
  6210. func (s PendingTaskCount) String() string {
  6211. return awsutil.Prettify(s)
  6212. }
  6213. // GoString returns the string representation
  6214. func (s PendingTaskCount) GoString() string {
  6215. return s.String()
  6216. }
  6217. type PollForActivityTaskInput struct {
  6218. _ struct{} `type:"structure"`
  6219. // The name of the domain that contains the task lists being polled.
  6220. //
  6221. // Domain is a required field
  6222. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  6223. // Identity of the worker making the request, recorded in the ActivityTaskStarted
  6224. // event in the workflow history. This enables diagnostic tracing when problems
  6225. // arise. The form of this identity is user defined.
  6226. Identity *string `locationName:"identity" type:"string"`
  6227. // Specifies the task list to poll for activity tasks.
  6228. //
  6229. // The specified string must not start or end with whitespace. It must not contain
  6230. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6231. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6232. //
  6233. // TaskList is a required field
  6234. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  6235. }
  6236. // String returns the string representation
  6237. func (s PollForActivityTaskInput) String() string {
  6238. return awsutil.Prettify(s)
  6239. }
  6240. // GoString returns the string representation
  6241. func (s PollForActivityTaskInput) GoString() string {
  6242. return s.String()
  6243. }
  6244. // Validate inspects the fields of the type to determine if they are valid.
  6245. func (s *PollForActivityTaskInput) Validate() error {
  6246. invalidParams := request.ErrInvalidParams{Context: "PollForActivityTaskInput"}
  6247. if s.Domain == nil {
  6248. invalidParams.Add(request.NewErrParamRequired("Domain"))
  6249. }
  6250. if s.Domain != nil && len(*s.Domain) < 1 {
  6251. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  6252. }
  6253. if s.TaskList == nil {
  6254. invalidParams.Add(request.NewErrParamRequired("TaskList"))
  6255. }
  6256. if s.TaskList != nil {
  6257. if err := s.TaskList.Validate(); err != nil {
  6258. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  6259. }
  6260. }
  6261. if invalidParams.Len() > 0 {
  6262. return invalidParams
  6263. }
  6264. return nil
  6265. }
  6266. // Unit of work sent to an activity worker.
  6267. type PollForActivityTaskOutput struct {
  6268. _ struct{} `type:"structure"`
  6269. // The unique ID of the task.
  6270. //
  6271. // ActivityId is a required field
  6272. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  6273. // The type of this activity task.
  6274. //
  6275. // ActivityType is a required field
  6276. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  6277. // The inputs provided when the activity task was scheduled. The form of the
  6278. // input is user defined and should be meaningful to the activity implementation.
  6279. Input *string `locationName:"input" type:"string"`
  6280. // The ID of the ActivityTaskStarted event recorded in the history.
  6281. //
  6282. // StartedEventId is a required field
  6283. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  6284. // The opaque string used as a handle on the task. This token is used by workers
  6285. // to communicate progress and response information back to the system about
  6286. // the task.
  6287. //
  6288. // TaskToken is a required field
  6289. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  6290. // The workflow execution that started this activity task.
  6291. //
  6292. // WorkflowExecution is a required field
  6293. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  6294. }
  6295. // String returns the string representation
  6296. func (s PollForActivityTaskOutput) String() string {
  6297. return awsutil.Prettify(s)
  6298. }
  6299. // GoString returns the string representation
  6300. func (s PollForActivityTaskOutput) GoString() string {
  6301. return s.String()
  6302. }
  6303. type PollForDecisionTaskInput struct {
  6304. _ struct{} `type:"structure"`
  6305. // The name of the domain containing the task lists to poll.
  6306. //
  6307. // Domain is a required field
  6308. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  6309. // Identity of the decider making the request, which is recorded in the DecisionTaskStarted
  6310. // event in the workflow history. This enables diagnostic tracing when problems
  6311. // arise. The form of this identity is user defined.
  6312. Identity *string `locationName:"identity" type:"string"`
  6313. // The maximum number of results that will be returned per call. nextPageToken
  6314. // can be used to obtain futher pages of results. The default is 1000, which
  6315. // is the maximum allowed page size. You can, however, specify a page size smaller
  6316. // than the maximum.
  6317. //
  6318. // This is an upper limit only; the actual number of results returned per call
  6319. // may be fewer than the specified maximum.
  6320. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  6321. // If a NextPageToken was returned by a previous call, there are more results
  6322. // available. To retrieve the next page of results, make the call again using
  6323. // the returned token in nextPageToken. Keep all other arguments unchanged.
  6324. //
  6325. // The configured maximumPageSize determines how many results can be returned
  6326. // in a single call.
  6327. //
  6328. // The nextPageToken returned by this action cannot be used with GetWorkflowExecutionHistory
  6329. // to get the next page. You must call PollForDecisionTask again (with the nextPageToken)
  6330. // to retrieve the next page of history records. Calling PollForDecisionTask
  6331. // with a nextPageToken will not return a new decision task.
  6332. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  6333. // When set to true, returns the events in reverse order. By default the results
  6334. // are returned in ascending order of the eventTimestamp of the events.
  6335. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  6336. // Specifies the task list to poll for decision tasks.
  6337. //
  6338. // The specified string must not start or end with whitespace. It must not contain
  6339. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6340. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6341. //
  6342. // TaskList is a required field
  6343. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  6344. }
  6345. // String returns the string representation
  6346. func (s PollForDecisionTaskInput) String() string {
  6347. return awsutil.Prettify(s)
  6348. }
  6349. // GoString returns the string representation
  6350. func (s PollForDecisionTaskInput) GoString() string {
  6351. return s.String()
  6352. }
  6353. // Validate inspects the fields of the type to determine if they are valid.
  6354. func (s *PollForDecisionTaskInput) Validate() error {
  6355. invalidParams := request.ErrInvalidParams{Context: "PollForDecisionTaskInput"}
  6356. if s.Domain == nil {
  6357. invalidParams.Add(request.NewErrParamRequired("Domain"))
  6358. }
  6359. if s.Domain != nil && len(*s.Domain) < 1 {
  6360. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  6361. }
  6362. if s.TaskList == nil {
  6363. invalidParams.Add(request.NewErrParamRequired("TaskList"))
  6364. }
  6365. if s.TaskList != nil {
  6366. if err := s.TaskList.Validate(); err != nil {
  6367. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  6368. }
  6369. }
  6370. if invalidParams.Len() > 0 {
  6371. return invalidParams
  6372. }
  6373. return nil
  6374. }
  6375. // A structure that represents a decision task. Decision tasks are sent to deciders
  6376. // in order for them to make decisions.
  6377. type PollForDecisionTaskOutput struct {
  6378. _ struct{} `type:"structure"`
  6379. // A paginated list of history events of the workflow execution. The decider
  6380. // uses this during the processing of the decision task.
  6381. //
  6382. // Events is a required field
  6383. Events []*HistoryEvent `locationName:"events" type:"list" required:"true"`
  6384. // If a NextPageToken was returned by a previous call, there are more results
  6385. // available. To retrieve the next page of results, make the call again using
  6386. // the returned token in nextPageToken. Keep all other arguments unchanged.
  6387. //
  6388. // The configured maximumPageSize determines how many results can be returned
  6389. // in a single call.
  6390. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  6391. // The ID of the DecisionTaskStarted event of the previous decision task of
  6392. // this workflow execution that was processed by the decider. This can be used
  6393. // to determine the events in the history new since the last decision task received
  6394. // by the decider.
  6395. PreviousStartedEventId *int64 `locationName:"previousStartedEventId" type:"long"`
  6396. // The ID of the DecisionTaskStarted event recorded in the history.
  6397. //
  6398. // StartedEventId is a required field
  6399. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  6400. // The opaque string used as a handle on the task. This token is used by workers
  6401. // to communicate progress and response information back to the system about
  6402. // the task.
  6403. //
  6404. // TaskToken is a required field
  6405. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  6406. // The workflow execution for which this decision task was created.
  6407. //
  6408. // WorkflowExecution is a required field
  6409. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  6410. // The type of the workflow execution for which this decision task was created.
  6411. //
  6412. // WorkflowType is a required field
  6413. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  6414. }
  6415. // String returns the string representation
  6416. func (s PollForDecisionTaskOutput) String() string {
  6417. return awsutil.Prettify(s)
  6418. }
  6419. // GoString returns the string representation
  6420. func (s PollForDecisionTaskOutput) GoString() string {
  6421. return s.String()
  6422. }
  6423. type RecordActivityTaskHeartbeatInput struct {
  6424. _ struct{} `type:"structure"`
  6425. // If specified, contains details about the progress of the task.
  6426. Details *string `locationName:"details" type:"string"`
  6427. // The taskToken of the ActivityTask.
  6428. //
  6429. // taskToken is generated by the service and should be treated as an opaque
  6430. // value. If the task is passed to another process, its taskToken must also
  6431. // be passed. This enables it to provide its progress and respond with results.
  6432. //
  6433. // TaskToken is a required field
  6434. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  6435. }
  6436. // String returns the string representation
  6437. func (s RecordActivityTaskHeartbeatInput) String() string {
  6438. return awsutil.Prettify(s)
  6439. }
  6440. // GoString returns the string representation
  6441. func (s RecordActivityTaskHeartbeatInput) GoString() string {
  6442. return s.String()
  6443. }
  6444. // Validate inspects the fields of the type to determine if they are valid.
  6445. func (s *RecordActivityTaskHeartbeatInput) Validate() error {
  6446. invalidParams := request.ErrInvalidParams{Context: "RecordActivityTaskHeartbeatInput"}
  6447. if s.TaskToken == nil {
  6448. invalidParams.Add(request.NewErrParamRequired("TaskToken"))
  6449. }
  6450. if s.TaskToken != nil && len(*s.TaskToken) < 1 {
  6451. invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1))
  6452. }
  6453. if invalidParams.Len() > 0 {
  6454. return invalidParams
  6455. }
  6456. return nil
  6457. }
  6458. // Status information about an activity task.
  6459. type RecordActivityTaskHeartbeatOutput struct {
  6460. _ struct{} `type:"structure"`
  6461. // Set to true if cancellation of the task is requested.
  6462. //
  6463. // CancelRequested is a required field
  6464. CancelRequested *bool `locationName:"cancelRequested" type:"boolean" required:"true"`
  6465. }
  6466. // String returns the string representation
  6467. func (s RecordActivityTaskHeartbeatOutput) String() string {
  6468. return awsutil.Prettify(s)
  6469. }
  6470. // GoString returns the string representation
  6471. func (s RecordActivityTaskHeartbeatOutput) GoString() string {
  6472. return s.String()
  6473. }
  6474. // Provides details of the RecordMarker decision.
  6475. //
  6476. // Access Control
  6477. //
  6478. // You can use IAM policies to control this decision's access to Amazon SWF
  6479. // resources as follows:
  6480. //
  6481. // * Use a Resource element with the domain name to limit the action to only
  6482. // specified domains.
  6483. // * Use an Action element to allow or deny permission to call this action.
  6484. //
  6485. // * You cannot use an IAM policy to constrain this action's parameters.
  6486. //
  6487. // If the caller does not have sufficient permissions to invoke the action,
  6488. // or the parameter values fall outside the specified constraints, the action
  6489. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  6490. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  6491. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  6492. type RecordMarkerDecisionAttributes struct {
  6493. _ struct{} `type:"structure"`
  6494. // Optional. details of the marker.
  6495. Details *string `locationName:"details" type:"string"`
  6496. // Required. The name of the marker.
  6497. //
  6498. // MarkerName is a required field
  6499. MarkerName *string `locationName:"markerName" min:"1" type:"string" required:"true"`
  6500. }
  6501. // String returns the string representation
  6502. func (s RecordMarkerDecisionAttributes) String() string {
  6503. return awsutil.Prettify(s)
  6504. }
  6505. // GoString returns the string representation
  6506. func (s RecordMarkerDecisionAttributes) GoString() string {
  6507. return s.String()
  6508. }
  6509. // Validate inspects the fields of the type to determine if they are valid.
  6510. func (s *RecordMarkerDecisionAttributes) Validate() error {
  6511. invalidParams := request.ErrInvalidParams{Context: "RecordMarkerDecisionAttributes"}
  6512. if s.MarkerName == nil {
  6513. invalidParams.Add(request.NewErrParamRequired("MarkerName"))
  6514. }
  6515. if s.MarkerName != nil && len(*s.MarkerName) < 1 {
  6516. invalidParams.Add(request.NewErrParamMinLen("MarkerName", 1))
  6517. }
  6518. if invalidParams.Len() > 0 {
  6519. return invalidParams
  6520. }
  6521. return nil
  6522. }
  6523. // Provides details of the RecordMarkerFailed event.
  6524. type RecordMarkerFailedEventAttributes struct {
  6525. _ struct{} `type:"structure"`
  6526. // The cause of the failure. This information is generated by the system and
  6527. // can be useful for diagnostic purposes.
  6528. //
  6529. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  6530. // lacked sufficient permissions. For details and example IAM policies, see
  6531. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  6532. //
  6533. // Cause is a required field
  6534. Cause *string `locationName:"cause" type:"string" required:"true" enum:"RecordMarkerFailedCause"`
  6535. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  6536. // that resulted in the RecordMarkerFailed decision for this cancellation request.
  6537. // This information can be useful for diagnosing problems by tracing back the
  6538. // chain of events leading up to this event.
  6539. //
  6540. // DecisionTaskCompletedEventId is a required field
  6541. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  6542. // The marker's name.
  6543. //
  6544. // MarkerName is a required field
  6545. MarkerName *string `locationName:"markerName" min:"1" type:"string" required:"true"`
  6546. }
  6547. // String returns the string representation
  6548. func (s RecordMarkerFailedEventAttributes) String() string {
  6549. return awsutil.Prettify(s)
  6550. }
  6551. // GoString returns the string representation
  6552. func (s RecordMarkerFailedEventAttributes) GoString() string {
  6553. return s.String()
  6554. }
  6555. type RegisterActivityTypeInput struct {
  6556. _ struct{} `type:"structure"`
  6557. // If set, specifies the default maximum time before which a worker processing
  6558. // a task of this type must report progress by calling RecordActivityTaskHeartbeat.
  6559. // If the timeout is exceeded, the activity task is automatically timed out.
  6560. // This default can be overridden when scheduling an activity task using the
  6561. // ScheduleActivityTask decision. If the activity worker subsequently attempts
  6562. // to record a heartbeat or returns a result, the activity worker receives an
  6563. // UnknownResource fault. In this case, Amazon SWF no longer considers the activity
  6564. // task to be valid; the activity worker should clean up the activity task.
  6565. //
  6566. // The duration is specified in seconds; an integer greater than or equal to
  6567. // 0. The value "NONE" can be used to specify unlimited duration.
  6568. DefaultTaskHeartbeatTimeout *string `locationName:"defaultTaskHeartbeatTimeout" type:"string"`
  6569. // If set, specifies the default task list to use for scheduling tasks of this
  6570. // activity type. This default task list is used if a task list is not provided
  6571. // when a task is scheduled through the ScheduleActivityTask decision.
  6572. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  6573. // The default task priority to assign to the activity type. If not assigned,
  6574. // then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE
  6575. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  6576. // higher priority.
  6577. //
  6578. // For more information about setting task priority, see Setting Task Priority
  6579. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  6580. // in the Amazon Simple Workflow Developer Guide.
  6581. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  6582. // If set, specifies the default maximum duration for a task of this activity
  6583. // type. This default can be overridden when scheduling an activity task using
  6584. // the ScheduleActivityTask decision.
  6585. //
  6586. // The duration is specified in seconds; an integer greater than or equal to
  6587. // 0. The value "NONE" can be used to specify unlimited duration.
  6588. DefaultTaskScheduleToCloseTimeout *string `locationName:"defaultTaskScheduleToCloseTimeout" type:"string"`
  6589. // If set, specifies the default maximum duration that a task of this activity
  6590. // type can wait before being assigned to a worker. This default can be overridden
  6591. // when scheduling an activity task using the ScheduleActivityTask decision.
  6592. //
  6593. // The duration is specified in seconds; an integer greater than or equal to
  6594. // 0. The value "NONE" can be used to specify unlimited duration.
  6595. DefaultTaskScheduleToStartTimeout *string `locationName:"defaultTaskScheduleToStartTimeout" type:"string"`
  6596. // If set, specifies the default maximum duration that a worker can take to
  6597. // process tasks of this activity type. This default can be overridden when
  6598. // scheduling an activity task using the ScheduleActivityTask decision.
  6599. //
  6600. // The duration is specified in seconds; an integer greater than or equal to
  6601. // 0. The value "NONE" can be used to specify unlimited duration.
  6602. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  6603. // A textual description of the activity type.
  6604. Description *string `locationName:"description" type:"string"`
  6605. // The name of the domain in which this activity is to be registered.
  6606. //
  6607. // Domain is a required field
  6608. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  6609. // The name of the activity type within the domain.
  6610. //
  6611. // The specified string must not start or end with whitespace. It must not contain
  6612. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6613. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6614. //
  6615. // Name is a required field
  6616. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6617. // The version of the activity type.
  6618. //
  6619. // The activity type consists of the name and version, the combination of which
  6620. // must be unique within the domain.The specified string must not start or end with whitespace. It must not contain
  6621. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6622. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6623. //
  6624. // Version is a required field
  6625. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  6626. }
  6627. // String returns the string representation
  6628. func (s RegisterActivityTypeInput) String() string {
  6629. return awsutil.Prettify(s)
  6630. }
  6631. // GoString returns the string representation
  6632. func (s RegisterActivityTypeInput) GoString() string {
  6633. return s.String()
  6634. }
  6635. // Validate inspects the fields of the type to determine if they are valid.
  6636. func (s *RegisterActivityTypeInput) Validate() error {
  6637. invalidParams := request.ErrInvalidParams{Context: "RegisterActivityTypeInput"}
  6638. if s.Domain == nil {
  6639. invalidParams.Add(request.NewErrParamRequired("Domain"))
  6640. }
  6641. if s.Domain != nil && len(*s.Domain) < 1 {
  6642. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  6643. }
  6644. if s.Name == nil {
  6645. invalidParams.Add(request.NewErrParamRequired("Name"))
  6646. }
  6647. if s.Name != nil && len(*s.Name) < 1 {
  6648. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6649. }
  6650. if s.Version == nil {
  6651. invalidParams.Add(request.NewErrParamRequired("Version"))
  6652. }
  6653. if s.Version != nil && len(*s.Version) < 1 {
  6654. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  6655. }
  6656. if s.DefaultTaskList != nil {
  6657. if err := s.DefaultTaskList.Validate(); err != nil {
  6658. invalidParams.AddNested("DefaultTaskList", err.(request.ErrInvalidParams))
  6659. }
  6660. }
  6661. if invalidParams.Len() > 0 {
  6662. return invalidParams
  6663. }
  6664. return nil
  6665. }
  6666. type RegisterActivityTypeOutput struct {
  6667. _ struct{} `type:"structure"`
  6668. }
  6669. // String returns the string representation
  6670. func (s RegisterActivityTypeOutput) String() string {
  6671. return awsutil.Prettify(s)
  6672. }
  6673. // GoString returns the string representation
  6674. func (s RegisterActivityTypeOutput) GoString() string {
  6675. return s.String()
  6676. }
  6677. type RegisterDomainInput struct {
  6678. _ struct{} `type:"structure"`
  6679. // A text description of the domain.
  6680. Description *string `locationName:"description" type:"string"`
  6681. // Name of the domain to register. The name must be unique in the region that
  6682. // the domain is registered in.
  6683. //
  6684. // The specified string must not start or end with whitespace. It must not contain
  6685. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6686. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6687. //
  6688. // Name is a required field
  6689. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6690. // The duration (in days) that records and histories of workflow executions
  6691. // on the domain should be kept by the service. After the retention period,
  6692. // the workflow execution is not available in the results of visibility calls.
  6693. //
  6694. // If you pass the value NONE or 0 (zero), then the workflow execution history
  6695. // will not be retained. As soon as the workflow execution completes, the execution
  6696. // record and its history are deleted.
  6697. //
  6698. // The maximum workflow execution retention period is 90 days. For more information
  6699. // about Amazon SWF service limits, see: Amazon SWF Service Limits (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html)
  6700. // in the Amazon SWF Developer Guide.
  6701. //
  6702. // WorkflowExecutionRetentionPeriodInDays is a required field
  6703. WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" min:"1" type:"string" required:"true"`
  6704. }
  6705. // String returns the string representation
  6706. func (s RegisterDomainInput) String() string {
  6707. return awsutil.Prettify(s)
  6708. }
  6709. // GoString returns the string representation
  6710. func (s RegisterDomainInput) GoString() string {
  6711. return s.String()
  6712. }
  6713. // Validate inspects the fields of the type to determine if they are valid.
  6714. func (s *RegisterDomainInput) Validate() error {
  6715. invalidParams := request.ErrInvalidParams{Context: "RegisterDomainInput"}
  6716. if s.Name == nil {
  6717. invalidParams.Add(request.NewErrParamRequired("Name"))
  6718. }
  6719. if s.Name != nil && len(*s.Name) < 1 {
  6720. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6721. }
  6722. if s.WorkflowExecutionRetentionPeriodInDays == nil {
  6723. invalidParams.Add(request.NewErrParamRequired("WorkflowExecutionRetentionPeriodInDays"))
  6724. }
  6725. if s.WorkflowExecutionRetentionPeriodInDays != nil && len(*s.WorkflowExecutionRetentionPeriodInDays) < 1 {
  6726. invalidParams.Add(request.NewErrParamMinLen("WorkflowExecutionRetentionPeriodInDays", 1))
  6727. }
  6728. if invalidParams.Len() > 0 {
  6729. return invalidParams
  6730. }
  6731. return nil
  6732. }
  6733. type RegisterDomainOutput struct {
  6734. _ struct{} `type:"structure"`
  6735. }
  6736. // String returns the string representation
  6737. func (s RegisterDomainOutput) String() string {
  6738. return awsutil.Prettify(s)
  6739. }
  6740. // GoString returns the string representation
  6741. func (s RegisterDomainOutput) GoString() string {
  6742. return s.String()
  6743. }
  6744. type RegisterWorkflowTypeInput struct {
  6745. _ struct{} `type:"structure"`
  6746. // If set, specifies the default policy to use for the child workflow executions
  6747. // when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution
  6748. // action explicitly or due to an expired timeout. This default can be overridden
  6749. // when starting a workflow execution using the StartWorkflowExecution action
  6750. // or the StartChildWorkflowExecution decision.
  6751. //
  6752. // The supported child policies are:
  6753. //
  6754. // * TERMINATE: the child executions will be terminated.
  6755. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  6756. // execution by recording a WorkflowExecutionCancelRequested event in its
  6757. // history. It is up to the decider to take appropriate actions when it receives
  6758. // an execution history with this event.
  6759. // * ABANDON: no action will be taken. The child executions will continue
  6760. // to run.
  6761. DefaultChildPolicy *string `locationName:"defaultChildPolicy" type:"string" enum:"ChildPolicy"`
  6762. // If set, specifies the default maximum duration for executions of this workflow
  6763. // type. You can override this default when starting an execution through the
  6764. // StartWorkflowExecution action or StartChildWorkflowExecution decision.
  6765. //
  6766. // The duration is specified in seconds; an integer greater than or equal to
  6767. // 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot
  6768. // specify a value of "NONE" for defaultExecutionStartToCloseTimeout; there
  6769. // is a one-year max limit on the time that a workflow execution can run. Exceeding
  6770. // this limit will always cause the workflow execution to time out.
  6771. DefaultExecutionStartToCloseTimeout *string `locationName:"defaultExecutionStartToCloseTimeout" type:"string"`
  6772. // The ARN of the default IAM role to use when a workflow execution of this
  6773. // type invokes AWS Lambda functions.
  6774. //
  6775. // This default can be overridden when starting a workflow execution using the
  6776. // StartWorkflowExecution action or the StartChildWorkflowExecution and ContinueAsNewWorkflowExecution
  6777. // decision.
  6778. DefaultLambdaRole *string `locationName:"defaultLambdaRole" min:"1" type:"string"`
  6779. // If set, specifies the default task list to use for scheduling decision tasks
  6780. // for executions of this workflow type. This default is used only if a task
  6781. // list is not provided when starting the execution through the StartWorkflowExecution
  6782. // action or StartChildWorkflowExecution decision.
  6783. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  6784. // The default task priority to assign to the workflow type. If not assigned,
  6785. // then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE
  6786. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  6787. // higher priority.
  6788. //
  6789. // For more information about setting task priority, see Setting Task Priority
  6790. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  6791. // in the Amazon Simple Workflow Developer Guide.
  6792. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  6793. // If set, specifies the default maximum duration of decision tasks for this
  6794. // workflow type. This default can be overridden when starting a workflow execution
  6795. // using the StartWorkflowExecution action or the StartChildWorkflowExecution
  6796. // decision.
  6797. //
  6798. // The duration is specified in seconds; an integer greater than or equal to
  6799. // 0. The value "NONE" can be used to specify unlimited duration.
  6800. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  6801. // Textual description of the workflow type.
  6802. Description *string `locationName:"description" type:"string"`
  6803. // The name of the domain in which to register the workflow type.
  6804. //
  6805. // Domain is a required field
  6806. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  6807. // The name of the workflow type.
  6808. //
  6809. // The specified string must not start or end with whitespace. It must not contain
  6810. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6811. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6812. //
  6813. // Name is a required field
  6814. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6815. // The version of the workflow type.
  6816. //
  6817. // The workflow type consists of the name and version, the combination of which
  6818. // must be unique within the domain. To get a list of all currently registered
  6819. // workflow types, use the ListWorkflowTypes action.The specified string must not start or end with whitespace. It must not contain
  6820. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  6821. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  6822. //
  6823. // Version is a required field
  6824. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  6825. }
  6826. // String returns the string representation
  6827. func (s RegisterWorkflowTypeInput) String() string {
  6828. return awsutil.Prettify(s)
  6829. }
  6830. // GoString returns the string representation
  6831. func (s RegisterWorkflowTypeInput) GoString() string {
  6832. return s.String()
  6833. }
  6834. // Validate inspects the fields of the type to determine if they are valid.
  6835. func (s *RegisterWorkflowTypeInput) Validate() error {
  6836. invalidParams := request.ErrInvalidParams{Context: "RegisterWorkflowTypeInput"}
  6837. if s.DefaultLambdaRole != nil && len(*s.DefaultLambdaRole) < 1 {
  6838. invalidParams.Add(request.NewErrParamMinLen("DefaultLambdaRole", 1))
  6839. }
  6840. if s.Domain == nil {
  6841. invalidParams.Add(request.NewErrParamRequired("Domain"))
  6842. }
  6843. if s.Domain != nil && len(*s.Domain) < 1 {
  6844. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  6845. }
  6846. if s.Name == nil {
  6847. invalidParams.Add(request.NewErrParamRequired("Name"))
  6848. }
  6849. if s.Name != nil && len(*s.Name) < 1 {
  6850. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6851. }
  6852. if s.Version == nil {
  6853. invalidParams.Add(request.NewErrParamRequired("Version"))
  6854. }
  6855. if s.Version != nil && len(*s.Version) < 1 {
  6856. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  6857. }
  6858. if s.DefaultTaskList != nil {
  6859. if err := s.DefaultTaskList.Validate(); err != nil {
  6860. invalidParams.AddNested("DefaultTaskList", err.(request.ErrInvalidParams))
  6861. }
  6862. }
  6863. if invalidParams.Len() > 0 {
  6864. return invalidParams
  6865. }
  6866. return nil
  6867. }
  6868. type RegisterWorkflowTypeOutput struct {
  6869. _ struct{} `type:"structure"`
  6870. }
  6871. // String returns the string representation
  6872. func (s RegisterWorkflowTypeOutput) String() string {
  6873. return awsutil.Prettify(s)
  6874. }
  6875. // GoString returns the string representation
  6876. func (s RegisterWorkflowTypeOutput) GoString() string {
  6877. return s.String()
  6878. }
  6879. // Provides details of the RequestCancelActivityTask decision.
  6880. //
  6881. // Access Control
  6882. //
  6883. // You can use IAM policies to control this decision's access to Amazon SWF
  6884. // resources as follows:
  6885. //
  6886. // * Use a Resource element with the domain name to limit the action to only
  6887. // specified domains.
  6888. // * Use an Action element to allow or deny permission to call this action.
  6889. //
  6890. // * You cannot use an IAM policy to constrain this action's parameters.
  6891. //
  6892. // If the caller does not have sufficient permissions to invoke the action,
  6893. // or the parameter values fall outside the specified constraints, the action
  6894. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  6895. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  6896. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  6897. type RequestCancelActivityTaskDecisionAttributes struct {
  6898. _ struct{} `type:"structure"`
  6899. // The activityId of the activity task to be canceled.
  6900. //
  6901. // ActivityId is a required field
  6902. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  6903. }
  6904. // String returns the string representation
  6905. func (s RequestCancelActivityTaskDecisionAttributes) String() string {
  6906. return awsutil.Prettify(s)
  6907. }
  6908. // GoString returns the string representation
  6909. func (s RequestCancelActivityTaskDecisionAttributes) GoString() string {
  6910. return s.String()
  6911. }
  6912. // Validate inspects the fields of the type to determine if they are valid.
  6913. func (s *RequestCancelActivityTaskDecisionAttributes) Validate() error {
  6914. invalidParams := request.ErrInvalidParams{Context: "RequestCancelActivityTaskDecisionAttributes"}
  6915. if s.ActivityId == nil {
  6916. invalidParams.Add(request.NewErrParamRequired("ActivityId"))
  6917. }
  6918. if s.ActivityId != nil && len(*s.ActivityId) < 1 {
  6919. invalidParams.Add(request.NewErrParamMinLen("ActivityId", 1))
  6920. }
  6921. if invalidParams.Len() > 0 {
  6922. return invalidParams
  6923. }
  6924. return nil
  6925. }
  6926. // Provides details of the RequestCancelActivityTaskFailed event.
  6927. type RequestCancelActivityTaskFailedEventAttributes struct {
  6928. _ struct{} `type:"structure"`
  6929. // The activityId provided in the RequestCancelActivityTask decision that failed.
  6930. //
  6931. // ActivityId is a required field
  6932. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  6933. // The cause of the failure. This information is generated by the system and
  6934. // can be useful for diagnostic purposes.
  6935. //
  6936. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  6937. // lacked sufficient permissions. For details and example IAM policies, see
  6938. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  6939. //
  6940. // Cause is a required field
  6941. Cause *string `locationName:"cause" type:"string" required:"true" enum:"RequestCancelActivityTaskFailedCause"`
  6942. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  6943. // that resulted in the RequestCancelActivityTask decision for this cancellation
  6944. // request. This information can be useful for diagnosing problems by tracing
  6945. // back the chain of events leading up to this event.
  6946. //
  6947. // DecisionTaskCompletedEventId is a required field
  6948. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  6949. }
  6950. // String returns the string representation
  6951. func (s RequestCancelActivityTaskFailedEventAttributes) String() string {
  6952. return awsutil.Prettify(s)
  6953. }
  6954. // GoString returns the string representation
  6955. func (s RequestCancelActivityTaskFailedEventAttributes) GoString() string {
  6956. return s.String()
  6957. }
  6958. // Provides details of the RequestCancelExternalWorkflowExecution decision.
  6959. //
  6960. // Access Control
  6961. //
  6962. // You can use IAM policies to control this decision's access to Amazon SWF
  6963. // resources as follows:
  6964. //
  6965. // * Use a Resource element with the domain name to limit the action to only
  6966. // specified domains.
  6967. // * Use an Action element to allow or deny permission to call this action.
  6968. //
  6969. // * You cannot use an IAM policy to constrain this action's parameters.
  6970. //
  6971. // If the caller does not have sufficient permissions to invoke the action,
  6972. // or the parameter values fall outside the specified constraints, the action
  6973. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  6974. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  6975. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  6976. type RequestCancelExternalWorkflowExecutionDecisionAttributes struct {
  6977. _ struct{} `type:"structure"`
  6978. // Optional. Data attached to the event that can be used by the decider in subsequent
  6979. // workflow tasks.
  6980. Control *string `locationName:"control" type:"string"`
  6981. // The runId of the external workflow execution to cancel.
  6982. RunId *string `locationName:"runId" type:"string"`
  6983. // Required. The workflowId of the external workflow execution to cancel.
  6984. //
  6985. // WorkflowId is a required field
  6986. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  6987. }
  6988. // String returns the string representation
  6989. func (s RequestCancelExternalWorkflowExecutionDecisionAttributes) String() string {
  6990. return awsutil.Prettify(s)
  6991. }
  6992. // GoString returns the string representation
  6993. func (s RequestCancelExternalWorkflowExecutionDecisionAttributes) GoString() string {
  6994. return s.String()
  6995. }
  6996. // Validate inspects the fields of the type to determine if they are valid.
  6997. func (s *RequestCancelExternalWorkflowExecutionDecisionAttributes) Validate() error {
  6998. invalidParams := request.ErrInvalidParams{Context: "RequestCancelExternalWorkflowExecutionDecisionAttributes"}
  6999. if s.WorkflowId == nil {
  7000. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  7001. }
  7002. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  7003. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  7004. }
  7005. if invalidParams.Len() > 0 {
  7006. return invalidParams
  7007. }
  7008. return nil
  7009. }
  7010. // Provides details of the RequestCancelExternalWorkflowExecutionFailed event.
  7011. type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct {
  7012. _ struct{} `type:"structure"`
  7013. // The cause of the failure. This information is generated by the system and
  7014. // can be useful for diagnostic purposes.
  7015. //
  7016. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  7017. // lacked sufficient permissions. For details and example IAM policies, see
  7018. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7019. //
  7020. // Cause is a required field
  7021. Cause *string `locationName:"cause" type:"string" required:"true" enum:"RequestCancelExternalWorkflowExecutionFailedCause"`
  7022. Control *string `locationName:"control" type:"string"`
  7023. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  7024. // that resulted in the RequestCancelExternalWorkflowExecution decision for
  7025. // this cancellation request. This information can be useful for diagnosing
  7026. // problems by tracing back the chain of events leading up to this event.
  7027. //
  7028. // DecisionTaskCompletedEventId is a required field
  7029. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  7030. // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding
  7031. // to the RequestCancelExternalWorkflowExecution decision to cancel this external
  7032. // workflow execution. This information can be useful for diagnosing problems
  7033. // by tracing back the chain of events leading up to this event.
  7034. //
  7035. // InitiatedEventId is a required field
  7036. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  7037. // The runId of the external workflow execution.
  7038. RunId *string `locationName:"runId" type:"string"`
  7039. // The workflowId of the external workflow to which the cancel request was to
  7040. // be delivered.
  7041. //
  7042. // WorkflowId is a required field
  7043. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7044. }
  7045. // String returns the string representation
  7046. func (s RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string {
  7047. return awsutil.Prettify(s)
  7048. }
  7049. // GoString returns the string representation
  7050. func (s RequestCancelExternalWorkflowExecutionFailedEventAttributes) GoString() string {
  7051. return s.String()
  7052. }
  7053. // Provides details of the RequestCancelExternalWorkflowExecutionInitiated event.
  7054. type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct {
  7055. _ struct{} `type:"structure"`
  7056. // Optional. Data attached to the event that can be used by the decider in subsequent
  7057. // workflow tasks.
  7058. Control *string `locationName:"control" type:"string"`
  7059. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  7060. // that resulted in the RequestCancelExternalWorkflowExecution decision for
  7061. // this cancellation request. This information can be useful for diagnosing
  7062. // problems by tracing back the chain of events leading up to this event.
  7063. //
  7064. // DecisionTaskCompletedEventId is a required field
  7065. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  7066. // The runId of the external workflow execution to be canceled.
  7067. RunId *string `locationName:"runId" type:"string"`
  7068. // The workflowId of the external workflow execution to be canceled.
  7069. //
  7070. // WorkflowId is a required field
  7071. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7072. }
  7073. // String returns the string representation
  7074. func (s RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string {
  7075. return awsutil.Prettify(s)
  7076. }
  7077. // GoString returns the string representation
  7078. func (s RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GoString() string {
  7079. return s.String()
  7080. }
  7081. type RequestCancelWorkflowExecutionInput struct {
  7082. _ struct{} `type:"structure"`
  7083. // The name of the domain containing the workflow execution to cancel.
  7084. //
  7085. // Domain is a required field
  7086. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  7087. // The runId of the workflow execution to cancel.
  7088. RunId *string `locationName:"runId" type:"string"`
  7089. // The workflowId of the workflow execution to cancel.
  7090. //
  7091. // WorkflowId is a required field
  7092. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7093. }
  7094. // String returns the string representation
  7095. func (s RequestCancelWorkflowExecutionInput) String() string {
  7096. return awsutil.Prettify(s)
  7097. }
  7098. // GoString returns the string representation
  7099. func (s RequestCancelWorkflowExecutionInput) GoString() string {
  7100. return s.String()
  7101. }
  7102. // Validate inspects the fields of the type to determine if they are valid.
  7103. func (s *RequestCancelWorkflowExecutionInput) Validate() error {
  7104. invalidParams := request.ErrInvalidParams{Context: "RequestCancelWorkflowExecutionInput"}
  7105. if s.Domain == nil {
  7106. invalidParams.Add(request.NewErrParamRequired("Domain"))
  7107. }
  7108. if s.Domain != nil && len(*s.Domain) < 1 {
  7109. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  7110. }
  7111. if s.WorkflowId == nil {
  7112. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  7113. }
  7114. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  7115. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  7116. }
  7117. if invalidParams.Len() > 0 {
  7118. return invalidParams
  7119. }
  7120. return nil
  7121. }
  7122. type RequestCancelWorkflowExecutionOutput struct {
  7123. _ struct{} `type:"structure"`
  7124. }
  7125. // String returns the string representation
  7126. func (s RequestCancelWorkflowExecutionOutput) String() string {
  7127. return awsutil.Prettify(s)
  7128. }
  7129. // GoString returns the string representation
  7130. func (s RequestCancelWorkflowExecutionOutput) GoString() string {
  7131. return s.String()
  7132. }
  7133. type RespondActivityTaskCanceledInput struct {
  7134. _ struct{} `type:"structure"`
  7135. // Optional. Information about the cancellation.
  7136. Details *string `locationName:"details" type:"string"`
  7137. // The taskToken of the ActivityTask.
  7138. //
  7139. // taskToken is generated by the service and should be treated as an opaque
  7140. // value. If the task is passed to another process, its taskToken must also
  7141. // be passed. This enables it to provide its progress and respond with results.
  7142. //
  7143. // TaskToken is a required field
  7144. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  7145. }
  7146. // String returns the string representation
  7147. func (s RespondActivityTaskCanceledInput) String() string {
  7148. return awsutil.Prettify(s)
  7149. }
  7150. // GoString returns the string representation
  7151. func (s RespondActivityTaskCanceledInput) GoString() string {
  7152. return s.String()
  7153. }
  7154. // Validate inspects the fields of the type to determine if they are valid.
  7155. func (s *RespondActivityTaskCanceledInput) Validate() error {
  7156. invalidParams := request.ErrInvalidParams{Context: "RespondActivityTaskCanceledInput"}
  7157. if s.TaskToken == nil {
  7158. invalidParams.Add(request.NewErrParamRequired("TaskToken"))
  7159. }
  7160. if s.TaskToken != nil && len(*s.TaskToken) < 1 {
  7161. invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1))
  7162. }
  7163. if invalidParams.Len() > 0 {
  7164. return invalidParams
  7165. }
  7166. return nil
  7167. }
  7168. type RespondActivityTaskCanceledOutput struct {
  7169. _ struct{} `type:"structure"`
  7170. }
  7171. // String returns the string representation
  7172. func (s RespondActivityTaskCanceledOutput) String() string {
  7173. return awsutil.Prettify(s)
  7174. }
  7175. // GoString returns the string representation
  7176. func (s RespondActivityTaskCanceledOutput) GoString() string {
  7177. return s.String()
  7178. }
  7179. type RespondActivityTaskCompletedInput struct {
  7180. _ struct{} `type:"structure"`
  7181. // The result of the activity task. It is a free form string that is implementation
  7182. // specific.
  7183. Result *string `locationName:"result" type:"string"`
  7184. // The taskToken of the ActivityTask.
  7185. //
  7186. // taskToken is generated by the service and should be treated as an opaque
  7187. // value. If the task is passed to another process, its taskToken must also
  7188. // be passed. This enables it to provide its progress and respond with results.
  7189. //
  7190. // TaskToken is a required field
  7191. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  7192. }
  7193. // String returns the string representation
  7194. func (s RespondActivityTaskCompletedInput) String() string {
  7195. return awsutil.Prettify(s)
  7196. }
  7197. // GoString returns the string representation
  7198. func (s RespondActivityTaskCompletedInput) GoString() string {
  7199. return s.String()
  7200. }
  7201. // Validate inspects the fields of the type to determine if they are valid.
  7202. func (s *RespondActivityTaskCompletedInput) Validate() error {
  7203. invalidParams := request.ErrInvalidParams{Context: "RespondActivityTaskCompletedInput"}
  7204. if s.TaskToken == nil {
  7205. invalidParams.Add(request.NewErrParamRequired("TaskToken"))
  7206. }
  7207. if s.TaskToken != nil && len(*s.TaskToken) < 1 {
  7208. invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1))
  7209. }
  7210. if invalidParams.Len() > 0 {
  7211. return invalidParams
  7212. }
  7213. return nil
  7214. }
  7215. type RespondActivityTaskCompletedOutput struct {
  7216. _ struct{} `type:"structure"`
  7217. }
  7218. // String returns the string representation
  7219. func (s RespondActivityTaskCompletedOutput) String() string {
  7220. return awsutil.Prettify(s)
  7221. }
  7222. // GoString returns the string representation
  7223. func (s RespondActivityTaskCompletedOutput) GoString() string {
  7224. return s.String()
  7225. }
  7226. type RespondActivityTaskFailedInput struct {
  7227. _ struct{} `type:"structure"`
  7228. // Optional. Detailed information about the failure.
  7229. Details *string `locationName:"details" type:"string"`
  7230. // Description of the error that may assist in diagnostics.
  7231. Reason *string `locationName:"reason" type:"string"`
  7232. // The taskToken of the ActivityTask.
  7233. //
  7234. // taskToken is generated by the service and should be treated as an opaque
  7235. // value. If the task is passed to another process, its taskToken must also
  7236. // be passed. This enables it to provide its progress and respond with results.
  7237. //
  7238. // TaskToken is a required field
  7239. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  7240. }
  7241. // String returns the string representation
  7242. func (s RespondActivityTaskFailedInput) String() string {
  7243. return awsutil.Prettify(s)
  7244. }
  7245. // GoString returns the string representation
  7246. func (s RespondActivityTaskFailedInput) GoString() string {
  7247. return s.String()
  7248. }
  7249. // Validate inspects the fields of the type to determine if they are valid.
  7250. func (s *RespondActivityTaskFailedInput) Validate() error {
  7251. invalidParams := request.ErrInvalidParams{Context: "RespondActivityTaskFailedInput"}
  7252. if s.TaskToken == nil {
  7253. invalidParams.Add(request.NewErrParamRequired("TaskToken"))
  7254. }
  7255. if s.TaskToken != nil && len(*s.TaskToken) < 1 {
  7256. invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1))
  7257. }
  7258. if invalidParams.Len() > 0 {
  7259. return invalidParams
  7260. }
  7261. return nil
  7262. }
  7263. type RespondActivityTaskFailedOutput struct {
  7264. _ struct{} `type:"structure"`
  7265. }
  7266. // String returns the string representation
  7267. func (s RespondActivityTaskFailedOutput) String() string {
  7268. return awsutil.Prettify(s)
  7269. }
  7270. // GoString returns the string representation
  7271. func (s RespondActivityTaskFailedOutput) GoString() string {
  7272. return s.String()
  7273. }
  7274. type RespondDecisionTaskCompletedInput struct {
  7275. _ struct{} `type:"structure"`
  7276. // The list of decisions (possibly empty) made by the decider while processing
  7277. // this decision task. See the docs for the decision structure for details.
  7278. Decisions []*Decision `locationName:"decisions" type:"list"`
  7279. // User defined context to add to workflow execution.
  7280. ExecutionContext *string `locationName:"executionContext" type:"string"`
  7281. // The taskToken from the DecisionTask.
  7282. //
  7283. // taskToken is generated by the service and should be treated as an opaque
  7284. // value. If the task is passed to another process, its taskToken must also
  7285. // be passed. This enables it to provide its progress and respond with results.
  7286. //
  7287. // TaskToken is a required field
  7288. TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"`
  7289. }
  7290. // String returns the string representation
  7291. func (s RespondDecisionTaskCompletedInput) String() string {
  7292. return awsutil.Prettify(s)
  7293. }
  7294. // GoString returns the string representation
  7295. func (s RespondDecisionTaskCompletedInput) GoString() string {
  7296. return s.String()
  7297. }
  7298. // Validate inspects the fields of the type to determine if they are valid.
  7299. func (s *RespondDecisionTaskCompletedInput) Validate() error {
  7300. invalidParams := request.ErrInvalidParams{Context: "RespondDecisionTaskCompletedInput"}
  7301. if s.TaskToken == nil {
  7302. invalidParams.Add(request.NewErrParamRequired("TaskToken"))
  7303. }
  7304. if s.TaskToken != nil && len(*s.TaskToken) < 1 {
  7305. invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1))
  7306. }
  7307. if s.Decisions != nil {
  7308. for i, v := range s.Decisions {
  7309. if v == nil {
  7310. continue
  7311. }
  7312. if err := v.Validate(); err != nil {
  7313. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Decisions", i), err.(request.ErrInvalidParams))
  7314. }
  7315. }
  7316. }
  7317. if invalidParams.Len() > 0 {
  7318. return invalidParams
  7319. }
  7320. return nil
  7321. }
  7322. type RespondDecisionTaskCompletedOutput struct {
  7323. _ struct{} `type:"structure"`
  7324. }
  7325. // String returns the string representation
  7326. func (s RespondDecisionTaskCompletedOutput) String() string {
  7327. return awsutil.Prettify(s)
  7328. }
  7329. // GoString returns the string representation
  7330. func (s RespondDecisionTaskCompletedOutput) GoString() string {
  7331. return s.String()
  7332. }
  7333. // Provides details of the ScheduleActivityTask decision.
  7334. //
  7335. // Access Control
  7336. //
  7337. // You can use IAM policies to control this decision's access to Amazon SWF
  7338. // resources as follows:
  7339. //
  7340. // * Use a Resource element with the domain name to limit the action to only
  7341. // specified domains.
  7342. // * Use an Action element to allow or deny permission to call this action.
  7343. //
  7344. // * Constrain the following parameters by using a Condition element with
  7345. // the appropriate keys. activityType.name: String constraint. The key is
  7346. // swf:activityType.name.
  7347. // activityType.version: String constraint. The key is swf:activityType.version.
  7348. //
  7349. // taskList: String constraint. The key is swf:taskList.name.
  7350. //
  7351. // If the caller does not have sufficient permissions to invoke the action,
  7352. // or the parameter values fall outside the specified constraints, the action
  7353. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  7354. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  7355. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7356. type ScheduleActivityTaskDecisionAttributes struct {
  7357. _ struct{} `type:"structure"`
  7358. // Required. The activityId of the activity task.
  7359. //
  7360. // The specified string must not start or end with whitespace. It must not contain
  7361. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  7362. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  7363. //
  7364. // ActivityId is a required field
  7365. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  7366. // Required. The type of the activity task to schedule.
  7367. //
  7368. // ActivityType is a required field
  7369. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  7370. // Optional. Data attached to the event that can be used by the decider in subsequent
  7371. // workflow tasks. This data is not sent to the activity.
  7372. Control *string `locationName:"control" type:"string"`
  7373. // If set, specifies the maximum time before which a worker processing a task
  7374. // of this type must report progress by calling RecordActivityTaskHeartbeat.
  7375. // If the timeout is exceeded, the activity task is automatically timed out.
  7376. // If the worker subsequently attempts to record a heartbeat or returns a result,
  7377. // it will be ignored. This overrides the default heartbeat timeout specified
  7378. // when registering the activity type using RegisterActivityType.
  7379. //
  7380. // The duration is specified in seconds; an integer greater than or equal to
  7381. // 0. The value "NONE" can be used to specify unlimited duration.
  7382. HeartbeatTimeout *string `locationName:"heartbeatTimeout" type:"string"`
  7383. // The input provided to the activity task.
  7384. Input *string `locationName:"input" type:"string"`
  7385. // The maximum duration for this activity task.
  7386. //
  7387. // The duration is specified in seconds; an integer greater than or equal to
  7388. // 0. The value "NONE" can be used to specify unlimited duration.
  7389. //
  7390. // A schedule-to-close timeout for this activity task must be specified either
  7391. // as a default for the activity type or through this field. If neither this
  7392. // field is set nor a default schedule-to-close timeout was specified at registration
  7393. // time then a fault will be returned.
  7394. ScheduleToCloseTimeout *string `locationName:"scheduleToCloseTimeout" type:"string"`
  7395. // Optional. If set, specifies the maximum duration the activity task can wait
  7396. // to be assigned to a worker. This overrides the default schedule-to-start
  7397. // timeout specified when registering the activity type using RegisterActivityType.
  7398. //
  7399. // The duration is specified in seconds; an integer greater than or equal to
  7400. // 0. The value "NONE" can be used to specify unlimited duration.
  7401. //
  7402. // A schedule-to-start timeout for this activity task must be specified either
  7403. // as a default for the activity type or through this field. If neither this
  7404. // field is set nor a default schedule-to-start timeout was specified at registration
  7405. // time then a fault will be returned.
  7406. ScheduleToStartTimeout *string `locationName:"scheduleToStartTimeout" type:"string"`
  7407. // If set, specifies the maximum duration a worker may take to process this
  7408. // activity task. This overrides the default start-to-close timeout specified
  7409. // when registering the activity type using RegisterActivityType.
  7410. //
  7411. // The duration is specified in seconds; an integer greater than or equal to
  7412. // 0. The value "NONE" can be used to specify unlimited duration.
  7413. //
  7414. // A start-to-close timeout for this activity task must be specified either
  7415. // as a default for the activity type or through this field. If neither this
  7416. // field is set nor a default start-to-close timeout was specified at registration
  7417. // time then a fault will be returned.
  7418. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  7419. // If set, specifies the name of the task list in which to schedule the activity
  7420. // task. If not specified, the defaultTaskList registered with the activity
  7421. // type will be used.
  7422. //
  7423. // A task list for this activity task must be specified either as a default
  7424. // for the activity type or through this field. If neither this field is set
  7425. // nor a default task list was specified at registration time then a fault will
  7426. // be returned.The specified string must not start or end with whitespace. It must not contain
  7427. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  7428. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  7429. TaskList *TaskList `locationName:"taskList" type:"structure"`
  7430. // Optional. If set, specifies the priority with which the activity task is
  7431. // to be assigned to a worker. This overrides the defaultTaskPriority specified
  7432. // when registering the activity type using RegisterActivityType. Valid values
  7433. // are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE
  7434. // (2147483647). Higher numbers indicate higher priority.
  7435. //
  7436. // For more information about setting task priority, see Setting Task Priority
  7437. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  7438. // in the Amazon Simple Workflow Developer Guide.
  7439. TaskPriority *string `locationName:"taskPriority" type:"string"`
  7440. }
  7441. // String returns the string representation
  7442. func (s ScheduleActivityTaskDecisionAttributes) String() string {
  7443. return awsutil.Prettify(s)
  7444. }
  7445. // GoString returns the string representation
  7446. func (s ScheduleActivityTaskDecisionAttributes) GoString() string {
  7447. return s.String()
  7448. }
  7449. // Validate inspects the fields of the type to determine if they are valid.
  7450. func (s *ScheduleActivityTaskDecisionAttributes) Validate() error {
  7451. invalidParams := request.ErrInvalidParams{Context: "ScheduleActivityTaskDecisionAttributes"}
  7452. if s.ActivityId == nil {
  7453. invalidParams.Add(request.NewErrParamRequired("ActivityId"))
  7454. }
  7455. if s.ActivityId != nil && len(*s.ActivityId) < 1 {
  7456. invalidParams.Add(request.NewErrParamMinLen("ActivityId", 1))
  7457. }
  7458. if s.ActivityType == nil {
  7459. invalidParams.Add(request.NewErrParamRequired("ActivityType"))
  7460. }
  7461. if s.ActivityType != nil {
  7462. if err := s.ActivityType.Validate(); err != nil {
  7463. invalidParams.AddNested("ActivityType", err.(request.ErrInvalidParams))
  7464. }
  7465. }
  7466. if s.TaskList != nil {
  7467. if err := s.TaskList.Validate(); err != nil {
  7468. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  7469. }
  7470. }
  7471. if invalidParams.Len() > 0 {
  7472. return invalidParams
  7473. }
  7474. return nil
  7475. }
  7476. // Provides details of the ScheduleActivityTaskFailed event.
  7477. type ScheduleActivityTaskFailedEventAttributes struct {
  7478. _ struct{} `type:"structure"`
  7479. // The activityId provided in the ScheduleActivityTask decision that failed.
  7480. //
  7481. // ActivityId is a required field
  7482. ActivityId *string `locationName:"activityId" min:"1" type:"string" required:"true"`
  7483. // The activity type provided in the ScheduleActivityTask decision that failed.
  7484. //
  7485. // ActivityType is a required field
  7486. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  7487. // The cause of the failure. This information is generated by the system and
  7488. // can be useful for diagnostic purposes.
  7489. //
  7490. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  7491. // lacked sufficient permissions. For details and example IAM policies, see
  7492. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7493. //
  7494. // Cause is a required field
  7495. Cause *string `locationName:"cause" type:"string" required:"true" enum:"ScheduleActivityTaskFailedCause"`
  7496. // The ID of the DecisionTaskCompleted event corresponding to the decision that
  7497. // resulted in the scheduling of this activity task. This information can be
  7498. // useful for diagnosing problems by tracing back the chain of events leading
  7499. // up to this event.
  7500. //
  7501. // DecisionTaskCompletedEventId is a required field
  7502. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  7503. }
  7504. // String returns the string representation
  7505. func (s ScheduleActivityTaskFailedEventAttributes) String() string {
  7506. return awsutil.Prettify(s)
  7507. }
  7508. // GoString returns the string representation
  7509. func (s ScheduleActivityTaskFailedEventAttributes) GoString() string {
  7510. return s.String()
  7511. }
  7512. // Provides details of the ScheduleLambdaFunction decision.
  7513. //
  7514. // Access Control
  7515. //
  7516. // You can use IAM policies to control this decision's access to Amazon SWF
  7517. // resources as follows:
  7518. //
  7519. // * Use a Resource element with the domain name to limit the action to only
  7520. // specified domains.
  7521. // * Use an Action element to allow or deny permission to call this action.
  7522. //
  7523. // * Constrain the following parameters by using a Condition element with
  7524. // the appropriate keys. activityType.name: String constraint. The key is
  7525. // swf:activityType.name.
  7526. // activityType.version: String constraint. The key is swf:activityType.version.
  7527. //
  7528. // taskList: String constraint. The key is swf:taskList.name.
  7529. //
  7530. // If the caller does not have sufficient permissions to invoke the action,
  7531. // or the parameter values fall outside the specified constraints, the action
  7532. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  7533. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  7534. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7535. type ScheduleLambdaFunctionDecisionAttributes struct {
  7536. _ struct{} `type:"structure"`
  7537. // Required. The SWF id of the AWS Lambda task.
  7538. //
  7539. // The specified string must not start or end with whitespace. It must not contain
  7540. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  7541. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  7542. //
  7543. // Id is a required field
  7544. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  7545. // The input provided to the AWS Lambda function.
  7546. Input *string `locationName:"input" min:"1" type:"string"`
  7547. // Required. The name of the AWS Lambda function to invoke.
  7548. //
  7549. // Name is a required field
  7550. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7551. // If set, specifies the maximum duration the function may take to execute.
  7552. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  7553. }
  7554. // String returns the string representation
  7555. func (s ScheduleLambdaFunctionDecisionAttributes) String() string {
  7556. return awsutil.Prettify(s)
  7557. }
  7558. // GoString returns the string representation
  7559. func (s ScheduleLambdaFunctionDecisionAttributes) GoString() string {
  7560. return s.String()
  7561. }
  7562. // Validate inspects the fields of the type to determine if they are valid.
  7563. func (s *ScheduleLambdaFunctionDecisionAttributes) Validate() error {
  7564. invalidParams := request.ErrInvalidParams{Context: "ScheduleLambdaFunctionDecisionAttributes"}
  7565. if s.Id == nil {
  7566. invalidParams.Add(request.NewErrParamRequired("Id"))
  7567. }
  7568. if s.Id != nil && len(*s.Id) < 1 {
  7569. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  7570. }
  7571. if s.Input != nil && len(*s.Input) < 1 {
  7572. invalidParams.Add(request.NewErrParamMinLen("Input", 1))
  7573. }
  7574. if s.Name == nil {
  7575. invalidParams.Add(request.NewErrParamRequired("Name"))
  7576. }
  7577. if s.Name != nil && len(*s.Name) < 1 {
  7578. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7579. }
  7580. if invalidParams.Len() > 0 {
  7581. return invalidParams
  7582. }
  7583. return nil
  7584. }
  7585. // Provides details for the ScheduleLambdaFunctionFailed event.
  7586. type ScheduleLambdaFunctionFailedEventAttributes struct {
  7587. _ struct{} `type:"structure"`
  7588. // The cause of the failure. This information is generated by the system and
  7589. // can be useful for diagnostic purposes.
  7590. //
  7591. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  7592. // lacked sufficient permissions. For details and example IAM policies, see
  7593. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7594. //
  7595. // Cause is a required field
  7596. Cause *string `locationName:"cause" type:"string" required:"true" enum:"ScheduleLambdaFunctionFailedCause"`
  7597. // The ID of the DecisionTaskCompleted event corresponding to the decision that
  7598. // resulted in the scheduling of this AWS Lambda function. This information
  7599. // can be useful for diagnosing problems by tracing back the chain of events
  7600. // leading up to this event.
  7601. //
  7602. // DecisionTaskCompletedEventId is a required field
  7603. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  7604. // The unique Amazon SWF ID of the AWS Lambda task.
  7605. //
  7606. // Id is a required field
  7607. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  7608. // The name of the scheduled AWS Lambda function.
  7609. //
  7610. // Name is a required field
  7611. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7612. }
  7613. // String returns the string representation
  7614. func (s ScheduleLambdaFunctionFailedEventAttributes) String() string {
  7615. return awsutil.Prettify(s)
  7616. }
  7617. // GoString returns the string representation
  7618. func (s ScheduleLambdaFunctionFailedEventAttributes) GoString() string {
  7619. return s.String()
  7620. }
  7621. // Provides details of the SignalExternalWorkflowExecution decision.
  7622. //
  7623. // Access Control
  7624. //
  7625. // You can use IAM policies to control this decision's access to Amazon SWF
  7626. // resources as follows:
  7627. //
  7628. // * Use a Resource element with the domain name to limit the action to only
  7629. // specified domains.
  7630. // * Use an Action element to allow or deny permission to call this action.
  7631. //
  7632. // * You cannot use an IAM policy to constrain this action's parameters.
  7633. //
  7634. // If the caller does not have sufficient permissions to invoke the action,
  7635. // or the parameter values fall outside the specified constraints, the action
  7636. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  7637. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  7638. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7639. type SignalExternalWorkflowExecutionDecisionAttributes struct {
  7640. _ struct{} `type:"structure"`
  7641. // Optional. Data attached to the event that can be used by the decider in subsequent
  7642. // decision tasks.
  7643. Control *string `locationName:"control" type:"string"`
  7644. // Optional. Input data to be provided with the signal. The target workflow
  7645. // execution will use the signal name and input data to process the signal.
  7646. Input *string `locationName:"input" type:"string"`
  7647. // The runId of the workflow execution to be signaled.
  7648. RunId *string `locationName:"runId" type:"string"`
  7649. // Required. The name of the signal.The target workflow execution will use the
  7650. // signal name and input to process the signal.
  7651. //
  7652. // SignalName is a required field
  7653. SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"`
  7654. // Required. The workflowId of the workflow execution to be signaled.
  7655. //
  7656. // WorkflowId is a required field
  7657. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7658. }
  7659. // String returns the string representation
  7660. func (s SignalExternalWorkflowExecutionDecisionAttributes) String() string {
  7661. return awsutil.Prettify(s)
  7662. }
  7663. // GoString returns the string representation
  7664. func (s SignalExternalWorkflowExecutionDecisionAttributes) GoString() string {
  7665. return s.String()
  7666. }
  7667. // Validate inspects the fields of the type to determine if they are valid.
  7668. func (s *SignalExternalWorkflowExecutionDecisionAttributes) Validate() error {
  7669. invalidParams := request.ErrInvalidParams{Context: "SignalExternalWorkflowExecutionDecisionAttributes"}
  7670. if s.SignalName == nil {
  7671. invalidParams.Add(request.NewErrParamRequired("SignalName"))
  7672. }
  7673. if s.SignalName != nil && len(*s.SignalName) < 1 {
  7674. invalidParams.Add(request.NewErrParamMinLen("SignalName", 1))
  7675. }
  7676. if s.WorkflowId == nil {
  7677. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  7678. }
  7679. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  7680. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  7681. }
  7682. if invalidParams.Len() > 0 {
  7683. return invalidParams
  7684. }
  7685. return nil
  7686. }
  7687. // Provides details of the SignalExternalWorkflowExecutionFailed event.
  7688. type SignalExternalWorkflowExecutionFailedEventAttributes struct {
  7689. _ struct{} `type:"structure"`
  7690. // The cause of the failure. This information is generated by the system and
  7691. // can be useful for diagnostic purposes.
  7692. //
  7693. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  7694. // lacked sufficient permissions. For details and example IAM policies, see
  7695. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7696. //
  7697. // Cause is a required field
  7698. Cause *string `locationName:"cause" type:"string" required:"true" enum:"SignalExternalWorkflowExecutionFailedCause"`
  7699. Control *string `locationName:"control" type:"string"`
  7700. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  7701. // that resulted in the SignalExternalWorkflowExecution decision for this signal.
  7702. // This information can be useful for diagnosing problems by tracing back the
  7703. // chain of events leading up to this event.
  7704. //
  7705. // DecisionTaskCompletedEventId is a required field
  7706. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  7707. // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding
  7708. // to the SignalExternalWorkflowExecution decision to request this signal. This
  7709. // information can be useful for diagnosing problems by tracing back the chain
  7710. // of events leading up to this event.
  7711. //
  7712. // InitiatedEventId is a required field
  7713. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  7714. // The runId of the external workflow execution that the signal was being delivered
  7715. // to.
  7716. RunId *string `locationName:"runId" type:"string"`
  7717. // The workflowId of the external workflow execution that the signal was being
  7718. // delivered to.
  7719. //
  7720. // WorkflowId is a required field
  7721. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7722. }
  7723. // String returns the string representation
  7724. func (s SignalExternalWorkflowExecutionFailedEventAttributes) String() string {
  7725. return awsutil.Prettify(s)
  7726. }
  7727. // GoString returns the string representation
  7728. func (s SignalExternalWorkflowExecutionFailedEventAttributes) GoString() string {
  7729. return s.String()
  7730. }
  7731. // Provides details of the SignalExternalWorkflowExecutionInitiated event.
  7732. type SignalExternalWorkflowExecutionInitiatedEventAttributes struct {
  7733. _ struct{} `type:"structure"`
  7734. // Optional. data attached to the event that can be used by the decider in subsequent
  7735. // decision tasks.
  7736. Control *string `locationName:"control" type:"string"`
  7737. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  7738. // that resulted in the SignalExternalWorkflowExecution decision for this signal.
  7739. // This information can be useful for diagnosing problems by tracing back the
  7740. // chain of events leading up to this event.
  7741. //
  7742. // DecisionTaskCompletedEventId is a required field
  7743. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  7744. // Input provided to the signal (if any).
  7745. Input *string `locationName:"input" type:"string"`
  7746. // The runId of the external workflow execution to send the signal to.
  7747. RunId *string `locationName:"runId" type:"string"`
  7748. // The name of the signal.
  7749. //
  7750. // SignalName is a required field
  7751. SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"`
  7752. // The workflowId of the external workflow execution.
  7753. //
  7754. // WorkflowId is a required field
  7755. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7756. }
  7757. // String returns the string representation
  7758. func (s SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string {
  7759. return awsutil.Prettify(s)
  7760. }
  7761. // GoString returns the string representation
  7762. func (s SignalExternalWorkflowExecutionInitiatedEventAttributes) GoString() string {
  7763. return s.String()
  7764. }
  7765. type SignalWorkflowExecutionInput struct {
  7766. _ struct{} `type:"structure"`
  7767. // The name of the domain containing the workflow execution to signal.
  7768. //
  7769. // Domain is a required field
  7770. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  7771. // Data to attach to the WorkflowExecutionSignaled event in the target workflow
  7772. // execution's history.
  7773. Input *string `locationName:"input" type:"string"`
  7774. // The runId of the workflow execution to signal.
  7775. RunId *string `locationName:"runId" type:"string"`
  7776. // The name of the signal. This name must be meaningful to the target workflow.
  7777. //
  7778. // SignalName is a required field
  7779. SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"`
  7780. // The workflowId of the workflow execution to signal.
  7781. //
  7782. // WorkflowId is a required field
  7783. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7784. }
  7785. // String returns the string representation
  7786. func (s SignalWorkflowExecutionInput) String() string {
  7787. return awsutil.Prettify(s)
  7788. }
  7789. // GoString returns the string representation
  7790. func (s SignalWorkflowExecutionInput) GoString() string {
  7791. return s.String()
  7792. }
  7793. // Validate inspects the fields of the type to determine if they are valid.
  7794. func (s *SignalWorkflowExecutionInput) Validate() error {
  7795. invalidParams := request.ErrInvalidParams{Context: "SignalWorkflowExecutionInput"}
  7796. if s.Domain == nil {
  7797. invalidParams.Add(request.NewErrParamRequired("Domain"))
  7798. }
  7799. if s.Domain != nil && len(*s.Domain) < 1 {
  7800. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  7801. }
  7802. if s.SignalName == nil {
  7803. invalidParams.Add(request.NewErrParamRequired("SignalName"))
  7804. }
  7805. if s.SignalName != nil && len(*s.SignalName) < 1 {
  7806. invalidParams.Add(request.NewErrParamMinLen("SignalName", 1))
  7807. }
  7808. if s.WorkflowId == nil {
  7809. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  7810. }
  7811. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  7812. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  7813. }
  7814. if invalidParams.Len() > 0 {
  7815. return invalidParams
  7816. }
  7817. return nil
  7818. }
  7819. type SignalWorkflowExecutionOutput struct {
  7820. _ struct{} `type:"structure"`
  7821. }
  7822. // String returns the string representation
  7823. func (s SignalWorkflowExecutionOutput) String() string {
  7824. return awsutil.Prettify(s)
  7825. }
  7826. // GoString returns the string representation
  7827. func (s SignalWorkflowExecutionOutput) GoString() string {
  7828. return s.String()
  7829. }
  7830. // Provides details of the StartChildWorkflowExecution decision.
  7831. //
  7832. // Access Control
  7833. //
  7834. // You can use IAM policies to control this decision's access to Amazon SWF
  7835. // resources as follows:
  7836. //
  7837. // * Use a Resource element with the domain name to limit the action to only
  7838. // specified domains.
  7839. // * Use an Action element to allow or deny permission to call this action.
  7840. //
  7841. // * Constrain the following parameters by using a Condition element with
  7842. // the appropriate keys. tagList.member.N: The key is "swf:tagList.N" where
  7843. // N is the tag number from 0 to 4, inclusive.
  7844. // taskList: String constraint. The key is swf:taskList.name.
  7845. // workflowType.name: String constraint. The key is swf:workflowType.name.
  7846. // workflowType.version: String constraint. The key is swf:workflowType.version.
  7847. //
  7848. // If the caller does not have sufficient permissions to invoke the action,
  7849. // or the parameter values fall outside the specified constraints, the action
  7850. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  7851. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  7852. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7853. type StartChildWorkflowExecutionDecisionAttributes struct {
  7854. _ struct{} `type:"structure"`
  7855. // Optional. If set, specifies the policy to use for the child workflow executions
  7856. // if the workflow execution being started is terminated by calling the TerminateWorkflowExecution
  7857. // action explicitly or due to an expired timeout. This policy overrides the
  7858. // default child policy specified when registering the workflow type using RegisterWorkflowType.
  7859. //
  7860. // The supported child policies are:
  7861. //
  7862. // * TERMINATE: the child executions will be terminated.
  7863. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  7864. // execution by recording a WorkflowExecutionCancelRequested event in its
  7865. // history. It is up to the decider to take appropriate actions when it receives
  7866. // an execution history with this event.
  7867. // * ABANDON: no action will be taken. The child executions will continue
  7868. // to run.
  7869. // A child policy for this workflow execution must be specified either as a
  7870. // default for the workflow type or through this parameter. If neither this
  7871. // parameter is set nor a default child policy was specified at registration
  7872. // time then a fault will be returned.
  7873. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  7874. // Optional. Data attached to the event that can be used by the decider in subsequent
  7875. // workflow tasks. This data is not sent to the child workflow execution.
  7876. Control *string `locationName:"control" type:"string"`
  7877. // The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout
  7878. // specified when registering the workflow type.
  7879. //
  7880. // The duration is specified in seconds; an integer greater than or equal to
  7881. // 0. The value "NONE" can be used to specify unlimited duration.
  7882. //
  7883. // An execution start-to-close timeout for this workflow execution must be specified
  7884. // either as a default for the workflow type or through this parameter. If neither
  7885. // this parameter is set nor a default execution start-to-close timeout was
  7886. // specified at registration time then a fault will be returned.
  7887. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  7888. // The input to be provided to the workflow execution.
  7889. Input *string `locationName:"input" type:"string"`
  7890. // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
  7891. //
  7892. // In order for this workflow execution to invoke AWS Lambda functions, an appropriate
  7893. // IAM role must be specified either as a default for the workflow type or through
  7894. // this field.
  7895. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  7896. // The list of tags to associate with the child workflow execution. A maximum
  7897. // of 5 tags can be specified. You can list workflow executions with a specific
  7898. // tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions
  7899. // and specifying a TagFilter.
  7900. TagList []*string `locationName:"tagList" type:"list"`
  7901. // The name of the task list to be used for decision tasks of the child workflow
  7902. // execution.
  7903. //
  7904. // A task list for this workflow execution must be specified either as a default
  7905. // for the workflow type or through this parameter. If neither this parameter
  7906. // is set nor a default task list was specified at registration time then a
  7907. // fault will be returned.The specified string must not start or end with whitespace. It must not contain
  7908. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  7909. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  7910. TaskList *TaskList `locationName:"taskList" type:"structure"`
  7911. // Optional. A task priority that, if set, specifies the priority for a decision
  7912. // task of this workflow execution. This overrides the defaultTaskPriority specified
  7913. // when registering the workflow type. Valid values are integers that range
  7914. // from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647).
  7915. // Higher numbers indicate higher priority.
  7916. //
  7917. // For more information about setting task priority, see Setting Task Priority
  7918. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  7919. // in the Amazon Simple Workflow Developer Guide.
  7920. TaskPriority *string `locationName:"taskPriority" type:"string"`
  7921. // Specifies the maximum duration of decision tasks for this workflow execution.
  7922. // This parameter overrides the defaultTaskStartToCloseTimout specified when
  7923. // registering the workflow type using RegisterWorkflowType.
  7924. //
  7925. // The duration is specified in seconds; an integer greater than or equal to
  7926. // 0. The value "NONE" can be used to specify unlimited duration.
  7927. //
  7928. // A task start-to-close timeout for this workflow execution must be specified
  7929. // either as a default for the workflow type or through this parameter. If neither
  7930. // this parameter is set nor a default task start-to-close timeout was specified
  7931. // at registration time then a fault will be returned.
  7932. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  7933. // Required. The workflowId of the workflow execution.
  7934. //
  7935. // The specified string must not start or end with whitespace. It must not contain
  7936. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  7937. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  7938. //
  7939. // WorkflowId is a required field
  7940. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  7941. // Required. The type of the workflow execution to be started.
  7942. //
  7943. // WorkflowType is a required field
  7944. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  7945. }
  7946. // String returns the string representation
  7947. func (s StartChildWorkflowExecutionDecisionAttributes) String() string {
  7948. return awsutil.Prettify(s)
  7949. }
  7950. // GoString returns the string representation
  7951. func (s StartChildWorkflowExecutionDecisionAttributes) GoString() string {
  7952. return s.String()
  7953. }
  7954. // Validate inspects the fields of the type to determine if they are valid.
  7955. func (s *StartChildWorkflowExecutionDecisionAttributes) Validate() error {
  7956. invalidParams := request.ErrInvalidParams{Context: "StartChildWorkflowExecutionDecisionAttributes"}
  7957. if s.LambdaRole != nil && len(*s.LambdaRole) < 1 {
  7958. invalidParams.Add(request.NewErrParamMinLen("LambdaRole", 1))
  7959. }
  7960. if s.WorkflowId == nil {
  7961. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  7962. }
  7963. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  7964. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  7965. }
  7966. if s.WorkflowType == nil {
  7967. invalidParams.Add(request.NewErrParamRequired("WorkflowType"))
  7968. }
  7969. if s.TaskList != nil {
  7970. if err := s.TaskList.Validate(); err != nil {
  7971. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  7972. }
  7973. }
  7974. if s.WorkflowType != nil {
  7975. if err := s.WorkflowType.Validate(); err != nil {
  7976. invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams))
  7977. }
  7978. }
  7979. if invalidParams.Len() > 0 {
  7980. return invalidParams
  7981. }
  7982. return nil
  7983. }
  7984. // Provides details of the StartChildWorkflowExecutionFailed event.
  7985. type StartChildWorkflowExecutionFailedEventAttributes struct {
  7986. _ struct{} `type:"structure"`
  7987. // The cause of the failure. This information is generated by the system and
  7988. // can be useful for diagnostic purposes.
  7989. //
  7990. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  7991. // lacked sufficient permissions. For details and example IAM policies, see
  7992. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  7993. //
  7994. // Cause is a required field
  7995. Cause *string `locationName:"cause" type:"string" required:"true" enum:"StartChildWorkflowExecutionFailedCause"`
  7996. Control *string `locationName:"control" type:"string"`
  7997. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  7998. // that resulted in the StartChildWorkflowExecution decision to request this
  7999. // child workflow execution. This information can be useful for diagnosing problems
  8000. // by tracing back the cause of events.
  8001. //
  8002. // DecisionTaskCompletedEventId is a required field
  8003. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8004. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  8005. // the StartChildWorkflowExecution decision to start this child workflow execution.
  8006. // This information can be useful for diagnosing problems by tracing back the
  8007. // chain of events leading up to this event.
  8008. //
  8009. // InitiatedEventId is a required field
  8010. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  8011. // The workflowId of the child workflow execution.
  8012. //
  8013. // WorkflowId is a required field
  8014. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  8015. // The workflow type provided in the StartChildWorkflowExecution decision that
  8016. // failed.
  8017. //
  8018. // WorkflowType is a required field
  8019. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  8020. }
  8021. // String returns the string representation
  8022. func (s StartChildWorkflowExecutionFailedEventAttributes) String() string {
  8023. return awsutil.Prettify(s)
  8024. }
  8025. // GoString returns the string representation
  8026. func (s StartChildWorkflowExecutionFailedEventAttributes) GoString() string {
  8027. return s.String()
  8028. }
  8029. // Provides details of the StartChildWorkflowExecutionInitiated event.
  8030. type StartChildWorkflowExecutionInitiatedEventAttributes struct {
  8031. _ struct{} `type:"structure"`
  8032. // The policy to use for the child workflow executions if this execution gets
  8033. // terminated by explicitly calling the TerminateWorkflowExecution action or
  8034. // due to an expired timeout.
  8035. //
  8036. // The supported child policies are:
  8037. //
  8038. // * TERMINATE: the child executions will be terminated.
  8039. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  8040. // execution by recording a WorkflowExecutionCancelRequested event in its
  8041. // history. It is up to the decider to take appropriate actions when it receives
  8042. // an execution history with this event.
  8043. // * ABANDON: no action will be taken. The child executions will continue
  8044. // to run.
  8045. //
  8046. // ChildPolicy is a required field
  8047. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  8048. // Optional. Data attached to the event that can be used by the decider in subsequent
  8049. // decision tasks. This data is not sent to the activity.
  8050. Control *string `locationName:"control" type:"string"`
  8051. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8052. // that resulted in the StartChildWorkflowExecution decision to request this
  8053. // child workflow execution. This information can be useful for diagnosing problems
  8054. // by tracing back the cause of events.
  8055. //
  8056. // DecisionTaskCompletedEventId is a required field
  8057. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8058. // The maximum duration for the child workflow execution. If the workflow execution
  8059. // is not closed within this duration, it will be timed out and force terminated.
  8060. //
  8061. // The duration is specified in seconds; an integer greater than or equal to
  8062. // 0. The value "NONE" can be used to specify unlimited duration.
  8063. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  8064. // The inputs provided to the child workflow execution (if any).
  8065. Input *string `locationName:"input" type:"string"`
  8066. // The IAM role attached to this workflow execution to use when invoking AWS
  8067. // Lambda functions.
  8068. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  8069. // The list of tags to associated with the child workflow execution.
  8070. TagList []*string `locationName:"tagList" type:"list"`
  8071. // The name of the task list used for the decision tasks of the child workflow
  8072. // execution.
  8073. //
  8074. // TaskList is a required field
  8075. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  8076. // Optional. The priority assigned for the decision tasks for this workflow
  8077. // execution. Valid values are integers that range from Java's Integer.MIN_VALUE
  8078. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  8079. // higher priority.
  8080. //
  8081. // For more information about setting task priority, see Setting Task Priority
  8082. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  8083. // in the Amazon Simple Workflow Developer Guide.
  8084. TaskPriority *string `locationName:"taskPriority" type:"string"`
  8085. // The maximum duration allowed for the decision tasks for this workflow execution.
  8086. //
  8087. // The duration is specified in seconds; an integer greater than or equal to
  8088. // 0. The value "NONE" can be used to specify unlimited duration.
  8089. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  8090. // The workflowId of the child workflow execution.
  8091. //
  8092. // WorkflowId is a required field
  8093. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  8094. // The type of the child workflow execution.
  8095. //
  8096. // WorkflowType is a required field
  8097. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  8098. }
  8099. // String returns the string representation
  8100. func (s StartChildWorkflowExecutionInitiatedEventAttributes) String() string {
  8101. return awsutil.Prettify(s)
  8102. }
  8103. // GoString returns the string representation
  8104. func (s StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string {
  8105. return s.String()
  8106. }
  8107. // Provides details for the StartLambdaFunctionFailed event.
  8108. type StartLambdaFunctionFailedEventAttributes struct {
  8109. _ struct{} `type:"structure"`
  8110. // The cause of the failure. This information is generated by the system and
  8111. // can be useful for diagnostic purposes.
  8112. //
  8113. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  8114. // lacked sufficient permissions. For details and example IAM policies, see
  8115. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  8116. Cause *string `locationName:"cause" type:"string" enum:"StartLambdaFunctionFailedCause"`
  8117. // The error message (if any).
  8118. Message *string `locationName:"message" type:"string"`
  8119. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  8120. // Lambda function was scheduled. This information can be useful for diagnosing
  8121. // problems by tracing back the chain of events leading up to this event.
  8122. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long"`
  8123. }
  8124. // String returns the string representation
  8125. func (s StartLambdaFunctionFailedEventAttributes) String() string {
  8126. return awsutil.Prettify(s)
  8127. }
  8128. // GoString returns the string representation
  8129. func (s StartLambdaFunctionFailedEventAttributes) GoString() string {
  8130. return s.String()
  8131. }
  8132. // Provides details of the StartTimer decision.
  8133. //
  8134. // Access Control
  8135. //
  8136. // You can use IAM policies to control this decision's access to Amazon SWF
  8137. // resources as follows:
  8138. //
  8139. // * Use a Resource element with the domain name to limit the action to only
  8140. // specified domains.
  8141. // * Use an Action element to allow or deny permission to call this action.
  8142. //
  8143. // * You cannot use an IAM policy to constrain this action's parameters.
  8144. //
  8145. // If the caller does not have sufficient permissions to invoke the action,
  8146. // or the parameter values fall outside the specified constraints, the action
  8147. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  8148. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  8149. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  8150. type StartTimerDecisionAttributes struct {
  8151. _ struct{} `type:"structure"`
  8152. // Optional. Data attached to the event that can be used by the decider in subsequent
  8153. // workflow tasks.
  8154. Control *string `locationName:"control" type:"string"`
  8155. // Required. The duration to wait before firing the timer.
  8156. //
  8157. // The duration is specified in seconds; an integer greater than or equal to
  8158. // 0.
  8159. //
  8160. // StartToFireTimeout is a required field
  8161. StartToFireTimeout *string `locationName:"startToFireTimeout" min:"1" type:"string" required:"true"`
  8162. // Required. The unique ID of the timer.
  8163. //
  8164. // The specified string must not start or end with whitespace. It must not contain
  8165. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  8166. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  8167. //
  8168. // TimerId is a required field
  8169. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  8170. }
  8171. // String returns the string representation
  8172. func (s StartTimerDecisionAttributes) String() string {
  8173. return awsutil.Prettify(s)
  8174. }
  8175. // GoString returns the string representation
  8176. func (s StartTimerDecisionAttributes) GoString() string {
  8177. return s.String()
  8178. }
  8179. // Validate inspects the fields of the type to determine if they are valid.
  8180. func (s *StartTimerDecisionAttributes) Validate() error {
  8181. invalidParams := request.ErrInvalidParams{Context: "StartTimerDecisionAttributes"}
  8182. if s.StartToFireTimeout == nil {
  8183. invalidParams.Add(request.NewErrParamRequired("StartToFireTimeout"))
  8184. }
  8185. if s.StartToFireTimeout != nil && len(*s.StartToFireTimeout) < 1 {
  8186. invalidParams.Add(request.NewErrParamMinLen("StartToFireTimeout", 1))
  8187. }
  8188. if s.TimerId == nil {
  8189. invalidParams.Add(request.NewErrParamRequired("TimerId"))
  8190. }
  8191. if s.TimerId != nil && len(*s.TimerId) < 1 {
  8192. invalidParams.Add(request.NewErrParamMinLen("TimerId", 1))
  8193. }
  8194. if invalidParams.Len() > 0 {
  8195. return invalidParams
  8196. }
  8197. return nil
  8198. }
  8199. // Provides details of the StartTimerFailed event.
  8200. type StartTimerFailedEventAttributes struct {
  8201. _ struct{} `type:"structure"`
  8202. // The cause of the failure. This information is generated by the system and
  8203. // can be useful for diagnostic purposes.
  8204. //
  8205. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it
  8206. // lacked sufficient permissions. For details and example IAM policies, see
  8207. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  8208. //
  8209. // Cause is a required field
  8210. Cause *string `locationName:"cause" type:"string" required:"true" enum:"StartTimerFailedCause"`
  8211. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8212. // that resulted in the StartTimer decision for this activity task. This information
  8213. // can be useful for diagnosing problems by tracing back the chain of events
  8214. // leading up to this event.
  8215. //
  8216. // DecisionTaskCompletedEventId is a required field
  8217. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8218. // The timerId provided in the StartTimer decision that failed.
  8219. //
  8220. // TimerId is a required field
  8221. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  8222. }
  8223. // String returns the string representation
  8224. func (s StartTimerFailedEventAttributes) String() string {
  8225. return awsutil.Prettify(s)
  8226. }
  8227. // GoString returns the string representation
  8228. func (s StartTimerFailedEventAttributes) GoString() string {
  8229. return s.String()
  8230. }
  8231. type StartWorkflowExecutionInput struct {
  8232. _ struct{} `type:"structure"`
  8233. // If set, specifies the policy to use for the child workflow executions of
  8234. // this workflow execution if it is terminated, by calling the TerminateWorkflowExecution
  8235. // action explicitly or due to an expired timeout. This policy overrides the
  8236. // default child policy specified when registering the workflow type using RegisterWorkflowType.
  8237. //
  8238. // The supported child policies are:
  8239. //
  8240. // * TERMINATE: the child executions will be terminated.
  8241. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  8242. // execution by recording a WorkflowExecutionCancelRequested event in its
  8243. // history. It is up to the decider to take appropriate actions when it receives
  8244. // an execution history with this event.
  8245. // * ABANDON: no action will be taken. The child executions will continue
  8246. // to run.
  8247. // A child policy for this workflow execution must be specified either as a
  8248. // default for the workflow type or through this parameter. If neither this
  8249. // parameter is set nor a default child policy was specified at registration
  8250. // time then a fault will be returned.
  8251. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  8252. // The name of the domain in which the workflow execution is created.
  8253. //
  8254. // Domain is a required field
  8255. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  8256. // The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout
  8257. // specified when registering the workflow type.
  8258. //
  8259. // The duration is specified in seconds; an integer greater than or equal to
  8260. // 0. Exceeding this limit will cause the workflow execution to time out. Unlike
  8261. // some of the other timeout parameters in Amazon SWF, you cannot specify a
  8262. // value of "NONE" for this timeout; there is a one-year max limit on the time
  8263. // that a workflow execution can run.
  8264. //
  8265. // An execution start-to-close timeout must be specified either through this
  8266. // parameter or as a default when the workflow type is registered. If neither
  8267. // this parameter nor a default execution start-to-close timeout is specified,
  8268. // a fault is returned.
  8269. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  8270. // The input for the workflow execution. This is a free form string which should
  8271. // be meaningful to the workflow you are starting. This input is made available
  8272. // to the new workflow execution in the WorkflowExecutionStarted history event.
  8273. Input *string `locationName:"input" type:"string"`
  8274. // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
  8275. //
  8276. // In order for this workflow execution to invoke AWS Lambda functions, an appropriate
  8277. // IAM role must be specified either as a default for the workflow type or through
  8278. // this field.
  8279. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  8280. // The list of tags to associate with the workflow execution. You can specify
  8281. // a maximum of 5 tags. You can list workflow executions with a specific tag
  8282. // by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and
  8283. // specifying a TagFilter.
  8284. TagList []*string `locationName:"tagList" type:"list"`
  8285. // The task list to use for the decision tasks generated for this workflow execution.
  8286. // This overrides the defaultTaskList specified when registering the workflow
  8287. // type.
  8288. //
  8289. // A task list for this workflow execution must be specified either as a default
  8290. // for the workflow type or through this parameter. If neither this parameter
  8291. // is set nor a default task list was specified at registration time then a
  8292. // fault will be returned.The specified string must not start or end with whitespace. It must not contain
  8293. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  8294. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  8295. TaskList *TaskList `locationName:"taskList" type:"structure"`
  8296. // The task priority to use for this workflow execution. This will override
  8297. // any default priority that was assigned when the workflow type was registered.
  8298. // If not set, then the default task priority for the workflow type will be
  8299. // used. Valid values are integers that range from Java's Integer.MIN_VALUE
  8300. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  8301. // higher priority.
  8302. //
  8303. // For more information about setting task priority, see Setting Task Priority
  8304. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  8305. // in the Amazon Simple Workflow Developer Guide.
  8306. TaskPriority *string `locationName:"taskPriority" type:"string"`
  8307. // Specifies the maximum duration of decision tasks for this workflow execution.
  8308. // This parameter overrides the defaultTaskStartToCloseTimout specified when
  8309. // registering the workflow type using RegisterWorkflowType.
  8310. //
  8311. // The duration is specified in seconds; an integer greater than or equal to
  8312. // 0. The value "NONE" can be used to specify unlimited duration.
  8313. //
  8314. // A task start-to-close timeout for this workflow execution must be specified
  8315. // either as a default for the workflow type or through this parameter. If neither
  8316. // this parameter is set nor a default task start-to-close timeout was specified
  8317. // at registration time then a fault will be returned.
  8318. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  8319. // The user defined identifier associated with the workflow execution. You can
  8320. // use this to associate a custom identifier with the workflow execution. You
  8321. // may specify the same identifier if a workflow execution is logically a restart
  8322. // of a previous execution. You cannot have two open workflow executions with
  8323. // the same workflowId at the same time.
  8324. //
  8325. // The specified string must not start or end with whitespace. It must not contain
  8326. // a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f
  8327. // | \u007f - \u009f). Also, it must not contain the literal string quotarnquot.
  8328. //
  8329. // WorkflowId is a required field
  8330. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  8331. // The type of the workflow to start.
  8332. //
  8333. // WorkflowType is a required field
  8334. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  8335. }
  8336. // String returns the string representation
  8337. func (s StartWorkflowExecutionInput) String() string {
  8338. return awsutil.Prettify(s)
  8339. }
  8340. // GoString returns the string representation
  8341. func (s StartWorkflowExecutionInput) GoString() string {
  8342. return s.String()
  8343. }
  8344. // Validate inspects the fields of the type to determine if they are valid.
  8345. func (s *StartWorkflowExecutionInput) Validate() error {
  8346. invalidParams := request.ErrInvalidParams{Context: "StartWorkflowExecutionInput"}
  8347. if s.Domain == nil {
  8348. invalidParams.Add(request.NewErrParamRequired("Domain"))
  8349. }
  8350. if s.Domain != nil && len(*s.Domain) < 1 {
  8351. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  8352. }
  8353. if s.LambdaRole != nil && len(*s.LambdaRole) < 1 {
  8354. invalidParams.Add(request.NewErrParamMinLen("LambdaRole", 1))
  8355. }
  8356. if s.WorkflowId == nil {
  8357. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  8358. }
  8359. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  8360. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  8361. }
  8362. if s.WorkflowType == nil {
  8363. invalidParams.Add(request.NewErrParamRequired("WorkflowType"))
  8364. }
  8365. if s.TaskList != nil {
  8366. if err := s.TaskList.Validate(); err != nil {
  8367. invalidParams.AddNested("TaskList", err.(request.ErrInvalidParams))
  8368. }
  8369. }
  8370. if s.WorkflowType != nil {
  8371. if err := s.WorkflowType.Validate(); err != nil {
  8372. invalidParams.AddNested("WorkflowType", err.(request.ErrInvalidParams))
  8373. }
  8374. }
  8375. if invalidParams.Len() > 0 {
  8376. return invalidParams
  8377. }
  8378. return nil
  8379. }
  8380. // Specifies the runId of a workflow execution.
  8381. type StartWorkflowExecutionOutput struct {
  8382. _ struct{} `type:"structure"`
  8383. // The runId of a workflow execution. This ID is generated by the service and
  8384. // can be used to uniquely identify the workflow execution within a domain.
  8385. RunId *string `locationName:"runId" min:"1" type:"string"`
  8386. }
  8387. // String returns the string representation
  8388. func (s StartWorkflowExecutionOutput) String() string {
  8389. return awsutil.Prettify(s)
  8390. }
  8391. // GoString returns the string representation
  8392. func (s StartWorkflowExecutionOutput) GoString() string {
  8393. return s.String()
  8394. }
  8395. // Used to filter the workflow executions in visibility APIs based on a tag.
  8396. type TagFilter struct {
  8397. _ struct{} `type:"structure"`
  8398. // Required. Specifies the tag that must be associated with the execution for
  8399. // it to meet the filter criteria.
  8400. //
  8401. // Tag is a required field
  8402. Tag *string `locationName:"tag" min:"1" type:"string" required:"true"`
  8403. }
  8404. // String returns the string representation
  8405. func (s TagFilter) String() string {
  8406. return awsutil.Prettify(s)
  8407. }
  8408. // GoString returns the string representation
  8409. func (s TagFilter) GoString() string {
  8410. return s.String()
  8411. }
  8412. // Validate inspects the fields of the type to determine if they are valid.
  8413. func (s *TagFilter) Validate() error {
  8414. invalidParams := request.ErrInvalidParams{Context: "TagFilter"}
  8415. if s.Tag == nil {
  8416. invalidParams.Add(request.NewErrParamRequired("Tag"))
  8417. }
  8418. if s.Tag != nil && len(*s.Tag) < 1 {
  8419. invalidParams.Add(request.NewErrParamMinLen("Tag", 1))
  8420. }
  8421. if invalidParams.Len() > 0 {
  8422. return invalidParams
  8423. }
  8424. return nil
  8425. }
  8426. // Represents a task list.
  8427. type TaskList struct {
  8428. _ struct{} `type:"structure"`
  8429. // The name of the task list.
  8430. //
  8431. // Name is a required field
  8432. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  8433. }
  8434. // String returns the string representation
  8435. func (s TaskList) String() string {
  8436. return awsutil.Prettify(s)
  8437. }
  8438. // GoString returns the string representation
  8439. func (s TaskList) GoString() string {
  8440. return s.String()
  8441. }
  8442. // Validate inspects the fields of the type to determine if they are valid.
  8443. func (s *TaskList) Validate() error {
  8444. invalidParams := request.ErrInvalidParams{Context: "TaskList"}
  8445. if s.Name == nil {
  8446. invalidParams.Add(request.NewErrParamRequired("Name"))
  8447. }
  8448. if s.Name != nil && len(*s.Name) < 1 {
  8449. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8450. }
  8451. if invalidParams.Len() > 0 {
  8452. return invalidParams
  8453. }
  8454. return nil
  8455. }
  8456. type TerminateWorkflowExecutionInput struct {
  8457. _ struct{} `type:"structure"`
  8458. // If set, specifies the policy to use for the child workflow executions of
  8459. // the workflow execution being terminated. This policy overrides the child
  8460. // policy specified for the workflow execution at registration time or when
  8461. // starting the execution.
  8462. //
  8463. // The supported child policies are:
  8464. //
  8465. // * TERMINATE: the child executions will be terminated.
  8466. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  8467. // execution by recording a WorkflowExecutionCancelRequested event in its
  8468. // history. It is up to the decider to take appropriate actions when it receives
  8469. // an execution history with this event.
  8470. // * ABANDON: no action will be taken. The child executions will continue
  8471. // to run.
  8472. // A child policy for this workflow execution must be specified either as a
  8473. // default for the workflow type or through this parameter. If neither this
  8474. // parameter is set nor a default child policy was specified at registration
  8475. // time then a fault will be returned.
  8476. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  8477. // Optional. Details for terminating the workflow execution.
  8478. Details *string `locationName:"details" type:"string"`
  8479. // The domain of the workflow execution to terminate.
  8480. //
  8481. // Domain is a required field
  8482. Domain *string `locationName:"domain" min:"1" type:"string" required:"true"`
  8483. // Optional. A descriptive reason for terminating the workflow execution.
  8484. Reason *string `locationName:"reason" type:"string"`
  8485. // The runId of the workflow execution to terminate.
  8486. RunId *string `locationName:"runId" type:"string"`
  8487. // The workflowId of the workflow execution to terminate.
  8488. //
  8489. // WorkflowId is a required field
  8490. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  8491. }
  8492. // String returns the string representation
  8493. func (s TerminateWorkflowExecutionInput) String() string {
  8494. return awsutil.Prettify(s)
  8495. }
  8496. // GoString returns the string representation
  8497. func (s TerminateWorkflowExecutionInput) GoString() string {
  8498. return s.String()
  8499. }
  8500. // Validate inspects the fields of the type to determine if they are valid.
  8501. func (s *TerminateWorkflowExecutionInput) Validate() error {
  8502. invalidParams := request.ErrInvalidParams{Context: "TerminateWorkflowExecutionInput"}
  8503. if s.Domain == nil {
  8504. invalidParams.Add(request.NewErrParamRequired("Domain"))
  8505. }
  8506. if s.Domain != nil && len(*s.Domain) < 1 {
  8507. invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
  8508. }
  8509. if s.WorkflowId == nil {
  8510. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  8511. }
  8512. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  8513. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  8514. }
  8515. if invalidParams.Len() > 0 {
  8516. return invalidParams
  8517. }
  8518. return nil
  8519. }
  8520. type TerminateWorkflowExecutionOutput struct {
  8521. _ struct{} `type:"structure"`
  8522. }
  8523. // String returns the string representation
  8524. func (s TerminateWorkflowExecutionOutput) String() string {
  8525. return awsutil.Prettify(s)
  8526. }
  8527. // GoString returns the string representation
  8528. func (s TerminateWorkflowExecutionOutput) GoString() string {
  8529. return s.String()
  8530. }
  8531. // Provides details of the TimerCanceled event.
  8532. type TimerCanceledEventAttributes struct {
  8533. _ struct{} `type:"structure"`
  8534. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8535. // that resulted in the CancelTimer decision to cancel this timer. This information
  8536. // can be useful for diagnosing problems by tracing back the chain of events
  8537. // leading up to this event.
  8538. //
  8539. // DecisionTaskCompletedEventId is a required field
  8540. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8541. // The ID of the TimerStarted event that was recorded when this timer was started.
  8542. // This information can be useful for diagnosing problems by tracing back the
  8543. // chain of events leading up to this event.
  8544. //
  8545. // StartedEventId is a required field
  8546. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  8547. // The unique ID of the timer that was canceled.
  8548. //
  8549. // TimerId is a required field
  8550. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  8551. }
  8552. // String returns the string representation
  8553. func (s TimerCanceledEventAttributes) String() string {
  8554. return awsutil.Prettify(s)
  8555. }
  8556. // GoString returns the string representation
  8557. func (s TimerCanceledEventAttributes) GoString() string {
  8558. return s.String()
  8559. }
  8560. // Provides details of the TimerFired event.
  8561. type TimerFiredEventAttributes struct {
  8562. _ struct{} `type:"structure"`
  8563. // The ID of the TimerStarted event that was recorded when this timer was started.
  8564. // This information can be useful for diagnosing problems by tracing back the
  8565. // chain of events leading up to this event.
  8566. //
  8567. // StartedEventId is a required field
  8568. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  8569. // The unique ID of the timer that fired.
  8570. //
  8571. // TimerId is a required field
  8572. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  8573. }
  8574. // String returns the string representation
  8575. func (s TimerFiredEventAttributes) String() string {
  8576. return awsutil.Prettify(s)
  8577. }
  8578. // GoString returns the string representation
  8579. func (s TimerFiredEventAttributes) GoString() string {
  8580. return s.String()
  8581. }
  8582. // Provides details of the TimerStarted event.
  8583. type TimerStartedEventAttributes struct {
  8584. _ struct{} `type:"structure"`
  8585. // Optional. Data attached to the event that can be used by the decider in subsequent
  8586. // workflow tasks.
  8587. Control *string `locationName:"control" type:"string"`
  8588. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8589. // that resulted in the StartTimer decision for this activity task. This information
  8590. // can be useful for diagnosing problems by tracing back the chain of events
  8591. // leading up to this event.
  8592. //
  8593. // DecisionTaskCompletedEventId is a required field
  8594. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8595. // The duration of time after which the timer will fire.
  8596. //
  8597. // The duration is specified in seconds; an integer greater than or equal to
  8598. // 0.
  8599. //
  8600. // StartToFireTimeout is a required field
  8601. StartToFireTimeout *string `locationName:"startToFireTimeout" min:"1" type:"string" required:"true"`
  8602. // The unique ID of the timer that was started.
  8603. //
  8604. // TimerId is a required field
  8605. TimerId *string `locationName:"timerId" min:"1" type:"string" required:"true"`
  8606. }
  8607. // String returns the string representation
  8608. func (s TimerStartedEventAttributes) String() string {
  8609. return awsutil.Prettify(s)
  8610. }
  8611. // GoString returns the string representation
  8612. func (s TimerStartedEventAttributes) GoString() string {
  8613. return s.String()
  8614. }
  8615. // Represents a workflow execution.
  8616. type WorkflowExecution struct {
  8617. _ struct{} `type:"structure"`
  8618. // A system-generated unique identifier for the workflow execution.
  8619. //
  8620. // RunId is a required field
  8621. RunId *string `locationName:"runId" min:"1" type:"string" required:"true"`
  8622. // The user defined identifier associated with the workflow execution.
  8623. //
  8624. // WorkflowId is a required field
  8625. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  8626. }
  8627. // String returns the string representation
  8628. func (s WorkflowExecution) String() string {
  8629. return awsutil.Prettify(s)
  8630. }
  8631. // GoString returns the string representation
  8632. func (s WorkflowExecution) GoString() string {
  8633. return s.String()
  8634. }
  8635. // Validate inspects the fields of the type to determine if they are valid.
  8636. func (s *WorkflowExecution) Validate() error {
  8637. invalidParams := request.ErrInvalidParams{Context: "WorkflowExecution"}
  8638. if s.RunId == nil {
  8639. invalidParams.Add(request.NewErrParamRequired("RunId"))
  8640. }
  8641. if s.RunId != nil && len(*s.RunId) < 1 {
  8642. invalidParams.Add(request.NewErrParamMinLen("RunId", 1))
  8643. }
  8644. if s.WorkflowId == nil {
  8645. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  8646. }
  8647. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  8648. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  8649. }
  8650. if invalidParams.Len() > 0 {
  8651. return invalidParams
  8652. }
  8653. return nil
  8654. }
  8655. // Provides details of the WorkflowExecutionCancelRequested event.
  8656. type WorkflowExecutionCancelRequestedEventAttributes struct {
  8657. _ struct{} `type:"structure"`
  8658. // If set, indicates that the request to cancel the workflow execution was automatically
  8659. // generated, and specifies the cause. This happens if the parent workflow execution
  8660. // times out or is terminated, and the child policy is set to cancel child executions.
  8661. Cause *string `locationName:"cause" type:"string" enum:"WorkflowExecutionCancelRequestedCause"`
  8662. // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding
  8663. // to the RequestCancelExternalWorkflowExecution decision to cancel this workflow
  8664. // execution.The source event with this ID can be found in the history of the
  8665. // source workflow execution. This information can be useful for diagnosing
  8666. // problems by tracing back the chain of events leading up to this event.
  8667. ExternalInitiatedEventId *int64 `locationName:"externalInitiatedEventId" type:"long"`
  8668. // The external workflow execution for which the cancellation was requested.
  8669. ExternalWorkflowExecution *WorkflowExecution `locationName:"externalWorkflowExecution" type:"structure"`
  8670. }
  8671. // String returns the string representation
  8672. func (s WorkflowExecutionCancelRequestedEventAttributes) String() string {
  8673. return awsutil.Prettify(s)
  8674. }
  8675. // GoString returns the string representation
  8676. func (s WorkflowExecutionCancelRequestedEventAttributes) GoString() string {
  8677. return s.String()
  8678. }
  8679. // Provides details of the WorkflowExecutionCanceled event.
  8680. type WorkflowExecutionCanceledEventAttributes struct {
  8681. _ struct{} `type:"structure"`
  8682. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8683. // that resulted in the CancelWorkflowExecution decision for this cancellation
  8684. // request. This information can be useful for diagnosing problems by tracing
  8685. // back the chain of events leading up to this event.
  8686. //
  8687. // DecisionTaskCompletedEventId is a required field
  8688. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8689. // Details for the cancellation (if any).
  8690. Details *string `locationName:"details" type:"string"`
  8691. }
  8692. // String returns the string representation
  8693. func (s WorkflowExecutionCanceledEventAttributes) String() string {
  8694. return awsutil.Prettify(s)
  8695. }
  8696. // GoString returns the string representation
  8697. func (s WorkflowExecutionCanceledEventAttributes) GoString() string {
  8698. return s.String()
  8699. }
  8700. // Provides details of the WorkflowExecutionCompleted event.
  8701. type WorkflowExecutionCompletedEventAttributes struct {
  8702. _ struct{} `type:"structure"`
  8703. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8704. // that resulted in the CompleteWorkflowExecution decision to complete this
  8705. // execution. This information can be useful for diagnosing problems by tracing
  8706. // back the chain of events leading up to this event.
  8707. //
  8708. // DecisionTaskCompletedEventId is a required field
  8709. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8710. // The result produced by the workflow execution upon successful completion.
  8711. Result *string `locationName:"result" type:"string"`
  8712. }
  8713. // String returns the string representation
  8714. func (s WorkflowExecutionCompletedEventAttributes) String() string {
  8715. return awsutil.Prettify(s)
  8716. }
  8717. // GoString returns the string representation
  8718. func (s WorkflowExecutionCompletedEventAttributes) GoString() string {
  8719. return s.String()
  8720. }
  8721. // The configuration settings for a workflow execution including timeout values,
  8722. // tasklist etc. These configuration settings are determined from the defaults
  8723. // specified when registering the workflow type and those specified when starting
  8724. // the workflow execution.
  8725. type WorkflowExecutionConfiguration struct {
  8726. _ struct{} `type:"structure"`
  8727. // The policy to use for the child workflow executions if this workflow execution
  8728. // is terminated, by calling the TerminateWorkflowExecution action explicitly
  8729. // or due to an expired timeout.
  8730. //
  8731. // The supported child policies are:
  8732. //
  8733. // * TERMINATE: the child executions will be terminated.
  8734. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  8735. // execution by recording a WorkflowExecutionCancelRequested event in its
  8736. // history. It is up to the decider to take appropriate actions when it receives
  8737. // an execution history with this event.
  8738. // * ABANDON: no action will be taken. The child executions will continue
  8739. // to run.
  8740. //
  8741. // ChildPolicy is a required field
  8742. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  8743. // The total duration for this workflow execution.
  8744. //
  8745. // The duration is specified in seconds; an integer greater than or equal to
  8746. // 0. The value "NONE" can be used to specify unlimited duration.
  8747. //
  8748. // ExecutionStartToCloseTimeout is a required field
  8749. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" min:"1" type:"string" required:"true"`
  8750. // The IAM role used by this workflow execution when invoking AWS Lambda functions.
  8751. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  8752. // The task list used for the decision tasks generated for this workflow execution.
  8753. //
  8754. // TaskList is a required field
  8755. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  8756. // The priority assigned to decision tasks for this workflow execution. Valid
  8757. // values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  8758. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  8759. //
  8760. // For more information about setting task priority, see Setting Task Priority
  8761. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  8762. // in the Amazon Simple Workflow Developer Guide.
  8763. TaskPriority *string `locationName:"taskPriority" type:"string"`
  8764. // The maximum duration allowed for decision tasks for this workflow execution.
  8765. //
  8766. // The duration is specified in seconds; an integer greater than or equal to
  8767. // 0. The value "NONE" can be used to specify unlimited duration.
  8768. //
  8769. // TaskStartToCloseTimeout is a required field
  8770. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" min:"1" type:"string" required:"true"`
  8771. }
  8772. // String returns the string representation
  8773. func (s WorkflowExecutionConfiguration) String() string {
  8774. return awsutil.Prettify(s)
  8775. }
  8776. // GoString returns the string representation
  8777. func (s WorkflowExecutionConfiguration) GoString() string {
  8778. return s.String()
  8779. }
  8780. // Provides details of the WorkflowExecutionContinuedAsNew event.
  8781. type WorkflowExecutionContinuedAsNewEventAttributes struct {
  8782. _ struct{} `type:"structure"`
  8783. // The policy to use for the child workflow executions of the new execution
  8784. // if it is terminated by calling the TerminateWorkflowExecution action explicitly
  8785. // or due to an expired timeout.
  8786. //
  8787. // The supported child policies are:
  8788. //
  8789. // * TERMINATE: the child executions will be terminated.
  8790. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  8791. // execution by recording a WorkflowExecutionCancelRequested event in its
  8792. // history. It is up to the decider to take appropriate actions when it receives
  8793. // an execution history with this event.
  8794. // * ABANDON: no action will be taken. The child executions will continue
  8795. // to run.
  8796. //
  8797. // ChildPolicy is a required field
  8798. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  8799. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8800. // that resulted in the ContinueAsNewWorkflowExecution decision that started
  8801. // this execution. This information can be useful for diagnosing problems by
  8802. // tracing back the chain of events leading up to this event.
  8803. //
  8804. // DecisionTaskCompletedEventId is a required field
  8805. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8806. // The total duration allowed for the new workflow execution.
  8807. //
  8808. // The duration is specified in seconds; an integer greater than or equal to
  8809. // 0. The value "NONE" can be used to specify unlimited duration.
  8810. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  8811. // The input provided to the new workflow execution.
  8812. Input *string `locationName:"input" type:"string"`
  8813. // The IAM role attached to this workflow execution to use when invoking AWS
  8814. // Lambda functions.
  8815. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  8816. // The runId of the new workflow execution.
  8817. //
  8818. // NewExecutionRunId is a required field
  8819. NewExecutionRunId *string `locationName:"newExecutionRunId" min:"1" type:"string" required:"true"`
  8820. // The list of tags associated with the new workflow execution.
  8821. TagList []*string `locationName:"tagList" type:"list"`
  8822. // Represents a task list.
  8823. //
  8824. // TaskList is a required field
  8825. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  8826. TaskPriority *string `locationName:"taskPriority" type:"string"`
  8827. // The maximum duration of decision tasks for the new workflow execution.
  8828. //
  8829. // The duration is specified in seconds; an integer greater than or equal to
  8830. // 0. The value "NONE" can be used to specify unlimited duration.
  8831. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  8832. // Represents a workflow type.
  8833. //
  8834. // WorkflowType is a required field
  8835. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  8836. }
  8837. // String returns the string representation
  8838. func (s WorkflowExecutionContinuedAsNewEventAttributes) String() string {
  8839. return awsutil.Prettify(s)
  8840. }
  8841. // GoString returns the string representation
  8842. func (s WorkflowExecutionContinuedAsNewEventAttributes) GoString() string {
  8843. return s.String()
  8844. }
  8845. // Contains the count of workflow executions returned from CountOpenWorkflowExecutions
  8846. // or CountClosedWorkflowExecutions
  8847. type WorkflowExecutionCount struct {
  8848. _ struct{} `type:"structure"`
  8849. // The number of workflow executions.
  8850. //
  8851. // Count is a required field
  8852. Count *int64 `locationName:"count" type:"integer" required:"true"`
  8853. // If set to true, indicates that the actual count was more than the maximum
  8854. // supported by this API and the count returned is the truncated value.
  8855. Truncated *bool `locationName:"truncated" type:"boolean"`
  8856. }
  8857. // String returns the string representation
  8858. func (s WorkflowExecutionCount) String() string {
  8859. return awsutil.Prettify(s)
  8860. }
  8861. // GoString returns the string representation
  8862. func (s WorkflowExecutionCount) GoString() string {
  8863. return s.String()
  8864. }
  8865. // Provides details of the WorkflowExecutionFailed event.
  8866. type WorkflowExecutionFailedEventAttributes struct {
  8867. _ struct{} `type:"structure"`
  8868. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  8869. // that resulted in the FailWorkflowExecution decision to fail this execution.
  8870. // This information can be useful for diagnosing problems by tracing back the
  8871. // chain of events leading up to this event.
  8872. //
  8873. // DecisionTaskCompletedEventId is a required field
  8874. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  8875. // The details of the failure (if any).
  8876. Details *string `locationName:"details" type:"string"`
  8877. // The descriptive reason provided for the failure (if any).
  8878. Reason *string `locationName:"reason" type:"string"`
  8879. }
  8880. // String returns the string representation
  8881. func (s WorkflowExecutionFailedEventAttributes) String() string {
  8882. return awsutil.Prettify(s)
  8883. }
  8884. // GoString returns the string representation
  8885. func (s WorkflowExecutionFailedEventAttributes) GoString() string {
  8886. return s.String()
  8887. }
  8888. // Used to filter the workflow executions in visibility APIs by their workflowId.
  8889. type WorkflowExecutionFilter struct {
  8890. _ struct{} `type:"structure"`
  8891. // The workflowId to pass of match the criteria of this filter.
  8892. //
  8893. // WorkflowId is a required field
  8894. WorkflowId *string `locationName:"workflowId" min:"1" type:"string" required:"true"`
  8895. }
  8896. // String returns the string representation
  8897. func (s WorkflowExecutionFilter) String() string {
  8898. return awsutil.Prettify(s)
  8899. }
  8900. // GoString returns the string representation
  8901. func (s WorkflowExecutionFilter) GoString() string {
  8902. return s.String()
  8903. }
  8904. // Validate inspects the fields of the type to determine if they are valid.
  8905. func (s *WorkflowExecutionFilter) Validate() error {
  8906. invalidParams := request.ErrInvalidParams{Context: "WorkflowExecutionFilter"}
  8907. if s.WorkflowId == nil {
  8908. invalidParams.Add(request.NewErrParamRequired("WorkflowId"))
  8909. }
  8910. if s.WorkflowId != nil && len(*s.WorkflowId) < 1 {
  8911. invalidParams.Add(request.NewErrParamMinLen("WorkflowId", 1))
  8912. }
  8913. if invalidParams.Len() > 0 {
  8914. return invalidParams
  8915. }
  8916. return nil
  8917. }
  8918. // Contains information about a workflow execution.
  8919. type WorkflowExecutionInfo struct {
  8920. _ struct{} `type:"structure"`
  8921. // Set to true if a cancellation is requested for this workflow execution.
  8922. CancelRequested *bool `locationName:"cancelRequested" type:"boolean"`
  8923. // If the execution status is closed then this specifies how the execution was
  8924. // closed:
  8925. //
  8926. // * COMPLETED: the execution was successfully completed.
  8927. // * CANCELED: the execution was canceled.Cancellation allows the implementation
  8928. // to gracefully clean up before the execution is closed.
  8929. // * TERMINATED: the execution was force terminated.
  8930. // * FAILED: the execution failed to complete.
  8931. // * TIMED_OUT: the execution did not complete in the alloted time and was
  8932. // automatically timed out.
  8933. // * CONTINUED_AS_NEW: the execution is logically continued. This means the
  8934. // current execution was completed and a new execution was started to carry
  8935. // on the workflow.
  8936. CloseStatus *string `locationName:"closeStatus" type:"string" enum:"CloseStatus"`
  8937. // The time when the workflow execution was closed. Set only if the execution
  8938. // status is CLOSED.
  8939. CloseTimestamp *time.Time `locationName:"closeTimestamp" type:"timestamp" timestampFormat:"unix"`
  8940. // The workflow execution this information is about.
  8941. //
  8942. // Execution is a required field
  8943. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"`
  8944. // The current status of the execution.
  8945. //
  8946. // ExecutionStatus is a required field
  8947. ExecutionStatus *string `locationName:"executionStatus" type:"string" required:"true" enum:"ExecutionStatus"`
  8948. // If this workflow execution is a child of another execution then contains
  8949. // the workflow execution that started this execution.
  8950. Parent *WorkflowExecution `locationName:"parent" type:"structure"`
  8951. // The time when the execution was started.
  8952. //
  8953. // StartTimestamp is a required field
  8954. StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
  8955. // The list of tags associated with the workflow execution. Tags can be used
  8956. // to identify and list workflow executions of interest through the visibility
  8957. // APIs. A workflow execution can have a maximum of 5 tags.
  8958. TagList []*string `locationName:"tagList" type:"list"`
  8959. // The type of the workflow execution.
  8960. //
  8961. // WorkflowType is a required field
  8962. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  8963. }
  8964. // String returns the string representation
  8965. func (s WorkflowExecutionInfo) String() string {
  8966. return awsutil.Prettify(s)
  8967. }
  8968. // GoString returns the string representation
  8969. func (s WorkflowExecutionInfo) GoString() string {
  8970. return s.String()
  8971. }
  8972. // Contains a paginated list of information about workflow executions.
  8973. type WorkflowExecutionInfos struct {
  8974. _ struct{} `type:"structure"`
  8975. // The list of workflow information structures.
  8976. //
  8977. // ExecutionInfos is a required field
  8978. ExecutionInfos []*WorkflowExecutionInfo `locationName:"executionInfos" type:"list" required:"true"`
  8979. // If a NextPageToken was returned by a previous call, there are more results
  8980. // available. To retrieve the next page of results, make the call again using
  8981. // the returned token in nextPageToken. Keep all other arguments unchanged.
  8982. //
  8983. // The configured maximumPageSize determines how many results can be returned
  8984. // in a single call.
  8985. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  8986. }
  8987. // String returns the string representation
  8988. func (s WorkflowExecutionInfos) String() string {
  8989. return awsutil.Prettify(s)
  8990. }
  8991. // GoString returns the string representation
  8992. func (s WorkflowExecutionInfos) GoString() string {
  8993. return s.String()
  8994. }
  8995. // Contains the counts of open tasks, child workflow executions and timers for
  8996. // a workflow execution.
  8997. type WorkflowExecutionOpenCounts struct {
  8998. _ struct{} `type:"structure"`
  8999. // The count of activity tasks whose status is OPEN.
  9000. //
  9001. // OpenActivityTasks is a required field
  9002. OpenActivityTasks *int64 `locationName:"openActivityTasks" type:"integer" required:"true"`
  9003. // The count of child workflow executions whose status is OPEN.
  9004. //
  9005. // OpenChildWorkflowExecutions is a required field
  9006. OpenChildWorkflowExecutions *int64 `locationName:"openChildWorkflowExecutions" type:"integer" required:"true"`
  9007. // The count of decision tasks whose status is OPEN. A workflow execution can
  9008. // have at most one open decision task.
  9009. //
  9010. // OpenDecisionTasks is a required field
  9011. OpenDecisionTasks *int64 `locationName:"openDecisionTasks" type:"integer" required:"true"`
  9012. // The count of AWS Lambda functions that are currently executing.
  9013. OpenLambdaFunctions *int64 `locationName:"openLambdaFunctions" type:"integer"`
  9014. // The count of timers started by this workflow execution that have not fired
  9015. // yet.
  9016. //
  9017. // OpenTimers is a required field
  9018. OpenTimers *int64 `locationName:"openTimers" type:"integer" required:"true"`
  9019. }
  9020. // String returns the string representation
  9021. func (s WorkflowExecutionOpenCounts) String() string {
  9022. return awsutil.Prettify(s)
  9023. }
  9024. // GoString returns the string representation
  9025. func (s WorkflowExecutionOpenCounts) GoString() string {
  9026. return s.String()
  9027. }
  9028. // Provides details of the WorkflowExecutionSignaled event.
  9029. type WorkflowExecutionSignaledEventAttributes struct {
  9030. _ struct{} `type:"structure"`
  9031. // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding
  9032. // to the SignalExternalWorkflow decision to signal this workflow execution.The
  9033. // source event with this ID can be found in the history of the source workflow
  9034. // execution. This information can be useful for diagnosing problems by tracing
  9035. // back the chain of events leading up to this event. This field is set only
  9036. // if the signal was initiated by another workflow execution.
  9037. ExternalInitiatedEventId *int64 `locationName:"externalInitiatedEventId" type:"long"`
  9038. // The workflow execution that sent the signal. This is set only of the signal
  9039. // was sent by another workflow execution.
  9040. ExternalWorkflowExecution *WorkflowExecution `locationName:"externalWorkflowExecution" type:"structure"`
  9041. // Inputs provided with the signal (if any). The decider can use the signal
  9042. // name and inputs to determine how to process the signal.
  9043. Input *string `locationName:"input" type:"string"`
  9044. // The name of the signal received. The decider can use the signal name and
  9045. // inputs to determine how to the process the signal.
  9046. //
  9047. // SignalName is a required field
  9048. SignalName *string `locationName:"signalName" min:"1" type:"string" required:"true"`
  9049. }
  9050. // String returns the string representation
  9051. func (s WorkflowExecutionSignaledEventAttributes) String() string {
  9052. return awsutil.Prettify(s)
  9053. }
  9054. // GoString returns the string representation
  9055. func (s WorkflowExecutionSignaledEventAttributes) GoString() string {
  9056. return s.String()
  9057. }
  9058. // Provides details of WorkflowExecutionStarted event.
  9059. type WorkflowExecutionStartedEventAttributes struct {
  9060. _ struct{} `type:"structure"`
  9061. // The policy to use for the child workflow executions if this workflow execution
  9062. // is terminated, by calling the TerminateWorkflowExecution action explicitly
  9063. // or due to an expired timeout.
  9064. //
  9065. // The supported child policies are:
  9066. //
  9067. // * TERMINATE: the child executions will be terminated.
  9068. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  9069. // execution by recording a WorkflowExecutionCancelRequested event in its
  9070. // history. It is up to the decider to take appropriate actions when it receives
  9071. // an execution history with this event.
  9072. // * ABANDON: no action will be taken. The child executions will continue
  9073. // to run.
  9074. //
  9075. // ChildPolicy is a required field
  9076. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  9077. // If this workflow execution was started due to a ContinueAsNewWorkflowExecution
  9078. // decision, then it contains the runId of the previous workflow execution that
  9079. // was closed and continued as this execution.
  9080. ContinuedExecutionRunId *string `locationName:"continuedExecutionRunId" type:"string"`
  9081. // The maximum duration for this workflow execution.
  9082. //
  9083. // The duration is specified in seconds; an integer greater than or equal to
  9084. // 0. The value "NONE" can be used to specify unlimited duration.
  9085. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  9086. // The input provided to the workflow execution (if any).
  9087. Input *string `locationName:"input" type:"string"`
  9088. // The IAM role attached to this workflow execution to use when invoking AWS
  9089. // Lambda functions.
  9090. LambdaRole *string `locationName:"lambdaRole" min:"1" type:"string"`
  9091. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  9092. // the StartChildWorkflowExecution decision to start this workflow execution.
  9093. // The source event with this ID can be found in the history of the source workflow
  9094. // execution. This information can be useful for diagnosing problems by tracing
  9095. // back the chain of events leading up to this event.
  9096. ParentInitiatedEventId *int64 `locationName:"parentInitiatedEventId" type:"long"`
  9097. // The source workflow execution that started this workflow execution. The member
  9098. // is not set if the workflow execution was not started by a workflow.
  9099. ParentWorkflowExecution *WorkflowExecution `locationName:"parentWorkflowExecution" type:"structure"`
  9100. // The list of tags associated with this workflow execution. An execution can
  9101. // have up to 5 tags.
  9102. TagList []*string `locationName:"tagList" type:"list"`
  9103. // The name of the task list for scheduling the decision tasks for this workflow
  9104. // execution.
  9105. //
  9106. // TaskList is a required field
  9107. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  9108. TaskPriority *string `locationName:"taskPriority" type:"string"`
  9109. // The maximum duration of decision tasks for this workflow type.
  9110. //
  9111. // The duration is specified in seconds; an integer greater than or equal to
  9112. // 0. The value "NONE" can be used to specify unlimited duration.
  9113. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  9114. // The workflow type of this execution.
  9115. //
  9116. // WorkflowType is a required field
  9117. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  9118. }
  9119. // String returns the string representation
  9120. func (s WorkflowExecutionStartedEventAttributes) String() string {
  9121. return awsutil.Prettify(s)
  9122. }
  9123. // GoString returns the string representation
  9124. func (s WorkflowExecutionStartedEventAttributes) GoString() string {
  9125. return s.String()
  9126. }
  9127. // Provides details of the WorkflowExecutionTerminated event.
  9128. type WorkflowExecutionTerminatedEventAttributes struct {
  9129. _ struct{} `type:"structure"`
  9130. // If set, indicates that the workflow execution was automatically terminated,
  9131. // and specifies the cause. This happens if the parent workflow execution times
  9132. // out or is terminated and the child policy is set to terminate child executions.
  9133. Cause *string `locationName:"cause" type:"string" enum:"WorkflowExecutionTerminatedCause"`
  9134. // The policy used for the child workflow executions of this workflow execution.
  9135. //
  9136. // The supported child policies are:
  9137. //
  9138. // * TERMINATE: the child executions will be terminated.
  9139. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  9140. // execution by recording a WorkflowExecutionCancelRequested event in its
  9141. // history. It is up to the decider to take appropriate actions when it receives
  9142. // an execution history with this event.
  9143. // * ABANDON: no action will be taken. The child executions will continue
  9144. // to run.
  9145. //
  9146. // ChildPolicy is a required field
  9147. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  9148. // The details provided for the termination (if any).
  9149. Details *string `locationName:"details" type:"string"`
  9150. // The reason provided for the termination (if any).
  9151. Reason *string `locationName:"reason" type:"string"`
  9152. }
  9153. // String returns the string representation
  9154. func (s WorkflowExecutionTerminatedEventAttributes) String() string {
  9155. return awsutil.Prettify(s)
  9156. }
  9157. // GoString returns the string representation
  9158. func (s WorkflowExecutionTerminatedEventAttributes) GoString() string {
  9159. return s.String()
  9160. }
  9161. // Provides details of the WorkflowExecutionTimedOut event.
  9162. type WorkflowExecutionTimedOutEventAttributes struct {
  9163. _ struct{} `type:"structure"`
  9164. // The policy used for the child workflow executions of this workflow execution.
  9165. //
  9166. // The supported child policies are:
  9167. //
  9168. // * TERMINATE: the child executions will be terminated.
  9169. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  9170. // execution by recording a WorkflowExecutionCancelRequested event in its
  9171. // history. It is up to the decider to take appropriate actions when it receives
  9172. // an execution history with this event.
  9173. // * ABANDON: no action will be taken. The child executions will continue
  9174. // to run.
  9175. //
  9176. // ChildPolicy is a required field
  9177. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  9178. // The type of timeout that caused this event.
  9179. //
  9180. // TimeoutType is a required field
  9181. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"WorkflowExecutionTimeoutType"`
  9182. }
  9183. // String returns the string representation
  9184. func (s WorkflowExecutionTimedOutEventAttributes) String() string {
  9185. return awsutil.Prettify(s)
  9186. }
  9187. // GoString returns the string representation
  9188. func (s WorkflowExecutionTimedOutEventAttributes) GoString() string {
  9189. return s.String()
  9190. }
  9191. // Represents a workflow type.
  9192. type WorkflowType struct {
  9193. _ struct{} `type:"structure"`
  9194. // Required. The name of the workflow type.
  9195. //
  9196. // The combination of workflow type name and version must be unique with in
  9197. // a domain.
  9198. //
  9199. // Name is a required field
  9200. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  9201. // Required. The version of the workflow type.
  9202. //
  9203. // The combination of workflow type name and version must be unique with in
  9204. // a domain.
  9205. //
  9206. // Version is a required field
  9207. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  9208. }
  9209. // String returns the string representation
  9210. func (s WorkflowType) String() string {
  9211. return awsutil.Prettify(s)
  9212. }
  9213. // GoString returns the string representation
  9214. func (s WorkflowType) GoString() string {
  9215. return s.String()
  9216. }
  9217. // Validate inspects the fields of the type to determine if they are valid.
  9218. func (s *WorkflowType) Validate() error {
  9219. invalidParams := request.ErrInvalidParams{Context: "WorkflowType"}
  9220. if s.Name == nil {
  9221. invalidParams.Add(request.NewErrParamRequired("Name"))
  9222. }
  9223. if s.Name != nil && len(*s.Name) < 1 {
  9224. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  9225. }
  9226. if s.Version == nil {
  9227. invalidParams.Add(request.NewErrParamRequired("Version"))
  9228. }
  9229. if s.Version != nil && len(*s.Version) < 1 {
  9230. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  9231. }
  9232. if invalidParams.Len() > 0 {
  9233. return invalidParams
  9234. }
  9235. return nil
  9236. }
  9237. // The configuration settings of a workflow type.
  9238. type WorkflowTypeConfiguration struct {
  9239. _ struct{} `type:"structure"`
  9240. // Optional. The default policy to use for the child workflow executions when
  9241. // a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution
  9242. // action explicitly or due to an expired timeout. This default can be overridden
  9243. // when starting a workflow execution using the StartWorkflowExecution action
  9244. // or the StartChildWorkflowExecution decision.
  9245. //
  9246. // The supported child policies are:
  9247. //
  9248. // * TERMINATE: the child executions will be terminated.
  9249. // * REQUEST_CANCEL: a request to cancel will be attempted for each child
  9250. // execution by recording a WorkflowExecutionCancelRequested event in its
  9251. // history. It is up to the decider to take appropriate actions when it receives
  9252. // an execution history with this event.
  9253. // * ABANDON: no action will be taken. The child executions will continue
  9254. // to run.
  9255. DefaultChildPolicy *string `locationName:"defaultChildPolicy" type:"string" enum:"ChildPolicy"`
  9256. // Optional. The default maximum duration, specified when registering the workflow
  9257. // type, for executions of this workflow type. This default can be overridden
  9258. // when starting a workflow execution using the StartWorkflowExecution action
  9259. // or the StartChildWorkflowExecution decision.
  9260. //
  9261. // The duration is specified in seconds; an integer greater than or equal to
  9262. // 0. The value "NONE" can be used to specify unlimited duration.
  9263. DefaultExecutionStartToCloseTimeout *string `locationName:"defaultExecutionStartToCloseTimeout" type:"string"`
  9264. // The default IAM role to use when a workflow execution invokes a AWS Lambda
  9265. // function.
  9266. DefaultLambdaRole *string `locationName:"defaultLambdaRole" min:"1" type:"string"`
  9267. // Optional. The default task list, specified when registering the workflow
  9268. // type, for decisions tasks scheduled for workflow executions of this type.
  9269. // This default can be overridden when starting a workflow execution using the
  9270. // StartWorkflowExecution action or the StartChildWorkflowExecution decision.
  9271. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  9272. // Optional. The default task priority, specified when registering the workflow
  9273. // type, for all decision tasks of this workflow type. This default can be overridden
  9274. // when starting a workflow execution using the StartWorkflowExecution action
  9275. // or the StartChildWorkflowExecution decision.
  9276. //
  9277. // Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  9278. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  9279. //
  9280. // For more information about setting task priority, see Setting Task Priority
  9281. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  9282. // in the Amazon Simple Workflow Developer Guide.
  9283. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  9284. // Optional. The default maximum duration, specified when registering the workflow
  9285. // type, that a decision task for executions of this workflow type might take
  9286. // before returning completion or failure. If the task does not close in the
  9287. // specified time then the task is automatically timed out and rescheduled.
  9288. // If the decider eventually reports a completion or failure, it is ignored.
  9289. // This default can be overridden when starting a workflow execution using the
  9290. // StartWorkflowExecution action or the StartChildWorkflowExecution decision.
  9291. //
  9292. // The duration is specified in seconds; an integer greater than or equal to
  9293. // 0. The value "NONE" can be used to specify unlimited duration.
  9294. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  9295. }
  9296. // String returns the string representation
  9297. func (s WorkflowTypeConfiguration) String() string {
  9298. return awsutil.Prettify(s)
  9299. }
  9300. // GoString returns the string representation
  9301. func (s WorkflowTypeConfiguration) GoString() string {
  9302. return s.String()
  9303. }
  9304. // Used to filter workflow execution query results by type. Each parameter,
  9305. // if specified, defines a rule that must be satisfied by each returned result.
  9306. type WorkflowTypeFilter struct {
  9307. _ struct{} `type:"structure"`
  9308. // Required. Name of the workflow type.
  9309. //
  9310. // Name is a required field
  9311. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  9312. // Version of the workflow type.
  9313. Version *string `locationName:"version" type:"string"`
  9314. }
  9315. // String returns the string representation
  9316. func (s WorkflowTypeFilter) String() string {
  9317. return awsutil.Prettify(s)
  9318. }
  9319. // GoString returns the string representation
  9320. func (s WorkflowTypeFilter) GoString() string {
  9321. return s.String()
  9322. }
  9323. // Validate inspects the fields of the type to determine if they are valid.
  9324. func (s *WorkflowTypeFilter) Validate() error {
  9325. invalidParams := request.ErrInvalidParams{Context: "WorkflowTypeFilter"}
  9326. if s.Name == nil {
  9327. invalidParams.Add(request.NewErrParamRequired("Name"))
  9328. }
  9329. if s.Name != nil && len(*s.Name) < 1 {
  9330. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  9331. }
  9332. if invalidParams.Len() > 0 {
  9333. return invalidParams
  9334. }
  9335. return nil
  9336. }
  9337. // Contains information about a workflow type.
  9338. type WorkflowTypeInfo struct {
  9339. _ struct{} `type:"structure"`
  9340. // The date when this type was registered.
  9341. //
  9342. // CreationDate is a required field
  9343. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
  9344. // If the type is in deprecated state, then it is set to the date when the type
  9345. // was deprecated.
  9346. DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
  9347. // The description of the type registered through RegisterWorkflowType.
  9348. Description *string `locationName:"description" type:"string"`
  9349. // The current status of the workflow type.
  9350. //
  9351. // Status is a required field
  9352. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"`
  9353. // The workflow type this information is about.
  9354. //
  9355. // WorkflowType is a required field
  9356. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  9357. }
  9358. // String returns the string representation
  9359. func (s WorkflowTypeInfo) String() string {
  9360. return awsutil.Prettify(s)
  9361. }
  9362. // GoString returns the string representation
  9363. func (s WorkflowTypeInfo) GoString() string {
  9364. return s.String()
  9365. }
  9366. const (
  9367. // ActivityTaskTimeoutTypeStartToClose is a ActivityTaskTimeoutType enum value
  9368. ActivityTaskTimeoutTypeStartToClose = "START_TO_CLOSE"
  9369. // ActivityTaskTimeoutTypeScheduleToStart is a ActivityTaskTimeoutType enum value
  9370. ActivityTaskTimeoutTypeScheduleToStart = "SCHEDULE_TO_START"
  9371. // ActivityTaskTimeoutTypeScheduleToClose is a ActivityTaskTimeoutType enum value
  9372. ActivityTaskTimeoutTypeScheduleToClose = "SCHEDULE_TO_CLOSE"
  9373. // ActivityTaskTimeoutTypeHeartbeat is a ActivityTaskTimeoutType enum value
  9374. ActivityTaskTimeoutTypeHeartbeat = "HEARTBEAT"
  9375. )
  9376. const (
  9377. // CancelTimerFailedCauseTimerIdUnknown is a CancelTimerFailedCause enum value
  9378. CancelTimerFailedCauseTimerIdUnknown = "TIMER_ID_UNKNOWN"
  9379. // CancelTimerFailedCauseOperationNotPermitted is a CancelTimerFailedCause enum value
  9380. CancelTimerFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9381. )
  9382. const (
  9383. // CancelWorkflowExecutionFailedCauseUnhandledDecision is a CancelWorkflowExecutionFailedCause enum value
  9384. CancelWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  9385. // CancelWorkflowExecutionFailedCauseOperationNotPermitted is a CancelWorkflowExecutionFailedCause enum value
  9386. CancelWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9387. )
  9388. const (
  9389. // ChildPolicyTerminate is a ChildPolicy enum value
  9390. ChildPolicyTerminate = "TERMINATE"
  9391. // ChildPolicyRequestCancel is a ChildPolicy enum value
  9392. ChildPolicyRequestCancel = "REQUEST_CANCEL"
  9393. // ChildPolicyAbandon is a ChildPolicy enum value
  9394. ChildPolicyAbandon = "ABANDON"
  9395. )
  9396. const (
  9397. // CloseStatusCompleted is a CloseStatus enum value
  9398. CloseStatusCompleted = "COMPLETED"
  9399. // CloseStatusFailed is a CloseStatus enum value
  9400. CloseStatusFailed = "FAILED"
  9401. // CloseStatusCanceled is a CloseStatus enum value
  9402. CloseStatusCanceled = "CANCELED"
  9403. // CloseStatusTerminated is a CloseStatus enum value
  9404. CloseStatusTerminated = "TERMINATED"
  9405. // CloseStatusContinuedAsNew is a CloseStatus enum value
  9406. CloseStatusContinuedAsNew = "CONTINUED_AS_NEW"
  9407. // CloseStatusTimedOut is a CloseStatus enum value
  9408. CloseStatusTimedOut = "TIMED_OUT"
  9409. )
  9410. const (
  9411. // CompleteWorkflowExecutionFailedCauseUnhandledDecision is a CompleteWorkflowExecutionFailedCause enum value
  9412. CompleteWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  9413. // CompleteWorkflowExecutionFailedCauseOperationNotPermitted is a CompleteWorkflowExecutionFailedCause enum value
  9414. CompleteWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9415. )
  9416. const (
  9417. // ContinueAsNewWorkflowExecutionFailedCauseUnhandledDecision is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9418. ContinueAsNewWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  9419. // ContinueAsNewWorkflowExecutionFailedCauseWorkflowTypeDeprecated is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9420. ContinueAsNewWorkflowExecutionFailedCauseWorkflowTypeDeprecated = "WORKFLOW_TYPE_DEPRECATED"
  9421. // ContinueAsNewWorkflowExecutionFailedCauseWorkflowTypeDoesNotExist is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9422. ContinueAsNewWorkflowExecutionFailedCauseWorkflowTypeDoesNotExist = "WORKFLOW_TYPE_DOES_NOT_EXIST"
  9423. // ContinueAsNewWorkflowExecutionFailedCauseDefaultExecutionStartToCloseTimeoutUndefined is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9424. ContinueAsNewWorkflowExecutionFailedCauseDefaultExecutionStartToCloseTimeoutUndefined = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  9425. // ContinueAsNewWorkflowExecutionFailedCauseDefaultTaskStartToCloseTimeoutUndefined is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9426. ContinueAsNewWorkflowExecutionFailedCauseDefaultTaskStartToCloseTimeoutUndefined = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  9427. // ContinueAsNewWorkflowExecutionFailedCauseDefaultTaskListUndefined is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9428. ContinueAsNewWorkflowExecutionFailedCauseDefaultTaskListUndefined = "DEFAULT_TASK_LIST_UNDEFINED"
  9429. // ContinueAsNewWorkflowExecutionFailedCauseDefaultChildPolicyUndefined is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9430. ContinueAsNewWorkflowExecutionFailedCauseDefaultChildPolicyUndefined = "DEFAULT_CHILD_POLICY_UNDEFINED"
  9431. // ContinueAsNewWorkflowExecutionFailedCauseContinueAsNewWorkflowExecutionRateExceeded is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9432. ContinueAsNewWorkflowExecutionFailedCauseContinueAsNewWorkflowExecutionRateExceeded = "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"
  9433. // ContinueAsNewWorkflowExecutionFailedCauseOperationNotPermitted is a ContinueAsNewWorkflowExecutionFailedCause enum value
  9434. ContinueAsNewWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9435. )
  9436. const (
  9437. // DecisionTaskTimeoutTypeStartToClose is a DecisionTaskTimeoutType enum value
  9438. DecisionTaskTimeoutTypeStartToClose = "START_TO_CLOSE"
  9439. )
  9440. const (
  9441. // DecisionTypeScheduleActivityTask is a DecisionType enum value
  9442. DecisionTypeScheduleActivityTask = "ScheduleActivityTask"
  9443. // DecisionTypeRequestCancelActivityTask is a DecisionType enum value
  9444. DecisionTypeRequestCancelActivityTask = "RequestCancelActivityTask"
  9445. // DecisionTypeCompleteWorkflowExecution is a DecisionType enum value
  9446. DecisionTypeCompleteWorkflowExecution = "CompleteWorkflowExecution"
  9447. // DecisionTypeFailWorkflowExecution is a DecisionType enum value
  9448. DecisionTypeFailWorkflowExecution = "FailWorkflowExecution"
  9449. // DecisionTypeCancelWorkflowExecution is a DecisionType enum value
  9450. DecisionTypeCancelWorkflowExecution = "CancelWorkflowExecution"
  9451. // DecisionTypeContinueAsNewWorkflowExecution is a DecisionType enum value
  9452. DecisionTypeContinueAsNewWorkflowExecution = "ContinueAsNewWorkflowExecution"
  9453. // DecisionTypeRecordMarker is a DecisionType enum value
  9454. DecisionTypeRecordMarker = "RecordMarker"
  9455. // DecisionTypeStartTimer is a DecisionType enum value
  9456. DecisionTypeStartTimer = "StartTimer"
  9457. // DecisionTypeCancelTimer is a DecisionType enum value
  9458. DecisionTypeCancelTimer = "CancelTimer"
  9459. // DecisionTypeSignalExternalWorkflowExecution is a DecisionType enum value
  9460. DecisionTypeSignalExternalWorkflowExecution = "SignalExternalWorkflowExecution"
  9461. // DecisionTypeRequestCancelExternalWorkflowExecution is a DecisionType enum value
  9462. DecisionTypeRequestCancelExternalWorkflowExecution = "RequestCancelExternalWorkflowExecution"
  9463. // DecisionTypeStartChildWorkflowExecution is a DecisionType enum value
  9464. DecisionTypeStartChildWorkflowExecution = "StartChildWorkflowExecution"
  9465. // DecisionTypeScheduleLambdaFunction is a DecisionType enum value
  9466. DecisionTypeScheduleLambdaFunction = "ScheduleLambdaFunction"
  9467. )
  9468. const (
  9469. // EventTypeWorkflowExecutionStarted is a EventType enum value
  9470. EventTypeWorkflowExecutionStarted = "WorkflowExecutionStarted"
  9471. // EventTypeWorkflowExecutionCancelRequested is a EventType enum value
  9472. EventTypeWorkflowExecutionCancelRequested = "WorkflowExecutionCancelRequested"
  9473. // EventTypeWorkflowExecutionCompleted is a EventType enum value
  9474. EventTypeWorkflowExecutionCompleted = "WorkflowExecutionCompleted"
  9475. // EventTypeCompleteWorkflowExecutionFailed is a EventType enum value
  9476. EventTypeCompleteWorkflowExecutionFailed = "CompleteWorkflowExecutionFailed"
  9477. // EventTypeWorkflowExecutionFailed is a EventType enum value
  9478. EventTypeWorkflowExecutionFailed = "WorkflowExecutionFailed"
  9479. // EventTypeFailWorkflowExecutionFailed is a EventType enum value
  9480. EventTypeFailWorkflowExecutionFailed = "FailWorkflowExecutionFailed"
  9481. // EventTypeWorkflowExecutionTimedOut is a EventType enum value
  9482. EventTypeWorkflowExecutionTimedOut = "WorkflowExecutionTimedOut"
  9483. // EventTypeWorkflowExecutionCanceled is a EventType enum value
  9484. EventTypeWorkflowExecutionCanceled = "WorkflowExecutionCanceled"
  9485. // EventTypeCancelWorkflowExecutionFailed is a EventType enum value
  9486. EventTypeCancelWorkflowExecutionFailed = "CancelWorkflowExecutionFailed"
  9487. // EventTypeWorkflowExecutionContinuedAsNew is a EventType enum value
  9488. EventTypeWorkflowExecutionContinuedAsNew = "WorkflowExecutionContinuedAsNew"
  9489. // EventTypeContinueAsNewWorkflowExecutionFailed is a EventType enum value
  9490. EventTypeContinueAsNewWorkflowExecutionFailed = "ContinueAsNewWorkflowExecutionFailed"
  9491. // EventTypeWorkflowExecutionTerminated is a EventType enum value
  9492. EventTypeWorkflowExecutionTerminated = "WorkflowExecutionTerminated"
  9493. // EventTypeDecisionTaskScheduled is a EventType enum value
  9494. EventTypeDecisionTaskScheduled = "DecisionTaskScheduled"
  9495. // EventTypeDecisionTaskStarted is a EventType enum value
  9496. EventTypeDecisionTaskStarted = "DecisionTaskStarted"
  9497. // EventTypeDecisionTaskCompleted is a EventType enum value
  9498. EventTypeDecisionTaskCompleted = "DecisionTaskCompleted"
  9499. // EventTypeDecisionTaskTimedOut is a EventType enum value
  9500. EventTypeDecisionTaskTimedOut = "DecisionTaskTimedOut"
  9501. // EventTypeActivityTaskScheduled is a EventType enum value
  9502. EventTypeActivityTaskScheduled = "ActivityTaskScheduled"
  9503. // EventTypeScheduleActivityTaskFailed is a EventType enum value
  9504. EventTypeScheduleActivityTaskFailed = "ScheduleActivityTaskFailed"
  9505. // EventTypeActivityTaskStarted is a EventType enum value
  9506. EventTypeActivityTaskStarted = "ActivityTaskStarted"
  9507. // EventTypeActivityTaskCompleted is a EventType enum value
  9508. EventTypeActivityTaskCompleted = "ActivityTaskCompleted"
  9509. // EventTypeActivityTaskFailed is a EventType enum value
  9510. EventTypeActivityTaskFailed = "ActivityTaskFailed"
  9511. // EventTypeActivityTaskTimedOut is a EventType enum value
  9512. EventTypeActivityTaskTimedOut = "ActivityTaskTimedOut"
  9513. // EventTypeActivityTaskCanceled is a EventType enum value
  9514. EventTypeActivityTaskCanceled = "ActivityTaskCanceled"
  9515. // EventTypeActivityTaskCancelRequested is a EventType enum value
  9516. EventTypeActivityTaskCancelRequested = "ActivityTaskCancelRequested"
  9517. // EventTypeRequestCancelActivityTaskFailed is a EventType enum value
  9518. EventTypeRequestCancelActivityTaskFailed = "RequestCancelActivityTaskFailed"
  9519. // EventTypeWorkflowExecutionSignaled is a EventType enum value
  9520. EventTypeWorkflowExecutionSignaled = "WorkflowExecutionSignaled"
  9521. // EventTypeMarkerRecorded is a EventType enum value
  9522. EventTypeMarkerRecorded = "MarkerRecorded"
  9523. // EventTypeRecordMarkerFailed is a EventType enum value
  9524. EventTypeRecordMarkerFailed = "RecordMarkerFailed"
  9525. // EventTypeTimerStarted is a EventType enum value
  9526. EventTypeTimerStarted = "TimerStarted"
  9527. // EventTypeStartTimerFailed is a EventType enum value
  9528. EventTypeStartTimerFailed = "StartTimerFailed"
  9529. // EventTypeTimerFired is a EventType enum value
  9530. EventTypeTimerFired = "TimerFired"
  9531. // EventTypeTimerCanceled is a EventType enum value
  9532. EventTypeTimerCanceled = "TimerCanceled"
  9533. // EventTypeCancelTimerFailed is a EventType enum value
  9534. EventTypeCancelTimerFailed = "CancelTimerFailed"
  9535. // EventTypeStartChildWorkflowExecutionInitiated is a EventType enum value
  9536. EventTypeStartChildWorkflowExecutionInitiated = "StartChildWorkflowExecutionInitiated"
  9537. // EventTypeStartChildWorkflowExecutionFailed is a EventType enum value
  9538. EventTypeStartChildWorkflowExecutionFailed = "StartChildWorkflowExecutionFailed"
  9539. // EventTypeChildWorkflowExecutionStarted is a EventType enum value
  9540. EventTypeChildWorkflowExecutionStarted = "ChildWorkflowExecutionStarted"
  9541. // EventTypeChildWorkflowExecutionCompleted is a EventType enum value
  9542. EventTypeChildWorkflowExecutionCompleted = "ChildWorkflowExecutionCompleted"
  9543. // EventTypeChildWorkflowExecutionFailed is a EventType enum value
  9544. EventTypeChildWorkflowExecutionFailed = "ChildWorkflowExecutionFailed"
  9545. // EventTypeChildWorkflowExecutionTimedOut is a EventType enum value
  9546. EventTypeChildWorkflowExecutionTimedOut = "ChildWorkflowExecutionTimedOut"
  9547. // EventTypeChildWorkflowExecutionCanceled is a EventType enum value
  9548. EventTypeChildWorkflowExecutionCanceled = "ChildWorkflowExecutionCanceled"
  9549. // EventTypeChildWorkflowExecutionTerminated is a EventType enum value
  9550. EventTypeChildWorkflowExecutionTerminated = "ChildWorkflowExecutionTerminated"
  9551. // EventTypeSignalExternalWorkflowExecutionInitiated is a EventType enum value
  9552. EventTypeSignalExternalWorkflowExecutionInitiated = "SignalExternalWorkflowExecutionInitiated"
  9553. // EventTypeSignalExternalWorkflowExecutionFailed is a EventType enum value
  9554. EventTypeSignalExternalWorkflowExecutionFailed = "SignalExternalWorkflowExecutionFailed"
  9555. // EventTypeExternalWorkflowExecutionSignaled is a EventType enum value
  9556. EventTypeExternalWorkflowExecutionSignaled = "ExternalWorkflowExecutionSignaled"
  9557. // EventTypeRequestCancelExternalWorkflowExecutionInitiated is a EventType enum value
  9558. EventTypeRequestCancelExternalWorkflowExecutionInitiated = "RequestCancelExternalWorkflowExecutionInitiated"
  9559. // EventTypeRequestCancelExternalWorkflowExecutionFailed is a EventType enum value
  9560. EventTypeRequestCancelExternalWorkflowExecutionFailed = "RequestCancelExternalWorkflowExecutionFailed"
  9561. // EventTypeExternalWorkflowExecutionCancelRequested is a EventType enum value
  9562. EventTypeExternalWorkflowExecutionCancelRequested = "ExternalWorkflowExecutionCancelRequested"
  9563. // EventTypeLambdaFunctionScheduled is a EventType enum value
  9564. EventTypeLambdaFunctionScheduled = "LambdaFunctionScheduled"
  9565. // EventTypeLambdaFunctionStarted is a EventType enum value
  9566. EventTypeLambdaFunctionStarted = "LambdaFunctionStarted"
  9567. // EventTypeLambdaFunctionCompleted is a EventType enum value
  9568. EventTypeLambdaFunctionCompleted = "LambdaFunctionCompleted"
  9569. // EventTypeLambdaFunctionFailed is a EventType enum value
  9570. EventTypeLambdaFunctionFailed = "LambdaFunctionFailed"
  9571. // EventTypeLambdaFunctionTimedOut is a EventType enum value
  9572. EventTypeLambdaFunctionTimedOut = "LambdaFunctionTimedOut"
  9573. // EventTypeScheduleLambdaFunctionFailed is a EventType enum value
  9574. EventTypeScheduleLambdaFunctionFailed = "ScheduleLambdaFunctionFailed"
  9575. // EventTypeStartLambdaFunctionFailed is a EventType enum value
  9576. EventTypeStartLambdaFunctionFailed = "StartLambdaFunctionFailed"
  9577. )
  9578. const (
  9579. // ExecutionStatusOpen is a ExecutionStatus enum value
  9580. ExecutionStatusOpen = "OPEN"
  9581. // ExecutionStatusClosed is a ExecutionStatus enum value
  9582. ExecutionStatusClosed = "CLOSED"
  9583. )
  9584. const (
  9585. // FailWorkflowExecutionFailedCauseUnhandledDecision is a FailWorkflowExecutionFailedCause enum value
  9586. FailWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  9587. // FailWorkflowExecutionFailedCauseOperationNotPermitted is a FailWorkflowExecutionFailedCause enum value
  9588. FailWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9589. )
  9590. const (
  9591. // LambdaFunctionTimeoutTypeStartToClose is a LambdaFunctionTimeoutType enum value
  9592. LambdaFunctionTimeoutTypeStartToClose = "START_TO_CLOSE"
  9593. )
  9594. const (
  9595. // RecordMarkerFailedCauseOperationNotPermitted is a RecordMarkerFailedCause enum value
  9596. RecordMarkerFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9597. )
  9598. const (
  9599. // RegistrationStatusRegistered is a RegistrationStatus enum value
  9600. RegistrationStatusRegistered = "REGISTERED"
  9601. // RegistrationStatusDeprecated is a RegistrationStatus enum value
  9602. RegistrationStatusDeprecated = "DEPRECATED"
  9603. )
  9604. const (
  9605. // RequestCancelActivityTaskFailedCauseActivityIdUnknown is a RequestCancelActivityTaskFailedCause enum value
  9606. RequestCancelActivityTaskFailedCauseActivityIdUnknown = "ACTIVITY_ID_UNKNOWN"
  9607. // RequestCancelActivityTaskFailedCauseOperationNotPermitted is a RequestCancelActivityTaskFailedCause enum value
  9608. RequestCancelActivityTaskFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9609. )
  9610. const (
  9611. // RequestCancelExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution is a RequestCancelExternalWorkflowExecutionFailedCause enum value
  9612. RequestCancelExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution = "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
  9613. // RequestCancelExternalWorkflowExecutionFailedCauseRequestCancelExternalWorkflowExecutionRateExceeded is a RequestCancelExternalWorkflowExecutionFailedCause enum value
  9614. RequestCancelExternalWorkflowExecutionFailedCauseRequestCancelExternalWorkflowExecutionRateExceeded = "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"
  9615. // RequestCancelExternalWorkflowExecutionFailedCauseOperationNotPermitted is a RequestCancelExternalWorkflowExecutionFailedCause enum value
  9616. RequestCancelExternalWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9617. )
  9618. const (
  9619. // ScheduleActivityTaskFailedCauseActivityTypeDeprecated is a ScheduleActivityTaskFailedCause enum value
  9620. ScheduleActivityTaskFailedCauseActivityTypeDeprecated = "ACTIVITY_TYPE_DEPRECATED"
  9621. // ScheduleActivityTaskFailedCauseActivityTypeDoesNotExist is a ScheduleActivityTaskFailedCause enum value
  9622. ScheduleActivityTaskFailedCauseActivityTypeDoesNotExist = "ACTIVITY_TYPE_DOES_NOT_EXIST"
  9623. // ScheduleActivityTaskFailedCauseActivityIdAlreadyInUse is a ScheduleActivityTaskFailedCause enum value
  9624. ScheduleActivityTaskFailedCauseActivityIdAlreadyInUse = "ACTIVITY_ID_ALREADY_IN_USE"
  9625. // ScheduleActivityTaskFailedCauseOpenActivitiesLimitExceeded is a ScheduleActivityTaskFailedCause enum value
  9626. ScheduleActivityTaskFailedCauseOpenActivitiesLimitExceeded = "OPEN_ACTIVITIES_LIMIT_EXCEEDED"
  9627. // ScheduleActivityTaskFailedCauseActivityCreationRateExceeded is a ScheduleActivityTaskFailedCause enum value
  9628. ScheduleActivityTaskFailedCauseActivityCreationRateExceeded = "ACTIVITY_CREATION_RATE_EXCEEDED"
  9629. // ScheduleActivityTaskFailedCauseDefaultScheduleToCloseTimeoutUndefined is a ScheduleActivityTaskFailedCause enum value
  9630. ScheduleActivityTaskFailedCauseDefaultScheduleToCloseTimeoutUndefined = "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED"
  9631. // ScheduleActivityTaskFailedCauseDefaultTaskListUndefined is a ScheduleActivityTaskFailedCause enum value
  9632. ScheduleActivityTaskFailedCauseDefaultTaskListUndefined = "DEFAULT_TASK_LIST_UNDEFINED"
  9633. // ScheduleActivityTaskFailedCauseDefaultScheduleToStartTimeoutUndefined is a ScheduleActivityTaskFailedCause enum value
  9634. ScheduleActivityTaskFailedCauseDefaultScheduleToStartTimeoutUndefined = "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED"
  9635. // ScheduleActivityTaskFailedCauseDefaultStartToCloseTimeoutUndefined is a ScheduleActivityTaskFailedCause enum value
  9636. ScheduleActivityTaskFailedCauseDefaultStartToCloseTimeoutUndefined = "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  9637. // ScheduleActivityTaskFailedCauseDefaultHeartbeatTimeoutUndefined is a ScheduleActivityTaskFailedCause enum value
  9638. ScheduleActivityTaskFailedCauseDefaultHeartbeatTimeoutUndefined = "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED"
  9639. // ScheduleActivityTaskFailedCauseOperationNotPermitted is a ScheduleActivityTaskFailedCause enum value
  9640. ScheduleActivityTaskFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9641. )
  9642. const (
  9643. // ScheduleLambdaFunctionFailedCauseIdAlreadyInUse is a ScheduleLambdaFunctionFailedCause enum value
  9644. ScheduleLambdaFunctionFailedCauseIdAlreadyInUse = "ID_ALREADY_IN_USE"
  9645. // ScheduleLambdaFunctionFailedCauseOpenLambdaFunctionsLimitExceeded is a ScheduleLambdaFunctionFailedCause enum value
  9646. ScheduleLambdaFunctionFailedCauseOpenLambdaFunctionsLimitExceeded = "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"
  9647. // ScheduleLambdaFunctionFailedCauseLambdaFunctionCreationRateExceeded is a ScheduleLambdaFunctionFailedCause enum value
  9648. ScheduleLambdaFunctionFailedCauseLambdaFunctionCreationRateExceeded = "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED"
  9649. // ScheduleLambdaFunctionFailedCauseLambdaServiceNotAvailableInRegion is a ScheduleLambdaFunctionFailedCause enum value
  9650. ScheduleLambdaFunctionFailedCauseLambdaServiceNotAvailableInRegion = "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"
  9651. )
  9652. const (
  9653. // SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution is a SignalExternalWorkflowExecutionFailedCause enum value
  9654. SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution = "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
  9655. // SignalExternalWorkflowExecutionFailedCauseSignalExternalWorkflowExecutionRateExceeded is a SignalExternalWorkflowExecutionFailedCause enum value
  9656. SignalExternalWorkflowExecutionFailedCauseSignalExternalWorkflowExecutionRateExceeded = "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"
  9657. // SignalExternalWorkflowExecutionFailedCauseOperationNotPermitted is a SignalExternalWorkflowExecutionFailedCause enum value
  9658. SignalExternalWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9659. )
  9660. const (
  9661. // StartChildWorkflowExecutionFailedCauseWorkflowTypeDoesNotExist is a StartChildWorkflowExecutionFailedCause enum value
  9662. StartChildWorkflowExecutionFailedCauseWorkflowTypeDoesNotExist = "WORKFLOW_TYPE_DOES_NOT_EXIST"
  9663. // StartChildWorkflowExecutionFailedCauseWorkflowTypeDeprecated is a StartChildWorkflowExecutionFailedCause enum value
  9664. StartChildWorkflowExecutionFailedCauseWorkflowTypeDeprecated = "WORKFLOW_TYPE_DEPRECATED"
  9665. // StartChildWorkflowExecutionFailedCauseOpenChildrenLimitExceeded is a StartChildWorkflowExecutionFailedCause enum value
  9666. StartChildWorkflowExecutionFailedCauseOpenChildrenLimitExceeded = "OPEN_CHILDREN_LIMIT_EXCEEDED"
  9667. // StartChildWorkflowExecutionFailedCauseOpenWorkflowsLimitExceeded is a StartChildWorkflowExecutionFailedCause enum value
  9668. StartChildWorkflowExecutionFailedCauseOpenWorkflowsLimitExceeded = "OPEN_WORKFLOWS_LIMIT_EXCEEDED"
  9669. // StartChildWorkflowExecutionFailedCauseChildCreationRateExceeded is a StartChildWorkflowExecutionFailedCause enum value
  9670. StartChildWorkflowExecutionFailedCauseChildCreationRateExceeded = "CHILD_CREATION_RATE_EXCEEDED"
  9671. // StartChildWorkflowExecutionFailedCauseWorkflowAlreadyRunning is a StartChildWorkflowExecutionFailedCause enum value
  9672. StartChildWorkflowExecutionFailedCauseWorkflowAlreadyRunning = "WORKFLOW_ALREADY_RUNNING"
  9673. // StartChildWorkflowExecutionFailedCauseDefaultExecutionStartToCloseTimeoutUndefined is a StartChildWorkflowExecutionFailedCause enum value
  9674. StartChildWorkflowExecutionFailedCauseDefaultExecutionStartToCloseTimeoutUndefined = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  9675. // StartChildWorkflowExecutionFailedCauseDefaultTaskListUndefined is a StartChildWorkflowExecutionFailedCause enum value
  9676. StartChildWorkflowExecutionFailedCauseDefaultTaskListUndefined = "DEFAULT_TASK_LIST_UNDEFINED"
  9677. // StartChildWorkflowExecutionFailedCauseDefaultTaskStartToCloseTimeoutUndefined is a StartChildWorkflowExecutionFailedCause enum value
  9678. StartChildWorkflowExecutionFailedCauseDefaultTaskStartToCloseTimeoutUndefined = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  9679. // StartChildWorkflowExecutionFailedCauseDefaultChildPolicyUndefined is a StartChildWorkflowExecutionFailedCause enum value
  9680. StartChildWorkflowExecutionFailedCauseDefaultChildPolicyUndefined = "DEFAULT_CHILD_POLICY_UNDEFINED"
  9681. // StartChildWorkflowExecutionFailedCauseOperationNotPermitted is a StartChildWorkflowExecutionFailedCause enum value
  9682. StartChildWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9683. )
  9684. const (
  9685. // StartLambdaFunctionFailedCauseAssumeRoleFailed is a StartLambdaFunctionFailedCause enum value
  9686. StartLambdaFunctionFailedCauseAssumeRoleFailed = "ASSUME_ROLE_FAILED"
  9687. )
  9688. const (
  9689. // StartTimerFailedCauseTimerIdAlreadyInUse is a StartTimerFailedCause enum value
  9690. StartTimerFailedCauseTimerIdAlreadyInUse = "TIMER_ID_ALREADY_IN_USE"
  9691. // StartTimerFailedCauseOpenTimersLimitExceeded is a StartTimerFailedCause enum value
  9692. StartTimerFailedCauseOpenTimersLimitExceeded = "OPEN_TIMERS_LIMIT_EXCEEDED"
  9693. // StartTimerFailedCauseTimerCreationRateExceeded is a StartTimerFailedCause enum value
  9694. StartTimerFailedCauseTimerCreationRateExceeded = "TIMER_CREATION_RATE_EXCEEDED"
  9695. // StartTimerFailedCauseOperationNotPermitted is a StartTimerFailedCause enum value
  9696. StartTimerFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  9697. )
  9698. const (
  9699. // WorkflowExecutionCancelRequestedCauseChildPolicyApplied is a WorkflowExecutionCancelRequestedCause enum value
  9700. WorkflowExecutionCancelRequestedCauseChildPolicyApplied = "CHILD_POLICY_APPLIED"
  9701. )
  9702. const (
  9703. // WorkflowExecutionTerminatedCauseChildPolicyApplied is a WorkflowExecutionTerminatedCause enum value
  9704. WorkflowExecutionTerminatedCauseChildPolicyApplied = "CHILD_POLICY_APPLIED"
  9705. // WorkflowExecutionTerminatedCauseEventLimitExceeded is a WorkflowExecutionTerminatedCause enum value
  9706. WorkflowExecutionTerminatedCauseEventLimitExceeded = "EVENT_LIMIT_EXCEEDED"
  9707. // WorkflowExecutionTerminatedCauseOperatorInitiated is a WorkflowExecutionTerminatedCause enum value
  9708. WorkflowExecutionTerminatedCauseOperatorInitiated = "OPERATOR_INITIATED"
  9709. )
  9710. const (
  9711. // WorkflowExecutionTimeoutTypeStartToClose is a WorkflowExecutionTimeoutType enum value
  9712. WorkflowExecutionTimeoutTypeStartToClose = "START_TO_CLOSE"
  9713. )