api.go 402 KB

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