api.go 347 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071
  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. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions"
  10. // CountClosedWorkflowExecutionsRequest generates a request for the CountClosedWorkflowExecutions operation.
  11. func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) {
  12. op := &request.Operation{
  13. Name: opCountClosedWorkflowExecutions,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &CountClosedWorkflowExecutionsInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &WorkflowExecutionCount{}
  22. req.Data = output
  23. return
  24. }
  25. // Returns the number of closed workflow executions within the given domain
  26. // that meet the specified filtering criteria.
  27. //
  28. // This operation is eventually consistent. The results are best effort and
  29. // may not exactly reflect recent updates and changes. Access Control
  30. //
  31. // You can use IAM policies to control this action's access to Amazon SWF resources
  32. // as follows:
  33. //
  34. // Use a Resource element with the domain name to limit the action to only
  35. // specified domains. Use an Action element to allow or deny permission to call
  36. // this action. Constrain the following parameters by using a Condition element
  37. // with the appropriate keys. tagFilter.tag: String constraint. The key is
  38. // swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
  39. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  40. // If the caller does not have sufficient permissions to invoke the action,
  41. // or the parameter values fall outside the specified constraints, the action
  42. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  43. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  44. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  45. func (c *SWF) CountClosedWorkflowExecutions(input *CountClosedWorkflowExecutionsInput) (*WorkflowExecutionCount, error) {
  46. req, out := c.CountClosedWorkflowExecutionsRequest(input)
  47. err := req.Send()
  48. return out, err
  49. }
  50. const opCountOpenWorkflowExecutions = "CountOpenWorkflowExecutions"
  51. // CountOpenWorkflowExecutionsRequest generates a request for the CountOpenWorkflowExecutions operation.
  52. func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) {
  53. op := &request.Operation{
  54. Name: opCountOpenWorkflowExecutions,
  55. HTTPMethod: "POST",
  56. HTTPPath: "/",
  57. }
  58. if input == nil {
  59. input = &CountOpenWorkflowExecutionsInput{}
  60. }
  61. req = c.newRequest(op, input, output)
  62. output = &WorkflowExecutionCount{}
  63. req.Data = output
  64. return
  65. }
  66. // Returns the number of open workflow executions within the given domain that
  67. // meet the specified filtering criteria.
  68. //
  69. // This operation is eventually consistent. The results are best effort and
  70. // may not exactly reflect recent updates and changes. Access Control
  71. //
  72. // You can use IAM policies to control this action's access to Amazon SWF resources
  73. // as follows:
  74. //
  75. // Use a Resource element with the domain name to limit the action to only
  76. // specified domains. Use an Action element to allow or deny permission to call
  77. // this action. Constrain the following parameters by using a Condition element
  78. // with the appropriate keys. tagFilter.tag: String constraint. The key is
  79. // swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
  80. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  81. // If the caller does not have sufficient permissions to invoke the action,
  82. // or the parameter values fall outside the specified constraints, the action
  83. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  84. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  85. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  86. func (c *SWF) CountOpenWorkflowExecutions(input *CountOpenWorkflowExecutionsInput) (*WorkflowExecutionCount, error) {
  87. req, out := c.CountOpenWorkflowExecutionsRequest(input)
  88. err := req.Send()
  89. return out, err
  90. }
  91. const opCountPendingActivityTasks = "CountPendingActivityTasks"
  92. // CountPendingActivityTasksRequest generates a request for the CountPendingActivityTasks operation.
  93. func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksInput) (req *request.Request, output *PendingTaskCount) {
  94. op := &request.Operation{
  95. Name: opCountPendingActivityTasks,
  96. HTTPMethod: "POST",
  97. HTTPPath: "/",
  98. }
  99. if input == nil {
  100. input = &CountPendingActivityTasksInput{}
  101. }
  102. req = c.newRequest(op, input, output)
  103. output = &PendingTaskCount{}
  104. req.Data = output
  105. return
  106. }
  107. // Returns the estimated number of activity tasks in the specified task list.
  108. // The count returned is an approximation and is not guaranteed to be exact.
  109. // If you specify a task list that no activity task was ever scheduled in then
  110. // 0 will be returned.
  111. //
  112. // Access Control
  113. //
  114. // You can use IAM policies to control this action's access to Amazon SWF resources
  115. // as follows:
  116. //
  117. // Use a Resource element with the domain name to limit the action to only
  118. // specified domains. Use an Action element to allow or deny permission to call
  119. // this action. Constrain the taskList.name parameter by using a Condition element
  120. // with the swf:taskList.name key to allow the action to access only certain
  121. // task lists. If the caller does not have sufficient permissions to invoke
  122. // the action, or the parameter values fall outside the specified constraints,
  123. // the action fails. The associated event attribute's cause parameter will be
  124. // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
  125. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  126. func (c *SWF) CountPendingActivityTasks(input *CountPendingActivityTasksInput) (*PendingTaskCount, error) {
  127. req, out := c.CountPendingActivityTasksRequest(input)
  128. err := req.Send()
  129. return out, err
  130. }
  131. const opCountPendingDecisionTasks = "CountPendingDecisionTasks"
  132. // CountPendingDecisionTasksRequest generates a request for the CountPendingDecisionTasks operation.
  133. func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksInput) (req *request.Request, output *PendingTaskCount) {
  134. op := &request.Operation{
  135. Name: opCountPendingDecisionTasks,
  136. HTTPMethod: "POST",
  137. HTTPPath: "/",
  138. }
  139. if input == nil {
  140. input = &CountPendingDecisionTasksInput{}
  141. }
  142. req = c.newRequest(op, input, output)
  143. output = &PendingTaskCount{}
  144. req.Data = output
  145. return
  146. }
  147. // Returns the estimated number of decision tasks in the specified task list.
  148. // The count returned is an approximation and is not guaranteed to be exact.
  149. // If you specify a task list that no decision task was ever scheduled in then
  150. // 0 will be returned.
  151. //
  152. // Access Control
  153. //
  154. // You can use IAM policies to control this action's access to Amazon SWF resources
  155. // as follows:
  156. //
  157. // Use a Resource element with the domain name to limit the action to only
  158. // specified domains. Use an Action element to allow or deny permission to call
  159. // this action. Constrain the taskList.name parameter by using a Condition element
  160. // with the swf:taskList.name key to allow the action to access only certain
  161. // task lists. If the caller does not have sufficient permissions to invoke
  162. // the action, or the parameter values fall outside the specified constraints,
  163. // the action fails. The associated event attribute's cause parameter will be
  164. // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
  165. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  166. func (c *SWF) CountPendingDecisionTasks(input *CountPendingDecisionTasksInput) (*PendingTaskCount, error) {
  167. req, out := c.CountPendingDecisionTasksRequest(input)
  168. err := req.Send()
  169. return out, err
  170. }
  171. const opDeprecateActivityType = "DeprecateActivityType"
  172. // DeprecateActivityTypeRequest generates a request for the DeprecateActivityType operation.
  173. func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (req *request.Request, output *DeprecateActivityTypeOutput) {
  174. op := &request.Operation{
  175. Name: opDeprecateActivityType,
  176. HTTPMethod: "POST",
  177. HTTPPath: "/",
  178. }
  179. if input == nil {
  180. input = &DeprecateActivityTypeInput{}
  181. }
  182. req = c.newRequest(op, input, output)
  183. output = &DeprecateActivityTypeOutput{}
  184. req.Data = output
  185. return
  186. }
  187. // Deprecates the specified activity type. After an activity type has been deprecated,
  188. // you cannot create new tasks of that activity type. Tasks of this type that
  189. // were scheduled before the type was deprecated will continue to run.
  190. //
  191. // This operation is eventually consistent. The results are best effort and
  192. // may not exactly reflect recent updates and changes. Access Control
  193. //
  194. // You can use IAM policies to control this action's access to Amazon SWF resources
  195. // as follows:
  196. //
  197. // Use a Resource element with the domain name to limit the action to only
  198. // specified domains. Use an Action element to allow or deny permission to call
  199. // this action. Constrain the following parameters by using a Condition element
  200. // with the appropriate keys. activityType.name: String constraint. The key
  201. // is swf:activityType.name. activityType.version: String constraint. The key
  202. // is swf:activityType.version. If the caller does not have sufficient permissions
  203. // to invoke the action, or the parameter values fall outside the specified
  204. // constraints, the action fails. The associated event attribute's cause parameter
  205. // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
  206. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  207. func (c *SWF) DeprecateActivityType(input *DeprecateActivityTypeInput) (*DeprecateActivityTypeOutput, error) {
  208. req, out := c.DeprecateActivityTypeRequest(input)
  209. err := req.Send()
  210. return out, err
  211. }
  212. const opDeprecateDomain = "DeprecateDomain"
  213. // DeprecateDomainRequest generates a request for the DeprecateDomain operation.
  214. func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request.Request, output *DeprecateDomainOutput) {
  215. op := &request.Operation{
  216. Name: opDeprecateDomain,
  217. HTTPMethod: "POST",
  218. HTTPPath: "/",
  219. }
  220. if input == nil {
  221. input = &DeprecateDomainInput{}
  222. }
  223. req = c.newRequest(op, input, output)
  224. output = &DeprecateDomainOutput{}
  225. req.Data = output
  226. return
  227. }
  228. // Deprecates the specified domain. After a domain has been deprecated it cannot
  229. // be used to create new workflow executions or register new types. However,
  230. // you can still use visibility actions on this domain. Deprecating a domain
  231. // also deprecates all activity and workflow types registered in the domain.
  232. // Executions that were started before the domain was deprecated will continue
  233. // to run.
  234. //
  235. // This operation is eventually consistent. The results are best effort and
  236. // may not exactly reflect recent updates and changes. Access Control
  237. //
  238. // You can use IAM policies to control this action's access to Amazon SWF resources
  239. // as follows:
  240. //
  241. // Use a Resource element with the domain name to limit the action to only
  242. // specified domains. Use an Action element to allow or deny permission to call
  243. // this action. You cannot use an IAM policy to constrain this action's parameters.
  244. // If the caller does not have sufficient permissions to invoke the action,
  245. // or the parameter values fall outside the specified constraints, the action
  246. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  247. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  248. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  249. func (c *SWF) DeprecateDomain(input *DeprecateDomainInput) (*DeprecateDomainOutput, error) {
  250. req, out := c.DeprecateDomainRequest(input)
  251. err := req.Send()
  252. return out, err
  253. }
  254. const opDeprecateWorkflowType = "DeprecateWorkflowType"
  255. // DeprecateWorkflowTypeRequest generates a request for the DeprecateWorkflowType operation.
  256. func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (req *request.Request, output *DeprecateWorkflowTypeOutput) {
  257. op := &request.Operation{
  258. Name: opDeprecateWorkflowType,
  259. HTTPMethod: "POST",
  260. HTTPPath: "/",
  261. }
  262. if input == nil {
  263. input = &DeprecateWorkflowTypeInput{}
  264. }
  265. req = c.newRequest(op, input, output)
  266. output = &DeprecateWorkflowTypeOutput{}
  267. req.Data = output
  268. return
  269. }
  270. // Deprecates the specified workflow type. After a workflow type has been deprecated,
  271. // you cannot create new executions of that type. Executions that were started
  272. // before the type was deprecated will continue to run. A deprecated workflow
  273. // type may still be used when calling visibility actions.
  274. //
  275. // This operation is eventually consistent. The results are best effort and
  276. // may not exactly reflect recent updates and changes. Access Control
  277. //
  278. // You can use IAM policies to control this action's access to Amazon SWF resources
  279. // as follows:
  280. //
  281. // Use a Resource element with the domain name to limit the action to only
  282. // specified domains. Use an Action element to allow or deny permission to call
  283. // this action. Constrain the following parameters by using a Condition element
  284. // with the appropriate keys. workflowType.name: String constraint. The key
  285. // is swf:workflowType.name. workflowType.version: String constraint. The key
  286. // is swf:workflowType.version. If the caller does not have sufficient permissions
  287. // to invoke the action, or the parameter values fall outside the specified
  288. // constraints, the action fails. The associated event attribute's cause parameter
  289. // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
  290. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  291. func (c *SWF) DeprecateWorkflowType(input *DeprecateWorkflowTypeInput) (*DeprecateWorkflowTypeOutput, error) {
  292. req, out := c.DeprecateWorkflowTypeRequest(input)
  293. err := req.Send()
  294. return out, err
  295. }
  296. const opDescribeActivityType = "DescribeActivityType"
  297. // DescribeActivityTypeRequest generates a request for the DescribeActivityType operation.
  298. func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req *request.Request, output *DescribeActivityTypeOutput) {
  299. op := &request.Operation{
  300. Name: opDescribeActivityType,
  301. HTTPMethod: "POST",
  302. HTTPPath: "/",
  303. }
  304. if input == nil {
  305. input = &DescribeActivityTypeInput{}
  306. }
  307. req = c.newRequest(op, input, output)
  308. output = &DescribeActivityTypeOutput{}
  309. req.Data = output
  310. return
  311. }
  312. // Returns information about the specified activity type. This includes configuration
  313. // settings provided when the type was registered and other general information
  314. // about the type.
  315. //
  316. // Access Control
  317. //
  318. // You can use IAM policies to control this action's access to Amazon SWF resources
  319. // as follows:
  320. //
  321. // Use a Resource element with the domain name to limit the action to only
  322. // specified domains. Use an Action element to allow or deny permission to call
  323. // this action. Constrain the following parameters by using a Condition element
  324. // with the appropriate keys. activityType.name: String constraint. The key
  325. // is swf:activityType.name. activityType.version: String constraint. The key
  326. // is swf:activityType.version. If the caller does not have sufficient permissions
  327. // to invoke the action, or the parameter values fall outside the specified
  328. // constraints, the action fails. The associated event attribute's cause parameter
  329. // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
  330. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  331. func (c *SWF) DescribeActivityType(input *DescribeActivityTypeInput) (*DescribeActivityTypeOutput, error) {
  332. req, out := c.DescribeActivityTypeRequest(input)
  333. err := req.Send()
  334. return out, err
  335. }
  336. const opDescribeDomain = "DescribeDomain"
  337. // DescribeDomainRequest generates a request for the DescribeDomain operation.
  338. func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) {
  339. op := &request.Operation{
  340. Name: opDescribeDomain,
  341. HTTPMethod: "POST",
  342. HTTPPath: "/",
  343. }
  344. if input == nil {
  345. input = &DescribeDomainInput{}
  346. }
  347. req = c.newRequest(op, input, output)
  348. output = &DescribeDomainOutput{}
  349. req.Data = output
  350. return
  351. }
  352. // Returns information about the specified domain, including description and
  353. // status.
  354. //
  355. // Access Control
  356. //
  357. // You can use IAM policies to control this action's access to Amazon SWF resources
  358. // as follows:
  359. //
  360. // Use a Resource element with the domain name to limit the action to only
  361. // specified domains. Use an Action element to allow or deny permission to call
  362. // this action. You cannot use an IAM policy to constrain this action's parameters.
  363. // If the caller does not have sufficient permissions to invoke the action,
  364. // or the parameter values fall outside the specified constraints, the action
  365. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  366. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  367. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  368. func (c *SWF) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) {
  369. req, out := c.DescribeDomainRequest(input)
  370. err := req.Send()
  371. return out, err
  372. }
  373. const opDescribeWorkflowExecution = "DescribeWorkflowExecution"
  374. // DescribeWorkflowExecutionRequest generates a request for the DescribeWorkflowExecution operation.
  375. func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionInput) (req *request.Request, output *DescribeWorkflowExecutionOutput) {
  376. op := &request.Operation{
  377. Name: opDescribeWorkflowExecution,
  378. HTTPMethod: "POST",
  379. HTTPPath: "/",
  380. }
  381. if input == nil {
  382. input = &DescribeWorkflowExecutionInput{}
  383. }
  384. req = c.newRequest(op, input, output)
  385. output = &DescribeWorkflowExecutionOutput{}
  386. req.Data = output
  387. return
  388. }
  389. // Returns information about the specified workflow execution including its
  390. // type and some statistics.
  391. //
  392. // This operation is eventually consistent. The results are best effort and
  393. // may not exactly reflect recent updates and changes. Access Control
  394. //
  395. // You can use IAM policies to control this action's access to Amazon SWF resources
  396. // as follows:
  397. //
  398. // Use a Resource element with the domain name to limit the action to only
  399. // specified domains. Use an Action element to allow or deny permission to call
  400. // this action. You cannot use an IAM policy to constrain this action's parameters.
  401. // If the caller does not have sufficient permissions to invoke the action,
  402. // or the parameter values fall outside the specified constraints, the action
  403. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  404. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  405. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  406. func (c *SWF) DescribeWorkflowExecution(input *DescribeWorkflowExecutionInput) (*DescribeWorkflowExecutionOutput, error) {
  407. req, out := c.DescribeWorkflowExecutionRequest(input)
  408. err := req.Send()
  409. return out, err
  410. }
  411. const opDescribeWorkflowType = "DescribeWorkflowType"
  412. // DescribeWorkflowTypeRequest generates a request for the DescribeWorkflowType operation.
  413. func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req *request.Request, output *DescribeWorkflowTypeOutput) {
  414. op := &request.Operation{
  415. Name: opDescribeWorkflowType,
  416. HTTPMethod: "POST",
  417. HTTPPath: "/",
  418. }
  419. if input == nil {
  420. input = &DescribeWorkflowTypeInput{}
  421. }
  422. req = c.newRequest(op, input, output)
  423. output = &DescribeWorkflowTypeOutput{}
  424. req.Data = output
  425. return
  426. }
  427. // Returns information about the specified workflow type. This includes configuration
  428. // settings specified when the type was registered and other information such
  429. // as creation date, current status, and so on.
  430. //
  431. // Access Control
  432. //
  433. // You can use IAM policies to control this action's access to Amazon SWF resources
  434. // as follows:
  435. //
  436. // Use a Resource element with the domain name to limit the action to only
  437. // specified domains. Use an Action element to allow or deny permission to call
  438. // this action. Constrain the following parameters by using a Condition element
  439. // with the appropriate keys. workflowType.name: String constraint. The key
  440. // is swf:workflowType.name. workflowType.version: String constraint. The key
  441. // is swf:workflowType.version. If the caller does not have sufficient permissions
  442. // to invoke the action, or the parameter values fall outside the specified
  443. // constraints, the action fails. The associated event attribute's cause parameter
  444. // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
  445. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  446. func (c *SWF) DescribeWorkflowType(input *DescribeWorkflowTypeInput) (*DescribeWorkflowTypeOutput, error) {
  447. req, out := c.DescribeWorkflowTypeRequest(input)
  448. err := req.Send()
  449. return out, err
  450. }
  451. const opGetWorkflowExecutionHistory = "GetWorkflowExecutionHistory"
  452. // GetWorkflowExecutionHistoryRequest generates a request for the GetWorkflowExecutionHistory operation.
  453. func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHistoryInput) (req *request.Request, output *GetWorkflowExecutionHistoryOutput) {
  454. op := &request.Operation{
  455. Name: opGetWorkflowExecutionHistory,
  456. HTTPMethod: "POST",
  457. HTTPPath: "/",
  458. Paginator: &request.Paginator{
  459. InputTokens: []string{"nextPageToken"},
  460. OutputTokens: []string{"nextPageToken"},
  461. LimitToken: "maximumPageSize",
  462. TruncationToken: "",
  463. },
  464. }
  465. if input == nil {
  466. input = &GetWorkflowExecutionHistoryInput{}
  467. }
  468. req = c.newRequest(op, input, output)
  469. output = &GetWorkflowExecutionHistoryOutput{}
  470. req.Data = output
  471. return
  472. }
  473. // Returns the history of the specified workflow execution. The results may
  474. // be split into multiple pages. To retrieve subsequent pages, make the call
  475. // again using the nextPageToken returned by the initial call.
  476. //
  477. // This operation is eventually consistent. The results are best effort and
  478. // may not exactly reflect recent updates and changes. Access Control
  479. //
  480. // You can use IAM policies to control this action's access to Amazon SWF resources
  481. // as follows:
  482. //
  483. // Use a Resource element with the domain name to limit the action to only
  484. // specified domains. Use an Action element to allow or deny permission to call
  485. // this action. You cannot use an IAM policy to constrain this action's parameters.
  486. // If the caller does not have sufficient permissions to invoke the action,
  487. // or the parameter values fall outside the specified constraints, the action
  488. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  489. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  490. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  491. func (c *SWF) GetWorkflowExecutionHistory(input *GetWorkflowExecutionHistoryInput) (*GetWorkflowExecutionHistoryOutput, error) {
  492. req, out := c.GetWorkflowExecutionHistoryRequest(input)
  493. err := req.Send()
  494. return out, err
  495. }
  496. func (c *SWF) GetWorkflowExecutionHistoryPages(input *GetWorkflowExecutionHistoryInput, fn func(p *GetWorkflowExecutionHistoryOutput, lastPage bool) (shouldContinue bool)) error {
  497. page, _ := c.GetWorkflowExecutionHistoryRequest(input)
  498. return page.EachPage(func(p interface{}, lastPage bool) bool {
  499. return fn(p.(*GetWorkflowExecutionHistoryOutput), lastPage)
  500. })
  501. }
  502. const opListActivityTypes = "ListActivityTypes"
  503. // ListActivityTypesRequest generates a request for the ListActivityTypes operation.
  504. func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *request.Request, output *ListActivityTypesOutput) {
  505. op := &request.Operation{
  506. Name: opListActivityTypes,
  507. HTTPMethod: "POST",
  508. HTTPPath: "/",
  509. Paginator: &request.Paginator{
  510. InputTokens: []string{"nextPageToken"},
  511. OutputTokens: []string{"nextPageToken"},
  512. LimitToken: "maximumPageSize",
  513. TruncationToken: "",
  514. },
  515. }
  516. if input == nil {
  517. input = &ListActivityTypesInput{}
  518. }
  519. req = c.newRequest(op, input, output)
  520. output = &ListActivityTypesOutput{}
  521. req.Data = output
  522. return
  523. }
  524. // Returns information about all activities registered in the specified domain
  525. // that match the specified name and registration status. The result includes
  526. // information like creation date, current status of the activity, etc. The
  527. // results may be split into multiple pages. To retrieve subsequent pages, make
  528. // the call again using the nextPageToken returned by the initial call.
  529. //
  530. // Access Control
  531. //
  532. // You can use IAM policies to control this action's access to Amazon SWF resources
  533. // as follows:
  534. //
  535. // Use a Resource element with the domain name to limit the action to only
  536. // specified domains. Use an Action element to allow or deny permission to call
  537. // this action. You cannot use an IAM policy to constrain this action's parameters.
  538. // If the caller does not have sufficient permissions to invoke the action,
  539. // or the parameter values fall outside the specified constraints, the action
  540. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  541. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  542. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  543. func (c *SWF) ListActivityTypes(input *ListActivityTypesInput) (*ListActivityTypesOutput, error) {
  544. req, out := c.ListActivityTypesRequest(input)
  545. err := req.Send()
  546. return out, err
  547. }
  548. func (c *SWF) ListActivityTypesPages(input *ListActivityTypesInput, fn func(p *ListActivityTypesOutput, lastPage bool) (shouldContinue bool)) error {
  549. page, _ := c.ListActivityTypesRequest(input)
  550. return page.EachPage(func(p interface{}, lastPage bool) bool {
  551. return fn(p.(*ListActivityTypesOutput), lastPage)
  552. })
  553. }
  554. const opListClosedWorkflowExecutions = "ListClosedWorkflowExecutions"
  555. // ListClosedWorkflowExecutionsRequest generates a request for the ListClosedWorkflowExecutions operation.
  556. func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) {
  557. op := &request.Operation{
  558. Name: opListClosedWorkflowExecutions,
  559. HTTPMethod: "POST",
  560. HTTPPath: "/",
  561. Paginator: &request.Paginator{
  562. InputTokens: []string{"nextPageToken"},
  563. OutputTokens: []string{"nextPageToken"},
  564. LimitToken: "maximumPageSize",
  565. TruncationToken: "",
  566. },
  567. }
  568. if input == nil {
  569. input = &ListClosedWorkflowExecutionsInput{}
  570. }
  571. req = c.newRequest(op, input, output)
  572. output = &WorkflowExecutionInfos{}
  573. req.Data = output
  574. return
  575. }
  576. // Returns a list of closed workflow executions in the specified domain that
  577. // meet the filtering criteria. The results may be split into multiple pages.
  578. // To retrieve subsequent pages, make the call again using the nextPageToken
  579. // returned by the initial call.
  580. //
  581. // This operation is eventually consistent. The results are best effort and
  582. // may not exactly reflect recent updates and changes. Access Control
  583. //
  584. // You can use IAM policies to control this action's access to Amazon SWF resources
  585. // as follows:
  586. //
  587. // Use a Resource element with the domain name to limit the action to only
  588. // specified domains. Use an Action element to allow or deny permission to call
  589. // this action. Constrain the following parameters by using a Condition element
  590. // with the appropriate keys. tagFilter.tag: String constraint. The key is
  591. // swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
  592. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  593. // If the caller does not have sufficient permissions to invoke the action,
  594. // or the parameter values fall outside the specified constraints, the action
  595. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  596. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  597. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  598. func (c *SWF) ListClosedWorkflowExecutions(input *ListClosedWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) {
  599. req, out := c.ListClosedWorkflowExecutionsRequest(input)
  600. err := req.Send()
  601. return out, err
  602. }
  603. func (c *SWF) ListClosedWorkflowExecutionsPages(input *ListClosedWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error {
  604. page, _ := c.ListClosedWorkflowExecutionsRequest(input)
  605. return page.EachPage(func(p interface{}, lastPage bool) bool {
  606. return fn(p.(*WorkflowExecutionInfos), lastPage)
  607. })
  608. }
  609. const opListDomains = "ListDomains"
  610. // ListDomainsRequest generates a request for the ListDomains operation.
  611. func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) {
  612. op := &request.Operation{
  613. Name: opListDomains,
  614. HTTPMethod: "POST",
  615. HTTPPath: "/",
  616. Paginator: &request.Paginator{
  617. InputTokens: []string{"nextPageToken"},
  618. OutputTokens: []string{"nextPageToken"},
  619. LimitToken: "maximumPageSize",
  620. TruncationToken: "",
  621. },
  622. }
  623. if input == nil {
  624. input = &ListDomainsInput{}
  625. }
  626. req = c.newRequest(op, input, output)
  627. output = &ListDomainsOutput{}
  628. req.Data = output
  629. return
  630. }
  631. // Returns the list of domains registered in the account. The results may be
  632. // split into multiple pages. To retrieve subsequent pages, make the call again
  633. // using the nextPageToken returned by the initial call.
  634. //
  635. // This operation is eventually consistent. The results are best effort and
  636. // may not exactly reflect recent updates and changes. Access Control
  637. //
  638. // You can use IAM policies to control this action's access to Amazon SWF resources
  639. // as follows:
  640. //
  641. // Use a Resource element with the domain name to limit the action to only
  642. // specified domains. The element must be set to arn:aws:swf::AccountID:domain/*,
  643. // where AccountID is the account ID, with no dashes. Use an Action element
  644. // to allow or deny permission to call this action. You cannot use an IAM policy
  645. // to constrain this action's parameters. If the caller does not have sufficient
  646. // permissions to invoke the action, or the parameter values fall outside the
  647. // specified constraints, the action fails. The associated event attribute's
  648. // cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example
  649. // IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  650. func (c *SWF) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) {
  651. req, out := c.ListDomainsRequest(input)
  652. err := req.Send()
  653. return out, err
  654. }
  655. func (c *SWF) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error {
  656. page, _ := c.ListDomainsRequest(input)
  657. return page.EachPage(func(p interface{}, lastPage bool) bool {
  658. return fn(p.(*ListDomainsOutput), lastPage)
  659. })
  660. }
  661. const opListOpenWorkflowExecutions = "ListOpenWorkflowExecutions"
  662. // ListOpenWorkflowExecutionsRequest generates a request for the ListOpenWorkflowExecutions operation.
  663. func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) {
  664. op := &request.Operation{
  665. Name: opListOpenWorkflowExecutions,
  666. HTTPMethod: "POST",
  667. HTTPPath: "/",
  668. Paginator: &request.Paginator{
  669. InputTokens: []string{"nextPageToken"},
  670. OutputTokens: []string{"nextPageToken"},
  671. LimitToken: "maximumPageSize",
  672. TruncationToken: "",
  673. },
  674. }
  675. if input == nil {
  676. input = &ListOpenWorkflowExecutionsInput{}
  677. }
  678. req = c.newRequest(op, input, output)
  679. output = &WorkflowExecutionInfos{}
  680. req.Data = output
  681. return
  682. }
  683. // Returns a list of open workflow executions in the specified domain that meet
  684. // the filtering criteria. The results may be split into multiple pages. To
  685. // retrieve subsequent pages, make the call again using the nextPageToken returned
  686. // by the initial call.
  687. //
  688. // This operation is eventually consistent. The results are best effort and
  689. // may not exactly reflect recent updates and changes. Access Control
  690. //
  691. // You can use IAM policies to control this action's access to Amazon SWF resources
  692. // as follows:
  693. //
  694. // Use a Resource element with the domain name to limit the action to only
  695. // specified domains. Use an Action element to allow or deny permission to call
  696. // this action. Constrain the following parameters by using a Condition element
  697. // with the appropriate keys. tagFilter.tag: String constraint. The key is
  698. // swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
  699. // typeFilter.version: String constraint. The key is swf:typeFilter.version.
  700. // If the caller does not have sufficient permissions to invoke the action,
  701. // or the parameter values fall outside the specified constraints, the action
  702. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  703. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  704. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  705. func (c *SWF) ListOpenWorkflowExecutions(input *ListOpenWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) {
  706. req, out := c.ListOpenWorkflowExecutionsRequest(input)
  707. err := req.Send()
  708. return out, err
  709. }
  710. func (c *SWF) ListOpenWorkflowExecutionsPages(input *ListOpenWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error {
  711. page, _ := c.ListOpenWorkflowExecutionsRequest(input)
  712. return page.EachPage(func(p interface{}, lastPage bool) bool {
  713. return fn(p.(*WorkflowExecutionInfos), lastPage)
  714. })
  715. }
  716. const opListWorkflowTypes = "ListWorkflowTypes"
  717. // ListWorkflowTypesRequest generates a request for the ListWorkflowTypes operation.
  718. func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *request.Request, output *ListWorkflowTypesOutput) {
  719. op := &request.Operation{
  720. Name: opListWorkflowTypes,
  721. HTTPMethod: "POST",
  722. HTTPPath: "/",
  723. Paginator: &request.Paginator{
  724. InputTokens: []string{"nextPageToken"},
  725. OutputTokens: []string{"nextPageToken"},
  726. LimitToken: "maximumPageSize",
  727. TruncationToken: "",
  728. },
  729. }
  730. if input == nil {
  731. input = &ListWorkflowTypesInput{}
  732. }
  733. req = c.newRequest(op, input, output)
  734. output = &ListWorkflowTypesOutput{}
  735. req.Data = output
  736. return
  737. }
  738. // Returns information about workflow types in the specified domain. The results
  739. // may be split into multiple pages that can be retrieved by making the call
  740. // repeatedly.
  741. //
  742. // Access Control
  743. //
  744. // You can use IAM policies to control this action's access to Amazon SWF resources
  745. // as follows:
  746. //
  747. // Use a Resource element with the domain name to limit the action to only
  748. // specified domains. Use an Action element to allow or deny permission to call
  749. // this action. You cannot use an IAM policy to constrain this action's parameters.
  750. // If the caller does not have sufficient permissions to invoke the action,
  751. // or the parameter values fall outside the specified constraints, the action
  752. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  753. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  754. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  755. func (c *SWF) ListWorkflowTypes(input *ListWorkflowTypesInput) (*ListWorkflowTypesOutput, error) {
  756. req, out := c.ListWorkflowTypesRequest(input)
  757. err := req.Send()
  758. return out, err
  759. }
  760. func (c *SWF) ListWorkflowTypesPages(input *ListWorkflowTypesInput, fn func(p *ListWorkflowTypesOutput, lastPage bool) (shouldContinue bool)) error {
  761. page, _ := c.ListWorkflowTypesRequest(input)
  762. return page.EachPage(func(p interface{}, lastPage bool) bool {
  763. return fn(p.(*ListWorkflowTypesOutput), lastPage)
  764. })
  765. }
  766. const opPollForActivityTask = "PollForActivityTask"
  767. // PollForActivityTaskRequest generates a request for the PollForActivityTask operation.
  768. func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req *request.Request, output *PollForActivityTaskOutput) {
  769. op := &request.Operation{
  770. Name: opPollForActivityTask,
  771. HTTPMethod: "POST",
  772. HTTPPath: "/",
  773. }
  774. if input == nil {
  775. input = &PollForActivityTaskInput{}
  776. }
  777. req = c.newRequest(op, input, output)
  778. output = &PollForActivityTaskOutput{}
  779. req.Data = output
  780. return
  781. }
  782. // Used by workers to get an ActivityTask from the specified activity taskList.
  783. // This initiates a long poll, where the service holds the HTTP connection open
  784. // and responds as soon as a task becomes available. The maximum time the service
  785. // holds on to the request before responding is 60 seconds. If no task is available
  786. // within 60 seconds, the poll will return an empty result. An empty result,
  787. // in this context, means that an ActivityTask is returned, but that the value
  788. // of taskToken is an empty string. If a task is returned, the worker should
  789. // use its type to identify and process it correctly.
  790. //
  791. // Workers should set their client side socket timeout to at least 70 seconds
  792. // (10 seconds higher than the maximum time service may hold the poll request).
  793. // Access Control
  794. //
  795. // You can use IAM policies to control this action's access to Amazon SWF resources
  796. // as follows:
  797. //
  798. // Use a Resource element with the domain name to limit the action to only
  799. // specified domains. Use an Action element to allow or deny permission to call
  800. // this action. Constrain the taskList.name parameter by using a Condition element
  801. // with the swf:taskList.name key to allow the action to access only certain
  802. // task lists. If the caller does not have sufficient permissions to invoke
  803. // the action, or the parameter values fall outside the specified constraints,
  804. // the action fails. The associated event attribute's cause parameter will be
  805. // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
  806. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  807. func (c *SWF) PollForActivityTask(input *PollForActivityTaskInput) (*PollForActivityTaskOutput, error) {
  808. req, out := c.PollForActivityTaskRequest(input)
  809. err := req.Send()
  810. return out, err
  811. }
  812. const opPollForDecisionTask = "PollForDecisionTask"
  813. // PollForDecisionTaskRequest generates a request for the PollForDecisionTask operation.
  814. func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req *request.Request, output *PollForDecisionTaskOutput) {
  815. op := &request.Operation{
  816. Name: opPollForDecisionTask,
  817. HTTPMethod: "POST",
  818. HTTPPath: "/",
  819. Paginator: &request.Paginator{
  820. InputTokens: []string{"nextPageToken"},
  821. OutputTokens: []string{"nextPageToken"},
  822. LimitToken: "maximumPageSize",
  823. TruncationToken: "",
  824. },
  825. }
  826. if input == nil {
  827. input = &PollForDecisionTaskInput{}
  828. }
  829. req = c.newRequest(op, input, output)
  830. output = &PollForDecisionTaskOutput{}
  831. req.Data = output
  832. return
  833. }
  834. // Used by deciders to get a DecisionTask from the specified decision taskList.
  835. // A decision task may be returned for any open workflow execution that is using
  836. // the specified task list. The task includes a paginated view of the history
  837. // of the workflow execution. The decider should use the workflow type and the
  838. // history to determine how to properly handle the task.
  839. //
  840. // This action initiates a long poll, where the service holds the HTTP connection
  841. // open and responds as soon a task becomes available. If no decision task is
  842. // available in the specified task list before the timeout of 60 seconds expires,
  843. // an empty result is returned. An empty result, in this context, means that
  844. // a DecisionTask is returned, but that the value of taskToken is an empty string.
  845. //
  846. // Deciders should set their client-side socket timeout to at least 70 seconds
  847. // (10 seconds higher than the timeout). Because the number of workflow history
  848. // events for a single workflow execution might be very large, the result returned
  849. // might be split up across a number of pages. To retrieve subsequent pages,
  850. // make additional calls to PollForDecisionTask using the nextPageToken returned
  851. // by the initial call. Note that you do not call GetWorkflowExecutionHistory
  852. // with this nextPageToken. Instead, call PollForDecisionTask again. Access
  853. // Control
  854. //
  855. // You can use IAM policies to control this action's access to Amazon SWF resources
  856. // as follows:
  857. //
  858. // Use a Resource element with the domain name to limit the action to only
  859. // specified domains. Use an Action element to allow or deny permission to call
  860. // this action. Constrain the taskList.name parameter by using a Condition element
  861. // with the swf:taskList.name key to allow the action to access only certain
  862. // task lists. If the caller does not have sufficient permissions to invoke
  863. // the action, or the parameter values fall outside the specified constraints,
  864. // the action fails. The associated event attribute's cause parameter will be
  865. // set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
  866. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  867. func (c *SWF) PollForDecisionTask(input *PollForDecisionTaskInput) (*PollForDecisionTaskOutput, error) {
  868. req, out := c.PollForDecisionTaskRequest(input)
  869. err := req.Send()
  870. return out, err
  871. }
  872. func (c *SWF) PollForDecisionTaskPages(input *PollForDecisionTaskInput, fn func(p *PollForDecisionTaskOutput, lastPage bool) (shouldContinue bool)) error {
  873. page, _ := c.PollForDecisionTaskRequest(input)
  874. return page.EachPage(func(p interface{}, lastPage bool) bool {
  875. return fn(p.(*PollForDecisionTaskOutput), lastPage)
  876. })
  877. }
  878. const opRecordActivityTaskHeartbeat = "RecordActivityTaskHeartbeat"
  879. // RecordActivityTaskHeartbeatRequest generates a request for the RecordActivityTaskHeartbeat operation.
  880. func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartbeatInput) (req *request.Request, output *RecordActivityTaskHeartbeatOutput) {
  881. op := &request.Operation{
  882. Name: opRecordActivityTaskHeartbeat,
  883. HTTPMethod: "POST",
  884. HTTPPath: "/",
  885. }
  886. if input == nil {
  887. input = &RecordActivityTaskHeartbeatInput{}
  888. }
  889. req = c.newRequest(op, input, output)
  890. output = &RecordActivityTaskHeartbeatOutput{}
  891. req.Data = output
  892. return
  893. }
  894. // Used by activity workers to report to the service that the ActivityTask represented
  895. // by the specified taskToken is still making progress. The worker can also
  896. // (optionally) specify details of the progress, for example percent complete,
  897. // using the details parameter. This action can also be used by the worker as
  898. // a mechanism to check if cancellation is being requested for the activity
  899. // task. If a cancellation is being attempted for the specified task, then the
  900. // boolean cancelRequested flag returned by the service is set to true.
  901. //
  902. // This action resets the taskHeartbeatTimeout clock. The taskHeartbeatTimeout
  903. // is specified in RegisterActivityType.
  904. //
  905. // This action does not in itself create an event in the workflow execution
  906. // history. However, if the task times out, the workflow execution history will
  907. // contain a ActivityTaskTimedOut event that contains the information from the
  908. // last heartbeat generated by the activity worker.
  909. //
  910. // The taskStartToCloseTimeout of an activity type is the maximum duration
  911. // of an activity task, regardless of the number of RecordActivityTaskHeartbeat
  912. // requests received. The taskStartToCloseTimeout is also specified in RegisterActivityType.
  913. // This operation is only useful for long-lived activities to report liveliness
  914. // of the task and to determine if a cancellation is being attempted. If the
  915. // cancelRequested flag returns true, a cancellation is being attempted. If
  916. // the worker can cancel the activity, it should respond with RespondActivityTaskCanceled.
  917. // Otherwise, it should ignore the cancellation request. Access Control
  918. //
  919. // You can use IAM policies to control this action's access to Amazon SWF resources
  920. // as follows:
  921. //
  922. // Use a Resource element with the domain name to limit the action to only
  923. // specified domains. Use an Action element to allow or deny permission to call
  924. // this action. You cannot use an IAM policy to constrain this action's parameters.
  925. // If the caller does not have sufficient permissions to invoke the action,
  926. // or the parameter values fall outside the specified constraints, the action
  927. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  928. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  929. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  930. func (c *SWF) RecordActivityTaskHeartbeat(input *RecordActivityTaskHeartbeatInput) (*RecordActivityTaskHeartbeatOutput, error) {
  931. req, out := c.RecordActivityTaskHeartbeatRequest(input)
  932. err := req.Send()
  933. return out, err
  934. }
  935. const opRegisterActivityType = "RegisterActivityType"
  936. // RegisterActivityTypeRequest generates a request for the RegisterActivityType operation.
  937. func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req *request.Request, output *RegisterActivityTypeOutput) {
  938. op := &request.Operation{
  939. Name: opRegisterActivityType,
  940. HTTPMethod: "POST",
  941. HTTPPath: "/",
  942. }
  943. if input == nil {
  944. input = &RegisterActivityTypeInput{}
  945. }
  946. req = c.newRequest(op, input, output)
  947. output = &RegisterActivityTypeOutput{}
  948. req.Data = output
  949. return
  950. }
  951. // Registers a new activity type along with its configuration settings in the
  952. // specified domain.
  953. //
  954. // A TypeAlreadyExists fault is returned if the type already exists in the
  955. // domain. You cannot change any configuration settings of the type after its
  956. // registration, and it must be registered as a new version. Access Control
  957. //
  958. // You can use IAM policies to control this action's access to Amazon SWF resources
  959. // as follows:
  960. //
  961. // Use a Resource element with the domain name to limit the action to only
  962. // specified domains. Use an Action element to allow or deny permission to call
  963. // this action. Constrain the following parameters by using a Condition element
  964. // with the appropriate keys. defaultTaskList.name: String constraint. The
  965. // key is swf:defaultTaskList.name. name: String constraint. The key is swf:name.
  966. // version: String constraint. The key is swf:version. If the caller does
  967. // not have sufficient permissions to invoke the action, or the parameter values
  968. // fall outside the specified constraints, the action fails. The associated
  969. // event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  970. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  971. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  972. func (c *SWF) RegisterActivityType(input *RegisterActivityTypeInput) (*RegisterActivityTypeOutput, error) {
  973. req, out := c.RegisterActivityTypeRequest(input)
  974. err := req.Send()
  975. return out, err
  976. }
  977. const opRegisterDomain = "RegisterDomain"
  978. // RegisterDomainRequest generates a request for the RegisterDomain operation.
  979. func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Request, output *RegisterDomainOutput) {
  980. op := &request.Operation{
  981. Name: opRegisterDomain,
  982. HTTPMethod: "POST",
  983. HTTPPath: "/",
  984. }
  985. if input == nil {
  986. input = &RegisterDomainInput{}
  987. }
  988. req = c.newRequest(op, input, output)
  989. output = &RegisterDomainOutput{}
  990. req.Data = output
  991. return
  992. }
  993. // Registers a new domain.
  994. //
  995. // Access Control
  996. //
  997. // You can use IAM policies to control this action's access to Amazon SWF resources
  998. // as follows:
  999. //
  1000. // You cannot use an IAM policy to control domain access for this action.
  1001. // The name of the domain being registered is available as the resource of this
  1002. // action. Use an Action element to allow or deny permission to call this action.
  1003. // You cannot use an IAM policy to constrain this action's parameters. If the
  1004. // caller does not have sufficient permissions to invoke the action, or the
  1005. // parameter values fall outside the specified constraints, the action fails.
  1006. // The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1007. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1008. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1009. func (c *SWF) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) {
  1010. req, out := c.RegisterDomainRequest(input)
  1011. err := req.Send()
  1012. return out, err
  1013. }
  1014. const opRegisterWorkflowType = "RegisterWorkflowType"
  1015. // RegisterWorkflowTypeRequest generates a request for the RegisterWorkflowType operation.
  1016. func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req *request.Request, output *RegisterWorkflowTypeOutput) {
  1017. op := &request.Operation{
  1018. Name: opRegisterWorkflowType,
  1019. HTTPMethod: "POST",
  1020. HTTPPath: "/",
  1021. }
  1022. if input == nil {
  1023. input = &RegisterWorkflowTypeInput{}
  1024. }
  1025. req = c.newRequest(op, input, output)
  1026. output = &RegisterWorkflowTypeOutput{}
  1027. req.Data = output
  1028. return
  1029. }
  1030. // Registers a new workflow type and its configuration settings in the specified
  1031. // domain.
  1032. //
  1033. // The retention period for the workflow history is set by the RegisterDomain
  1034. // action.
  1035. //
  1036. // If the type already exists, then a TypeAlreadyExists fault is returned.
  1037. // You cannot change the configuration settings of a workflow type once it is
  1038. // registered and it must be registered as a new version. Access Control
  1039. //
  1040. // You can use IAM policies to control this action's access to Amazon SWF resources
  1041. // as follows:
  1042. //
  1043. // Use a Resource element with the domain name to limit the action to only
  1044. // specified domains. Use an Action element to allow or deny permission to call
  1045. // this action. Constrain the following parameters by using a Condition element
  1046. // with the appropriate keys. defaultTaskList.name: String constraint. The
  1047. // key is swf:defaultTaskList.name. name: String constraint. The key is swf:name.
  1048. // version: String constraint. The key is swf:version. If the caller does
  1049. // not have sufficient permissions to invoke the action, or the parameter values
  1050. // fall outside the specified constraints, the action fails. The associated
  1051. // event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1052. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1053. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1054. func (c *SWF) RegisterWorkflowType(input *RegisterWorkflowTypeInput) (*RegisterWorkflowTypeOutput, error) {
  1055. req, out := c.RegisterWorkflowTypeRequest(input)
  1056. err := req.Send()
  1057. return out, err
  1058. }
  1059. const opRequestCancelWorkflowExecution = "RequestCancelWorkflowExecution"
  1060. // RequestCancelWorkflowExecutionRequest generates a request for the RequestCancelWorkflowExecution operation.
  1061. func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflowExecutionInput) (req *request.Request, output *RequestCancelWorkflowExecutionOutput) {
  1062. op := &request.Operation{
  1063. Name: opRequestCancelWorkflowExecution,
  1064. HTTPMethod: "POST",
  1065. HTTPPath: "/",
  1066. }
  1067. if input == nil {
  1068. input = &RequestCancelWorkflowExecutionInput{}
  1069. }
  1070. req = c.newRequest(op, input, output)
  1071. output = &RequestCancelWorkflowExecutionOutput{}
  1072. req.Data = output
  1073. return
  1074. }
  1075. // Records a WorkflowExecutionCancelRequested event in the currently running
  1076. // workflow execution identified by the given domain, workflowId, and runId.
  1077. // This logically requests the cancellation of the workflow execution as a whole.
  1078. // It is up to the decider to take appropriate actions when it receives an execution
  1079. // history with this event.
  1080. //
  1081. // If the runId is not specified, the WorkflowExecutionCancelRequested event
  1082. // is recorded in the history of the current open workflow execution with the
  1083. // specified workflowId in the domain. Because this action allows the workflow
  1084. // to properly clean up and gracefully close, it should be used instead of TerminateWorkflowExecution
  1085. // when possible. Access Control
  1086. //
  1087. // You can use IAM policies to control this action's access to Amazon SWF resources
  1088. // as follows:
  1089. //
  1090. // Use a Resource element with the domain name to limit the action to only
  1091. // specified domains. Use an Action element to allow or deny permission to call
  1092. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1093. // If the caller does not have sufficient permissions to invoke the action,
  1094. // or the parameter values fall outside the specified constraints, the action
  1095. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1096. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1097. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1098. func (c *SWF) RequestCancelWorkflowExecution(input *RequestCancelWorkflowExecutionInput) (*RequestCancelWorkflowExecutionOutput, error) {
  1099. req, out := c.RequestCancelWorkflowExecutionRequest(input)
  1100. err := req.Send()
  1101. return out, err
  1102. }
  1103. const opRespondActivityTaskCanceled = "RespondActivityTaskCanceled"
  1104. // RespondActivityTaskCanceledRequest generates a request for the RespondActivityTaskCanceled operation.
  1105. func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCanceledInput) (req *request.Request, output *RespondActivityTaskCanceledOutput) {
  1106. op := &request.Operation{
  1107. Name: opRespondActivityTaskCanceled,
  1108. HTTPMethod: "POST",
  1109. HTTPPath: "/",
  1110. }
  1111. if input == nil {
  1112. input = &RespondActivityTaskCanceledInput{}
  1113. }
  1114. req = c.newRequest(op, input, output)
  1115. output = &RespondActivityTaskCanceledOutput{}
  1116. req.Data = output
  1117. return
  1118. }
  1119. // Used by workers to tell the service that the ActivityTask identified by the
  1120. // taskToken was successfully canceled. Additional details can be optionally
  1121. // provided using the details argument.
  1122. //
  1123. // These details (if provided) appear in the ActivityTaskCanceled event added
  1124. // to the workflow history.
  1125. //
  1126. // Only use this operation if the canceled flag of a RecordActivityTaskHeartbeat
  1127. // request returns true and if the activity can be safely undone or abandoned.
  1128. // A task is considered open from the time that it is scheduled until it is
  1129. // closed. Therefore a task is reported as open while a worker is processing
  1130. // it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted,
  1131. // RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed
  1132. // out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types).
  1133. //
  1134. // Access Control
  1135. //
  1136. // You can use IAM policies to control this action's access to Amazon SWF resources
  1137. // as follows:
  1138. //
  1139. // Use a Resource element with the domain name to limit the action to only
  1140. // specified domains. Use an Action element to allow or deny permission to call
  1141. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1142. // If the caller does not have sufficient permissions to invoke the action,
  1143. // or the parameter values fall outside the specified constraints, the action
  1144. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1145. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1146. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1147. func (c *SWF) RespondActivityTaskCanceled(input *RespondActivityTaskCanceledInput) (*RespondActivityTaskCanceledOutput, error) {
  1148. req, out := c.RespondActivityTaskCanceledRequest(input)
  1149. err := req.Send()
  1150. return out, err
  1151. }
  1152. const opRespondActivityTaskCompleted = "RespondActivityTaskCompleted"
  1153. // RespondActivityTaskCompletedRequest generates a request for the RespondActivityTaskCompleted operation.
  1154. func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskCompletedInput) (req *request.Request, output *RespondActivityTaskCompletedOutput) {
  1155. op := &request.Operation{
  1156. Name: opRespondActivityTaskCompleted,
  1157. HTTPMethod: "POST",
  1158. HTTPPath: "/",
  1159. }
  1160. if input == nil {
  1161. input = &RespondActivityTaskCompletedInput{}
  1162. }
  1163. req = c.newRequest(op, input, output)
  1164. output = &RespondActivityTaskCompletedOutput{}
  1165. req.Data = output
  1166. return
  1167. }
  1168. // Used by workers to tell the service that the ActivityTask identified by the
  1169. // taskToken completed successfully with a result (if provided). The result
  1170. // appears in the ActivityTaskCompleted event in the workflow history.
  1171. //
  1172. // If the requested task does not complete successfully, use RespondActivityTaskFailed
  1173. // instead. If the worker finds that the task is canceled through the canceled
  1174. // flag returned by RecordActivityTaskHeartbeat, it should cancel the task,
  1175. // clean up and then call RespondActivityTaskCanceled. A task is considered
  1176. // open from the time that it is scheduled until it is closed. Therefore a task
  1177. // is reported as open while a worker is processing it. A task is closed after
  1178. // it has been specified in a call to RespondActivityTaskCompleted, RespondActivityTaskCanceled,
  1179. // RespondActivityTaskFailed, or the task has timed out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types).
  1180. //
  1181. // Access Control
  1182. //
  1183. // You can use IAM policies to control this action's access to Amazon SWF resources
  1184. // as follows:
  1185. //
  1186. // Use a Resource element with the domain name to limit the action to only
  1187. // specified domains. Use an Action element to allow or deny permission to call
  1188. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1189. // If the caller does not have sufficient permissions to invoke the action,
  1190. // or the parameter values fall outside the specified constraints, the action
  1191. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1192. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1193. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1194. func (c *SWF) RespondActivityTaskCompleted(input *RespondActivityTaskCompletedInput) (*RespondActivityTaskCompletedOutput, error) {
  1195. req, out := c.RespondActivityTaskCompletedRequest(input)
  1196. err := req.Send()
  1197. return out, err
  1198. }
  1199. const opRespondActivityTaskFailed = "RespondActivityTaskFailed"
  1200. // RespondActivityTaskFailedRequest generates a request for the RespondActivityTaskFailed operation.
  1201. func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedInput) (req *request.Request, output *RespondActivityTaskFailedOutput) {
  1202. op := &request.Operation{
  1203. Name: opRespondActivityTaskFailed,
  1204. HTTPMethod: "POST",
  1205. HTTPPath: "/",
  1206. }
  1207. if input == nil {
  1208. input = &RespondActivityTaskFailedInput{}
  1209. }
  1210. req = c.newRequest(op, input, output)
  1211. output = &RespondActivityTaskFailedOutput{}
  1212. req.Data = output
  1213. return
  1214. }
  1215. // Used by workers to tell the service that the ActivityTask identified by the
  1216. // taskToken has failed with reason (if specified). The reason and details appear
  1217. // in the ActivityTaskFailed event added to the workflow history.
  1218. //
  1219. // A task is considered open from the time that it is scheduled until it is
  1220. // closed. Therefore a task is reported as open while a worker is processing
  1221. // it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted,
  1222. // RespondActivityTaskCanceled, RespondActivityTaskFailed, or the task has timed
  1223. // out (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types).
  1224. //
  1225. // Access Control
  1226. //
  1227. // You can use IAM policies to control this action's access to Amazon SWF resources
  1228. // as follows:
  1229. //
  1230. // Use a Resource element with the domain name to limit the action to only
  1231. // specified domains. Use an Action element to allow or deny permission to call
  1232. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1233. // If the caller does not have sufficient permissions to invoke the action,
  1234. // or the parameter values fall outside the specified constraints, the action
  1235. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1236. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1237. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1238. func (c *SWF) RespondActivityTaskFailed(input *RespondActivityTaskFailedInput) (*RespondActivityTaskFailedOutput, error) {
  1239. req, out := c.RespondActivityTaskFailedRequest(input)
  1240. err := req.Send()
  1241. return out, err
  1242. }
  1243. const opRespondDecisionTaskCompleted = "RespondDecisionTaskCompleted"
  1244. // RespondDecisionTaskCompletedRequest generates a request for the RespondDecisionTaskCompleted operation.
  1245. func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskCompletedInput) (req *request.Request, output *RespondDecisionTaskCompletedOutput) {
  1246. op := &request.Operation{
  1247. Name: opRespondDecisionTaskCompleted,
  1248. HTTPMethod: "POST",
  1249. HTTPPath: "/",
  1250. }
  1251. if input == nil {
  1252. input = &RespondDecisionTaskCompletedInput{}
  1253. }
  1254. req = c.newRequest(op, input, output)
  1255. output = &RespondDecisionTaskCompletedOutput{}
  1256. req.Data = output
  1257. return
  1258. }
  1259. // Used by deciders to tell the service that the DecisionTask identified by
  1260. // the taskToken has successfully completed. The decisions argument specifies
  1261. // the list of decisions made while processing the task.
  1262. //
  1263. // A DecisionTaskCompleted event is added to the workflow history. The executionContext
  1264. // specified is attached to the event in the workflow execution history.
  1265. //
  1266. // Access Control
  1267. //
  1268. // If an IAM policy grants permission to use RespondDecisionTaskCompleted,
  1269. // it can express permissions for the list of decisions in the decisions parameter.
  1270. // Each of the decisions has one or more parameters, much like a regular API
  1271. // call. To allow for policies to be as readable as possible, you can express
  1272. // permissions on decisions as if they were actual API calls, including applying
  1273. // conditions to some parameters. For more information, see Using IAM to Manage
  1274. // Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1275. func (c *SWF) RespondDecisionTaskCompleted(input *RespondDecisionTaskCompletedInput) (*RespondDecisionTaskCompletedOutput, error) {
  1276. req, out := c.RespondDecisionTaskCompletedRequest(input)
  1277. err := req.Send()
  1278. return out, err
  1279. }
  1280. const opSignalWorkflowExecution = "SignalWorkflowExecution"
  1281. // SignalWorkflowExecutionRequest generates a request for the SignalWorkflowExecution operation.
  1282. func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput) (req *request.Request, output *SignalWorkflowExecutionOutput) {
  1283. op := &request.Operation{
  1284. Name: opSignalWorkflowExecution,
  1285. HTTPMethod: "POST",
  1286. HTTPPath: "/",
  1287. }
  1288. if input == nil {
  1289. input = &SignalWorkflowExecutionInput{}
  1290. }
  1291. req = c.newRequest(op, input, output)
  1292. output = &SignalWorkflowExecutionOutput{}
  1293. req.Data = output
  1294. return
  1295. }
  1296. // Records a WorkflowExecutionSignaled event in the workflow execution history
  1297. // and creates a decision task for the workflow execution identified by the
  1298. // given domain, workflowId and runId. The event is recorded with the specified
  1299. // user defined signalName and input (if provided).
  1300. //
  1301. // If a runId is not specified, then the WorkflowExecutionSignaled event is
  1302. // recorded in the history of the current open workflow with the matching workflowId
  1303. // in the domain. If the specified workflow execution is not open, this method
  1304. // fails with UnknownResource. Access Control
  1305. //
  1306. // You can use IAM policies to control this action's access to Amazon SWF resources
  1307. // as follows:
  1308. //
  1309. // Use a Resource element with the domain name to limit the action to only
  1310. // specified domains. Use an Action element to allow or deny permission to call
  1311. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1312. // If the caller does not have sufficient permissions to invoke the action,
  1313. // or the parameter values fall outside the specified constraints, the action
  1314. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1315. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1316. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1317. func (c *SWF) SignalWorkflowExecution(input *SignalWorkflowExecutionInput) (*SignalWorkflowExecutionOutput, error) {
  1318. req, out := c.SignalWorkflowExecutionRequest(input)
  1319. err := req.Send()
  1320. return out, err
  1321. }
  1322. const opStartWorkflowExecution = "StartWorkflowExecution"
  1323. // StartWorkflowExecutionRequest generates a request for the StartWorkflowExecution operation.
  1324. func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) (req *request.Request, output *StartWorkflowExecutionOutput) {
  1325. op := &request.Operation{
  1326. Name: opStartWorkflowExecution,
  1327. HTTPMethod: "POST",
  1328. HTTPPath: "/",
  1329. }
  1330. if input == nil {
  1331. input = &StartWorkflowExecutionInput{}
  1332. }
  1333. req = c.newRequest(op, input, output)
  1334. output = &StartWorkflowExecutionOutput{}
  1335. req.Data = output
  1336. return
  1337. }
  1338. // Starts an execution of the workflow type in the specified domain using the
  1339. // provided workflowId and input data.
  1340. //
  1341. // This action returns the newly started workflow execution.
  1342. //
  1343. // Access Control
  1344. //
  1345. // You can use IAM policies to control this action's access to Amazon SWF resources
  1346. // as follows:
  1347. //
  1348. // Use a Resource element with the domain name to limit the action to only
  1349. // specified domains. Use an Action element to allow or deny permission to call
  1350. // this action. Constrain the following parameters by using a Condition element
  1351. // with the appropriate keys. tagList.member.0: The key is swf:tagList.member.0.
  1352. // tagList.member.1: The key is swf:tagList.member.1. tagList.member.2: The
  1353. // key is swf:tagList.member.2. tagList.member.3: The key is swf:tagList.member.3.
  1354. // tagList.member.4: The key is swf:tagList.member.4. taskList: String constraint.
  1355. // The key is swf:taskList.name. workflowType.name: String constraint. The key
  1356. // is swf:workflowType.name. workflowType.version: String constraint. The key
  1357. // is swf:workflowType.version. If the caller does not have sufficient permissions
  1358. // to invoke the action, or the parameter values fall outside the specified
  1359. // constraints, the action fails. The associated event attribute's cause parameter
  1360. // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
  1361. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1362. func (c *SWF) StartWorkflowExecution(input *StartWorkflowExecutionInput) (*StartWorkflowExecutionOutput, error) {
  1363. req, out := c.StartWorkflowExecutionRequest(input)
  1364. err := req.Send()
  1365. return out, err
  1366. }
  1367. const opTerminateWorkflowExecution = "TerminateWorkflowExecution"
  1368. // TerminateWorkflowExecutionRequest generates a request for the TerminateWorkflowExecution operation.
  1369. func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutionInput) (req *request.Request, output *TerminateWorkflowExecutionOutput) {
  1370. op := &request.Operation{
  1371. Name: opTerminateWorkflowExecution,
  1372. HTTPMethod: "POST",
  1373. HTTPPath: "/",
  1374. }
  1375. if input == nil {
  1376. input = &TerminateWorkflowExecutionInput{}
  1377. }
  1378. req = c.newRequest(op, input, output)
  1379. output = &TerminateWorkflowExecutionOutput{}
  1380. req.Data = output
  1381. return
  1382. }
  1383. // Records a WorkflowExecutionTerminated event and forces closure of the workflow
  1384. // execution identified by the given domain, runId, and workflowId. The child
  1385. // policy, registered with the workflow type or specified when starting this
  1386. // execution, is applied to any open child workflow executions of this workflow
  1387. // execution.
  1388. //
  1389. // If the identified workflow execution was in progress, it is terminated
  1390. // immediately. If a runId is not specified, then the WorkflowExecutionTerminated
  1391. // event is recorded in the history of the current open workflow with the matching
  1392. // workflowId in the domain. You should consider using RequestCancelWorkflowExecution
  1393. // action instead because it allows the workflow to gracefully close while TerminateWorkflowExecution
  1394. // does not. Access Control
  1395. //
  1396. // You can use IAM policies to control this action's access to Amazon SWF resources
  1397. // as follows:
  1398. //
  1399. // Use a Resource element with the domain name to limit the action to only
  1400. // specified domains. Use an Action element to allow or deny permission to call
  1401. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1402. // If the caller does not have sufficient permissions to invoke the action,
  1403. // or the parameter values fall outside the specified constraints, the action
  1404. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1405. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1406. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1407. func (c *SWF) TerminateWorkflowExecution(input *TerminateWorkflowExecutionInput) (*TerminateWorkflowExecutionOutput, error) {
  1408. req, out := c.TerminateWorkflowExecutionRequest(input)
  1409. err := req.Send()
  1410. return out, err
  1411. }
  1412. // Provides details of the ActivityTaskCancelRequested event.
  1413. type ActivityTaskCancelRequestedEventAttributes struct {
  1414. // The unique ID of the task.
  1415. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  1416. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  1417. // that resulted in the RequestCancelActivityTask decision for this cancellation
  1418. // request. This information can be useful for diagnosing problems by tracing
  1419. // back the chain of events leading up to this event.
  1420. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  1421. metadataActivityTaskCancelRequestedEventAttributes `json:"-" xml:"-"`
  1422. }
  1423. type metadataActivityTaskCancelRequestedEventAttributes struct {
  1424. SDKShapeTraits bool `type:"structure"`
  1425. }
  1426. // String returns the string representation
  1427. func (s ActivityTaskCancelRequestedEventAttributes) String() string {
  1428. return awsutil.Prettify(s)
  1429. }
  1430. // GoString returns the string representation
  1431. func (s ActivityTaskCancelRequestedEventAttributes) GoString() string {
  1432. return s.String()
  1433. }
  1434. // Provides details of the ActivityTaskCanceled event.
  1435. type ActivityTaskCanceledEventAttributes struct {
  1436. // Details of the cancellation (if any).
  1437. Details *string `locationName:"details" type:"string"`
  1438. // If set, contains the ID of the last ActivityTaskCancelRequested event recorded
  1439. // for this activity task. This information can be useful for diagnosing problems
  1440. // by tracing back the chain of events leading up to this event.
  1441. LatestCancelRequestedEventId *int64 `locationName:"latestCancelRequestedEventId" type:"long"`
  1442. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  1443. // task was scheduled. This information can be useful for diagnosing problems
  1444. // by tracing back the chain of events leading up to this event.
  1445. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  1446. // The ID of the ActivityTaskStarted event recorded when this activity task
  1447. // was started. This information can be useful for diagnosing problems by tracing
  1448. // back the chain of events leading up to this event.
  1449. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1450. metadataActivityTaskCanceledEventAttributes `json:"-" xml:"-"`
  1451. }
  1452. type metadataActivityTaskCanceledEventAttributes struct {
  1453. SDKShapeTraits bool `type:"structure"`
  1454. }
  1455. // String returns the string representation
  1456. func (s ActivityTaskCanceledEventAttributes) String() string {
  1457. return awsutil.Prettify(s)
  1458. }
  1459. // GoString returns the string representation
  1460. func (s ActivityTaskCanceledEventAttributes) GoString() string {
  1461. return s.String()
  1462. }
  1463. // Provides details of the ActivityTaskCompleted event.
  1464. type ActivityTaskCompletedEventAttributes struct {
  1465. // The results of the activity task (if any).
  1466. Result *string `locationName:"result" type:"string"`
  1467. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  1468. // task was scheduled. This information can be useful for diagnosing problems
  1469. // by tracing back the chain of events leading up to this event.
  1470. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  1471. // The ID of the ActivityTaskStarted event recorded when this activity task
  1472. // was started. This information can be useful for diagnosing problems by tracing
  1473. // back the chain of events leading up to this event.
  1474. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1475. metadataActivityTaskCompletedEventAttributes `json:"-" xml:"-"`
  1476. }
  1477. type metadataActivityTaskCompletedEventAttributes struct {
  1478. SDKShapeTraits bool `type:"structure"`
  1479. }
  1480. // String returns the string representation
  1481. func (s ActivityTaskCompletedEventAttributes) String() string {
  1482. return awsutil.Prettify(s)
  1483. }
  1484. // GoString returns the string representation
  1485. func (s ActivityTaskCompletedEventAttributes) GoString() string {
  1486. return s.String()
  1487. }
  1488. // Provides details of the ActivityTaskFailed event.
  1489. type ActivityTaskFailedEventAttributes struct {
  1490. // The details of the failure (if any).
  1491. Details *string `locationName:"details" type:"string"`
  1492. // The reason provided for the failure (if any).
  1493. Reason *string `locationName:"reason" type:"string"`
  1494. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  1495. // task was scheduled. This information can be useful for diagnosing problems
  1496. // by tracing back the chain of events leading up to this event.
  1497. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  1498. // The ID of the ActivityTaskStarted event recorded when this activity task
  1499. // was started. This information can be useful for diagnosing problems by tracing
  1500. // back the chain of events leading up to this event.
  1501. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1502. metadataActivityTaskFailedEventAttributes `json:"-" xml:"-"`
  1503. }
  1504. type metadataActivityTaskFailedEventAttributes struct {
  1505. SDKShapeTraits bool `type:"structure"`
  1506. }
  1507. // String returns the string representation
  1508. func (s ActivityTaskFailedEventAttributes) String() string {
  1509. return awsutil.Prettify(s)
  1510. }
  1511. // GoString returns the string representation
  1512. func (s ActivityTaskFailedEventAttributes) GoString() string {
  1513. return s.String()
  1514. }
  1515. // Provides details of the ActivityTaskScheduled event.
  1516. type ActivityTaskScheduledEventAttributes struct {
  1517. // The unique ID of the activity task.
  1518. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  1519. // The type of the activity task.
  1520. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  1521. // Optional. Data attached to the event that can be used by the decider in subsequent
  1522. // workflow tasks. This data is not sent to the activity.
  1523. Control *string `locationName:"control" type:"string"`
  1524. // The ID of the DecisionTaskCompleted event corresponding to the decision that
  1525. // resulted in the scheduling of this activity task. This information can be
  1526. // useful for diagnosing problems by tracing back the chain of events leading
  1527. // up to this event.
  1528. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  1529. // The maximum time before which the worker processing this task must report
  1530. // progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded,
  1531. // the activity task is automatically timed out. If the worker subsequently
  1532. // attempts to record a heartbeat or return a result, it will be ignored.
  1533. HeartbeatTimeout *string `locationName:"heartbeatTimeout" type:"string"`
  1534. // The input provided to the activity task.
  1535. Input *string `locationName:"input" type:"string"`
  1536. // The maximum amount of time for this activity task.
  1537. ScheduleToCloseTimeout *string `locationName:"scheduleToCloseTimeout" type:"string"`
  1538. // The maximum amount of time the activity task can wait to be assigned to a
  1539. // worker.
  1540. ScheduleToStartTimeout *string `locationName:"scheduleToStartTimeout" type:"string"`
  1541. // The maximum amount of time a worker may take to process the activity task.
  1542. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  1543. // The task list in which the activity task has been scheduled.
  1544. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  1545. // Optional. The priority to assign to the scheduled activity task. If set,
  1546. // this will override any default priority value that was assigned when the
  1547. // activity type was registered.
  1548. //
  1549. // Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  1550. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  1551. //
  1552. // For more information about setting task priority, see Setting Task Priority
  1553. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  1554. // in the Amazon Simple Workflow Developer Guide.
  1555. TaskPriority *string `locationName:"taskPriority" type:"string"`
  1556. metadataActivityTaskScheduledEventAttributes `json:"-" xml:"-"`
  1557. }
  1558. type metadataActivityTaskScheduledEventAttributes struct {
  1559. SDKShapeTraits bool `type:"structure"`
  1560. }
  1561. // String returns the string representation
  1562. func (s ActivityTaskScheduledEventAttributes) String() string {
  1563. return awsutil.Prettify(s)
  1564. }
  1565. // GoString returns the string representation
  1566. func (s ActivityTaskScheduledEventAttributes) GoString() string {
  1567. return s.String()
  1568. }
  1569. // Provides details of the ActivityTaskStarted event.
  1570. type ActivityTaskStartedEventAttributes struct {
  1571. // Identity of the worker that was assigned this task. This aids diagnostics
  1572. // when problems arise. The form of this identity is user defined.
  1573. Identity *string `locationName:"identity" type:"string"`
  1574. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  1575. // task was scheduled. This information can be useful for diagnosing problems
  1576. // by tracing back the chain of events leading up to this event.
  1577. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  1578. metadataActivityTaskStartedEventAttributes `json:"-" xml:"-"`
  1579. }
  1580. type metadataActivityTaskStartedEventAttributes struct {
  1581. SDKShapeTraits bool `type:"structure"`
  1582. }
  1583. // String returns the string representation
  1584. func (s ActivityTaskStartedEventAttributes) String() string {
  1585. return awsutil.Prettify(s)
  1586. }
  1587. // GoString returns the string representation
  1588. func (s ActivityTaskStartedEventAttributes) GoString() string {
  1589. return s.String()
  1590. }
  1591. // Provides details of the ActivityTaskTimedOut event.
  1592. type ActivityTaskTimedOutEventAttributes struct {
  1593. // Contains the content of the details parameter for the last call made by the
  1594. // activity to RecordActivityTaskHeartbeat.
  1595. Details *string `locationName:"details" type:"string"`
  1596. // The ID of the ActivityTaskScheduled event that was recorded when this activity
  1597. // task was scheduled. This information can be useful for diagnosing problems
  1598. // by tracing back the chain of events leading up to this event.
  1599. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  1600. // The ID of the ActivityTaskStarted event recorded when this activity task
  1601. // was started. This information can be useful for diagnosing problems by tracing
  1602. // back the chain of events leading up to this event.
  1603. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1604. // The type of the timeout that caused this event.
  1605. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"ActivityTaskTimeoutType"`
  1606. metadataActivityTaskTimedOutEventAttributes `json:"-" xml:"-"`
  1607. }
  1608. type metadataActivityTaskTimedOutEventAttributes struct {
  1609. SDKShapeTraits bool `type:"structure"`
  1610. }
  1611. // String returns the string representation
  1612. func (s ActivityTaskTimedOutEventAttributes) String() string {
  1613. return awsutil.Prettify(s)
  1614. }
  1615. // GoString returns the string representation
  1616. func (s ActivityTaskTimedOutEventAttributes) GoString() string {
  1617. return s.String()
  1618. }
  1619. // Represents an activity type.
  1620. type ActivityType struct {
  1621. // The name of this activity.
  1622. //
  1623. // The combination of activity type name and version must be unique within
  1624. // a domain.
  1625. Name *string `locationName:"name" type:"string" required:"true"`
  1626. // The version of this activity.
  1627. //
  1628. // The combination of activity type name and version must be unique with in
  1629. // a domain.
  1630. Version *string `locationName:"version" type:"string" required:"true"`
  1631. metadataActivityType `json:"-" xml:"-"`
  1632. }
  1633. type metadataActivityType struct {
  1634. SDKShapeTraits bool `type:"structure"`
  1635. }
  1636. // String returns the string representation
  1637. func (s ActivityType) String() string {
  1638. return awsutil.Prettify(s)
  1639. }
  1640. // GoString returns the string representation
  1641. func (s ActivityType) GoString() string {
  1642. return s.String()
  1643. }
  1644. // Configuration settings registered with the activity type.
  1645. type ActivityTypeConfiguration struct {
  1646. // Optional. The default maximum time, in seconds, before which a worker processing
  1647. // a task must report progress by calling RecordActivityTaskHeartbeat.
  1648. //
  1649. // You can specify this value only when registering an activity type. The registered
  1650. // default value can be overridden when you schedule a task through the ScheduleActivityTask
  1651. // decision. If the activity worker subsequently attempts to record a heartbeat
  1652. // or returns a result, the activity worker receives an UnknownResource fault.
  1653. // In this case, Amazon SWF no longer considers the activity task to be valid;
  1654. // the activity worker should clean up the activity task.
  1655. //
  1656. // The duration is specified in seconds; an integer greater than or equal to
  1657. // 0. The value "NONE" can be used to specify unlimited duration.
  1658. DefaultTaskHeartbeatTimeout *string `locationName:"defaultTaskHeartbeatTimeout" type:"string"`
  1659. // Optional. The default task list specified for this activity type at registration.
  1660. // This default is used if a task list is not provided when a task is scheduled
  1661. // through the ScheduleActivityTask decision. You can override the default registered
  1662. // task list when scheduling a task through the ScheduleActivityTask decision.
  1663. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  1664. // Optional. The default task priority for tasks of this activity type, specified
  1665. // at registration. If not set, then "0" will be used as the default priority.
  1666. // This default can be overridden when scheduling an activity task.
  1667. //
  1668. // Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  1669. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  1670. //
  1671. // For more information about setting task priority, see Setting Task Priority
  1672. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  1673. // in the Amazon Simple Workflow Developer Guide.
  1674. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  1675. // Optional. The default maximum duration, specified when registering the activity
  1676. // type, for tasks of this activity type. You can override this default when
  1677. // scheduling a task through the ScheduleActivityTask decision.
  1678. //
  1679. // The duration is specified in seconds; an integer greater than or equal to
  1680. // 0. The value "NONE" can be used to specify unlimited duration.
  1681. DefaultTaskScheduleToCloseTimeout *string `locationName:"defaultTaskScheduleToCloseTimeout" type:"string"`
  1682. // Optional. The default maximum duration, specified when registering the activity
  1683. // type, that a task of an activity type can wait before being assigned to a
  1684. // worker. You can override this default when scheduling a task through the
  1685. // ScheduleActivityTask decision.
  1686. //
  1687. // The duration is specified in seconds; an integer greater than or equal to
  1688. // 0. The value "NONE" can be used to specify unlimited duration.
  1689. DefaultTaskScheduleToStartTimeout *string `locationName:"defaultTaskScheduleToStartTimeout" type:"string"`
  1690. // Optional. The default maximum duration for tasks of an activity type specified
  1691. // when registering the activity type. You can override this default when scheduling
  1692. // a task through the ScheduleActivityTask decision.
  1693. //
  1694. // The duration is specified in seconds; an integer greater than or equal to
  1695. // 0. The value "NONE" can be used to specify unlimited duration.
  1696. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  1697. metadataActivityTypeConfiguration `json:"-" xml:"-"`
  1698. }
  1699. type metadataActivityTypeConfiguration struct {
  1700. SDKShapeTraits bool `type:"structure"`
  1701. }
  1702. // String returns the string representation
  1703. func (s ActivityTypeConfiguration) String() string {
  1704. return awsutil.Prettify(s)
  1705. }
  1706. // GoString returns the string representation
  1707. func (s ActivityTypeConfiguration) GoString() string {
  1708. return s.String()
  1709. }
  1710. // Detailed information about an activity type.
  1711. type ActivityTypeInfo struct {
  1712. // The ActivityType type structure representing the activity type.
  1713. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  1714. // The date and time this activity type was created through RegisterActivityType.
  1715. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
  1716. // If DEPRECATED, the date and time DeprecateActivityType was called.
  1717. DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
  1718. // The description of the activity type provided in RegisterActivityType.
  1719. Description *string `locationName:"description" type:"string"`
  1720. // The current status of the activity type.
  1721. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"`
  1722. metadataActivityTypeInfo `json:"-" xml:"-"`
  1723. }
  1724. type metadataActivityTypeInfo struct {
  1725. SDKShapeTraits bool `type:"structure"`
  1726. }
  1727. // String returns the string representation
  1728. func (s ActivityTypeInfo) String() string {
  1729. return awsutil.Prettify(s)
  1730. }
  1731. // GoString returns the string representation
  1732. func (s ActivityTypeInfo) GoString() string {
  1733. return s.String()
  1734. }
  1735. // Provides details of the CancelTimer decision.
  1736. //
  1737. // Access Control
  1738. //
  1739. // You can use IAM policies to control this decision's access to Amazon SWF
  1740. // resources as follows:
  1741. //
  1742. // Use a Resource element with the domain name to limit the action to only
  1743. // specified domains. Use an Action element to allow or deny permission to call
  1744. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1745. // If the caller does not have sufficient permissions to invoke the action,
  1746. // or the parameter values fall outside the specified constraints, the action
  1747. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1748. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1749. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1750. type CancelTimerDecisionAttributes struct {
  1751. // Required. The unique ID of the timer to cancel.
  1752. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  1753. metadataCancelTimerDecisionAttributes `json:"-" xml:"-"`
  1754. }
  1755. type metadataCancelTimerDecisionAttributes struct {
  1756. SDKShapeTraits bool `type:"structure"`
  1757. }
  1758. // String returns the string representation
  1759. func (s CancelTimerDecisionAttributes) String() string {
  1760. return awsutil.Prettify(s)
  1761. }
  1762. // GoString returns the string representation
  1763. func (s CancelTimerDecisionAttributes) GoString() string {
  1764. return s.String()
  1765. }
  1766. // Provides details of the CancelTimerFailed event.
  1767. type CancelTimerFailedEventAttributes struct {
  1768. // The cause of the failure. This information is generated by the system and
  1769. // can be useful for diagnostic purposes.
  1770. //
  1771. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  1772. // it lacked sufficient permissions. For details and example IAM policies, see
  1773. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1774. Cause *string `locationName:"cause" type:"string" required:"true" enum:"CancelTimerFailedCause"`
  1775. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  1776. // that resulted in the CancelTimer decision to cancel this timer. This information
  1777. // can be useful for diagnosing problems by tracing back the chain of events
  1778. // leading up to this event.
  1779. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  1780. // The timerId provided in the CancelTimer decision that failed.
  1781. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  1782. metadataCancelTimerFailedEventAttributes `json:"-" xml:"-"`
  1783. }
  1784. type metadataCancelTimerFailedEventAttributes struct {
  1785. SDKShapeTraits bool `type:"structure"`
  1786. }
  1787. // String returns the string representation
  1788. func (s CancelTimerFailedEventAttributes) String() string {
  1789. return awsutil.Prettify(s)
  1790. }
  1791. // GoString returns the string representation
  1792. func (s CancelTimerFailedEventAttributes) GoString() string {
  1793. return s.String()
  1794. }
  1795. // Provides details of the CancelWorkflowExecution decision.
  1796. //
  1797. // Access Control
  1798. //
  1799. // You can use IAM policies to control this decision's access to Amazon SWF
  1800. // resources as follows:
  1801. //
  1802. // Use a Resource element with the domain name to limit the action to only
  1803. // specified domains. Use an Action element to allow or deny permission to call
  1804. // this action. You cannot use an IAM policy to constrain this action's parameters.
  1805. // If the caller does not have sufficient permissions to invoke the action,
  1806. // or the parameter values fall outside the specified constraints, the action
  1807. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  1808. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  1809. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1810. type CancelWorkflowExecutionDecisionAttributes struct {
  1811. // Optional. details of the cancellation.
  1812. Details *string `locationName:"details" type:"string"`
  1813. metadataCancelWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  1814. }
  1815. type metadataCancelWorkflowExecutionDecisionAttributes struct {
  1816. SDKShapeTraits bool `type:"structure"`
  1817. }
  1818. // String returns the string representation
  1819. func (s CancelWorkflowExecutionDecisionAttributes) String() string {
  1820. return awsutil.Prettify(s)
  1821. }
  1822. // GoString returns the string representation
  1823. func (s CancelWorkflowExecutionDecisionAttributes) GoString() string {
  1824. return s.String()
  1825. }
  1826. // Provides details of the CancelWorkflowExecutionFailed event.
  1827. type CancelWorkflowExecutionFailedEventAttributes struct {
  1828. // The cause of the failure. This information is generated by the system and
  1829. // can be useful for diagnostic purposes.
  1830. //
  1831. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  1832. // it lacked sufficient permissions. For details and example IAM policies, see
  1833. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  1834. Cause *string `locationName:"cause" type:"string" required:"true" enum:"CancelWorkflowExecutionFailedCause"`
  1835. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  1836. // that resulted in the CancelWorkflowExecution decision for this cancellation
  1837. // request. This information can be useful for diagnosing problems by tracing
  1838. // back the chain of events leading up to this event.
  1839. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  1840. metadataCancelWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  1841. }
  1842. type metadataCancelWorkflowExecutionFailedEventAttributes struct {
  1843. SDKShapeTraits bool `type:"structure"`
  1844. }
  1845. // String returns the string representation
  1846. func (s CancelWorkflowExecutionFailedEventAttributes) String() string {
  1847. return awsutil.Prettify(s)
  1848. }
  1849. // GoString returns the string representation
  1850. func (s CancelWorkflowExecutionFailedEventAttributes) GoString() string {
  1851. return s.String()
  1852. }
  1853. // Provide details of the ChildWorkflowExecutionCanceled event.
  1854. type ChildWorkflowExecutionCanceledEventAttributes struct {
  1855. // Details of the cancellation (if provided).
  1856. Details *string `locationName:"details" type:"string"`
  1857. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  1858. // the StartChildWorkflowExecution decision to start this child workflow execution.
  1859. // This information can be useful for diagnosing problems by tracing back the
  1860. // chain of events leading up to this event.
  1861. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  1862. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  1863. // workflow execution was started. This information can be useful for diagnosing
  1864. // problems by tracing back the chain of events leading up to this event.
  1865. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1866. // The child workflow execution that was canceled.
  1867. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  1868. // The type of the child workflow execution.
  1869. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  1870. metadataChildWorkflowExecutionCanceledEventAttributes `json:"-" xml:"-"`
  1871. }
  1872. type metadataChildWorkflowExecutionCanceledEventAttributes struct {
  1873. SDKShapeTraits bool `type:"structure"`
  1874. }
  1875. // String returns the string representation
  1876. func (s ChildWorkflowExecutionCanceledEventAttributes) String() string {
  1877. return awsutil.Prettify(s)
  1878. }
  1879. // GoString returns the string representation
  1880. func (s ChildWorkflowExecutionCanceledEventAttributes) GoString() string {
  1881. return s.String()
  1882. }
  1883. // Provides details of the ChildWorkflowExecutionCompleted event.
  1884. type ChildWorkflowExecutionCompletedEventAttributes struct {
  1885. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  1886. // the StartChildWorkflowExecution decision to start this child workflow execution.
  1887. // This information can be useful for diagnosing problems by tracing back the
  1888. // chain of events leading up to this event.
  1889. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  1890. // The result of the child workflow execution (if any).
  1891. Result *string `locationName:"result" type:"string"`
  1892. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  1893. // workflow execution was started. This information can be useful for diagnosing
  1894. // problems by tracing back the chain of events leading up to this event.
  1895. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1896. // The child workflow execution that was completed.
  1897. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  1898. // The type of the child workflow execution.
  1899. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  1900. metadataChildWorkflowExecutionCompletedEventAttributes `json:"-" xml:"-"`
  1901. }
  1902. type metadataChildWorkflowExecutionCompletedEventAttributes struct {
  1903. SDKShapeTraits bool `type:"structure"`
  1904. }
  1905. // String returns the string representation
  1906. func (s ChildWorkflowExecutionCompletedEventAttributes) String() string {
  1907. return awsutil.Prettify(s)
  1908. }
  1909. // GoString returns the string representation
  1910. func (s ChildWorkflowExecutionCompletedEventAttributes) GoString() string {
  1911. return s.String()
  1912. }
  1913. // Provides details of the ChildWorkflowExecutionFailed event.
  1914. type ChildWorkflowExecutionFailedEventAttributes struct {
  1915. // The details of the failure (if provided).
  1916. Details *string `locationName:"details" type:"string"`
  1917. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  1918. // the StartChildWorkflowExecution decision to start this child workflow execution.
  1919. // This information can be useful for diagnosing problems by tracing back the
  1920. // chain of events leading up to this event.
  1921. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  1922. // The reason for the failure (if provided).
  1923. Reason *string `locationName:"reason" type:"string"`
  1924. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  1925. // workflow execution was started. This information can be useful for diagnosing
  1926. // problems by tracing back the chain of events leading up to this event.
  1927. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1928. // The child workflow execution that failed.
  1929. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  1930. // The type of the child workflow execution.
  1931. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  1932. metadataChildWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  1933. }
  1934. type metadataChildWorkflowExecutionFailedEventAttributes struct {
  1935. SDKShapeTraits bool `type:"structure"`
  1936. }
  1937. // String returns the string representation
  1938. func (s ChildWorkflowExecutionFailedEventAttributes) String() string {
  1939. return awsutil.Prettify(s)
  1940. }
  1941. // GoString returns the string representation
  1942. func (s ChildWorkflowExecutionFailedEventAttributes) GoString() string {
  1943. return s.String()
  1944. }
  1945. // Provides details of the ChildWorkflowExecutionStarted event.
  1946. type ChildWorkflowExecutionStartedEventAttributes struct {
  1947. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  1948. // the StartChildWorkflowExecution decision to start this child workflow execution.
  1949. // This information can be useful for diagnosing problems by tracing back the
  1950. // chain of events leading up to this event.
  1951. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  1952. // The child workflow execution that was started.
  1953. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  1954. // The type of the child workflow execution.
  1955. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  1956. metadataChildWorkflowExecutionStartedEventAttributes `json:"-" xml:"-"`
  1957. }
  1958. type metadataChildWorkflowExecutionStartedEventAttributes struct {
  1959. SDKShapeTraits bool `type:"structure"`
  1960. }
  1961. // String returns the string representation
  1962. func (s ChildWorkflowExecutionStartedEventAttributes) String() string {
  1963. return awsutil.Prettify(s)
  1964. }
  1965. // GoString returns the string representation
  1966. func (s ChildWorkflowExecutionStartedEventAttributes) GoString() string {
  1967. return s.String()
  1968. }
  1969. // Provides details of the ChildWorkflowExecutionTerminated event.
  1970. type ChildWorkflowExecutionTerminatedEventAttributes struct {
  1971. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  1972. // the StartChildWorkflowExecution decision to start this child workflow execution.
  1973. // This information can be useful for diagnosing problems by tracing back the
  1974. // chain of events leading up to this event.
  1975. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  1976. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  1977. // workflow execution was started. This information can be useful for diagnosing
  1978. // problems by tracing back the chain of events leading up to this event.
  1979. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  1980. // The child workflow execution that was terminated.
  1981. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  1982. // The type of the child workflow execution.
  1983. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  1984. metadataChildWorkflowExecutionTerminatedEventAttributes `json:"-" xml:"-"`
  1985. }
  1986. type metadataChildWorkflowExecutionTerminatedEventAttributes struct {
  1987. SDKShapeTraits bool `type:"structure"`
  1988. }
  1989. // String returns the string representation
  1990. func (s ChildWorkflowExecutionTerminatedEventAttributes) String() string {
  1991. return awsutil.Prettify(s)
  1992. }
  1993. // GoString returns the string representation
  1994. func (s ChildWorkflowExecutionTerminatedEventAttributes) GoString() string {
  1995. return s.String()
  1996. }
  1997. // Provides details of the ChildWorkflowExecutionTimedOut event.
  1998. type ChildWorkflowExecutionTimedOutEventAttributes struct {
  1999. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  2000. // the StartChildWorkflowExecution decision to start this child workflow execution.
  2001. // This information can be useful for diagnosing problems by tracing back the
  2002. // chain of events leading up to this event.
  2003. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  2004. // The ID of the ChildWorkflowExecutionStarted event recorded when this child
  2005. // workflow execution was started. This information can be useful for diagnosing
  2006. // problems by tracing back the chain of events leading up to this event.
  2007. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  2008. // The type of the timeout that caused the child workflow execution to time
  2009. // out.
  2010. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"WorkflowExecutionTimeoutType"`
  2011. // The child workflow execution that timed out.
  2012. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  2013. // The type of the child workflow execution.
  2014. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  2015. metadataChildWorkflowExecutionTimedOutEventAttributes `json:"-" xml:"-"`
  2016. }
  2017. type metadataChildWorkflowExecutionTimedOutEventAttributes struct {
  2018. SDKShapeTraits bool `type:"structure"`
  2019. }
  2020. // String returns the string representation
  2021. func (s ChildWorkflowExecutionTimedOutEventAttributes) String() string {
  2022. return awsutil.Prettify(s)
  2023. }
  2024. // GoString returns the string representation
  2025. func (s ChildWorkflowExecutionTimedOutEventAttributes) GoString() string {
  2026. return s.String()
  2027. }
  2028. // Used to filter the closed workflow executions in visibility APIs by their
  2029. // close status.
  2030. type CloseStatusFilter struct {
  2031. // Required. The close status that must match the close status of an execution
  2032. // for it to meet the criteria of this filter.
  2033. Status *string `locationName:"status" type:"string" required:"true" enum:"CloseStatus"`
  2034. metadataCloseStatusFilter `json:"-" xml:"-"`
  2035. }
  2036. type metadataCloseStatusFilter struct {
  2037. SDKShapeTraits bool `type:"structure"`
  2038. }
  2039. // String returns the string representation
  2040. func (s CloseStatusFilter) String() string {
  2041. return awsutil.Prettify(s)
  2042. }
  2043. // GoString returns the string representation
  2044. func (s CloseStatusFilter) GoString() string {
  2045. return s.String()
  2046. }
  2047. // Provides details of the CompleteWorkflowExecution decision.
  2048. //
  2049. // Access Control
  2050. //
  2051. // You can use IAM policies to control this decision's access to Amazon SWF
  2052. // resources as follows:
  2053. //
  2054. // Use a Resource element with the domain name to limit the action to only
  2055. // specified domains. Use an Action element to allow or deny permission to call
  2056. // this action. You cannot use an IAM policy to constrain this action's parameters.
  2057. // If the caller does not have sufficient permissions to invoke the action,
  2058. // or the parameter values fall outside the specified constraints, the action
  2059. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2060. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2061. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2062. type CompleteWorkflowExecutionDecisionAttributes struct {
  2063. // The result of the workflow execution. The form of the result is implementation
  2064. // defined.
  2065. Result *string `locationName:"result" type:"string"`
  2066. metadataCompleteWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  2067. }
  2068. type metadataCompleteWorkflowExecutionDecisionAttributes struct {
  2069. SDKShapeTraits bool `type:"structure"`
  2070. }
  2071. // String returns the string representation
  2072. func (s CompleteWorkflowExecutionDecisionAttributes) String() string {
  2073. return awsutil.Prettify(s)
  2074. }
  2075. // GoString returns the string representation
  2076. func (s CompleteWorkflowExecutionDecisionAttributes) GoString() string {
  2077. return s.String()
  2078. }
  2079. // Provides details of the CompleteWorkflowExecutionFailed event.
  2080. type CompleteWorkflowExecutionFailedEventAttributes struct {
  2081. // The cause of the failure. This information is generated by the system and
  2082. // can be useful for diagnostic purposes.
  2083. //
  2084. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  2085. // it lacked sufficient permissions. For details and example IAM policies, see
  2086. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2087. Cause *string `locationName:"cause" type:"string" required:"true" enum:"CompleteWorkflowExecutionFailedCause"`
  2088. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  2089. // that resulted in the CompleteWorkflowExecution decision to complete this
  2090. // execution. This information can be useful for diagnosing problems by tracing
  2091. // back the chain of events leading up to this event.
  2092. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  2093. metadataCompleteWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  2094. }
  2095. type metadataCompleteWorkflowExecutionFailedEventAttributes struct {
  2096. SDKShapeTraits bool `type:"structure"`
  2097. }
  2098. // String returns the string representation
  2099. func (s CompleteWorkflowExecutionFailedEventAttributes) String() string {
  2100. return awsutil.Prettify(s)
  2101. }
  2102. // GoString returns the string representation
  2103. func (s CompleteWorkflowExecutionFailedEventAttributes) GoString() string {
  2104. return s.String()
  2105. }
  2106. // Provides details of the ContinueAsNewWorkflowExecution decision.
  2107. //
  2108. // Access Control
  2109. //
  2110. // You can use IAM policies to control this decision's access to Amazon SWF
  2111. // resources as follows:
  2112. //
  2113. // Use a Resource element with the domain name to limit the action to only
  2114. // specified domains. Use an Action element to allow or deny permission to call
  2115. // this action. Constrain the following parameters by using a Condition element
  2116. // with the appropriate keys. tag: Optional.. A tag used to identify the workflow
  2117. // execution taskList: String constraint. The key is swf:taskList.name. workflowType.version:
  2118. // String constraint. The key is swf:workflowType.version. If the caller
  2119. // does not have sufficient permissions to invoke the action, or the parameter
  2120. // values fall outside the specified constraints, the action fails. The associated
  2121. // event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2122. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2123. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2124. type ContinueAsNewWorkflowExecutionDecisionAttributes struct {
  2125. // If set, specifies the policy to use for the child workflow executions of
  2126. // the new execution if it is terminated by calling the TerminateWorkflowExecution
  2127. // action explicitly or due to an expired timeout. This policy overrides the
  2128. // default child policy specified when registering the workflow type using RegisterWorkflowType.
  2129. //
  2130. // The supported child policies are:
  2131. //
  2132. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  2133. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  2134. // event in its history. It is up to the decider to take appropriate actions
  2135. // when it receives an execution history with this event. ABANDON: no action
  2136. // will be taken. The child executions will continue to run. A child policy
  2137. // for this workflow execution must be specified either as a default for the
  2138. // workflow type or through this parameter. If neither this parameter is set
  2139. // nor a default child policy was specified at registration time then a fault
  2140. // will be returned.
  2141. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  2142. // If set, specifies the total duration for this workflow execution. This overrides
  2143. // the defaultExecutionStartToCloseTimeout specified when registering the workflow
  2144. // type.
  2145. //
  2146. // The duration is specified in seconds; an integer greater than or equal to
  2147. // 0. The value "NONE" can be used to specify unlimited duration.
  2148. //
  2149. // An execution start-to-close timeout for this workflow execution must be
  2150. // specified either as a default for the workflow type or through this field.
  2151. // If neither this field is set nor a default execution start-to-close timeout
  2152. // was specified at registration time then a fault will be returned.
  2153. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  2154. // The input provided to the new workflow execution.
  2155. Input *string `locationName:"input" type:"string"`
  2156. // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
  2157. //
  2158. // In order for this workflow execution to invoke AWS Lambda functions, an
  2159. // appropriate IAM role must be specified either as a default for the workflow
  2160. // type or through this field.
  2161. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  2162. // The list of tags to associate with the new workflow execution. A maximum
  2163. // of 5 tags can be specified. You can list workflow executions with a specific
  2164. // tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions
  2165. // and specifying a TagFilter.
  2166. TagList []*string `locationName:"tagList" type:"list"`
  2167. // Represents a task list.
  2168. TaskList *TaskList `locationName:"taskList" type:"structure"`
  2169. // Optional. The task priority that, if set, specifies the priority for the
  2170. // decision tasks for this workflow execution. This overrides the defaultTaskPriority
  2171. // specified when registering the workflow type. Valid values are integers that
  2172. // range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647).
  2173. // Higher numbers indicate higher priority.
  2174. //
  2175. // For more information about setting task priority, see Setting Task Priority
  2176. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  2177. // in the Amazon Simple Workflow Developer Guide.
  2178. TaskPriority *string `locationName:"taskPriority" type:"string"`
  2179. // Specifies the maximum duration of decision tasks for the new workflow execution.
  2180. // This parameter overrides the defaultTaskStartToCloseTimout specified when
  2181. // registering the workflow type using RegisterWorkflowType.
  2182. //
  2183. // The duration is specified in seconds; an integer greater than or equal to
  2184. // 0. The value "NONE" can be used to specify unlimited duration.
  2185. //
  2186. // A task start-to-close timeout for the new workflow execution must be specified
  2187. // either as a default for the workflow type or through this parameter. If neither
  2188. // this parameter is set nor a default task start-to-close timeout was specified
  2189. // at registration time then a fault will be returned.
  2190. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  2191. WorkflowTypeVersion *string `locationName:"workflowTypeVersion" type:"string"`
  2192. metadataContinueAsNewWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  2193. }
  2194. type metadataContinueAsNewWorkflowExecutionDecisionAttributes struct {
  2195. SDKShapeTraits bool `type:"structure"`
  2196. }
  2197. // String returns the string representation
  2198. func (s ContinueAsNewWorkflowExecutionDecisionAttributes) String() string {
  2199. return awsutil.Prettify(s)
  2200. }
  2201. // GoString returns the string representation
  2202. func (s ContinueAsNewWorkflowExecutionDecisionAttributes) GoString() string {
  2203. return s.String()
  2204. }
  2205. // Provides details of the ContinueAsNewWorkflowExecutionFailed event.
  2206. type ContinueAsNewWorkflowExecutionFailedEventAttributes struct {
  2207. // The cause of the failure. This information is generated by the system and
  2208. // can be useful for diagnostic purposes.
  2209. //
  2210. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  2211. // it lacked sufficient permissions. For details and example IAM policies, see
  2212. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2213. Cause *string `locationName:"cause" type:"string" required:"true" enum:"ContinueAsNewWorkflowExecutionFailedCause"`
  2214. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  2215. // that resulted in the ContinueAsNewWorkflowExecution decision that started
  2216. // this execution. This information can be useful for diagnosing problems by
  2217. // tracing back the chain of events leading up to this event.
  2218. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  2219. metadataContinueAsNewWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  2220. }
  2221. type metadataContinueAsNewWorkflowExecutionFailedEventAttributes struct {
  2222. SDKShapeTraits bool `type:"structure"`
  2223. }
  2224. // String returns the string representation
  2225. func (s ContinueAsNewWorkflowExecutionFailedEventAttributes) String() string {
  2226. return awsutil.Prettify(s)
  2227. }
  2228. // GoString returns the string representation
  2229. func (s ContinueAsNewWorkflowExecutionFailedEventAttributes) GoString() string {
  2230. return s.String()
  2231. }
  2232. type CountClosedWorkflowExecutionsInput struct {
  2233. // If specified, only workflow executions that match this close status are counted.
  2234. // This filter has an affect only if executionStatus is specified as CLOSED.
  2235. //
  2236. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  2237. // exclusive. You can specify at most one of these in a request.
  2238. CloseStatusFilter *CloseStatusFilter `locationName:"closeStatusFilter" type:"structure"`
  2239. // If specified, only workflow executions that meet the close time criteria
  2240. // of the filter are counted.
  2241. //
  2242. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  2243. // one of these in a request but not both.
  2244. CloseTimeFilter *ExecutionTimeFilter `locationName:"closeTimeFilter" type:"structure"`
  2245. // The name of the domain containing the workflow executions to count.
  2246. Domain *string `locationName:"domain" type:"string" required:"true"`
  2247. // If specified, only workflow executions matching the WorkflowId in the filter
  2248. // are counted.
  2249. //
  2250. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  2251. // exclusive. You can specify at most one of these in a request.
  2252. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  2253. // If specified, only workflow executions that meet the start time criteria
  2254. // of the filter are counted.
  2255. //
  2256. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  2257. // one of these in a request but not both.
  2258. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure"`
  2259. // If specified, only executions that have a tag that matches the filter are
  2260. // counted.
  2261. //
  2262. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  2263. // exclusive. You can specify at most one of these in a request.
  2264. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  2265. // If specified, indicates the type of the workflow executions to be counted.
  2266. //
  2267. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  2268. // exclusive. You can specify at most one of these in a request.
  2269. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  2270. metadataCountClosedWorkflowExecutionsInput `json:"-" xml:"-"`
  2271. }
  2272. type metadataCountClosedWorkflowExecutionsInput struct {
  2273. SDKShapeTraits bool `type:"structure"`
  2274. }
  2275. // String returns the string representation
  2276. func (s CountClosedWorkflowExecutionsInput) String() string {
  2277. return awsutil.Prettify(s)
  2278. }
  2279. // GoString returns the string representation
  2280. func (s CountClosedWorkflowExecutionsInput) GoString() string {
  2281. return s.String()
  2282. }
  2283. type CountOpenWorkflowExecutionsInput struct {
  2284. // The name of the domain containing the workflow executions to count.
  2285. Domain *string `locationName:"domain" type:"string" required:"true"`
  2286. // If specified, only workflow executions matching the WorkflowId in the filter
  2287. // are counted.
  2288. //
  2289. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  2290. // specify at most one of these in a request.
  2291. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  2292. // Specifies the start time criteria that workflow executions must meet in order
  2293. // to be counted.
  2294. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure" required:"true"`
  2295. // If specified, only executions that have a tag that matches the filter are
  2296. // counted.
  2297. //
  2298. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  2299. // specify at most one of these in a request.
  2300. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  2301. // Specifies the type of the workflow executions to be counted.
  2302. //
  2303. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  2304. // specify at most one of these in a request.
  2305. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  2306. metadataCountOpenWorkflowExecutionsInput `json:"-" xml:"-"`
  2307. }
  2308. type metadataCountOpenWorkflowExecutionsInput struct {
  2309. SDKShapeTraits bool `type:"structure"`
  2310. }
  2311. // String returns the string representation
  2312. func (s CountOpenWorkflowExecutionsInput) String() string {
  2313. return awsutil.Prettify(s)
  2314. }
  2315. // GoString returns the string representation
  2316. func (s CountOpenWorkflowExecutionsInput) GoString() string {
  2317. return s.String()
  2318. }
  2319. type CountPendingActivityTasksInput struct {
  2320. // The name of the domain that contains the task list.
  2321. Domain *string `locationName:"domain" type:"string" required:"true"`
  2322. // The name of the task list.
  2323. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  2324. metadataCountPendingActivityTasksInput `json:"-" xml:"-"`
  2325. }
  2326. type metadataCountPendingActivityTasksInput struct {
  2327. SDKShapeTraits bool `type:"structure"`
  2328. }
  2329. // String returns the string representation
  2330. func (s CountPendingActivityTasksInput) String() string {
  2331. return awsutil.Prettify(s)
  2332. }
  2333. // GoString returns the string representation
  2334. func (s CountPendingActivityTasksInput) GoString() string {
  2335. return s.String()
  2336. }
  2337. type CountPendingDecisionTasksInput struct {
  2338. // The name of the domain that contains the task list.
  2339. Domain *string `locationName:"domain" type:"string" required:"true"`
  2340. // The name of the task list.
  2341. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  2342. metadataCountPendingDecisionTasksInput `json:"-" xml:"-"`
  2343. }
  2344. type metadataCountPendingDecisionTasksInput struct {
  2345. SDKShapeTraits bool `type:"structure"`
  2346. }
  2347. // String returns the string representation
  2348. func (s CountPendingDecisionTasksInput) String() string {
  2349. return awsutil.Prettify(s)
  2350. }
  2351. // GoString returns the string representation
  2352. func (s CountPendingDecisionTasksInput) GoString() string {
  2353. return s.String()
  2354. }
  2355. // Specifies a decision made by the decider. A decision can be one of these
  2356. // types:
  2357. //
  2358. // CancelTimer: cancels a previously started timer and records a TimerCanceled
  2359. // event in the history. CancelWorkflowExecution: closes the workflow execution
  2360. // and records a WorkflowExecutionCanceled event in the history. CompleteWorkflowExecution:
  2361. // closes the workflow execution and records a WorkflowExecutionCompleted event
  2362. // in the history . ContinueAsNewWorkflowExecution: closes the workflow execution
  2363. // and starts a new workflow execution of the same type using the same workflow
  2364. // ID and a unique run ID. A WorkflowExecutionContinuedAsNew event is recorded
  2365. // in the history. FailWorkflowExecution: closes the workflow execution and
  2366. // records a WorkflowExecutionFailed event in the history. RecordMarker: records
  2367. // a MarkerRecorded event in the history. Markers can be used for adding custom
  2368. // information in the history for instance to let deciders know that they do
  2369. // not need to look at the history beyond the marker event. RequestCancelActivityTask:
  2370. // attempts to cancel a previously scheduled activity task. If the activity
  2371. // task was scheduled but has not been assigned to a worker, then it will be
  2372. // canceled. If the activity task was already assigned to a worker, then the
  2373. // worker will be informed that cancellation has been requested in the response
  2374. // to RecordActivityTaskHeartbeat. RequestCancelExternalWorkflowExecution:
  2375. // requests that a request be made to cancel the specified external workflow
  2376. // execution and records a RequestCancelExternalWorkflowExecutionInitiated event
  2377. // in the history. ScheduleActivityTask: schedules an activity task. ScheduleLambdaFunction:
  2378. // schedules a AWS Lambda function. SignalExternalWorkflowExecution: requests
  2379. // a signal to be delivered to the specified external workflow execution and
  2380. // records a SignalExternalWorkflowExecutionInitiated event in the history.
  2381. // StartChildWorkflowExecution: requests that a child workflow execution be
  2382. // started and records a StartChildWorkflowExecutionInitiated event in the history.
  2383. // The child workflow execution is a separate workflow execution with its own
  2384. // history. StartTimer: starts a timer for this workflow execution and records
  2385. // a TimerStarted event in the history. This timer will fire after the specified
  2386. // delay and record a TimerFired event. Access Control
  2387. //
  2388. // If you grant permission to use RespondDecisionTaskCompleted, you can use
  2389. // IAM policies to express permissions for the list of decisions returned by
  2390. // this action as if they were members of the API. Treating decisions as a pseudo
  2391. // API maintains a uniform conceptual model and helps keep policies readable.
  2392. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2393. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2394. //
  2395. // Decision Failure
  2396. //
  2397. // Decisions can fail for several reasons
  2398. //
  2399. // The ordering of decisions should follow a logical flow. Some decisions
  2400. // might not make sense in the current context of the workflow execution and
  2401. // will therefore fail. A limit on your account was reached. The decision lacks
  2402. // sufficient permissions. One of the following events might be added to the
  2403. // history to indicate an error. The event attribute's cause parameter indicates
  2404. // the cause. If cause is set to OPERATION_NOT_PERMITTED, the decision failed
  2405. // because it lacked sufficient permissions. For details and example IAM policies,
  2406. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2407. //
  2408. // ScheduleActivityTaskFailed: a ScheduleActivityTask decision failed. This
  2409. // could happen if the activity type specified in the decision is not registered,
  2410. // is in a deprecated state, or the decision is not properly configured. ScheduleLambdaFunctionFailed:
  2411. // a ScheduleLambdaFunctionFailed decision failed. This could happen if the
  2412. // AWS Lambda function specified in the decision does not exist, or the AWS
  2413. // Lambda service's limits are exceeded. RequestCancelActivityTaskFailed: a
  2414. // RequestCancelActivityTask decision failed. This could happen if there is
  2415. // no open activity task with the specified activityId. StartTimerFailed: a
  2416. // StartTimer decision failed. This could happen if there is another open timer
  2417. // with the same timerId. CancelTimerFailed: a CancelTimer decision failed.
  2418. // This could happen if there is no open timer with the specified timerId.
  2419. // StartChildWorkflowExecutionFailed: a StartChildWorkflowExecution decision
  2420. // failed. This could happen if the workflow type specified is not registered,
  2421. // is deprecated, or the decision is not properly configured. SignalExternalWorkflowExecutionFailed:
  2422. // a SignalExternalWorkflowExecution decision failed. This could happen if the
  2423. // workflowID specified in the decision was incorrect. RequestCancelExternalWorkflowExecutionFailed:
  2424. // a RequestCancelExternalWorkflowExecution decision failed. This could happen
  2425. // if the workflowID specified in the decision was incorrect. CancelWorkflowExecutionFailed:
  2426. // a CancelWorkflowExecution decision failed. This could happen if there is
  2427. // an unhandled decision task pending in the workflow execution. CompleteWorkflowExecutionFailed:
  2428. // a CompleteWorkflowExecution decision failed. This could happen if there is
  2429. // an unhandled decision task pending in the workflow execution. ContinueAsNewWorkflowExecutionFailed:
  2430. // a ContinueAsNewWorkflowExecution decision failed. This could happen if there
  2431. // is an unhandled decision task pending in the workflow execution or the ContinueAsNewWorkflowExecution
  2432. // decision was not configured correctly. FailWorkflowExecutionFailed: a FailWorkflowExecution
  2433. // decision failed. This could happen if there is an unhandled decision task
  2434. // pending in the workflow execution. The preceding error events might occur
  2435. // due to an error in the decider logic, which might put the workflow execution
  2436. // in an unstable state The cause field in the event structure for the error
  2437. // event indicates the cause of the error.
  2438. //
  2439. // A workflow execution may be closed by the decider by returning one of the
  2440. // following decisions when completing a decision task: CompleteWorkflowExecution,
  2441. // FailWorkflowExecution, CancelWorkflowExecution and ContinueAsNewWorkflowExecution.
  2442. // An UnhandledDecision fault will be returned if a workflow closing decision
  2443. // is specified and a signal or activity event had been added to the history
  2444. // while the decision task was being performed by the decider. Unlike the above
  2445. // situations which are logic issues, this fault is always possible because
  2446. // of race conditions in a distributed system. The right action here is to call
  2447. // RespondDecisionTaskCompleted without any decisions. This would result in
  2448. // another decision task with these new events included in the history. The
  2449. // decider should handle the new events and may decide to close the workflow
  2450. // execution. How to code a decision
  2451. //
  2452. // You code a decision by first setting the decision type field to one of the
  2453. // above decision values, and then set the corresponding attributes field shown
  2454. // below:
  2455. //
  2456. // ScheduleActivityTaskDecisionAttributes ScheduleLambdaFunctionDecisionAttributes
  2457. // RequestCancelActivityTaskDecisionAttributes CompleteWorkflowExecutionDecisionAttributes
  2458. // FailWorkflowExecutionDecisionAttributes CancelWorkflowExecutionDecisionAttributes
  2459. // ContinueAsNewWorkflowExecutionDecisionAttributes RecordMarkerDecisionAttributes
  2460. // StartTimerDecisionAttributes CancelTimerDecisionAttributes SignalExternalWorkflowExecutionDecisionAttributes
  2461. // RequestCancelExternalWorkflowExecutionDecisionAttributes StartChildWorkflowExecutionDecisionAttributes
  2462. type Decision struct {
  2463. // Provides details of the CancelTimer decision. It is not set for other decision
  2464. // types.
  2465. CancelTimerDecisionAttributes *CancelTimerDecisionAttributes `locationName:"cancelTimerDecisionAttributes" type:"structure"`
  2466. // Provides details of the CancelWorkflowExecution decision. It is not set for
  2467. // other decision types.
  2468. CancelWorkflowExecutionDecisionAttributes *CancelWorkflowExecutionDecisionAttributes `locationName:"cancelWorkflowExecutionDecisionAttributes" type:"structure"`
  2469. // Provides details of the CompleteWorkflowExecution decision. It is not set
  2470. // for other decision types.
  2471. CompleteWorkflowExecutionDecisionAttributes *CompleteWorkflowExecutionDecisionAttributes `locationName:"completeWorkflowExecutionDecisionAttributes" type:"structure"`
  2472. // Provides details of the ContinueAsNewWorkflowExecution decision. It is not
  2473. // set for other decision types.
  2474. ContinueAsNewWorkflowExecutionDecisionAttributes *ContinueAsNewWorkflowExecutionDecisionAttributes `locationName:"continueAsNewWorkflowExecutionDecisionAttributes" type:"structure"`
  2475. // Specifies the type of the decision.
  2476. DecisionType *string `locationName:"decisionType" type:"string" required:"true" enum:"DecisionType"`
  2477. // Provides details of the FailWorkflowExecution decision. It is not set for
  2478. // other decision types.
  2479. FailWorkflowExecutionDecisionAttributes *FailWorkflowExecutionDecisionAttributes `locationName:"failWorkflowExecutionDecisionAttributes" type:"structure"`
  2480. // Provides details of the RecordMarker decision. It is not set for other decision
  2481. // types.
  2482. RecordMarkerDecisionAttributes *RecordMarkerDecisionAttributes `locationName:"recordMarkerDecisionAttributes" type:"structure"`
  2483. // Provides details of the RequestCancelActivityTask decision. It is not set
  2484. // for other decision types.
  2485. RequestCancelActivityTaskDecisionAttributes *RequestCancelActivityTaskDecisionAttributes `locationName:"requestCancelActivityTaskDecisionAttributes" type:"structure"`
  2486. // Provides details of the RequestCancelExternalWorkflowExecution decision.
  2487. // It is not set for other decision types.
  2488. RequestCancelExternalWorkflowExecutionDecisionAttributes *RequestCancelExternalWorkflowExecutionDecisionAttributes `locationName:"requestCancelExternalWorkflowExecutionDecisionAttributes" type:"structure"`
  2489. // Provides details of the ScheduleActivityTask decision. It is not set for
  2490. // other decision types.
  2491. ScheduleActivityTaskDecisionAttributes *ScheduleActivityTaskDecisionAttributes `locationName:"scheduleActivityTaskDecisionAttributes" type:"structure"`
  2492. // Provides details of the ScheduleLambdaFunction decision.
  2493. //
  2494. // Access Control
  2495. //
  2496. // You can use IAM policies to control this decision's access to Amazon SWF
  2497. // resources as follows:
  2498. //
  2499. // Use a Resource element with the domain name to limit the action to only
  2500. // specified domains. Use an Action element to allow or deny permission to call
  2501. // this action. Constrain the following parameters by using a Condition element
  2502. // with the appropriate keys. activityType.name: String constraint. The key
  2503. // is swf:activityType.name. activityType.version: String constraint. The key
  2504. // is swf:activityType.version. taskList: String constraint. The key is swf:taskList.name.
  2505. // If the caller does not have sufficient permissions to invoke the action,
  2506. // or the parameter values fall outside the specified constraints, the action
  2507. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  2508. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  2509. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  2510. ScheduleLambdaFunctionDecisionAttributes *ScheduleLambdaFunctionDecisionAttributes `locationName:"scheduleLambdaFunctionDecisionAttributes" type:"structure"`
  2511. // Provides details of the SignalExternalWorkflowExecution decision. It is not
  2512. // set for other decision types.
  2513. SignalExternalWorkflowExecutionDecisionAttributes *SignalExternalWorkflowExecutionDecisionAttributes `locationName:"signalExternalWorkflowExecutionDecisionAttributes" type:"structure"`
  2514. // Provides details of the StartChildWorkflowExecution decision. It is not set
  2515. // for other decision types.
  2516. StartChildWorkflowExecutionDecisionAttributes *StartChildWorkflowExecutionDecisionAttributes `locationName:"startChildWorkflowExecutionDecisionAttributes" type:"structure"`
  2517. // Provides details of the StartTimer decision. It is not set for other decision
  2518. // types.
  2519. StartTimerDecisionAttributes *StartTimerDecisionAttributes `locationName:"startTimerDecisionAttributes" type:"structure"`
  2520. metadataDecision `json:"-" xml:"-"`
  2521. }
  2522. type metadataDecision struct {
  2523. SDKShapeTraits bool `type:"structure"`
  2524. }
  2525. // String returns the string representation
  2526. func (s Decision) String() string {
  2527. return awsutil.Prettify(s)
  2528. }
  2529. // GoString returns the string representation
  2530. func (s Decision) GoString() string {
  2531. return s.String()
  2532. }
  2533. // Provides details of the DecisionTaskCompleted event.
  2534. type DecisionTaskCompletedEventAttributes struct {
  2535. // User defined context for the workflow execution.
  2536. ExecutionContext *string `locationName:"executionContext" type:"string"`
  2537. // The ID of the DecisionTaskScheduled event that was recorded when this decision
  2538. // task was scheduled. This information can be useful for diagnosing problems
  2539. // by tracing back the chain of events leading up to this event.
  2540. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  2541. // The ID of the DecisionTaskStarted event recorded when this decision task
  2542. // was started. This information can be useful for diagnosing problems by tracing
  2543. // back the chain of events leading up to this event.
  2544. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  2545. metadataDecisionTaskCompletedEventAttributes `json:"-" xml:"-"`
  2546. }
  2547. type metadataDecisionTaskCompletedEventAttributes struct {
  2548. SDKShapeTraits bool `type:"structure"`
  2549. }
  2550. // String returns the string representation
  2551. func (s DecisionTaskCompletedEventAttributes) String() string {
  2552. return awsutil.Prettify(s)
  2553. }
  2554. // GoString returns the string representation
  2555. func (s DecisionTaskCompletedEventAttributes) GoString() string {
  2556. return s.String()
  2557. }
  2558. // Provides details about the DecisionTaskScheduled event.
  2559. type DecisionTaskScheduledEventAttributes struct {
  2560. // The maximum duration for this decision task. The task is considered timed
  2561. // out if it does not completed within this duration.
  2562. //
  2563. // The duration is specified in seconds; an integer greater than or equal to
  2564. // 0. The value "NONE" can be used to specify unlimited duration.
  2565. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  2566. // The name of the task list in which the decision task was scheduled.
  2567. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  2568. // Optional. A task priority that, if set, specifies the priority for this decision
  2569. // task. Valid values are integers that range from Java's Integer.MIN_VALUE
  2570. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  2571. // higher priority.
  2572. //
  2573. // For more information about setting task priority, see Setting Task Priority
  2574. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  2575. // in the Amazon Simple Workflow Developer Guide.
  2576. TaskPriority *string `locationName:"taskPriority" type:"string"`
  2577. metadataDecisionTaskScheduledEventAttributes `json:"-" xml:"-"`
  2578. }
  2579. type metadataDecisionTaskScheduledEventAttributes struct {
  2580. SDKShapeTraits bool `type:"structure"`
  2581. }
  2582. // String returns the string representation
  2583. func (s DecisionTaskScheduledEventAttributes) String() string {
  2584. return awsutil.Prettify(s)
  2585. }
  2586. // GoString returns the string representation
  2587. func (s DecisionTaskScheduledEventAttributes) GoString() string {
  2588. return s.String()
  2589. }
  2590. // Provides details of the DecisionTaskStarted event.
  2591. type DecisionTaskStartedEventAttributes struct {
  2592. // Identity of the decider making the request. This enables diagnostic tracing
  2593. // when problems arise. The form of this identity is user defined.
  2594. Identity *string `locationName:"identity" type:"string"`
  2595. // The ID of the DecisionTaskScheduled event that was recorded when this decision
  2596. // task was scheduled. This information can be useful for diagnosing problems
  2597. // by tracing back the chain of events leading up to this event.
  2598. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  2599. metadataDecisionTaskStartedEventAttributes `json:"-" xml:"-"`
  2600. }
  2601. type metadataDecisionTaskStartedEventAttributes struct {
  2602. SDKShapeTraits bool `type:"structure"`
  2603. }
  2604. // String returns the string representation
  2605. func (s DecisionTaskStartedEventAttributes) String() string {
  2606. return awsutil.Prettify(s)
  2607. }
  2608. // GoString returns the string representation
  2609. func (s DecisionTaskStartedEventAttributes) GoString() string {
  2610. return s.String()
  2611. }
  2612. // Provides details of the DecisionTaskTimedOut event.
  2613. type DecisionTaskTimedOutEventAttributes struct {
  2614. // The ID of the DecisionTaskScheduled event that was recorded when this decision
  2615. // task was scheduled. This information can be useful for diagnosing problems
  2616. // by tracing back the chain of events leading up to this event.
  2617. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  2618. // The ID of the DecisionTaskStarted event recorded when this decision task
  2619. // was started. This information can be useful for diagnosing problems by tracing
  2620. // back the chain of events leading up to this event.
  2621. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  2622. // The type of timeout that expired before the decision task could be completed.
  2623. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"DecisionTaskTimeoutType"`
  2624. metadataDecisionTaskTimedOutEventAttributes `json:"-" xml:"-"`
  2625. }
  2626. type metadataDecisionTaskTimedOutEventAttributes struct {
  2627. SDKShapeTraits bool `type:"structure"`
  2628. }
  2629. // String returns the string representation
  2630. func (s DecisionTaskTimedOutEventAttributes) String() string {
  2631. return awsutil.Prettify(s)
  2632. }
  2633. // GoString returns the string representation
  2634. func (s DecisionTaskTimedOutEventAttributes) GoString() string {
  2635. return s.String()
  2636. }
  2637. type DeprecateActivityTypeInput struct {
  2638. // The activity type to deprecate.
  2639. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  2640. // The name of the domain in which the activity type is registered.
  2641. Domain *string `locationName:"domain" type:"string" required:"true"`
  2642. metadataDeprecateActivityTypeInput `json:"-" xml:"-"`
  2643. }
  2644. type metadataDeprecateActivityTypeInput struct {
  2645. SDKShapeTraits bool `type:"structure"`
  2646. }
  2647. // String returns the string representation
  2648. func (s DeprecateActivityTypeInput) String() string {
  2649. return awsutil.Prettify(s)
  2650. }
  2651. // GoString returns the string representation
  2652. func (s DeprecateActivityTypeInput) GoString() string {
  2653. return s.String()
  2654. }
  2655. type DeprecateActivityTypeOutput struct {
  2656. metadataDeprecateActivityTypeOutput `json:"-" xml:"-"`
  2657. }
  2658. type metadataDeprecateActivityTypeOutput struct {
  2659. SDKShapeTraits bool `type:"structure"`
  2660. }
  2661. // String returns the string representation
  2662. func (s DeprecateActivityTypeOutput) String() string {
  2663. return awsutil.Prettify(s)
  2664. }
  2665. // GoString returns the string representation
  2666. func (s DeprecateActivityTypeOutput) GoString() string {
  2667. return s.String()
  2668. }
  2669. type DeprecateDomainInput struct {
  2670. // The name of the domain to deprecate.
  2671. Name *string `locationName:"name" type:"string" required:"true"`
  2672. metadataDeprecateDomainInput `json:"-" xml:"-"`
  2673. }
  2674. type metadataDeprecateDomainInput struct {
  2675. SDKShapeTraits bool `type:"structure"`
  2676. }
  2677. // String returns the string representation
  2678. func (s DeprecateDomainInput) String() string {
  2679. return awsutil.Prettify(s)
  2680. }
  2681. // GoString returns the string representation
  2682. func (s DeprecateDomainInput) GoString() string {
  2683. return s.String()
  2684. }
  2685. type DeprecateDomainOutput struct {
  2686. metadataDeprecateDomainOutput `json:"-" xml:"-"`
  2687. }
  2688. type metadataDeprecateDomainOutput struct {
  2689. SDKShapeTraits bool `type:"structure"`
  2690. }
  2691. // String returns the string representation
  2692. func (s DeprecateDomainOutput) String() string {
  2693. return awsutil.Prettify(s)
  2694. }
  2695. // GoString returns the string representation
  2696. func (s DeprecateDomainOutput) GoString() string {
  2697. return s.String()
  2698. }
  2699. type DeprecateWorkflowTypeInput struct {
  2700. // The name of the domain in which the workflow type is registered.
  2701. Domain *string `locationName:"domain" type:"string" required:"true"`
  2702. // The workflow type to deprecate.
  2703. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  2704. metadataDeprecateWorkflowTypeInput `json:"-" xml:"-"`
  2705. }
  2706. type metadataDeprecateWorkflowTypeInput struct {
  2707. SDKShapeTraits bool `type:"structure"`
  2708. }
  2709. // String returns the string representation
  2710. func (s DeprecateWorkflowTypeInput) String() string {
  2711. return awsutil.Prettify(s)
  2712. }
  2713. // GoString returns the string representation
  2714. func (s DeprecateWorkflowTypeInput) GoString() string {
  2715. return s.String()
  2716. }
  2717. type DeprecateWorkflowTypeOutput struct {
  2718. metadataDeprecateWorkflowTypeOutput `json:"-" xml:"-"`
  2719. }
  2720. type metadataDeprecateWorkflowTypeOutput struct {
  2721. SDKShapeTraits bool `type:"structure"`
  2722. }
  2723. // String returns the string representation
  2724. func (s DeprecateWorkflowTypeOutput) String() string {
  2725. return awsutil.Prettify(s)
  2726. }
  2727. // GoString returns the string representation
  2728. func (s DeprecateWorkflowTypeOutput) GoString() string {
  2729. return s.String()
  2730. }
  2731. type DescribeActivityTypeInput struct {
  2732. // The activity type to get information about. Activity types are identified
  2733. // by the name and version that were supplied when the activity was registered.
  2734. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  2735. // The name of the domain in which the activity type is registered.
  2736. Domain *string `locationName:"domain" type:"string" required:"true"`
  2737. metadataDescribeActivityTypeInput `json:"-" xml:"-"`
  2738. }
  2739. type metadataDescribeActivityTypeInput struct {
  2740. SDKShapeTraits bool `type:"structure"`
  2741. }
  2742. // String returns the string representation
  2743. func (s DescribeActivityTypeInput) String() string {
  2744. return awsutil.Prettify(s)
  2745. }
  2746. // GoString returns the string representation
  2747. func (s DescribeActivityTypeInput) GoString() string {
  2748. return s.String()
  2749. }
  2750. // Detailed information about an activity type.
  2751. type DescribeActivityTypeOutput struct {
  2752. // The configuration settings registered with the activity type.
  2753. Configuration *ActivityTypeConfiguration `locationName:"configuration" type:"structure" required:"true"`
  2754. // General information about the activity type.
  2755. //
  2756. // The status of activity type (returned in the ActivityTypeInfo structure)
  2757. // can be one of the following.
  2758. //
  2759. // REGISTERED: The type is registered and available. Workers supporting this
  2760. // type should be running. DEPRECATED: The type was deprecated using DeprecateActivityType,
  2761. // but is still in use. You should keep workers supporting this type running.
  2762. // You cannot create new tasks of this type.
  2763. TypeInfo *ActivityTypeInfo `locationName:"typeInfo" type:"structure" required:"true"`
  2764. metadataDescribeActivityTypeOutput `json:"-" xml:"-"`
  2765. }
  2766. type metadataDescribeActivityTypeOutput struct {
  2767. SDKShapeTraits bool `type:"structure"`
  2768. }
  2769. // String returns the string representation
  2770. func (s DescribeActivityTypeOutput) String() string {
  2771. return awsutil.Prettify(s)
  2772. }
  2773. // GoString returns the string representation
  2774. func (s DescribeActivityTypeOutput) GoString() string {
  2775. return s.String()
  2776. }
  2777. type DescribeDomainInput struct {
  2778. // The name of the domain to describe.
  2779. Name *string `locationName:"name" type:"string" required:"true"`
  2780. metadataDescribeDomainInput `json:"-" xml:"-"`
  2781. }
  2782. type metadataDescribeDomainInput struct {
  2783. SDKShapeTraits bool `type:"structure"`
  2784. }
  2785. // String returns the string representation
  2786. func (s DescribeDomainInput) String() string {
  2787. return awsutil.Prettify(s)
  2788. }
  2789. // GoString returns the string representation
  2790. func (s DescribeDomainInput) GoString() string {
  2791. return s.String()
  2792. }
  2793. // Contains details of a domain.
  2794. type DescribeDomainOutput struct {
  2795. // Contains the configuration settings of a domain.
  2796. Configuration *DomainConfiguration `locationName:"configuration" type:"structure" required:"true"`
  2797. // Contains general information about a domain.
  2798. DomainInfo *DomainInfo `locationName:"domainInfo" type:"structure" required:"true"`
  2799. metadataDescribeDomainOutput `json:"-" xml:"-"`
  2800. }
  2801. type metadataDescribeDomainOutput struct {
  2802. SDKShapeTraits bool `type:"structure"`
  2803. }
  2804. // String returns the string representation
  2805. func (s DescribeDomainOutput) String() string {
  2806. return awsutil.Prettify(s)
  2807. }
  2808. // GoString returns the string representation
  2809. func (s DescribeDomainOutput) GoString() string {
  2810. return s.String()
  2811. }
  2812. type DescribeWorkflowExecutionInput struct {
  2813. // The name of the domain containing the workflow execution.
  2814. Domain *string `locationName:"domain" type:"string" required:"true"`
  2815. // The workflow execution to describe.
  2816. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"`
  2817. metadataDescribeWorkflowExecutionInput `json:"-" xml:"-"`
  2818. }
  2819. type metadataDescribeWorkflowExecutionInput struct {
  2820. SDKShapeTraits bool `type:"structure"`
  2821. }
  2822. // String returns the string representation
  2823. func (s DescribeWorkflowExecutionInput) String() string {
  2824. return awsutil.Prettify(s)
  2825. }
  2826. // GoString returns the string representation
  2827. func (s DescribeWorkflowExecutionInput) GoString() string {
  2828. return s.String()
  2829. }
  2830. // Contains details about a workflow execution.
  2831. type DescribeWorkflowExecutionOutput struct {
  2832. // The configuration settings for this workflow execution including timeout
  2833. // values, tasklist etc.
  2834. ExecutionConfiguration *WorkflowExecutionConfiguration `locationName:"executionConfiguration" type:"structure" required:"true"`
  2835. // Information about the workflow execution.
  2836. ExecutionInfo *WorkflowExecutionInfo `locationName:"executionInfo" type:"structure" required:"true"`
  2837. // The time when the last activity task was scheduled for this workflow execution.
  2838. // You can use this information to determine if the workflow has not made progress
  2839. // for an unusually long period of time and might require a corrective action.
  2840. LatestActivityTaskTimestamp *time.Time `locationName:"latestActivityTaskTimestamp" type:"timestamp" timestampFormat:"unix"`
  2841. // The latest executionContext provided by the decider for this workflow execution.
  2842. // A decider can provide an executionContext (a free-form string) when closing
  2843. // a decision task using RespondDecisionTaskCompleted.
  2844. LatestExecutionContext *string `locationName:"latestExecutionContext" type:"string"`
  2845. // The number of tasks for this workflow execution. This includes open and closed
  2846. // tasks of all types.
  2847. OpenCounts *WorkflowExecutionOpenCounts `locationName:"openCounts" type:"structure" required:"true"`
  2848. metadataDescribeWorkflowExecutionOutput `json:"-" xml:"-"`
  2849. }
  2850. type metadataDescribeWorkflowExecutionOutput struct {
  2851. SDKShapeTraits bool `type:"structure"`
  2852. }
  2853. // String returns the string representation
  2854. func (s DescribeWorkflowExecutionOutput) String() string {
  2855. return awsutil.Prettify(s)
  2856. }
  2857. // GoString returns the string representation
  2858. func (s DescribeWorkflowExecutionOutput) GoString() string {
  2859. return s.String()
  2860. }
  2861. type DescribeWorkflowTypeInput struct {
  2862. // The name of the domain in which this workflow type is registered.
  2863. Domain *string `locationName:"domain" type:"string" required:"true"`
  2864. // The workflow type to describe.
  2865. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  2866. metadataDescribeWorkflowTypeInput `json:"-" xml:"-"`
  2867. }
  2868. type metadataDescribeWorkflowTypeInput struct {
  2869. SDKShapeTraits bool `type:"structure"`
  2870. }
  2871. // String returns the string representation
  2872. func (s DescribeWorkflowTypeInput) String() string {
  2873. return awsutil.Prettify(s)
  2874. }
  2875. // GoString returns the string representation
  2876. func (s DescribeWorkflowTypeInput) GoString() string {
  2877. return s.String()
  2878. }
  2879. // Contains details about a workflow type.
  2880. type DescribeWorkflowTypeOutput struct {
  2881. // Configuration settings of the workflow type registered through RegisterWorkflowType
  2882. Configuration *WorkflowTypeConfiguration `locationName:"configuration" type:"structure" required:"true"`
  2883. // General information about the workflow type.
  2884. //
  2885. // The status of the workflow type (returned in the WorkflowTypeInfo structure)
  2886. // can be one of the following.
  2887. //
  2888. // REGISTERED: The type is registered and available. Workers supporting this
  2889. // type should be running. DEPRECATED: The type was deprecated using DeprecateWorkflowType,
  2890. // but is still in use. You should keep workers supporting this type running.
  2891. // You cannot create new workflow executions of this type.
  2892. TypeInfo *WorkflowTypeInfo `locationName:"typeInfo" type:"structure" required:"true"`
  2893. metadataDescribeWorkflowTypeOutput `json:"-" xml:"-"`
  2894. }
  2895. type metadataDescribeWorkflowTypeOutput struct {
  2896. SDKShapeTraits bool `type:"structure"`
  2897. }
  2898. // String returns the string representation
  2899. func (s DescribeWorkflowTypeOutput) String() string {
  2900. return awsutil.Prettify(s)
  2901. }
  2902. // GoString returns the string representation
  2903. func (s DescribeWorkflowTypeOutput) GoString() string {
  2904. return s.String()
  2905. }
  2906. // Contains the configuration settings of a domain.
  2907. type DomainConfiguration struct {
  2908. // The retention period for workflow executions in this domain.
  2909. WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" type:"string" required:"true"`
  2910. metadataDomainConfiguration `json:"-" xml:"-"`
  2911. }
  2912. type metadataDomainConfiguration struct {
  2913. SDKShapeTraits bool `type:"structure"`
  2914. }
  2915. // String returns the string representation
  2916. func (s DomainConfiguration) String() string {
  2917. return awsutil.Prettify(s)
  2918. }
  2919. // GoString returns the string representation
  2920. func (s DomainConfiguration) GoString() string {
  2921. return s.String()
  2922. }
  2923. // Contains general information about a domain.
  2924. type DomainInfo struct {
  2925. // The description of the domain provided through RegisterDomain.
  2926. Description *string `locationName:"description" type:"string"`
  2927. // The name of the domain. This name is unique within the account.
  2928. Name *string `locationName:"name" type:"string" required:"true"`
  2929. // The status of the domain:
  2930. //
  2931. // REGISTERED: The domain is properly registered and available. You can use
  2932. // this domain for registering types and creating new workflow executions.
  2933. // DEPRECATED: The domain was deprecated using DeprecateDomain, but is still
  2934. // in use. You should not create new workflow executions in this domain.
  2935. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"`
  2936. metadataDomainInfo `json:"-" xml:"-"`
  2937. }
  2938. type metadataDomainInfo struct {
  2939. SDKShapeTraits bool `type:"structure"`
  2940. }
  2941. // String returns the string representation
  2942. func (s DomainInfo) String() string {
  2943. return awsutil.Prettify(s)
  2944. }
  2945. // GoString returns the string representation
  2946. func (s DomainInfo) GoString() string {
  2947. return s.String()
  2948. }
  2949. // Used to filter the workflow executions in visibility APIs by various time-based
  2950. // rules. Each parameter, if specified, defines a rule that must be satisfied
  2951. // by each returned query result. The parameter values are in the Unix Time
  2952. // format (https://en.wikipedia.org/wiki/Unix_time). For example: "oldestDate":
  2953. // 1325376070.
  2954. type ExecutionTimeFilter struct {
  2955. // Specifies the latest start or close date and time to return.
  2956. LatestDate *time.Time `locationName:"latestDate" type:"timestamp" timestampFormat:"unix"`
  2957. // Specifies the oldest start or close date and time to return.
  2958. OldestDate *time.Time `locationName:"oldestDate" type:"timestamp" timestampFormat:"unix" required:"true"`
  2959. metadataExecutionTimeFilter `json:"-" xml:"-"`
  2960. }
  2961. type metadataExecutionTimeFilter struct {
  2962. SDKShapeTraits bool `type:"structure"`
  2963. }
  2964. // String returns the string representation
  2965. func (s ExecutionTimeFilter) String() string {
  2966. return awsutil.Prettify(s)
  2967. }
  2968. // GoString returns the string representation
  2969. func (s ExecutionTimeFilter) GoString() string {
  2970. return s.String()
  2971. }
  2972. // Provides details of the ExternalWorkflowExecutionCancelRequested event.
  2973. type ExternalWorkflowExecutionCancelRequestedEventAttributes struct {
  2974. // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding
  2975. // to the RequestCancelExternalWorkflowExecution decision to cancel this external
  2976. // workflow execution. This information can be useful for diagnosing problems
  2977. // by tracing back the chain of events leading up to this event.
  2978. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  2979. // The external workflow execution to which the cancellation request was delivered.
  2980. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  2981. metadataExternalWorkflowExecutionCancelRequestedEventAttributes `json:"-" xml:"-"`
  2982. }
  2983. type metadataExternalWorkflowExecutionCancelRequestedEventAttributes struct {
  2984. SDKShapeTraits bool `type:"structure"`
  2985. }
  2986. // String returns the string representation
  2987. func (s ExternalWorkflowExecutionCancelRequestedEventAttributes) String() string {
  2988. return awsutil.Prettify(s)
  2989. }
  2990. // GoString returns the string representation
  2991. func (s ExternalWorkflowExecutionCancelRequestedEventAttributes) GoString() string {
  2992. return s.String()
  2993. }
  2994. // Provides details of the ExternalWorkflowExecutionSignaled event.
  2995. type ExternalWorkflowExecutionSignaledEventAttributes struct {
  2996. // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding
  2997. // to the SignalExternalWorkflowExecution decision to request this signal. This
  2998. // information can be useful for diagnosing problems by tracing back the chain
  2999. // of events leading up to this event.
  3000. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  3001. // The external workflow execution that the signal was delivered to.
  3002. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3003. metadataExternalWorkflowExecutionSignaledEventAttributes `json:"-" xml:"-"`
  3004. }
  3005. type metadataExternalWorkflowExecutionSignaledEventAttributes struct {
  3006. SDKShapeTraits bool `type:"structure"`
  3007. }
  3008. // String returns the string representation
  3009. func (s ExternalWorkflowExecutionSignaledEventAttributes) String() string {
  3010. return awsutil.Prettify(s)
  3011. }
  3012. // GoString returns the string representation
  3013. func (s ExternalWorkflowExecutionSignaledEventAttributes) GoString() string {
  3014. return s.String()
  3015. }
  3016. // Provides details of the FailWorkflowExecution decision.
  3017. //
  3018. // Access Control
  3019. //
  3020. // You can use IAM policies to control this decision's access to Amazon SWF
  3021. // resources as follows:
  3022. //
  3023. // Use a Resource element with the domain name to limit the action to only
  3024. // specified domains. Use an Action element to allow or deny permission to call
  3025. // this action. You cannot use an IAM policy to constrain this action's parameters.
  3026. // If the caller does not have sufficient permissions to invoke the action,
  3027. // or the parameter values fall outside the specified constraints, the action
  3028. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  3029. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  3030. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3031. type FailWorkflowExecutionDecisionAttributes struct {
  3032. // Optional. Details of the failure.
  3033. Details *string `locationName:"details" type:"string"`
  3034. // A descriptive reason for the failure that may help in diagnostics.
  3035. Reason *string `locationName:"reason" type:"string"`
  3036. metadataFailWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  3037. }
  3038. type metadataFailWorkflowExecutionDecisionAttributes struct {
  3039. SDKShapeTraits bool `type:"structure"`
  3040. }
  3041. // String returns the string representation
  3042. func (s FailWorkflowExecutionDecisionAttributes) String() string {
  3043. return awsutil.Prettify(s)
  3044. }
  3045. // GoString returns the string representation
  3046. func (s FailWorkflowExecutionDecisionAttributes) GoString() string {
  3047. return s.String()
  3048. }
  3049. // Provides details of the FailWorkflowExecutionFailed event.
  3050. type FailWorkflowExecutionFailedEventAttributes struct {
  3051. // The cause of the failure. This information is generated by the system and
  3052. // can be useful for diagnostic purposes.
  3053. //
  3054. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  3055. // it lacked sufficient permissions. For details and example IAM policies, see
  3056. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  3057. Cause *string `locationName:"cause" type:"string" required:"true" enum:"FailWorkflowExecutionFailedCause"`
  3058. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3059. // that resulted in the FailWorkflowExecution decision to fail this execution.
  3060. // This information can be useful for diagnosing problems by tracing back the
  3061. // chain of events leading up to this event.
  3062. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3063. metadataFailWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  3064. }
  3065. type metadataFailWorkflowExecutionFailedEventAttributes struct {
  3066. SDKShapeTraits bool `type:"structure"`
  3067. }
  3068. // String returns the string representation
  3069. func (s FailWorkflowExecutionFailedEventAttributes) String() string {
  3070. return awsutil.Prettify(s)
  3071. }
  3072. // GoString returns the string representation
  3073. func (s FailWorkflowExecutionFailedEventAttributes) GoString() string {
  3074. return s.String()
  3075. }
  3076. type GetWorkflowExecutionHistoryInput struct {
  3077. // The name of the domain containing the workflow execution.
  3078. Domain *string `locationName:"domain" type:"string" required:"true"`
  3079. // Specifies the workflow execution for which to return the history.
  3080. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"`
  3081. // The maximum number of results that will be returned per call. nextPageToken
  3082. // can be used to obtain futher pages of results. The default is 1000, which
  3083. // is the maximum allowed page size. You can, however, specify a page size smaller
  3084. // than the maximum.
  3085. //
  3086. // This is an upper limit only; the actual number of results returned per call
  3087. // may be fewer than the specified maximum.
  3088. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3089. // If a NextPageToken was returned by a previous call, there are more results
  3090. // available. To retrieve the next page of results, make the call again using
  3091. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3092. //
  3093. // The configured maximumPageSize determines how many results can be returned
  3094. // in a single call.
  3095. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3096. // When set to true, returns the events in reverse order. By default the results
  3097. // are returned in ascending order of the eventTimeStamp of the events.
  3098. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3099. metadataGetWorkflowExecutionHistoryInput `json:"-" xml:"-"`
  3100. }
  3101. type metadataGetWorkflowExecutionHistoryInput struct {
  3102. SDKShapeTraits bool `type:"structure"`
  3103. }
  3104. // String returns the string representation
  3105. func (s GetWorkflowExecutionHistoryInput) String() string {
  3106. return awsutil.Prettify(s)
  3107. }
  3108. // GoString returns the string representation
  3109. func (s GetWorkflowExecutionHistoryInput) GoString() string {
  3110. return s.String()
  3111. }
  3112. // Paginated representation of a workflow history for a workflow execution.
  3113. // This is the up to date, complete and authoritative record of the events related
  3114. // to all tasks and events in the life of the workflow execution.
  3115. type GetWorkflowExecutionHistoryOutput struct {
  3116. // The list of history events.
  3117. Events []*HistoryEvent `locationName:"events" type:"list" required:"true"`
  3118. // If a NextPageToken was returned by a previous call, there are more results
  3119. // available. To retrieve the next page of results, make the call again using
  3120. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3121. //
  3122. // The configured maximumPageSize determines how many results can be returned
  3123. // in a single call.
  3124. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3125. metadataGetWorkflowExecutionHistoryOutput `json:"-" xml:"-"`
  3126. }
  3127. type metadataGetWorkflowExecutionHistoryOutput struct {
  3128. SDKShapeTraits bool `type:"structure"`
  3129. }
  3130. // String returns the string representation
  3131. func (s GetWorkflowExecutionHistoryOutput) String() string {
  3132. return awsutil.Prettify(s)
  3133. }
  3134. // GoString returns the string representation
  3135. func (s GetWorkflowExecutionHistoryOutput) GoString() string {
  3136. return s.String()
  3137. }
  3138. // Event within a workflow execution. A history event can be one of these types:
  3139. //
  3140. // WorkflowExecutionStarted: The workflow execution was started. WorkflowExecutionCompleted:
  3141. // The workflow execution was closed due to successful completion. WorkflowExecutionFailed:
  3142. // The workflow execution closed due to a failure. WorkflowExecutionTimedOut:
  3143. // The workflow execution was closed because a time out was exceeded. WorkflowExecutionCanceled:
  3144. // The workflow execution was successfully canceled and closed. WorkflowExecutionTerminated:
  3145. // The workflow execution was terminated. WorkflowExecutionContinuedAsNew:
  3146. // The workflow execution was closed and a new execution of the same type was
  3147. // created with the same workflowId. WorkflowExecutionCancelRequested: A request
  3148. // to cancel this workflow execution was made. DecisionTaskScheduled: A decision
  3149. // task was scheduled for the workflow execution. DecisionTaskStarted: The
  3150. // decision task was dispatched to a decider. DecisionTaskCompleted: The decider
  3151. // successfully completed a decision task by calling RespondDecisionTaskCompleted.
  3152. // DecisionTaskTimedOut: The decision task timed out. ActivityTaskScheduled:
  3153. // An activity task was scheduled for execution. ScheduleActivityTaskFailed:
  3154. // Failed to process ScheduleActivityTask decision. This happens when the decision
  3155. // is not configured properly, for example the activity type specified is not
  3156. // registered. ActivityTaskStarted: The scheduled activity task was dispatched
  3157. // to a worker. ActivityTaskCompleted: An activity worker successfully completed
  3158. // an activity task by calling RespondActivityTaskCompleted. ActivityTaskFailed:
  3159. // An activity worker failed an activity task by calling RespondActivityTaskFailed.
  3160. // ActivityTaskTimedOut: The activity task timed out. ActivityTaskCanceled:
  3161. // The activity task was successfully canceled. ActivityTaskCancelRequested:
  3162. // A RequestCancelActivityTask decision was received by the system. RequestCancelActivityTaskFailed:
  3163. // Failed to process RequestCancelActivityTask decision. This happens when the
  3164. // decision is not configured properly. WorkflowExecutionSignaled: An external
  3165. // signal was received for the workflow execution. MarkerRecorded: A marker
  3166. // was recorded in the workflow history as the result of a RecordMarker decision.
  3167. // TimerStarted: A timer was started for the workflow execution due to a StartTimer
  3168. // decision. StartTimerFailed: Failed to process StartTimer decision. This
  3169. // happens when the decision is not configured properly, for example a timer
  3170. // already exists with the specified timer ID. TimerFired: A timer, previously
  3171. // started for this workflow execution, fired. TimerCanceled: A timer, previously
  3172. // started for this workflow execution, was successfully canceled. CancelTimerFailed:
  3173. // Failed to process CancelTimer decision. This happens when the decision is
  3174. // not configured properly, for example no timer exists with the specified timer
  3175. // ID. StartChildWorkflowExecutionInitiated: A request was made to start a
  3176. // child workflow execution. StartChildWorkflowExecutionFailed: Failed to process
  3177. // StartChildWorkflowExecution decision. This happens when the decision is not
  3178. // configured properly, for example the workflow type specified is not registered.
  3179. // ChildWorkflowExecutionStarted: A child workflow execution was successfully
  3180. // started. ChildWorkflowExecutionCompleted: A child workflow execution, started
  3181. // by this workflow execution, completed successfully and was closed. ChildWorkflowExecutionFailed:
  3182. // A child workflow execution, started by this workflow execution, failed to
  3183. // complete successfully and was closed. ChildWorkflowExecutionTimedOut: A
  3184. // child workflow execution, started by this workflow execution, timed out and
  3185. // was closed. ChildWorkflowExecutionCanceled: A child workflow execution,
  3186. // started by this workflow execution, was canceled and closed. ChildWorkflowExecutionTerminated:
  3187. // A child workflow execution, started by this workflow execution, was terminated.
  3188. // SignalExternalWorkflowExecutionInitiated: A request to signal an external
  3189. // workflow was made. ExternalWorkflowExecutionSignaled: A signal, requested
  3190. // by this workflow execution, was successfully delivered to the target external
  3191. // workflow execution. SignalExternalWorkflowExecutionFailed: The request to
  3192. // signal an external workflow execution failed. RequestCancelExternalWorkflowExecutionInitiated:
  3193. // A request was made to request the cancellation of an external workflow execution.
  3194. // ExternalWorkflowExecutionCancelRequested: Request to cancel an external
  3195. // workflow execution was successfully delivered to the target execution. RequestCancelExternalWorkflowExecutionFailed:
  3196. // Request to cancel an external workflow execution failed. LambdaFunctionScheduled:
  3197. // An AWS Lambda function was scheduled for execution. LambdaFunctionStarted:
  3198. // The scheduled function was invoked in the AWS Lambda service. LambdaFunctionCompleted:
  3199. // The AWS Lambda function successfully completed. LambdaFunctionFailed: The
  3200. // AWS Lambda function execution failed. LambdaFunctionTimedOut: The AWS Lambda
  3201. // function execution timed out. ScheduleLambdaFunctionFailed: Failed to process
  3202. // ScheduleLambdaFunction decision. This happens when the workflow execution
  3203. // does not have the proper IAM role attached to invoke AWS Lambda functions.
  3204. // StartLambdaFunctionFailed: Failed to invoke the scheduled function in the
  3205. // AWS Lambda service. This happens when the AWS Lambda service is not available
  3206. // in the current region, or received too many requests.
  3207. type HistoryEvent struct {
  3208. // If the event is of type ActivityTaskcancelRequested then this member is set
  3209. // and provides detailed information about the event. It is not set for other
  3210. // event types.
  3211. ActivityTaskCancelRequestedEventAttributes *ActivityTaskCancelRequestedEventAttributes `locationName:"activityTaskCancelRequestedEventAttributes" type:"structure"`
  3212. // If the event is of type ActivityTaskCanceled then this member is set and
  3213. // provides detailed information about the event. It is not set for other event
  3214. // types.
  3215. ActivityTaskCanceledEventAttributes *ActivityTaskCanceledEventAttributes `locationName:"activityTaskCanceledEventAttributes" type:"structure"`
  3216. // If the event is of type ActivityTaskCompleted then this member is set and
  3217. // provides detailed information about the event. It is not set for other event
  3218. // types.
  3219. ActivityTaskCompletedEventAttributes *ActivityTaskCompletedEventAttributes `locationName:"activityTaskCompletedEventAttributes" type:"structure"`
  3220. // If the event is of type ActivityTaskFailed then this member is set and provides
  3221. // detailed information about the event. It is not set for other event types.
  3222. ActivityTaskFailedEventAttributes *ActivityTaskFailedEventAttributes `locationName:"activityTaskFailedEventAttributes" type:"structure"`
  3223. // If the event is of type ActivityTaskScheduled then this member is set and
  3224. // provides detailed information about the event. It is not set for other event
  3225. // types.
  3226. ActivityTaskScheduledEventAttributes *ActivityTaskScheduledEventAttributes `locationName:"activityTaskScheduledEventAttributes" type:"structure"`
  3227. // If the event is of type ActivityTaskStarted then this member is set and provides
  3228. // detailed information about the event. It is not set for other event types.
  3229. ActivityTaskStartedEventAttributes *ActivityTaskStartedEventAttributes `locationName:"activityTaskStartedEventAttributes" type:"structure"`
  3230. // If the event is of type ActivityTaskTimedOut then this member is set and
  3231. // provides detailed information about the event. It is not set for other event
  3232. // types.
  3233. ActivityTaskTimedOutEventAttributes *ActivityTaskTimedOutEventAttributes `locationName:"activityTaskTimedOutEventAttributes" type:"structure"`
  3234. // If the event is of type CancelTimerFailed then this member is set and provides
  3235. // detailed information about the event. It is not set for other event types.
  3236. CancelTimerFailedEventAttributes *CancelTimerFailedEventAttributes `locationName:"cancelTimerFailedEventAttributes" type:"structure"`
  3237. // If the event is of type CancelWorkflowExecutionFailed then this member is
  3238. // set and provides detailed information about the event. It is not set for
  3239. // other event types.
  3240. CancelWorkflowExecutionFailedEventAttributes *CancelWorkflowExecutionFailedEventAttributes `locationName:"cancelWorkflowExecutionFailedEventAttributes" type:"structure"`
  3241. // If the event is of type ChildWorkflowExecutionCanceled then this member is
  3242. // set and provides detailed information about the event. It is not set for
  3243. // other event types.
  3244. ChildWorkflowExecutionCanceledEventAttributes *ChildWorkflowExecutionCanceledEventAttributes `locationName:"childWorkflowExecutionCanceledEventAttributes" type:"structure"`
  3245. // If the event is of type ChildWorkflowExecutionCompleted then this member
  3246. // is set and provides detailed information about the event. It is not set for
  3247. // other event types.
  3248. ChildWorkflowExecutionCompletedEventAttributes *ChildWorkflowExecutionCompletedEventAttributes `locationName:"childWorkflowExecutionCompletedEventAttributes" type:"structure"`
  3249. // If the event is of type ChildWorkflowExecutionFailed then this member is
  3250. // set and provides detailed information about the event. It is not set for
  3251. // other event types.
  3252. ChildWorkflowExecutionFailedEventAttributes *ChildWorkflowExecutionFailedEventAttributes `locationName:"childWorkflowExecutionFailedEventAttributes" type:"structure"`
  3253. // If the event is of type ChildWorkflowExecutionStarted then this member is
  3254. // set and provides detailed information about the event. It is not set for
  3255. // other event types.
  3256. ChildWorkflowExecutionStartedEventAttributes *ChildWorkflowExecutionStartedEventAttributes `locationName:"childWorkflowExecutionStartedEventAttributes" type:"structure"`
  3257. // If the event is of type ChildWorkflowExecutionTerminated then this member
  3258. // is set and provides detailed information about the event. It is not set for
  3259. // other event types.
  3260. ChildWorkflowExecutionTerminatedEventAttributes *ChildWorkflowExecutionTerminatedEventAttributes `locationName:"childWorkflowExecutionTerminatedEventAttributes" type:"structure"`
  3261. // If the event is of type ChildWorkflowExecutionTimedOut then this member is
  3262. // set and provides detailed information about the event. It is not set for
  3263. // other event types.
  3264. ChildWorkflowExecutionTimedOutEventAttributes *ChildWorkflowExecutionTimedOutEventAttributes `locationName:"childWorkflowExecutionTimedOutEventAttributes" type:"structure"`
  3265. // If the event is of type CompleteWorkflowExecutionFailed then this member
  3266. // is set and provides detailed information about the event. It is not set for
  3267. // other event types.
  3268. CompleteWorkflowExecutionFailedEventAttributes *CompleteWorkflowExecutionFailedEventAttributes `locationName:"completeWorkflowExecutionFailedEventAttributes" type:"structure"`
  3269. // If the event is of type ContinueAsNewWorkflowExecutionFailed then this member
  3270. // is set and provides detailed information about the event. It is not set for
  3271. // other event types.
  3272. ContinueAsNewWorkflowExecutionFailedEventAttributes *ContinueAsNewWorkflowExecutionFailedEventAttributes `locationName:"continueAsNewWorkflowExecutionFailedEventAttributes" type:"structure"`
  3273. // If the event is of type DecisionTaskCompleted then this member is set and
  3274. // provides detailed information about the event. It is not set for other event
  3275. // types.
  3276. DecisionTaskCompletedEventAttributes *DecisionTaskCompletedEventAttributes `locationName:"decisionTaskCompletedEventAttributes" type:"structure"`
  3277. // If the event is of type DecisionTaskScheduled then this member is set and
  3278. // provides detailed information about the event. It is not set for other event
  3279. // types.
  3280. DecisionTaskScheduledEventAttributes *DecisionTaskScheduledEventAttributes `locationName:"decisionTaskScheduledEventAttributes" type:"structure"`
  3281. // If the event is of type DecisionTaskStarted then this member is set and provides
  3282. // detailed information about the event. It is not set for other event types.
  3283. DecisionTaskStartedEventAttributes *DecisionTaskStartedEventAttributes `locationName:"decisionTaskStartedEventAttributes" type:"structure"`
  3284. // If the event is of type DecisionTaskTimedOut then this member is set and
  3285. // provides detailed information about the event. It is not set for other event
  3286. // types.
  3287. DecisionTaskTimedOutEventAttributes *DecisionTaskTimedOutEventAttributes `locationName:"decisionTaskTimedOutEventAttributes" type:"structure"`
  3288. // The system generated ID of the event. This ID uniquely identifies the event
  3289. // with in the workflow execution history.
  3290. EventId *int64 `locationName:"eventId" type:"long" required:"true"`
  3291. // The date and time when the event occurred.
  3292. EventTimestamp *time.Time `locationName:"eventTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
  3293. // The type of the history event.
  3294. EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"`
  3295. // If the event is of type ExternalWorkflowExecutionCancelRequested then this
  3296. // member is set and provides detailed information about the event. It is not
  3297. // set for other event types.
  3298. ExternalWorkflowExecutionCancelRequestedEventAttributes *ExternalWorkflowExecutionCancelRequestedEventAttributes `locationName:"externalWorkflowExecutionCancelRequestedEventAttributes" type:"structure"`
  3299. // If the event is of type ExternalWorkflowExecutionSignaled then this member
  3300. // is set and provides detailed information about the event. It is not set for
  3301. // other event types.
  3302. ExternalWorkflowExecutionSignaledEventAttributes *ExternalWorkflowExecutionSignaledEventAttributes `locationName:"externalWorkflowExecutionSignaledEventAttributes" type:"structure"`
  3303. // If the event is of type FailWorkflowExecutionFailed then this member is set
  3304. // and provides detailed information about the event. It is not set for other
  3305. // event types.
  3306. FailWorkflowExecutionFailedEventAttributes *FailWorkflowExecutionFailedEventAttributes `locationName:"failWorkflowExecutionFailedEventAttributes" type:"structure"`
  3307. // Provides details for the LambdaFunctionCompleted event.
  3308. LambdaFunctionCompletedEventAttributes *LambdaFunctionCompletedEventAttributes `locationName:"lambdaFunctionCompletedEventAttributes" type:"structure"`
  3309. // Provides details for the LambdaFunctionFailed event.
  3310. LambdaFunctionFailedEventAttributes *LambdaFunctionFailedEventAttributes `locationName:"lambdaFunctionFailedEventAttributes" type:"structure"`
  3311. // Provides details for the LambdaFunctionScheduled event.
  3312. LambdaFunctionScheduledEventAttributes *LambdaFunctionScheduledEventAttributes `locationName:"lambdaFunctionScheduledEventAttributes" type:"structure"`
  3313. // Provides details for the LambdaFunctionStarted event.
  3314. LambdaFunctionStartedEventAttributes *LambdaFunctionStartedEventAttributes `locationName:"lambdaFunctionStartedEventAttributes" type:"structure"`
  3315. // Provides details for the LambdaFunctionTimedOut event.
  3316. LambdaFunctionTimedOutEventAttributes *LambdaFunctionTimedOutEventAttributes `locationName:"lambdaFunctionTimedOutEventAttributes" type:"structure"`
  3317. // If the event is of type MarkerRecorded then this member is set and provides
  3318. // detailed information about the event. It is not set for other event types.
  3319. MarkerRecordedEventAttributes *MarkerRecordedEventAttributes `locationName:"markerRecordedEventAttributes" type:"structure"`
  3320. // If the event is of type DecisionTaskFailed then this member is set and provides
  3321. // detailed information about the event. It is not set for other event types.
  3322. RecordMarkerFailedEventAttributes *RecordMarkerFailedEventAttributes `locationName:"recordMarkerFailedEventAttributes" type:"structure"`
  3323. // If the event is of type RequestCancelActivityTaskFailed then this member
  3324. // is set and provides detailed information about the event. It is not set for
  3325. // other event types.
  3326. RequestCancelActivityTaskFailedEventAttributes *RequestCancelActivityTaskFailedEventAttributes `locationName:"requestCancelActivityTaskFailedEventAttributes" type:"structure"`
  3327. // If the event is of type RequestCancelExternalWorkflowExecutionFailed then
  3328. // this member is set and provides detailed information about the event. It
  3329. // is not set for other event types.
  3330. RequestCancelExternalWorkflowExecutionFailedEventAttributes *RequestCancelExternalWorkflowExecutionFailedEventAttributes `locationName:"requestCancelExternalWorkflowExecutionFailedEventAttributes" type:"structure"`
  3331. // If the event is of type RequestCancelExternalWorkflowExecutionInitiated then
  3332. // this member is set and provides detailed information about the event. It
  3333. // is not set for other event types.
  3334. RequestCancelExternalWorkflowExecutionInitiatedEventAttributes *RequestCancelExternalWorkflowExecutionInitiatedEventAttributes `locationName:"requestCancelExternalWorkflowExecutionInitiatedEventAttributes" type:"structure"`
  3335. // If the event is of type ScheduleActivityTaskFailed then this member is set
  3336. // and provides detailed information about the event. It is not set for other
  3337. // event types.
  3338. ScheduleActivityTaskFailedEventAttributes *ScheduleActivityTaskFailedEventAttributes `locationName:"scheduleActivityTaskFailedEventAttributes" type:"structure"`
  3339. // Provides details for the ScheduleLambdaFunctionFailed event.
  3340. ScheduleLambdaFunctionFailedEventAttributes *ScheduleLambdaFunctionFailedEventAttributes `locationName:"scheduleLambdaFunctionFailedEventAttributes" type:"structure"`
  3341. // If the event is of type SignalExternalWorkflowExecutionFailed then this member
  3342. // is set and provides detailed information about the event. It is not set for
  3343. // other event types.
  3344. SignalExternalWorkflowExecutionFailedEventAttributes *SignalExternalWorkflowExecutionFailedEventAttributes `locationName:"signalExternalWorkflowExecutionFailedEventAttributes" type:"structure"`
  3345. // If the event is of type SignalExternalWorkflowExecutionInitiated then this
  3346. // member is set and provides detailed information about the event. It is not
  3347. // set for other event types.
  3348. SignalExternalWorkflowExecutionInitiatedEventAttributes *SignalExternalWorkflowExecutionInitiatedEventAttributes `locationName:"signalExternalWorkflowExecutionInitiatedEventAttributes" type:"structure"`
  3349. // If the event is of type StartChildWorkflowExecutionFailed then this member
  3350. // is set and provides detailed information about the event. It is not set for
  3351. // other event types.
  3352. StartChildWorkflowExecutionFailedEventAttributes *StartChildWorkflowExecutionFailedEventAttributes `locationName:"startChildWorkflowExecutionFailedEventAttributes" type:"structure"`
  3353. // If the event is of type StartChildWorkflowExecutionInitiated then this member
  3354. // is set and provides detailed information about the event. It is not set for
  3355. // other event types.
  3356. StartChildWorkflowExecutionInitiatedEventAttributes *StartChildWorkflowExecutionInitiatedEventAttributes `locationName:"startChildWorkflowExecutionInitiatedEventAttributes" type:"structure"`
  3357. // Provides details for the StartLambdaFunctionFailed event.
  3358. StartLambdaFunctionFailedEventAttributes *StartLambdaFunctionFailedEventAttributes `locationName:"startLambdaFunctionFailedEventAttributes" type:"structure"`
  3359. // If the event is of type StartTimerFailed then this member is set and provides
  3360. // detailed information about the event. It is not set for other event types.
  3361. StartTimerFailedEventAttributes *StartTimerFailedEventAttributes `locationName:"startTimerFailedEventAttributes" type:"structure"`
  3362. // If the event is of type TimerCanceled then this member is set and provides
  3363. // detailed information about the event. It is not set for other event types.
  3364. TimerCanceledEventAttributes *TimerCanceledEventAttributes `locationName:"timerCanceledEventAttributes" type:"structure"`
  3365. // If the event is of type TimerFired then this member is set and provides detailed
  3366. // information about the event. It is not set for other event types.
  3367. TimerFiredEventAttributes *TimerFiredEventAttributes `locationName:"timerFiredEventAttributes" type:"structure"`
  3368. // If the event is of type TimerStarted then this member is set and provides
  3369. // detailed information about the event. It is not set for other event types.
  3370. TimerStartedEventAttributes *TimerStartedEventAttributes `locationName:"timerStartedEventAttributes" type:"structure"`
  3371. // If the event is of type WorkflowExecutionCancelRequested then this member
  3372. // is set and provides detailed information about the event. It is not set for
  3373. // other event types.
  3374. WorkflowExecutionCancelRequestedEventAttributes *WorkflowExecutionCancelRequestedEventAttributes `locationName:"workflowExecutionCancelRequestedEventAttributes" type:"structure"`
  3375. // If the event is of type WorkflowExecutionCanceled then this member is set
  3376. // and provides detailed information about the event. It is not set for other
  3377. // event types.
  3378. WorkflowExecutionCanceledEventAttributes *WorkflowExecutionCanceledEventAttributes `locationName:"workflowExecutionCanceledEventAttributes" type:"structure"`
  3379. // If the event is of type WorkflowExecutionCompleted then this member is set
  3380. // and provides detailed information about the event. It is not set for other
  3381. // event types.
  3382. WorkflowExecutionCompletedEventAttributes *WorkflowExecutionCompletedEventAttributes `locationName:"workflowExecutionCompletedEventAttributes" type:"structure"`
  3383. // If the event is of type WorkflowExecutionContinuedAsNew then this member
  3384. // is set and provides detailed information about the event. It is not set for
  3385. // other event types.
  3386. WorkflowExecutionContinuedAsNewEventAttributes *WorkflowExecutionContinuedAsNewEventAttributes `locationName:"workflowExecutionContinuedAsNewEventAttributes" type:"structure"`
  3387. // If the event is of type WorkflowExecutionFailed then this member is set and
  3388. // provides detailed information about the event. It is not set for other event
  3389. // types.
  3390. WorkflowExecutionFailedEventAttributes *WorkflowExecutionFailedEventAttributes `locationName:"workflowExecutionFailedEventAttributes" type:"structure"`
  3391. // If the event is of type WorkflowExecutionSignaled then this member is set
  3392. // and provides detailed information about the event. It is not set for other
  3393. // event types.
  3394. WorkflowExecutionSignaledEventAttributes *WorkflowExecutionSignaledEventAttributes `locationName:"workflowExecutionSignaledEventAttributes" type:"structure"`
  3395. // If the event is of type WorkflowExecutionStarted then this member is set
  3396. // and provides detailed information about the event. It is not set for other
  3397. // event types.
  3398. WorkflowExecutionStartedEventAttributes *WorkflowExecutionStartedEventAttributes `locationName:"workflowExecutionStartedEventAttributes" type:"structure"`
  3399. // If the event is of type WorkflowExecutionTerminated then this member is set
  3400. // and provides detailed information about the event. It is not set for other
  3401. // event types.
  3402. WorkflowExecutionTerminatedEventAttributes *WorkflowExecutionTerminatedEventAttributes `locationName:"workflowExecutionTerminatedEventAttributes" type:"structure"`
  3403. // If the event is of type WorkflowExecutionTimedOut then this member is set
  3404. // and provides detailed information about the event. It is not set for other
  3405. // event types.
  3406. WorkflowExecutionTimedOutEventAttributes *WorkflowExecutionTimedOutEventAttributes `locationName:"workflowExecutionTimedOutEventAttributes" type:"structure"`
  3407. metadataHistoryEvent `json:"-" xml:"-"`
  3408. }
  3409. type metadataHistoryEvent struct {
  3410. SDKShapeTraits bool `type:"structure"`
  3411. }
  3412. // String returns the string representation
  3413. func (s HistoryEvent) String() string {
  3414. return awsutil.Prettify(s)
  3415. }
  3416. // GoString returns the string representation
  3417. func (s HistoryEvent) GoString() string {
  3418. return s.String()
  3419. }
  3420. // Provides details for the LambdaFunctionCompleted event.
  3421. type LambdaFunctionCompletedEventAttributes struct {
  3422. // The result of the function execution (if any).
  3423. Result *string `locationName:"result" type:"string"`
  3424. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  3425. // Lambda function was scheduled. This information can be useful for diagnosing
  3426. // problems by tracing back the chain of events leading up to this event.
  3427. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3428. // The ID of the LambdaFunctionStarted event recorded in the history.
  3429. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3430. metadataLambdaFunctionCompletedEventAttributes `json:"-" xml:"-"`
  3431. }
  3432. type metadataLambdaFunctionCompletedEventAttributes struct {
  3433. SDKShapeTraits bool `type:"structure"`
  3434. }
  3435. // String returns the string representation
  3436. func (s LambdaFunctionCompletedEventAttributes) String() string {
  3437. return awsutil.Prettify(s)
  3438. }
  3439. // GoString returns the string representation
  3440. func (s LambdaFunctionCompletedEventAttributes) GoString() string {
  3441. return s.String()
  3442. }
  3443. // Provides details for the LambdaFunctionFailed event.
  3444. type LambdaFunctionFailedEventAttributes struct {
  3445. // The details of the failure (if any).
  3446. Details *string `locationName:"details" type:"string"`
  3447. // The reason provided for the failure (if any).
  3448. Reason *string `locationName:"reason" type:"string"`
  3449. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  3450. // Lambda function was scheduled. This information can be useful for diagnosing
  3451. // problems by tracing back the chain of events leading up to this event.
  3452. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3453. // The ID of the LambdaFunctionStarted event recorded in the history.
  3454. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3455. metadataLambdaFunctionFailedEventAttributes `json:"-" xml:"-"`
  3456. }
  3457. type metadataLambdaFunctionFailedEventAttributes struct {
  3458. SDKShapeTraits bool `type:"structure"`
  3459. }
  3460. // String returns the string representation
  3461. func (s LambdaFunctionFailedEventAttributes) String() string {
  3462. return awsutil.Prettify(s)
  3463. }
  3464. // GoString returns the string representation
  3465. func (s LambdaFunctionFailedEventAttributes) GoString() string {
  3466. return s.String()
  3467. }
  3468. // Provides details for the LambdaFunctionScheduled event.
  3469. type LambdaFunctionScheduledEventAttributes struct {
  3470. // The ID of the DecisionTaskCompleted event for the decision that resulted
  3471. // in the scheduling of this AWS Lambda function. This information can be useful
  3472. // for diagnosing problems by tracing back the chain of events leading up to
  3473. // this event.
  3474. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3475. // The unique Amazon SWF ID for the AWS Lambda task.
  3476. Id *string `locationName:"id" type:"string" required:"true"`
  3477. // Input provided to the AWS Lambda function.
  3478. Input *string `locationName:"input" type:"string"`
  3479. // The name of the scheduled AWS Lambda function.
  3480. Name *string `locationName:"name" type:"string" required:"true"`
  3481. // The maximum time, in seconds, that the AWS Lambda function can take to execute
  3482. // from start to close before it is marked as failed.
  3483. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  3484. metadataLambdaFunctionScheduledEventAttributes `json:"-" xml:"-"`
  3485. }
  3486. type metadataLambdaFunctionScheduledEventAttributes struct {
  3487. SDKShapeTraits bool `type:"structure"`
  3488. }
  3489. // String returns the string representation
  3490. func (s LambdaFunctionScheduledEventAttributes) String() string {
  3491. return awsutil.Prettify(s)
  3492. }
  3493. // GoString returns the string representation
  3494. func (s LambdaFunctionScheduledEventAttributes) GoString() string {
  3495. return s.String()
  3496. }
  3497. // Provides details for the LambdaFunctionStarted event.
  3498. type LambdaFunctionStartedEventAttributes struct {
  3499. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  3500. // Lambda function was scheduled. This information can be useful for diagnosing
  3501. // problems by tracing back the chain of events leading up to this event.
  3502. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3503. metadataLambdaFunctionStartedEventAttributes `json:"-" xml:"-"`
  3504. }
  3505. type metadataLambdaFunctionStartedEventAttributes struct {
  3506. SDKShapeTraits bool `type:"structure"`
  3507. }
  3508. // String returns the string representation
  3509. func (s LambdaFunctionStartedEventAttributes) String() string {
  3510. return awsutil.Prettify(s)
  3511. }
  3512. // GoString returns the string representation
  3513. func (s LambdaFunctionStartedEventAttributes) GoString() string {
  3514. return s.String()
  3515. }
  3516. // Provides details for the LambdaFunctionTimedOut event.
  3517. type LambdaFunctionTimedOutEventAttributes struct {
  3518. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  3519. // Lambda function was scheduled. This information can be useful for diagnosing
  3520. // problems by tracing back the chain of events leading up to this event.
  3521. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long" required:"true"`
  3522. // The ID of the LambdaFunctionStarted event recorded in the history.
  3523. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3524. // The type of the timeout that caused this event.
  3525. TimeoutType *string `locationName:"timeoutType" type:"string" enum:"LambdaFunctionTimeoutType"`
  3526. metadataLambdaFunctionTimedOutEventAttributes `json:"-" xml:"-"`
  3527. }
  3528. type metadataLambdaFunctionTimedOutEventAttributes struct {
  3529. SDKShapeTraits bool `type:"structure"`
  3530. }
  3531. // String returns the string representation
  3532. func (s LambdaFunctionTimedOutEventAttributes) String() string {
  3533. return awsutil.Prettify(s)
  3534. }
  3535. // GoString returns the string representation
  3536. func (s LambdaFunctionTimedOutEventAttributes) GoString() string {
  3537. return s.String()
  3538. }
  3539. type ListActivityTypesInput struct {
  3540. // The name of the domain in which the activity types have been registered.
  3541. Domain *string `locationName:"domain" type:"string" required:"true"`
  3542. // The maximum number of results that will be returned per call. nextPageToken
  3543. // can be used to obtain futher pages of results. The default is 1000, which
  3544. // is the maximum allowed page size. You can, however, specify a page size smaller
  3545. // than the maximum.
  3546. //
  3547. // This is an upper limit only; the actual number of results returned per call
  3548. // may be fewer than the specified maximum.
  3549. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3550. // If specified, only lists the activity types that have this name.
  3551. Name *string `locationName:"name" type:"string"`
  3552. // If a NextPageToken was returned by a previous call, there are more results
  3553. // available. To retrieve the next page of results, make the call again using
  3554. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3555. //
  3556. // The configured maximumPageSize determines how many results can be returned
  3557. // in a single call.
  3558. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3559. // Specifies the registration status of the activity types to list.
  3560. RegistrationStatus *string `locationName:"registrationStatus" type:"string" required:"true" enum:"RegistrationStatus"`
  3561. // When set to true, returns the results in reverse order. By default, the results
  3562. // are returned in ascending alphabetical order by name of the activity types.
  3563. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3564. metadataListActivityTypesInput `json:"-" xml:"-"`
  3565. }
  3566. type metadataListActivityTypesInput struct {
  3567. SDKShapeTraits bool `type:"structure"`
  3568. }
  3569. // String returns the string representation
  3570. func (s ListActivityTypesInput) String() string {
  3571. return awsutil.Prettify(s)
  3572. }
  3573. // GoString returns the string representation
  3574. func (s ListActivityTypesInput) GoString() string {
  3575. return s.String()
  3576. }
  3577. // Contains a paginated list of activity type information structures.
  3578. type ListActivityTypesOutput struct {
  3579. // If a NextPageToken was returned by a previous call, there are more results
  3580. // available. To retrieve the next page of results, make the call again using
  3581. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3582. //
  3583. // The configured maximumPageSize determines how many results can be returned
  3584. // in a single call.
  3585. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3586. // List of activity type information.
  3587. TypeInfos []*ActivityTypeInfo `locationName:"typeInfos" type:"list" required:"true"`
  3588. metadataListActivityTypesOutput `json:"-" xml:"-"`
  3589. }
  3590. type metadataListActivityTypesOutput struct {
  3591. SDKShapeTraits bool `type:"structure"`
  3592. }
  3593. // String returns the string representation
  3594. func (s ListActivityTypesOutput) String() string {
  3595. return awsutil.Prettify(s)
  3596. }
  3597. // GoString returns the string representation
  3598. func (s ListActivityTypesOutput) GoString() string {
  3599. return s.String()
  3600. }
  3601. type ListClosedWorkflowExecutionsInput struct {
  3602. // If specified, only workflow executions that match this close status are listed.
  3603. // For example, if TERMINATED is specified, then only TERMINATED workflow executions
  3604. // are listed.
  3605. //
  3606. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  3607. // exclusive. You can specify at most one of these in a request.
  3608. CloseStatusFilter *CloseStatusFilter `locationName:"closeStatusFilter" type:"structure"`
  3609. // If specified, the workflow executions are included in the returned results
  3610. // based on whether their close times are within the range specified by this
  3611. // filter. Also, if this parameter is specified, the returned results are ordered
  3612. // by their close times.
  3613. //
  3614. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  3615. // one of these in a request but not both.
  3616. CloseTimeFilter *ExecutionTimeFilter `locationName:"closeTimeFilter" type:"structure"`
  3617. // The name of the domain that contains the workflow executions to list.
  3618. Domain *string `locationName:"domain" type:"string" required:"true"`
  3619. // If specified, only workflow executions matching the workflow ID specified
  3620. // in the filter are returned.
  3621. //
  3622. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  3623. // exclusive. You can specify at most one of these in a request.
  3624. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  3625. // The maximum number of results that will be returned per call. nextPageToken
  3626. // can be used to obtain futher pages of results. The default is 1000, which
  3627. // is the maximum allowed page size. You can, however, specify a page size smaller
  3628. // than the maximum.
  3629. //
  3630. // This is an upper limit only; the actual number of results returned per call
  3631. // may be fewer than the specified maximum.
  3632. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3633. // If a NextPageToken was returned by a previous call, there are more results
  3634. // available. To retrieve the next page of results, make the call again using
  3635. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3636. //
  3637. // The configured maximumPageSize determines how many results can be returned
  3638. // in a single call.
  3639. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3640. // When set to true, returns the results in reverse order. By default the results
  3641. // are returned in descending order of the start or the close time of the executions.
  3642. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3643. // If specified, the workflow executions are included in the returned results
  3644. // based on whether their start times are within the range specified by this
  3645. // filter. Also, if this parameter is specified, the returned results are ordered
  3646. // by their start times.
  3647. //
  3648. // startTimeFilter and closeTimeFilter are mutually exclusive. You must specify
  3649. // one of these in a request but not both.
  3650. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure"`
  3651. // If specified, only executions that have the matching tag are listed.
  3652. //
  3653. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  3654. // exclusive. You can specify at most one of these in a request.
  3655. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  3656. // If specified, only executions of the type specified in the filter are returned.
  3657. //
  3658. // closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually
  3659. // exclusive. You can specify at most one of these in a request.
  3660. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  3661. metadataListClosedWorkflowExecutionsInput `json:"-" xml:"-"`
  3662. }
  3663. type metadataListClosedWorkflowExecutionsInput struct {
  3664. SDKShapeTraits bool `type:"structure"`
  3665. }
  3666. // String returns the string representation
  3667. func (s ListClosedWorkflowExecutionsInput) String() string {
  3668. return awsutil.Prettify(s)
  3669. }
  3670. // GoString returns the string representation
  3671. func (s ListClosedWorkflowExecutionsInput) GoString() string {
  3672. return s.String()
  3673. }
  3674. type ListDomainsInput struct {
  3675. // The maximum number of results that will be returned per call. nextPageToken
  3676. // can be used to obtain futher pages of results. The default is 1000, which
  3677. // is the maximum allowed page size. You can, however, specify a page size smaller
  3678. // than the maximum.
  3679. //
  3680. // This is an upper limit only; the actual number of results returned per call
  3681. // may be fewer than the specified maximum.
  3682. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3683. // If a NextPageToken was returned by a previous call, there are more results
  3684. // available. To retrieve the next page of results, make the call again using
  3685. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3686. //
  3687. // The configured maximumPageSize determines how many results can be returned
  3688. // in a single call.
  3689. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3690. // Specifies the registration status of the domains to list.
  3691. RegistrationStatus *string `locationName:"registrationStatus" type:"string" required:"true" enum:"RegistrationStatus"`
  3692. // When set to true, returns the results in reverse order. By default, the results
  3693. // are returned in ascending alphabetical order by name of the domains.
  3694. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3695. metadataListDomainsInput `json:"-" xml:"-"`
  3696. }
  3697. type metadataListDomainsInput struct {
  3698. SDKShapeTraits bool `type:"structure"`
  3699. }
  3700. // String returns the string representation
  3701. func (s ListDomainsInput) String() string {
  3702. return awsutil.Prettify(s)
  3703. }
  3704. // GoString returns the string representation
  3705. func (s ListDomainsInput) GoString() string {
  3706. return s.String()
  3707. }
  3708. // Contains a paginated collection of DomainInfo structures.
  3709. type ListDomainsOutput struct {
  3710. // A list of DomainInfo structures.
  3711. DomainInfos []*DomainInfo `locationName:"domainInfos" type:"list" required:"true"`
  3712. // If a NextPageToken was returned by a previous call, there are more results
  3713. // available. To retrieve the next page of results, make the call again using
  3714. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3715. //
  3716. // The configured maximumPageSize determines how many results can be returned
  3717. // in a single call.
  3718. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3719. metadataListDomainsOutput `json:"-" xml:"-"`
  3720. }
  3721. type metadataListDomainsOutput struct {
  3722. SDKShapeTraits bool `type:"structure"`
  3723. }
  3724. // String returns the string representation
  3725. func (s ListDomainsOutput) String() string {
  3726. return awsutil.Prettify(s)
  3727. }
  3728. // GoString returns the string representation
  3729. func (s ListDomainsOutput) GoString() string {
  3730. return s.String()
  3731. }
  3732. type ListOpenWorkflowExecutionsInput struct {
  3733. // The name of the domain that contains the workflow executions to list.
  3734. Domain *string `locationName:"domain" type:"string" required:"true"`
  3735. // If specified, only workflow executions matching the workflow ID specified
  3736. // in the filter are returned.
  3737. //
  3738. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  3739. // specify at most one of these in a request.
  3740. ExecutionFilter *WorkflowExecutionFilter `locationName:"executionFilter" type:"structure"`
  3741. // The maximum number of results that will be returned per call. nextPageToken
  3742. // can be used to obtain futher pages of results. The default is 1000, which
  3743. // is the maximum allowed page size. You can, however, specify a page size smaller
  3744. // than the maximum.
  3745. //
  3746. // This is an upper limit only; the actual number of results returned per call
  3747. // may be fewer than the specified maximum.
  3748. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3749. // If a NextPageToken was returned by a previous call, there are more results
  3750. // available. To retrieve the next page of results, make the call again using
  3751. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3752. //
  3753. // The configured maximumPageSize determines how many results can be returned
  3754. // in a single call.
  3755. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3756. // When set to true, returns the results in reverse order. By default the results
  3757. // are returned in descending order of the start time of the executions.
  3758. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3759. // Workflow executions are included in the returned results based on whether
  3760. // their start times are within the range specified by this filter.
  3761. StartTimeFilter *ExecutionTimeFilter `locationName:"startTimeFilter" type:"structure" required:"true"`
  3762. // If specified, only executions that have the matching tag are listed.
  3763. //
  3764. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  3765. // specify at most one of these in a request.
  3766. TagFilter *TagFilter `locationName:"tagFilter" type:"structure"`
  3767. // If specified, only executions of the type specified in the filter are returned.
  3768. //
  3769. // executionFilter, typeFilter and tagFilter are mutually exclusive. You can
  3770. // specify at most one of these in a request.
  3771. TypeFilter *WorkflowTypeFilter `locationName:"typeFilter" type:"structure"`
  3772. metadataListOpenWorkflowExecutionsInput `json:"-" xml:"-"`
  3773. }
  3774. type metadataListOpenWorkflowExecutionsInput struct {
  3775. SDKShapeTraits bool `type:"structure"`
  3776. }
  3777. // String returns the string representation
  3778. func (s ListOpenWorkflowExecutionsInput) String() string {
  3779. return awsutil.Prettify(s)
  3780. }
  3781. // GoString returns the string representation
  3782. func (s ListOpenWorkflowExecutionsInput) GoString() string {
  3783. return s.String()
  3784. }
  3785. type ListWorkflowTypesInput struct {
  3786. // The name of the domain in which the workflow types have been registered.
  3787. Domain *string `locationName:"domain" type:"string" required:"true"`
  3788. // The maximum number of results that will be returned per call. nextPageToken
  3789. // can be used to obtain futher pages of results. The default is 1000, which
  3790. // is the maximum allowed page size. You can, however, specify a page size smaller
  3791. // than the maximum.
  3792. //
  3793. // This is an upper limit only; the actual number of results returned per call
  3794. // may be fewer than the specified maximum.
  3795. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3796. // If specified, lists the workflow type with this name.
  3797. Name *string `locationName:"name" type:"string"`
  3798. // If a NextPageToken was returned by a previous call, there are more results
  3799. // available. To retrieve the next page of results, make the call again using
  3800. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3801. //
  3802. // The configured maximumPageSize determines how many results can be returned
  3803. // in a single call.
  3804. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3805. // Specifies the registration status of the workflow types to list.
  3806. RegistrationStatus *string `locationName:"registrationStatus" type:"string" required:"true" enum:"RegistrationStatus"`
  3807. // When set to true, returns the results in reverse order. By default the results
  3808. // are returned in ascending alphabetical order of the name of the workflow
  3809. // types.
  3810. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3811. metadataListWorkflowTypesInput `json:"-" xml:"-"`
  3812. }
  3813. type metadataListWorkflowTypesInput struct {
  3814. SDKShapeTraits bool `type:"structure"`
  3815. }
  3816. // String returns the string representation
  3817. func (s ListWorkflowTypesInput) String() string {
  3818. return awsutil.Prettify(s)
  3819. }
  3820. // GoString returns the string representation
  3821. func (s ListWorkflowTypesInput) GoString() string {
  3822. return s.String()
  3823. }
  3824. // Contains a paginated list of information structures about workflow types.
  3825. type ListWorkflowTypesOutput struct {
  3826. // If a NextPageToken was returned by a previous call, there are more results
  3827. // available. To retrieve the next page of results, make the call again using
  3828. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3829. //
  3830. // The configured maximumPageSize determines how many results can be returned
  3831. // in a single call.
  3832. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3833. // The list of workflow type information.
  3834. TypeInfos []*WorkflowTypeInfo `locationName:"typeInfos" type:"list" required:"true"`
  3835. metadataListWorkflowTypesOutput `json:"-" xml:"-"`
  3836. }
  3837. type metadataListWorkflowTypesOutput struct {
  3838. SDKShapeTraits bool `type:"structure"`
  3839. }
  3840. // String returns the string representation
  3841. func (s ListWorkflowTypesOutput) String() string {
  3842. return awsutil.Prettify(s)
  3843. }
  3844. // GoString returns the string representation
  3845. func (s ListWorkflowTypesOutput) GoString() string {
  3846. return s.String()
  3847. }
  3848. // Provides details of the MarkerRecorded event.
  3849. type MarkerRecordedEventAttributes struct {
  3850. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  3851. // that resulted in the RecordMarker decision that requested this marker. This
  3852. // information can be useful for diagnosing problems by tracing back the chain
  3853. // of events leading up to this event.
  3854. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  3855. // Details of the marker (if any).
  3856. Details *string `locationName:"details" type:"string"`
  3857. // The name of the marker.
  3858. MarkerName *string `locationName:"markerName" type:"string" required:"true"`
  3859. metadataMarkerRecordedEventAttributes `json:"-" xml:"-"`
  3860. }
  3861. type metadataMarkerRecordedEventAttributes struct {
  3862. SDKShapeTraits bool `type:"structure"`
  3863. }
  3864. // String returns the string representation
  3865. func (s MarkerRecordedEventAttributes) String() string {
  3866. return awsutil.Prettify(s)
  3867. }
  3868. // GoString returns the string representation
  3869. func (s MarkerRecordedEventAttributes) GoString() string {
  3870. return s.String()
  3871. }
  3872. // Contains the count of tasks in a task list.
  3873. type PendingTaskCount struct {
  3874. // The number of tasks in the task list.
  3875. Count *int64 `locationName:"count" type:"integer" required:"true"`
  3876. // If set to true, indicates that the actual count was more than the maximum
  3877. // supported by this API and the count returned is the truncated value.
  3878. Truncated *bool `locationName:"truncated" type:"boolean"`
  3879. metadataPendingTaskCount `json:"-" xml:"-"`
  3880. }
  3881. type metadataPendingTaskCount struct {
  3882. SDKShapeTraits bool `type:"structure"`
  3883. }
  3884. // String returns the string representation
  3885. func (s PendingTaskCount) String() string {
  3886. return awsutil.Prettify(s)
  3887. }
  3888. // GoString returns the string representation
  3889. func (s PendingTaskCount) GoString() string {
  3890. return s.String()
  3891. }
  3892. type PollForActivityTaskInput struct {
  3893. // The name of the domain that contains the task lists being polled.
  3894. Domain *string `locationName:"domain" type:"string" required:"true"`
  3895. // Identity of the worker making the request, recorded in the ActivityTaskStarted
  3896. // event in the workflow history. This enables diagnostic tracing when problems
  3897. // arise. The form of this identity is user defined.
  3898. Identity *string `locationName:"identity" type:"string"`
  3899. // Specifies the task list to poll for activity tasks.
  3900. //
  3901. // The specified string must not start or end with whitespace. It must not
  3902. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  3903. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  3904. // string quotarnquot.
  3905. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  3906. metadataPollForActivityTaskInput `json:"-" xml:"-"`
  3907. }
  3908. type metadataPollForActivityTaskInput struct {
  3909. SDKShapeTraits bool `type:"structure"`
  3910. }
  3911. // String returns the string representation
  3912. func (s PollForActivityTaskInput) String() string {
  3913. return awsutil.Prettify(s)
  3914. }
  3915. // GoString returns the string representation
  3916. func (s PollForActivityTaskInput) GoString() string {
  3917. return s.String()
  3918. }
  3919. // Unit of work sent to an activity worker.
  3920. type PollForActivityTaskOutput struct {
  3921. // The unique ID of the task.
  3922. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  3923. // The type of this activity task.
  3924. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  3925. // The inputs provided when the activity task was scheduled. The form of the
  3926. // input is user defined and should be meaningful to the activity implementation.
  3927. Input *string `locationName:"input" type:"string"`
  3928. // The ID of the ActivityTaskStarted event recorded in the history.
  3929. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  3930. // The opaque string used as a handle on the task. This token is used by workers
  3931. // to communicate progress and response information back to the system about
  3932. // the task.
  3933. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  3934. // The workflow execution that started this activity task.
  3935. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  3936. metadataPollForActivityTaskOutput `json:"-" xml:"-"`
  3937. }
  3938. type metadataPollForActivityTaskOutput struct {
  3939. SDKShapeTraits bool `type:"structure"`
  3940. }
  3941. // String returns the string representation
  3942. func (s PollForActivityTaskOutput) String() string {
  3943. return awsutil.Prettify(s)
  3944. }
  3945. // GoString returns the string representation
  3946. func (s PollForActivityTaskOutput) GoString() string {
  3947. return s.String()
  3948. }
  3949. type PollForDecisionTaskInput struct {
  3950. // The name of the domain containing the task lists to poll.
  3951. Domain *string `locationName:"domain" type:"string" required:"true"`
  3952. // Identity of the decider making the request, which is recorded in the DecisionTaskStarted
  3953. // event in the workflow history. This enables diagnostic tracing when problems
  3954. // arise. The form of this identity is user defined.
  3955. Identity *string `locationName:"identity" type:"string"`
  3956. // The maximum number of results that will be returned per call. nextPageToken
  3957. // can be used to obtain futher pages of results. The default is 1000, which
  3958. // is the maximum allowed page size. You can, however, specify a page size smaller
  3959. // than the maximum.
  3960. //
  3961. // This is an upper limit only; the actual number of results returned per call
  3962. // may be fewer than the specified maximum.
  3963. MaximumPageSize *int64 `locationName:"maximumPageSize" type:"integer"`
  3964. // If a NextPageToken was returned by a previous call, there are more results
  3965. // available. To retrieve the next page of results, make the call again using
  3966. // the returned token in nextPageToken. Keep all other arguments unchanged.
  3967. //
  3968. // The configured maximumPageSize determines how many results can be returned
  3969. // in a single call.
  3970. //
  3971. // The nextPageToken returned by this action cannot be used with GetWorkflowExecutionHistory
  3972. // to get the next page. You must call PollForDecisionTask again (with the nextPageToken)
  3973. // to retrieve the next page of history records. Calling PollForDecisionTask
  3974. // with a nextPageToken will not return a new decision task..
  3975. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  3976. // When set to true, returns the events in reverse order. By default the results
  3977. // are returned in ascending order of the eventTimestamp of the events.
  3978. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"`
  3979. // Specifies the task list to poll for decision tasks.
  3980. //
  3981. // The specified string must not start or end with whitespace. It must not
  3982. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  3983. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  3984. // string quotarnquot.
  3985. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  3986. metadataPollForDecisionTaskInput `json:"-" xml:"-"`
  3987. }
  3988. type metadataPollForDecisionTaskInput struct {
  3989. SDKShapeTraits bool `type:"structure"`
  3990. }
  3991. // String returns the string representation
  3992. func (s PollForDecisionTaskInput) String() string {
  3993. return awsutil.Prettify(s)
  3994. }
  3995. // GoString returns the string representation
  3996. func (s PollForDecisionTaskInput) GoString() string {
  3997. return s.String()
  3998. }
  3999. // A structure that represents a decision task. Decision tasks are sent to deciders
  4000. // in order for them to make decisions.
  4001. type PollForDecisionTaskOutput struct {
  4002. // A paginated list of history events of the workflow execution. The decider
  4003. // uses this during the processing of the decision task.
  4004. Events []*HistoryEvent `locationName:"events" type:"list" required:"true"`
  4005. // If a NextPageToken was returned by a previous call, there are more results
  4006. // available. To retrieve the next page of results, make the call again using
  4007. // the returned token in nextPageToken. Keep all other arguments unchanged.
  4008. //
  4009. // The configured maximumPageSize determines how many results can be returned
  4010. // in a single call.
  4011. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  4012. // The ID of the DecisionTaskStarted event of the previous decision task of
  4013. // this workflow execution that was processed by the decider. This can be used
  4014. // to determine the events in the history new since the last decision task received
  4015. // by the decider.
  4016. PreviousStartedEventId *int64 `locationName:"previousStartedEventId" type:"long"`
  4017. // The ID of the DecisionTaskStarted event recorded in the history.
  4018. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  4019. // The opaque string used as a handle on the task. This token is used by workers
  4020. // to communicate progress and response information back to the system about
  4021. // the task.
  4022. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  4023. // The workflow execution for which this decision task was created.
  4024. WorkflowExecution *WorkflowExecution `locationName:"workflowExecution" type:"structure" required:"true"`
  4025. // The type of the workflow execution for which this decision task was created.
  4026. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  4027. metadataPollForDecisionTaskOutput `json:"-" xml:"-"`
  4028. }
  4029. type metadataPollForDecisionTaskOutput struct {
  4030. SDKShapeTraits bool `type:"structure"`
  4031. }
  4032. // String returns the string representation
  4033. func (s PollForDecisionTaskOutput) String() string {
  4034. return awsutil.Prettify(s)
  4035. }
  4036. // GoString returns the string representation
  4037. func (s PollForDecisionTaskOutput) GoString() string {
  4038. return s.String()
  4039. }
  4040. type RecordActivityTaskHeartbeatInput struct {
  4041. // If specified, contains details about the progress of the task.
  4042. Details *string `locationName:"details" type:"string"`
  4043. // The taskToken of the ActivityTask.
  4044. //
  4045. // taskToken is generated by the service and should be treated as an opaque
  4046. // value. If the task is passed to another process, its taskToken must also
  4047. // be passed. This enables it to provide its progress and respond with results.
  4048. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  4049. metadataRecordActivityTaskHeartbeatInput `json:"-" xml:"-"`
  4050. }
  4051. type metadataRecordActivityTaskHeartbeatInput struct {
  4052. SDKShapeTraits bool `type:"structure"`
  4053. }
  4054. // String returns the string representation
  4055. func (s RecordActivityTaskHeartbeatInput) String() string {
  4056. return awsutil.Prettify(s)
  4057. }
  4058. // GoString returns the string representation
  4059. func (s RecordActivityTaskHeartbeatInput) GoString() string {
  4060. return s.String()
  4061. }
  4062. // Status information about an activity task.
  4063. type RecordActivityTaskHeartbeatOutput struct {
  4064. // Set to true if cancellation of the task is requested.
  4065. CancelRequested *bool `locationName:"cancelRequested" type:"boolean" required:"true"`
  4066. metadataRecordActivityTaskHeartbeatOutput `json:"-" xml:"-"`
  4067. }
  4068. type metadataRecordActivityTaskHeartbeatOutput struct {
  4069. SDKShapeTraits bool `type:"structure"`
  4070. }
  4071. // String returns the string representation
  4072. func (s RecordActivityTaskHeartbeatOutput) String() string {
  4073. return awsutil.Prettify(s)
  4074. }
  4075. // GoString returns the string representation
  4076. func (s RecordActivityTaskHeartbeatOutput) GoString() string {
  4077. return s.String()
  4078. }
  4079. // Provides details of the RecordMarker decision.
  4080. //
  4081. // Access Control
  4082. //
  4083. // You can use IAM policies to control this decision's access to Amazon SWF
  4084. // resources as follows:
  4085. //
  4086. // Use a Resource element with the domain name to limit the action to only
  4087. // specified domains. Use an Action element to allow or deny permission to call
  4088. // this action. You cannot use an IAM policy to constrain this action's parameters.
  4089. // If the caller does not have sufficient permissions to invoke the action,
  4090. // or the parameter values fall outside the specified constraints, the action
  4091. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4092. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4093. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4094. type RecordMarkerDecisionAttributes struct {
  4095. // Optional. details of the marker.
  4096. Details *string `locationName:"details" type:"string"`
  4097. // Required. The name of the marker.
  4098. MarkerName *string `locationName:"markerName" type:"string" required:"true"`
  4099. metadataRecordMarkerDecisionAttributes `json:"-" xml:"-"`
  4100. }
  4101. type metadataRecordMarkerDecisionAttributes struct {
  4102. SDKShapeTraits bool `type:"structure"`
  4103. }
  4104. // String returns the string representation
  4105. func (s RecordMarkerDecisionAttributes) String() string {
  4106. return awsutil.Prettify(s)
  4107. }
  4108. // GoString returns the string representation
  4109. func (s RecordMarkerDecisionAttributes) GoString() string {
  4110. return s.String()
  4111. }
  4112. // Provides details of the RecordMarkerFailed event.
  4113. type RecordMarkerFailedEventAttributes struct {
  4114. // The cause of the failure. This information is generated by the system and
  4115. // can be useful for diagnostic purposes.
  4116. //
  4117. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  4118. // it lacked sufficient permissions. For details and example IAM policies, see
  4119. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4120. Cause *string `locationName:"cause" type:"string" required:"true" enum:"RecordMarkerFailedCause"`
  4121. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  4122. // that resulted in the RecordMarkerFailed decision for this cancellation request.
  4123. // This information can be useful for diagnosing problems by tracing back the
  4124. // chain of events leading up to this event.
  4125. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  4126. // The marker's name.
  4127. MarkerName *string `locationName:"markerName" type:"string" required:"true"`
  4128. metadataRecordMarkerFailedEventAttributes `json:"-" xml:"-"`
  4129. }
  4130. type metadataRecordMarkerFailedEventAttributes struct {
  4131. SDKShapeTraits bool `type:"structure"`
  4132. }
  4133. // String returns the string representation
  4134. func (s RecordMarkerFailedEventAttributes) String() string {
  4135. return awsutil.Prettify(s)
  4136. }
  4137. // GoString returns the string representation
  4138. func (s RecordMarkerFailedEventAttributes) GoString() string {
  4139. return s.String()
  4140. }
  4141. type RegisterActivityTypeInput struct {
  4142. // If set, specifies the default maximum time before which a worker processing
  4143. // a task of this type must report progress by calling RecordActivityTaskHeartbeat.
  4144. // If the timeout is exceeded, the activity task is automatically timed out.
  4145. // This default can be overridden when scheduling an activity task using the
  4146. // ScheduleActivityTask decision. If the activity worker subsequently attempts
  4147. // to record a heartbeat or returns a result, the activity worker receives an
  4148. // UnknownResource fault. In this case, Amazon SWF no longer considers the activity
  4149. // task to be valid; the activity worker should clean up the activity task.
  4150. //
  4151. // The duration is specified in seconds; an integer greater than or equal to
  4152. // 0. The value "NONE" can be used to specify unlimited duration.
  4153. DefaultTaskHeartbeatTimeout *string `locationName:"defaultTaskHeartbeatTimeout" type:"string"`
  4154. // If set, specifies the default task list to use for scheduling tasks of this
  4155. // activity type. This default task list is used if a task list is not provided
  4156. // when a task is scheduled through the ScheduleActivityTask decision.
  4157. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  4158. // The default task priority to assign to the activity type. If not assigned,
  4159. // then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE
  4160. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  4161. // higher priority.
  4162. //
  4163. // For more information about setting task priority, see Setting Task Priority
  4164. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  4165. // in the Amazon Simple Workflow Developer Guide.
  4166. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  4167. // If set, specifies the default maximum duration for a task of this activity
  4168. // type. This default can be overridden when scheduling an activity task using
  4169. // the ScheduleActivityTask decision.
  4170. //
  4171. // The duration is specified in seconds; an integer greater than or equal to
  4172. // 0. The value "NONE" can be used to specify unlimited duration.
  4173. DefaultTaskScheduleToCloseTimeout *string `locationName:"defaultTaskScheduleToCloseTimeout" type:"string"`
  4174. // If set, specifies the default maximum duration that a task of this activity
  4175. // type can wait before being assigned to a worker. This default can be overridden
  4176. // when scheduling an activity task using the ScheduleActivityTask decision.
  4177. //
  4178. // The duration is specified in seconds; an integer greater than or equal to
  4179. // 0. The value "NONE" can be used to specify unlimited duration.
  4180. DefaultTaskScheduleToStartTimeout *string `locationName:"defaultTaskScheduleToStartTimeout" type:"string"`
  4181. // If set, specifies the default maximum duration that a worker can take to
  4182. // process tasks of this activity type. This default can be overridden when
  4183. // scheduling an activity task using the ScheduleActivityTask decision.
  4184. //
  4185. // The duration is specified in seconds; an integer greater than or equal to
  4186. // 0. The value "NONE" can be used to specify unlimited duration.
  4187. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  4188. // A textual description of the activity type.
  4189. Description *string `locationName:"description" type:"string"`
  4190. // The name of the domain in which this activity is to be registered.
  4191. Domain *string `locationName:"domain" type:"string" required:"true"`
  4192. // The name of the activity type within the domain.
  4193. //
  4194. // The specified string must not start or end with whitespace. It must not
  4195. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  4196. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  4197. // string quotarnquot.
  4198. Name *string `locationName:"name" type:"string" required:"true"`
  4199. // The version of the activity type.
  4200. //
  4201. // The activity type consists of the name and version, the combination of which
  4202. // must be unique within the domain. The specified string must not start or
  4203. // end with whitespace. It must not contain a : (colon), / (slash), | (vertical
  4204. // bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also,
  4205. // it must not contain the literal string quotarnquot.
  4206. Version *string `locationName:"version" type:"string" required:"true"`
  4207. metadataRegisterActivityTypeInput `json:"-" xml:"-"`
  4208. }
  4209. type metadataRegisterActivityTypeInput struct {
  4210. SDKShapeTraits bool `type:"structure"`
  4211. }
  4212. // String returns the string representation
  4213. func (s RegisterActivityTypeInput) String() string {
  4214. return awsutil.Prettify(s)
  4215. }
  4216. // GoString returns the string representation
  4217. func (s RegisterActivityTypeInput) GoString() string {
  4218. return s.String()
  4219. }
  4220. type RegisterActivityTypeOutput struct {
  4221. metadataRegisterActivityTypeOutput `json:"-" xml:"-"`
  4222. }
  4223. type metadataRegisterActivityTypeOutput struct {
  4224. SDKShapeTraits bool `type:"structure"`
  4225. }
  4226. // String returns the string representation
  4227. func (s RegisterActivityTypeOutput) String() string {
  4228. return awsutil.Prettify(s)
  4229. }
  4230. // GoString returns the string representation
  4231. func (s RegisterActivityTypeOutput) GoString() string {
  4232. return s.String()
  4233. }
  4234. type RegisterDomainInput struct {
  4235. // A text description of the domain.
  4236. Description *string `locationName:"description" type:"string"`
  4237. // Name of the domain to register. The name must be unique in the region that
  4238. // the domain is registered in.
  4239. //
  4240. // The specified string must not start or end with whitespace. It must not
  4241. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  4242. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  4243. // string quotarnquot.
  4244. Name *string `locationName:"name" type:"string" required:"true"`
  4245. // The duration (in days) that records and histories of workflow executions
  4246. // on the domain should be kept by the service. After the retention period,
  4247. // the workflow execution is not available in the results of visibility calls.
  4248. //
  4249. // If you pass the value NONE or 0 (zero), then the workflow execution history
  4250. // will not be retained. As soon as the workflow execution completes, the execution
  4251. // record and its history are deleted.
  4252. //
  4253. // The maximum workflow execution retention period is 90 days. For more information
  4254. // about Amazon SWF service limits, see: Amazon SWF Service Limits (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html)
  4255. // in the Amazon SWF Developer Guide.
  4256. WorkflowExecutionRetentionPeriodInDays *string `locationName:"workflowExecutionRetentionPeriodInDays" type:"string" required:"true"`
  4257. metadataRegisterDomainInput `json:"-" xml:"-"`
  4258. }
  4259. type metadataRegisterDomainInput struct {
  4260. SDKShapeTraits bool `type:"structure"`
  4261. }
  4262. // String returns the string representation
  4263. func (s RegisterDomainInput) String() string {
  4264. return awsutil.Prettify(s)
  4265. }
  4266. // GoString returns the string representation
  4267. func (s RegisterDomainInput) GoString() string {
  4268. return s.String()
  4269. }
  4270. type RegisterDomainOutput struct {
  4271. metadataRegisterDomainOutput `json:"-" xml:"-"`
  4272. }
  4273. type metadataRegisterDomainOutput struct {
  4274. SDKShapeTraits bool `type:"structure"`
  4275. }
  4276. // String returns the string representation
  4277. func (s RegisterDomainOutput) String() string {
  4278. return awsutil.Prettify(s)
  4279. }
  4280. // GoString returns the string representation
  4281. func (s RegisterDomainOutput) GoString() string {
  4282. return s.String()
  4283. }
  4284. type RegisterWorkflowTypeInput struct {
  4285. // If set, specifies the default policy to use for the child workflow executions
  4286. // when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution
  4287. // action explicitly or due to an expired timeout. This default can be overridden
  4288. // when starting a workflow execution using the StartWorkflowExecution action
  4289. // or the StartChildWorkflowExecution decision.
  4290. //
  4291. // The supported child policies are:
  4292. //
  4293. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  4294. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  4295. // event in its history. It is up to the decider to take appropriate actions
  4296. // when it receives an execution history with this event. ABANDON: no action
  4297. // will be taken. The child executions will continue to run.
  4298. DefaultChildPolicy *string `locationName:"defaultChildPolicy" type:"string" enum:"ChildPolicy"`
  4299. // If set, specifies the default maximum duration for executions of this workflow
  4300. // type. You can override this default when starting an execution through the
  4301. // StartWorkflowExecution action or StartChildWorkflowExecution decision.
  4302. //
  4303. // The duration is specified in seconds; an integer greater than or equal to
  4304. // 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot
  4305. // specify a value of "NONE" for defaultExecutionStartToCloseTimeout; there
  4306. // is a one-year max limit on the time that a workflow execution can run. Exceeding
  4307. // this limit will always cause the workflow execution to time out.
  4308. DefaultExecutionStartToCloseTimeout *string `locationName:"defaultExecutionStartToCloseTimeout" type:"string"`
  4309. // The ARN of the default IAM role to use when a workflow execution of this
  4310. // type invokes AWS Lambda functions.
  4311. //
  4312. // This default can be overridden when starting a workflow execution using
  4313. // the StartWorkflowExecution action or the StartChildWorkflowExecution and
  4314. // ContinueAsNewWorkflowExecution decision.
  4315. DefaultLambdaRole *string `locationName:"defaultLambdaRole" type:"string"`
  4316. // If set, specifies the default task list to use for scheduling decision tasks
  4317. // for executions of this workflow type. This default is used only if a task
  4318. // list is not provided when starting the execution through the StartWorkflowExecution
  4319. // action or StartChildWorkflowExecution decision.
  4320. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  4321. // The default task priority to assign to the workflow type. If not assigned,
  4322. // then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE
  4323. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  4324. // higher priority.
  4325. //
  4326. // For more information about setting task priority, see Setting Task Priority
  4327. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  4328. // in the Amazon Simple Workflow Developer Guide.
  4329. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  4330. // If set, specifies the default maximum duration of decision tasks for this
  4331. // workflow type. This default can be overridden when starting a workflow execution
  4332. // using the StartWorkflowExecution action or the StartChildWorkflowExecution
  4333. // decision.
  4334. //
  4335. // The duration is specified in seconds; an integer greater than or equal to
  4336. // 0. The value "NONE" can be used to specify unlimited duration.
  4337. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  4338. // Textual description of the workflow type.
  4339. Description *string `locationName:"description" type:"string"`
  4340. // The name of the domain in which to register the workflow type.
  4341. Domain *string `locationName:"domain" type:"string" required:"true"`
  4342. // The name of the workflow type.
  4343. //
  4344. // The specified string must not start or end with whitespace. It must not
  4345. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  4346. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  4347. // string quotarnquot.
  4348. Name *string `locationName:"name" type:"string" required:"true"`
  4349. // The version of the workflow type.
  4350. //
  4351. // The workflow type consists of the name and version, the combination of which
  4352. // must be unique within the domain. To get a list of all currently registered
  4353. // workflow types, use the ListWorkflowTypes action. The specified string must
  4354. // not start or end with whitespace. It must not contain a : (colon), / (slash),
  4355. // | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f).
  4356. // Also, it must not contain the literal string quotarnquot.
  4357. Version *string `locationName:"version" type:"string" required:"true"`
  4358. metadataRegisterWorkflowTypeInput `json:"-" xml:"-"`
  4359. }
  4360. type metadataRegisterWorkflowTypeInput struct {
  4361. SDKShapeTraits bool `type:"structure"`
  4362. }
  4363. // String returns the string representation
  4364. func (s RegisterWorkflowTypeInput) String() string {
  4365. return awsutil.Prettify(s)
  4366. }
  4367. // GoString returns the string representation
  4368. func (s RegisterWorkflowTypeInput) GoString() string {
  4369. return s.String()
  4370. }
  4371. type RegisterWorkflowTypeOutput struct {
  4372. metadataRegisterWorkflowTypeOutput `json:"-" xml:"-"`
  4373. }
  4374. type metadataRegisterWorkflowTypeOutput struct {
  4375. SDKShapeTraits bool `type:"structure"`
  4376. }
  4377. // String returns the string representation
  4378. func (s RegisterWorkflowTypeOutput) String() string {
  4379. return awsutil.Prettify(s)
  4380. }
  4381. // GoString returns the string representation
  4382. func (s RegisterWorkflowTypeOutput) GoString() string {
  4383. return s.String()
  4384. }
  4385. // Provides details of the RequestCancelActivityTask decision.
  4386. //
  4387. // Access Control
  4388. //
  4389. // You can use IAM policies to control this decision's access to Amazon SWF
  4390. // resources as follows:
  4391. //
  4392. // Use a Resource element with the domain name to limit the action to only
  4393. // specified domains. Use an Action element to allow or deny permission to call
  4394. // this action. You cannot use an IAM policy to constrain this action's parameters.
  4395. // If the caller does not have sufficient permissions to invoke the action,
  4396. // or the parameter values fall outside the specified constraints, the action
  4397. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4398. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4399. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4400. type RequestCancelActivityTaskDecisionAttributes struct {
  4401. // The activityId of the activity task to be canceled.
  4402. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  4403. metadataRequestCancelActivityTaskDecisionAttributes `json:"-" xml:"-"`
  4404. }
  4405. type metadataRequestCancelActivityTaskDecisionAttributes struct {
  4406. SDKShapeTraits bool `type:"structure"`
  4407. }
  4408. // String returns the string representation
  4409. func (s RequestCancelActivityTaskDecisionAttributes) String() string {
  4410. return awsutil.Prettify(s)
  4411. }
  4412. // GoString returns the string representation
  4413. func (s RequestCancelActivityTaskDecisionAttributes) GoString() string {
  4414. return s.String()
  4415. }
  4416. // Provides details of the RequestCancelActivityTaskFailed event.
  4417. type RequestCancelActivityTaskFailedEventAttributes struct {
  4418. // The activityId provided in the RequestCancelActivityTask decision that failed.
  4419. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  4420. // The cause of the failure. This information is generated by the system and
  4421. // can be useful for diagnostic purposes.
  4422. //
  4423. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  4424. // it lacked sufficient permissions. For details and example IAM policies, see
  4425. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4426. Cause *string `locationName:"cause" type:"string" required:"true" enum:"RequestCancelActivityTaskFailedCause"`
  4427. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  4428. // that resulted in the RequestCancelActivityTask decision for this cancellation
  4429. // request. This information can be useful for diagnosing problems by tracing
  4430. // back the chain of events leading up to this event.
  4431. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  4432. metadataRequestCancelActivityTaskFailedEventAttributes `json:"-" xml:"-"`
  4433. }
  4434. type metadataRequestCancelActivityTaskFailedEventAttributes struct {
  4435. SDKShapeTraits bool `type:"structure"`
  4436. }
  4437. // String returns the string representation
  4438. func (s RequestCancelActivityTaskFailedEventAttributes) String() string {
  4439. return awsutil.Prettify(s)
  4440. }
  4441. // GoString returns the string representation
  4442. func (s RequestCancelActivityTaskFailedEventAttributes) GoString() string {
  4443. return s.String()
  4444. }
  4445. // Provides details of the RequestCancelExternalWorkflowExecution decision.
  4446. //
  4447. // Access Control
  4448. //
  4449. // You can use IAM policies to control this decision's access to Amazon SWF
  4450. // resources as follows:
  4451. //
  4452. // Use a Resource element with the domain name to limit the action to only
  4453. // specified domains. Use an Action element to allow or deny permission to call
  4454. // this action. You cannot use an IAM policy to constrain this action's parameters.
  4455. // If the caller does not have sufficient permissions to invoke the action,
  4456. // or the parameter values fall outside the specified constraints, the action
  4457. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4458. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4459. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4460. type RequestCancelExternalWorkflowExecutionDecisionAttributes struct {
  4461. // Optional. Data attached to the event that can be used by the decider in subsequent
  4462. // workflow tasks.
  4463. Control *string `locationName:"control" type:"string"`
  4464. // The runId of the external workflow execution to cancel.
  4465. RunId *string `locationName:"runId" type:"string"`
  4466. // Required. The workflowId of the external workflow execution to cancel.
  4467. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  4468. metadataRequestCancelExternalWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  4469. }
  4470. type metadataRequestCancelExternalWorkflowExecutionDecisionAttributes struct {
  4471. SDKShapeTraits bool `type:"structure"`
  4472. }
  4473. // String returns the string representation
  4474. func (s RequestCancelExternalWorkflowExecutionDecisionAttributes) String() string {
  4475. return awsutil.Prettify(s)
  4476. }
  4477. // GoString returns the string representation
  4478. func (s RequestCancelExternalWorkflowExecutionDecisionAttributes) GoString() string {
  4479. return s.String()
  4480. }
  4481. // Provides details of the RequestCancelExternalWorkflowExecutionFailed event.
  4482. type RequestCancelExternalWorkflowExecutionFailedEventAttributes struct {
  4483. // The cause of the failure. This information is generated by the system and
  4484. // can be useful for diagnostic purposes.
  4485. //
  4486. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  4487. // it lacked sufficient permissions. For details and example IAM policies, see
  4488. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4489. Cause *string `locationName:"cause" type:"string" required:"true" enum:"RequestCancelExternalWorkflowExecutionFailedCause"`
  4490. Control *string `locationName:"control" type:"string"`
  4491. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  4492. // that resulted in the RequestCancelExternalWorkflowExecution decision for
  4493. // this cancellation request. This information can be useful for diagnosing
  4494. // problems by tracing back the chain of events leading up to this event.
  4495. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  4496. // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding
  4497. // to the RequestCancelExternalWorkflowExecution decision to cancel this external
  4498. // workflow execution. This information can be useful for diagnosing problems
  4499. // by tracing back the chain of events leading up to this event.
  4500. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  4501. // The runId of the external workflow execution.
  4502. RunId *string `locationName:"runId" type:"string"`
  4503. // The workflowId of the external workflow to which the cancel request was to
  4504. // be delivered.
  4505. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  4506. metadataRequestCancelExternalWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  4507. }
  4508. type metadataRequestCancelExternalWorkflowExecutionFailedEventAttributes struct {
  4509. SDKShapeTraits bool `type:"structure"`
  4510. }
  4511. // String returns the string representation
  4512. func (s RequestCancelExternalWorkflowExecutionFailedEventAttributes) String() string {
  4513. return awsutil.Prettify(s)
  4514. }
  4515. // GoString returns the string representation
  4516. func (s RequestCancelExternalWorkflowExecutionFailedEventAttributes) GoString() string {
  4517. return s.String()
  4518. }
  4519. // Provides details of the RequestCancelExternalWorkflowExecutionInitiated event.
  4520. type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct {
  4521. // Optional. Data attached to the event that can be used by the decider in subsequent
  4522. // workflow tasks.
  4523. Control *string `locationName:"control" type:"string"`
  4524. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  4525. // that resulted in the RequestCancelExternalWorkflowExecution decision for
  4526. // this cancellation request. This information can be useful for diagnosing
  4527. // problems by tracing back the chain of events leading up to this event.
  4528. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  4529. // The runId of the external workflow execution to be canceled.
  4530. RunId *string `locationName:"runId" type:"string"`
  4531. // The workflowId of the external workflow execution to be canceled.
  4532. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  4533. metadataRequestCancelExternalWorkflowExecutionInitiatedEventAttributes `json:"-" xml:"-"`
  4534. }
  4535. type metadataRequestCancelExternalWorkflowExecutionInitiatedEventAttributes struct {
  4536. SDKShapeTraits bool `type:"structure"`
  4537. }
  4538. // String returns the string representation
  4539. func (s RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) String() string {
  4540. return awsutil.Prettify(s)
  4541. }
  4542. // GoString returns the string representation
  4543. func (s RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) GoString() string {
  4544. return s.String()
  4545. }
  4546. type RequestCancelWorkflowExecutionInput struct {
  4547. // The name of the domain containing the workflow execution to cancel.
  4548. Domain *string `locationName:"domain" type:"string" required:"true"`
  4549. // The runId of the workflow execution to cancel.
  4550. RunId *string `locationName:"runId" type:"string"`
  4551. // The workflowId of the workflow execution to cancel.
  4552. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  4553. metadataRequestCancelWorkflowExecutionInput `json:"-" xml:"-"`
  4554. }
  4555. type metadataRequestCancelWorkflowExecutionInput struct {
  4556. SDKShapeTraits bool `type:"structure"`
  4557. }
  4558. // String returns the string representation
  4559. func (s RequestCancelWorkflowExecutionInput) String() string {
  4560. return awsutil.Prettify(s)
  4561. }
  4562. // GoString returns the string representation
  4563. func (s RequestCancelWorkflowExecutionInput) GoString() string {
  4564. return s.String()
  4565. }
  4566. type RequestCancelWorkflowExecutionOutput struct {
  4567. metadataRequestCancelWorkflowExecutionOutput `json:"-" xml:"-"`
  4568. }
  4569. type metadataRequestCancelWorkflowExecutionOutput struct {
  4570. SDKShapeTraits bool `type:"structure"`
  4571. }
  4572. // String returns the string representation
  4573. func (s RequestCancelWorkflowExecutionOutput) String() string {
  4574. return awsutil.Prettify(s)
  4575. }
  4576. // GoString returns the string representation
  4577. func (s RequestCancelWorkflowExecutionOutput) GoString() string {
  4578. return s.String()
  4579. }
  4580. type RespondActivityTaskCanceledInput struct {
  4581. // Optional. Information about the cancellation.
  4582. Details *string `locationName:"details" type:"string"`
  4583. // The taskToken of the ActivityTask.
  4584. //
  4585. // taskToken is generated by the service and should be treated as an opaque
  4586. // value. If the task is passed to another process, its taskToken must also
  4587. // be passed. This enables it to provide its progress and respond with results.
  4588. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  4589. metadataRespondActivityTaskCanceledInput `json:"-" xml:"-"`
  4590. }
  4591. type metadataRespondActivityTaskCanceledInput struct {
  4592. SDKShapeTraits bool `type:"structure"`
  4593. }
  4594. // String returns the string representation
  4595. func (s RespondActivityTaskCanceledInput) String() string {
  4596. return awsutil.Prettify(s)
  4597. }
  4598. // GoString returns the string representation
  4599. func (s RespondActivityTaskCanceledInput) GoString() string {
  4600. return s.String()
  4601. }
  4602. type RespondActivityTaskCanceledOutput struct {
  4603. metadataRespondActivityTaskCanceledOutput `json:"-" xml:"-"`
  4604. }
  4605. type metadataRespondActivityTaskCanceledOutput struct {
  4606. SDKShapeTraits bool `type:"structure"`
  4607. }
  4608. // String returns the string representation
  4609. func (s RespondActivityTaskCanceledOutput) String() string {
  4610. return awsutil.Prettify(s)
  4611. }
  4612. // GoString returns the string representation
  4613. func (s RespondActivityTaskCanceledOutput) GoString() string {
  4614. return s.String()
  4615. }
  4616. type RespondActivityTaskCompletedInput struct {
  4617. // The result of the activity task. It is a free form string that is implementation
  4618. // specific.
  4619. Result *string `locationName:"result" type:"string"`
  4620. // The taskToken of the ActivityTask.
  4621. //
  4622. // taskToken is generated by the service and should be treated as an opaque
  4623. // value. If the task is passed to another process, its taskToken must also
  4624. // be passed. This enables it to provide its progress and respond with results.
  4625. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  4626. metadataRespondActivityTaskCompletedInput `json:"-" xml:"-"`
  4627. }
  4628. type metadataRespondActivityTaskCompletedInput struct {
  4629. SDKShapeTraits bool `type:"structure"`
  4630. }
  4631. // String returns the string representation
  4632. func (s RespondActivityTaskCompletedInput) String() string {
  4633. return awsutil.Prettify(s)
  4634. }
  4635. // GoString returns the string representation
  4636. func (s RespondActivityTaskCompletedInput) GoString() string {
  4637. return s.String()
  4638. }
  4639. type RespondActivityTaskCompletedOutput struct {
  4640. metadataRespondActivityTaskCompletedOutput `json:"-" xml:"-"`
  4641. }
  4642. type metadataRespondActivityTaskCompletedOutput struct {
  4643. SDKShapeTraits bool `type:"structure"`
  4644. }
  4645. // String returns the string representation
  4646. func (s RespondActivityTaskCompletedOutput) String() string {
  4647. return awsutil.Prettify(s)
  4648. }
  4649. // GoString returns the string representation
  4650. func (s RespondActivityTaskCompletedOutput) GoString() string {
  4651. return s.String()
  4652. }
  4653. type RespondActivityTaskFailedInput struct {
  4654. // Optional. Detailed information about the failure.
  4655. Details *string `locationName:"details" type:"string"`
  4656. // Description of the error that may assist in diagnostics.
  4657. Reason *string `locationName:"reason" type:"string"`
  4658. // The taskToken of the ActivityTask.
  4659. //
  4660. // taskToken is generated by the service and should be treated as an opaque
  4661. // value. If the task is passed to another process, its taskToken must also
  4662. // be passed. This enables it to provide its progress and respond with results.
  4663. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  4664. metadataRespondActivityTaskFailedInput `json:"-" xml:"-"`
  4665. }
  4666. type metadataRespondActivityTaskFailedInput struct {
  4667. SDKShapeTraits bool `type:"structure"`
  4668. }
  4669. // String returns the string representation
  4670. func (s RespondActivityTaskFailedInput) String() string {
  4671. return awsutil.Prettify(s)
  4672. }
  4673. // GoString returns the string representation
  4674. func (s RespondActivityTaskFailedInput) GoString() string {
  4675. return s.String()
  4676. }
  4677. type RespondActivityTaskFailedOutput struct {
  4678. metadataRespondActivityTaskFailedOutput `json:"-" xml:"-"`
  4679. }
  4680. type metadataRespondActivityTaskFailedOutput struct {
  4681. SDKShapeTraits bool `type:"structure"`
  4682. }
  4683. // String returns the string representation
  4684. func (s RespondActivityTaskFailedOutput) String() string {
  4685. return awsutil.Prettify(s)
  4686. }
  4687. // GoString returns the string representation
  4688. func (s RespondActivityTaskFailedOutput) GoString() string {
  4689. return s.String()
  4690. }
  4691. type RespondDecisionTaskCompletedInput struct {
  4692. // The list of decisions (possibly empty) made by the decider while processing
  4693. // this decision task. See the docs for the decision structure for details.
  4694. Decisions []*Decision `locationName:"decisions" type:"list"`
  4695. // User defined context to add to workflow execution.
  4696. ExecutionContext *string `locationName:"executionContext" type:"string"`
  4697. // The taskToken from the DecisionTask.
  4698. //
  4699. // taskToken is generated by the service and should be treated as an opaque
  4700. // value. If the task is passed to another process, its taskToken must also
  4701. // be passed. This enables it to provide its progress and respond with results.
  4702. TaskToken *string `locationName:"taskToken" type:"string" required:"true"`
  4703. metadataRespondDecisionTaskCompletedInput `json:"-" xml:"-"`
  4704. }
  4705. type metadataRespondDecisionTaskCompletedInput struct {
  4706. SDKShapeTraits bool `type:"structure"`
  4707. }
  4708. // String returns the string representation
  4709. func (s RespondDecisionTaskCompletedInput) String() string {
  4710. return awsutil.Prettify(s)
  4711. }
  4712. // GoString returns the string representation
  4713. func (s RespondDecisionTaskCompletedInput) GoString() string {
  4714. return s.String()
  4715. }
  4716. type RespondDecisionTaskCompletedOutput struct {
  4717. metadataRespondDecisionTaskCompletedOutput `json:"-" xml:"-"`
  4718. }
  4719. type metadataRespondDecisionTaskCompletedOutput struct {
  4720. SDKShapeTraits bool `type:"structure"`
  4721. }
  4722. // String returns the string representation
  4723. func (s RespondDecisionTaskCompletedOutput) String() string {
  4724. return awsutil.Prettify(s)
  4725. }
  4726. // GoString returns the string representation
  4727. func (s RespondDecisionTaskCompletedOutput) GoString() string {
  4728. return s.String()
  4729. }
  4730. // Provides details of the ScheduleActivityTask decision.
  4731. //
  4732. // Access Control
  4733. //
  4734. // You can use IAM policies to control this decision's access to Amazon SWF
  4735. // resources as follows:
  4736. //
  4737. // Use a Resource element with the domain name to limit the action to only
  4738. // specified domains. Use an Action element to allow or deny permission to call
  4739. // this action. Constrain the following parameters by using a Condition element
  4740. // with the appropriate keys. activityType.name: String constraint. The key
  4741. // is swf:activityType.name. activityType.version: String constraint. The key
  4742. // is swf:activityType.version. taskList: String constraint. The key is swf:taskList.name.
  4743. // If the caller does not have sufficient permissions to invoke the action,
  4744. // or the parameter values fall outside the specified constraints, the action
  4745. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4746. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4747. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4748. type ScheduleActivityTaskDecisionAttributes struct {
  4749. // Required. The activityId of the activity task.
  4750. //
  4751. // The specified string must not start or end with whitespace. It must not
  4752. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  4753. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  4754. // string quotarnquot.
  4755. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  4756. // Required. The type of the activity task to schedule.
  4757. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  4758. // Optional. Data attached to the event that can be used by the decider in subsequent
  4759. // workflow tasks. This data is not sent to the activity.
  4760. Control *string `locationName:"control" type:"string"`
  4761. // If set, specifies the maximum time before which a worker processing a task
  4762. // of this type must report progress by calling RecordActivityTaskHeartbeat.
  4763. // If the timeout is exceeded, the activity task is automatically timed out.
  4764. // If the worker subsequently attempts to record a heartbeat or returns a result,
  4765. // it will be ignored. This overrides the default heartbeat timeout specified
  4766. // when registering the activity type using RegisterActivityType.
  4767. //
  4768. // The duration is specified in seconds; an integer greater than or equal to
  4769. // 0. The value "NONE" can be used to specify unlimited duration.
  4770. HeartbeatTimeout *string `locationName:"heartbeatTimeout" type:"string"`
  4771. // The input provided to the activity task.
  4772. Input *string `locationName:"input" type:"string"`
  4773. // The maximum duration for this activity task.
  4774. //
  4775. // The duration is specified in seconds; an integer greater than or equal to
  4776. // 0. The value "NONE" can be used to specify unlimited duration.
  4777. //
  4778. // A schedule-to-close timeout for this activity task must be specified either
  4779. // as a default for the activity type or through this field. If neither this
  4780. // field is set nor a default schedule-to-close timeout was specified at registration
  4781. // time then a fault will be returned.
  4782. ScheduleToCloseTimeout *string `locationName:"scheduleToCloseTimeout" type:"string"`
  4783. // Optional. If set, specifies the maximum duration the activity task can wait
  4784. // to be assigned to a worker. This overrides the default schedule-to-start
  4785. // timeout specified when registering the activity type using RegisterActivityType.
  4786. //
  4787. // The duration is specified in seconds; an integer greater than or equal to
  4788. // 0. The value "NONE" can be used to specify unlimited duration.
  4789. //
  4790. // A schedule-to-start timeout for this activity task must be specified either
  4791. // as a default for the activity type or through this field. If neither this
  4792. // field is set nor a default schedule-to-start timeout was specified at registration
  4793. // time then a fault will be returned.
  4794. ScheduleToStartTimeout *string `locationName:"scheduleToStartTimeout" type:"string"`
  4795. // If set, specifies the maximum duration a worker may take to process this
  4796. // activity task. This overrides the default start-to-close timeout specified
  4797. // when registering the activity type using RegisterActivityType.
  4798. //
  4799. // The duration is specified in seconds; an integer greater than or equal to
  4800. // 0. The value "NONE" can be used to specify unlimited duration.
  4801. //
  4802. // A start-to-close timeout for this activity task must be specified either
  4803. // as a default for the activity type or through this field. If neither this
  4804. // field is set nor a default start-to-close timeout was specified at registration
  4805. // time then a fault will be returned.
  4806. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  4807. // If set, specifies the name of the task list in which to schedule the activity
  4808. // task. If not specified, the defaultTaskList registered with the activity
  4809. // type will be used.
  4810. //
  4811. // A task list for this activity task must be specified either as a default
  4812. // for the activity type or through this field. If neither this field is set
  4813. // nor a default task list was specified at registration time then a fault will
  4814. // be returned. The specified string must not start or end with whitespace.
  4815. // It must not contain a : (colon), / (slash), | (vertical bar), or any control
  4816. // characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the
  4817. // literal string quotarnquot.
  4818. TaskList *TaskList `locationName:"taskList" type:"structure"`
  4819. // Optional. If set, specifies the priority with which the activity task is
  4820. // to be assigned to a worker. This overrides the defaultTaskPriority specified
  4821. // when registering the activity type using RegisterActivityType. Valid values
  4822. // are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE
  4823. // (2147483647). Higher numbers indicate higher priority.
  4824. //
  4825. // For more information about setting task priority, see Setting Task Priority
  4826. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  4827. // in the Amazon Simple Workflow Developer Guide.
  4828. TaskPriority *string `locationName:"taskPriority" type:"string"`
  4829. metadataScheduleActivityTaskDecisionAttributes `json:"-" xml:"-"`
  4830. }
  4831. type metadataScheduleActivityTaskDecisionAttributes struct {
  4832. SDKShapeTraits bool `type:"structure"`
  4833. }
  4834. // String returns the string representation
  4835. func (s ScheduleActivityTaskDecisionAttributes) String() string {
  4836. return awsutil.Prettify(s)
  4837. }
  4838. // GoString returns the string representation
  4839. func (s ScheduleActivityTaskDecisionAttributes) GoString() string {
  4840. return s.String()
  4841. }
  4842. // Provides details of the ScheduleActivityTaskFailed event.
  4843. type ScheduleActivityTaskFailedEventAttributes struct {
  4844. // The activityId provided in the ScheduleActivityTask decision that failed.
  4845. ActivityId *string `locationName:"activityId" type:"string" required:"true"`
  4846. // The activity type provided in the ScheduleActivityTask decision that failed.
  4847. ActivityType *ActivityType `locationName:"activityType" type:"structure" required:"true"`
  4848. // The cause of the failure. This information is generated by the system and
  4849. // can be useful for diagnostic purposes.
  4850. //
  4851. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  4852. // it lacked sufficient permissions. For details and example IAM policies, see
  4853. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4854. Cause *string `locationName:"cause" type:"string" required:"true" enum:"ScheduleActivityTaskFailedCause"`
  4855. // The ID of the DecisionTaskCompleted event corresponding to the decision that
  4856. // resulted in the scheduling of this activity task. This information can be
  4857. // useful for diagnosing problems by tracing back the chain of events leading
  4858. // up to this event.
  4859. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  4860. metadataScheduleActivityTaskFailedEventAttributes `json:"-" xml:"-"`
  4861. }
  4862. type metadataScheduleActivityTaskFailedEventAttributes struct {
  4863. SDKShapeTraits bool `type:"structure"`
  4864. }
  4865. // String returns the string representation
  4866. func (s ScheduleActivityTaskFailedEventAttributes) String() string {
  4867. return awsutil.Prettify(s)
  4868. }
  4869. // GoString returns the string representation
  4870. func (s ScheduleActivityTaskFailedEventAttributes) GoString() string {
  4871. return s.String()
  4872. }
  4873. // Provides details of the ScheduleLambdaFunction decision.
  4874. //
  4875. // Access Control
  4876. //
  4877. // You can use IAM policies to control this decision's access to Amazon SWF
  4878. // resources as follows:
  4879. //
  4880. // Use a Resource element with the domain name to limit the action to only
  4881. // specified domains. Use an Action element to allow or deny permission to call
  4882. // this action. Constrain the following parameters by using a Condition element
  4883. // with the appropriate keys. activityType.name: String constraint. The key
  4884. // is swf:activityType.name. activityType.version: String constraint. The key
  4885. // is swf:activityType.version. taskList: String constraint. The key is swf:taskList.name.
  4886. // If the caller does not have sufficient permissions to invoke the action,
  4887. // or the parameter values fall outside the specified constraints, the action
  4888. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4889. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4890. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4891. type ScheduleLambdaFunctionDecisionAttributes struct {
  4892. // Required. The SWF id of the AWS Lambda task.
  4893. //
  4894. // The specified string must not start or end with whitespace. It must not
  4895. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  4896. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  4897. // string quotarnquot.
  4898. Id *string `locationName:"id" type:"string" required:"true"`
  4899. // The input provided to the AWS Lambda function.
  4900. Input *string `locationName:"input" type:"string"`
  4901. // Required. The name of the AWS Lambda function to invoke.
  4902. Name *string `locationName:"name" type:"string" required:"true"`
  4903. // If set, specifies the maximum duration the function may take to execute.
  4904. StartToCloseTimeout *string `locationName:"startToCloseTimeout" type:"string"`
  4905. metadataScheduleLambdaFunctionDecisionAttributes `json:"-" xml:"-"`
  4906. }
  4907. type metadataScheduleLambdaFunctionDecisionAttributes struct {
  4908. SDKShapeTraits bool `type:"structure"`
  4909. }
  4910. // String returns the string representation
  4911. func (s ScheduleLambdaFunctionDecisionAttributes) String() string {
  4912. return awsutil.Prettify(s)
  4913. }
  4914. // GoString returns the string representation
  4915. func (s ScheduleLambdaFunctionDecisionAttributes) GoString() string {
  4916. return s.String()
  4917. }
  4918. // Provides details for the ScheduleLambdaFunctionFailed event.
  4919. type ScheduleLambdaFunctionFailedEventAttributes struct {
  4920. // The cause of the failure. This information is generated by the system and
  4921. // can be useful for diagnostic purposes.
  4922. //
  4923. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  4924. // it lacked sufficient permissions. For details and example IAM policies, see
  4925. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4926. Cause *string `locationName:"cause" type:"string" required:"true" enum:"ScheduleLambdaFunctionFailedCause"`
  4927. // The ID of the DecisionTaskCompleted event corresponding to the decision that
  4928. // resulted in the scheduling of this AWS Lambda function. This information
  4929. // can be useful for diagnosing problems by tracing back the chain of events
  4930. // leading up to this event.
  4931. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  4932. // The unique Amazon SWF ID of the AWS Lambda task.
  4933. Id *string `locationName:"id" type:"string" required:"true"`
  4934. // The name of the scheduled AWS Lambda function.
  4935. Name *string `locationName:"name" type:"string" required:"true"`
  4936. metadataScheduleLambdaFunctionFailedEventAttributes `json:"-" xml:"-"`
  4937. }
  4938. type metadataScheduleLambdaFunctionFailedEventAttributes struct {
  4939. SDKShapeTraits bool `type:"structure"`
  4940. }
  4941. // String returns the string representation
  4942. func (s ScheduleLambdaFunctionFailedEventAttributes) String() string {
  4943. return awsutil.Prettify(s)
  4944. }
  4945. // GoString returns the string representation
  4946. func (s ScheduleLambdaFunctionFailedEventAttributes) GoString() string {
  4947. return s.String()
  4948. }
  4949. // Provides details of the SignalExternalWorkflowExecution decision.
  4950. //
  4951. // Access Control
  4952. //
  4953. // You can use IAM policies to control this decision's access to Amazon SWF
  4954. // resources as follows:
  4955. //
  4956. // Use a Resource element with the domain name to limit the action to only
  4957. // specified domains. Use an Action element to allow or deny permission to call
  4958. // this action. You cannot use an IAM policy to constrain this action's parameters.
  4959. // If the caller does not have sufficient permissions to invoke the action,
  4960. // or the parameter values fall outside the specified constraints, the action
  4961. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  4962. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  4963. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4964. type SignalExternalWorkflowExecutionDecisionAttributes struct {
  4965. // Optional. Data attached to the event that can be used by the decider in subsequent
  4966. // decision tasks.
  4967. Control *string `locationName:"control" type:"string"`
  4968. // Optional. Input data to be provided with the signal. The target workflow
  4969. // execution will use the signal name and input data to process the signal.
  4970. Input *string `locationName:"input" type:"string"`
  4971. // The runId of the workflow execution to be signaled.
  4972. RunId *string `locationName:"runId" type:"string"`
  4973. // Required. The name of the signal.The target workflow execution will use the
  4974. // signal name and input to process the signal.
  4975. SignalName *string `locationName:"signalName" type:"string" required:"true"`
  4976. // Required. The workflowId of the workflow execution to be signaled.
  4977. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  4978. metadataSignalExternalWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  4979. }
  4980. type metadataSignalExternalWorkflowExecutionDecisionAttributes struct {
  4981. SDKShapeTraits bool `type:"structure"`
  4982. }
  4983. // String returns the string representation
  4984. func (s SignalExternalWorkflowExecutionDecisionAttributes) String() string {
  4985. return awsutil.Prettify(s)
  4986. }
  4987. // GoString returns the string representation
  4988. func (s SignalExternalWorkflowExecutionDecisionAttributes) GoString() string {
  4989. return s.String()
  4990. }
  4991. // Provides details of the SignalExternalWorkflowExecutionFailed event.
  4992. type SignalExternalWorkflowExecutionFailedEventAttributes struct {
  4993. // The cause of the failure. This information is generated by the system and
  4994. // can be useful for diagnostic purposes.
  4995. //
  4996. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  4997. // it lacked sufficient permissions. For details and example IAM policies, see
  4998. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  4999. Cause *string `locationName:"cause" type:"string" required:"true" enum:"SignalExternalWorkflowExecutionFailedCause"`
  5000. Control *string `locationName:"control" type:"string"`
  5001. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5002. // that resulted in the SignalExternalWorkflowExecution decision for this signal.
  5003. // This information can be useful for diagnosing problems by tracing back the
  5004. // chain of events leading up to this event.
  5005. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5006. // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding
  5007. // to the SignalExternalWorkflowExecution decision to request this signal. This
  5008. // information can be useful for diagnosing problems by tracing back the chain
  5009. // of events leading up to this event.
  5010. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  5011. // The runId of the external workflow execution that the signal was being delivered
  5012. // to.
  5013. RunId *string `locationName:"runId" type:"string"`
  5014. // The workflowId of the external workflow execution that the signal was being
  5015. // delivered to.
  5016. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5017. metadataSignalExternalWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  5018. }
  5019. type metadataSignalExternalWorkflowExecutionFailedEventAttributes struct {
  5020. SDKShapeTraits bool `type:"structure"`
  5021. }
  5022. // String returns the string representation
  5023. func (s SignalExternalWorkflowExecutionFailedEventAttributes) String() string {
  5024. return awsutil.Prettify(s)
  5025. }
  5026. // GoString returns the string representation
  5027. func (s SignalExternalWorkflowExecutionFailedEventAttributes) GoString() string {
  5028. return s.String()
  5029. }
  5030. // Provides details of the SignalExternalWorkflowExecutionInitiated event.
  5031. type SignalExternalWorkflowExecutionInitiatedEventAttributes struct {
  5032. // Optional. data attached to the event that can be used by the decider in subsequent
  5033. // decision tasks.
  5034. Control *string `locationName:"control" type:"string"`
  5035. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5036. // that resulted in the SignalExternalWorkflowExecution decision for this signal.
  5037. // This information can be useful for diagnosing problems by tracing back the
  5038. // chain of events leading up to this event.
  5039. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5040. // Input provided to the signal (if any).
  5041. Input *string `locationName:"input" type:"string"`
  5042. // The runId of the external workflow execution to send the signal to.
  5043. RunId *string `locationName:"runId" type:"string"`
  5044. // The name of the signal.
  5045. SignalName *string `locationName:"signalName" type:"string" required:"true"`
  5046. // The workflowId of the external workflow execution.
  5047. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5048. metadataSignalExternalWorkflowExecutionInitiatedEventAttributes `json:"-" xml:"-"`
  5049. }
  5050. type metadataSignalExternalWorkflowExecutionInitiatedEventAttributes struct {
  5051. SDKShapeTraits bool `type:"structure"`
  5052. }
  5053. // String returns the string representation
  5054. func (s SignalExternalWorkflowExecutionInitiatedEventAttributes) String() string {
  5055. return awsutil.Prettify(s)
  5056. }
  5057. // GoString returns the string representation
  5058. func (s SignalExternalWorkflowExecutionInitiatedEventAttributes) GoString() string {
  5059. return s.String()
  5060. }
  5061. type SignalWorkflowExecutionInput struct {
  5062. // The name of the domain containing the workflow execution to signal.
  5063. Domain *string `locationName:"domain" type:"string" required:"true"`
  5064. // Data to attach to the WorkflowExecutionSignaled event in the target workflow
  5065. // execution's history.
  5066. Input *string `locationName:"input" type:"string"`
  5067. // The runId of the workflow execution to signal.
  5068. RunId *string `locationName:"runId" type:"string"`
  5069. // The name of the signal. This name must be meaningful to the target workflow.
  5070. SignalName *string `locationName:"signalName" type:"string" required:"true"`
  5071. // The workflowId of the workflow execution to signal.
  5072. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5073. metadataSignalWorkflowExecutionInput `json:"-" xml:"-"`
  5074. }
  5075. type metadataSignalWorkflowExecutionInput struct {
  5076. SDKShapeTraits bool `type:"structure"`
  5077. }
  5078. // String returns the string representation
  5079. func (s SignalWorkflowExecutionInput) String() string {
  5080. return awsutil.Prettify(s)
  5081. }
  5082. // GoString returns the string representation
  5083. func (s SignalWorkflowExecutionInput) GoString() string {
  5084. return s.String()
  5085. }
  5086. type SignalWorkflowExecutionOutput struct {
  5087. metadataSignalWorkflowExecutionOutput `json:"-" xml:"-"`
  5088. }
  5089. type metadataSignalWorkflowExecutionOutput struct {
  5090. SDKShapeTraits bool `type:"structure"`
  5091. }
  5092. // String returns the string representation
  5093. func (s SignalWorkflowExecutionOutput) String() string {
  5094. return awsutil.Prettify(s)
  5095. }
  5096. // GoString returns the string representation
  5097. func (s SignalWorkflowExecutionOutput) GoString() string {
  5098. return s.String()
  5099. }
  5100. // Provides details of the StartChildWorkflowExecution decision.
  5101. //
  5102. // Access Control
  5103. //
  5104. // You can use IAM policies to control this decision's access to Amazon SWF
  5105. // resources as follows:
  5106. //
  5107. // Use a Resource element with the domain name to limit the action to only
  5108. // specified domains. Use an Action element to allow or deny permission to call
  5109. // this action. Constrain the following parameters by using a Condition element
  5110. // with the appropriate keys. tagList.member.N: The key is "swf:tagList.N"
  5111. // where N is the tag number from 0 to 4, inclusive. taskList: String constraint.
  5112. // The key is swf:taskList.name. workflowType.name: String constraint. The key
  5113. // is swf:workflowType.name. workflowType.version: String constraint. The key
  5114. // is swf:workflowType.version. If the caller does not have sufficient permissions
  5115. // to invoke the action, or the parameter values fall outside the specified
  5116. // constraints, the action fails. The associated event attribute's cause parameter
  5117. // will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
  5118. // see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5119. type StartChildWorkflowExecutionDecisionAttributes struct {
  5120. // Optional. If set, specifies the policy to use for the child workflow executions
  5121. // if the workflow execution being started is terminated by calling the TerminateWorkflowExecution
  5122. // action explicitly or due to an expired timeout. This policy overrides the
  5123. // default child policy specified when registering the workflow type using RegisterWorkflowType.
  5124. //
  5125. // The supported child policies are:
  5126. //
  5127. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  5128. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  5129. // event in its history. It is up to the decider to take appropriate actions
  5130. // when it receives an execution history with this event. ABANDON: no action
  5131. // will be taken. The child executions will continue to run. A child policy
  5132. // for this workflow execution must be specified either as a default for the
  5133. // workflow type or through this parameter. If neither this parameter is set
  5134. // nor a default child policy was specified at registration time then a fault
  5135. // will be returned.
  5136. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  5137. // Optional. Data attached to the event that can be used by the decider in subsequent
  5138. // workflow tasks. This data is not sent to the child workflow execution.
  5139. Control *string `locationName:"control" type:"string"`
  5140. // The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout
  5141. // specified when registering the workflow type.
  5142. //
  5143. // The duration is specified in seconds; an integer greater than or equal to
  5144. // 0. The value "NONE" can be used to specify unlimited duration.
  5145. //
  5146. // An execution start-to-close timeout for this workflow execution must be
  5147. // specified either as a default for the workflow type or through this parameter.
  5148. // If neither this parameter is set nor a default execution start-to-close timeout
  5149. // was specified at registration time then a fault will be returned.
  5150. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  5151. // The input to be provided to the workflow execution.
  5152. Input *string `locationName:"input" type:"string"`
  5153. // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
  5154. //
  5155. // In order for this workflow execution to invoke AWS Lambda functions, an
  5156. // appropriate IAM role must be specified either as a default for the workflow
  5157. // type or through this field.
  5158. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  5159. // The list of tags to associate with the child workflow execution. A maximum
  5160. // of 5 tags can be specified. You can list workflow executions with a specific
  5161. // tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions
  5162. // and specifying a TagFilter.
  5163. TagList []*string `locationName:"tagList" type:"list"`
  5164. // The name of the task list to be used for decision tasks of the child workflow
  5165. // execution.
  5166. //
  5167. // A task list for this workflow execution must be specified either as a default
  5168. // for the workflow type or through this parameter. If neither this parameter
  5169. // is set nor a default task list was specified at registration time then a
  5170. // fault will be returned. The specified string must not start or end with whitespace.
  5171. // It must not contain a : (colon), / (slash), | (vertical bar), or any control
  5172. // characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the
  5173. // literal string quotarnquot.
  5174. TaskList *TaskList `locationName:"taskList" type:"structure"`
  5175. // Optional. A task priority that, if set, specifies the priority for a decision
  5176. // task of this workflow execution. This overrides the defaultTaskPriority specified
  5177. // when registering the workflow type. Valid values are integers that range
  5178. // from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647).
  5179. // Higher numbers indicate higher priority.
  5180. //
  5181. // For more information about setting task priority, see Setting Task Priority
  5182. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  5183. // in the Amazon Simple Workflow Developer Guide.
  5184. TaskPriority *string `locationName:"taskPriority" type:"string"`
  5185. // Specifies the maximum duration of decision tasks for this workflow execution.
  5186. // This parameter overrides the defaultTaskStartToCloseTimout specified when
  5187. // registering the workflow type using RegisterWorkflowType.
  5188. //
  5189. // The duration is specified in seconds; an integer greater than or equal to
  5190. // 0. The value "NONE" can be used to specify unlimited duration.
  5191. //
  5192. // A task start-to-close timeout for this workflow execution must be specified
  5193. // either as a default for the workflow type or through this parameter. If neither
  5194. // this parameter is set nor a default task start-to-close timeout was specified
  5195. // at registration time then a fault will be returned.
  5196. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  5197. // Required. The workflowId of the workflow execution.
  5198. //
  5199. // The specified string must not start or end with whitespace. It must not
  5200. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  5201. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  5202. // string quotarnquot.
  5203. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5204. // Required. The type of the workflow execution to be started.
  5205. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  5206. metadataStartChildWorkflowExecutionDecisionAttributes `json:"-" xml:"-"`
  5207. }
  5208. type metadataStartChildWorkflowExecutionDecisionAttributes struct {
  5209. SDKShapeTraits bool `type:"structure"`
  5210. }
  5211. // String returns the string representation
  5212. func (s StartChildWorkflowExecutionDecisionAttributes) String() string {
  5213. return awsutil.Prettify(s)
  5214. }
  5215. // GoString returns the string representation
  5216. func (s StartChildWorkflowExecutionDecisionAttributes) GoString() string {
  5217. return s.String()
  5218. }
  5219. // Provides details of the StartChildWorkflowExecutionFailed event.
  5220. type StartChildWorkflowExecutionFailedEventAttributes struct {
  5221. // The cause of the failure. This information is generated by the system and
  5222. // can be useful for diagnostic purposes.
  5223. //
  5224. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  5225. // it lacked sufficient permissions. For details and example IAM policies, see
  5226. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5227. Cause *string `locationName:"cause" type:"string" required:"true" enum:"StartChildWorkflowExecutionFailedCause"`
  5228. Control *string `locationName:"control" type:"string"`
  5229. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5230. // that resulted in the StartChildWorkflowExecution decision to request this
  5231. // child workflow execution. This information can be useful for diagnosing problems
  5232. // by tracing back the cause of events.
  5233. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5234. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  5235. // the StartChildWorkflowExecution decision to start this child workflow execution.
  5236. // This information can be useful for diagnosing problems by tracing back the
  5237. // chain of events leading up to this event.
  5238. InitiatedEventId *int64 `locationName:"initiatedEventId" type:"long" required:"true"`
  5239. // The workflowId of the child workflow execution.
  5240. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5241. // The workflow type provided in the StartChildWorkflowExecution decision that
  5242. // failed.
  5243. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  5244. metadataStartChildWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  5245. }
  5246. type metadataStartChildWorkflowExecutionFailedEventAttributes struct {
  5247. SDKShapeTraits bool `type:"structure"`
  5248. }
  5249. // String returns the string representation
  5250. func (s StartChildWorkflowExecutionFailedEventAttributes) String() string {
  5251. return awsutil.Prettify(s)
  5252. }
  5253. // GoString returns the string representation
  5254. func (s StartChildWorkflowExecutionFailedEventAttributes) GoString() string {
  5255. return s.String()
  5256. }
  5257. // Provides details of the StartChildWorkflowExecutionInitiated event.
  5258. type StartChildWorkflowExecutionInitiatedEventAttributes struct {
  5259. // The policy to use for the child workflow executions if this execution gets
  5260. // terminated by explicitly calling the TerminateWorkflowExecution action or
  5261. // due to an expired timeout.
  5262. //
  5263. // The supported child policies are:
  5264. //
  5265. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  5266. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  5267. // event in its history. It is up to the decider to take appropriate actions
  5268. // when it receives an execution history with this event. ABANDON: no action
  5269. // will be taken. The child executions will continue to run.
  5270. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  5271. // Optional. Data attached to the event that can be used by the decider in subsequent
  5272. // decision tasks. This data is not sent to the activity.
  5273. Control *string `locationName:"control" type:"string"`
  5274. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5275. // that resulted in the StartChildWorkflowExecution decision to request this
  5276. // child workflow execution. This information can be useful for diagnosing problems
  5277. // by tracing back the cause of events.
  5278. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5279. // The maximum duration for the child workflow execution. If the workflow execution
  5280. // is not closed within this duration, it will be timed out and force terminated.
  5281. //
  5282. // The duration is specified in seconds; an integer greater than or equal to
  5283. // 0. The value "NONE" can be used to specify unlimited duration.
  5284. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  5285. // The inputs provided to the child workflow execution (if any).
  5286. Input *string `locationName:"input" type:"string"`
  5287. // The IAM role attached to this workflow execution to use when invoking AWS
  5288. // Lambda functions.
  5289. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  5290. // The list of tags to associated with the child workflow execution.
  5291. TagList []*string `locationName:"tagList" type:"list"`
  5292. // The name of the task list used for the decision tasks of the child workflow
  5293. // execution.
  5294. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  5295. // Optional. The priority assigned for the decision tasks for this workflow
  5296. // execution. Valid values are integers that range from Java's Integer.MIN_VALUE
  5297. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  5298. // higher priority.
  5299. //
  5300. // For more information about setting task priority, see Setting Task Priority
  5301. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  5302. // in the Amazon Simple Workflow Developer Guide.
  5303. TaskPriority *string `locationName:"taskPriority" type:"string"`
  5304. // The maximum duration allowed for the decision tasks for this workflow execution.
  5305. //
  5306. // The duration is specified in seconds; an integer greater than or equal to
  5307. // 0. The value "NONE" can be used to specify unlimited duration.
  5308. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  5309. // The workflowId of the child workflow execution.
  5310. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5311. // The type of the child workflow execution.
  5312. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  5313. metadataStartChildWorkflowExecutionInitiatedEventAttributes `json:"-" xml:"-"`
  5314. }
  5315. type metadataStartChildWorkflowExecutionInitiatedEventAttributes struct {
  5316. SDKShapeTraits bool `type:"structure"`
  5317. }
  5318. // String returns the string representation
  5319. func (s StartChildWorkflowExecutionInitiatedEventAttributes) String() string {
  5320. return awsutil.Prettify(s)
  5321. }
  5322. // GoString returns the string representation
  5323. func (s StartChildWorkflowExecutionInitiatedEventAttributes) GoString() string {
  5324. return s.String()
  5325. }
  5326. // Provides details for the StartLambdaFunctionFailed event.
  5327. type StartLambdaFunctionFailedEventAttributes struct {
  5328. // The cause of the failure. This information is generated by the system and
  5329. // can be useful for diagnostic purposes.
  5330. //
  5331. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  5332. // it lacked sufficient permissions. For details and example IAM policies, see
  5333. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5334. Cause *string `locationName:"cause" type:"string" enum:"StartLambdaFunctionFailedCause"`
  5335. // The error message (if any).
  5336. Message *string `locationName:"message" type:"string"`
  5337. // The ID of the LambdaFunctionScheduled event that was recorded when this AWS
  5338. // Lambda function was scheduled. This information can be useful for diagnosing
  5339. // problems by tracing back the chain of events leading up to this event.
  5340. ScheduledEventId *int64 `locationName:"scheduledEventId" type:"long"`
  5341. metadataStartLambdaFunctionFailedEventAttributes `json:"-" xml:"-"`
  5342. }
  5343. type metadataStartLambdaFunctionFailedEventAttributes struct {
  5344. SDKShapeTraits bool `type:"structure"`
  5345. }
  5346. // String returns the string representation
  5347. func (s StartLambdaFunctionFailedEventAttributes) String() string {
  5348. return awsutil.Prettify(s)
  5349. }
  5350. // GoString returns the string representation
  5351. func (s StartLambdaFunctionFailedEventAttributes) GoString() string {
  5352. return s.String()
  5353. }
  5354. // Provides details of the StartTimer decision.
  5355. //
  5356. // Access Control
  5357. //
  5358. // You can use IAM policies to control this decision's access to Amazon SWF
  5359. // resources as follows:
  5360. //
  5361. // Use a Resource element with the domain name to limit the action to only
  5362. // specified domains. Use an Action element to allow or deny permission to call
  5363. // this action. You cannot use an IAM policy to constrain this action's parameters.
  5364. // If the caller does not have sufficient permissions to invoke the action,
  5365. // or the parameter values fall outside the specified constraints, the action
  5366. // fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
  5367. // For details and example IAM policies, see Using IAM to Manage Access to Amazon
  5368. // SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5369. type StartTimerDecisionAttributes struct {
  5370. // Optional. Data attached to the event that can be used by the decider in subsequent
  5371. // workflow tasks.
  5372. Control *string `locationName:"control" type:"string"`
  5373. // Required. The duration to wait before firing the timer.
  5374. //
  5375. // The duration is specified in seconds; an integer greater than or equal to
  5376. // 0.
  5377. StartToFireTimeout *string `locationName:"startToFireTimeout" type:"string" required:"true"`
  5378. // Required. The unique ID of the timer.
  5379. //
  5380. // The specified string must not start or end with whitespace. It must not
  5381. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  5382. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  5383. // string quotarnquot.
  5384. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  5385. metadataStartTimerDecisionAttributes `json:"-" xml:"-"`
  5386. }
  5387. type metadataStartTimerDecisionAttributes struct {
  5388. SDKShapeTraits bool `type:"structure"`
  5389. }
  5390. // String returns the string representation
  5391. func (s StartTimerDecisionAttributes) String() string {
  5392. return awsutil.Prettify(s)
  5393. }
  5394. // GoString returns the string representation
  5395. func (s StartTimerDecisionAttributes) GoString() string {
  5396. return s.String()
  5397. }
  5398. // Provides details of the StartTimerFailed event.
  5399. type StartTimerFailedEventAttributes struct {
  5400. // The cause of the failure. This information is generated by the system and
  5401. // can be useful for diagnostic purposes.
  5402. //
  5403. // If cause is set to OPERATION_NOT_PERMITTED, the decision failed because
  5404. // it lacked sufficient permissions. For details and example IAM policies, see
  5405. // Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
  5406. Cause *string `locationName:"cause" type:"string" required:"true" enum:"StartTimerFailedCause"`
  5407. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5408. // that resulted in the StartTimer decision for this activity task. This information
  5409. // can be useful for diagnosing problems by tracing back the chain of events
  5410. // leading up to this event.
  5411. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5412. // The timerId provided in the StartTimer decision that failed.
  5413. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  5414. metadataStartTimerFailedEventAttributes `json:"-" xml:"-"`
  5415. }
  5416. type metadataStartTimerFailedEventAttributes struct {
  5417. SDKShapeTraits bool `type:"structure"`
  5418. }
  5419. // String returns the string representation
  5420. func (s StartTimerFailedEventAttributes) String() string {
  5421. return awsutil.Prettify(s)
  5422. }
  5423. // GoString returns the string representation
  5424. func (s StartTimerFailedEventAttributes) GoString() string {
  5425. return s.String()
  5426. }
  5427. type StartWorkflowExecutionInput struct {
  5428. // If set, specifies the policy to use for the child workflow executions of
  5429. // this workflow execution if it is terminated, by calling the TerminateWorkflowExecution
  5430. // action explicitly or due to an expired timeout. This policy overrides the
  5431. // default child policy specified when registering the workflow type using RegisterWorkflowType.
  5432. //
  5433. // The supported child policies are:
  5434. //
  5435. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  5436. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  5437. // event in its history. It is up to the decider to take appropriate actions
  5438. // when it receives an execution history with this event. ABANDON: no action
  5439. // will be taken. The child executions will continue to run. A child policy
  5440. // for this workflow execution must be specified either as a default for the
  5441. // workflow type or through this parameter. If neither this parameter is set
  5442. // nor a default child policy was specified at registration time then a fault
  5443. // will be returned.
  5444. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  5445. // The name of the domain in which the workflow execution is created.
  5446. Domain *string `locationName:"domain" type:"string" required:"true"`
  5447. // The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout
  5448. // specified when registering the workflow type.
  5449. //
  5450. // The duration is specified in seconds; an integer greater than or equal to
  5451. // 0. Exceeding this limit will cause the workflow execution to time out. Unlike
  5452. // some of the other timeout parameters in Amazon SWF, you cannot specify a
  5453. // value of "NONE" for this timeout; there is a one-year max limit on the time
  5454. // that a workflow execution can run.
  5455. //
  5456. // An execution start-to-close timeout must be specified either through this
  5457. // parameter or as a default when the workflow type is registered. If neither
  5458. // this parameter nor a default execution start-to-close timeout is specified,
  5459. // a fault is returned.
  5460. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  5461. // The input for the workflow execution. This is a free form string which should
  5462. // be meaningful to the workflow you are starting. This input is made available
  5463. // to the new workflow execution in the WorkflowExecutionStarted history event.
  5464. Input *string `locationName:"input" type:"string"`
  5465. // The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
  5466. //
  5467. // In order for this workflow execution to invoke AWS Lambda functions, an
  5468. // appropriate IAM role must be specified either as a default for the workflow
  5469. // type or through this field.
  5470. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  5471. // The list of tags to associate with the workflow execution. You can specify
  5472. // a maximum of 5 tags. You can list workflow executions with a specific tag
  5473. // by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and
  5474. // specifying a TagFilter.
  5475. TagList []*string `locationName:"tagList" type:"list"`
  5476. // The task list to use for the decision tasks generated for this workflow execution.
  5477. // This overrides the defaultTaskList specified when registering the workflow
  5478. // type.
  5479. //
  5480. // A task list for this workflow execution must be specified either as a default
  5481. // for the workflow type or through this parameter. If neither this parameter
  5482. // is set nor a default task list was specified at registration time then a
  5483. // fault will be returned. The specified string must not start or end with whitespace.
  5484. // It must not contain a : (colon), / (slash), | (vertical bar), or any control
  5485. // characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the
  5486. // literal string quotarnquot.
  5487. TaskList *TaskList `locationName:"taskList" type:"structure"`
  5488. // The task priority to use for this workflow execution. This will override
  5489. // any default priority that was assigned when the workflow type was registered.
  5490. // If not set, then the default task priority for the workflow type will be
  5491. // used. Valid values are integers that range from Java's Integer.MIN_VALUE
  5492. // (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate
  5493. // higher priority.
  5494. //
  5495. // For more information about setting task priority, see Setting Task Priority
  5496. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  5497. // in the Amazon Simple Workflow Developer Guide.
  5498. TaskPriority *string `locationName:"taskPriority" type:"string"`
  5499. // Specifies the maximum duration of decision tasks for this workflow execution.
  5500. // This parameter overrides the defaultTaskStartToCloseTimout specified when
  5501. // registering the workflow type using RegisterWorkflowType.
  5502. //
  5503. // The duration is specified in seconds; an integer greater than or equal to
  5504. // 0. The value "NONE" can be used to specify unlimited duration.
  5505. //
  5506. // A task start-to-close timeout for this workflow execution must be specified
  5507. // either as a default for the workflow type or through this parameter. If neither
  5508. // this parameter is set nor a default task start-to-close timeout was specified
  5509. // at registration time then a fault will be returned.
  5510. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  5511. // The user defined identifier associated with the workflow execution. You can
  5512. // use this to associate a custom identifier with the workflow execution. You
  5513. // may specify the same identifier if a workflow execution is logically a restart
  5514. // of a previous execution. You cannot have two open workflow executions with
  5515. // the same workflowId at the same time.
  5516. //
  5517. // The specified string must not start or end with whitespace. It must not
  5518. // contain a : (colon), / (slash), | (vertical bar), or any control characters
  5519. // (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal
  5520. // string quotarnquot.
  5521. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5522. // The type of the workflow to start.
  5523. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  5524. metadataStartWorkflowExecutionInput `json:"-" xml:"-"`
  5525. }
  5526. type metadataStartWorkflowExecutionInput struct {
  5527. SDKShapeTraits bool `type:"structure"`
  5528. }
  5529. // String returns the string representation
  5530. func (s StartWorkflowExecutionInput) String() string {
  5531. return awsutil.Prettify(s)
  5532. }
  5533. // GoString returns the string representation
  5534. func (s StartWorkflowExecutionInput) GoString() string {
  5535. return s.String()
  5536. }
  5537. // Specifies the runId of a workflow execution.
  5538. type StartWorkflowExecutionOutput struct {
  5539. // The runId of a workflow execution. This ID is generated by the service and
  5540. // can be used to uniquely identify the workflow execution within a domain.
  5541. RunId *string `locationName:"runId" type:"string"`
  5542. metadataStartWorkflowExecutionOutput `json:"-" xml:"-"`
  5543. }
  5544. type metadataStartWorkflowExecutionOutput struct {
  5545. SDKShapeTraits bool `type:"structure"`
  5546. }
  5547. // String returns the string representation
  5548. func (s StartWorkflowExecutionOutput) String() string {
  5549. return awsutil.Prettify(s)
  5550. }
  5551. // GoString returns the string representation
  5552. func (s StartWorkflowExecutionOutput) GoString() string {
  5553. return s.String()
  5554. }
  5555. // Used to filter the workflow executions in visibility APIs based on a tag.
  5556. type TagFilter struct {
  5557. // Required. Specifies the tag that must be associated with the execution for
  5558. // it to meet the filter criteria.
  5559. Tag *string `locationName:"tag" type:"string" required:"true"`
  5560. metadataTagFilter `json:"-" xml:"-"`
  5561. }
  5562. type metadataTagFilter struct {
  5563. SDKShapeTraits bool `type:"structure"`
  5564. }
  5565. // String returns the string representation
  5566. func (s TagFilter) String() string {
  5567. return awsutil.Prettify(s)
  5568. }
  5569. // GoString returns the string representation
  5570. func (s TagFilter) GoString() string {
  5571. return s.String()
  5572. }
  5573. // Represents a task list.
  5574. type TaskList struct {
  5575. // The name of the task list.
  5576. Name *string `locationName:"name" type:"string" required:"true"`
  5577. metadataTaskList `json:"-" xml:"-"`
  5578. }
  5579. type metadataTaskList struct {
  5580. SDKShapeTraits bool `type:"structure"`
  5581. }
  5582. // String returns the string representation
  5583. func (s TaskList) String() string {
  5584. return awsutil.Prettify(s)
  5585. }
  5586. // GoString returns the string representation
  5587. func (s TaskList) GoString() string {
  5588. return s.String()
  5589. }
  5590. type TerminateWorkflowExecutionInput struct {
  5591. // If set, specifies the policy to use for the child workflow executions of
  5592. // the workflow execution being terminated. This policy overrides the child
  5593. // policy specified for the workflow execution at registration time or when
  5594. // starting the execution.
  5595. //
  5596. // The supported child policies are:
  5597. //
  5598. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  5599. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  5600. // event in its history. It is up to the decider to take appropriate actions
  5601. // when it receives an execution history with this event. ABANDON: no action
  5602. // will be taken. The child executions will continue to run. A child policy
  5603. // for this workflow execution must be specified either as a default for the
  5604. // workflow type or through this parameter. If neither this parameter is set
  5605. // nor a default child policy was specified at registration time then a fault
  5606. // will be returned.
  5607. ChildPolicy *string `locationName:"childPolicy" type:"string" enum:"ChildPolicy"`
  5608. // Optional. Details for terminating the workflow execution.
  5609. Details *string `locationName:"details" type:"string"`
  5610. // The domain of the workflow execution to terminate.
  5611. Domain *string `locationName:"domain" type:"string" required:"true"`
  5612. // Optional. A descriptive reason for terminating the workflow execution.
  5613. Reason *string `locationName:"reason" type:"string"`
  5614. // The runId of the workflow execution to terminate.
  5615. RunId *string `locationName:"runId" type:"string"`
  5616. // The workflowId of the workflow execution to terminate.
  5617. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5618. metadataTerminateWorkflowExecutionInput `json:"-" xml:"-"`
  5619. }
  5620. type metadataTerminateWorkflowExecutionInput struct {
  5621. SDKShapeTraits bool `type:"structure"`
  5622. }
  5623. // String returns the string representation
  5624. func (s TerminateWorkflowExecutionInput) String() string {
  5625. return awsutil.Prettify(s)
  5626. }
  5627. // GoString returns the string representation
  5628. func (s TerminateWorkflowExecutionInput) GoString() string {
  5629. return s.String()
  5630. }
  5631. type TerminateWorkflowExecutionOutput struct {
  5632. metadataTerminateWorkflowExecutionOutput `json:"-" xml:"-"`
  5633. }
  5634. type metadataTerminateWorkflowExecutionOutput struct {
  5635. SDKShapeTraits bool `type:"structure"`
  5636. }
  5637. // String returns the string representation
  5638. func (s TerminateWorkflowExecutionOutput) String() string {
  5639. return awsutil.Prettify(s)
  5640. }
  5641. // GoString returns the string representation
  5642. func (s TerminateWorkflowExecutionOutput) GoString() string {
  5643. return s.String()
  5644. }
  5645. // Provides details of the TimerCanceled event.
  5646. type TimerCanceledEventAttributes struct {
  5647. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5648. // that resulted in the CancelTimer decision to cancel this timer. This information
  5649. // can be useful for diagnosing problems by tracing back the chain of events
  5650. // leading up to this event.
  5651. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5652. // The ID of the TimerStarted event that was recorded when this timer was started.
  5653. // This information can be useful for diagnosing problems by tracing back the
  5654. // chain of events leading up to this event.
  5655. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  5656. // The unique ID of the timer that was canceled.
  5657. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  5658. metadataTimerCanceledEventAttributes `json:"-" xml:"-"`
  5659. }
  5660. type metadataTimerCanceledEventAttributes struct {
  5661. SDKShapeTraits bool `type:"structure"`
  5662. }
  5663. // String returns the string representation
  5664. func (s TimerCanceledEventAttributes) String() string {
  5665. return awsutil.Prettify(s)
  5666. }
  5667. // GoString returns the string representation
  5668. func (s TimerCanceledEventAttributes) GoString() string {
  5669. return s.String()
  5670. }
  5671. // Provides details of the TimerFired event.
  5672. type TimerFiredEventAttributes struct {
  5673. // The ID of the TimerStarted event that was recorded when this timer was started.
  5674. // This information can be useful for diagnosing problems by tracing back the
  5675. // chain of events leading up to this event.
  5676. StartedEventId *int64 `locationName:"startedEventId" type:"long" required:"true"`
  5677. // The unique ID of the timer that fired.
  5678. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  5679. metadataTimerFiredEventAttributes `json:"-" xml:"-"`
  5680. }
  5681. type metadataTimerFiredEventAttributes struct {
  5682. SDKShapeTraits bool `type:"structure"`
  5683. }
  5684. // String returns the string representation
  5685. func (s TimerFiredEventAttributes) String() string {
  5686. return awsutil.Prettify(s)
  5687. }
  5688. // GoString returns the string representation
  5689. func (s TimerFiredEventAttributes) GoString() string {
  5690. return s.String()
  5691. }
  5692. // Provides details of the TimerStarted event.
  5693. type TimerStartedEventAttributes struct {
  5694. // Optional. Data attached to the event that can be used by the decider in subsequent
  5695. // workflow tasks.
  5696. Control *string `locationName:"control" type:"string"`
  5697. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5698. // that resulted in the StartTimer decision for this activity task. This information
  5699. // can be useful for diagnosing problems by tracing back the chain of events
  5700. // leading up to this event.
  5701. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5702. // The duration of time after which the timer will fire.
  5703. //
  5704. // The duration is specified in seconds; an integer greater than or equal to
  5705. // 0.
  5706. StartToFireTimeout *string `locationName:"startToFireTimeout" type:"string" required:"true"`
  5707. // The unique ID of the timer that was started.
  5708. TimerId *string `locationName:"timerId" type:"string" required:"true"`
  5709. metadataTimerStartedEventAttributes `json:"-" xml:"-"`
  5710. }
  5711. type metadataTimerStartedEventAttributes struct {
  5712. SDKShapeTraits bool `type:"structure"`
  5713. }
  5714. // String returns the string representation
  5715. func (s TimerStartedEventAttributes) String() string {
  5716. return awsutil.Prettify(s)
  5717. }
  5718. // GoString returns the string representation
  5719. func (s TimerStartedEventAttributes) GoString() string {
  5720. return s.String()
  5721. }
  5722. // Represents a workflow execution.
  5723. type WorkflowExecution struct {
  5724. // A system-generated unique identifier for the workflow execution.
  5725. RunId *string `locationName:"runId" type:"string" required:"true"`
  5726. // The user defined identifier associated with the workflow execution.
  5727. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5728. metadataWorkflowExecution `json:"-" xml:"-"`
  5729. }
  5730. type metadataWorkflowExecution struct {
  5731. SDKShapeTraits bool `type:"structure"`
  5732. }
  5733. // String returns the string representation
  5734. func (s WorkflowExecution) String() string {
  5735. return awsutil.Prettify(s)
  5736. }
  5737. // GoString returns the string representation
  5738. func (s WorkflowExecution) GoString() string {
  5739. return s.String()
  5740. }
  5741. // Provides details of the WorkflowExecutionCancelRequested event.
  5742. type WorkflowExecutionCancelRequestedEventAttributes struct {
  5743. // If set, indicates that the request to cancel the workflow execution was automatically
  5744. // generated, and specifies the cause. This happens if the parent workflow execution
  5745. // times out or is terminated, and the child policy is set to cancel child executions.
  5746. Cause *string `locationName:"cause" type:"string" enum:"WorkflowExecutionCancelRequestedCause"`
  5747. // The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding
  5748. // to the RequestCancelExternalWorkflowExecution decision to cancel this workflow
  5749. // execution.The source event with this ID can be found in the history of the
  5750. // source workflow execution. This information can be useful for diagnosing
  5751. // problems by tracing back the chain of events leading up to this event.
  5752. ExternalInitiatedEventId *int64 `locationName:"externalInitiatedEventId" type:"long"`
  5753. // The external workflow execution for which the cancellation was requested.
  5754. ExternalWorkflowExecution *WorkflowExecution `locationName:"externalWorkflowExecution" type:"structure"`
  5755. metadataWorkflowExecutionCancelRequestedEventAttributes `json:"-" xml:"-"`
  5756. }
  5757. type metadataWorkflowExecutionCancelRequestedEventAttributes struct {
  5758. SDKShapeTraits bool `type:"structure"`
  5759. }
  5760. // String returns the string representation
  5761. func (s WorkflowExecutionCancelRequestedEventAttributes) String() string {
  5762. return awsutil.Prettify(s)
  5763. }
  5764. // GoString returns the string representation
  5765. func (s WorkflowExecutionCancelRequestedEventAttributes) GoString() string {
  5766. return s.String()
  5767. }
  5768. // Provides details of the WorkflowExecutionCanceled event.
  5769. type WorkflowExecutionCanceledEventAttributes struct {
  5770. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5771. // that resulted in the CancelWorkflowExecution decision for this cancellation
  5772. // request. This information can be useful for diagnosing problems by tracing
  5773. // back the chain of events leading up to this event.
  5774. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5775. // Details for the cancellation (if any).
  5776. Details *string `locationName:"details" type:"string"`
  5777. metadataWorkflowExecutionCanceledEventAttributes `json:"-" xml:"-"`
  5778. }
  5779. type metadataWorkflowExecutionCanceledEventAttributes struct {
  5780. SDKShapeTraits bool `type:"structure"`
  5781. }
  5782. // String returns the string representation
  5783. func (s WorkflowExecutionCanceledEventAttributes) String() string {
  5784. return awsutil.Prettify(s)
  5785. }
  5786. // GoString returns the string representation
  5787. func (s WorkflowExecutionCanceledEventAttributes) GoString() string {
  5788. return s.String()
  5789. }
  5790. // Provides details of the WorkflowExecutionCompleted event.
  5791. type WorkflowExecutionCompletedEventAttributes struct {
  5792. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5793. // that resulted in the CompleteWorkflowExecution decision to complete this
  5794. // execution. This information can be useful for diagnosing problems by tracing
  5795. // back the chain of events leading up to this event.
  5796. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5797. // The result produced by the workflow execution upon successful completion.
  5798. Result *string `locationName:"result" type:"string"`
  5799. metadataWorkflowExecutionCompletedEventAttributes `json:"-" xml:"-"`
  5800. }
  5801. type metadataWorkflowExecutionCompletedEventAttributes struct {
  5802. SDKShapeTraits bool `type:"structure"`
  5803. }
  5804. // String returns the string representation
  5805. func (s WorkflowExecutionCompletedEventAttributes) String() string {
  5806. return awsutil.Prettify(s)
  5807. }
  5808. // GoString returns the string representation
  5809. func (s WorkflowExecutionCompletedEventAttributes) GoString() string {
  5810. return s.String()
  5811. }
  5812. // The configuration settings for a workflow execution including timeout values,
  5813. // tasklist etc. These configuration settings are determined from the defaults
  5814. // specified when registering the workflow type and those specified when starting
  5815. // the workflow execution.
  5816. type WorkflowExecutionConfiguration struct {
  5817. // The policy to use for the child workflow executions if this workflow execution
  5818. // is terminated, by calling the TerminateWorkflowExecution action explicitly
  5819. // or due to an expired timeout.
  5820. //
  5821. // The supported child policies are:
  5822. //
  5823. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  5824. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  5825. // event in its history. It is up to the decider to take appropriate actions
  5826. // when it receives an execution history with this event. ABANDON: no action
  5827. // will be taken. The child executions will continue to run.
  5828. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  5829. // The total duration for this workflow execution.
  5830. //
  5831. // The duration is specified in seconds; an integer greater than or equal to
  5832. // 0. The value "NONE" can be used to specify unlimited duration.
  5833. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string" required:"true"`
  5834. // The IAM role used by this workflow execution when invoking AWS Lambda functions.
  5835. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  5836. // The task list used for the decision tasks generated for this workflow execution.
  5837. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  5838. // The priority assigned to decision tasks for this workflow execution. Valid
  5839. // values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  5840. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  5841. //
  5842. // For more information about setting task priority, see Setting Task Priority
  5843. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  5844. // in the Amazon Simple Workflow Developer Guide.
  5845. TaskPriority *string `locationName:"taskPriority" type:"string"`
  5846. // The maximum duration allowed for decision tasks for this workflow execution.
  5847. //
  5848. // The duration is specified in seconds; an integer greater than or equal to
  5849. // 0. The value "NONE" can be used to specify unlimited duration.
  5850. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string" required:"true"`
  5851. metadataWorkflowExecutionConfiguration `json:"-" xml:"-"`
  5852. }
  5853. type metadataWorkflowExecutionConfiguration struct {
  5854. SDKShapeTraits bool `type:"structure"`
  5855. }
  5856. // String returns the string representation
  5857. func (s WorkflowExecutionConfiguration) String() string {
  5858. return awsutil.Prettify(s)
  5859. }
  5860. // GoString returns the string representation
  5861. func (s WorkflowExecutionConfiguration) GoString() string {
  5862. return s.String()
  5863. }
  5864. // Provides details of the WorkflowExecutionContinuedAsNew event.
  5865. type WorkflowExecutionContinuedAsNewEventAttributes struct {
  5866. // The policy to use for the child workflow executions of the new execution
  5867. // if it is terminated by calling the TerminateWorkflowExecution action explicitly
  5868. // or due to an expired timeout.
  5869. //
  5870. // The supported child policies are:
  5871. //
  5872. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  5873. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  5874. // event in its history. It is up to the decider to take appropriate actions
  5875. // when it receives an execution history with this event. ABANDON: no action
  5876. // will be taken. The child executions will continue to run.
  5877. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  5878. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5879. // that resulted in the ContinueAsNewWorkflowExecution decision that started
  5880. // this execution. This information can be useful for diagnosing problems by
  5881. // tracing back the chain of events leading up to this event.
  5882. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5883. // The total duration allowed for the new workflow execution.
  5884. //
  5885. // The duration is specified in seconds; an integer greater than or equal to
  5886. // 0. The value "NONE" can be used to specify unlimited duration.
  5887. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  5888. // The input provided to the new workflow execution.
  5889. Input *string `locationName:"input" type:"string"`
  5890. // The IAM role attached to this workflow execution to use when invoking AWS
  5891. // Lambda functions.
  5892. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  5893. // The runId of the new workflow execution.
  5894. NewExecutionRunId *string `locationName:"newExecutionRunId" type:"string" required:"true"`
  5895. // The list of tags associated with the new workflow execution.
  5896. TagList []*string `locationName:"tagList" type:"list"`
  5897. // Represents a task list.
  5898. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  5899. TaskPriority *string `locationName:"taskPriority" type:"string"`
  5900. // The maximum duration of decision tasks for the new workflow execution.
  5901. //
  5902. // The duration is specified in seconds; an integer greater than or equal to
  5903. // 0. The value "NONE" can be used to specify unlimited duration.
  5904. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  5905. // Represents a workflow type.
  5906. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  5907. metadataWorkflowExecutionContinuedAsNewEventAttributes `json:"-" xml:"-"`
  5908. }
  5909. type metadataWorkflowExecutionContinuedAsNewEventAttributes struct {
  5910. SDKShapeTraits bool `type:"structure"`
  5911. }
  5912. // String returns the string representation
  5913. func (s WorkflowExecutionContinuedAsNewEventAttributes) String() string {
  5914. return awsutil.Prettify(s)
  5915. }
  5916. // GoString returns the string representation
  5917. func (s WorkflowExecutionContinuedAsNewEventAttributes) GoString() string {
  5918. return s.String()
  5919. }
  5920. // Contains the count of workflow executions returned from CountOpenWorkflowExecutions
  5921. // or CountClosedWorkflowExecutions
  5922. type WorkflowExecutionCount struct {
  5923. // The number of workflow executions.
  5924. Count *int64 `locationName:"count" type:"integer" required:"true"`
  5925. // If set to true, indicates that the actual count was more than the maximum
  5926. // supported by this API and the count returned is the truncated value.
  5927. Truncated *bool `locationName:"truncated" type:"boolean"`
  5928. metadataWorkflowExecutionCount `json:"-" xml:"-"`
  5929. }
  5930. type metadataWorkflowExecutionCount struct {
  5931. SDKShapeTraits bool `type:"structure"`
  5932. }
  5933. // String returns the string representation
  5934. func (s WorkflowExecutionCount) String() string {
  5935. return awsutil.Prettify(s)
  5936. }
  5937. // GoString returns the string representation
  5938. func (s WorkflowExecutionCount) GoString() string {
  5939. return s.String()
  5940. }
  5941. // Provides details of the WorkflowExecutionFailed event.
  5942. type WorkflowExecutionFailedEventAttributes struct {
  5943. // The ID of the DecisionTaskCompleted event corresponding to the decision task
  5944. // that resulted in the FailWorkflowExecution decision to fail this execution.
  5945. // This information can be useful for diagnosing problems by tracing back the
  5946. // chain of events leading up to this event.
  5947. DecisionTaskCompletedEventId *int64 `locationName:"decisionTaskCompletedEventId" type:"long" required:"true"`
  5948. // The details of the failure (if any).
  5949. Details *string `locationName:"details" type:"string"`
  5950. // The descriptive reason provided for the failure (if any).
  5951. Reason *string `locationName:"reason" type:"string"`
  5952. metadataWorkflowExecutionFailedEventAttributes `json:"-" xml:"-"`
  5953. }
  5954. type metadataWorkflowExecutionFailedEventAttributes struct {
  5955. SDKShapeTraits bool `type:"structure"`
  5956. }
  5957. // String returns the string representation
  5958. func (s WorkflowExecutionFailedEventAttributes) String() string {
  5959. return awsutil.Prettify(s)
  5960. }
  5961. // GoString returns the string representation
  5962. func (s WorkflowExecutionFailedEventAttributes) GoString() string {
  5963. return s.String()
  5964. }
  5965. // Used to filter the workflow executions in visibility APIs by their workflowId.
  5966. type WorkflowExecutionFilter struct {
  5967. // The workflowId to pass of match the criteria of this filter.
  5968. WorkflowId *string `locationName:"workflowId" type:"string" required:"true"`
  5969. metadataWorkflowExecutionFilter `json:"-" xml:"-"`
  5970. }
  5971. type metadataWorkflowExecutionFilter struct {
  5972. SDKShapeTraits bool `type:"structure"`
  5973. }
  5974. // String returns the string representation
  5975. func (s WorkflowExecutionFilter) String() string {
  5976. return awsutil.Prettify(s)
  5977. }
  5978. // GoString returns the string representation
  5979. func (s WorkflowExecutionFilter) GoString() string {
  5980. return s.String()
  5981. }
  5982. // Contains information about a workflow execution.
  5983. type WorkflowExecutionInfo struct {
  5984. // Set to true if a cancellation is requested for this workflow execution.
  5985. CancelRequested *bool `locationName:"cancelRequested" type:"boolean"`
  5986. // If the execution status is closed then this specifies how the execution was
  5987. // closed:
  5988. //
  5989. // COMPLETED: the execution was successfully completed. CANCELED: the execution
  5990. // was canceled.Cancellation allows the implementation to gracefully clean up
  5991. // before the execution is closed. TERMINATED: the execution was force terminated.
  5992. // FAILED: the execution failed to complete. TIMED_OUT: the execution did
  5993. // not complete in the alloted time and was automatically timed out. CONTINUED_AS_NEW:
  5994. // the execution is logically continued. This means the current execution was
  5995. // completed and a new execution was started to carry on the workflow.
  5996. CloseStatus *string `locationName:"closeStatus" type:"string" enum:"CloseStatus"`
  5997. // The time when the workflow execution was closed. Set only if the execution
  5998. // status is CLOSED.
  5999. CloseTimestamp *time.Time `locationName:"closeTimestamp" type:"timestamp" timestampFormat:"unix"`
  6000. // The workflow execution this information is about.
  6001. Execution *WorkflowExecution `locationName:"execution" type:"structure" required:"true"`
  6002. // The current status of the execution.
  6003. ExecutionStatus *string `locationName:"executionStatus" type:"string" required:"true" enum:"ExecutionStatus"`
  6004. // If this workflow execution is a child of another execution then contains
  6005. // the workflow execution that started this execution.
  6006. Parent *WorkflowExecution `locationName:"parent" type:"structure"`
  6007. // The time when the execution was started.
  6008. StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix" required:"true"`
  6009. // The list of tags associated with the workflow execution. Tags can be used
  6010. // to identify and list workflow executions of interest through the visibility
  6011. // APIs. A workflow execution can have a maximum of 5 tags.
  6012. TagList []*string `locationName:"tagList" type:"list"`
  6013. // The type of the workflow execution.
  6014. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  6015. metadataWorkflowExecutionInfo `json:"-" xml:"-"`
  6016. }
  6017. type metadataWorkflowExecutionInfo struct {
  6018. SDKShapeTraits bool `type:"structure"`
  6019. }
  6020. // String returns the string representation
  6021. func (s WorkflowExecutionInfo) String() string {
  6022. return awsutil.Prettify(s)
  6023. }
  6024. // GoString returns the string representation
  6025. func (s WorkflowExecutionInfo) GoString() string {
  6026. return s.String()
  6027. }
  6028. // Contains a paginated list of information about workflow executions.
  6029. type WorkflowExecutionInfos struct {
  6030. // The list of workflow information structures.
  6031. ExecutionInfos []*WorkflowExecutionInfo `locationName:"executionInfos" type:"list" required:"true"`
  6032. // If a NextPageToken was returned by a previous call, there are more results
  6033. // available. To retrieve the next page of results, make the call again using
  6034. // the returned token in nextPageToken. Keep all other arguments unchanged.
  6035. //
  6036. // The configured maximumPageSize determines how many results can be returned
  6037. // in a single call.
  6038. NextPageToken *string `locationName:"nextPageToken" type:"string"`
  6039. metadataWorkflowExecutionInfos `json:"-" xml:"-"`
  6040. }
  6041. type metadataWorkflowExecutionInfos struct {
  6042. SDKShapeTraits bool `type:"structure"`
  6043. }
  6044. // String returns the string representation
  6045. func (s WorkflowExecutionInfos) String() string {
  6046. return awsutil.Prettify(s)
  6047. }
  6048. // GoString returns the string representation
  6049. func (s WorkflowExecutionInfos) GoString() string {
  6050. return s.String()
  6051. }
  6052. // Contains the counts of open tasks, child workflow executions and timers for
  6053. // a workflow execution.
  6054. type WorkflowExecutionOpenCounts struct {
  6055. // The count of activity tasks whose status is OPEN.
  6056. OpenActivityTasks *int64 `locationName:"openActivityTasks" type:"integer" required:"true"`
  6057. // The count of child workflow executions whose status is OPEN.
  6058. OpenChildWorkflowExecutions *int64 `locationName:"openChildWorkflowExecutions" type:"integer" required:"true"`
  6059. // The count of decision tasks whose status is OPEN. A workflow execution can
  6060. // have at most one open decision task.
  6061. OpenDecisionTasks *int64 `locationName:"openDecisionTasks" type:"integer" required:"true"`
  6062. // The count of AWS Lambda functions that are currently executing.
  6063. OpenLambdaFunctions *int64 `locationName:"openLambdaFunctions" type:"integer"`
  6064. // The count of timers started by this workflow execution that have not fired
  6065. // yet.
  6066. OpenTimers *int64 `locationName:"openTimers" type:"integer" required:"true"`
  6067. metadataWorkflowExecutionOpenCounts `json:"-" xml:"-"`
  6068. }
  6069. type metadataWorkflowExecutionOpenCounts struct {
  6070. SDKShapeTraits bool `type:"structure"`
  6071. }
  6072. // String returns the string representation
  6073. func (s WorkflowExecutionOpenCounts) String() string {
  6074. return awsutil.Prettify(s)
  6075. }
  6076. // GoString returns the string representation
  6077. func (s WorkflowExecutionOpenCounts) GoString() string {
  6078. return s.String()
  6079. }
  6080. // Provides details of the WorkflowExecutionSignaled event.
  6081. type WorkflowExecutionSignaledEventAttributes struct {
  6082. // The ID of the SignalExternalWorkflowExecutionInitiated event corresponding
  6083. // to the SignalExternalWorkflow decision to signal this workflow execution.The
  6084. // source event with this ID can be found in the history of the source workflow
  6085. // execution. This information can be useful for diagnosing problems by tracing
  6086. // back the chain of events leading up to this event. This field is set only
  6087. // if the signal was initiated by another workflow execution.
  6088. ExternalInitiatedEventId *int64 `locationName:"externalInitiatedEventId" type:"long"`
  6089. // The workflow execution that sent the signal. This is set only of the signal
  6090. // was sent by another workflow execution.
  6091. ExternalWorkflowExecution *WorkflowExecution `locationName:"externalWorkflowExecution" type:"structure"`
  6092. // Inputs provided with the signal (if any). The decider can use the signal
  6093. // name and inputs to determine how to process the signal.
  6094. Input *string `locationName:"input" type:"string"`
  6095. // The name of the signal received. The decider can use the signal name and
  6096. // inputs to determine how to the process the signal.
  6097. SignalName *string `locationName:"signalName" type:"string" required:"true"`
  6098. metadataWorkflowExecutionSignaledEventAttributes `json:"-" xml:"-"`
  6099. }
  6100. type metadataWorkflowExecutionSignaledEventAttributes struct {
  6101. SDKShapeTraits bool `type:"structure"`
  6102. }
  6103. // String returns the string representation
  6104. func (s WorkflowExecutionSignaledEventAttributes) String() string {
  6105. return awsutil.Prettify(s)
  6106. }
  6107. // GoString returns the string representation
  6108. func (s WorkflowExecutionSignaledEventAttributes) GoString() string {
  6109. return s.String()
  6110. }
  6111. // Provides details of WorkflowExecutionStarted event.
  6112. type WorkflowExecutionStartedEventAttributes struct {
  6113. // The policy to use for the child workflow executions if this workflow execution
  6114. // is terminated, by calling the TerminateWorkflowExecution action explicitly
  6115. // or due to an expired timeout.
  6116. //
  6117. // The supported child policies are:
  6118. //
  6119. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  6120. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  6121. // event in its history. It is up to the decider to take appropriate actions
  6122. // when it receives an execution history with this event. ABANDON: no action
  6123. // will be taken. The child executions will continue to run.
  6124. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  6125. // If this workflow execution was started due to a ContinueAsNewWorkflowExecution
  6126. // decision, then it contains the runId of the previous workflow execution that
  6127. // was closed and continued as this execution.
  6128. ContinuedExecutionRunId *string `locationName:"continuedExecutionRunId" type:"string"`
  6129. // The maximum duration for this workflow execution.
  6130. //
  6131. // The duration is specified in seconds; an integer greater than or equal to
  6132. // 0. The value "NONE" can be used to specify unlimited duration.
  6133. ExecutionStartToCloseTimeout *string `locationName:"executionStartToCloseTimeout" type:"string"`
  6134. // The input provided to the workflow execution (if any).
  6135. Input *string `locationName:"input" type:"string"`
  6136. // The IAM role attached to this workflow execution to use when invoking AWS
  6137. // Lambda functions.
  6138. LambdaRole *string `locationName:"lambdaRole" type:"string"`
  6139. // The ID of the StartChildWorkflowExecutionInitiated event corresponding to
  6140. // the StartChildWorkflowExecution decision to start this workflow execution.
  6141. // The source event with this ID can be found in the history of the source workflow
  6142. // execution. This information can be useful for diagnosing problems by tracing
  6143. // back the chain of events leading up to this event.
  6144. ParentInitiatedEventId *int64 `locationName:"parentInitiatedEventId" type:"long"`
  6145. // The source workflow execution that started this workflow execution. The member
  6146. // is not set if the workflow execution was not started by a workflow.
  6147. ParentWorkflowExecution *WorkflowExecution `locationName:"parentWorkflowExecution" type:"structure"`
  6148. // The list of tags associated with this workflow execution. An execution can
  6149. // have up to 5 tags.
  6150. TagList []*string `locationName:"tagList" type:"list"`
  6151. // The name of the task list for scheduling the decision tasks for this workflow
  6152. // execution.
  6153. TaskList *TaskList `locationName:"taskList" type:"structure" required:"true"`
  6154. TaskPriority *string `locationName:"taskPriority" type:"string"`
  6155. // The maximum duration of decision tasks for this workflow type.
  6156. //
  6157. // The duration is specified in seconds; an integer greater than or equal to
  6158. // 0. The value "NONE" can be used to specify unlimited duration.
  6159. TaskStartToCloseTimeout *string `locationName:"taskStartToCloseTimeout" type:"string"`
  6160. // The workflow type of this execution.
  6161. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  6162. metadataWorkflowExecutionStartedEventAttributes `json:"-" xml:"-"`
  6163. }
  6164. type metadataWorkflowExecutionStartedEventAttributes struct {
  6165. SDKShapeTraits bool `type:"structure"`
  6166. }
  6167. // String returns the string representation
  6168. func (s WorkflowExecutionStartedEventAttributes) String() string {
  6169. return awsutil.Prettify(s)
  6170. }
  6171. // GoString returns the string representation
  6172. func (s WorkflowExecutionStartedEventAttributes) GoString() string {
  6173. return s.String()
  6174. }
  6175. // Provides details of the WorkflowExecutionTerminated event.
  6176. type WorkflowExecutionTerminatedEventAttributes struct {
  6177. // If set, indicates that the workflow execution was automatically terminated,
  6178. // and specifies the cause. This happens if the parent workflow execution times
  6179. // out or is terminated and the child policy is set to terminate child executions.
  6180. Cause *string `locationName:"cause" type:"string" enum:"WorkflowExecutionTerminatedCause"`
  6181. // The policy used for the child workflow executions of this workflow execution.
  6182. //
  6183. // The supported child policies are:
  6184. //
  6185. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  6186. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  6187. // event in its history. It is up to the decider to take appropriate actions
  6188. // when it receives an execution history with this event. ABANDON: no action
  6189. // will be taken. The child executions will continue to run.
  6190. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  6191. // The details provided for the termination (if any).
  6192. Details *string `locationName:"details" type:"string"`
  6193. // The reason provided for the termination (if any).
  6194. Reason *string `locationName:"reason" type:"string"`
  6195. metadataWorkflowExecutionTerminatedEventAttributes `json:"-" xml:"-"`
  6196. }
  6197. type metadataWorkflowExecutionTerminatedEventAttributes struct {
  6198. SDKShapeTraits bool `type:"structure"`
  6199. }
  6200. // String returns the string representation
  6201. func (s WorkflowExecutionTerminatedEventAttributes) String() string {
  6202. return awsutil.Prettify(s)
  6203. }
  6204. // GoString returns the string representation
  6205. func (s WorkflowExecutionTerminatedEventAttributes) GoString() string {
  6206. return s.String()
  6207. }
  6208. // Provides details of the WorkflowExecutionTimedOut event.
  6209. type WorkflowExecutionTimedOutEventAttributes struct {
  6210. // The policy used for the child workflow executions of this workflow execution.
  6211. //
  6212. // The supported child policies are:
  6213. //
  6214. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  6215. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  6216. // event in its history. It is up to the decider to take appropriate actions
  6217. // when it receives an execution history with this event. ABANDON: no action
  6218. // will be taken. The child executions will continue to run.
  6219. ChildPolicy *string `locationName:"childPolicy" type:"string" required:"true" enum:"ChildPolicy"`
  6220. // The type of timeout that caused this event.
  6221. TimeoutType *string `locationName:"timeoutType" type:"string" required:"true" enum:"WorkflowExecutionTimeoutType"`
  6222. metadataWorkflowExecutionTimedOutEventAttributes `json:"-" xml:"-"`
  6223. }
  6224. type metadataWorkflowExecutionTimedOutEventAttributes struct {
  6225. SDKShapeTraits bool `type:"structure"`
  6226. }
  6227. // String returns the string representation
  6228. func (s WorkflowExecutionTimedOutEventAttributes) String() string {
  6229. return awsutil.Prettify(s)
  6230. }
  6231. // GoString returns the string representation
  6232. func (s WorkflowExecutionTimedOutEventAttributes) GoString() string {
  6233. return s.String()
  6234. }
  6235. // Represents a workflow type.
  6236. type WorkflowType struct {
  6237. // Required. The name of the workflow type.
  6238. //
  6239. // The combination of workflow type name and version must be unique with in
  6240. // a domain.
  6241. Name *string `locationName:"name" type:"string" required:"true"`
  6242. // Required. The version of the workflow type.
  6243. //
  6244. // The combination of workflow type name and version must be unique with in
  6245. // a domain.
  6246. Version *string `locationName:"version" type:"string" required:"true"`
  6247. metadataWorkflowType `json:"-" xml:"-"`
  6248. }
  6249. type metadataWorkflowType struct {
  6250. SDKShapeTraits bool `type:"structure"`
  6251. }
  6252. // String returns the string representation
  6253. func (s WorkflowType) String() string {
  6254. return awsutil.Prettify(s)
  6255. }
  6256. // GoString returns the string representation
  6257. func (s WorkflowType) GoString() string {
  6258. return s.String()
  6259. }
  6260. // The configuration settings of a workflow type.
  6261. type WorkflowTypeConfiguration struct {
  6262. // Optional. The default policy to use for the child workflow executions when
  6263. // a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution
  6264. // action explicitly or due to an expired timeout. This default can be overridden
  6265. // when starting a workflow execution using the StartWorkflowExecution action
  6266. // or the StartChildWorkflowExecution decision.
  6267. //
  6268. // The supported child policies are:
  6269. //
  6270. // TERMINATE: the child executions will be terminated. REQUEST_CANCEL: a request
  6271. // to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested
  6272. // event in its history. It is up to the decider to take appropriate actions
  6273. // when it receives an execution history with this event. ABANDON: no action
  6274. // will be taken. The child executions will continue to run.
  6275. DefaultChildPolicy *string `locationName:"defaultChildPolicy" type:"string" enum:"ChildPolicy"`
  6276. // Optional. The default maximum duration, specified when registering the workflow
  6277. // type, for executions of this workflow type. This default can be overridden
  6278. // when starting a workflow execution using the StartWorkflowExecution action
  6279. // or the StartChildWorkflowExecution decision.
  6280. //
  6281. // The duration is specified in seconds; an integer greater than or equal to
  6282. // 0. The value "NONE" can be used to specify unlimited duration.
  6283. DefaultExecutionStartToCloseTimeout *string `locationName:"defaultExecutionStartToCloseTimeout" type:"string"`
  6284. // The default IAM role to use when a workflow execution invokes a AWS Lambda
  6285. // function.
  6286. DefaultLambdaRole *string `locationName:"defaultLambdaRole" type:"string"`
  6287. // Optional. The default task list, specified when registering the workflow
  6288. // type, for decisions tasks scheduled for workflow executions of this type.
  6289. // This default can be overridden when starting a workflow execution using the
  6290. // StartWorkflowExecution action or the StartChildWorkflowExecution decision.
  6291. DefaultTaskList *TaskList `locationName:"defaultTaskList" type:"structure"`
  6292. // Optional. The default task priority, specified when registering the workflow
  6293. // type, for all decision tasks of this workflow type. This default can be overridden
  6294. // when starting a workflow execution using the StartWorkflowExecution action
  6295. // or the StartChildWorkflowExecution decision.
  6296. //
  6297. // Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648)
  6298. // to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
  6299. //
  6300. // For more information about setting task priority, see Setting Task Priority
  6301. // (http://docs.aws.amazon.com/amazonswf/latest/developerguide/programming-priority.html)
  6302. // in the Amazon Simple Workflow Developer Guide.
  6303. DefaultTaskPriority *string `locationName:"defaultTaskPriority" type:"string"`
  6304. // Optional. The default maximum duration, specified when registering the workflow
  6305. // type, that a decision task for executions of this workflow type might take
  6306. // before returning completion or failure. If the task does not close in the
  6307. // specified time then the task is automatically timed out and rescheduled.
  6308. // If the decider eventually reports a completion or failure, it is ignored.
  6309. // This default can be overridden when starting a workflow execution using the
  6310. // StartWorkflowExecution action or the StartChildWorkflowExecution decision.
  6311. //
  6312. // The duration is specified in seconds; an integer greater than or equal to
  6313. // 0. The value "NONE" can be used to specify unlimited duration.
  6314. DefaultTaskStartToCloseTimeout *string `locationName:"defaultTaskStartToCloseTimeout" type:"string"`
  6315. metadataWorkflowTypeConfiguration `json:"-" xml:"-"`
  6316. }
  6317. type metadataWorkflowTypeConfiguration struct {
  6318. SDKShapeTraits bool `type:"structure"`
  6319. }
  6320. // String returns the string representation
  6321. func (s WorkflowTypeConfiguration) String() string {
  6322. return awsutil.Prettify(s)
  6323. }
  6324. // GoString returns the string representation
  6325. func (s WorkflowTypeConfiguration) GoString() string {
  6326. return s.String()
  6327. }
  6328. // Used to filter workflow execution query results by type. Each parameter,
  6329. // if specified, defines a rule that must be satisfied by each returned result.
  6330. type WorkflowTypeFilter struct {
  6331. // Required. Name of the workflow type.
  6332. Name *string `locationName:"name" type:"string" required:"true"`
  6333. // Version of the workflow type.
  6334. Version *string `locationName:"version" type:"string"`
  6335. metadataWorkflowTypeFilter `json:"-" xml:"-"`
  6336. }
  6337. type metadataWorkflowTypeFilter struct {
  6338. SDKShapeTraits bool `type:"structure"`
  6339. }
  6340. // String returns the string representation
  6341. func (s WorkflowTypeFilter) String() string {
  6342. return awsutil.Prettify(s)
  6343. }
  6344. // GoString returns the string representation
  6345. func (s WorkflowTypeFilter) GoString() string {
  6346. return s.String()
  6347. }
  6348. // Contains information about a workflow type.
  6349. type WorkflowTypeInfo struct {
  6350. // The date when this type was registered.
  6351. CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"unix" required:"true"`
  6352. // If the type is in deprecated state, then it is set to the date when the type
  6353. // was deprecated.
  6354. DeprecationDate *time.Time `locationName:"deprecationDate" type:"timestamp" timestampFormat:"unix"`
  6355. // The description of the type registered through RegisterWorkflowType.
  6356. Description *string `locationName:"description" type:"string"`
  6357. // The current status of the workflow type.
  6358. Status *string `locationName:"status" type:"string" required:"true" enum:"RegistrationStatus"`
  6359. // The workflow type this information is about.
  6360. WorkflowType *WorkflowType `locationName:"workflowType" type:"structure" required:"true"`
  6361. metadataWorkflowTypeInfo `json:"-" xml:"-"`
  6362. }
  6363. type metadataWorkflowTypeInfo struct {
  6364. SDKShapeTraits bool `type:"structure"`
  6365. }
  6366. // String returns the string representation
  6367. func (s WorkflowTypeInfo) String() string {
  6368. return awsutil.Prettify(s)
  6369. }
  6370. // GoString returns the string representation
  6371. func (s WorkflowTypeInfo) GoString() string {
  6372. return s.String()
  6373. }
  6374. const (
  6375. // @enum ActivityTaskTimeoutType
  6376. ActivityTaskTimeoutTypeStartToClose = "START_TO_CLOSE"
  6377. // @enum ActivityTaskTimeoutType
  6378. ActivityTaskTimeoutTypeScheduleToStart = "SCHEDULE_TO_START"
  6379. // @enum ActivityTaskTimeoutType
  6380. ActivityTaskTimeoutTypeScheduleToClose = "SCHEDULE_TO_CLOSE"
  6381. // @enum ActivityTaskTimeoutType
  6382. ActivityTaskTimeoutTypeHeartbeat = "HEARTBEAT"
  6383. )
  6384. const (
  6385. // @enum CancelTimerFailedCause
  6386. CancelTimerFailedCauseTimerIdUnknown = "TIMER_ID_UNKNOWN"
  6387. // @enum CancelTimerFailedCause
  6388. CancelTimerFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6389. )
  6390. const (
  6391. // @enum CancelWorkflowExecutionFailedCause
  6392. CancelWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  6393. // @enum CancelWorkflowExecutionFailedCause
  6394. CancelWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6395. )
  6396. const (
  6397. // @enum ChildPolicy
  6398. ChildPolicyTerminate = "TERMINATE"
  6399. // @enum ChildPolicy
  6400. ChildPolicyRequestCancel = "REQUEST_CANCEL"
  6401. // @enum ChildPolicy
  6402. ChildPolicyAbandon = "ABANDON"
  6403. )
  6404. const (
  6405. // @enum CloseStatus
  6406. CloseStatusCompleted = "COMPLETED"
  6407. // @enum CloseStatus
  6408. CloseStatusFailed = "FAILED"
  6409. // @enum CloseStatus
  6410. CloseStatusCanceled = "CANCELED"
  6411. // @enum CloseStatus
  6412. CloseStatusTerminated = "TERMINATED"
  6413. // @enum CloseStatus
  6414. CloseStatusContinuedAsNew = "CONTINUED_AS_NEW"
  6415. // @enum CloseStatus
  6416. CloseStatusTimedOut = "TIMED_OUT"
  6417. )
  6418. const (
  6419. // @enum CompleteWorkflowExecutionFailedCause
  6420. CompleteWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  6421. // @enum CompleteWorkflowExecutionFailedCause
  6422. CompleteWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6423. )
  6424. const (
  6425. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6426. ContinueAsNewWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  6427. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6428. ContinueAsNewWorkflowExecutionFailedCauseWorkflowTypeDeprecated = "WORKFLOW_TYPE_DEPRECATED"
  6429. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6430. ContinueAsNewWorkflowExecutionFailedCauseWorkflowTypeDoesNotExist = "WORKFLOW_TYPE_DOES_NOT_EXIST"
  6431. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6432. ContinueAsNewWorkflowExecutionFailedCauseDefaultExecutionStartToCloseTimeoutUndefined = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  6433. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6434. ContinueAsNewWorkflowExecutionFailedCauseDefaultTaskStartToCloseTimeoutUndefined = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  6435. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6436. ContinueAsNewWorkflowExecutionFailedCauseDefaultTaskListUndefined = "DEFAULT_TASK_LIST_UNDEFINED"
  6437. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6438. ContinueAsNewWorkflowExecutionFailedCauseDefaultChildPolicyUndefined = "DEFAULT_CHILD_POLICY_UNDEFINED"
  6439. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6440. ContinueAsNewWorkflowExecutionFailedCauseContinueAsNewWorkflowExecutionRateExceeded = "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"
  6441. // @enum ContinueAsNewWorkflowExecutionFailedCause
  6442. ContinueAsNewWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6443. )
  6444. const (
  6445. // @enum DecisionTaskTimeoutType
  6446. DecisionTaskTimeoutTypeStartToClose = "START_TO_CLOSE"
  6447. )
  6448. const (
  6449. // @enum DecisionType
  6450. DecisionTypeScheduleActivityTask = "ScheduleActivityTask"
  6451. // @enum DecisionType
  6452. DecisionTypeRequestCancelActivityTask = "RequestCancelActivityTask"
  6453. // @enum DecisionType
  6454. DecisionTypeCompleteWorkflowExecution = "CompleteWorkflowExecution"
  6455. // @enum DecisionType
  6456. DecisionTypeFailWorkflowExecution = "FailWorkflowExecution"
  6457. // @enum DecisionType
  6458. DecisionTypeCancelWorkflowExecution = "CancelWorkflowExecution"
  6459. // @enum DecisionType
  6460. DecisionTypeContinueAsNewWorkflowExecution = "ContinueAsNewWorkflowExecution"
  6461. // @enum DecisionType
  6462. DecisionTypeRecordMarker = "RecordMarker"
  6463. // @enum DecisionType
  6464. DecisionTypeStartTimer = "StartTimer"
  6465. // @enum DecisionType
  6466. DecisionTypeCancelTimer = "CancelTimer"
  6467. // @enum DecisionType
  6468. DecisionTypeSignalExternalWorkflowExecution = "SignalExternalWorkflowExecution"
  6469. // @enum DecisionType
  6470. DecisionTypeRequestCancelExternalWorkflowExecution = "RequestCancelExternalWorkflowExecution"
  6471. // @enum DecisionType
  6472. DecisionTypeStartChildWorkflowExecution = "StartChildWorkflowExecution"
  6473. // @enum DecisionType
  6474. DecisionTypeScheduleLambdaFunction = "ScheduleLambdaFunction"
  6475. )
  6476. const (
  6477. // @enum EventType
  6478. EventTypeWorkflowExecutionStarted = "WorkflowExecutionStarted"
  6479. // @enum EventType
  6480. EventTypeWorkflowExecutionCancelRequested = "WorkflowExecutionCancelRequested"
  6481. // @enum EventType
  6482. EventTypeWorkflowExecutionCompleted = "WorkflowExecutionCompleted"
  6483. // @enum EventType
  6484. EventTypeCompleteWorkflowExecutionFailed = "CompleteWorkflowExecutionFailed"
  6485. // @enum EventType
  6486. EventTypeWorkflowExecutionFailed = "WorkflowExecutionFailed"
  6487. // @enum EventType
  6488. EventTypeFailWorkflowExecutionFailed = "FailWorkflowExecutionFailed"
  6489. // @enum EventType
  6490. EventTypeWorkflowExecutionTimedOut = "WorkflowExecutionTimedOut"
  6491. // @enum EventType
  6492. EventTypeWorkflowExecutionCanceled = "WorkflowExecutionCanceled"
  6493. // @enum EventType
  6494. EventTypeCancelWorkflowExecutionFailed = "CancelWorkflowExecutionFailed"
  6495. // @enum EventType
  6496. EventTypeWorkflowExecutionContinuedAsNew = "WorkflowExecutionContinuedAsNew"
  6497. // @enum EventType
  6498. EventTypeContinueAsNewWorkflowExecutionFailed = "ContinueAsNewWorkflowExecutionFailed"
  6499. // @enum EventType
  6500. EventTypeWorkflowExecutionTerminated = "WorkflowExecutionTerminated"
  6501. // @enum EventType
  6502. EventTypeDecisionTaskScheduled = "DecisionTaskScheduled"
  6503. // @enum EventType
  6504. EventTypeDecisionTaskStarted = "DecisionTaskStarted"
  6505. // @enum EventType
  6506. EventTypeDecisionTaskCompleted = "DecisionTaskCompleted"
  6507. // @enum EventType
  6508. EventTypeDecisionTaskTimedOut = "DecisionTaskTimedOut"
  6509. // @enum EventType
  6510. EventTypeActivityTaskScheduled = "ActivityTaskScheduled"
  6511. // @enum EventType
  6512. EventTypeScheduleActivityTaskFailed = "ScheduleActivityTaskFailed"
  6513. // @enum EventType
  6514. EventTypeActivityTaskStarted = "ActivityTaskStarted"
  6515. // @enum EventType
  6516. EventTypeActivityTaskCompleted = "ActivityTaskCompleted"
  6517. // @enum EventType
  6518. EventTypeActivityTaskFailed = "ActivityTaskFailed"
  6519. // @enum EventType
  6520. EventTypeActivityTaskTimedOut = "ActivityTaskTimedOut"
  6521. // @enum EventType
  6522. EventTypeActivityTaskCanceled = "ActivityTaskCanceled"
  6523. // @enum EventType
  6524. EventTypeActivityTaskCancelRequested = "ActivityTaskCancelRequested"
  6525. // @enum EventType
  6526. EventTypeRequestCancelActivityTaskFailed = "RequestCancelActivityTaskFailed"
  6527. // @enum EventType
  6528. EventTypeWorkflowExecutionSignaled = "WorkflowExecutionSignaled"
  6529. // @enum EventType
  6530. EventTypeMarkerRecorded = "MarkerRecorded"
  6531. // @enum EventType
  6532. EventTypeRecordMarkerFailed = "RecordMarkerFailed"
  6533. // @enum EventType
  6534. EventTypeTimerStarted = "TimerStarted"
  6535. // @enum EventType
  6536. EventTypeStartTimerFailed = "StartTimerFailed"
  6537. // @enum EventType
  6538. EventTypeTimerFired = "TimerFired"
  6539. // @enum EventType
  6540. EventTypeTimerCanceled = "TimerCanceled"
  6541. // @enum EventType
  6542. EventTypeCancelTimerFailed = "CancelTimerFailed"
  6543. // @enum EventType
  6544. EventTypeStartChildWorkflowExecutionInitiated = "StartChildWorkflowExecutionInitiated"
  6545. // @enum EventType
  6546. EventTypeStartChildWorkflowExecutionFailed = "StartChildWorkflowExecutionFailed"
  6547. // @enum EventType
  6548. EventTypeChildWorkflowExecutionStarted = "ChildWorkflowExecutionStarted"
  6549. // @enum EventType
  6550. EventTypeChildWorkflowExecutionCompleted = "ChildWorkflowExecutionCompleted"
  6551. // @enum EventType
  6552. EventTypeChildWorkflowExecutionFailed = "ChildWorkflowExecutionFailed"
  6553. // @enum EventType
  6554. EventTypeChildWorkflowExecutionTimedOut = "ChildWorkflowExecutionTimedOut"
  6555. // @enum EventType
  6556. EventTypeChildWorkflowExecutionCanceled = "ChildWorkflowExecutionCanceled"
  6557. // @enum EventType
  6558. EventTypeChildWorkflowExecutionTerminated = "ChildWorkflowExecutionTerminated"
  6559. // @enum EventType
  6560. EventTypeSignalExternalWorkflowExecutionInitiated = "SignalExternalWorkflowExecutionInitiated"
  6561. // @enum EventType
  6562. EventTypeSignalExternalWorkflowExecutionFailed = "SignalExternalWorkflowExecutionFailed"
  6563. // @enum EventType
  6564. EventTypeExternalWorkflowExecutionSignaled = "ExternalWorkflowExecutionSignaled"
  6565. // @enum EventType
  6566. EventTypeRequestCancelExternalWorkflowExecutionInitiated = "RequestCancelExternalWorkflowExecutionInitiated"
  6567. // @enum EventType
  6568. EventTypeRequestCancelExternalWorkflowExecutionFailed = "RequestCancelExternalWorkflowExecutionFailed"
  6569. // @enum EventType
  6570. EventTypeExternalWorkflowExecutionCancelRequested = "ExternalWorkflowExecutionCancelRequested"
  6571. // @enum EventType
  6572. EventTypeLambdaFunctionScheduled = "LambdaFunctionScheduled"
  6573. // @enum EventType
  6574. EventTypeLambdaFunctionStarted = "LambdaFunctionStarted"
  6575. // @enum EventType
  6576. EventTypeLambdaFunctionCompleted = "LambdaFunctionCompleted"
  6577. // @enum EventType
  6578. EventTypeLambdaFunctionFailed = "LambdaFunctionFailed"
  6579. // @enum EventType
  6580. EventTypeLambdaFunctionTimedOut = "LambdaFunctionTimedOut"
  6581. // @enum EventType
  6582. EventTypeScheduleLambdaFunctionFailed = "ScheduleLambdaFunctionFailed"
  6583. // @enum EventType
  6584. EventTypeStartLambdaFunctionFailed = "StartLambdaFunctionFailed"
  6585. )
  6586. const (
  6587. // @enum ExecutionStatus
  6588. ExecutionStatusOpen = "OPEN"
  6589. // @enum ExecutionStatus
  6590. ExecutionStatusClosed = "CLOSED"
  6591. )
  6592. const (
  6593. // @enum FailWorkflowExecutionFailedCause
  6594. FailWorkflowExecutionFailedCauseUnhandledDecision = "UNHANDLED_DECISION"
  6595. // @enum FailWorkflowExecutionFailedCause
  6596. FailWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6597. )
  6598. const (
  6599. // @enum LambdaFunctionTimeoutType
  6600. LambdaFunctionTimeoutTypeStartToClose = "START_TO_CLOSE"
  6601. )
  6602. const (
  6603. // @enum RecordMarkerFailedCause
  6604. RecordMarkerFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6605. )
  6606. const (
  6607. // @enum RegistrationStatus
  6608. RegistrationStatusRegistered = "REGISTERED"
  6609. // @enum RegistrationStatus
  6610. RegistrationStatusDeprecated = "DEPRECATED"
  6611. )
  6612. const (
  6613. // @enum RequestCancelActivityTaskFailedCause
  6614. RequestCancelActivityTaskFailedCauseActivityIdUnknown = "ACTIVITY_ID_UNKNOWN"
  6615. // @enum RequestCancelActivityTaskFailedCause
  6616. RequestCancelActivityTaskFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6617. )
  6618. const (
  6619. // @enum RequestCancelExternalWorkflowExecutionFailedCause
  6620. RequestCancelExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution = "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
  6621. // @enum RequestCancelExternalWorkflowExecutionFailedCause
  6622. RequestCancelExternalWorkflowExecutionFailedCauseRequestCancelExternalWorkflowExecutionRateExceeded = "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"
  6623. // @enum RequestCancelExternalWorkflowExecutionFailedCause
  6624. RequestCancelExternalWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6625. )
  6626. const (
  6627. // @enum ScheduleActivityTaskFailedCause
  6628. ScheduleActivityTaskFailedCauseActivityTypeDeprecated = "ACTIVITY_TYPE_DEPRECATED"
  6629. // @enum ScheduleActivityTaskFailedCause
  6630. ScheduleActivityTaskFailedCauseActivityTypeDoesNotExist = "ACTIVITY_TYPE_DOES_NOT_EXIST"
  6631. // @enum ScheduleActivityTaskFailedCause
  6632. ScheduleActivityTaskFailedCauseActivityIdAlreadyInUse = "ACTIVITY_ID_ALREADY_IN_USE"
  6633. // @enum ScheduleActivityTaskFailedCause
  6634. ScheduleActivityTaskFailedCauseOpenActivitiesLimitExceeded = "OPEN_ACTIVITIES_LIMIT_EXCEEDED"
  6635. // @enum ScheduleActivityTaskFailedCause
  6636. ScheduleActivityTaskFailedCauseActivityCreationRateExceeded = "ACTIVITY_CREATION_RATE_EXCEEDED"
  6637. // @enum ScheduleActivityTaskFailedCause
  6638. ScheduleActivityTaskFailedCauseDefaultScheduleToCloseTimeoutUndefined = "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED"
  6639. // @enum ScheduleActivityTaskFailedCause
  6640. ScheduleActivityTaskFailedCauseDefaultTaskListUndefined = "DEFAULT_TASK_LIST_UNDEFINED"
  6641. // @enum ScheduleActivityTaskFailedCause
  6642. ScheduleActivityTaskFailedCauseDefaultScheduleToStartTimeoutUndefined = "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED"
  6643. // @enum ScheduleActivityTaskFailedCause
  6644. ScheduleActivityTaskFailedCauseDefaultStartToCloseTimeoutUndefined = "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  6645. // @enum ScheduleActivityTaskFailedCause
  6646. ScheduleActivityTaskFailedCauseDefaultHeartbeatTimeoutUndefined = "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED"
  6647. // @enum ScheduleActivityTaskFailedCause
  6648. ScheduleActivityTaskFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6649. )
  6650. const (
  6651. // @enum ScheduleLambdaFunctionFailedCause
  6652. ScheduleLambdaFunctionFailedCauseIdAlreadyInUse = "ID_ALREADY_IN_USE"
  6653. // @enum ScheduleLambdaFunctionFailedCause
  6654. ScheduleLambdaFunctionFailedCauseOpenLambdaFunctionsLimitExceeded = "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"
  6655. // @enum ScheduleLambdaFunctionFailedCause
  6656. ScheduleLambdaFunctionFailedCauseLambdaFunctionCreationRateExceeded = "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED"
  6657. // @enum ScheduleLambdaFunctionFailedCause
  6658. ScheduleLambdaFunctionFailedCauseLambdaServiceNotAvailableInRegion = "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"
  6659. )
  6660. const (
  6661. // @enum SignalExternalWorkflowExecutionFailedCause
  6662. SignalExternalWorkflowExecutionFailedCauseUnknownExternalWorkflowExecution = "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
  6663. // @enum SignalExternalWorkflowExecutionFailedCause
  6664. SignalExternalWorkflowExecutionFailedCauseSignalExternalWorkflowExecutionRateExceeded = "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED"
  6665. // @enum SignalExternalWorkflowExecutionFailedCause
  6666. SignalExternalWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6667. )
  6668. const (
  6669. // @enum StartChildWorkflowExecutionFailedCause
  6670. StartChildWorkflowExecutionFailedCauseWorkflowTypeDoesNotExist = "WORKFLOW_TYPE_DOES_NOT_EXIST"
  6671. // @enum StartChildWorkflowExecutionFailedCause
  6672. StartChildWorkflowExecutionFailedCauseWorkflowTypeDeprecated = "WORKFLOW_TYPE_DEPRECATED"
  6673. // @enum StartChildWorkflowExecutionFailedCause
  6674. StartChildWorkflowExecutionFailedCauseOpenChildrenLimitExceeded = "OPEN_CHILDREN_LIMIT_EXCEEDED"
  6675. // @enum StartChildWorkflowExecutionFailedCause
  6676. StartChildWorkflowExecutionFailedCauseOpenWorkflowsLimitExceeded = "OPEN_WORKFLOWS_LIMIT_EXCEEDED"
  6677. // @enum StartChildWorkflowExecutionFailedCause
  6678. StartChildWorkflowExecutionFailedCauseChildCreationRateExceeded = "CHILD_CREATION_RATE_EXCEEDED"
  6679. // @enum StartChildWorkflowExecutionFailedCause
  6680. StartChildWorkflowExecutionFailedCauseWorkflowAlreadyRunning = "WORKFLOW_ALREADY_RUNNING"
  6681. // @enum StartChildWorkflowExecutionFailedCause
  6682. StartChildWorkflowExecutionFailedCauseDefaultExecutionStartToCloseTimeoutUndefined = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  6683. // @enum StartChildWorkflowExecutionFailedCause
  6684. StartChildWorkflowExecutionFailedCauseDefaultTaskListUndefined = "DEFAULT_TASK_LIST_UNDEFINED"
  6685. // @enum StartChildWorkflowExecutionFailedCause
  6686. StartChildWorkflowExecutionFailedCauseDefaultTaskStartToCloseTimeoutUndefined = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"
  6687. // @enum StartChildWorkflowExecutionFailedCause
  6688. StartChildWorkflowExecutionFailedCauseDefaultChildPolicyUndefined = "DEFAULT_CHILD_POLICY_UNDEFINED"
  6689. // @enum StartChildWorkflowExecutionFailedCause
  6690. StartChildWorkflowExecutionFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6691. )
  6692. const (
  6693. // @enum StartLambdaFunctionFailedCause
  6694. StartLambdaFunctionFailedCauseAssumeRoleFailed = "ASSUME_ROLE_FAILED"
  6695. )
  6696. const (
  6697. // @enum StartTimerFailedCause
  6698. StartTimerFailedCauseTimerIdAlreadyInUse = "TIMER_ID_ALREADY_IN_USE"
  6699. // @enum StartTimerFailedCause
  6700. StartTimerFailedCauseOpenTimersLimitExceeded = "OPEN_TIMERS_LIMIT_EXCEEDED"
  6701. // @enum StartTimerFailedCause
  6702. StartTimerFailedCauseTimerCreationRateExceeded = "TIMER_CREATION_RATE_EXCEEDED"
  6703. // @enum StartTimerFailedCause
  6704. StartTimerFailedCauseOperationNotPermitted = "OPERATION_NOT_PERMITTED"
  6705. )
  6706. const (
  6707. // @enum WorkflowExecutionCancelRequestedCause
  6708. WorkflowExecutionCancelRequestedCauseChildPolicyApplied = "CHILD_POLICY_APPLIED"
  6709. )
  6710. const (
  6711. // @enum WorkflowExecutionTerminatedCause
  6712. WorkflowExecutionTerminatedCauseChildPolicyApplied = "CHILD_POLICY_APPLIED"
  6713. // @enum WorkflowExecutionTerminatedCause
  6714. WorkflowExecutionTerminatedCauseEventLimitExceeded = "EVENT_LIMIT_EXCEEDED"
  6715. // @enum WorkflowExecutionTerminatedCause
  6716. WorkflowExecutionTerminatedCauseOperatorInitiated = "OPERATOR_INITIATED"
  6717. )
  6718. const (
  6719. // @enum WorkflowExecutionTimeoutType
  6720. WorkflowExecutionTimeoutTypeStartToClose = "START_TO_CLOSE"
  6721. )