api.go 301 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package codepipeline
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  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 opAcknowledgeJob = "AcknowledgeJob"
  13. // AcknowledgeJobRequest generates a "aws/request.Request" representing the
  14. // client's request for the AcknowledgeJob operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AcknowledgeJob for more information on using the AcknowledgeJob
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AcknowledgeJobRequest method.
  29. // req, resp := client.AcknowledgeJobRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob
  37. func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) {
  38. op := &request.Operation{
  39. Name: opAcknowledgeJob,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AcknowledgeJobInput{}
  45. }
  46. output = &AcknowledgeJobOutput{}
  47. req = c.newRequest(op, input, output)
  48. return
  49. }
  50. // AcknowledgeJob API operation for AWS CodePipeline.
  51. //
  52. // Returns information about a specified job and whether that job has been received
  53. // by the job worker. Only used for custom actions.
  54. //
  55. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  56. // with awserr.Error's Code and Message methods to get detailed information about
  57. // the error.
  58. //
  59. // See the AWS API reference guide for AWS CodePipeline's
  60. // API operation AcknowledgeJob for usage and error information.
  61. //
  62. // Returned Error Codes:
  63. // * ErrCodeValidationException "ValidationException"
  64. // The validation was specified in an invalid format.
  65. //
  66. // * ErrCodeInvalidNonceException "InvalidNonceException"
  67. // The specified nonce was specified in an invalid format.
  68. //
  69. // * ErrCodeJobNotFoundException "JobNotFoundException"
  70. // The specified job was specified in an invalid format or cannot be found.
  71. //
  72. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob
  73. func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
  74. req, out := c.AcknowledgeJobRequest(input)
  75. return out, req.Send()
  76. }
  77. // AcknowledgeJobWithContext is the same as AcknowledgeJob with the addition of
  78. // the ability to pass a context and additional request options.
  79. //
  80. // See AcknowledgeJob for details on how to use this API operation.
  81. //
  82. // The context must be non-nil and will be used for request cancellation. If
  83. // the context is nil a panic will occur. In the future the SDK may create
  84. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  85. // for more information on using Contexts.
  86. func (c *CodePipeline) AcknowledgeJobWithContext(ctx aws.Context, input *AcknowledgeJobInput, opts ...request.Option) (*AcknowledgeJobOutput, error) {
  87. req, out := c.AcknowledgeJobRequest(input)
  88. req.SetContext(ctx)
  89. req.ApplyOptions(opts...)
  90. return out, req.Send()
  91. }
  92. const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
  93. // AcknowledgeThirdPartyJobRequest generates a "aws/request.Request" representing the
  94. // client's request for the AcknowledgeThirdPartyJob operation. The "output" return
  95. // value will be populated with the request's response once the request completes
  96. // successfully.
  97. //
  98. // Use "Send" method on the returned Request to send the API call to the service.
  99. // the "output" return value is not valid until after Send returns without error.
  100. //
  101. // See AcknowledgeThirdPartyJob for more information on using the AcknowledgeThirdPartyJob
  102. // API call, and error handling.
  103. //
  104. // This method is useful when you want to inject custom logic or configuration
  105. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  106. //
  107. //
  108. // // Example sending a request using the AcknowledgeThirdPartyJobRequest method.
  109. // req, resp := client.AcknowledgeThirdPartyJobRequest(params)
  110. //
  111. // err := req.Send()
  112. // if err == nil { // resp is now filled
  113. // fmt.Println(resp)
  114. // }
  115. //
  116. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob
  117. func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) {
  118. op := &request.Operation{
  119. Name: opAcknowledgeThirdPartyJob,
  120. HTTPMethod: "POST",
  121. HTTPPath: "/",
  122. }
  123. if input == nil {
  124. input = &AcknowledgeThirdPartyJobInput{}
  125. }
  126. output = &AcknowledgeThirdPartyJobOutput{}
  127. req = c.newRequest(op, input, output)
  128. return
  129. }
  130. // AcknowledgeThirdPartyJob API operation for AWS CodePipeline.
  131. //
  132. // Confirms a job worker has received the specified job. Only used for partner
  133. // actions.
  134. //
  135. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  136. // with awserr.Error's Code and Message methods to get detailed information about
  137. // the error.
  138. //
  139. // See the AWS API reference guide for AWS CodePipeline's
  140. // API operation AcknowledgeThirdPartyJob for usage and error information.
  141. //
  142. // Returned Error Codes:
  143. // * ErrCodeValidationException "ValidationException"
  144. // The validation was specified in an invalid format.
  145. //
  146. // * ErrCodeInvalidNonceException "InvalidNonceException"
  147. // The specified nonce was specified in an invalid format.
  148. //
  149. // * ErrCodeJobNotFoundException "JobNotFoundException"
  150. // The specified job was specified in an invalid format or cannot be found.
  151. //
  152. // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
  153. // The client token was specified in an invalid format
  154. //
  155. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob
  156. func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
  157. req, out := c.AcknowledgeThirdPartyJobRequest(input)
  158. return out, req.Send()
  159. }
  160. // AcknowledgeThirdPartyJobWithContext is the same as AcknowledgeThirdPartyJob with the addition of
  161. // the ability to pass a context and additional request options.
  162. //
  163. // See AcknowledgeThirdPartyJob for details on how to use this API operation.
  164. //
  165. // The context must be non-nil and will be used for request cancellation. If
  166. // the context is nil a panic will occur. In the future the SDK may create
  167. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  168. // for more information on using Contexts.
  169. func (c *CodePipeline) AcknowledgeThirdPartyJobWithContext(ctx aws.Context, input *AcknowledgeThirdPartyJobInput, opts ...request.Option) (*AcknowledgeThirdPartyJobOutput, error) {
  170. req, out := c.AcknowledgeThirdPartyJobRequest(input)
  171. req.SetContext(ctx)
  172. req.ApplyOptions(opts...)
  173. return out, req.Send()
  174. }
  175. const opCreateCustomActionType = "CreateCustomActionType"
  176. // CreateCustomActionTypeRequest generates a "aws/request.Request" representing the
  177. // client's request for the CreateCustomActionType operation. The "output" return
  178. // value will be populated with the request's response once the request completes
  179. // successfully.
  180. //
  181. // Use "Send" method on the returned Request to send the API call to the service.
  182. // the "output" return value is not valid until after Send returns without error.
  183. //
  184. // See CreateCustomActionType for more information on using the CreateCustomActionType
  185. // API call, and error handling.
  186. //
  187. // This method is useful when you want to inject custom logic or configuration
  188. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  189. //
  190. //
  191. // // Example sending a request using the CreateCustomActionTypeRequest method.
  192. // req, resp := client.CreateCustomActionTypeRequest(params)
  193. //
  194. // err := req.Send()
  195. // if err == nil { // resp is now filled
  196. // fmt.Println(resp)
  197. // }
  198. //
  199. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType
  200. func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) {
  201. op := &request.Operation{
  202. Name: opCreateCustomActionType,
  203. HTTPMethod: "POST",
  204. HTTPPath: "/",
  205. }
  206. if input == nil {
  207. input = &CreateCustomActionTypeInput{}
  208. }
  209. output = &CreateCustomActionTypeOutput{}
  210. req = c.newRequest(op, input, output)
  211. return
  212. }
  213. // CreateCustomActionType API operation for AWS CodePipeline.
  214. //
  215. // Creates a new custom action that can be used in all pipelines associated
  216. // with the AWS account. Only used for custom actions.
  217. //
  218. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  219. // with awserr.Error's Code and Message methods to get detailed information about
  220. // the error.
  221. //
  222. // See the AWS API reference guide for AWS CodePipeline's
  223. // API operation CreateCustomActionType for usage and error information.
  224. //
  225. // Returned Error Codes:
  226. // * ErrCodeValidationException "ValidationException"
  227. // The validation was specified in an invalid format.
  228. //
  229. // * ErrCodeLimitExceededException "LimitExceededException"
  230. // The number of pipelines associated with the AWS account has exceeded the
  231. // limit allowed for the account.
  232. //
  233. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType
  234. func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
  235. req, out := c.CreateCustomActionTypeRequest(input)
  236. return out, req.Send()
  237. }
  238. // CreateCustomActionTypeWithContext is the same as CreateCustomActionType with the addition of
  239. // the ability to pass a context and additional request options.
  240. //
  241. // See CreateCustomActionType for details on how to use this API operation.
  242. //
  243. // The context must be non-nil and will be used for request cancellation. If
  244. // the context is nil a panic will occur. In the future the SDK may create
  245. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  246. // for more information on using Contexts.
  247. func (c *CodePipeline) CreateCustomActionTypeWithContext(ctx aws.Context, input *CreateCustomActionTypeInput, opts ...request.Option) (*CreateCustomActionTypeOutput, error) {
  248. req, out := c.CreateCustomActionTypeRequest(input)
  249. req.SetContext(ctx)
  250. req.ApplyOptions(opts...)
  251. return out, req.Send()
  252. }
  253. const opCreatePipeline = "CreatePipeline"
  254. // CreatePipelineRequest generates a "aws/request.Request" representing the
  255. // client's request for the CreatePipeline operation. The "output" return
  256. // value will be populated with the request's response once the request completes
  257. // successfully.
  258. //
  259. // Use "Send" method on the returned Request to send the API call to the service.
  260. // the "output" return value is not valid until after Send returns without error.
  261. //
  262. // See CreatePipeline for more information on using the CreatePipeline
  263. // API call, and error handling.
  264. //
  265. // This method is useful when you want to inject custom logic or configuration
  266. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  267. //
  268. //
  269. // // Example sending a request using the CreatePipelineRequest method.
  270. // req, resp := client.CreatePipelineRequest(params)
  271. //
  272. // err := req.Send()
  273. // if err == nil { // resp is now filled
  274. // fmt.Println(resp)
  275. // }
  276. //
  277. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline
  278. func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  279. op := &request.Operation{
  280. Name: opCreatePipeline,
  281. HTTPMethod: "POST",
  282. HTTPPath: "/",
  283. }
  284. if input == nil {
  285. input = &CreatePipelineInput{}
  286. }
  287. output = &CreatePipelineOutput{}
  288. req = c.newRequest(op, input, output)
  289. return
  290. }
  291. // CreatePipeline API operation for AWS CodePipeline.
  292. //
  293. // Creates a pipeline.
  294. //
  295. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  296. // with awserr.Error's Code and Message methods to get detailed information about
  297. // the error.
  298. //
  299. // See the AWS API reference guide for AWS CodePipeline's
  300. // API operation CreatePipeline for usage and error information.
  301. //
  302. // Returned Error Codes:
  303. // * ErrCodeValidationException "ValidationException"
  304. // The validation was specified in an invalid format.
  305. //
  306. // * ErrCodePipelineNameInUseException "PipelineNameInUseException"
  307. // The specified pipeline name is already in use.
  308. //
  309. // * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException"
  310. // The specified stage declaration was specified in an invalid format.
  311. //
  312. // * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException"
  313. // The specified action declaration was specified in an invalid format.
  314. //
  315. // * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException"
  316. // Reserved for future use.
  317. //
  318. // * ErrCodeInvalidStructureException "InvalidStructureException"
  319. // The specified structure was specified in an invalid format.
  320. //
  321. // * ErrCodeLimitExceededException "LimitExceededException"
  322. // The number of pipelines associated with the AWS account has exceeded the
  323. // limit allowed for the account.
  324. //
  325. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline
  326. func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  327. req, out := c.CreatePipelineRequest(input)
  328. return out, req.Send()
  329. }
  330. // CreatePipelineWithContext is the same as CreatePipeline with the addition of
  331. // the ability to pass a context and additional request options.
  332. //
  333. // See CreatePipeline for details on how to use this API operation.
  334. //
  335. // The context must be non-nil and will be used for request cancellation. If
  336. // the context is nil a panic will occur. In the future the SDK may create
  337. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  338. // for more information on using Contexts.
  339. func (c *CodePipeline) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) {
  340. req, out := c.CreatePipelineRequest(input)
  341. req.SetContext(ctx)
  342. req.ApplyOptions(opts...)
  343. return out, req.Send()
  344. }
  345. const opDeleteCustomActionType = "DeleteCustomActionType"
  346. // DeleteCustomActionTypeRequest generates a "aws/request.Request" representing the
  347. // client's request for the DeleteCustomActionType operation. The "output" return
  348. // value will be populated with the request's response once the request completes
  349. // successfully.
  350. //
  351. // Use "Send" method on the returned Request to send the API call to the service.
  352. // the "output" return value is not valid until after Send returns without error.
  353. //
  354. // See DeleteCustomActionType for more information on using the DeleteCustomActionType
  355. // API call, and error handling.
  356. //
  357. // This method is useful when you want to inject custom logic or configuration
  358. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  359. //
  360. //
  361. // // Example sending a request using the DeleteCustomActionTypeRequest method.
  362. // req, resp := client.DeleteCustomActionTypeRequest(params)
  363. //
  364. // err := req.Send()
  365. // if err == nil { // resp is now filled
  366. // fmt.Println(resp)
  367. // }
  368. //
  369. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType
  370. func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) {
  371. op := &request.Operation{
  372. Name: opDeleteCustomActionType,
  373. HTTPMethod: "POST",
  374. HTTPPath: "/",
  375. }
  376. if input == nil {
  377. input = &DeleteCustomActionTypeInput{}
  378. }
  379. output = &DeleteCustomActionTypeOutput{}
  380. req = c.newRequest(op, input, output)
  381. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  382. return
  383. }
  384. // DeleteCustomActionType API operation for AWS CodePipeline.
  385. //
  386. // Marks a custom action as deleted. PollForJobs for the custom action will
  387. // fail after the action is marked for deletion. Only used for custom actions.
  388. //
  389. // To re-create a custom action after it has been deleted you must use a string
  390. // in the version field that has never been used before. This string can be
  391. // an incremented version number, for example. To restore a deleted custom action,
  392. // use a JSON file that is identical to the deleted action, including the original
  393. // string in the version field.
  394. //
  395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  396. // with awserr.Error's Code and Message methods to get detailed information about
  397. // the error.
  398. //
  399. // See the AWS API reference guide for AWS CodePipeline's
  400. // API operation DeleteCustomActionType for usage and error information.
  401. //
  402. // Returned Error Codes:
  403. // * ErrCodeValidationException "ValidationException"
  404. // The validation was specified in an invalid format.
  405. //
  406. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType
  407. func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
  408. req, out := c.DeleteCustomActionTypeRequest(input)
  409. return out, req.Send()
  410. }
  411. // DeleteCustomActionTypeWithContext is the same as DeleteCustomActionType with the addition of
  412. // the ability to pass a context and additional request options.
  413. //
  414. // See DeleteCustomActionType for details on how to use this API operation.
  415. //
  416. // The context must be non-nil and will be used for request cancellation. If
  417. // the context is nil a panic will occur. In the future the SDK may create
  418. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  419. // for more information on using Contexts.
  420. func (c *CodePipeline) DeleteCustomActionTypeWithContext(ctx aws.Context, input *DeleteCustomActionTypeInput, opts ...request.Option) (*DeleteCustomActionTypeOutput, error) {
  421. req, out := c.DeleteCustomActionTypeRequest(input)
  422. req.SetContext(ctx)
  423. req.ApplyOptions(opts...)
  424. return out, req.Send()
  425. }
  426. const opDeletePipeline = "DeletePipeline"
  427. // DeletePipelineRequest generates a "aws/request.Request" representing the
  428. // client's request for the DeletePipeline operation. The "output" return
  429. // value will be populated with the request's response once the request completes
  430. // successfully.
  431. //
  432. // Use "Send" method on the returned Request to send the API call to the service.
  433. // the "output" return value is not valid until after Send returns without error.
  434. //
  435. // See DeletePipeline for more information on using the DeletePipeline
  436. // API call, and error handling.
  437. //
  438. // This method is useful when you want to inject custom logic or configuration
  439. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  440. //
  441. //
  442. // // Example sending a request using the DeletePipelineRequest method.
  443. // req, resp := client.DeletePipelineRequest(params)
  444. //
  445. // err := req.Send()
  446. // if err == nil { // resp is now filled
  447. // fmt.Println(resp)
  448. // }
  449. //
  450. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline
  451. func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  452. op := &request.Operation{
  453. Name: opDeletePipeline,
  454. HTTPMethod: "POST",
  455. HTTPPath: "/",
  456. }
  457. if input == nil {
  458. input = &DeletePipelineInput{}
  459. }
  460. output = &DeletePipelineOutput{}
  461. req = c.newRequest(op, input, output)
  462. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  463. return
  464. }
  465. // DeletePipeline API operation for AWS CodePipeline.
  466. //
  467. // Deletes the specified pipeline.
  468. //
  469. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  470. // with awserr.Error's Code and Message methods to get detailed information about
  471. // the error.
  472. //
  473. // See the AWS API reference guide for AWS CodePipeline's
  474. // API operation DeletePipeline for usage and error information.
  475. //
  476. // Returned Error Codes:
  477. // * ErrCodeValidationException "ValidationException"
  478. // The validation was specified in an invalid format.
  479. //
  480. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline
  481. func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  482. req, out := c.DeletePipelineRequest(input)
  483. return out, req.Send()
  484. }
  485. // DeletePipelineWithContext is the same as DeletePipeline with the addition of
  486. // the ability to pass a context and additional request options.
  487. //
  488. // See DeletePipeline for details on how to use this API operation.
  489. //
  490. // The context must be non-nil and will be used for request cancellation. If
  491. // the context is nil a panic will occur. In the future the SDK may create
  492. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  493. // for more information on using Contexts.
  494. func (c *CodePipeline) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) {
  495. req, out := c.DeletePipelineRequest(input)
  496. req.SetContext(ctx)
  497. req.ApplyOptions(opts...)
  498. return out, req.Send()
  499. }
  500. const opDeleteWebhook = "DeleteWebhook"
  501. // DeleteWebhookRequest generates a "aws/request.Request" representing the
  502. // client's request for the DeleteWebhook operation. The "output" return
  503. // value will be populated with the request's response once the request completes
  504. // successfully.
  505. //
  506. // Use "Send" method on the returned Request to send the API call to the service.
  507. // the "output" return value is not valid until after Send returns without error.
  508. //
  509. // See DeleteWebhook for more information on using the DeleteWebhook
  510. // API call, and error handling.
  511. //
  512. // This method is useful when you want to inject custom logic or configuration
  513. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  514. //
  515. //
  516. // // Example sending a request using the DeleteWebhookRequest method.
  517. // req, resp := client.DeleteWebhookRequest(params)
  518. //
  519. // err := req.Send()
  520. // if err == nil { // resp is now filled
  521. // fmt.Println(resp)
  522. // }
  523. //
  524. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook
  525. func (c *CodePipeline) DeleteWebhookRequest(input *DeleteWebhookInput) (req *request.Request, output *DeleteWebhookOutput) {
  526. op := &request.Operation{
  527. Name: opDeleteWebhook,
  528. HTTPMethod: "POST",
  529. HTTPPath: "/",
  530. }
  531. if input == nil {
  532. input = &DeleteWebhookInput{}
  533. }
  534. output = &DeleteWebhookOutput{}
  535. req = c.newRequest(op, input, output)
  536. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  537. return
  538. }
  539. // DeleteWebhook API operation for AWS CodePipeline.
  540. //
  541. // Deletes a previously created webhook by name. Deleting the webhook stops
  542. // AWS CodePipeline from starting a pipeline every time an external event occurs.
  543. // The API will return successfully when trying to delete a webhook that is
  544. // already deleted. If a deleted webhook is re-created by calling PutWebhook
  545. // with the same name, it will have a different URL.
  546. //
  547. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  548. // with awserr.Error's Code and Message methods to get detailed information about
  549. // the error.
  550. //
  551. // See the AWS API reference guide for AWS CodePipeline's
  552. // API operation DeleteWebhook for usage and error information.
  553. //
  554. // Returned Error Codes:
  555. // * ErrCodeValidationException "ValidationException"
  556. // The validation was specified in an invalid format.
  557. //
  558. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook
  559. func (c *CodePipeline) DeleteWebhook(input *DeleteWebhookInput) (*DeleteWebhookOutput, error) {
  560. req, out := c.DeleteWebhookRequest(input)
  561. return out, req.Send()
  562. }
  563. // DeleteWebhookWithContext is the same as DeleteWebhook with the addition of
  564. // the ability to pass a context and additional request options.
  565. //
  566. // See DeleteWebhook for details on how to use this API operation.
  567. //
  568. // The context must be non-nil and will be used for request cancellation. If
  569. // the context is nil a panic will occur. In the future the SDK may create
  570. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  571. // for more information on using Contexts.
  572. func (c *CodePipeline) DeleteWebhookWithContext(ctx aws.Context, input *DeleteWebhookInput, opts ...request.Option) (*DeleteWebhookOutput, error) {
  573. req, out := c.DeleteWebhookRequest(input)
  574. req.SetContext(ctx)
  575. req.ApplyOptions(opts...)
  576. return out, req.Send()
  577. }
  578. const opDeregisterWebhookWithThirdParty = "DeregisterWebhookWithThirdParty"
  579. // DeregisterWebhookWithThirdPartyRequest generates a "aws/request.Request" representing the
  580. // client's request for the DeregisterWebhookWithThirdParty operation. The "output" return
  581. // value will be populated with the request's response once the request completes
  582. // successfully.
  583. //
  584. // Use "Send" method on the returned Request to send the API call to the service.
  585. // the "output" return value is not valid until after Send returns without error.
  586. //
  587. // See DeregisterWebhookWithThirdParty for more information on using the DeregisterWebhookWithThirdParty
  588. // API call, and error handling.
  589. //
  590. // This method is useful when you want to inject custom logic or configuration
  591. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  592. //
  593. //
  594. // // Example sending a request using the DeregisterWebhookWithThirdPartyRequest method.
  595. // req, resp := client.DeregisterWebhookWithThirdPartyRequest(params)
  596. //
  597. // err := req.Send()
  598. // if err == nil { // resp is now filled
  599. // fmt.Println(resp)
  600. // }
  601. //
  602. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty
  603. func (c *CodePipeline) DeregisterWebhookWithThirdPartyRequest(input *DeregisterWebhookWithThirdPartyInput) (req *request.Request, output *DeregisterWebhookWithThirdPartyOutput) {
  604. op := &request.Operation{
  605. Name: opDeregisterWebhookWithThirdParty,
  606. HTTPMethod: "POST",
  607. HTTPPath: "/",
  608. }
  609. if input == nil {
  610. input = &DeregisterWebhookWithThirdPartyInput{}
  611. }
  612. output = &DeregisterWebhookWithThirdPartyOutput{}
  613. req = c.newRequest(op, input, output)
  614. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  615. return
  616. }
  617. // DeregisterWebhookWithThirdParty API operation for AWS CodePipeline.
  618. //
  619. // Removes the connection between the webhook that was created by CodePipeline
  620. // and the external tool with events to be detected. Currently only supported
  621. // for webhooks that target an action type of GitHub.
  622. //
  623. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  624. // with awserr.Error's Code and Message methods to get detailed information about
  625. // the error.
  626. //
  627. // See the AWS API reference guide for AWS CodePipeline's
  628. // API operation DeregisterWebhookWithThirdParty for usage and error information.
  629. //
  630. // Returned Error Codes:
  631. // * ErrCodeValidationException "ValidationException"
  632. // The validation was specified in an invalid format.
  633. //
  634. // * ErrCodeWebhookNotFoundException "WebhookNotFoundException"
  635. // The specified webhook was entered in an invalid format or cannot be found.
  636. //
  637. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty
  638. func (c *CodePipeline) DeregisterWebhookWithThirdParty(input *DeregisterWebhookWithThirdPartyInput) (*DeregisterWebhookWithThirdPartyOutput, error) {
  639. req, out := c.DeregisterWebhookWithThirdPartyRequest(input)
  640. return out, req.Send()
  641. }
  642. // DeregisterWebhookWithThirdPartyWithContext is the same as DeregisterWebhookWithThirdParty with the addition of
  643. // the ability to pass a context and additional request options.
  644. //
  645. // See DeregisterWebhookWithThirdParty for details on how to use this API operation.
  646. //
  647. // The context must be non-nil and will be used for request cancellation. If
  648. // the context is nil a panic will occur. In the future the SDK may create
  649. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  650. // for more information on using Contexts.
  651. func (c *CodePipeline) DeregisterWebhookWithThirdPartyWithContext(ctx aws.Context, input *DeregisterWebhookWithThirdPartyInput, opts ...request.Option) (*DeregisterWebhookWithThirdPartyOutput, error) {
  652. req, out := c.DeregisterWebhookWithThirdPartyRequest(input)
  653. req.SetContext(ctx)
  654. req.ApplyOptions(opts...)
  655. return out, req.Send()
  656. }
  657. const opDisableStageTransition = "DisableStageTransition"
  658. // DisableStageTransitionRequest generates a "aws/request.Request" representing the
  659. // client's request for the DisableStageTransition operation. The "output" return
  660. // value will be populated with the request's response once the request completes
  661. // successfully.
  662. //
  663. // Use "Send" method on the returned Request to send the API call to the service.
  664. // the "output" return value is not valid until after Send returns without error.
  665. //
  666. // See DisableStageTransition for more information on using the DisableStageTransition
  667. // API call, and error handling.
  668. //
  669. // This method is useful when you want to inject custom logic or configuration
  670. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  671. //
  672. //
  673. // // Example sending a request using the DisableStageTransitionRequest method.
  674. // req, resp := client.DisableStageTransitionRequest(params)
  675. //
  676. // err := req.Send()
  677. // if err == nil { // resp is now filled
  678. // fmt.Println(resp)
  679. // }
  680. //
  681. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition
  682. func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) {
  683. op := &request.Operation{
  684. Name: opDisableStageTransition,
  685. HTTPMethod: "POST",
  686. HTTPPath: "/",
  687. }
  688. if input == nil {
  689. input = &DisableStageTransitionInput{}
  690. }
  691. output = &DisableStageTransitionOutput{}
  692. req = c.newRequest(op, input, output)
  693. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  694. return
  695. }
  696. // DisableStageTransition API operation for AWS CodePipeline.
  697. //
  698. // Prevents artifacts in a pipeline from transitioning to the next stage in
  699. // the pipeline.
  700. //
  701. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  702. // with awserr.Error's Code and Message methods to get detailed information about
  703. // the error.
  704. //
  705. // See the AWS API reference guide for AWS CodePipeline's
  706. // API operation DisableStageTransition for usage and error information.
  707. //
  708. // Returned Error Codes:
  709. // * ErrCodeValidationException "ValidationException"
  710. // The validation was specified in an invalid format.
  711. //
  712. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  713. // The specified pipeline was specified in an invalid format or cannot be found.
  714. //
  715. // * ErrCodeStageNotFoundException "StageNotFoundException"
  716. // The specified stage was specified in an invalid format or cannot be found.
  717. //
  718. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition
  719. func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
  720. req, out := c.DisableStageTransitionRequest(input)
  721. return out, req.Send()
  722. }
  723. // DisableStageTransitionWithContext is the same as DisableStageTransition with the addition of
  724. // the ability to pass a context and additional request options.
  725. //
  726. // See DisableStageTransition for details on how to use this API operation.
  727. //
  728. // The context must be non-nil and will be used for request cancellation. If
  729. // the context is nil a panic will occur. In the future the SDK may create
  730. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  731. // for more information on using Contexts.
  732. func (c *CodePipeline) DisableStageTransitionWithContext(ctx aws.Context, input *DisableStageTransitionInput, opts ...request.Option) (*DisableStageTransitionOutput, error) {
  733. req, out := c.DisableStageTransitionRequest(input)
  734. req.SetContext(ctx)
  735. req.ApplyOptions(opts...)
  736. return out, req.Send()
  737. }
  738. const opEnableStageTransition = "EnableStageTransition"
  739. // EnableStageTransitionRequest generates a "aws/request.Request" representing the
  740. // client's request for the EnableStageTransition operation. The "output" return
  741. // value will be populated with the request's response once the request completes
  742. // successfully.
  743. //
  744. // Use "Send" method on the returned Request to send the API call to the service.
  745. // the "output" return value is not valid until after Send returns without error.
  746. //
  747. // See EnableStageTransition for more information on using the EnableStageTransition
  748. // API call, and error handling.
  749. //
  750. // This method is useful when you want to inject custom logic or configuration
  751. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  752. //
  753. //
  754. // // Example sending a request using the EnableStageTransitionRequest method.
  755. // req, resp := client.EnableStageTransitionRequest(params)
  756. //
  757. // err := req.Send()
  758. // if err == nil { // resp is now filled
  759. // fmt.Println(resp)
  760. // }
  761. //
  762. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition
  763. func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) {
  764. op := &request.Operation{
  765. Name: opEnableStageTransition,
  766. HTTPMethod: "POST",
  767. HTTPPath: "/",
  768. }
  769. if input == nil {
  770. input = &EnableStageTransitionInput{}
  771. }
  772. output = &EnableStageTransitionOutput{}
  773. req = c.newRequest(op, input, output)
  774. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  775. return
  776. }
  777. // EnableStageTransition API operation for AWS CodePipeline.
  778. //
  779. // Enables artifacts in a pipeline to transition to a stage in a pipeline.
  780. //
  781. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  782. // with awserr.Error's Code and Message methods to get detailed information about
  783. // the error.
  784. //
  785. // See the AWS API reference guide for AWS CodePipeline's
  786. // API operation EnableStageTransition for usage and error information.
  787. //
  788. // Returned Error Codes:
  789. // * ErrCodeValidationException "ValidationException"
  790. // The validation was specified in an invalid format.
  791. //
  792. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  793. // The specified pipeline was specified in an invalid format or cannot be found.
  794. //
  795. // * ErrCodeStageNotFoundException "StageNotFoundException"
  796. // The specified stage was specified in an invalid format or cannot be found.
  797. //
  798. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition
  799. func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
  800. req, out := c.EnableStageTransitionRequest(input)
  801. return out, req.Send()
  802. }
  803. // EnableStageTransitionWithContext is the same as EnableStageTransition with the addition of
  804. // the ability to pass a context and additional request options.
  805. //
  806. // See EnableStageTransition for details on how to use this API operation.
  807. //
  808. // The context must be non-nil and will be used for request cancellation. If
  809. // the context is nil a panic will occur. In the future the SDK may create
  810. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  811. // for more information on using Contexts.
  812. func (c *CodePipeline) EnableStageTransitionWithContext(ctx aws.Context, input *EnableStageTransitionInput, opts ...request.Option) (*EnableStageTransitionOutput, error) {
  813. req, out := c.EnableStageTransitionRequest(input)
  814. req.SetContext(ctx)
  815. req.ApplyOptions(opts...)
  816. return out, req.Send()
  817. }
  818. const opGetJobDetails = "GetJobDetails"
  819. // GetJobDetailsRequest generates a "aws/request.Request" representing the
  820. // client's request for the GetJobDetails operation. The "output" return
  821. // value will be populated with the request's response once the request completes
  822. // successfully.
  823. //
  824. // Use "Send" method on the returned Request to send the API call to the service.
  825. // the "output" return value is not valid until after Send returns without error.
  826. //
  827. // See GetJobDetails for more information on using the GetJobDetails
  828. // API call, and error handling.
  829. //
  830. // This method is useful when you want to inject custom logic or configuration
  831. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  832. //
  833. //
  834. // // Example sending a request using the GetJobDetailsRequest method.
  835. // req, resp := client.GetJobDetailsRequest(params)
  836. //
  837. // err := req.Send()
  838. // if err == nil { // resp is now filled
  839. // fmt.Println(resp)
  840. // }
  841. //
  842. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails
  843. func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) {
  844. op := &request.Operation{
  845. Name: opGetJobDetails,
  846. HTTPMethod: "POST",
  847. HTTPPath: "/",
  848. }
  849. if input == nil {
  850. input = &GetJobDetailsInput{}
  851. }
  852. output = &GetJobDetailsOutput{}
  853. req = c.newRequest(op, input, output)
  854. return
  855. }
  856. // GetJobDetails API operation for AWS CodePipeline.
  857. //
  858. // Returns information about a job. Only used for custom actions.
  859. //
  860. // When this API is called, AWS CodePipeline returns temporary credentials for
  861. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  862. // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
  863. // this API returns any secret values defined for the action.
  864. //
  865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  866. // with awserr.Error's Code and Message methods to get detailed information about
  867. // the error.
  868. //
  869. // See the AWS API reference guide for AWS CodePipeline's
  870. // API operation GetJobDetails for usage and error information.
  871. //
  872. // Returned Error Codes:
  873. // * ErrCodeValidationException "ValidationException"
  874. // The validation was specified in an invalid format.
  875. //
  876. // * ErrCodeJobNotFoundException "JobNotFoundException"
  877. // The specified job was specified in an invalid format or cannot be found.
  878. //
  879. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails
  880. func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
  881. req, out := c.GetJobDetailsRequest(input)
  882. return out, req.Send()
  883. }
  884. // GetJobDetailsWithContext is the same as GetJobDetails with the addition of
  885. // the ability to pass a context and additional request options.
  886. //
  887. // See GetJobDetails for details on how to use this API operation.
  888. //
  889. // The context must be non-nil and will be used for request cancellation. If
  890. // the context is nil a panic will occur. In the future the SDK may create
  891. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  892. // for more information on using Contexts.
  893. func (c *CodePipeline) GetJobDetailsWithContext(ctx aws.Context, input *GetJobDetailsInput, opts ...request.Option) (*GetJobDetailsOutput, error) {
  894. req, out := c.GetJobDetailsRequest(input)
  895. req.SetContext(ctx)
  896. req.ApplyOptions(opts...)
  897. return out, req.Send()
  898. }
  899. const opGetPipeline = "GetPipeline"
  900. // GetPipelineRequest generates a "aws/request.Request" representing the
  901. // client's request for the GetPipeline operation. The "output" return
  902. // value will be populated with the request's response once the request completes
  903. // successfully.
  904. //
  905. // Use "Send" method on the returned Request to send the API call to the service.
  906. // the "output" return value is not valid until after Send returns without error.
  907. //
  908. // See GetPipeline for more information on using the GetPipeline
  909. // API call, and error handling.
  910. //
  911. // This method is useful when you want to inject custom logic or configuration
  912. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  913. //
  914. //
  915. // // Example sending a request using the GetPipelineRequest method.
  916. // req, resp := client.GetPipelineRequest(params)
  917. //
  918. // err := req.Send()
  919. // if err == nil { // resp is now filled
  920. // fmt.Println(resp)
  921. // }
  922. //
  923. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline
  924. func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) {
  925. op := &request.Operation{
  926. Name: opGetPipeline,
  927. HTTPMethod: "POST",
  928. HTTPPath: "/",
  929. }
  930. if input == nil {
  931. input = &GetPipelineInput{}
  932. }
  933. output = &GetPipelineOutput{}
  934. req = c.newRequest(op, input, output)
  935. return
  936. }
  937. // GetPipeline API operation for AWS CodePipeline.
  938. //
  939. // Returns the metadata, structure, stages, and actions of a pipeline. Can be
  940. // used to return the entire structure of a pipeline in JSON format, which can
  941. // then be modified and used to update the pipeline structure with UpdatePipeline.
  942. //
  943. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  944. // with awserr.Error's Code and Message methods to get detailed information about
  945. // the error.
  946. //
  947. // See the AWS API reference guide for AWS CodePipeline's
  948. // API operation GetPipeline for usage and error information.
  949. //
  950. // Returned Error Codes:
  951. // * ErrCodeValidationException "ValidationException"
  952. // The validation was specified in an invalid format.
  953. //
  954. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  955. // The specified pipeline was specified in an invalid format or cannot be found.
  956. //
  957. // * ErrCodePipelineVersionNotFoundException "PipelineVersionNotFoundException"
  958. // The specified pipeline version was specified in an invalid format or cannot
  959. // be found.
  960. //
  961. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline
  962. func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
  963. req, out := c.GetPipelineRequest(input)
  964. return out, req.Send()
  965. }
  966. // GetPipelineWithContext is the same as GetPipeline with the addition of
  967. // the ability to pass a context and additional request options.
  968. //
  969. // See GetPipeline for details on how to use this API operation.
  970. //
  971. // The context must be non-nil and will be used for request cancellation. If
  972. // the context is nil a panic will occur. In the future the SDK may create
  973. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  974. // for more information on using Contexts.
  975. func (c *CodePipeline) GetPipelineWithContext(ctx aws.Context, input *GetPipelineInput, opts ...request.Option) (*GetPipelineOutput, error) {
  976. req, out := c.GetPipelineRequest(input)
  977. req.SetContext(ctx)
  978. req.ApplyOptions(opts...)
  979. return out, req.Send()
  980. }
  981. const opGetPipelineExecution = "GetPipelineExecution"
  982. // GetPipelineExecutionRequest generates a "aws/request.Request" representing the
  983. // client's request for the GetPipelineExecution operation. The "output" return
  984. // value will be populated with the request's response once the request completes
  985. // successfully.
  986. //
  987. // Use "Send" method on the returned Request to send the API call to the service.
  988. // the "output" return value is not valid until after Send returns without error.
  989. //
  990. // See GetPipelineExecution for more information on using the GetPipelineExecution
  991. // API call, and error handling.
  992. //
  993. // This method is useful when you want to inject custom logic or configuration
  994. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  995. //
  996. //
  997. // // Example sending a request using the GetPipelineExecutionRequest method.
  998. // req, resp := client.GetPipelineExecutionRequest(params)
  999. //
  1000. // err := req.Send()
  1001. // if err == nil { // resp is now filled
  1002. // fmt.Println(resp)
  1003. // }
  1004. //
  1005. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution
  1006. func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionInput) (req *request.Request, output *GetPipelineExecutionOutput) {
  1007. op := &request.Operation{
  1008. Name: opGetPipelineExecution,
  1009. HTTPMethod: "POST",
  1010. HTTPPath: "/",
  1011. }
  1012. if input == nil {
  1013. input = &GetPipelineExecutionInput{}
  1014. }
  1015. output = &GetPipelineExecutionOutput{}
  1016. req = c.newRequest(op, input, output)
  1017. return
  1018. }
  1019. // GetPipelineExecution API operation for AWS CodePipeline.
  1020. //
  1021. // Returns information about an execution of a pipeline, including details about
  1022. // artifacts, the pipeline execution ID, and the name, version, and status of
  1023. // the pipeline.
  1024. //
  1025. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1026. // with awserr.Error's Code and Message methods to get detailed information about
  1027. // the error.
  1028. //
  1029. // See the AWS API reference guide for AWS CodePipeline's
  1030. // API operation GetPipelineExecution for usage and error information.
  1031. //
  1032. // Returned Error Codes:
  1033. // * ErrCodeValidationException "ValidationException"
  1034. // The validation was specified in an invalid format.
  1035. //
  1036. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1037. // The specified pipeline was specified in an invalid format or cannot be found.
  1038. //
  1039. // * ErrCodePipelineExecutionNotFoundException "PipelineExecutionNotFoundException"
  1040. // The pipeline execution was specified in an invalid format or cannot be found,
  1041. // or an execution ID does not belong to the specified pipeline.
  1042. //
  1043. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution
  1044. func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) {
  1045. req, out := c.GetPipelineExecutionRequest(input)
  1046. return out, req.Send()
  1047. }
  1048. // GetPipelineExecutionWithContext is the same as GetPipelineExecution with the addition of
  1049. // the ability to pass a context and additional request options.
  1050. //
  1051. // See GetPipelineExecution for details on how to use this API operation.
  1052. //
  1053. // The context must be non-nil and will be used for request cancellation. If
  1054. // the context is nil a panic will occur. In the future the SDK may create
  1055. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1056. // for more information on using Contexts.
  1057. func (c *CodePipeline) GetPipelineExecutionWithContext(ctx aws.Context, input *GetPipelineExecutionInput, opts ...request.Option) (*GetPipelineExecutionOutput, error) {
  1058. req, out := c.GetPipelineExecutionRequest(input)
  1059. req.SetContext(ctx)
  1060. req.ApplyOptions(opts...)
  1061. return out, req.Send()
  1062. }
  1063. const opGetPipelineState = "GetPipelineState"
  1064. // GetPipelineStateRequest generates a "aws/request.Request" representing the
  1065. // client's request for the GetPipelineState operation. The "output" return
  1066. // value will be populated with the request's response once the request completes
  1067. // successfully.
  1068. //
  1069. // Use "Send" method on the returned Request to send the API call to the service.
  1070. // the "output" return value is not valid until after Send returns without error.
  1071. //
  1072. // See GetPipelineState for more information on using the GetPipelineState
  1073. // API call, and error handling.
  1074. //
  1075. // This method is useful when you want to inject custom logic or configuration
  1076. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1077. //
  1078. //
  1079. // // Example sending a request using the GetPipelineStateRequest method.
  1080. // req, resp := client.GetPipelineStateRequest(params)
  1081. //
  1082. // err := req.Send()
  1083. // if err == nil { // resp is now filled
  1084. // fmt.Println(resp)
  1085. // }
  1086. //
  1087. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState
  1088. func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) {
  1089. op := &request.Operation{
  1090. Name: opGetPipelineState,
  1091. HTTPMethod: "POST",
  1092. HTTPPath: "/",
  1093. }
  1094. if input == nil {
  1095. input = &GetPipelineStateInput{}
  1096. }
  1097. output = &GetPipelineStateOutput{}
  1098. req = c.newRequest(op, input, output)
  1099. return
  1100. }
  1101. // GetPipelineState API operation for AWS CodePipeline.
  1102. //
  1103. // Returns information about the state of a pipeline, including the stages and
  1104. // actions.
  1105. //
  1106. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1107. // with awserr.Error's Code and Message methods to get detailed information about
  1108. // the error.
  1109. //
  1110. // See the AWS API reference guide for AWS CodePipeline's
  1111. // API operation GetPipelineState for usage and error information.
  1112. //
  1113. // Returned Error Codes:
  1114. // * ErrCodeValidationException "ValidationException"
  1115. // The validation was specified in an invalid format.
  1116. //
  1117. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1118. // The specified pipeline was specified in an invalid format or cannot be found.
  1119. //
  1120. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState
  1121. func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
  1122. req, out := c.GetPipelineStateRequest(input)
  1123. return out, req.Send()
  1124. }
  1125. // GetPipelineStateWithContext is the same as GetPipelineState with the addition of
  1126. // the ability to pass a context and additional request options.
  1127. //
  1128. // See GetPipelineState for details on how to use this API operation.
  1129. //
  1130. // The context must be non-nil and will be used for request cancellation. If
  1131. // the context is nil a panic will occur. In the future the SDK may create
  1132. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1133. // for more information on using Contexts.
  1134. func (c *CodePipeline) GetPipelineStateWithContext(ctx aws.Context, input *GetPipelineStateInput, opts ...request.Option) (*GetPipelineStateOutput, error) {
  1135. req, out := c.GetPipelineStateRequest(input)
  1136. req.SetContext(ctx)
  1137. req.ApplyOptions(opts...)
  1138. return out, req.Send()
  1139. }
  1140. const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
  1141. // GetThirdPartyJobDetailsRequest generates a "aws/request.Request" representing the
  1142. // client's request for the GetThirdPartyJobDetails operation. The "output" return
  1143. // value will be populated with the request's response once the request completes
  1144. // successfully.
  1145. //
  1146. // Use "Send" method on the returned Request to send the API call to the service.
  1147. // the "output" return value is not valid until after Send returns without error.
  1148. //
  1149. // See GetThirdPartyJobDetails for more information on using the GetThirdPartyJobDetails
  1150. // API call, and error handling.
  1151. //
  1152. // This method is useful when you want to inject custom logic or configuration
  1153. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1154. //
  1155. //
  1156. // // Example sending a request using the GetThirdPartyJobDetailsRequest method.
  1157. // req, resp := client.GetThirdPartyJobDetailsRequest(params)
  1158. //
  1159. // err := req.Send()
  1160. // if err == nil { // resp is now filled
  1161. // fmt.Println(resp)
  1162. // }
  1163. //
  1164. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails
  1165. func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) {
  1166. op := &request.Operation{
  1167. Name: opGetThirdPartyJobDetails,
  1168. HTTPMethod: "POST",
  1169. HTTPPath: "/",
  1170. }
  1171. if input == nil {
  1172. input = &GetThirdPartyJobDetailsInput{}
  1173. }
  1174. output = &GetThirdPartyJobDetailsOutput{}
  1175. req = c.newRequest(op, input, output)
  1176. return
  1177. }
  1178. // GetThirdPartyJobDetails API operation for AWS CodePipeline.
  1179. //
  1180. // Requests the details of a job for a third party action. Only used for partner
  1181. // actions.
  1182. //
  1183. // When this API is called, AWS CodePipeline returns temporary credentials for
  1184. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  1185. // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
  1186. // this API returns any secret values defined for the action.
  1187. //
  1188. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1189. // with awserr.Error's Code and Message methods to get detailed information about
  1190. // the error.
  1191. //
  1192. // See the AWS API reference guide for AWS CodePipeline's
  1193. // API operation GetThirdPartyJobDetails for usage and error information.
  1194. //
  1195. // Returned Error Codes:
  1196. // * ErrCodeJobNotFoundException "JobNotFoundException"
  1197. // The specified job was specified in an invalid format or cannot be found.
  1198. //
  1199. // * ErrCodeValidationException "ValidationException"
  1200. // The validation was specified in an invalid format.
  1201. //
  1202. // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
  1203. // The client token was specified in an invalid format
  1204. //
  1205. // * ErrCodeInvalidJobException "InvalidJobException"
  1206. // The specified job was specified in an invalid format or cannot be found.
  1207. //
  1208. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails
  1209. func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
  1210. req, out := c.GetThirdPartyJobDetailsRequest(input)
  1211. return out, req.Send()
  1212. }
  1213. // GetThirdPartyJobDetailsWithContext is the same as GetThirdPartyJobDetails with the addition of
  1214. // the ability to pass a context and additional request options.
  1215. //
  1216. // See GetThirdPartyJobDetails for details on how to use this API operation.
  1217. //
  1218. // The context must be non-nil and will be used for request cancellation. If
  1219. // the context is nil a panic will occur. In the future the SDK may create
  1220. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1221. // for more information on using Contexts.
  1222. func (c *CodePipeline) GetThirdPartyJobDetailsWithContext(ctx aws.Context, input *GetThirdPartyJobDetailsInput, opts ...request.Option) (*GetThirdPartyJobDetailsOutput, error) {
  1223. req, out := c.GetThirdPartyJobDetailsRequest(input)
  1224. req.SetContext(ctx)
  1225. req.ApplyOptions(opts...)
  1226. return out, req.Send()
  1227. }
  1228. const opListActionTypes = "ListActionTypes"
  1229. // ListActionTypesRequest generates a "aws/request.Request" representing the
  1230. // client's request for the ListActionTypes operation. The "output" return
  1231. // value will be populated with the request's response once the request completes
  1232. // successfully.
  1233. //
  1234. // Use "Send" method on the returned Request to send the API call to the service.
  1235. // the "output" return value is not valid until after Send returns without error.
  1236. //
  1237. // See ListActionTypes for more information on using the ListActionTypes
  1238. // API call, and error handling.
  1239. //
  1240. // This method is useful when you want to inject custom logic or configuration
  1241. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1242. //
  1243. //
  1244. // // Example sending a request using the ListActionTypesRequest method.
  1245. // req, resp := client.ListActionTypesRequest(params)
  1246. //
  1247. // err := req.Send()
  1248. // if err == nil { // resp is now filled
  1249. // fmt.Println(resp)
  1250. // }
  1251. //
  1252. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes
  1253. func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) {
  1254. op := &request.Operation{
  1255. Name: opListActionTypes,
  1256. HTTPMethod: "POST",
  1257. HTTPPath: "/",
  1258. }
  1259. if input == nil {
  1260. input = &ListActionTypesInput{}
  1261. }
  1262. output = &ListActionTypesOutput{}
  1263. req = c.newRequest(op, input, output)
  1264. return
  1265. }
  1266. // ListActionTypes API operation for AWS CodePipeline.
  1267. //
  1268. // Gets a summary of all AWS CodePipeline action types associated with your
  1269. // account.
  1270. //
  1271. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1272. // with awserr.Error's Code and Message methods to get detailed information about
  1273. // the error.
  1274. //
  1275. // See the AWS API reference guide for AWS CodePipeline's
  1276. // API operation ListActionTypes for usage and error information.
  1277. //
  1278. // Returned Error Codes:
  1279. // * ErrCodeValidationException "ValidationException"
  1280. // The validation was specified in an invalid format.
  1281. //
  1282. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  1283. // The next token was specified in an invalid format. Make sure that the next
  1284. // token you provided is the token returned by a previous call.
  1285. //
  1286. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes
  1287. func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
  1288. req, out := c.ListActionTypesRequest(input)
  1289. return out, req.Send()
  1290. }
  1291. // ListActionTypesWithContext is the same as ListActionTypes with the addition of
  1292. // the ability to pass a context and additional request options.
  1293. //
  1294. // See ListActionTypes for details on how to use this API operation.
  1295. //
  1296. // The context must be non-nil and will be used for request cancellation. If
  1297. // the context is nil a panic will occur. In the future the SDK may create
  1298. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1299. // for more information on using Contexts.
  1300. func (c *CodePipeline) ListActionTypesWithContext(ctx aws.Context, input *ListActionTypesInput, opts ...request.Option) (*ListActionTypesOutput, error) {
  1301. req, out := c.ListActionTypesRequest(input)
  1302. req.SetContext(ctx)
  1303. req.ApplyOptions(opts...)
  1304. return out, req.Send()
  1305. }
  1306. const opListPipelineExecutions = "ListPipelineExecutions"
  1307. // ListPipelineExecutionsRequest generates a "aws/request.Request" representing the
  1308. // client's request for the ListPipelineExecutions operation. The "output" return
  1309. // value will be populated with the request's response once the request completes
  1310. // successfully.
  1311. //
  1312. // Use "Send" method on the returned Request to send the API call to the service.
  1313. // the "output" return value is not valid until after Send returns without error.
  1314. //
  1315. // See ListPipelineExecutions for more information on using the ListPipelineExecutions
  1316. // API call, and error handling.
  1317. //
  1318. // This method is useful when you want to inject custom logic or configuration
  1319. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1320. //
  1321. //
  1322. // // Example sending a request using the ListPipelineExecutionsRequest method.
  1323. // req, resp := client.ListPipelineExecutionsRequest(params)
  1324. //
  1325. // err := req.Send()
  1326. // if err == nil { // resp is now filled
  1327. // fmt.Println(resp)
  1328. // }
  1329. //
  1330. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
  1331. func (c *CodePipeline) ListPipelineExecutionsRequest(input *ListPipelineExecutionsInput) (req *request.Request, output *ListPipelineExecutionsOutput) {
  1332. op := &request.Operation{
  1333. Name: opListPipelineExecutions,
  1334. HTTPMethod: "POST",
  1335. HTTPPath: "/",
  1336. }
  1337. if input == nil {
  1338. input = &ListPipelineExecutionsInput{}
  1339. }
  1340. output = &ListPipelineExecutionsOutput{}
  1341. req = c.newRequest(op, input, output)
  1342. return
  1343. }
  1344. // ListPipelineExecutions API operation for AWS CodePipeline.
  1345. //
  1346. // Gets a summary of the most recent executions for a pipeline.
  1347. //
  1348. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1349. // with awserr.Error's Code and Message methods to get detailed information about
  1350. // the error.
  1351. //
  1352. // See the AWS API reference guide for AWS CodePipeline's
  1353. // API operation ListPipelineExecutions for usage and error information.
  1354. //
  1355. // Returned Error Codes:
  1356. // * ErrCodeValidationException "ValidationException"
  1357. // The validation was specified in an invalid format.
  1358. //
  1359. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1360. // The specified pipeline was specified in an invalid format or cannot be found.
  1361. //
  1362. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  1363. // The next token was specified in an invalid format. Make sure that the next
  1364. // token you provided is the token returned by a previous call.
  1365. //
  1366. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
  1367. func (c *CodePipeline) ListPipelineExecutions(input *ListPipelineExecutionsInput) (*ListPipelineExecutionsOutput, error) {
  1368. req, out := c.ListPipelineExecutionsRequest(input)
  1369. return out, req.Send()
  1370. }
  1371. // ListPipelineExecutionsWithContext is the same as ListPipelineExecutions with the addition of
  1372. // the ability to pass a context and additional request options.
  1373. //
  1374. // See ListPipelineExecutions for details on how to use this API operation.
  1375. //
  1376. // The context must be non-nil and will be used for request cancellation. If
  1377. // the context is nil a panic will occur. In the future the SDK may create
  1378. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1379. // for more information on using Contexts.
  1380. func (c *CodePipeline) ListPipelineExecutionsWithContext(ctx aws.Context, input *ListPipelineExecutionsInput, opts ...request.Option) (*ListPipelineExecutionsOutput, error) {
  1381. req, out := c.ListPipelineExecutionsRequest(input)
  1382. req.SetContext(ctx)
  1383. req.ApplyOptions(opts...)
  1384. return out, req.Send()
  1385. }
  1386. const opListPipelines = "ListPipelines"
  1387. // ListPipelinesRequest generates a "aws/request.Request" representing the
  1388. // client's request for the ListPipelines operation. The "output" return
  1389. // value will be populated with the request's response once the request completes
  1390. // successfully.
  1391. //
  1392. // Use "Send" method on the returned Request to send the API call to the service.
  1393. // the "output" return value is not valid until after Send returns without error.
  1394. //
  1395. // See ListPipelines for more information on using the ListPipelines
  1396. // API call, and error handling.
  1397. //
  1398. // This method is useful when you want to inject custom logic or configuration
  1399. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1400. //
  1401. //
  1402. // // Example sending a request using the ListPipelinesRequest method.
  1403. // req, resp := client.ListPipelinesRequest(params)
  1404. //
  1405. // err := req.Send()
  1406. // if err == nil { // resp is now filled
  1407. // fmt.Println(resp)
  1408. // }
  1409. //
  1410. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines
  1411. func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  1412. op := &request.Operation{
  1413. Name: opListPipelines,
  1414. HTTPMethod: "POST",
  1415. HTTPPath: "/",
  1416. }
  1417. if input == nil {
  1418. input = &ListPipelinesInput{}
  1419. }
  1420. output = &ListPipelinesOutput{}
  1421. req = c.newRequest(op, input, output)
  1422. return
  1423. }
  1424. // ListPipelines API operation for AWS CodePipeline.
  1425. //
  1426. // Gets a summary of all of the pipelines associated with your account.
  1427. //
  1428. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1429. // with awserr.Error's Code and Message methods to get detailed information about
  1430. // the error.
  1431. //
  1432. // See the AWS API reference guide for AWS CodePipeline's
  1433. // API operation ListPipelines for usage and error information.
  1434. //
  1435. // Returned Error Codes:
  1436. // * ErrCodeValidationException "ValidationException"
  1437. // The validation was specified in an invalid format.
  1438. //
  1439. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  1440. // The next token was specified in an invalid format. Make sure that the next
  1441. // token you provided is the token returned by a previous call.
  1442. //
  1443. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines
  1444. func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  1445. req, out := c.ListPipelinesRequest(input)
  1446. return out, req.Send()
  1447. }
  1448. // ListPipelinesWithContext is the same as ListPipelines with the addition of
  1449. // the ability to pass a context and additional request options.
  1450. //
  1451. // See ListPipelines for details on how to use this API operation.
  1452. //
  1453. // The context must be non-nil and will be used for request cancellation. If
  1454. // the context is nil a panic will occur. In the future the SDK may create
  1455. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1456. // for more information on using Contexts.
  1457. func (c *CodePipeline) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) {
  1458. req, out := c.ListPipelinesRequest(input)
  1459. req.SetContext(ctx)
  1460. req.ApplyOptions(opts...)
  1461. return out, req.Send()
  1462. }
  1463. const opListWebhooks = "ListWebhooks"
  1464. // ListWebhooksRequest generates a "aws/request.Request" representing the
  1465. // client's request for the ListWebhooks operation. The "output" return
  1466. // value will be populated with the request's response once the request completes
  1467. // successfully.
  1468. //
  1469. // Use "Send" method on the returned Request to send the API call to the service.
  1470. // the "output" return value is not valid until after Send returns without error.
  1471. //
  1472. // See ListWebhooks for more information on using the ListWebhooks
  1473. // API call, and error handling.
  1474. //
  1475. // This method is useful when you want to inject custom logic or configuration
  1476. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1477. //
  1478. //
  1479. // // Example sending a request using the ListWebhooksRequest method.
  1480. // req, resp := client.ListWebhooksRequest(params)
  1481. //
  1482. // err := req.Send()
  1483. // if err == nil { // resp is now filled
  1484. // fmt.Println(resp)
  1485. // }
  1486. //
  1487. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooks
  1488. func (c *CodePipeline) ListWebhooksRequest(input *ListWebhooksInput) (req *request.Request, output *ListWebhooksOutput) {
  1489. op := &request.Operation{
  1490. Name: opListWebhooks,
  1491. HTTPMethod: "POST",
  1492. HTTPPath: "/",
  1493. }
  1494. if input == nil {
  1495. input = &ListWebhooksInput{}
  1496. }
  1497. output = &ListWebhooksOutput{}
  1498. req = c.newRequest(op, input, output)
  1499. return
  1500. }
  1501. // ListWebhooks API operation for AWS CodePipeline.
  1502. //
  1503. // Gets a listing of all the webhooks in this region for this account. The output
  1504. // lists all webhooks and includes the webhook URL and ARN, as well the configuration
  1505. // for each webhook.
  1506. //
  1507. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1508. // with awserr.Error's Code and Message methods to get detailed information about
  1509. // the error.
  1510. //
  1511. // See the AWS API reference guide for AWS CodePipeline's
  1512. // API operation ListWebhooks for usage and error information.
  1513. //
  1514. // Returned Error Codes:
  1515. // * ErrCodeValidationException "ValidationException"
  1516. // The validation was specified in an invalid format.
  1517. //
  1518. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  1519. // The next token was specified in an invalid format. Make sure that the next
  1520. // token you provided is the token returned by a previous call.
  1521. //
  1522. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooks
  1523. func (c *CodePipeline) ListWebhooks(input *ListWebhooksInput) (*ListWebhooksOutput, error) {
  1524. req, out := c.ListWebhooksRequest(input)
  1525. return out, req.Send()
  1526. }
  1527. // ListWebhooksWithContext is the same as ListWebhooks with the addition of
  1528. // the ability to pass a context and additional request options.
  1529. //
  1530. // See ListWebhooks for details on how to use this API operation.
  1531. //
  1532. // The context must be non-nil and will be used for request cancellation. If
  1533. // the context is nil a panic will occur. In the future the SDK may create
  1534. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1535. // for more information on using Contexts.
  1536. func (c *CodePipeline) ListWebhooksWithContext(ctx aws.Context, input *ListWebhooksInput, opts ...request.Option) (*ListWebhooksOutput, error) {
  1537. req, out := c.ListWebhooksRequest(input)
  1538. req.SetContext(ctx)
  1539. req.ApplyOptions(opts...)
  1540. return out, req.Send()
  1541. }
  1542. const opPollForJobs = "PollForJobs"
  1543. // PollForJobsRequest generates a "aws/request.Request" representing the
  1544. // client's request for the PollForJobs operation. The "output" return
  1545. // value will be populated with the request's response once the request completes
  1546. // successfully.
  1547. //
  1548. // Use "Send" method on the returned Request to send the API call to the service.
  1549. // the "output" return value is not valid until after Send returns without error.
  1550. //
  1551. // See PollForJobs for more information on using the PollForJobs
  1552. // API call, and error handling.
  1553. //
  1554. // This method is useful when you want to inject custom logic or configuration
  1555. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1556. //
  1557. //
  1558. // // Example sending a request using the PollForJobsRequest method.
  1559. // req, resp := client.PollForJobsRequest(params)
  1560. //
  1561. // err := req.Send()
  1562. // if err == nil { // resp is now filled
  1563. // fmt.Println(resp)
  1564. // }
  1565. //
  1566. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs
  1567. func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) {
  1568. op := &request.Operation{
  1569. Name: opPollForJobs,
  1570. HTTPMethod: "POST",
  1571. HTTPPath: "/",
  1572. }
  1573. if input == nil {
  1574. input = &PollForJobsInput{}
  1575. }
  1576. output = &PollForJobsOutput{}
  1577. req = c.newRequest(op, input, output)
  1578. return
  1579. }
  1580. // PollForJobs API operation for AWS CodePipeline.
  1581. //
  1582. // Returns information about any jobs for AWS CodePipeline to act upon. PollForJobs
  1583. // is only valid for action types with "Custom" in the owner field. If the action
  1584. // type contains "AWS" or "ThirdParty" in the owner field, the PollForJobs action
  1585. // returns an error.
  1586. //
  1587. // When this API is called, AWS CodePipeline returns temporary credentials for
  1588. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  1589. // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
  1590. // this API returns any secret values defined for the action.
  1591. //
  1592. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1593. // with awserr.Error's Code and Message methods to get detailed information about
  1594. // the error.
  1595. //
  1596. // See the AWS API reference guide for AWS CodePipeline's
  1597. // API operation PollForJobs for usage and error information.
  1598. //
  1599. // Returned Error Codes:
  1600. // * ErrCodeValidationException "ValidationException"
  1601. // The validation was specified in an invalid format.
  1602. //
  1603. // * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException"
  1604. // The specified action type cannot be found.
  1605. //
  1606. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs
  1607. func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
  1608. req, out := c.PollForJobsRequest(input)
  1609. return out, req.Send()
  1610. }
  1611. // PollForJobsWithContext is the same as PollForJobs with the addition of
  1612. // the ability to pass a context and additional request options.
  1613. //
  1614. // See PollForJobs for details on how to use this API operation.
  1615. //
  1616. // The context must be non-nil and will be used for request cancellation. If
  1617. // the context is nil a panic will occur. In the future the SDK may create
  1618. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1619. // for more information on using Contexts.
  1620. func (c *CodePipeline) PollForJobsWithContext(ctx aws.Context, input *PollForJobsInput, opts ...request.Option) (*PollForJobsOutput, error) {
  1621. req, out := c.PollForJobsRequest(input)
  1622. req.SetContext(ctx)
  1623. req.ApplyOptions(opts...)
  1624. return out, req.Send()
  1625. }
  1626. const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
  1627. // PollForThirdPartyJobsRequest generates a "aws/request.Request" representing the
  1628. // client's request for the PollForThirdPartyJobs operation. The "output" return
  1629. // value will be populated with the request's response once the request completes
  1630. // successfully.
  1631. //
  1632. // Use "Send" method on the returned Request to send the API call to the service.
  1633. // the "output" return value is not valid until after Send returns without error.
  1634. //
  1635. // See PollForThirdPartyJobs for more information on using the PollForThirdPartyJobs
  1636. // API call, and error handling.
  1637. //
  1638. // This method is useful when you want to inject custom logic or configuration
  1639. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1640. //
  1641. //
  1642. // // Example sending a request using the PollForThirdPartyJobsRequest method.
  1643. // req, resp := client.PollForThirdPartyJobsRequest(params)
  1644. //
  1645. // err := req.Send()
  1646. // if err == nil { // resp is now filled
  1647. // fmt.Println(resp)
  1648. // }
  1649. //
  1650. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs
  1651. func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) {
  1652. op := &request.Operation{
  1653. Name: opPollForThirdPartyJobs,
  1654. HTTPMethod: "POST",
  1655. HTTPPath: "/",
  1656. }
  1657. if input == nil {
  1658. input = &PollForThirdPartyJobsInput{}
  1659. }
  1660. output = &PollForThirdPartyJobsOutput{}
  1661. req = c.newRequest(op, input, output)
  1662. return
  1663. }
  1664. // PollForThirdPartyJobs API operation for AWS CodePipeline.
  1665. //
  1666. // Determines whether there are any third party jobs for a job worker to act
  1667. // on. Only used for partner actions.
  1668. //
  1669. // When this API is called, AWS CodePipeline returns temporary credentials for
  1670. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  1671. // requires access to that Amazon S3 bucket for input or output artifacts.
  1672. //
  1673. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1674. // with awserr.Error's Code and Message methods to get detailed information about
  1675. // the error.
  1676. //
  1677. // See the AWS API reference guide for AWS CodePipeline's
  1678. // API operation PollForThirdPartyJobs for usage and error information.
  1679. //
  1680. // Returned Error Codes:
  1681. // * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException"
  1682. // The specified action type cannot be found.
  1683. //
  1684. // * ErrCodeValidationException "ValidationException"
  1685. // The validation was specified in an invalid format.
  1686. //
  1687. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs
  1688. func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
  1689. req, out := c.PollForThirdPartyJobsRequest(input)
  1690. return out, req.Send()
  1691. }
  1692. // PollForThirdPartyJobsWithContext is the same as PollForThirdPartyJobs with the addition of
  1693. // the ability to pass a context and additional request options.
  1694. //
  1695. // See PollForThirdPartyJobs for details on how to use this API operation.
  1696. //
  1697. // The context must be non-nil and will be used for request cancellation. If
  1698. // the context is nil a panic will occur. In the future the SDK may create
  1699. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1700. // for more information on using Contexts.
  1701. func (c *CodePipeline) PollForThirdPartyJobsWithContext(ctx aws.Context, input *PollForThirdPartyJobsInput, opts ...request.Option) (*PollForThirdPartyJobsOutput, error) {
  1702. req, out := c.PollForThirdPartyJobsRequest(input)
  1703. req.SetContext(ctx)
  1704. req.ApplyOptions(opts...)
  1705. return out, req.Send()
  1706. }
  1707. const opPutActionRevision = "PutActionRevision"
  1708. // PutActionRevisionRequest generates a "aws/request.Request" representing the
  1709. // client's request for the PutActionRevision operation. The "output" return
  1710. // value will be populated with the request's response once the request completes
  1711. // successfully.
  1712. //
  1713. // Use "Send" method on the returned Request to send the API call to the service.
  1714. // the "output" return value is not valid until after Send returns without error.
  1715. //
  1716. // See PutActionRevision for more information on using the PutActionRevision
  1717. // API call, and error handling.
  1718. //
  1719. // This method is useful when you want to inject custom logic or configuration
  1720. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1721. //
  1722. //
  1723. // // Example sending a request using the PutActionRevisionRequest method.
  1724. // req, resp := client.PutActionRevisionRequest(params)
  1725. //
  1726. // err := req.Send()
  1727. // if err == nil { // resp is now filled
  1728. // fmt.Println(resp)
  1729. // }
  1730. //
  1731. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision
  1732. func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) {
  1733. op := &request.Operation{
  1734. Name: opPutActionRevision,
  1735. HTTPMethod: "POST",
  1736. HTTPPath: "/",
  1737. }
  1738. if input == nil {
  1739. input = &PutActionRevisionInput{}
  1740. }
  1741. output = &PutActionRevisionOutput{}
  1742. req = c.newRequest(op, input, output)
  1743. return
  1744. }
  1745. // PutActionRevision API operation for AWS CodePipeline.
  1746. //
  1747. // Provides information to AWS CodePipeline about new revisions to a source.
  1748. //
  1749. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1750. // with awserr.Error's Code and Message methods to get detailed information about
  1751. // the error.
  1752. //
  1753. // See the AWS API reference guide for AWS CodePipeline's
  1754. // API operation PutActionRevision for usage and error information.
  1755. //
  1756. // Returned Error Codes:
  1757. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1758. // The specified pipeline was specified in an invalid format or cannot be found.
  1759. //
  1760. // * ErrCodeStageNotFoundException "StageNotFoundException"
  1761. // The specified stage was specified in an invalid format or cannot be found.
  1762. //
  1763. // * ErrCodeActionNotFoundException "ActionNotFoundException"
  1764. // The specified action cannot be found.
  1765. //
  1766. // * ErrCodeValidationException "ValidationException"
  1767. // The validation was specified in an invalid format.
  1768. //
  1769. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision
  1770. func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
  1771. req, out := c.PutActionRevisionRequest(input)
  1772. return out, req.Send()
  1773. }
  1774. // PutActionRevisionWithContext is the same as PutActionRevision with the addition of
  1775. // the ability to pass a context and additional request options.
  1776. //
  1777. // See PutActionRevision for details on how to use this API operation.
  1778. //
  1779. // The context must be non-nil and will be used for request cancellation. If
  1780. // the context is nil a panic will occur. In the future the SDK may create
  1781. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1782. // for more information on using Contexts.
  1783. func (c *CodePipeline) PutActionRevisionWithContext(ctx aws.Context, input *PutActionRevisionInput, opts ...request.Option) (*PutActionRevisionOutput, error) {
  1784. req, out := c.PutActionRevisionRequest(input)
  1785. req.SetContext(ctx)
  1786. req.ApplyOptions(opts...)
  1787. return out, req.Send()
  1788. }
  1789. const opPutApprovalResult = "PutApprovalResult"
  1790. // PutApprovalResultRequest generates a "aws/request.Request" representing the
  1791. // client's request for the PutApprovalResult operation. The "output" return
  1792. // value will be populated with the request's response once the request completes
  1793. // successfully.
  1794. //
  1795. // Use "Send" method on the returned Request to send the API call to the service.
  1796. // the "output" return value is not valid until after Send returns without error.
  1797. //
  1798. // See PutApprovalResult for more information on using the PutApprovalResult
  1799. // API call, and error handling.
  1800. //
  1801. // This method is useful when you want to inject custom logic or configuration
  1802. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1803. //
  1804. //
  1805. // // Example sending a request using the PutApprovalResultRequest method.
  1806. // req, resp := client.PutApprovalResultRequest(params)
  1807. //
  1808. // err := req.Send()
  1809. // if err == nil { // resp is now filled
  1810. // fmt.Println(resp)
  1811. // }
  1812. //
  1813. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult
  1814. func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) (req *request.Request, output *PutApprovalResultOutput) {
  1815. op := &request.Operation{
  1816. Name: opPutApprovalResult,
  1817. HTTPMethod: "POST",
  1818. HTTPPath: "/",
  1819. }
  1820. if input == nil {
  1821. input = &PutApprovalResultInput{}
  1822. }
  1823. output = &PutApprovalResultOutput{}
  1824. req = c.newRequest(op, input, output)
  1825. return
  1826. }
  1827. // PutApprovalResult API operation for AWS CodePipeline.
  1828. //
  1829. // Provides the response to a manual approval request to AWS CodePipeline. Valid
  1830. // responses include Approved and Rejected.
  1831. //
  1832. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1833. // with awserr.Error's Code and Message methods to get detailed information about
  1834. // the error.
  1835. //
  1836. // See the AWS API reference guide for AWS CodePipeline's
  1837. // API operation PutApprovalResult for usage and error information.
  1838. //
  1839. // Returned Error Codes:
  1840. // * ErrCodeInvalidApprovalTokenException "InvalidApprovalTokenException"
  1841. // The approval request already received a response or has expired.
  1842. //
  1843. // * ErrCodeApprovalAlreadyCompletedException "ApprovalAlreadyCompletedException"
  1844. // The approval action has already been approved or rejected.
  1845. //
  1846. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1847. // The specified pipeline was specified in an invalid format or cannot be found.
  1848. //
  1849. // * ErrCodeStageNotFoundException "StageNotFoundException"
  1850. // The specified stage was specified in an invalid format or cannot be found.
  1851. //
  1852. // * ErrCodeActionNotFoundException "ActionNotFoundException"
  1853. // The specified action cannot be found.
  1854. //
  1855. // * ErrCodeValidationException "ValidationException"
  1856. // The validation was specified in an invalid format.
  1857. //
  1858. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult
  1859. func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) {
  1860. req, out := c.PutApprovalResultRequest(input)
  1861. return out, req.Send()
  1862. }
  1863. // PutApprovalResultWithContext is the same as PutApprovalResult with the addition of
  1864. // the ability to pass a context and additional request options.
  1865. //
  1866. // See PutApprovalResult for details on how to use this API operation.
  1867. //
  1868. // The context must be non-nil and will be used for request cancellation. If
  1869. // the context is nil a panic will occur. In the future the SDK may create
  1870. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1871. // for more information on using Contexts.
  1872. func (c *CodePipeline) PutApprovalResultWithContext(ctx aws.Context, input *PutApprovalResultInput, opts ...request.Option) (*PutApprovalResultOutput, error) {
  1873. req, out := c.PutApprovalResultRequest(input)
  1874. req.SetContext(ctx)
  1875. req.ApplyOptions(opts...)
  1876. return out, req.Send()
  1877. }
  1878. const opPutJobFailureResult = "PutJobFailureResult"
  1879. // PutJobFailureResultRequest generates a "aws/request.Request" representing the
  1880. // client's request for the PutJobFailureResult operation. The "output" return
  1881. // value will be populated with the request's response once the request completes
  1882. // successfully.
  1883. //
  1884. // Use "Send" method on the returned Request to send the API call to the service.
  1885. // the "output" return value is not valid until after Send returns without error.
  1886. //
  1887. // See PutJobFailureResult for more information on using the PutJobFailureResult
  1888. // API call, and error handling.
  1889. //
  1890. // This method is useful when you want to inject custom logic or configuration
  1891. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1892. //
  1893. //
  1894. // // Example sending a request using the PutJobFailureResultRequest method.
  1895. // req, resp := client.PutJobFailureResultRequest(params)
  1896. //
  1897. // err := req.Send()
  1898. // if err == nil { // resp is now filled
  1899. // fmt.Println(resp)
  1900. // }
  1901. //
  1902. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult
  1903. func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) {
  1904. op := &request.Operation{
  1905. Name: opPutJobFailureResult,
  1906. HTTPMethod: "POST",
  1907. HTTPPath: "/",
  1908. }
  1909. if input == nil {
  1910. input = &PutJobFailureResultInput{}
  1911. }
  1912. output = &PutJobFailureResultOutput{}
  1913. req = c.newRequest(op, input, output)
  1914. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1915. return
  1916. }
  1917. // PutJobFailureResult API operation for AWS CodePipeline.
  1918. //
  1919. // Represents the failure of a job as returned to the pipeline by a job worker.
  1920. // Only used for custom actions.
  1921. //
  1922. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1923. // with awserr.Error's Code and Message methods to get detailed information about
  1924. // the error.
  1925. //
  1926. // See the AWS API reference guide for AWS CodePipeline's
  1927. // API operation PutJobFailureResult for usage and error information.
  1928. //
  1929. // Returned Error Codes:
  1930. // * ErrCodeValidationException "ValidationException"
  1931. // The validation was specified in an invalid format.
  1932. //
  1933. // * ErrCodeJobNotFoundException "JobNotFoundException"
  1934. // The specified job was specified in an invalid format or cannot be found.
  1935. //
  1936. // * ErrCodeInvalidJobStateException "InvalidJobStateException"
  1937. // The specified job state was specified in an invalid format.
  1938. //
  1939. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult
  1940. func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
  1941. req, out := c.PutJobFailureResultRequest(input)
  1942. return out, req.Send()
  1943. }
  1944. // PutJobFailureResultWithContext is the same as PutJobFailureResult with the addition of
  1945. // the ability to pass a context and additional request options.
  1946. //
  1947. // See PutJobFailureResult for details on how to use this API operation.
  1948. //
  1949. // The context must be non-nil and will be used for request cancellation. If
  1950. // the context is nil a panic will occur. In the future the SDK may create
  1951. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1952. // for more information on using Contexts.
  1953. func (c *CodePipeline) PutJobFailureResultWithContext(ctx aws.Context, input *PutJobFailureResultInput, opts ...request.Option) (*PutJobFailureResultOutput, error) {
  1954. req, out := c.PutJobFailureResultRequest(input)
  1955. req.SetContext(ctx)
  1956. req.ApplyOptions(opts...)
  1957. return out, req.Send()
  1958. }
  1959. const opPutJobSuccessResult = "PutJobSuccessResult"
  1960. // PutJobSuccessResultRequest generates a "aws/request.Request" representing the
  1961. // client's request for the PutJobSuccessResult operation. The "output" return
  1962. // value will be populated with the request's response once the request completes
  1963. // successfully.
  1964. //
  1965. // Use "Send" method on the returned Request to send the API call to the service.
  1966. // the "output" return value is not valid until after Send returns without error.
  1967. //
  1968. // See PutJobSuccessResult for more information on using the PutJobSuccessResult
  1969. // API call, and error handling.
  1970. //
  1971. // This method is useful when you want to inject custom logic or configuration
  1972. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1973. //
  1974. //
  1975. // // Example sending a request using the PutJobSuccessResultRequest method.
  1976. // req, resp := client.PutJobSuccessResultRequest(params)
  1977. //
  1978. // err := req.Send()
  1979. // if err == nil { // resp is now filled
  1980. // fmt.Println(resp)
  1981. // }
  1982. //
  1983. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult
  1984. func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) {
  1985. op := &request.Operation{
  1986. Name: opPutJobSuccessResult,
  1987. HTTPMethod: "POST",
  1988. HTTPPath: "/",
  1989. }
  1990. if input == nil {
  1991. input = &PutJobSuccessResultInput{}
  1992. }
  1993. output = &PutJobSuccessResultOutput{}
  1994. req = c.newRequest(op, input, output)
  1995. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1996. return
  1997. }
  1998. // PutJobSuccessResult API operation for AWS CodePipeline.
  1999. //
  2000. // Represents the success of a job as returned to the pipeline by a job worker.
  2001. // Only used for custom actions.
  2002. //
  2003. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2004. // with awserr.Error's Code and Message methods to get detailed information about
  2005. // the error.
  2006. //
  2007. // See the AWS API reference guide for AWS CodePipeline's
  2008. // API operation PutJobSuccessResult for usage and error information.
  2009. //
  2010. // Returned Error Codes:
  2011. // * ErrCodeValidationException "ValidationException"
  2012. // The validation was specified in an invalid format.
  2013. //
  2014. // * ErrCodeJobNotFoundException "JobNotFoundException"
  2015. // The specified job was specified in an invalid format or cannot be found.
  2016. //
  2017. // * ErrCodeInvalidJobStateException "InvalidJobStateException"
  2018. // The specified job state was specified in an invalid format.
  2019. //
  2020. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult
  2021. func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
  2022. req, out := c.PutJobSuccessResultRequest(input)
  2023. return out, req.Send()
  2024. }
  2025. // PutJobSuccessResultWithContext is the same as PutJobSuccessResult with the addition of
  2026. // the ability to pass a context and additional request options.
  2027. //
  2028. // See PutJobSuccessResult for details on how to use this API operation.
  2029. //
  2030. // The context must be non-nil and will be used for request cancellation. If
  2031. // the context is nil a panic will occur. In the future the SDK may create
  2032. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2033. // for more information on using Contexts.
  2034. func (c *CodePipeline) PutJobSuccessResultWithContext(ctx aws.Context, input *PutJobSuccessResultInput, opts ...request.Option) (*PutJobSuccessResultOutput, error) {
  2035. req, out := c.PutJobSuccessResultRequest(input)
  2036. req.SetContext(ctx)
  2037. req.ApplyOptions(opts...)
  2038. return out, req.Send()
  2039. }
  2040. const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
  2041. // PutThirdPartyJobFailureResultRequest generates a "aws/request.Request" representing the
  2042. // client's request for the PutThirdPartyJobFailureResult operation. The "output" return
  2043. // value will be populated with the request's response once the request completes
  2044. // successfully.
  2045. //
  2046. // Use "Send" method on the returned Request to send the API call to the service.
  2047. // the "output" return value is not valid until after Send returns without error.
  2048. //
  2049. // See PutThirdPartyJobFailureResult for more information on using the PutThirdPartyJobFailureResult
  2050. // API call, and error handling.
  2051. //
  2052. // This method is useful when you want to inject custom logic or configuration
  2053. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2054. //
  2055. //
  2056. // // Example sending a request using the PutThirdPartyJobFailureResultRequest method.
  2057. // req, resp := client.PutThirdPartyJobFailureResultRequest(params)
  2058. //
  2059. // err := req.Send()
  2060. // if err == nil { // resp is now filled
  2061. // fmt.Println(resp)
  2062. // }
  2063. //
  2064. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult
  2065. func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) {
  2066. op := &request.Operation{
  2067. Name: opPutThirdPartyJobFailureResult,
  2068. HTTPMethod: "POST",
  2069. HTTPPath: "/",
  2070. }
  2071. if input == nil {
  2072. input = &PutThirdPartyJobFailureResultInput{}
  2073. }
  2074. output = &PutThirdPartyJobFailureResultOutput{}
  2075. req = c.newRequest(op, input, output)
  2076. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2077. return
  2078. }
  2079. // PutThirdPartyJobFailureResult API operation for AWS CodePipeline.
  2080. //
  2081. // Represents the failure of a third party job as returned to the pipeline by
  2082. // a job worker. Only used for partner actions.
  2083. //
  2084. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2085. // with awserr.Error's Code and Message methods to get detailed information about
  2086. // the error.
  2087. //
  2088. // See the AWS API reference guide for AWS CodePipeline's
  2089. // API operation PutThirdPartyJobFailureResult for usage and error information.
  2090. //
  2091. // Returned Error Codes:
  2092. // * ErrCodeValidationException "ValidationException"
  2093. // The validation was specified in an invalid format.
  2094. //
  2095. // * ErrCodeJobNotFoundException "JobNotFoundException"
  2096. // The specified job was specified in an invalid format or cannot be found.
  2097. //
  2098. // * ErrCodeInvalidJobStateException "InvalidJobStateException"
  2099. // The specified job state was specified in an invalid format.
  2100. //
  2101. // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
  2102. // The client token was specified in an invalid format
  2103. //
  2104. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult
  2105. func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
  2106. req, out := c.PutThirdPartyJobFailureResultRequest(input)
  2107. return out, req.Send()
  2108. }
  2109. // PutThirdPartyJobFailureResultWithContext is the same as PutThirdPartyJobFailureResult with the addition of
  2110. // the ability to pass a context and additional request options.
  2111. //
  2112. // See PutThirdPartyJobFailureResult for details on how to use this API operation.
  2113. //
  2114. // The context must be non-nil and will be used for request cancellation. If
  2115. // the context is nil a panic will occur. In the future the SDK may create
  2116. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2117. // for more information on using Contexts.
  2118. func (c *CodePipeline) PutThirdPartyJobFailureResultWithContext(ctx aws.Context, input *PutThirdPartyJobFailureResultInput, opts ...request.Option) (*PutThirdPartyJobFailureResultOutput, error) {
  2119. req, out := c.PutThirdPartyJobFailureResultRequest(input)
  2120. req.SetContext(ctx)
  2121. req.ApplyOptions(opts...)
  2122. return out, req.Send()
  2123. }
  2124. const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
  2125. // PutThirdPartyJobSuccessResultRequest generates a "aws/request.Request" representing the
  2126. // client's request for the PutThirdPartyJobSuccessResult operation. The "output" return
  2127. // value will be populated with the request's response once the request completes
  2128. // successfully.
  2129. //
  2130. // Use "Send" method on the returned Request to send the API call to the service.
  2131. // the "output" return value is not valid until after Send returns without error.
  2132. //
  2133. // See PutThirdPartyJobSuccessResult for more information on using the PutThirdPartyJobSuccessResult
  2134. // API call, and error handling.
  2135. //
  2136. // This method is useful when you want to inject custom logic or configuration
  2137. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2138. //
  2139. //
  2140. // // Example sending a request using the PutThirdPartyJobSuccessResultRequest method.
  2141. // req, resp := client.PutThirdPartyJobSuccessResultRequest(params)
  2142. //
  2143. // err := req.Send()
  2144. // if err == nil { // resp is now filled
  2145. // fmt.Println(resp)
  2146. // }
  2147. //
  2148. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult
  2149. func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) {
  2150. op := &request.Operation{
  2151. Name: opPutThirdPartyJobSuccessResult,
  2152. HTTPMethod: "POST",
  2153. HTTPPath: "/",
  2154. }
  2155. if input == nil {
  2156. input = &PutThirdPartyJobSuccessResultInput{}
  2157. }
  2158. output = &PutThirdPartyJobSuccessResultOutput{}
  2159. req = c.newRequest(op, input, output)
  2160. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2161. return
  2162. }
  2163. // PutThirdPartyJobSuccessResult API operation for AWS CodePipeline.
  2164. //
  2165. // Represents the success of a third party job as returned to the pipeline by
  2166. // a job worker. Only used for partner actions.
  2167. //
  2168. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2169. // with awserr.Error's Code and Message methods to get detailed information about
  2170. // the error.
  2171. //
  2172. // See the AWS API reference guide for AWS CodePipeline's
  2173. // API operation PutThirdPartyJobSuccessResult for usage and error information.
  2174. //
  2175. // Returned Error Codes:
  2176. // * ErrCodeValidationException "ValidationException"
  2177. // The validation was specified in an invalid format.
  2178. //
  2179. // * ErrCodeJobNotFoundException "JobNotFoundException"
  2180. // The specified job was specified in an invalid format or cannot be found.
  2181. //
  2182. // * ErrCodeInvalidJobStateException "InvalidJobStateException"
  2183. // The specified job state was specified in an invalid format.
  2184. //
  2185. // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
  2186. // The client token was specified in an invalid format
  2187. //
  2188. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult
  2189. func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
  2190. req, out := c.PutThirdPartyJobSuccessResultRequest(input)
  2191. return out, req.Send()
  2192. }
  2193. // PutThirdPartyJobSuccessResultWithContext is the same as PutThirdPartyJobSuccessResult with the addition of
  2194. // the ability to pass a context and additional request options.
  2195. //
  2196. // See PutThirdPartyJobSuccessResult for details on how to use this API operation.
  2197. //
  2198. // The context must be non-nil and will be used for request cancellation. If
  2199. // the context is nil a panic will occur. In the future the SDK may create
  2200. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2201. // for more information on using Contexts.
  2202. func (c *CodePipeline) PutThirdPartyJobSuccessResultWithContext(ctx aws.Context, input *PutThirdPartyJobSuccessResultInput, opts ...request.Option) (*PutThirdPartyJobSuccessResultOutput, error) {
  2203. req, out := c.PutThirdPartyJobSuccessResultRequest(input)
  2204. req.SetContext(ctx)
  2205. req.ApplyOptions(opts...)
  2206. return out, req.Send()
  2207. }
  2208. const opPutWebhook = "PutWebhook"
  2209. // PutWebhookRequest generates a "aws/request.Request" representing the
  2210. // client's request for the PutWebhook operation. The "output" return
  2211. // value will be populated with the request's response once the request completes
  2212. // successfully.
  2213. //
  2214. // Use "Send" method on the returned Request to send the API call to the service.
  2215. // the "output" return value is not valid until after Send returns without error.
  2216. //
  2217. // See PutWebhook for more information on using the PutWebhook
  2218. // API call, and error handling.
  2219. //
  2220. // This method is useful when you want to inject custom logic or configuration
  2221. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2222. //
  2223. //
  2224. // // Example sending a request using the PutWebhookRequest method.
  2225. // req, resp := client.PutWebhookRequest(params)
  2226. //
  2227. // err := req.Send()
  2228. // if err == nil { // resp is now filled
  2229. // fmt.Println(resp)
  2230. // }
  2231. //
  2232. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhook
  2233. func (c *CodePipeline) PutWebhookRequest(input *PutWebhookInput) (req *request.Request, output *PutWebhookOutput) {
  2234. op := &request.Operation{
  2235. Name: opPutWebhook,
  2236. HTTPMethod: "POST",
  2237. HTTPPath: "/",
  2238. }
  2239. if input == nil {
  2240. input = &PutWebhookInput{}
  2241. }
  2242. output = &PutWebhookOutput{}
  2243. req = c.newRequest(op, input, output)
  2244. return
  2245. }
  2246. // PutWebhook API operation for AWS CodePipeline.
  2247. //
  2248. // Defines a webhook and returns a unique webhook URL generated by CodePipeline.
  2249. // This URL can be supplied to third party source hosting providers to call
  2250. // every time there's a code change. When CodePipeline receives a POST request
  2251. // on this URL, the pipeline defined in the webhook is started as long as the
  2252. // POST request satisfied the authentication and filtering requirements supplied
  2253. // when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty
  2254. // APIs can be used to automatically configure supported third parties to call
  2255. // the generated webhook URL.
  2256. //
  2257. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2258. // with awserr.Error's Code and Message methods to get detailed information about
  2259. // the error.
  2260. //
  2261. // See the AWS API reference guide for AWS CodePipeline's
  2262. // API operation PutWebhook for usage and error information.
  2263. //
  2264. // Returned Error Codes:
  2265. // * ErrCodeValidationException "ValidationException"
  2266. // The validation was specified in an invalid format.
  2267. //
  2268. // * ErrCodeLimitExceededException "LimitExceededException"
  2269. // The number of pipelines associated with the AWS account has exceeded the
  2270. // limit allowed for the account.
  2271. //
  2272. // * ErrCodeInvalidWebhookFilterPatternException "InvalidWebhookFilterPatternException"
  2273. // The specified event filter rule is in an invalid format.
  2274. //
  2275. // * ErrCodeInvalidWebhookAuthenticationParametersException "InvalidWebhookAuthenticationParametersException"
  2276. // The specified authentication type is in an invalid format.
  2277. //
  2278. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  2279. // The specified pipeline was specified in an invalid format or cannot be found.
  2280. //
  2281. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhook
  2282. func (c *CodePipeline) PutWebhook(input *PutWebhookInput) (*PutWebhookOutput, error) {
  2283. req, out := c.PutWebhookRequest(input)
  2284. return out, req.Send()
  2285. }
  2286. // PutWebhookWithContext is the same as PutWebhook with the addition of
  2287. // the ability to pass a context and additional request options.
  2288. //
  2289. // See PutWebhook for details on how to use this API operation.
  2290. //
  2291. // The context must be non-nil and will be used for request cancellation. If
  2292. // the context is nil a panic will occur. In the future the SDK may create
  2293. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2294. // for more information on using Contexts.
  2295. func (c *CodePipeline) PutWebhookWithContext(ctx aws.Context, input *PutWebhookInput, opts ...request.Option) (*PutWebhookOutput, error) {
  2296. req, out := c.PutWebhookRequest(input)
  2297. req.SetContext(ctx)
  2298. req.ApplyOptions(opts...)
  2299. return out, req.Send()
  2300. }
  2301. const opRegisterWebhookWithThirdParty = "RegisterWebhookWithThirdParty"
  2302. // RegisterWebhookWithThirdPartyRequest generates a "aws/request.Request" representing the
  2303. // client's request for the RegisterWebhookWithThirdParty operation. The "output" return
  2304. // value will be populated with the request's response once the request completes
  2305. // successfully.
  2306. //
  2307. // Use "Send" method on the returned Request to send the API call to the service.
  2308. // the "output" return value is not valid until after Send returns without error.
  2309. //
  2310. // See RegisterWebhookWithThirdParty for more information on using the RegisterWebhookWithThirdParty
  2311. // API call, and error handling.
  2312. //
  2313. // This method is useful when you want to inject custom logic or configuration
  2314. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2315. //
  2316. //
  2317. // // Example sending a request using the RegisterWebhookWithThirdPartyRequest method.
  2318. // req, resp := client.RegisterWebhookWithThirdPartyRequest(params)
  2319. //
  2320. // err := req.Send()
  2321. // if err == nil { // resp is now filled
  2322. // fmt.Println(resp)
  2323. // }
  2324. //
  2325. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdParty
  2326. func (c *CodePipeline) RegisterWebhookWithThirdPartyRequest(input *RegisterWebhookWithThirdPartyInput) (req *request.Request, output *RegisterWebhookWithThirdPartyOutput) {
  2327. op := &request.Operation{
  2328. Name: opRegisterWebhookWithThirdParty,
  2329. HTTPMethod: "POST",
  2330. HTTPPath: "/",
  2331. }
  2332. if input == nil {
  2333. input = &RegisterWebhookWithThirdPartyInput{}
  2334. }
  2335. output = &RegisterWebhookWithThirdPartyOutput{}
  2336. req = c.newRequest(op, input, output)
  2337. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2338. return
  2339. }
  2340. // RegisterWebhookWithThirdParty API operation for AWS CodePipeline.
  2341. //
  2342. // Configures a connection between the webhook that was created and the external
  2343. // tool with events to be detected.
  2344. //
  2345. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2346. // with awserr.Error's Code and Message methods to get detailed information about
  2347. // the error.
  2348. //
  2349. // See the AWS API reference guide for AWS CodePipeline's
  2350. // API operation RegisterWebhookWithThirdParty for usage and error information.
  2351. //
  2352. // Returned Error Codes:
  2353. // * ErrCodeValidationException "ValidationException"
  2354. // The validation was specified in an invalid format.
  2355. //
  2356. // * ErrCodeWebhookNotFoundException "WebhookNotFoundException"
  2357. // The specified webhook was entered in an invalid format or cannot be found.
  2358. //
  2359. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdParty
  2360. func (c *CodePipeline) RegisterWebhookWithThirdParty(input *RegisterWebhookWithThirdPartyInput) (*RegisterWebhookWithThirdPartyOutput, error) {
  2361. req, out := c.RegisterWebhookWithThirdPartyRequest(input)
  2362. return out, req.Send()
  2363. }
  2364. // RegisterWebhookWithThirdPartyWithContext is the same as RegisterWebhookWithThirdParty with the addition of
  2365. // the ability to pass a context and additional request options.
  2366. //
  2367. // See RegisterWebhookWithThirdParty for details on how to use this API operation.
  2368. //
  2369. // The context must be non-nil and will be used for request cancellation. If
  2370. // the context is nil a panic will occur. In the future the SDK may create
  2371. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2372. // for more information on using Contexts.
  2373. func (c *CodePipeline) RegisterWebhookWithThirdPartyWithContext(ctx aws.Context, input *RegisterWebhookWithThirdPartyInput, opts ...request.Option) (*RegisterWebhookWithThirdPartyOutput, error) {
  2374. req, out := c.RegisterWebhookWithThirdPartyRequest(input)
  2375. req.SetContext(ctx)
  2376. req.ApplyOptions(opts...)
  2377. return out, req.Send()
  2378. }
  2379. const opRetryStageExecution = "RetryStageExecution"
  2380. // RetryStageExecutionRequest generates a "aws/request.Request" representing the
  2381. // client's request for the RetryStageExecution operation. The "output" return
  2382. // value will be populated with the request's response once the request completes
  2383. // successfully.
  2384. //
  2385. // Use "Send" method on the returned Request to send the API call to the service.
  2386. // the "output" return value is not valid until after Send returns without error.
  2387. //
  2388. // See RetryStageExecution for more information on using the RetryStageExecution
  2389. // API call, and error handling.
  2390. //
  2391. // This method is useful when you want to inject custom logic or configuration
  2392. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2393. //
  2394. //
  2395. // // Example sending a request using the RetryStageExecutionRequest method.
  2396. // req, resp := client.RetryStageExecutionRequest(params)
  2397. //
  2398. // err := req.Send()
  2399. // if err == nil { // resp is now filled
  2400. // fmt.Println(resp)
  2401. // }
  2402. //
  2403. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecution
  2404. func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInput) (req *request.Request, output *RetryStageExecutionOutput) {
  2405. op := &request.Operation{
  2406. Name: opRetryStageExecution,
  2407. HTTPMethod: "POST",
  2408. HTTPPath: "/",
  2409. }
  2410. if input == nil {
  2411. input = &RetryStageExecutionInput{}
  2412. }
  2413. output = &RetryStageExecutionOutput{}
  2414. req = c.newRequest(op, input, output)
  2415. return
  2416. }
  2417. // RetryStageExecution API operation for AWS CodePipeline.
  2418. //
  2419. // Resumes the pipeline execution by retrying the last failed actions in a stage.
  2420. //
  2421. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2422. // with awserr.Error's Code and Message methods to get detailed information about
  2423. // the error.
  2424. //
  2425. // See the AWS API reference guide for AWS CodePipeline's
  2426. // API operation RetryStageExecution for usage and error information.
  2427. //
  2428. // Returned Error Codes:
  2429. // * ErrCodeValidationException "ValidationException"
  2430. // The validation was specified in an invalid format.
  2431. //
  2432. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  2433. // The specified pipeline was specified in an invalid format or cannot be found.
  2434. //
  2435. // * ErrCodeStageNotFoundException "StageNotFoundException"
  2436. // The specified stage was specified in an invalid format or cannot be found.
  2437. //
  2438. // * ErrCodeStageNotRetryableException "StageNotRetryableException"
  2439. // The specified stage can't be retried because the pipeline structure or stage
  2440. // state changed after the stage was not completed; the stage contains no failed
  2441. // actions; one or more actions are still in progress; or another retry attempt
  2442. // is already in progress.
  2443. //
  2444. // * ErrCodeNotLatestPipelineExecutionException "NotLatestPipelineExecutionException"
  2445. // The stage has failed in a later run of the pipeline and the pipelineExecutionId
  2446. // associated with the request is out of date.
  2447. //
  2448. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecution
  2449. func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) {
  2450. req, out := c.RetryStageExecutionRequest(input)
  2451. return out, req.Send()
  2452. }
  2453. // RetryStageExecutionWithContext is the same as RetryStageExecution with the addition of
  2454. // the ability to pass a context and additional request options.
  2455. //
  2456. // See RetryStageExecution for details on how to use this API operation.
  2457. //
  2458. // The context must be non-nil and will be used for request cancellation. If
  2459. // the context is nil a panic will occur. In the future the SDK may create
  2460. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2461. // for more information on using Contexts.
  2462. func (c *CodePipeline) RetryStageExecutionWithContext(ctx aws.Context, input *RetryStageExecutionInput, opts ...request.Option) (*RetryStageExecutionOutput, error) {
  2463. req, out := c.RetryStageExecutionRequest(input)
  2464. req.SetContext(ctx)
  2465. req.ApplyOptions(opts...)
  2466. return out, req.Send()
  2467. }
  2468. const opStartPipelineExecution = "StartPipelineExecution"
  2469. // StartPipelineExecutionRequest generates a "aws/request.Request" representing the
  2470. // client's request for the StartPipelineExecution operation. The "output" return
  2471. // value will be populated with the request's response once the request completes
  2472. // successfully.
  2473. //
  2474. // Use "Send" method on the returned Request to send the API call to the service.
  2475. // the "output" return value is not valid until after Send returns without error.
  2476. //
  2477. // See StartPipelineExecution for more information on using the StartPipelineExecution
  2478. // API call, and error handling.
  2479. //
  2480. // This method is useful when you want to inject custom logic or configuration
  2481. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2482. //
  2483. //
  2484. // // Example sending a request using the StartPipelineExecutionRequest method.
  2485. // req, resp := client.StartPipelineExecutionRequest(params)
  2486. //
  2487. // err := req.Send()
  2488. // if err == nil { // resp is now filled
  2489. // fmt.Println(resp)
  2490. // }
  2491. //
  2492. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution
  2493. func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) {
  2494. op := &request.Operation{
  2495. Name: opStartPipelineExecution,
  2496. HTTPMethod: "POST",
  2497. HTTPPath: "/",
  2498. }
  2499. if input == nil {
  2500. input = &StartPipelineExecutionInput{}
  2501. }
  2502. output = &StartPipelineExecutionOutput{}
  2503. req = c.newRequest(op, input, output)
  2504. return
  2505. }
  2506. // StartPipelineExecution API operation for AWS CodePipeline.
  2507. //
  2508. // Starts the specified pipeline. Specifically, it begins processing the latest
  2509. // commit to the source location specified as part of the pipeline.
  2510. //
  2511. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2512. // with awserr.Error's Code and Message methods to get detailed information about
  2513. // the error.
  2514. //
  2515. // See the AWS API reference guide for AWS CodePipeline's
  2516. // API operation StartPipelineExecution for usage and error information.
  2517. //
  2518. // Returned Error Codes:
  2519. // * ErrCodeValidationException "ValidationException"
  2520. // The validation was specified in an invalid format.
  2521. //
  2522. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  2523. // The specified pipeline was specified in an invalid format or cannot be found.
  2524. //
  2525. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution
  2526. func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
  2527. req, out := c.StartPipelineExecutionRequest(input)
  2528. return out, req.Send()
  2529. }
  2530. // StartPipelineExecutionWithContext is the same as StartPipelineExecution with the addition of
  2531. // the ability to pass a context and additional request options.
  2532. //
  2533. // See StartPipelineExecution for details on how to use this API operation.
  2534. //
  2535. // The context must be non-nil and will be used for request cancellation. If
  2536. // the context is nil a panic will occur. In the future the SDK may create
  2537. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2538. // for more information on using Contexts.
  2539. func (c *CodePipeline) StartPipelineExecutionWithContext(ctx aws.Context, input *StartPipelineExecutionInput, opts ...request.Option) (*StartPipelineExecutionOutput, error) {
  2540. req, out := c.StartPipelineExecutionRequest(input)
  2541. req.SetContext(ctx)
  2542. req.ApplyOptions(opts...)
  2543. return out, req.Send()
  2544. }
  2545. const opUpdatePipeline = "UpdatePipeline"
  2546. // UpdatePipelineRequest generates a "aws/request.Request" representing the
  2547. // client's request for the UpdatePipeline operation. The "output" return
  2548. // value will be populated with the request's response once the request completes
  2549. // successfully.
  2550. //
  2551. // Use "Send" method on the returned Request to send the API call to the service.
  2552. // the "output" return value is not valid until after Send returns without error.
  2553. //
  2554. // See UpdatePipeline for more information on using the UpdatePipeline
  2555. // API call, and error handling.
  2556. //
  2557. // This method is useful when you want to inject custom logic or configuration
  2558. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2559. //
  2560. //
  2561. // // Example sending a request using the UpdatePipelineRequest method.
  2562. // req, resp := client.UpdatePipelineRequest(params)
  2563. //
  2564. // err := req.Send()
  2565. // if err == nil { // resp is now filled
  2566. // fmt.Println(resp)
  2567. // }
  2568. //
  2569. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipeline
  2570. func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
  2571. op := &request.Operation{
  2572. Name: opUpdatePipeline,
  2573. HTTPMethod: "POST",
  2574. HTTPPath: "/",
  2575. }
  2576. if input == nil {
  2577. input = &UpdatePipelineInput{}
  2578. }
  2579. output = &UpdatePipelineOutput{}
  2580. req = c.newRequest(op, input, output)
  2581. return
  2582. }
  2583. // UpdatePipeline API operation for AWS CodePipeline.
  2584. //
  2585. // Updates a specified pipeline with edits or changes to its structure. Use
  2586. // a JSON file with the pipeline structure in conjunction with UpdatePipeline
  2587. // to provide the full structure of the pipeline. Updating the pipeline increases
  2588. // the version number of the pipeline by 1.
  2589. //
  2590. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2591. // with awserr.Error's Code and Message methods to get detailed information about
  2592. // the error.
  2593. //
  2594. // See the AWS API reference guide for AWS CodePipeline's
  2595. // API operation UpdatePipeline for usage and error information.
  2596. //
  2597. // Returned Error Codes:
  2598. // * ErrCodeValidationException "ValidationException"
  2599. // The validation was specified in an invalid format.
  2600. //
  2601. // * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException"
  2602. // The specified stage declaration was specified in an invalid format.
  2603. //
  2604. // * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException"
  2605. // The specified action declaration was specified in an invalid format.
  2606. //
  2607. // * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException"
  2608. // Reserved for future use.
  2609. //
  2610. // * ErrCodeInvalidStructureException "InvalidStructureException"
  2611. // The specified structure was specified in an invalid format.
  2612. //
  2613. // * ErrCodeLimitExceededException "LimitExceededException"
  2614. // The number of pipelines associated with the AWS account has exceeded the
  2615. // limit allowed for the account.
  2616. //
  2617. // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipeline
  2618. func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
  2619. req, out := c.UpdatePipelineRequest(input)
  2620. return out, req.Send()
  2621. }
  2622. // UpdatePipelineWithContext is the same as UpdatePipeline with the addition of
  2623. // the ability to pass a context and additional request options.
  2624. //
  2625. // See UpdatePipeline for details on how to use this API operation.
  2626. //
  2627. // The context must be non-nil and will be used for request cancellation. If
  2628. // the context is nil a panic will occur. In the future the SDK may create
  2629. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2630. // for more information on using Contexts.
  2631. func (c *CodePipeline) UpdatePipelineWithContext(ctx aws.Context, input *UpdatePipelineInput, opts ...request.Option) (*UpdatePipelineOutput, error) {
  2632. req, out := c.UpdatePipelineRequest(input)
  2633. req.SetContext(ctx)
  2634. req.ApplyOptions(opts...)
  2635. return out, req.Send()
  2636. }
  2637. // Represents an AWS session credentials object. These credentials are temporary
  2638. // credentials that are issued by AWS Secure Token Service (STS). They can be
  2639. // used to access input and output artifacts in the Amazon S3 bucket used to
  2640. // store artifact for the pipeline in AWS CodePipeline.
  2641. type AWSSessionCredentials struct {
  2642. _ struct{} `type:"structure" sensitive:"true"`
  2643. // The access key for the session.
  2644. //
  2645. // AccessKeyId is a required field
  2646. AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true"`
  2647. // The secret access key for the session.
  2648. //
  2649. // SecretAccessKey is a required field
  2650. SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
  2651. // The token for the session.
  2652. //
  2653. // SessionToken is a required field
  2654. SessionToken *string `locationName:"sessionToken" type:"string" required:"true"`
  2655. }
  2656. // String returns the string representation
  2657. func (s AWSSessionCredentials) String() string {
  2658. return awsutil.Prettify(s)
  2659. }
  2660. // GoString returns the string representation
  2661. func (s AWSSessionCredentials) GoString() string {
  2662. return s.String()
  2663. }
  2664. // SetAccessKeyId sets the AccessKeyId field's value.
  2665. func (s *AWSSessionCredentials) SetAccessKeyId(v string) *AWSSessionCredentials {
  2666. s.AccessKeyId = &v
  2667. return s
  2668. }
  2669. // SetSecretAccessKey sets the SecretAccessKey field's value.
  2670. func (s *AWSSessionCredentials) SetSecretAccessKey(v string) *AWSSessionCredentials {
  2671. s.SecretAccessKey = &v
  2672. return s
  2673. }
  2674. // SetSessionToken sets the SessionToken field's value.
  2675. func (s *AWSSessionCredentials) SetSessionToken(v string) *AWSSessionCredentials {
  2676. s.SessionToken = &v
  2677. return s
  2678. }
  2679. // Represents the input of an AcknowledgeJob action.
  2680. type AcknowledgeJobInput struct {
  2681. _ struct{} `type:"structure"`
  2682. // The unique system-generated ID of the job for which you want to confirm receipt.
  2683. //
  2684. // JobId is a required field
  2685. JobId *string `locationName:"jobId" type:"string" required:"true"`
  2686. // A system-generated random number that AWS CodePipeline uses to ensure that
  2687. // the job is being worked on by only one job worker. Get this number from the
  2688. // response of the PollForJobs request that returned this job.
  2689. //
  2690. // Nonce is a required field
  2691. Nonce *string `locationName:"nonce" min:"1" type:"string" required:"true"`
  2692. }
  2693. // String returns the string representation
  2694. func (s AcknowledgeJobInput) String() string {
  2695. return awsutil.Prettify(s)
  2696. }
  2697. // GoString returns the string representation
  2698. func (s AcknowledgeJobInput) GoString() string {
  2699. return s.String()
  2700. }
  2701. // Validate inspects the fields of the type to determine if they are valid.
  2702. func (s *AcknowledgeJobInput) Validate() error {
  2703. invalidParams := request.ErrInvalidParams{Context: "AcknowledgeJobInput"}
  2704. if s.JobId == nil {
  2705. invalidParams.Add(request.NewErrParamRequired("JobId"))
  2706. }
  2707. if s.Nonce == nil {
  2708. invalidParams.Add(request.NewErrParamRequired("Nonce"))
  2709. }
  2710. if s.Nonce != nil && len(*s.Nonce) < 1 {
  2711. invalidParams.Add(request.NewErrParamMinLen("Nonce", 1))
  2712. }
  2713. if invalidParams.Len() > 0 {
  2714. return invalidParams
  2715. }
  2716. return nil
  2717. }
  2718. // SetJobId sets the JobId field's value.
  2719. func (s *AcknowledgeJobInput) SetJobId(v string) *AcknowledgeJobInput {
  2720. s.JobId = &v
  2721. return s
  2722. }
  2723. // SetNonce sets the Nonce field's value.
  2724. func (s *AcknowledgeJobInput) SetNonce(v string) *AcknowledgeJobInput {
  2725. s.Nonce = &v
  2726. return s
  2727. }
  2728. // Represents the output of an AcknowledgeJob action.
  2729. type AcknowledgeJobOutput struct {
  2730. _ struct{} `type:"structure"`
  2731. // Whether the job worker has received the specified job.
  2732. Status *string `locationName:"status" type:"string" enum:"JobStatus"`
  2733. }
  2734. // String returns the string representation
  2735. func (s AcknowledgeJobOutput) String() string {
  2736. return awsutil.Prettify(s)
  2737. }
  2738. // GoString returns the string representation
  2739. func (s AcknowledgeJobOutput) GoString() string {
  2740. return s.String()
  2741. }
  2742. // SetStatus sets the Status field's value.
  2743. func (s *AcknowledgeJobOutput) SetStatus(v string) *AcknowledgeJobOutput {
  2744. s.Status = &v
  2745. return s
  2746. }
  2747. // Represents the input of an AcknowledgeThirdPartyJob action.
  2748. type AcknowledgeThirdPartyJobInput struct {
  2749. _ struct{} `type:"structure"`
  2750. // The clientToken portion of the clientId and clientToken pair used to verify
  2751. // that the calling entity is allowed access to the job and its details.
  2752. //
  2753. // ClientToken is a required field
  2754. ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
  2755. // The unique system-generated ID of the job.
  2756. //
  2757. // JobId is a required field
  2758. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  2759. // A system-generated random number that AWS CodePipeline uses to ensure that
  2760. // the job is being worked on by only one job worker. Get this number from the
  2761. // response to a GetThirdPartyJobDetails request.
  2762. //
  2763. // Nonce is a required field
  2764. Nonce *string `locationName:"nonce" min:"1" type:"string" required:"true"`
  2765. }
  2766. // String returns the string representation
  2767. func (s AcknowledgeThirdPartyJobInput) String() string {
  2768. return awsutil.Prettify(s)
  2769. }
  2770. // GoString returns the string representation
  2771. func (s AcknowledgeThirdPartyJobInput) GoString() string {
  2772. return s.String()
  2773. }
  2774. // Validate inspects the fields of the type to determine if they are valid.
  2775. func (s *AcknowledgeThirdPartyJobInput) Validate() error {
  2776. invalidParams := request.ErrInvalidParams{Context: "AcknowledgeThirdPartyJobInput"}
  2777. if s.ClientToken == nil {
  2778. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  2779. }
  2780. if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  2781. invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  2782. }
  2783. if s.JobId == nil {
  2784. invalidParams.Add(request.NewErrParamRequired("JobId"))
  2785. }
  2786. if s.JobId != nil && len(*s.JobId) < 1 {
  2787. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  2788. }
  2789. if s.Nonce == nil {
  2790. invalidParams.Add(request.NewErrParamRequired("Nonce"))
  2791. }
  2792. if s.Nonce != nil && len(*s.Nonce) < 1 {
  2793. invalidParams.Add(request.NewErrParamMinLen("Nonce", 1))
  2794. }
  2795. if invalidParams.Len() > 0 {
  2796. return invalidParams
  2797. }
  2798. return nil
  2799. }
  2800. // SetClientToken sets the ClientToken field's value.
  2801. func (s *AcknowledgeThirdPartyJobInput) SetClientToken(v string) *AcknowledgeThirdPartyJobInput {
  2802. s.ClientToken = &v
  2803. return s
  2804. }
  2805. // SetJobId sets the JobId field's value.
  2806. func (s *AcknowledgeThirdPartyJobInput) SetJobId(v string) *AcknowledgeThirdPartyJobInput {
  2807. s.JobId = &v
  2808. return s
  2809. }
  2810. // SetNonce sets the Nonce field's value.
  2811. func (s *AcknowledgeThirdPartyJobInput) SetNonce(v string) *AcknowledgeThirdPartyJobInput {
  2812. s.Nonce = &v
  2813. return s
  2814. }
  2815. // Represents the output of an AcknowledgeThirdPartyJob action.
  2816. type AcknowledgeThirdPartyJobOutput struct {
  2817. _ struct{} `type:"structure"`
  2818. // The status information for the third party job, if any.
  2819. Status *string `locationName:"status" type:"string" enum:"JobStatus"`
  2820. }
  2821. // String returns the string representation
  2822. func (s AcknowledgeThirdPartyJobOutput) String() string {
  2823. return awsutil.Prettify(s)
  2824. }
  2825. // GoString returns the string representation
  2826. func (s AcknowledgeThirdPartyJobOutput) GoString() string {
  2827. return s.String()
  2828. }
  2829. // SetStatus sets the Status field's value.
  2830. func (s *AcknowledgeThirdPartyJobOutput) SetStatus(v string) *AcknowledgeThirdPartyJobOutput {
  2831. s.Status = &v
  2832. return s
  2833. }
  2834. // Represents information about an action configuration.
  2835. type ActionConfiguration struct {
  2836. _ struct{} `type:"structure"`
  2837. // The configuration data for the action.
  2838. Configuration map[string]*string `locationName:"configuration" type:"map"`
  2839. }
  2840. // String returns the string representation
  2841. func (s ActionConfiguration) String() string {
  2842. return awsutil.Prettify(s)
  2843. }
  2844. // GoString returns the string representation
  2845. func (s ActionConfiguration) GoString() string {
  2846. return s.String()
  2847. }
  2848. // SetConfiguration sets the Configuration field's value.
  2849. func (s *ActionConfiguration) SetConfiguration(v map[string]*string) *ActionConfiguration {
  2850. s.Configuration = v
  2851. return s
  2852. }
  2853. // Represents information about an action configuration property.
  2854. type ActionConfigurationProperty struct {
  2855. _ struct{} `type:"structure"`
  2856. // The description of the action configuration property that will be displayed
  2857. // to users.
  2858. Description *string `locationName:"description" min:"1" type:"string"`
  2859. // Whether the configuration property is a key.
  2860. //
  2861. // Key is a required field
  2862. Key *bool `locationName:"key" type:"boolean" required:"true"`
  2863. // The name of the action configuration property.
  2864. //
  2865. // Name is a required field
  2866. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2867. // Indicates that the property will be used in conjunction with PollForJobs.
  2868. // When creating a custom action, an action can have up to one queryable property.
  2869. // If it has one, that property must be both required and not secret.
  2870. //
  2871. // If you create a pipeline with a custom action type, and that custom action
  2872. // contains a queryable property, the value for that configuration property
  2873. // is subject to additional restrictions. The value must be less than or equal
  2874. // to twenty (20) characters. The value can contain only alphanumeric characters,
  2875. // underscores, and hyphens.
  2876. Queryable *bool `locationName:"queryable" type:"boolean"`
  2877. // Whether the configuration property is a required value.
  2878. //
  2879. // Required is a required field
  2880. Required *bool `locationName:"required" type:"boolean" required:"true"`
  2881. // Whether the configuration property is secret. Secrets are hidden from all
  2882. // calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
  2883. // PollForThirdPartyJobs.
  2884. //
  2885. // When updating a pipeline, passing * * * * * without changing any other values
  2886. // of the action will preserve the prior value of the secret.
  2887. //
  2888. // Secret is a required field
  2889. Secret *bool `locationName:"secret" type:"boolean" required:"true"`
  2890. // The type of the configuration property.
  2891. Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"`
  2892. }
  2893. // String returns the string representation
  2894. func (s ActionConfigurationProperty) String() string {
  2895. return awsutil.Prettify(s)
  2896. }
  2897. // GoString returns the string representation
  2898. func (s ActionConfigurationProperty) GoString() string {
  2899. return s.String()
  2900. }
  2901. // Validate inspects the fields of the type to determine if they are valid.
  2902. func (s *ActionConfigurationProperty) Validate() error {
  2903. invalidParams := request.ErrInvalidParams{Context: "ActionConfigurationProperty"}
  2904. if s.Description != nil && len(*s.Description) < 1 {
  2905. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  2906. }
  2907. if s.Key == nil {
  2908. invalidParams.Add(request.NewErrParamRequired("Key"))
  2909. }
  2910. if s.Name == nil {
  2911. invalidParams.Add(request.NewErrParamRequired("Name"))
  2912. }
  2913. if s.Name != nil && len(*s.Name) < 1 {
  2914. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2915. }
  2916. if s.Required == nil {
  2917. invalidParams.Add(request.NewErrParamRequired("Required"))
  2918. }
  2919. if s.Secret == nil {
  2920. invalidParams.Add(request.NewErrParamRequired("Secret"))
  2921. }
  2922. if invalidParams.Len() > 0 {
  2923. return invalidParams
  2924. }
  2925. return nil
  2926. }
  2927. // SetDescription sets the Description field's value.
  2928. func (s *ActionConfigurationProperty) SetDescription(v string) *ActionConfigurationProperty {
  2929. s.Description = &v
  2930. return s
  2931. }
  2932. // SetKey sets the Key field's value.
  2933. func (s *ActionConfigurationProperty) SetKey(v bool) *ActionConfigurationProperty {
  2934. s.Key = &v
  2935. return s
  2936. }
  2937. // SetName sets the Name field's value.
  2938. func (s *ActionConfigurationProperty) SetName(v string) *ActionConfigurationProperty {
  2939. s.Name = &v
  2940. return s
  2941. }
  2942. // SetQueryable sets the Queryable field's value.
  2943. func (s *ActionConfigurationProperty) SetQueryable(v bool) *ActionConfigurationProperty {
  2944. s.Queryable = &v
  2945. return s
  2946. }
  2947. // SetRequired sets the Required field's value.
  2948. func (s *ActionConfigurationProperty) SetRequired(v bool) *ActionConfigurationProperty {
  2949. s.Required = &v
  2950. return s
  2951. }
  2952. // SetSecret sets the Secret field's value.
  2953. func (s *ActionConfigurationProperty) SetSecret(v bool) *ActionConfigurationProperty {
  2954. s.Secret = &v
  2955. return s
  2956. }
  2957. // SetType sets the Type field's value.
  2958. func (s *ActionConfigurationProperty) SetType(v string) *ActionConfigurationProperty {
  2959. s.Type = &v
  2960. return s
  2961. }
  2962. // Represents the context of an action within the stage of a pipeline to a job
  2963. // worker.
  2964. type ActionContext struct {
  2965. _ struct{} `type:"structure"`
  2966. // The name of the action within the context of a job.
  2967. Name *string `locationName:"name" min:"1" type:"string"`
  2968. }
  2969. // String returns the string representation
  2970. func (s ActionContext) String() string {
  2971. return awsutil.Prettify(s)
  2972. }
  2973. // GoString returns the string representation
  2974. func (s ActionContext) GoString() string {
  2975. return s.String()
  2976. }
  2977. // SetName sets the Name field's value.
  2978. func (s *ActionContext) SetName(v string) *ActionContext {
  2979. s.Name = &v
  2980. return s
  2981. }
  2982. // Represents information about an action declaration.
  2983. type ActionDeclaration struct {
  2984. _ struct{} `type:"structure"`
  2985. // The configuration information for the action type.
  2986. //
  2987. // ActionTypeId is a required field
  2988. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  2989. // The action declaration's configuration.
  2990. Configuration map[string]*string `locationName:"configuration" type:"map"`
  2991. // The name or ID of the artifact consumed by the action, such as a test or
  2992. // build artifact.
  2993. InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"`
  2994. // The action declaration's name.
  2995. //
  2996. // Name is a required field
  2997. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2998. // The name or ID of the result of the action declaration, such as a test or
  2999. // build artifact.
  3000. OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"`
  3001. // The action declaration's AWS Region, such as us-east-1.
  3002. Region *string `locationName:"region" min:"4" type:"string"`
  3003. // The ARN of the IAM service role that will perform the declared action. This
  3004. // is assumed through the roleArn for the pipeline.
  3005. RoleArn *string `locationName:"roleArn" type:"string"`
  3006. // The order in which actions are run.
  3007. RunOrder *int64 `locationName:"runOrder" min:"1" type:"integer"`
  3008. }
  3009. // String returns the string representation
  3010. func (s ActionDeclaration) String() string {
  3011. return awsutil.Prettify(s)
  3012. }
  3013. // GoString returns the string representation
  3014. func (s ActionDeclaration) GoString() string {
  3015. return s.String()
  3016. }
  3017. // Validate inspects the fields of the type to determine if they are valid.
  3018. func (s *ActionDeclaration) Validate() error {
  3019. invalidParams := request.ErrInvalidParams{Context: "ActionDeclaration"}
  3020. if s.ActionTypeId == nil {
  3021. invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
  3022. }
  3023. if s.Name == nil {
  3024. invalidParams.Add(request.NewErrParamRequired("Name"))
  3025. }
  3026. if s.Name != nil && len(*s.Name) < 1 {
  3027. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3028. }
  3029. if s.Region != nil && len(*s.Region) < 4 {
  3030. invalidParams.Add(request.NewErrParamMinLen("Region", 4))
  3031. }
  3032. if s.RunOrder != nil && *s.RunOrder < 1 {
  3033. invalidParams.Add(request.NewErrParamMinValue("RunOrder", 1))
  3034. }
  3035. if s.ActionTypeId != nil {
  3036. if err := s.ActionTypeId.Validate(); err != nil {
  3037. invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
  3038. }
  3039. }
  3040. if s.InputArtifacts != nil {
  3041. for i, v := range s.InputArtifacts {
  3042. if v == nil {
  3043. continue
  3044. }
  3045. if err := v.Validate(); err != nil {
  3046. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams))
  3047. }
  3048. }
  3049. }
  3050. if s.OutputArtifacts != nil {
  3051. for i, v := range s.OutputArtifacts {
  3052. if v == nil {
  3053. continue
  3054. }
  3055. if err := v.Validate(); err != nil {
  3056. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams))
  3057. }
  3058. }
  3059. }
  3060. if invalidParams.Len() > 0 {
  3061. return invalidParams
  3062. }
  3063. return nil
  3064. }
  3065. // SetActionTypeId sets the ActionTypeId field's value.
  3066. func (s *ActionDeclaration) SetActionTypeId(v *ActionTypeId) *ActionDeclaration {
  3067. s.ActionTypeId = v
  3068. return s
  3069. }
  3070. // SetConfiguration sets the Configuration field's value.
  3071. func (s *ActionDeclaration) SetConfiguration(v map[string]*string) *ActionDeclaration {
  3072. s.Configuration = v
  3073. return s
  3074. }
  3075. // SetInputArtifacts sets the InputArtifacts field's value.
  3076. func (s *ActionDeclaration) SetInputArtifacts(v []*InputArtifact) *ActionDeclaration {
  3077. s.InputArtifacts = v
  3078. return s
  3079. }
  3080. // SetName sets the Name field's value.
  3081. func (s *ActionDeclaration) SetName(v string) *ActionDeclaration {
  3082. s.Name = &v
  3083. return s
  3084. }
  3085. // SetOutputArtifacts sets the OutputArtifacts field's value.
  3086. func (s *ActionDeclaration) SetOutputArtifacts(v []*OutputArtifact) *ActionDeclaration {
  3087. s.OutputArtifacts = v
  3088. return s
  3089. }
  3090. // SetRegion sets the Region field's value.
  3091. func (s *ActionDeclaration) SetRegion(v string) *ActionDeclaration {
  3092. s.Region = &v
  3093. return s
  3094. }
  3095. // SetRoleArn sets the RoleArn field's value.
  3096. func (s *ActionDeclaration) SetRoleArn(v string) *ActionDeclaration {
  3097. s.RoleArn = &v
  3098. return s
  3099. }
  3100. // SetRunOrder sets the RunOrder field's value.
  3101. func (s *ActionDeclaration) SetRunOrder(v int64) *ActionDeclaration {
  3102. s.RunOrder = &v
  3103. return s
  3104. }
  3105. // Represents information about the run of an action.
  3106. type ActionExecution struct {
  3107. _ struct{} `type:"structure"`
  3108. // The details of an error returned by a URL external to AWS.
  3109. ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"`
  3110. // The external ID of the run of the action.
  3111. ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
  3112. // The URL of a resource external to AWS that will be used when running the
  3113. // action, for example an external repository URL.
  3114. ExternalExecutionUrl *string `locationName:"externalExecutionUrl" min:"1" type:"string"`
  3115. // The last status change of the action.
  3116. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`
  3117. // The ARN of the user who last changed the pipeline.
  3118. LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
  3119. // A percentage of completeness of the action as it runs.
  3120. PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
  3121. // The status of the action, or for a completed action, the last status of the
  3122. // action.
  3123. Status *string `locationName:"status" type:"string" enum:"ActionExecutionStatus"`
  3124. // A summary of the run of the action.
  3125. Summary *string `locationName:"summary" min:"1" type:"string"`
  3126. // The system-generated token used to identify a unique approval request. The
  3127. // token for each open approval request can be obtained using the GetPipelineState
  3128. // command and is used to validate that the approval request corresponding to
  3129. // this token is still valid.
  3130. Token *string `locationName:"token" type:"string"`
  3131. }
  3132. // String returns the string representation
  3133. func (s ActionExecution) String() string {
  3134. return awsutil.Prettify(s)
  3135. }
  3136. // GoString returns the string representation
  3137. func (s ActionExecution) GoString() string {
  3138. return s.String()
  3139. }
  3140. // SetErrorDetails sets the ErrorDetails field's value.
  3141. func (s *ActionExecution) SetErrorDetails(v *ErrorDetails) *ActionExecution {
  3142. s.ErrorDetails = v
  3143. return s
  3144. }
  3145. // SetExternalExecutionId sets the ExternalExecutionId field's value.
  3146. func (s *ActionExecution) SetExternalExecutionId(v string) *ActionExecution {
  3147. s.ExternalExecutionId = &v
  3148. return s
  3149. }
  3150. // SetExternalExecutionUrl sets the ExternalExecutionUrl field's value.
  3151. func (s *ActionExecution) SetExternalExecutionUrl(v string) *ActionExecution {
  3152. s.ExternalExecutionUrl = &v
  3153. return s
  3154. }
  3155. // SetLastStatusChange sets the LastStatusChange field's value.
  3156. func (s *ActionExecution) SetLastStatusChange(v time.Time) *ActionExecution {
  3157. s.LastStatusChange = &v
  3158. return s
  3159. }
  3160. // SetLastUpdatedBy sets the LastUpdatedBy field's value.
  3161. func (s *ActionExecution) SetLastUpdatedBy(v string) *ActionExecution {
  3162. s.LastUpdatedBy = &v
  3163. return s
  3164. }
  3165. // SetPercentComplete sets the PercentComplete field's value.
  3166. func (s *ActionExecution) SetPercentComplete(v int64) *ActionExecution {
  3167. s.PercentComplete = &v
  3168. return s
  3169. }
  3170. // SetStatus sets the Status field's value.
  3171. func (s *ActionExecution) SetStatus(v string) *ActionExecution {
  3172. s.Status = &v
  3173. return s
  3174. }
  3175. // SetSummary sets the Summary field's value.
  3176. func (s *ActionExecution) SetSummary(v string) *ActionExecution {
  3177. s.Summary = &v
  3178. return s
  3179. }
  3180. // SetToken sets the Token field's value.
  3181. func (s *ActionExecution) SetToken(v string) *ActionExecution {
  3182. s.Token = &v
  3183. return s
  3184. }
  3185. // Represents information about the version (or revision) of an action.
  3186. type ActionRevision struct {
  3187. _ struct{} `type:"structure"`
  3188. // The date and time when the most recent version of the action was created,
  3189. // in timestamp format.
  3190. //
  3191. // Created is a required field
  3192. Created *time.Time `locationName:"created" type:"timestamp" required:"true"`
  3193. // The unique identifier of the change that set the state to this revision,
  3194. // for example a deployment ID or timestamp.
  3195. //
  3196. // RevisionChangeId is a required field
  3197. RevisionChangeId *string `locationName:"revisionChangeId" min:"1" type:"string" required:"true"`
  3198. // The system-generated unique ID that identifies the revision number of the
  3199. // action.
  3200. //
  3201. // RevisionId is a required field
  3202. RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"`
  3203. }
  3204. // String returns the string representation
  3205. func (s ActionRevision) String() string {
  3206. return awsutil.Prettify(s)
  3207. }
  3208. // GoString returns the string representation
  3209. func (s ActionRevision) GoString() string {
  3210. return s.String()
  3211. }
  3212. // Validate inspects the fields of the type to determine if they are valid.
  3213. func (s *ActionRevision) Validate() error {
  3214. invalidParams := request.ErrInvalidParams{Context: "ActionRevision"}
  3215. if s.Created == nil {
  3216. invalidParams.Add(request.NewErrParamRequired("Created"))
  3217. }
  3218. if s.RevisionChangeId == nil {
  3219. invalidParams.Add(request.NewErrParamRequired("RevisionChangeId"))
  3220. }
  3221. if s.RevisionChangeId != nil && len(*s.RevisionChangeId) < 1 {
  3222. invalidParams.Add(request.NewErrParamMinLen("RevisionChangeId", 1))
  3223. }
  3224. if s.RevisionId == nil {
  3225. invalidParams.Add(request.NewErrParamRequired("RevisionId"))
  3226. }
  3227. if s.RevisionId != nil && len(*s.RevisionId) < 1 {
  3228. invalidParams.Add(request.NewErrParamMinLen("RevisionId", 1))
  3229. }
  3230. if invalidParams.Len() > 0 {
  3231. return invalidParams
  3232. }
  3233. return nil
  3234. }
  3235. // SetCreated sets the Created field's value.
  3236. func (s *ActionRevision) SetCreated(v time.Time) *ActionRevision {
  3237. s.Created = &v
  3238. return s
  3239. }
  3240. // SetRevisionChangeId sets the RevisionChangeId field's value.
  3241. func (s *ActionRevision) SetRevisionChangeId(v string) *ActionRevision {
  3242. s.RevisionChangeId = &v
  3243. return s
  3244. }
  3245. // SetRevisionId sets the RevisionId field's value.
  3246. func (s *ActionRevision) SetRevisionId(v string) *ActionRevision {
  3247. s.RevisionId = &v
  3248. return s
  3249. }
  3250. // Represents information about the state of an action.
  3251. type ActionState struct {
  3252. _ struct{} `type:"structure"`
  3253. // The name of the action.
  3254. ActionName *string `locationName:"actionName" min:"1" type:"string"`
  3255. // Represents information about the version (or revision) of an action.
  3256. CurrentRevision *ActionRevision `locationName:"currentRevision" type:"structure"`
  3257. // A URL link for more information about the state of the action, such as a
  3258. // deployment group details page.
  3259. EntityUrl *string `locationName:"entityUrl" min:"1" type:"string"`
  3260. // Represents information about the run of an action.
  3261. LatestExecution *ActionExecution `locationName:"latestExecution" type:"structure"`
  3262. // A URL link for more information about the revision, such as a commit details
  3263. // page.
  3264. RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
  3265. }
  3266. // String returns the string representation
  3267. func (s ActionState) String() string {
  3268. return awsutil.Prettify(s)
  3269. }
  3270. // GoString returns the string representation
  3271. func (s ActionState) GoString() string {
  3272. return s.String()
  3273. }
  3274. // SetActionName sets the ActionName field's value.
  3275. func (s *ActionState) SetActionName(v string) *ActionState {
  3276. s.ActionName = &v
  3277. return s
  3278. }
  3279. // SetCurrentRevision sets the CurrentRevision field's value.
  3280. func (s *ActionState) SetCurrentRevision(v *ActionRevision) *ActionState {
  3281. s.CurrentRevision = v
  3282. return s
  3283. }
  3284. // SetEntityUrl sets the EntityUrl field's value.
  3285. func (s *ActionState) SetEntityUrl(v string) *ActionState {
  3286. s.EntityUrl = &v
  3287. return s
  3288. }
  3289. // SetLatestExecution sets the LatestExecution field's value.
  3290. func (s *ActionState) SetLatestExecution(v *ActionExecution) *ActionState {
  3291. s.LatestExecution = v
  3292. return s
  3293. }
  3294. // SetRevisionUrl sets the RevisionUrl field's value.
  3295. func (s *ActionState) SetRevisionUrl(v string) *ActionState {
  3296. s.RevisionUrl = &v
  3297. return s
  3298. }
  3299. // Returns information about the details of an action type.
  3300. type ActionType struct {
  3301. _ struct{} `type:"structure"`
  3302. // The configuration properties for the action type.
  3303. ActionConfigurationProperties []*ActionConfigurationProperty `locationName:"actionConfigurationProperties" type:"list"`
  3304. // Represents information about an action type.
  3305. //
  3306. // Id is a required field
  3307. Id *ActionTypeId `locationName:"id" type:"structure" required:"true"`
  3308. // The details of the input artifact for the action, such as its commit ID.
  3309. //
  3310. // InputArtifactDetails is a required field
  3311. InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
  3312. // The details of the output artifact of the action, such as its commit ID.
  3313. //
  3314. // OutputArtifactDetails is a required field
  3315. OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
  3316. // The settings for the action type.
  3317. Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
  3318. }
  3319. // String returns the string representation
  3320. func (s ActionType) String() string {
  3321. return awsutil.Prettify(s)
  3322. }
  3323. // GoString returns the string representation
  3324. func (s ActionType) GoString() string {
  3325. return s.String()
  3326. }
  3327. // SetActionConfigurationProperties sets the ActionConfigurationProperties field's value.
  3328. func (s *ActionType) SetActionConfigurationProperties(v []*ActionConfigurationProperty) *ActionType {
  3329. s.ActionConfigurationProperties = v
  3330. return s
  3331. }
  3332. // SetId sets the Id field's value.
  3333. func (s *ActionType) SetId(v *ActionTypeId) *ActionType {
  3334. s.Id = v
  3335. return s
  3336. }
  3337. // SetInputArtifactDetails sets the InputArtifactDetails field's value.
  3338. func (s *ActionType) SetInputArtifactDetails(v *ArtifactDetails) *ActionType {
  3339. s.InputArtifactDetails = v
  3340. return s
  3341. }
  3342. // SetOutputArtifactDetails sets the OutputArtifactDetails field's value.
  3343. func (s *ActionType) SetOutputArtifactDetails(v *ArtifactDetails) *ActionType {
  3344. s.OutputArtifactDetails = v
  3345. return s
  3346. }
  3347. // SetSettings sets the Settings field's value.
  3348. func (s *ActionType) SetSettings(v *ActionTypeSettings) *ActionType {
  3349. s.Settings = v
  3350. return s
  3351. }
  3352. // Represents information about an action type.
  3353. type ActionTypeId struct {
  3354. _ struct{} `type:"structure"`
  3355. // A category defines what kind of action can be taken in the stage, and constrains
  3356. // the provider type for the action. Valid categories are limited to one of
  3357. // the values below.
  3358. //
  3359. // Category is a required field
  3360. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  3361. // The creator of the action being called.
  3362. //
  3363. // Owner is a required field
  3364. Owner *string `locationName:"owner" type:"string" required:"true" enum:"ActionOwner"`
  3365. // The provider of the service being called by the action. Valid providers are
  3366. // determined by the action category. For example, an action in the Deploy category
  3367. // type might have a provider of AWS CodeDeploy, which would be specified as
  3368. // CodeDeploy.
  3369. //
  3370. // Provider is a required field
  3371. Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
  3372. // A string that describes the action version.
  3373. //
  3374. // Version is a required field
  3375. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  3376. }
  3377. // String returns the string representation
  3378. func (s ActionTypeId) String() string {
  3379. return awsutil.Prettify(s)
  3380. }
  3381. // GoString returns the string representation
  3382. func (s ActionTypeId) GoString() string {
  3383. return s.String()
  3384. }
  3385. // Validate inspects the fields of the type to determine if they are valid.
  3386. func (s *ActionTypeId) Validate() error {
  3387. invalidParams := request.ErrInvalidParams{Context: "ActionTypeId"}
  3388. if s.Category == nil {
  3389. invalidParams.Add(request.NewErrParamRequired("Category"))
  3390. }
  3391. if s.Owner == nil {
  3392. invalidParams.Add(request.NewErrParamRequired("Owner"))
  3393. }
  3394. if s.Provider == nil {
  3395. invalidParams.Add(request.NewErrParamRequired("Provider"))
  3396. }
  3397. if s.Provider != nil && len(*s.Provider) < 1 {
  3398. invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
  3399. }
  3400. if s.Version == nil {
  3401. invalidParams.Add(request.NewErrParamRequired("Version"))
  3402. }
  3403. if s.Version != nil && len(*s.Version) < 1 {
  3404. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  3405. }
  3406. if invalidParams.Len() > 0 {
  3407. return invalidParams
  3408. }
  3409. return nil
  3410. }
  3411. // SetCategory sets the Category field's value.
  3412. func (s *ActionTypeId) SetCategory(v string) *ActionTypeId {
  3413. s.Category = &v
  3414. return s
  3415. }
  3416. // SetOwner sets the Owner field's value.
  3417. func (s *ActionTypeId) SetOwner(v string) *ActionTypeId {
  3418. s.Owner = &v
  3419. return s
  3420. }
  3421. // SetProvider sets the Provider field's value.
  3422. func (s *ActionTypeId) SetProvider(v string) *ActionTypeId {
  3423. s.Provider = &v
  3424. return s
  3425. }
  3426. // SetVersion sets the Version field's value.
  3427. func (s *ActionTypeId) SetVersion(v string) *ActionTypeId {
  3428. s.Version = &v
  3429. return s
  3430. }
  3431. // Returns information about the settings for an action type.
  3432. type ActionTypeSettings struct {
  3433. _ struct{} `type:"structure"`
  3434. // The URL returned to the AWS CodePipeline console that provides a deep link
  3435. // to the resources of the external system, such as the configuration page for
  3436. // an AWS CodeDeploy deployment group. This link is provided as part of the
  3437. // action display within the pipeline.
  3438. EntityUrlTemplate *string `locationName:"entityUrlTemplate" min:"1" type:"string"`
  3439. // The URL returned to the AWS CodePipeline console that contains a link to
  3440. // the top-level landing page for the external system, such as console page
  3441. // for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS
  3442. // CodePipeline console and provides a link to the execution entity of the external
  3443. // action.
  3444. ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" min:"1" type:"string"`
  3445. // The URL returned to the AWS CodePipeline console that contains a link to
  3446. // the page where customers can update or change the configuration of the external
  3447. // action.
  3448. RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" min:"1" type:"string"`
  3449. // The URL of a sign-up page where users can sign up for an external service
  3450. // and perform initial configuration of the action provided by that service.
  3451. ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" min:"1" type:"string"`
  3452. }
  3453. // String returns the string representation
  3454. func (s ActionTypeSettings) String() string {
  3455. return awsutil.Prettify(s)
  3456. }
  3457. // GoString returns the string representation
  3458. func (s ActionTypeSettings) GoString() string {
  3459. return s.String()
  3460. }
  3461. // Validate inspects the fields of the type to determine if they are valid.
  3462. func (s *ActionTypeSettings) Validate() error {
  3463. invalidParams := request.ErrInvalidParams{Context: "ActionTypeSettings"}
  3464. if s.EntityUrlTemplate != nil && len(*s.EntityUrlTemplate) < 1 {
  3465. invalidParams.Add(request.NewErrParamMinLen("EntityUrlTemplate", 1))
  3466. }
  3467. if s.ExecutionUrlTemplate != nil && len(*s.ExecutionUrlTemplate) < 1 {
  3468. invalidParams.Add(request.NewErrParamMinLen("ExecutionUrlTemplate", 1))
  3469. }
  3470. if s.RevisionUrlTemplate != nil && len(*s.RevisionUrlTemplate) < 1 {
  3471. invalidParams.Add(request.NewErrParamMinLen("RevisionUrlTemplate", 1))
  3472. }
  3473. if s.ThirdPartyConfigurationUrl != nil && len(*s.ThirdPartyConfigurationUrl) < 1 {
  3474. invalidParams.Add(request.NewErrParamMinLen("ThirdPartyConfigurationUrl", 1))
  3475. }
  3476. if invalidParams.Len() > 0 {
  3477. return invalidParams
  3478. }
  3479. return nil
  3480. }
  3481. // SetEntityUrlTemplate sets the EntityUrlTemplate field's value.
  3482. func (s *ActionTypeSettings) SetEntityUrlTemplate(v string) *ActionTypeSettings {
  3483. s.EntityUrlTemplate = &v
  3484. return s
  3485. }
  3486. // SetExecutionUrlTemplate sets the ExecutionUrlTemplate field's value.
  3487. func (s *ActionTypeSettings) SetExecutionUrlTemplate(v string) *ActionTypeSettings {
  3488. s.ExecutionUrlTemplate = &v
  3489. return s
  3490. }
  3491. // SetRevisionUrlTemplate sets the RevisionUrlTemplate field's value.
  3492. func (s *ActionTypeSettings) SetRevisionUrlTemplate(v string) *ActionTypeSettings {
  3493. s.RevisionUrlTemplate = &v
  3494. return s
  3495. }
  3496. // SetThirdPartyConfigurationUrl sets the ThirdPartyConfigurationUrl field's value.
  3497. func (s *ActionTypeSettings) SetThirdPartyConfigurationUrl(v string) *ActionTypeSettings {
  3498. s.ThirdPartyConfigurationUrl = &v
  3499. return s
  3500. }
  3501. // Represents information about the result of an approval request.
  3502. type ApprovalResult struct {
  3503. _ struct{} `type:"structure"`
  3504. // The response submitted by a reviewer assigned to an approval action request.
  3505. //
  3506. // Status is a required field
  3507. Status *string `locationName:"status" type:"string" required:"true" enum:"ApprovalStatus"`
  3508. // The summary of the current status of the approval request.
  3509. //
  3510. // Summary is a required field
  3511. Summary *string `locationName:"summary" type:"string" required:"true"`
  3512. }
  3513. // String returns the string representation
  3514. func (s ApprovalResult) String() string {
  3515. return awsutil.Prettify(s)
  3516. }
  3517. // GoString returns the string representation
  3518. func (s ApprovalResult) GoString() string {
  3519. return s.String()
  3520. }
  3521. // Validate inspects the fields of the type to determine if they are valid.
  3522. func (s *ApprovalResult) Validate() error {
  3523. invalidParams := request.ErrInvalidParams{Context: "ApprovalResult"}
  3524. if s.Status == nil {
  3525. invalidParams.Add(request.NewErrParamRequired("Status"))
  3526. }
  3527. if s.Summary == nil {
  3528. invalidParams.Add(request.NewErrParamRequired("Summary"))
  3529. }
  3530. if invalidParams.Len() > 0 {
  3531. return invalidParams
  3532. }
  3533. return nil
  3534. }
  3535. // SetStatus sets the Status field's value.
  3536. func (s *ApprovalResult) SetStatus(v string) *ApprovalResult {
  3537. s.Status = &v
  3538. return s
  3539. }
  3540. // SetSummary sets the Summary field's value.
  3541. func (s *ApprovalResult) SetSummary(v string) *ApprovalResult {
  3542. s.Summary = &v
  3543. return s
  3544. }
  3545. // Represents information about an artifact that will be worked upon by actions
  3546. // in the pipeline.
  3547. type Artifact struct {
  3548. _ struct{} `type:"structure"`
  3549. // The location of an artifact.
  3550. Location *ArtifactLocation `locationName:"location" type:"structure"`
  3551. // The artifact's name.
  3552. Name *string `locationName:"name" min:"1" type:"string"`
  3553. // The artifact's revision ID. Depending on the type of object, this could be
  3554. // a commit ID (GitHub) or a revision ID (Amazon S3).
  3555. Revision *string `locationName:"revision" min:"1" type:"string"`
  3556. }
  3557. // String returns the string representation
  3558. func (s Artifact) String() string {
  3559. return awsutil.Prettify(s)
  3560. }
  3561. // GoString returns the string representation
  3562. func (s Artifact) GoString() string {
  3563. return s.String()
  3564. }
  3565. // SetLocation sets the Location field's value.
  3566. func (s *Artifact) SetLocation(v *ArtifactLocation) *Artifact {
  3567. s.Location = v
  3568. return s
  3569. }
  3570. // SetName sets the Name field's value.
  3571. func (s *Artifact) SetName(v string) *Artifact {
  3572. s.Name = &v
  3573. return s
  3574. }
  3575. // SetRevision sets the Revision field's value.
  3576. func (s *Artifact) SetRevision(v string) *Artifact {
  3577. s.Revision = &v
  3578. return s
  3579. }
  3580. // Returns information about the details of an artifact.
  3581. type ArtifactDetails struct {
  3582. _ struct{} `type:"structure"`
  3583. // The maximum number of artifacts allowed for the action type.
  3584. //
  3585. // MaximumCount is a required field
  3586. MaximumCount *int64 `locationName:"maximumCount" type:"integer" required:"true"`
  3587. // The minimum number of artifacts allowed for the action type.
  3588. //
  3589. // MinimumCount is a required field
  3590. MinimumCount *int64 `locationName:"minimumCount" type:"integer" required:"true"`
  3591. }
  3592. // String returns the string representation
  3593. func (s ArtifactDetails) String() string {
  3594. return awsutil.Prettify(s)
  3595. }
  3596. // GoString returns the string representation
  3597. func (s ArtifactDetails) GoString() string {
  3598. return s.String()
  3599. }
  3600. // Validate inspects the fields of the type to determine if they are valid.
  3601. func (s *ArtifactDetails) Validate() error {
  3602. invalidParams := request.ErrInvalidParams{Context: "ArtifactDetails"}
  3603. if s.MaximumCount == nil {
  3604. invalidParams.Add(request.NewErrParamRequired("MaximumCount"))
  3605. }
  3606. if s.MinimumCount == nil {
  3607. invalidParams.Add(request.NewErrParamRequired("MinimumCount"))
  3608. }
  3609. if invalidParams.Len() > 0 {
  3610. return invalidParams
  3611. }
  3612. return nil
  3613. }
  3614. // SetMaximumCount sets the MaximumCount field's value.
  3615. func (s *ArtifactDetails) SetMaximumCount(v int64) *ArtifactDetails {
  3616. s.MaximumCount = &v
  3617. return s
  3618. }
  3619. // SetMinimumCount sets the MinimumCount field's value.
  3620. func (s *ArtifactDetails) SetMinimumCount(v int64) *ArtifactDetails {
  3621. s.MinimumCount = &v
  3622. return s
  3623. }
  3624. // Represents information about the location of an artifact.
  3625. type ArtifactLocation struct {
  3626. _ struct{} `type:"structure"`
  3627. // The Amazon S3 bucket that contains the artifact.
  3628. S3Location *S3ArtifactLocation `locationName:"s3Location" type:"structure"`
  3629. // The type of artifact in the location.
  3630. Type *string `locationName:"type" type:"string" enum:"ArtifactLocationType"`
  3631. }
  3632. // String returns the string representation
  3633. func (s ArtifactLocation) String() string {
  3634. return awsutil.Prettify(s)
  3635. }
  3636. // GoString returns the string representation
  3637. func (s ArtifactLocation) GoString() string {
  3638. return s.String()
  3639. }
  3640. // SetS3Location sets the S3Location field's value.
  3641. func (s *ArtifactLocation) SetS3Location(v *S3ArtifactLocation) *ArtifactLocation {
  3642. s.S3Location = v
  3643. return s
  3644. }
  3645. // SetType sets the Type field's value.
  3646. func (s *ArtifactLocation) SetType(v string) *ArtifactLocation {
  3647. s.Type = &v
  3648. return s
  3649. }
  3650. // Represents revision details of an artifact.
  3651. type ArtifactRevision struct {
  3652. _ struct{} `type:"structure"`
  3653. // The date and time when the most recent revision of the artifact was created,
  3654. // in timestamp format.
  3655. Created *time.Time `locationName:"created" type:"timestamp"`
  3656. // The name of an artifact. This name might be system-generated, such as "MyApp",
  3657. // or might be defined by the user when an action is created.
  3658. Name *string `locationName:"name" min:"1" type:"string"`
  3659. // An additional identifier for a revision, such as a commit date or, for artifacts
  3660. // stored in Amazon S3 buckets, the ETag value.
  3661. RevisionChangeIdentifier *string `locationName:"revisionChangeIdentifier" min:"1" type:"string"`
  3662. // The revision ID of the artifact.
  3663. RevisionId *string `locationName:"revisionId" min:"1" type:"string"`
  3664. // Summary information about the most recent revision of the artifact. For GitHub
  3665. // and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets
  3666. // or actions, the user-provided content of a codepipeline-artifact-revision-summary
  3667. // key specified in the object metadata.
  3668. RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
  3669. // The commit ID for the artifact revision. For artifacts stored in GitHub or
  3670. // AWS CodeCommit repositories, the commit ID is linked to a commit details
  3671. // page.
  3672. RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
  3673. }
  3674. // String returns the string representation
  3675. func (s ArtifactRevision) String() string {
  3676. return awsutil.Prettify(s)
  3677. }
  3678. // GoString returns the string representation
  3679. func (s ArtifactRevision) GoString() string {
  3680. return s.String()
  3681. }
  3682. // SetCreated sets the Created field's value.
  3683. func (s *ArtifactRevision) SetCreated(v time.Time) *ArtifactRevision {
  3684. s.Created = &v
  3685. return s
  3686. }
  3687. // SetName sets the Name field's value.
  3688. func (s *ArtifactRevision) SetName(v string) *ArtifactRevision {
  3689. s.Name = &v
  3690. return s
  3691. }
  3692. // SetRevisionChangeIdentifier sets the RevisionChangeIdentifier field's value.
  3693. func (s *ArtifactRevision) SetRevisionChangeIdentifier(v string) *ArtifactRevision {
  3694. s.RevisionChangeIdentifier = &v
  3695. return s
  3696. }
  3697. // SetRevisionId sets the RevisionId field's value.
  3698. func (s *ArtifactRevision) SetRevisionId(v string) *ArtifactRevision {
  3699. s.RevisionId = &v
  3700. return s
  3701. }
  3702. // SetRevisionSummary sets the RevisionSummary field's value.
  3703. func (s *ArtifactRevision) SetRevisionSummary(v string) *ArtifactRevision {
  3704. s.RevisionSummary = &v
  3705. return s
  3706. }
  3707. // SetRevisionUrl sets the RevisionUrl field's value.
  3708. func (s *ArtifactRevision) SetRevisionUrl(v string) *ArtifactRevision {
  3709. s.RevisionUrl = &v
  3710. return s
  3711. }
  3712. // The Amazon S3 bucket where artifacts are stored for the pipeline.
  3713. type ArtifactStore struct {
  3714. _ struct{} `type:"structure"`
  3715. // The encryption key used to encrypt the data in the artifact store, such as
  3716. // an AWS Key Management Service (AWS KMS) key. If this is undefined, the default
  3717. // key for Amazon S3 is used.
  3718. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  3719. // The Amazon S3 bucket used for storing the artifacts for a pipeline. You can
  3720. // specify the name of an S3 bucket but not a folder within the bucket. A folder
  3721. // to contain the pipeline artifacts is created for you based on the name of
  3722. // the pipeline. You can use any Amazon S3 bucket in the same AWS Region as
  3723. // the pipeline to store your pipeline artifacts.
  3724. //
  3725. // Location is a required field
  3726. Location *string `locationName:"location" min:"3" type:"string" required:"true"`
  3727. // The type of the artifact store, such as S3.
  3728. //
  3729. // Type is a required field
  3730. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactStoreType"`
  3731. }
  3732. // String returns the string representation
  3733. func (s ArtifactStore) String() string {
  3734. return awsutil.Prettify(s)
  3735. }
  3736. // GoString returns the string representation
  3737. func (s ArtifactStore) GoString() string {
  3738. return s.String()
  3739. }
  3740. // Validate inspects the fields of the type to determine if they are valid.
  3741. func (s *ArtifactStore) Validate() error {
  3742. invalidParams := request.ErrInvalidParams{Context: "ArtifactStore"}
  3743. if s.Location == nil {
  3744. invalidParams.Add(request.NewErrParamRequired("Location"))
  3745. }
  3746. if s.Location != nil && len(*s.Location) < 3 {
  3747. invalidParams.Add(request.NewErrParamMinLen("Location", 3))
  3748. }
  3749. if s.Type == nil {
  3750. invalidParams.Add(request.NewErrParamRequired("Type"))
  3751. }
  3752. if s.EncryptionKey != nil {
  3753. if err := s.EncryptionKey.Validate(); err != nil {
  3754. invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams))
  3755. }
  3756. }
  3757. if invalidParams.Len() > 0 {
  3758. return invalidParams
  3759. }
  3760. return nil
  3761. }
  3762. // SetEncryptionKey sets the EncryptionKey field's value.
  3763. func (s *ArtifactStore) SetEncryptionKey(v *EncryptionKey) *ArtifactStore {
  3764. s.EncryptionKey = v
  3765. return s
  3766. }
  3767. // SetLocation sets the Location field's value.
  3768. func (s *ArtifactStore) SetLocation(v string) *ArtifactStore {
  3769. s.Location = &v
  3770. return s
  3771. }
  3772. // SetType sets the Type field's value.
  3773. func (s *ArtifactStore) SetType(v string) *ArtifactStore {
  3774. s.Type = &v
  3775. return s
  3776. }
  3777. // Reserved for future use.
  3778. type BlockerDeclaration struct {
  3779. _ struct{} `type:"structure"`
  3780. // Reserved for future use.
  3781. //
  3782. // Name is a required field
  3783. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3784. // Reserved for future use.
  3785. //
  3786. // Type is a required field
  3787. Type *string `locationName:"type" type:"string" required:"true" enum:"BlockerType"`
  3788. }
  3789. // String returns the string representation
  3790. func (s BlockerDeclaration) String() string {
  3791. return awsutil.Prettify(s)
  3792. }
  3793. // GoString returns the string representation
  3794. func (s BlockerDeclaration) GoString() string {
  3795. return s.String()
  3796. }
  3797. // Validate inspects the fields of the type to determine if they are valid.
  3798. func (s *BlockerDeclaration) Validate() error {
  3799. invalidParams := request.ErrInvalidParams{Context: "BlockerDeclaration"}
  3800. if s.Name == nil {
  3801. invalidParams.Add(request.NewErrParamRequired("Name"))
  3802. }
  3803. if s.Name != nil && len(*s.Name) < 1 {
  3804. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3805. }
  3806. if s.Type == nil {
  3807. invalidParams.Add(request.NewErrParamRequired("Type"))
  3808. }
  3809. if invalidParams.Len() > 0 {
  3810. return invalidParams
  3811. }
  3812. return nil
  3813. }
  3814. // SetName sets the Name field's value.
  3815. func (s *BlockerDeclaration) SetName(v string) *BlockerDeclaration {
  3816. s.Name = &v
  3817. return s
  3818. }
  3819. // SetType sets the Type field's value.
  3820. func (s *BlockerDeclaration) SetType(v string) *BlockerDeclaration {
  3821. s.Type = &v
  3822. return s
  3823. }
  3824. // Represents the input of a CreateCustomActionType operation.
  3825. type CreateCustomActionTypeInput struct {
  3826. _ struct{} `type:"structure"`
  3827. // The category of the custom action, such as a build action or a test action.
  3828. //
  3829. // Although Source and Approval are listed as valid values, they are not currently
  3830. // functional. These values are reserved for future use.
  3831. //
  3832. // Category is a required field
  3833. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  3834. // The configuration properties for the custom action.
  3835. //
  3836. // You can refer to a name in the configuration properties of the custom action
  3837. // within the URL templates by following the format of {Config:name}, as long
  3838. // as the configuration property is both required and not secret. For more information,
  3839. // see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html).
  3840. ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"`
  3841. // The details of the input artifact for the action, such as its commit ID.
  3842. //
  3843. // InputArtifactDetails is a required field
  3844. InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
  3845. // The details of the output artifact of the action, such as its commit ID.
  3846. //
  3847. // OutputArtifactDetails is a required field
  3848. OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
  3849. // The provider of the service used in the custom action, such as AWS CodeDeploy.
  3850. //
  3851. // Provider is a required field
  3852. Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
  3853. // Returns information about the settings for an action type.
  3854. Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
  3855. // The version identifier of the custom action.
  3856. //
  3857. // Version is a required field
  3858. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  3859. }
  3860. // String returns the string representation
  3861. func (s CreateCustomActionTypeInput) String() string {
  3862. return awsutil.Prettify(s)
  3863. }
  3864. // GoString returns the string representation
  3865. func (s CreateCustomActionTypeInput) GoString() string {
  3866. return s.String()
  3867. }
  3868. // Validate inspects the fields of the type to determine if they are valid.
  3869. func (s *CreateCustomActionTypeInput) Validate() error {
  3870. invalidParams := request.ErrInvalidParams{Context: "CreateCustomActionTypeInput"}
  3871. if s.Category == nil {
  3872. invalidParams.Add(request.NewErrParamRequired("Category"))
  3873. }
  3874. if s.InputArtifactDetails == nil {
  3875. invalidParams.Add(request.NewErrParamRequired("InputArtifactDetails"))
  3876. }
  3877. if s.OutputArtifactDetails == nil {
  3878. invalidParams.Add(request.NewErrParamRequired("OutputArtifactDetails"))
  3879. }
  3880. if s.Provider == nil {
  3881. invalidParams.Add(request.NewErrParamRequired("Provider"))
  3882. }
  3883. if s.Provider != nil && len(*s.Provider) < 1 {
  3884. invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
  3885. }
  3886. if s.Version == nil {
  3887. invalidParams.Add(request.NewErrParamRequired("Version"))
  3888. }
  3889. if s.Version != nil && len(*s.Version) < 1 {
  3890. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  3891. }
  3892. if s.ConfigurationProperties != nil {
  3893. for i, v := range s.ConfigurationProperties {
  3894. if v == nil {
  3895. continue
  3896. }
  3897. if err := v.Validate(); err != nil {
  3898. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ConfigurationProperties", i), err.(request.ErrInvalidParams))
  3899. }
  3900. }
  3901. }
  3902. if s.InputArtifactDetails != nil {
  3903. if err := s.InputArtifactDetails.Validate(); err != nil {
  3904. invalidParams.AddNested("InputArtifactDetails", err.(request.ErrInvalidParams))
  3905. }
  3906. }
  3907. if s.OutputArtifactDetails != nil {
  3908. if err := s.OutputArtifactDetails.Validate(); err != nil {
  3909. invalidParams.AddNested("OutputArtifactDetails", err.(request.ErrInvalidParams))
  3910. }
  3911. }
  3912. if s.Settings != nil {
  3913. if err := s.Settings.Validate(); err != nil {
  3914. invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
  3915. }
  3916. }
  3917. if invalidParams.Len() > 0 {
  3918. return invalidParams
  3919. }
  3920. return nil
  3921. }
  3922. // SetCategory sets the Category field's value.
  3923. func (s *CreateCustomActionTypeInput) SetCategory(v string) *CreateCustomActionTypeInput {
  3924. s.Category = &v
  3925. return s
  3926. }
  3927. // SetConfigurationProperties sets the ConfigurationProperties field's value.
  3928. func (s *CreateCustomActionTypeInput) SetConfigurationProperties(v []*ActionConfigurationProperty) *CreateCustomActionTypeInput {
  3929. s.ConfigurationProperties = v
  3930. return s
  3931. }
  3932. // SetInputArtifactDetails sets the InputArtifactDetails field's value.
  3933. func (s *CreateCustomActionTypeInput) SetInputArtifactDetails(v *ArtifactDetails) *CreateCustomActionTypeInput {
  3934. s.InputArtifactDetails = v
  3935. return s
  3936. }
  3937. // SetOutputArtifactDetails sets the OutputArtifactDetails field's value.
  3938. func (s *CreateCustomActionTypeInput) SetOutputArtifactDetails(v *ArtifactDetails) *CreateCustomActionTypeInput {
  3939. s.OutputArtifactDetails = v
  3940. return s
  3941. }
  3942. // SetProvider sets the Provider field's value.
  3943. func (s *CreateCustomActionTypeInput) SetProvider(v string) *CreateCustomActionTypeInput {
  3944. s.Provider = &v
  3945. return s
  3946. }
  3947. // SetSettings sets the Settings field's value.
  3948. func (s *CreateCustomActionTypeInput) SetSettings(v *ActionTypeSettings) *CreateCustomActionTypeInput {
  3949. s.Settings = v
  3950. return s
  3951. }
  3952. // SetVersion sets the Version field's value.
  3953. func (s *CreateCustomActionTypeInput) SetVersion(v string) *CreateCustomActionTypeInput {
  3954. s.Version = &v
  3955. return s
  3956. }
  3957. // Represents the output of a CreateCustomActionType operation.
  3958. type CreateCustomActionTypeOutput struct {
  3959. _ struct{} `type:"structure"`
  3960. // Returns information about the details of an action type.
  3961. //
  3962. // ActionType is a required field
  3963. ActionType *ActionType `locationName:"actionType" type:"structure" required:"true"`
  3964. }
  3965. // String returns the string representation
  3966. func (s CreateCustomActionTypeOutput) String() string {
  3967. return awsutil.Prettify(s)
  3968. }
  3969. // GoString returns the string representation
  3970. func (s CreateCustomActionTypeOutput) GoString() string {
  3971. return s.String()
  3972. }
  3973. // SetActionType sets the ActionType field's value.
  3974. func (s *CreateCustomActionTypeOutput) SetActionType(v *ActionType) *CreateCustomActionTypeOutput {
  3975. s.ActionType = v
  3976. return s
  3977. }
  3978. // Represents the input of a CreatePipeline action.
  3979. type CreatePipelineInput struct {
  3980. _ struct{} `type:"structure"`
  3981. // Represents the structure of actions and stages to be performed in the pipeline.
  3982. //
  3983. // Pipeline is a required field
  3984. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
  3985. }
  3986. // String returns the string representation
  3987. func (s CreatePipelineInput) String() string {
  3988. return awsutil.Prettify(s)
  3989. }
  3990. // GoString returns the string representation
  3991. func (s CreatePipelineInput) GoString() string {
  3992. return s.String()
  3993. }
  3994. // Validate inspects the fields of the type to determine if they are valid.
  3995. func (s *CreatePipelineInput) Validate() error {
  3996. invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
  3997. if s.Pipeline == nil {
  3998. invalidParams.Add(request.NewErrParamRequired("Pipeline"))
  3999. }
  4000. if s.Pipeline != nil {
  4001. if err := s.Pipeline.Validate(); err != nil {
  4002. invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
  4003. }
  4004. }
  4005. if invalidParams.Len() > 0 {
  4006. return invalidParams
  4007. }
  4008. return nil
  4009. }
  4010. // SetPipeline sets the Pipeline field's value.
  4011. func (s *CreatePipelineInput) SetPipeline(v *PipelineDeclaration) *CreatePipelineInput {
  4012. s.Pipeline = v
  4013. return s
  4014. }
  4015. // Represents the output of a CreatePipeline action.
  4016. type CreatePipelineOutput struct {
  4017. _ struct{} `type:"structure"`
  4018. // Represents the structure of actions and stages to be performed in the pipeline.
  4019. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  4020. }
  4021. // String returns the string representation
  4022. func (s CreatePipelineOutput) String() string {
  4023. return awsutil.Prettify(s)
  4024. }
  4025. // GoString returns the string representation
  4026. func (s CreatePipelineOutput) GoString() string {
  4027. return s.String()
  4028. }
  4029. // SetPipeline sets the Pipeline field's value.
  4030. func (s *CreatePipelineOutput) SetPipeline(v *PipelineDeclaration) *CreatePipelineOutput {
  4031. s.Pipeline = v
  4032. return s
  4033. }
  4034. // Represents information about a current revision.
  4035. type CurrentRevision struct {
  4036. _ struct{} `type:"structure"`
  4037. // The change identifier for the current revision.
  4038. //
  4039. // ChangeIdentifier is a required field
  4040. ChangeIdentifier *string `locationName:"changeIdentifier" min:"1" type:"string" required:"true"`
  4041. // The date and time when the most recent revision of the artifact was created,
  4042. // in timestamp format.
  4043. Created *time.Time `locationName:"created" type:"timestamp"`
  4044. // The revision ID of the current version of an artifact.
  4045. //
  4046. // Revision is a required field
  4047. Revision *string `locationName:"revision" min:"1" type:"string" required:"true"`
  4048. // The summary of the most recent revision of the artifact.
  4049. RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
  4050. }
  4051. // String returns the string representation
  4052. func (s CurrentRevision) String() string {
  4053. return awsutil.Prettify(s)
  4054. }
  4055. // GoString returns the string representation
  4056. func (s CurrentRevision) GoString() string {
  4057. return s.String()
  4058. }
  4059. // Validate inspects the fields of the type to determine if they are valid.
  4060. func (s *CurrentRevision) Validate() error {
  4061. invalidParams := request.ErrInvalidParams{Context: "CurrentRevision"}
  4062. if s.ChangeIdentifier == nil {
  4063. invalidParams.Add(request.NewErrParamRequired("ChangeIdentifier"))
  4064. }
  4065. if s.ChangeIdentifier != nil && len(*s.ChangeIdentifier) < 1 {
  4066. invalidParams.Add(request.NewErrParamMinLen("ChangeIdentifier", 1))
  4067. }
  4068. if s.Revision == nil {
  4069. invalidParams.Add(request.NewErrParamRequired("Revision"))
  4070. }
  4071. if s.Revision != nil && len(*s.Revision) < 1 {
  4072. invalidParams.Add(request.NewErrParamMinLen("Revision", 1))
  4073. }
  4074. if s.RevisionSummary != nil && len(*s.RevisionSummary) < 1 {
  4075. invalidParams.Add(request.NewErrParamMinLen("RevisionSummary", 1))
  4076. }
  4077. if invalidParams.Len() > 0 {
  4078. return invalidParams
  4079. }
  4080. return nil
  4081. }
  4082. // SetChangeIdentifier sets the ChangeIdentifier field's value.
  4083. func (s *CurrentRevision) SetChangeIdentifier(v string) *CurrentRevision {
  4084. s.ChangeIdentifier = &v
  4085. return s
  4086. }
  4087. // SetCreated sets the Created field's value.
  4088. func (s *CurrentRevision) SetCreated(v time.Time) *CurrentRevision {
  4089. s.Created = &v
  4090. return s
  4091. }
  4092. // SetRevision sets the Revision field's value.
  4093. func (s *CurrentRevision) SetRevision(v string) *CurrentRevision {
  4094. s.Revision = &v
  4095. return s
  4096. }
  4097. // SetRevisionSummary sets the RevisionSummary field's value.
  4098. func (s *CurrentRevision) SetRevisionSummary(v string) *CurrentRevision {
  4099. s.RevisionSummary = &v
  4100. return s
  4101. }
  4102. // Represents the input of a DeleteCustomActionType operation. The custom action
  4103. // will be marked as deleted.
  4104. type DeleteCustomActionTypeInput struct {
  4105. _ struct{} `type:"structure"`
  4106. // The category of the custom action that you want to delete, such as source
  4107. // or deploy.
  4108. //
  4109. // Category is a required field
  4110. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  4111. // The provider of the service used in the custom action, such as AWS CodeDeploy.
  4112. //
  4113. // Provider is a required field
  4114. Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
  4115. // The version of the custom action to delete.
  4116. //
  4117. // Version is a required field
  4118. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  4119. }
  4120. // String returns the string representation
  4121. func (s DeleteCustomActionTypeInput) String() string {
  4122. return awsutil.Prettify(s)
  4123. }
  4124. // GoString returns the string representation
  4125. func (s DeleteCustomActionTypeInput) GoString() string {
  4126. return s.String()
  4127. }
  4128. // Validate inspects the fields of the type to determine if they are valid.
  4129. func (s *DeleteCustomActionTypeInput) Validate() error {
  4130. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomActionTypeInput"}
  4131. if s.Category == nil {
  4132. invalidParams.Add(request.NewErrParamRequired("Category"))
  4133. }
  4134. if s.Provider == nil {
  4135. invalidParams.Add(request.NewErrParamRequired("Provider"))
  4136. }
  4137. if s.Provider != nil && len(*s.Provider) < 1 {
  4138. invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
  4139. }
  4140. if s.Version == nil {
  4141. invalidParams.Add(request.NewErrParamRequired("Version"))
  4142. }
  4143. if s.Version != nil && len(*s.Version) < 1 {
  4144. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  4145. }
  4146. if invalidParams.Len() > 0 {
  4147. return invalidParams
  4148. }
  4149. return nil
  4150. }
  4151. // SetCategory sets the Category field's value.
  4152. func (s *DeleteCustomActionTypeInput) SetCategory(v string) *DeleteCustomActionTypeInput {
  4153. s.Category = &v
  4154. return s
  4155. }
  4156. // SetProvider sets the Provider field's value.
  4157. func (s *DeleteCustomActionTypeInput) SetProvider(v string) *DeleteCustomActionTypeInput {
  4158. s.Provider = &v
  4159. return s
  4160. }
  4161. // SetVersion sets the Version field's value.
  4162. func (s *DeleteCustomActionTypeInput) SetVersion(v string) *DeleteCustomActionTypeInput {
  4163. s.Version = &v
  4164. return s
  4165. }
  4166. type DeleteCustomActionTypeOutput struct {
  4167. _ struct{} `type:"structure"`
  4168. }
  4169. // String returns the string representation
  4170. func (s DeleteCustomActionTypeOutput) String() string {
  4171. return awsutil.Prettify(s)
  4172. }
  4173. // GoString returns the string representation
  4174. func (s DeleteCustomActionTypeOutput) GoString() string {
  4175. return s.String()
  4176. }
  4177. // Represents the input of a DeletePipeline action.
  4178. type DeletePipelineInput struct {
  4179. _ struct{} `type:"structure"`
  4180. // The name of the pipeline to be deleted.
  4181. //
  4182. // Name is a required field
  4183. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4184. }
  4185. // String returns the string representation
  4186. func (s DeletePipelineInput) String() string {
  4187. return awsutil.Prettify(s)
  4188. }
  4189. // GoString returns the string representation
  4190. func (s DeletePipelineInput) GoString() string {
  4191. return s.String()
  4192. }
  4193. // Validate inspects the fields of the type to determine if they are valid.
  4194. func (s *DeletePipelineInput) Validate() error {
  4195. invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
  4196. if s.Name == nil {
  4197. invalidParams.Add(request.NewErrParamRequired("Name"))
  4198. }
  4199. if s.Name != nil && len(*s.Name) < 1 {
  4200. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4201. }
  4202. if invalidParams.Len() > 0 {
  4203. return invalidParams
  4204. }
  4205. return nil
  4206. }
  4207. // SetName sets the Name field's value.
  4208. func (s *DeletePipelineInput) SetName(v string) *DeletePipelineInput {
  4209. s.Name = &v
  4210. return s
  4211. }
  4212. type DeletePipelineOutput struct {
  4213. _ struct{} `type:"structure"`
  4214. }
  4215. // String returns the string representation
  4216. func (s DeletePipelineOutput) String() string {
  4217. return awsutil.Prettify(s)
  4218. }
  4219. // GoString returns the string representation
  4220. func (s DeletePipelineOutput) GoString() string {
  4221. return s.String()
  4222. }
  4223. type DeleteWebhookInput struct {
  4224. _ struct{} `type:"structure"`
  4225. // The name of the webhook you want to delete.
  4226. //
  4227. // Name is a required field
  4228. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4229. }
  4230. // String returns the string representation
  4231. func (s DeleteWebhookInput) String() string {
  4232. return awsutil.Prettify(s)
  4233. }
  4234. // GoString returns the string representation
  4235. func (s DeleteWebhookInput) GoString() string {
  4236. return s.String()
  4237. }
  4238. // Validate inspects the fields of the type to determine if they are valid.
  4239. func (s *DeleteWebhookInput) Validate() error {
  4240. invalidParams := request.ErrInvalidParams{Context: "DeleteWebhookInput"}
  4241. if s.Name == nil {
  4242. invalidParams.Add(request.NewErrParamRequired("Name"))
  4243. }
  4244. if s.Name != nil && len(*s.Name) < 1 {
  4245. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4246. }
  4247. if invalidParams.Len() > 0 {
  4248. return invalidParams
  4249. }
  4250. return nil
  4251. }
  4252. // SetName sets the Name field's value.
  4253. func (s *DeleteWebhookInput) SetName(v string) *DeleteWebhookInput {
  4254. s.Name = &v
  4255. return s
  4256. }
  4257. type DeleteWebhookOutput struct {
  4258. _ struct{} `type:"structure"`
  4259. }
  4260. // String returns the string representation
  4261. func (s DeleteWebhookOutput) String() string {
  4262. return awsutil.Prettify(s)
  4263. }
  4264. // GoString returns the string representation
  4265. func (s DeleteWebhookOutput) GoString() string {
  4266. return s.String()
  4267. }
  4268. type DeregisterWebhookWithThirdPartyInput struct {
  4269. _ struct{} `type:"structure"`
  4270. // The name of the webhook you want to deregister.
  4271. WebhookName *string `locationName:"webhookName" min:"1" type:"string"`
  4272. }
  4273. // String returns the string representation
  4274. func (s DeregisterWebhookWithThirdPartyInput) String() string {
  4275. return awsutil.Prettify(s)
  4276. }
  4277. // GoString returns the string representation
  4278. func (s DeregisterWebhookWithThirdPartyInput) GoString() string {
  4279. return s.String()
  4280. }
  4281. // Validate inspects the fields of the type to determine if they are valid.
  4282. func (s *DeregisterWebhookWithThirdPartyInput) Validate() error {
  4283. invalidParams := request.ErrInvalidParams{Context: "DeregisterWebhookWithThirdPartyInput"}
  4284. if s.WebhookName != nil && len(*s.WebhookName) < 1 {
  4285. invalidParams.Add(request.NewErrParamMinLen("WebhookName", 1))
  4286. }
  4287. if invalidParams.Len() > 0 {
  4288. return invalidParams
  4289. }
  4290. return nil
  4291. }
  4292. // SetWebhookName sets the WebhookName field's value.
  4293. func (s *DeregisterWebhookWithThirdPartyInput) SetWebhookName(v string) *DeregisterWebhookWithThirdPartyInput {
  4294. s.WebhookName = &v
  4295. return s
  4296. }
  4297. type DeregisterWebhookWithThirdPartyOutput struct {
  4298. _ struct{} `type:"structure"`
  4299. }
  4300. // String returns the string representation
  4301. func (s DeregisterWebhookWithThirdPartyOutput) String() string {
  4302. return awsutil.Prettify(s)
  4303. }
  4304. // GoString returns the string representation
  4305. func (s DeregisterWebhookWithThirdPartyOutput) GoString() string {
  4306. return s.String()
  4307. }
  4308. // Represents the input of a DisableStageTransition action.
  4309. type DisableStageTransitionInput struct {
  4310. _ struct{} `type:"structure"`
  4311. // The name of the pipeline in which you want to disable the flow of artifacts
  4312. // from one stage to another.
  4313. //
  4314. // PipelineName is a required field
  4315. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  4316. // The reason given to the user why a stage is disabled, such as waiting for
  4317. // manual approval or manual tests. This message is displayed in the pipeline
  4318. // console UI.
  4319. //
  4320. // Reason is a required field
  4321. Reason *string `locationName:"reason" min:"1" type:"string" required:"true"`
  4322. // The name of the stage where you want to disable the inbound or outbound transition
  4323. // of artifacts.
  4324. //
  4325. // StageName is a required field
  4326. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  4327. // Specifies whether artifacts will be prevented from transitioning into the
  4328. // stage and being processed by the actions in that stage (inbound), or prevented
  4329. // from transitioning from the stage after they have been processed by the actions
  4330. // in that stage (outbound).
  4331. //
  4332. // TransitionType is a required field
  4333. TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
  4334. }
  4335. // String returns the string representation
  4336. func (s DisableStageTransitionInput) String() string {
  4337. return awsutil.Prettify(s)
  4338. }
  4339. // GoString returns the string representation
  4340. func (s DisableStageTransitionInput) GoString() string {
  4341. return s.String()
  4342. }
  4343. // Validate inspects the fields of the type to determine if they are valid.
  4344. func (s *DisableStageTransitionInput) Validate() error {
  4345. invalidParams := request.ErrInvalidParams{Context: "DisableStageTransitionInput"}
  4346. if s.PipelineName == nil {
  4347. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  4348. }
  4349. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  4350. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  4351. }
  4352. if s.Reason == nil {
  4353. invalidParams.Add(request.NewErrParamRequired("Reason"))
  4354. }
  4355. if s.Reason != nil && len(*s.Reason) < 1 {
  4356. invalidParams.Add(request.NewErrParamMinLen("Reason", 1))
  4357. }
  4358. if s.StageName == nil {
  4359. invalidParams.Add(request.NewErrParamRequired("StageName"))
  4360. }
  4361. if s.StageName != nil && len(*s.StageName) < 1 {
  4362. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  4363. }
  4364. if s.TransitionType == nil {
  4365. invalidParams.Add(request.NewErrParamRequired("TransitionType"))
  4366. }
  4367. if invalidParams.Len() > 0 {
  4368. return invalidParams
  4369. }
  4370. return nil
  4371. }
  4372. // SetPipelineName sets the PipelineName field's value.
  4373. func (s *DisableStageTransitionInput) SetPipelineName(v string) *DisableStageTransitionInput {
  4374. s.PipelineName = &v
  4375. return s
  4376. }
  4377. // SetReason sets the Reason field's value.
  4378. func (s *DisableStageTransitionInput) SetReason(v string) *DisableStageTransitionInput {
  4379. s.Reason = &v
  4380. return s
  4381. }
  4382. // SetStageName sets the StageName field's value.
  4383. func (s *DisableStageTransitionInput) SetStageName(v string) *DisableStageTransitionInput {
  4384. s.StageName = &v
  4385. return s
  4386. }
  4387. // SetTransitionType sets the TransitionType field's value.
  4388. func (s *DisableStageTransitionInput) SetTransitionType(v string) *DisableStageTransitionInput {
  4389. s.TransitionType = &v
  4390. return s
  4391. }
  4392. type DisableStageTransitionOutput struct {
  4393. _ struct{} `type:"structure"`
  4394. }
  4395. // String returns the string representation
  4396. func (s DisableStageTransitionOutput) String() string {
  4397. return awsutil.Prettify(s)
  4398. }
  4399. // GoString returns the string representation
  4400. func (s DisableStageTransitionOutput) GoString() string {
  4401. return s.String()
  4402. }
  4403. // Represents the input of an EnableStageTransition action.
  4404. type EnableStageTransitionInput struct {
  4405. _ struct{} `type:"structure"`
  4406. // The name of the pipeline in which you want to enable the flow of artifacts
  4407. // from one stage to another.
  4408. //
  4409. // PipelineName is a required field
  4410. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  4411. // The name of the stage where you want to enable the transition of artifacts,
  4412. // either into the stage (inbound) or from that stage to the next stage (outbound).
  4413. //
  4414. // StageName is a required field
  4415. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  4416. // Specifies whether artifacts will be allowed to enter the stage and be processed
  4417. // by the actions in that stage (inbound) or whether already-processed artifacts
  4418. // will be allowed to transition to the next stage (outbound).
  4419. //
  4420. // TransitionType is a required field
  4421. TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
  4422. }
  4423. // String returns the string representation
  4424. func (s EnableStageTransitionInput) String() string {
  4425. return awsutil.Prettify(s)
  4426. }
  4427. // GoString returns the string representation
  4428. func (s EnableStageTransitionInput) GoString() string {
  4429. return s.String()
  4430. }
  4431. // Validate inspects the fields of the type to determine if they are valid.
  4432. func (s *EnableStageTransitionInput) Validate() error {
  4433. invalidParams := request.ErrInvalidParams{Context: "EnableStageTransitionInput"}
  4434. if s.PipelineName == nil {
  4435. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  4436. }
  4437. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  4438. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  4439. }
  4440. if s.StageName == nil {
  4441. invalidParams.Add(request.NewErrParamRequired("StageName"))
  4442. }
  4443. if s.StageName != nil && len(*s.StageName) < 1 {
  4444. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  4445. }
  4446. if s.TransitionType == nil {
  4447. invalidParams.Add(request.NewErrParamRequired("TransitionType"))
  4448. }
  4449. if invalidParams.Len() > 0 {
  4450. return invalidParams
  4451. }
  4452. return nil
  4453. }
  4454. // SetPipelineName sets the PipelineName field's value.
  4455. func (s *EnableStageTransitionInput) SetPipelineName(v string) *EnableStageTransitionInput {
  4456. s.PipelineName = &v
  4457. return s
  4458. }
  4459. // SetStageName sets the StageName field's value.
  4460. func (s *EnableStageTransitionInput) SetStageName(v string) *EnableStageTransitionInput {
  4461. s.StageName = &v
  4462. return s
  4463. }
  4464. // SetTransitionType sets the TransitionType field's value.
  4465. func (s *EnableStageTransitionInput) SetTransitionType(v string) *EnableStageTransitionInput {
  4466. s.TransitionType = &v
  4467. return s
  4468. }
  4469. type EnableStageTransitionOutput struct {
  4470. _ struct{} `type:"structure"`
  4471. }
  4472. // String returns the string representation
  4473. func (s EnableStageTransitionOutput) String() string {
  4474. return awsutil.Prettify(s)
  4475. }
  4476. // GoString returns the string representation
  4477. func (s EnableStageTransitionOutput) GoString() string {
  4478. return s.String()
  4479. }
  4480. // Represents information about the key used to encrypt data in the artifact
  4481. // store, such as an AWS Key Management Service (AWS KMS) key.
  4482. type EncryptionKey struct {
  4483. _ struct{} `type:"structure"`
  4484. // The ID used to identify the key. For an AWS KMS key, this is the key ID or
  4485. // key ARN.
  4486. //
  4487. // Id is a required field
  4488. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  4489. // The type of encryption key, such as an AWS Key Management Service (AWS KMS)
  4490. // key. When creating or updating a pipeline, the value must be set to 'KMS'.
  4491. //
  4492. // Type is a required field
  4493. Type *string `locationName:"type" type:"string" required:"true" enum:"EncryptionKeyType"`
  4494. }
  4495. // String returns the string representation
  4496. func (s EncryptionKey) String() string {
  4497. return awsutil.Prettify(s)
  4498. }
  4499. // GoString returns the string representation
  4500. func (s EncryptionKey) GoString() string {
  4501. return s.String()
  4502. }
  4503. // Validate inspects the fields of the type to determine if they are valid.
  4504. func (s *EncryptionKey) Validate() error {
  4505. invalidParams := request.ErrInvalidParams{Context: "EncryptionKey"}
  4506. if s.Id == nil {
  4507. invalidParams.Add(request.NewErrParamRequired("Id"))
  4508. }
  4509. if s.Id != nil && len(*s.Id) < 1 {
  4510. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  4511. }
  4512. if s.Type == nil {
  4513. invalidParams.Add(request.NewErrParamRequired("Type"))
  4514. }
  4515. if invalidParams.Len() > 0 {
  4516. return invalidParams
  4517. }
  4518. return nil
  4519. }
  4520. // SetId sets the Id field's value.
  4521. func (s *EncryptionKey) SetId(v string) *EncryptionKey {
  4522. s.Id = &v
  4523. return s
  4524. }
  4525. // SetType sets the Type field's value.
  4526. func (s *EncryptionKey) SetType(v string) *EncryptionKey {
  4527. s.Type = &v
  4528. return s
  4529. }
  4530. // Represents information about an error in AWS CodePipeline.
  4531. type ErrorDetails struct {
  4532. _ struct{} `type:"structure"`
  4533. // The system ID or error number code of the error.
  4534. Code *string `locationName:"code" type:"string"`
  4535. // The text of the error message.
  4536. Message *string `locationName:"message" min:"1" type:"string"`
  4537. }
  4538. // String returns the string representation
  4539. func (s ErrorDetails) String() string {
  4540. return awsutil.Prettify(s)
  4541. }
  4542. // GoString returns the string representation
  4543. func (s ErrorDetails) GoString() string {
  4544. return s.String()
  4545. }
  4546. // SetCode sets the Code field's value.
  4547. func (s *ErrorDetails) SetCode(v string) *ErrorDetails {
  4548. s.Code = &v
  4549. return s
  4550. }
  4551. // SetMessage sets the Message field's value.
  4552. func (s *ErrorDetails) SetMessage(v string) *ErrorDetails {
  4553. s.Message = &v
  4554. return s
  4555. }
  4556. // The details of the actions taken and results produced on an artifact as it
  4557. // passes through stages in the pipeline.
  4558. type ExecutionDetails struct {
  4559. _ struct{} `type:"structure"`
  4560. // The system-generated unique ID of this action used to identify this job worker
  4561. // in any external systems, such as AWS CodeDeploy.
  4562. ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
  4563. // The percentage of work completed on the action, represented on a scale of
  4564. // zero to one hundred percent.
  4565. PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
  4566. // The summary of the current status of the actions.
  4567. Summary *string `locationName:"summary" min:"1" type:"string"`
  4568. }
  4569. // String returns the string representation
  4570. func (s ExecutionDetails) String() string {
  4571. return awsutil.Prettify(s)
  4572. }
  4573. // GoString returns the string representation
  4574. func (s ExecutionDetails) GoString() string {
  4575. return s.String()
  4576. }
  4577. // Validate inspects the fields of the type to determine if they are valid.
  4578. func (s *ExecutionDetails) Validate() error {
  4579. invalidParams := request.ErrInvalidParams{Context: "ExecutionDetails"}
  4580. if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
  4581. invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
  4582. }
  4583. if s.Summary != nil && len(*s.Summary) < 1 {
  4584. invalidParams.Add(request.NewErrParamMinLen("Summary", 1))
  4585. }
  4586. if invalidParams.Len() > 0 {
  4587. return invalidParams
  4588. }
  4589. return nil
  4590. }
  4591. // SetExternalExecutionId sets the ExternalExecutionId field's value.
  4592. func (s *ExecutionDetails) SetExternalExecutionId(v string) *ExecutionDetails {
  4593. s.ExternalExecutionId = &v
  4594. return s
  4595. }
  4596. // SetPercentComplete sets the PercentComplete field's value.
  4597. func (s *ExecutionDetails) SetPercentComplete(v int64) *ExecutionDetails {
  4598. s.PercentComplete = &v
  4599. return s
  4600. }
  4601. // SetSummary sets the Summary field's value.
  4602. func (s *ExecutionDetails) SetSummary(v string) *ExecutionDetails {
  4603. s.Summary = &v
  4604. return s
  4605. }
  4606. // Represents information about failure details.
  4607. type FailureDetails struct {
  4608. _ struct{} `type:"structure"`
  4609. // The external ID of the run of the action that failed.
  4610. ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
  4611. // The message about the failure.
  4612. //
  4613. // Message is a required field
  4614. Message *string `locationName:"message" min:"1" type:"string" required:"true"`
  4615. // The type of the failure.
  4616. //
  4617. // Type is a required field
  4618. Type *string `locationName:"type" type:"string" required:"true" enum:"FailureType"`
  4619. }
  4620. // String returns the string representation
  4621. func (s FailureDetails) String() string {
  4622. return awsutil.Prettify(s)
  4623. }
  4624. // GoString returns the string representation
  4625. func (s FailureDetails) GoString() string {
  4626. return s.String()
  4627. }
  4628. // Validate inspects the fields of the type to determine if they are valid.
  4629. func (s *FailureDetails) Validate() error {
  4630. invalidParams := request.ErrInvalidParams{Context: "FailureDetails"}
  4631. if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
  4632. invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
  4633. }
  4634. if s.Message == nil {
  4635. invalidParams.Add(request.NewErrParamRequired("Message"))
  4636. }
  4637. if s.Message != nil && len(*s.Message) < 1 {
  4638. invalidParams.Add(request.NewErrParamMinLen("Message", 1))
  4639. }
  4640. if s.Type == nil {
  4641. invalidParams.Add(request.NewErrParamRequired("Type"))
  4642. }
  4643. if invalidParams.Len() > 0 {
  4644. return invalidParams
  4645. }
  4646. return nil
  4647. }
  4648. // SetExternalExecutionId sets the ExternalExecutionId field's value.
  4649. func (s *FailureDetails) SetExternalExecutionId(v string) *FailureDetails {
  4650. s.ExternalExecutionId = &v
  4651. return s
  4652. }
  4653. // SetMessage sets the Message field's value.
  4654. func (s *FailureDetails) SetMessage(v string) *FailureDetails {
  4655. s.Message = &v
  4656. return s
  4657. }
  4658. // SetType sets the Type field's value.
  4659. func (s *FailureDetails) SetType(v string) *FailureDetails {
  4660. s.Type = &v
  4661. return s
  4662. }
  4663. // Represents the input of a GetJobDetails action.
  4664. type GetJobDetailsInput struct {
  4665. _ struct{} `type:"structure"`
  4666. // The unique system-generated ID for the job.
  4667. //
  4668. // JobId is a required field
  4669. JobId *string `locationName:"jobId" type:"string" required:"true"`
  4670. }
  4671. // String returns the string representation
  4672. func (s GetJobDetailsInput) String() string {
  4673. return awsutil.Prettify(s)
  4674. }
  4675. // GoString returns the string representation
  4676. func (s GetJobDetailsInput) GoString() string {
  4677. return s.String()
  4678. }
  4679. // Validate inspects the fields of the type to determine if they are valid.
  4680. func (s *GetJobDetailsInput) Validate() error {
  4681. invalidParams := request.ErrInvalidParams{Context: "GetJobDetailsInput"}
  4682. if s.JobId == nil {
  4683. invalidParams.Add(request.NewErrParamRequired("JobId"))
  4684. }
  4685. if invalidParams.Len() > 0 {
  4686. return invalidParams
  4687. }
  4688. return nil
  4689. }
  4690. // SetJobId sets the JobId field's value.
  4691. func (s *GetJobDetailsInput) SetJobId(v string) *GetJobDetailsInput {
  4692. s.JobId = &v
  4693. return s
  4694. }
  4695. // Represents the output of a GetJobDetails action.
  4696. type GetJobDetailsOutput struct {
  4697. _ struct{} `type:"structure"`
  4698. // The details of the job.
  4699. //
  4700. // If AWSSessionCredentials is used, a long-running job can call GetJobDetails
  4701. // again to obtain new credentials.
  4702. JobDetails *JobDetails `locationName:"jobDetails" type:"structure"`
  4703. }
  4704. // String returns the string representation
  4705. func (s GetJobDetailsOutput) String() string {
  4706. return awsutil.Prettify(s)
  4707. }
  4708. // GoString returns the string representation
  4709. func (s GetJobDetailsOutput) GoString() string {
  4710. return s.String()
  4711. }
  4712. // SetJobDetails sets the JobDetails field's value.
  4713. func (s *GetJobDetailsOutput) SetJobDetails(v *JobDetails) *GetJobDetailsOutput {
  4714. s.JobDetails = v
  4715. return s
  4716. }
  4717. // Represents the input of a GetPipelineExecution action.
  4718. type GetPipelineExecutionInput struct {
  4719. _ struct{} `type:"structure"`
  4720. // The ID of the pipeline execution about which you want to get execution details.
  4721. //
  4722. // PipelineExecutionId is a required field
  4723. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
  4724. // The name of the pipeline about which you want to get execution details.
  4725. //
  4726. // PipelineName is a required field
  4727. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  4728. }
  4729. // String returns the string representation
  4730. func (s GetPipelineExecutionInput) String() string {
  4731. return awsutil.Prettify(s)
  4732. }
  4733. // GoString returns the string representation
  4734. func (s GetPipelineExecutionInput) GoString() string {
  4735. return s.String()
  4736. }
  4737. // Validate inspects the fields of the type to determine if they are valid.
  4738. func (s *GetPipelineExecutionInput) Validate() error {
  4739. invalidParams := request.ErrInvalidParams{Context: "GetPipelineExecutionInput"}
  4740. if s.PipelineExecutionId == nil {
  4741. invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
  4742. }
  4743. if s.PipelineName == nil {
  4744. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  4745. }
  4746. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  4747. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  4748. }
  4749. if invalidParams.Len() > 0 {
  4750. return invalidParams
  4751. }
  4752. return nil
  4753. }
  4754. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  4755. func (s *GetPipelineExecutionInput) SetPipelineExecutionId(v string) *GetPipelineExecutionInput {
  4756. s.PipelineExecutionId = &v
  4757. return s
  4758. }
  4759. // SetPipelineName sets the PipelineName field's value.
  4760. func (s *GetPipelineExecutionInput) SetPipelineName(v string) *GetPipelineExecutionInput {
  4761. s.PipelineName = &v
  4762. return s
  4763. }
  4764. // Represents the output of a GetPipelineExecution action.
  4765. type GetPipelineExecutionOutput struct {
  4766. _ struct{} `type:"structure"`
  4767. // Represents information about the execution of a pipeline.
  4768. PipelineExecution *PipelineExecution `locationName:"pipelineExecution" type:"structure"`
  4769. }
  4770. // String returns the string representation
  4771. func (s GetPipelineExecutionOutput) String() string {
  4772. return awsutil.Prettify(s)
  4773. }
  4774. // GoString returns the string representation
  4775. func (s GetPipelineExecutionOutput) GoString() string {
  4776. return s.String()
  4777. }
  4778. // SetPipelineExecution sets the PipelineExecution field's value.
  4779. func (s *GetPipelineExecutionOutput) SetPipelineExecution(v *PipelineExecution) *GetPipelineExecutionOutput {
  4780. s.PipelineExecution = v
  4781. return s
  4782. }
  4783. // Represents the input of a GetPipeline action.
  4784. type GetPipelineInput struct {
  4785. _ struct{} `type:"structure"`
  4786. // The name of the pipeline for which you want to get information. Pipeline
  4787. // names must be unique under an Amazon Web Services (AWS) user account.
  4788. //
  4789. // Name is a required field
  4790. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4791. // The version number of the pipeline. If you do not specify a version, defaults
  4792. // to the most current version.
  4793. Version *int64 `locationName:"version" min:"1" type:"integer"`
  4794. }
  4795. // String returns the string representation
  4796. func (s GetPipelineInput) String() string {
  4797. return awsutil.Prettify(s)
  4798. }
  4799. // GoString returns the string representation
  4800. func (s GetPipelineInput) GoString() string {
  4801. return s.String()
  4802. }
  4803. // Validate inspects the fields of the type to determine if they are valid.
  4804. func (s *GetPipelineInput) Validate() error {
  4805. invalidParams := request.ErrInvalidParams{Context: "GetPipelineInput"}
  4806. if s.Name == nil {
  4807. invalidParams.Add(request.NewErrParamRequired("Name"))
  4808. }
  4809. if s.Name != nil && len(*s.Name) < 1 {
  4810. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4811. }
  4812. if s.Version != nil && *s.Version < 1 {
  4813. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  4814. }
  4815. if invalidParams.Len() > 0 {
  4816. return invalidParams
  4817. }
  4818. return nil
  4819. }
  4820. // SetName sets the Name field's value.
  4821. func (s *GetPipelineInput) SetName(v string) *GetPipelineInput {
  4822. s.Name = &v
  4823. return s
  4824. }
  4825. // SetVersion sets the Version field's value.
  4826. func (s *GetPipelineInput) SetVersion(v int64) *GetPipelineInput {
  4827. s.Version = &v
  4828. return s
  4829. }
  4830. // Represents the output of a GetPipeline action.
  4831. type GetPipelineOutput struct {
  4832. _ struct{} `type:"structure"`
  4833. // Represents the pipeline metadata information returned as part of the output
  4834. // of a GetPipeline action.
  4835. Metadata *PipelineMetadata `locationName:"metadata" type:"structure"`
  4836. // Represents the structure of actions and stages to be performed in the pipeline.
  4837. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  4838. }
  4839. // String returns the string representation
  4840. func (s GetPipelineOutput) String() string {
  4841. return awsutil.Prettify(s)
  4842. }
  4843. // GoString returns the string representation
  4844. func (s GetPipelineOutput) GoString() string {
  4845. return s.String()
  4846. }
  4847. // SetMetadata sets the Metadata field's value.
  4848. func (s *GetPipelineOutput) SetMetadata(v *PipelineMetadata) *GetPipelineOutput {
  4849. s.Metadata = v
  4850. return s
  4851. }
  4852. // SetPipeline sets the Pipeline field's value.
  4853. func (s *GetPipelineOutput) SetPipeline(v *PipelineDeclaration) *GetPipelineOutput {
  4854. s.Pipeline = v
  4855. return s
  4856. }
  4857. // Represents the input of a GetPipelineState action.
  4858. type GetPipelineStateInput struct {
  4859. _ struct{} `type:"structure"`
  4860. // The name of the pipeline about which you want to get information.
  4861. //
  4862. // Name is a required field
  4863. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4864. }
  4865. // String returns the string representation
  4866. func (s GetPipelineStateInput) String() string {
  4867. return awsutil.Prettify(s)
  4868. }
  4869. // GoString returns the string representation
  4870. func (s GetPipelineStateInput) GoString() string {
  4871. return s.String()
  4872. }
  4873. // Validate inspects the fields of the type to determine if they are valid.
  4874. func (s *GetPipelineStateInput) Validate() error {
  4875. invalidParams := request.ErrInvalidParams{Context: "GetPipelineStateInput"}
  4876. if s.Name == nil {
  4877. invalidParams.Add(request.NewErrParamRequired("Name"))
  4878. }
  4879. if s.Name != nil && len(*s.Name) < 1 {
  4880. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4881. }
  4882. if invalidParams.Len() > 0 {
  4883. return invalidParams
  4884. }
  4885. return nil
  4886. }
  4887. // SetName sets the Name field's value.
  4888. func (s *GetPipelineStateInput) SetName(v string) *GetPipelineStateInput {
  4889. s.Name = &v
  4890. return s
  4891. }
  4892. // Represents the output of a GetPipelineState action.
  4893. type GetPipelineStateOutput struct {
  4894. _ struct{} `type:"structure"`
  4895. // The date and time the pipeline was created, in timestamp format.
  4896. Created *time.Time `locationName:"created" type:"timestamp"`
  4897. // The name of the pipeline for which you want to get the state.
  4898. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  4899. // The version number of the pipeline.
  4900. //
  4901. // A newly-created pipeline is always assigned a version number of 1.
  4902. PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
  4903. // A list of the pipeline stage output information, including stage name, state,
  4904. // most recent run details, whether the stage is disabled, and other data.
  4905. StageStates []*StageState `locationName:"stageStates" type:"list"`
  4906. // The date and time the pipeline was last updated, in timestamp format.
  4907. Updated *time.Time `locationName:"updated" type:"timestamp"`
  4908. }
  4909. // String returns the string representation
  4910. func (s GetPipelineStateOutput) String() string {
  4911. return awsutil.Prettify(s)
  4912. }
  4913. // GoString returns the string representation
  4914. func (s GetPipelineStateOutput) GoString() string {
  4915. return s.String()
  4916. }
  4917. // SetCreated sets the Created field's value.
  4918. func (s *GetPipelineStateOutput) SetCreated(v time.Time) *GetPipelineStateOutput {
  4919. s.Created = &v
  4920. return s
  4921. }
  4922. // SetPipelineName sets the PipelineName field's value.
  4923. func (s *GetPipelineStateOutput) SetPipelineName(v string) *GetPipelineStateOutput {
  4924. s.PipelineName = &v
  4925. return s
  4926. }
  4927. // SetPipelineVersion sets the PipelineVersion field's value.
  4928. func (s *GetPipelineStateOutput) SetPipelineVersion(v int64) *GetPipelineStateOutput {
  4929. s.PipelineVersion = &v
  4930. return s
  4931. }
  4932. // SetStageStates sets the StageStates field's value.
  4933. func (s *GetPipelineStateOutput) SetStageStates(v []*StageState) *GetPipelineStateOutput {
  4934. s.StageStates = v
  4935. return s
  4936. }
  4937. // SetUpdated sets the Updated field's value.
  4938. func (s *GetPipelineStateOutput) SetUpdated(v time.Time) *GetPipelineStateOutput {
  4939. s.Updated = &v
  4940. return s
  4941. }
  4942. // Represents the input of a GetThirdPartyJobDetails action.
  4943. type GetThirdPartyJobDetailsInput struct {
  4944. _ struct{} `type:"structure"`
  4945. // The clientToken portion of the clientId and clientToken pair used to verify
  4946. // that the calling entity is allowed access to the job and its details.
  4947. //
  4948. // ClientToken is a required field
  4949. ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
  4950. // The unique system-generated ID used for identifying the job.
  4951. //
  4952. // JobId is a required field
  4953. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  4954. }
  4955. // String returns the string representation
  4956. func (s GetThirdPartyJobDetailsInput) String() string {
  4957. return awsutil.Prettify(s)
  4958. }
  4959. // GoString returns the string representation
  4960. func (s GetThirdPartyJobDetailsInput) GoString() string {
  4961. return s.String()
  4962. }
  4963. // Validate inspects the fields of the type to determine if they are valid.
  4964. func (s *GetThirdPartyJobDetailsInput) Validate() error {
  4965. invalidParams := request.ErrInvalidParams{Context: "GetThirdPartyJobDetailsInput"}
  4966. if s.ClientToken == nil {
  4967. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  4968. }
  4969. if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  4970. invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  4971. }
  4972. if s.JobId == nil {
  4973. invalidParams.Add(request.NewErrParamRequired("JobId"))
  4974. }
  4975. if s.JobId != nil && len(*s.JobId) < 1 {
  4976. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  4977. }
  4978. if invalidParams.Len() > 0 {
  4979. return invalidParams
  4980. }
  4981. return nil
  4982. }
  4983. // SetClientToken sets the ClientToken field's value.
  4984. func (s *GetThirdPartyJobDetailsInput) SetClientToken(v string) *GetThirdPartyJobDetailsInput {
  4985. s.ClientToken = &v
  4986. return s
  4987. }
  4988. // SetJobId sets the JobId field's value.
  4989. func (s *GetThirdPartyJobDetailsInput) SetJobId(v string) *GetThirdPartyJobDetailsInput {
  4990. s.JobId = &v
  4991. return s
  4992. }
  4993. // Represents the output of a GetThirdPartyJobDetails action.
  4994. type GetThirdPartyJobDetailsOutput struct {
  4995. _ struct{} `type:"structure"`
  4996. // The details of the job, including any protected values defined for the job.
  4997. JobDetails *ThirdPartyJobDetails `locationName:"jobDetails" type:"structure"`
  4998. }
  4999. // String returns the string representation
  5000. func (s GetThirdPartyJobDetailsOutput) String() string {
  5001. return awsutil.Prettify(s)
  5002. }
  5003. // GoString returns the string representation
  5004. func (s GetThirdPartyJobDetailsOutput) GoString() string {
  5005. return s.String()
  5006. }
  5007. // SetJobDetails sets the JobDetails field's value.
  5008. func (s *GetThirdPartyJobDetailsOutput) SetJobDetails(v *ThirdPartyJobDetails) *GetThirdPartyJobDetailsOutput {
  5009. s.JobDetails = v
  5010. return s
  5011. }
  5012. // Represents information about an artifact to be worked on, such as a test
  5013. // or build artifact.
  5014. type InputArtifact struct {
  5015. _ struct{} `type:"structure"`
  5016. // The name of the artifact to be worked on, for example, "My App".
  5017. //
  5018. // The input artifact of an action must exactly match the output artifact declared
  5019. // in a preceding action, but the input artifact does not have to be the next
  5020. // action in strict sequence from the action that provided the output artifact.
  5021. // Actions in parallel can declare different output artifacts, which are in
  5022. // turn consumed by different following actions.
  5023. //
  5024. // Name is a required field
  5025. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5026. }
  5027. // String returns the string representation
  5028. func (s InputArtifact) String() string {
  5029. return awsutil.Prettify(s)
  5030. }
  5031. // GoString returns the string representation
  5032. func (s InputArtifact) GoString() string {
  5033. return s.String()
  5034. }
  5035. // Validate inspects the fields of the type to determine if they are valid.
  5036. func (s *InputArtifact) Validate() error {
  5037. invalidParams := request.ErrInvalidParams{Context: "InputArtifact"}
  5038. if s.Name == nil {
  5039. invalidParams.Add(request.NewErrParamRequired("Name"))
  5040. }
  5041. if s.Name != nil && len(*s.Name) < 1 {
  5042. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5043. }
  5044. if invalidParams.Len() > 0 {
  5045. return invalidParams
  5046. }
  5047. return nil
  5048. }
  5049. // SetName sets the Name field's value.
  5050. func (s *InputArtifact) SetName(v string) *InputArtifact {
  5051. s.Name = &v
  5052. return s
  5053. }
  5054. // Represents information about a job.
  5055. type Job struct {
  5056. _ struct{} `type:"structure"`
  5057. // The ID of the AWS account to use when performing the job.
  5058. AccountId *string `locationName:"accountId" type:"string"`
  5059. // Additional data about a job.
  5060. Data *JobData `locationName:"data" type:"structure"`
  5061. // The unique system-generated ID of the job.
  5062. Id *string `locationName:"id" type:"string"`
  5063. // A system-generated random number that AWS CodePipeline uses to ensure that
  5064. // the job is being worked on by only one job worker. Use this number in an
  5065. // AcknowledgeJob request.
  5066. Nonce *string `locationName:"nonce" min:"1" type:"string"`
  5067. }
  5068. // String returns the string representation
  5069. func (s Job) String() string {
  5070. return awsutil.Prettify(s)
  5071. }
  5072. // GoString returns the string representation
  5073. func (s Job) GoString() string {
  5074. return s.String()
  5075. }
  5076. // SetAccountId sets the AccountId field's value.
  5077. func (s *Job) SetAccountId(v string) *Job {
  5078. s.AccountId = &v
  5079. return s
  5080. }
  5081. // SetData sets the Data field's value.
  5082. func (s *Job) SetData(v *JobData) *Job {
  5083. s.Data = v
  5084. return s
  5085. }
  5086. // SetId sets the Id field's value.
  5087. func (s *Job) SetId(v string) *Job {
  5088. s.Id = &v
  5089. return s
  5090. }
  5091. // SetNonce sets the Nonce field's value.
  5092. func (s *Job) SetNonce(v string) *Job {
  5093. s.Nonce = &v
  5094. return s
  5095. }
  5096. // Represents additional information about a job required for a job worker to
  5097. // complete the job.
  5098. type JobData struct {
  5099. _ struct{} `type:"structure"`
  5100. // Represents information about an action configuration.
  5101. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
  5102. // Represents information about an action type.
  5103. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
  5104. // Represents an AWS session credentials object. These credentials are temporary
  5105. // credentials that are issued by AWS Secure Token Service (STS). They can be
  5106. // used to access input and output artifacts in the Amazon S3 bucket used to
  5107. // store artifact for the pipeline in AWS CodePipeline.
  5108. ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"`
  5109. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  5110. // job requires in order to continue the job asynchronously.
  5111. ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
  5112. // Represents information about the key used to encrypt data in the artifact
  5113. // store, such as an AWS Key Management Service (AWS KMS) key.
  5114. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  5115. // The artifact supplied to the job.
  5116. InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
  5117. // The output of the job.
  5118. OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
  5119. // Represents information about a pipeline to a job worker.
  5120. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
  5121. }
  5122. // String returns the string representation
  5123. func (s JobData) String() string {
  5124. return awsutil.Prettify(s)
  5125. }
  5126. // GoString returns the string representation
  5127. func (s JobData) GoString() string {
  5128. return s.String()
  5129. }
  5130. // SetActionConfiguration sets the ActionConfiguration field's value.
  5131. func (s *JobData) SetActionConfiguration(v *ActionConfiguration) *JobData {
  5132. s.ActionConfiguration = v
  5133. return s
  5134. }
  5135. // SetActionTypeId sets the ActionTypeId field's value.
  5136. func (s *JobData) SetActionTypeId(v *ActionTypeId) *JobData {
  5137. s.ActionTypeId = v
  5138. return s
  5139. }
  5140. // SetArtifactCredentials sets the ArtifactCredentials field's value.
  5141. func (s *JobData) SetArtifactCredentials(v *AWSSessionCredentials) *JobData {
  5142. s.ArtifactCredentials = v
  5143. return s
  5144. }
  5145. // SetContinuationToken sets the ContinuationToken field's value.
  5146. func (s *JobData) SetContinuationToken(v string) *JobData {
  5147. s.ContinuationToken = &v
  5148. return s
  5149. }
  5150. // SetEncryptionKey sets the EncryptionKey field's value.
  5151. func (s *JobData) SetEncryptionKey(v *EncryptionKey) *JobData {
  5152. s.EncryptionKey = v
  5153. return s
  5154. }
  5155. // SetInputArtifacts sets the InputArtifacts field's value.
  5156. func (s *JobData) SetInputArtifacts(v []*Artifact) *JobData {
  5157. s.InputArtifacts = v
  5158. return s
  5159. }
  5160. // SetOutputArtifacts sets the OutputArtifacts field's value.
  5161. func (s *JobData) SetOutputArtifacts(v []*Artifact) *JobData {
  5162. s.OutputArtifacts = v
  5163. return s
  5164. }
  5165. // SetPipelineContext sets the PipelineContext field's value.
  5166. func (s *JobData) SetPipelineContext(v *PipelineContext) *JobData {
  5167. s.PipelineContext = v
  5168. return s
  5169. }
  5170. // Represents information about the details of a job.
  5171. type JobDetails struct {
  5172. _ struct{} `type:"structure"`
  5173. // The AWS account ID associated with the job.
  5174. AccountId *string `locationName:"accountId" type:"string"`
  5175. // Represents additional information about a job required for a job worker to
  5176. // complete the job.
  5177. Data *JobData `locationName:"data" type:"structure"`
  5178. // The unique system-generated ID of the job.
  5179. Id *string `locationName:"id" type:"string"`
  5180. }
  5181. // String returns the string representation
  5182. func (s JobDetails) String() string {
  5183. return awsutil.Prettify(s)
  5184. }
  5185. // GoString returns the string representation
  5186. func (s JobDetails) GoString() string {
  5187. return s.String()
  5188. }
  5189. // SetAccountId sets the AccountId field's value.
  5190. func (s *JobDetails) SetAccountId(v string) *JobDetails {
  5191. s.AccountId = &v
  5192. return s
  5193. }
  5194. // SetData sets the Data field's value.
  5195. func (s *JobDetails) SetData(v *JobData) *JobDetails {
  5196. s.Data = v
  5197. return s
  5198. }
  5199. // SetId sets the Id field's value.
  5200. func (s *JobDetails) SetId(v string) *JobDetails {
  5201. s.Id = &v
  5202. return s
  5203. }
  5204. // Represents the input of a ListActionTypes action.
  5205. type ListActionTypesInput struct {
  5206. _ struct{} `type:"structure"`
  5207. // Filters the list of action types to those created by a specified entity.
  5208. ActionOwnerFilter *string `locationName:"actionOwnerFilter" type:"string" enum:"ActionOwner"`
  5209. // An identifier that was returned from the previous list action types call,
  5210. // which can be used to return the next set of action types in the list.
  5211. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  5212. }
  5213. // String returns the string representation
  5214. func (s ListActionTypesInput) String() string {
  5215. return awsutil.Prettify(s)
  5216. }
  5217. // GoString returns the string representation
  5218. func (s ListActionTypesInput) GoString() string {
  5219. return s.String()
  5220. }
  5221. // Validate inspects the fields of the type to determine if they are valid.
  5222. func (s *ListActionTypesInput) Validate() error {
  5223. invalidParams := request.ErrInvalidParams{Context: "ListActionTypesInput"}
  5224. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5225. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5226. }
  5227. if invalidParams.Len() > 0 {
  5228. return invalidParams
  5229. }
  5230. return nil
  5231. }
  5232. // SetActionOwnerFilter sets the ActionOwnerFilter field's value.
  5233. func (s *ListActionTypesInput) SetActionOwnerFilter(v string) *ListActionTypesInput {
  5234. s.ActionOwnerFilter = &v
  5235. return s
  5236. }
  5237. // SetNextToken sets the NextToken field's value.
  5238. func (s *ListActionTypesInput) SetNextToken(v string) *ListActionTypesInput {
  5239. s.NextToken = &v
  5240. return s
  5241. }
  5242. // Represents the output of a ListActionTypes action.
  5243. type ListActionTypesOutput struct {
  5244. _ struct{} `type:"structure"`
  5245. // Provides details of the action types.
  5246. //
  5247. // ActionTypes is a required field
  5248. ActionTypes []*ActionType `locationName:"actionTypes" type:"list" required:"true"`
  5249. // If the amount of returned information is significantly large, an identifier
  5250. // is also returned which can be used in a subsequent list action types call
  5251. // to return the next set of action types in the list.
  5252. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  5253. }
  5254. // String returns the string representation
  5255. func (s ListActionTypesOutput) String() string {
  5256. return awsutil.Prettify(s)
  5257. }
  5258. // GoString returns the string representation
  5259. func (s ListActionTypesOutput) GoString() string {
  5260. return s.String()
  5261. }
  5262. // SetActionTypes sets the ActionTypes field's value.
  5263. func (s *ListActionTypesOutput) SetActionTypes(v []*ActionType) *ListActionTypesOutput {
  5264. s.ActionTypes = v
  5265. return s
  5266. }
  5267. // SetNextToken sets the NextToken field's value.
  5268. func (s *ListActionTypesOutput) SetNextToken(v string) *ListActionTypesOutput {
  5269. s.NextToken = &v
  5270. return s
  5271. }
  5272. // Represents the input of a ListPipelineExecutions action.
  5273. type ListPipelineExecutionsInput struct {
  5274. _ struct{} `type:"structure"`
  5275. // The maximum number of results to return in a single call. To retrieve the
  5276. // remaining results, make another call with the returned nextToken value. The
  5277. // available pipeline execution history is limited to the most recent 12 months,
  5278. // based on pipeline execution start times. Default value is 100.
  5279. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  5280. // The token that was returned from the previous ListPipelineExecutions call,
  5281. // which can be used to return the next set of pipeline executions in the list.
  5282. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  5283. // The name of the pipeline for which you want to get execution summary information.
  5284. //
  5285. // PipelineName is a required field
  5286. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  5287. }
  5288. // String returns the string representation
  5289. func (s ListPipelineExecutionsInput) String() string {
  5290. return awsutil.Prettify(s)
  5291. }
  5292. // GoString returns the string representation
  5293. func (s ListPipelineExecutionsInput) GoString() string {
  5294. return s.String()
  5295. }
  5296. // Validate inspects the fields of the type to determine if they are valid.
  5297. func (s *ListPipelineExecutionsInput) Validate() error {
  5298. invalidParams := request.ErrInvalidParams{Context: "ListPipelineExecutionsInput"}
  5299. if s.MaxResults != nil && *s.MaxResults < 1 {
  5300. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5301. }
  5302. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5303. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5304. }
  5305. if s.PipelineName == nil {
  5306. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  5307. }
  5308. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  5309. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  5310. }
  5311. if invalidParams.Len() > 0 {
  5312. return invalidParams
  5313. }
  5314. return nil
  5315. }
  5316. // SetMaxResults sets the MaxResults field's value.
  5317. func (s *ListPipelineExecutionsInput) SetMaxResults(v int64) *ListPipelineExecutionsInput {
  5318. s.MaxResults = &v
  5319. return s
  5320. }
  5321. // SetNextToken sets the NextToken field's value.
  5322. func (s *ListPipelineExecutionsInput) SetNextToken(v string) *ListPipelineExecutionsInput {
  5323. s.NextToken = &v
  5324. return s
  5325. }
  5326. // SetPipelineName sets the PipelineName field's value.
  5327. func (s *ListPipelineExecutionsInput) SetPipelineName(v string) *ListPipelineExecutionsInput {
  5328. s.PipelineName = &v
  5329. return s
  5330. }
  5331. // Represents the output of a ListPipelineExecutions action.
  5332. type ListPipelineExecutionsOutput struct {
  5333. _ struct{} `type:"structure"`
  5334. // A token that can be used in the next ListPipelineExecutions call. To view
  5335. // all items in the list, continue to call this operation with each subsequent
  5336. // token until no more nextToken values are returned.
  5337. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  5338. // A list of executions in the history of a pipeline.
  5339. PipelineExecutionSummaries []*PipelineExecutionSummary `locationName:"pipelineExecutionSummaries" type:"list"`
  5340. }
  5341. // String returns the string representation
  5342. func (s ListPipelineExecutionsOutput) String() string {
  5343. return awsutil.Prettify(s)
  5344. }
  5345. // GoString returns the string representation
  5346. func (s ListPipelineExecutionsOutput) GoString() string {
  5347. return s.String()
  5348. }
  5349. // SetNextToken sets the NextToken field's value.
  5350. func (s *ListPipelineExecutionsOutput) SetNextToken(v string) *ListPipelineExecutionsOutput {
  5351. s.NextToken = &v
  5352. return s
  5353. }
  5354. // SetPipelineExecutionSummaries sets the PipelineExecutionSummaries field's value.
  5355. func (s *ListPipelineExecutionsOutput) SetPipelineExecutionSummaries(v []*PipelineExecutionSummary) *ListPipelineExecutionsOutput {
  5356. s.PipelineExecutionSummaries = v
  5357. return s
  5358. }
  5359. // Represents the input of a ListPipelines action.
  5360. type ListPipelinesInput struct {
  5361. _ struct{} `type:"structure"`
  5362. // An identifier that was returned from the previous list pipelines call, which
  5363. // can be used to return the next set of pipelines in the list.
  5364. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  5365. }
  5366. // String returns the string representation
  5367. func (s ListPipelinesInput) String() string {
  5368. return awsutil.Prettify(s)
  5369. }
  5370. // GoString returns the string representation
  5371. func (s ListPipelinesInput) GoString() string {
  5372. return s.String()
  5373. }
  5374. // Validate inspects the fields of the type to determine if they are valid.
  5375. func (s *ListPipelinesInput) Validate() error {
  5376. invalidParams := request.ErrInvalidParams{Context: "ListPipelinesInput"}
  5377. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5378. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5379. }
  5380. if invalidParams.Len() > 0 {
  5381. return invalidParams
  5382. }
  5383. return nil
  5384. }
  5385. // SetNextToken sets the NextToken field's value.
  5386. func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput {
  5387. s.NextToken = &v
  5388. return s
  5389. }
  5390. // Represents the output of a ListPipelines action.
  5391. type ListPipelinesOutput struct {
  5392. _ struct{} `type:"structure"`
  5393. // If the amount of returned information is significantly large, an identifier
  5394. // is also returned which can be used in a subsequent list pipelines call to
  5395. // return the next set of pipelines in the list.
  5396. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  5397. // The list of pipelines.
  5398. Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"`
  5399. }
  5400. // String returns the string representation
  5401. func (s ListPipelinesOutput) String() string {
  5402. return awsutil.Prettify(s)
  5403. }
  5404. // GoString returns the string representation
  5405. func (s ListPipelinesOutput) GoString() string {
  5406. return s.String()
  5407. }
  5408. // SetNextToken sets the NextToken field's value.
  5409. func (s *ListPipelinesOutput) SetNextToken(v string) *ListPipelinesOutput {
  5410. s.NextToken = &v
  5411. return s
  5412. }
  5413. // SetPipelines sets the Pipelines field's value.
  5414. func (s *ListPipelinesOutput) SetPipelines(v []*PipelineSummary) *ListPipelinesOutput {
  5415. s.Pipelines = v
  5416. return s
  5417. }
  5418. // The detail returned for each webhook after listing webhooks, such as the
  5419. // webhook URL, the webhook name, and the webhook ARN.
  5420. type ListWebhookItem struct {
  5421. _ struct{} `type:"structure"`
  5422. // The Amazon Resource Name (ARN) of the webhook.
  5423. Arn *string `locationName:"arn" type:"string"`
  5424. // The detail returned for each webhook, such as the webhook authentication
  5425. // type and filter rules.
  5426. //
  5427. // Definition is a required field
  5428. Definition *WebhookDefinition `locationName:"definition" type:"structure" required:"true"`
  5429. // The number code of the error.
  5430. ErrorCode *string `locationName:"errorCode" type:"string"`
  5431. // The text of the error message about the webhook.
  5432. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  5433. // The date and time a webhook was last successfully triggered, in timestamp
  5434. // format.
  5435. LastTriggered *time.Time `locationName:"lastTriggered" type:"timestamp"`
  5436. // A unique URL generated by CodePipeline. When a POST request is made to this
  5437. // URL, the defined pipeline is started as long as the body of the post request
  5438. // satisfies the defined authentication and filtering conditions. Deleting and
  5439. // re-creating a webhook will make the old URL invalid and generate a new URL.
  5440. //
  5441. // Url is a required field
  5442. Url *string `locationName:"url" min:"1" type:"string" required:"true"`
  5443. }
  5444. // String returns the string representation
  5445. func (s ListWebhookItem) String() string {
  5446. return awsutil.Prettify(s)
  5447. }
  5448. // GoString returns the string representation
  5449. func (s ListWebhookItem) GoString() string {
  5450. return s.String()
  5451. }
  5452. // SetArn sets the Arn field's value.
  5453. func (s *ListWebhookItem) SetArn(v string) *ListWebhookItem {
  5454. s.Arn = &v
  5455. return s
  5456. }
  5457. // SetDefinition sets the Definition field's value.
  5458. func (s *ListWebhookItem) SetDefinition(v *WebhookDefinition) *ListWebhookItem {
  5459. s.Definition = v
  5460. return s
  5461. }
  5462. // SetErrorCode sets the ErrorCode field's value.
  5463. func (s *ListWebhookItem) SetErrorCode(v string) *ListWebhookItem {
  5464. s.ErrorCode = &v
  5465. return s
  5466. }
  5467. // SetErrorMessage sets the ErrorMessage field's value.
  5468. func (s *ListWebhookItem) SetErrorMessage(v string) *ListWebhookItem {
  5469. s.ErrorMessage = &v
  5470. return s
  5471. }
  5472. // SetLastTriggered sets the LastTriggered field's value.
  5473. func (s *ListWebhookItem) SetLastTriggered(v time.Time) *ListWebhookItem {
  5474. s.LastTriggered = &v
  5475. return s
  5476. }
  5477. // SetUrl sets the Url field's value.
  5478. func (s *ListWebhookItem) SetUrl(v string) *ListWebhookItem {
  5479. s.Url = &v
  5480. return s
  5481. }
  5482. type ListWebhooksInput struct {
  5483. _ struct{} `type:"structure"`
  5484. // The maximum number of results to return in a single call. To retrieve the
  5485. // remaining results, make another call with the returned nextToken value.
  5486. MaxResults *int64 `min:"1" type:"integer"`
  5487. // The token that was returned from the previous ListWebhooks call, which can
  5488. // be used to return the next set of webhooks in the list.
  5489. NextToken *string `min:"1" type:"string"`
  5490. }
  5491. // String returns the string representation
  5492. func (s ListWebhooksInput) String() string {
  5493. return awsutil.Prettify(s)
  5494. }
  5495. // GoString returns the string representation
  5496. func (s ListWebhooksInput) GoString() string {
  5497. return s.String()
  5498. }
  5499. // Validate inspects the fields of the type to determine if they are valid.
  5500. func (s *ListWebhooksInput) Validate() error {
  5501. invalidParams := request.ErrInvalidParams{Context: "ListWebhooksInput"}
  5502. if s.MaxResults != nil && *s.MaxResults < 1 {
  5503. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5504. }
  5505. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5506. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5507. }
  5508. if invalidParams.Len() > 0 {
  5509. return invalidParams
  5510. }
  5511. return nil
  5512. }
  5513. // SetMaxResults sets the MaxResults field's value.
  5514. func (s *ListWebhooksInput) SetMaxResults(v int64) *ListWebhooksInput {
  5515. s.MaxResults = &v
  5516. return s
  5517. }
  5518. // SetNextToken sets the NextToken field's value.
  5519. func (s *ListWebhooksInput) SetNextToken(v string) *ListWebhooksInput {
  5520. s.NextToken = &v
  5521. return s
  5522. }
  5523. type ListWebhooksOutput struct {
  5524. _ struct{} `type:"structure"`
  5525. // If the amount of returned information is significantly large, an identifier
  5526. // is also returned and can be used in a subsequent ListWebhooks call to return
  5527. // the next set of webhooks in the list.
  5528. NextToken *string `min:"1" type:"string"`
  5529. // The JSON detail returned for each webhook in the list output for the ListWebhooks
  5530. // call.
  5531. Webhooks []*ListWebhookItem `locationName:"webhooks" type:"list"`
  5532. }
  5533. // String returns the string representation
  5534. func (s ListWebhooksOutput) String() string {
  5535. return awsutil.Prettify(s)
  5536. }
  5537. // GoString returns the string representation
  5538. func (s ListWebhooksOutput) GoString() string {
  5539. return s.String()
  5540. }
  5541. // SetNextToken sets the NextToken field's value.
  5542. func (s *ListWebhooksOutput) SetNextToken(v string) *ListWebhooksOutput {
  5543. s.NextToken = &v
  5544. return s
  5545. }
  5546. // SetWebhooks sets the Webhooks field's value.
  5547. func (s *ListWebhooksOutput) SetWebhooks(v []*ListWebhookItem) *ListWebhooksOutput {
  5548. s.Webhooks = v
  5549. return s
  5550. }
  5551. // Represents information about the output of an action.
  5552. type OutputArtifact struct {
  5553. _ struct{} `type:"structure"`
  5554. // The name of the output of an artifact, such as "My App".
  5555. //
  5556. // The input artifact of an action must exactly match the output artifact declared
  5557. // in a preceding action, but the input artifact does not have to be the next
  5558. // action in strict sequence from the action that provided the output artifact.
  5559. // Actions in parallel can declare different output artifacts, which are in
  5560. // turn consumed by different following actions.
  5561. //
  5562. // Output artifact names must be unique within a pipeline.
  5563. //
  5564. // Name is a required field
  5565. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5566. }
  5567. // String returns the string representation
  5568. func (s OutputArtifact) String() string {
  5569. return awsutil.Prettify(s)
  5570. }
  5571. // GoString returns the string representation
  5572. func (s OutputArtifact) GoString() string {
  5573. return s.String()
  5574. }
  5575. // Validate inspects the fields of the type to determine if they are valid.
  5576. func (s *OutputArtifact) Validate() error {
  5577. invalidParams := request.ErrInvalidParams{Context: "OutputArtifact"}
  5578. if s.Name == nil {
  5579. invalidParams.Add(request.NewErrParamRequired("Name"))
  5580. }
  5581. if s.Name != nil && len(*s.Name) < 1 {
  5582. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5583. }
  5584. if invalidParams.Len() > 0 {
  5585. return invalidParams
  5586. }
  5587. return nil
  5588. }
  5589. // SetName sets the Name field's value.
  5590. func (s *OutputArtifact) SetName(v string) *OutputArtifact {
  5591. s.Name = &v
  5592. return s
  5593. }
  5594. // Represents information about a pipeline to a job worker.
  5595. type PipelineContext struct {
  5596. _ struct{} `type:"structure"`
  5597. // The context of an action to a job worker within the stage of a pipeline.
  5598. Action *ActionContext `locationName:"action" type:"structure"`
  5599. // The name of the pipeline. This is a user-specified value. Pipeline names
  5600. // must be unique across all pipeline names under an Amazon Web Services account.
  5601. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  5602. // The stage of the pipeline.
  5603. Stage *StageContext `locationName:"stage" type:"structure"`
  5604. }
  5605. // String returns the string representation
  5606. func (s PipelineContext) String() string {
  5607. return awsutil.Prettify(s)
  5608. }
  5609. // GoString returns the string representation
  5610. func (s PipelineContext) GoString() string {
  5611. return s.String()
  5612. }
  5613. // SetAction sets the Action field's value.
  5614. func (s *PipelineContext) SetAction(v *ActionContext) *PipelineContext {
  5615. s.Action = v
  5616. return s
  5617. }
  5618. // SetPipelineName sets the PipelineName field's value.
  5619. func (s *PipelineContext) SetPipelineName(v string) *PipelineContext {
  5620. s.PipelineName = &v
  5621. return s
  5622. }
  5623. // SetStage sets the Stage field's value.
  5624. func (s *PipelineContext) SetStage(v *StageContext) *PipelineContext {
  5625. s.Stage = v
  5626. return s
  5627. }
  5628. // Represents the structure of actions and stages to be performed in the pipeline.
  5629. type PipelineDeclaration struct {
  5630. _ struct{} `type:"structure"`
  5631. // Represents information about the Amazon S3 bucket where artifacts are stored
  5632. // for the pipeline.
  5633. ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure"`
  5634. // A mapping of artifactStore objects and their corresponding regions. There
  5635. // must be an artifact store for the pipeline region and for each cross-region
  5636. // action within the pipeline. You can only use either artifactStore or artifactStores,
  5637. // not both.
  5638. //
  5639. // If you create a cross-region action in your pipeline, you must use artifactStores.
  5640. ArtifactStores map[string]*ArtifactStore `locationName:"artifactStores" type:"map"`
  5641. // The name of the action to be performed.
  5642. //
  5643. // Name is a required field
  5644. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  5645. // The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform
  5646. // actions with no actionRoleArn, or to use to assume roles for actions with
  5647. // an actionRoleArn.
  5648. //
  5649. // RoleArn is a required field
  5650. RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
  5651. // The stage in which to perform the action.
  5652. //
  5653. // Stages is a required field
  5654. Stages []*StageDeclaration `locationName:"stages" type:"list" required:"true"`
  5655. // The version number of the pipeline. A new pipeline always has a version number
  5656. // of 1. This number is automatically incremented when a pipeline is updated.
  5657. Version *int64 `locationName:"version" min:"1" type:"integer"`
  5658. }
  5659. // String returns the string representation
  5660. func (s PipelineDeclaration) String() string {
  5661. return awsutil.Prettify(s)
  5662. }
  5663. // GoString returns the string representation
  5664. func (s PipelineDeclaration) GoString() string {
  5665. return s.String()
  5666. }
  5667. // Validate inspects the fields of the type to determine if they are valid.
  5668. func (s *PipelineDeclaration) Validate() error {
  5669. invalidParams := request.ErrInvalidParams{Context: "PipelineDeclaration"}
  5670. if s.Name == nil {
  5671. invalidParams.Add(request.NewErrParamRequired("Name"))
  5672. }
  5673. if s.Name != nil && len(*s.Name) < 1 {
  5674. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5675. }
  5676. if s.RoleArn == nil {
  5677. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  5678. }
  5679. if s.Stages == nil {
  5680. invalidParams.Add(request.NewErrParamRequired("Stages"))
  5681. }
  5682. if s.Version != nil && *s.Version < 1 {
  5683. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  5684. }
  5685. if s.ArtifactStore != nil {
  5686. if err := s.ArtifactStore.Validate(); err != nil {
  5687. invalidParams.AddNested("ArtifactStore", err.(request.ErrInvalidParams))
  5688. }
  5689. }
  5690. if s.ArtifactStores != nil {
  5691. for i, v := range s.ArtifactStores {
  5692. if v == nil {
  5693. continue
  5694. }
  5695. if err := v.Validate(); err != nil {
  5696. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ArtifactStores", i), err.(request.ErrInvalidParams))
  5697. }
  5698. }
  5699. }
  5700. if s.Stages != nil {
  5701. for i, v := range s.Stages {
  5702. if v == nil {
  5703. continue
  5704. }
  5705. if err := v.Validate(); err != nil {
  5706. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Stages", i), err.(request.ErrInvalidParams))
  5707. }
  5708. }
  5709. }
  5710. if invalidParams.Len() > 0 {
  5711. return invalidParams
  5712. }
  5713. return nil
  5714. }
  5715. // SetArtifactStore sets the ArtifactStore field's value.
  5716. func (s *PipelineDeclaration) SetArtifactStore(v *ArtifactStore) *PipelineDeclaration {
  5717. s.ArtifactStore = v
  5718. return s
  5719. }
  5720. // SetArtifactStores sets the ArtifactStores field's value.
  5721. func (s *PipelineDeclaration) SetArtifactStores(v map[string]*ArtifactStore) *PipelineDeclaration {
  5722. s.ArtifactStores = v
  5723. return s
  5724. }
  5725. // SetName sets the Name field's value.
  5726. func (s *PipelineDeclaration) SetName(v string) *PipelineDeclaration {
  5727. s.Name = &v
  5728. return s
  5729. }
  5730. // SetRoleArn sets the RoleArn field's value.
  5731. func (s *PipelineDeclaration) SetRoleArn(v string) *PipelineDeclaration {
  5732. s.RoleArn = &v
  5733. return s
  5734. }
  5735. // SetStages sets the Stages field's value.
  5736. func (s *PipelineDeclaration) SetStages(v []*StageDeclaration) *PipelineDeclaration {
  5737. s.Stages = v
  5738. return s
  5739. }
  5740. // SetVersion sets the Version field's value.
  5741. func (s *PipelineDeclaration) SetVersion(v int64) *PipelineDeclaration {
  5742. s.Version = &v
  5743. return s
  5744. }
  5745. // Represents information about an execution of a pipeline.
  5746. type PipelineExecution struct {
  5747. _ struct{} `type:"structure"`
  5748. // A list of ArtifactRevision objects included in a pipeline execution.
  5749. ArtifactRevisions []*ArtifactRevision `locationName:"artifactRevisions" type:"list"`
  5750. // The ID of the pipeline execution.
  5751. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  5752. // The name of the pipeline that was executed.
  5753. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  5754. // The version number of the pipeline that was executed.
  5755. PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
  5756. // The status of the pipeline execution.
  5757. //
  5758. // * InProgress: The pipeline execution is currently running.
  5759. //
  5760. // * Succeeded: The pipeline execution was completed successfully.
  5761. //
  5762. // * Superseded: While this pipeline execution was waiting for the next stage
  5763. // to be completed, a newer pipeline execution advanced and continued through
  5764. // the pipeline instead.
  5765. //
  5766. // * Failed: The pipeline execution was not completed successfully.
  5767. Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
  5768. }
  5769. // String returns the string representation
  5770. func (s PipelineExecution) String() string {
  5771. return awsutil.Prettify(s)
  5772. }
  5773. // GoString returns the string representation
  5774. func (s PipelineExecution) GoString() string {
  5775. return s.String()
  5776. }
  5777. // SetArtifactRevisions sets the ArtifactRevisions field's value.
  5778. func (s *PipelineExecution) SetArtifactRevisions(v []*ArtifactRevision) *PipelineExecution {
  5779. s.ArtifactRevisions = v
  5780. return s
  5781. }
  5782. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  5783. func (s *PipelineExecution) SetPipelineExecutionId(v string) *PipelineExecution {
  5784. s.PipelineExecutionId = &v
  5785. return s
  5786. }
  5787. // SetPipelineName sets the PipelineName field's value.
  5788. func (s *PipelineExecution) SetPipelineName(v string) *PipelineExecution {
  5789. s.PipelineName = &v
  5790. return s
  5791. }
  5792. // SetPipelineVersion sets the PipelineVersion field's value.
  5793. func (s *PipelineExecution) SetPipelineVersion(v int64) *PipelineExecution {
  5794. s.PipelineVersion = &v
  5795. return s
  5796. }
  5797. // SetStatus sets the Status field's value.
  5798. func (s *PipelineExecution) SetStatus(v string) *PipelineExecution {
  5799. s.Status = &v
  5800. return s
  5801. }
  5802. // Summary information about a pipeline execution.
  5803. type PipelineExecutionSummary struct {
  5804. _ struct{} `type:"structure"`
  5805. // The date and time of the last change to the pipeline execution, in timestamp
  5806. // format.
  5807. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
  5808. // The ID of the pipeline execution.
  5809. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  5810. // A list of the source artifact revisions that initiated a pipeline execution.
  5811. SourceRevisions []*SourceRevision `locationName:"sourceRevisions" type:"list"`
  5812. // The date and time when the pipeline execution began, in timestamp format.
  5813. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  5814. // The status of the pipeline execution.
  5815. //
  5816. // * InProgress: The pipeline execution is currently running.
  5817. //
  5818. // * Succeeded: The pipeline execution was completed successfully.
  5819. //
  5820. // * Superseded: While this pipeline execution was waiting for the next stage
  5821. // to be completed, a newer pipeline execution advanced and continued through
  5822. // the pipeline instead.
  5823. //
  5824. // * Failed: The pipeline execution was not completed successfully.
  5825. Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
  5826. }
  5827. // String returns the string representation
  5828. func (s PipelineExecutionSummary) String() string {
  5829. return awsutil.Prettify(s)
  5830. }
  5831. // GoString returns the string representation
  5832. func (s PipelineExecutionSummary) GoString() string {
  5833. return s.String()
  5834. }
  5835. // SetLastUpdateTime sets the LastUpdateTime field's value.
  5836. func (s *PipelineExecutionSummary) SetLastUpdateTime(v time.Time) *PipelineExecutionSummary {
  5837. s.LastUpdateTime = &v
  5838. return s
  5839. }
  5840. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  5841. func (s *PipelineExecutionSummary) SetPipelineExecutionId(v string) *PipelineExecutionSummary {
  5842. s.PipelineExecutionId = &v
  5843. return s
  5844. }
  5845. // SetSourceRevisions sets the SourceRevisions field's value.
  5846. func (s *PipelineExecutionSummary) SetSourceRevisions(v []*SourceRevision) *PipelineExecutionSummary {
  5847. s.SourceRevisions = v
  5848. return s
  5849. }
  5850. // SetStartTime sets the StartTime field's value.
  5851. func (s *PipelineExecutionSummary) SetStartTime(v time.Time) *PipelineExecutionSummary {
  5852. s.StartTime = &v
  5853. return s
  5854. }
  5855. // SetStatus sets the Status field's value.
  5856. func (s *PipelineExecutionSummary) SetStatus(v string) *PipelineExecutionSummary {
  5857. s.Status = &v
  5858. return s
  5859. }
  5860. // Information about a pipeline.
  5861. type PipelineMetadata struct {
  5862. _ struct{} `type:"structure"`
  5863. // The date and time the pipeline was created, in timestamp format.
  5864. Created *time.Time `locationName:"created" type:"timestamp"`
  5865. // The Amazon Resource Name (ARN) of the pipeline.
  5866. PipelineArn *string `locationName:"pipelineArn" type:"string"`
  5867. // The date and time the pipeline was last updated, in timestamp format.
  5868. Updated *time.Time `locationName:"updated" type:"timestamp"`
  5869. }
  5870. // String returns the string representation
  5871. func (s PipelineMetadata) String() string {
  5872. return awsutil.Prettify(s)
  5873. }
  5874. // GoString returns the string representation
  5875. func (s PipelineMetadata) GoString() string {
  5876. return s.String()
  5877. }
  5878. // SetCreated sets the Created field's value.
  5879. func (s *PipelineMetadata) SetCreated(v time.Time) *PipelineMetadata {
  5880. s.Created = &v
  5881. return s
  5882. }
  5883. // SetPipelineArn sets the PipelineArn field's value.
  5884. func (s *PipelineMetadata) SetPipelineArn(v string) *PipelineMetadata {
  5885. s.PipelineArn = &v
  5886. return s
  5887. }
  5888. // SetUpdated sets the Updated field's value.
  5889. func (s *PipelineMetadata) SetUpdated(v time.Time) *PipelineMetadata {
  5890. s.Updated = &v
  5891. return s
  5892. }
  5893. // Returns a summary of a pipeline.
  5894. type PipelineSummary struct {
  5895. _ struct{} `type:"structure"`
  5896. // The date and time the pipeline was created, in timestamp format.
  5897. Created *time.Time `locationName:"created" type:"timestamp"`
  5898. // The name of the pipeline.
  5899. Name *string `locationName:"name" min:"1" type:"string"`
  5900. // The date and time of the last update to the pipeline, in timestamp format.
  5901. Updated *time.Time `locationName:"updated" type:"timestamp"`
  5902. // The version number of the pipeline.
  5903. Version *int64 `locationName:"version" min:"1" type:"integer"`
  5904. }
  5905. // String returns the string representation
  5906. func (s PipelineSummary) String() string {
  5907. return awsutil.Prettify(s)
  5908. }
  5909. // GoString returns the string representation
  5910. func (s PipelineSummary) GoString() string {
  5911. return s.String()
  5912. }
  5913. // SetCreated sets the Created field's value.
  5914. func (s *PipelineSummary) SetCreated(v time.Time) *PipelineSummary {
  5915. s.Created = &v
  5916. return s
  5917. }
  5918. // SetName sets the Name field's value.
  5919. func (s *PipelineSummary) SetName(v string) *PipelineSummary {
  5920. s.Name = &v
  5921. return s
  5922. }
  5923. // SetUpdated sets the Updated field's value.
  5924. func (s *PipelineSummary) SetUpdated(v time.Time) *PipelineSummary {
  5925. s.Updated = &v
  5926. return s
  5927. }
  5928. // SetVersion sets the Version field's value.
  5929. func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary {
  5930. s.Version = &v
  5931. return s
  5932. }
  5933. // Represents the input of a PollForJobs action.
  5934. type PollForJobsInput struct {
  5935. _ struct{} `type:"structure"`
  5936. // Represents information about an action type.
  5937. //
  5938. // ActionTypeId is a required field
  5939. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  5940. // The maximum number of jobs to return in a poll for jobs call.
  5941. MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
  5942. // A map of property names and values. For an action type with no queryable
  5943. // properties, this value must be null or an empty map. For an action type with
  5944. // a queryable property, you must supply that property as a key in the map.
  5945. // Only jobs whose action configuration matches the mapped value will be returned.
  5946. QueryParam map[string]*string `locationName:"queryParam" type:"map"`
  5947. }
  5948. // String returns the string representation
  5949. func (s PollForJobsInput) String() string {
  5950. return awsutil.Prettify(s)
  5951. }
  5952. // GoString returns the string representation
  5953. func (s PollForJobsInput) GoString() string {
  5954. return s.String()
  5955. }
  5956. // Validate inspects the fields of the type to determine if they are valid.
  5957. func (s *PollForJobsInput) Validate() error {
  5958. invalidParams := request.ErrInvalidParams{Context: "PollForJobsInput"}
  5959. if s.ActionTypeId == nil {
  5960. invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
  5961. }
  5962. if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
  5963. invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
  5964. }
  5965. if s.ActionTypeId != nil {
  5966. if err := s.ActionTypeId.Validate(); err != nil {
  5967. invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
  5968. }
  5969. }
  5970. if invalidParams.Len() > 0 {
  5971. return invalidParams
  5972. }
  5973. return nil
  5974. }
  5975. // SetActionTypeId sets the ActionTypeId field's value.
  5976. func (s *PollForJobsInput) SetActionTypeId(v *ActionTypeId) *PollForJobsInput {
  5977. s.ActionTypeId = v
  5978. return s
  5979. }
  5980. // SetMaxBatchSize sets the MaxBatchSize field's value.
  5981. func (s *PollForJobsInput) SetMaxBatchSize(v int64) *PollForJobsInput {
  5982. s.MaxBatchSize = &v
  5983. return s
  5984. }
  5985. // SetQueryParam sets the QueryParam field's value.
  5986. func (s *PollForJobsInput) SetQueryParam(v map[string]*string) *PollForJobsInput {
  5987. s.QueryParam = v
  5988. return s
  5989. }
  5990. // Represents the output of a PollForJobs action.
  5991. type PollForJobsOutput struct {
  5992. _ struct{} `type:"structure"`
  5993. // Information about the jobs to take action on.
  5994. Jobs []*Job `locationName:"jobs" type:"list"`
  5995. }
  5996. // String returns the string representation
  5997. func (s PollForJobsOutput) String() string {
  5998. return awsutil.Prettify(s)
  5999. }
  6000. // GoString returns the string representation
  6001. func (s PollForJobsOutput) GoString() string {
  6002. return s.String()
  6003. }
  6004. // SetJobs sets the Jobs field's value.
  6005. func (s *PollForJobsOutput) SetJobs(v []*Job) *PollForJobsOutput {
  6006. s.Jobs = v
  6007. return s
  6008. }
  6009. // Represents the input of a PollForThirdPartyJobs action.
  6010. type PollForThirdPartyJobsInput struct {
  6011. _ struct{} `type:"structure"`
  6012. // Represents information about an action type.
  6013. //
  6014. // ActionTypeId is a required field
  6015. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  6016. // The maximum number of jobs to return in a poll for jobs call.
  6017. MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
  6018. }
  6019. // String returns the string representation
  6020. func (s PollForThirdPartyJobsInput) String() string {
  6021. return awsutil.Prettify(s)
  6022. }
  6023. // GoString returns the string representation
  6024. func (s PollForThirdPartyJobsInput) GoString() string {
  6025. return s.String()
  6026. }
  6027. // Validate inspects the fields of the type to determine if they are valid.
  6028. func (s *PollForThirdPartyJobsInput) Validate() error {
  6029. invalidParams := request.ErrInvalidParams{Context: "PollForThirdPartyJobsInput"}
  6030. if s.ActionTypeId == nil {
  6031. invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
  6032. }
  6033. if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
  6034. invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
  6035. }
  6036. if s.ActionTypeId != nil {
  6037. if err := s.ActionTypeId.Validate(); err != nil {
  6038. invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
  6039. }
  6040. }
  6041. if invalidParams.Len() > 0 {
  6042. return invalidParams
  6043. }
  6044. return nil
  6045. }
  6046. // SetActionTypeId sets the ActionTypeId field's value.
  6047. func (s *PollForThirdPartyJobsInput) SetActionTypeId(v *ActionTypeId) *PollForThirdPartyJobsInput {
  6048. s.ActionTypeId = v
  6049. return s
  6050. }
  6051. // SetMaxBatchSize sets the MaxBatchSize field's value.
  6052. func (s *PollForThirdPartyJobsInput) SetMaxBatchSize(v int64) *PollForThirdPartyJobsInput {
  6053. s.MaxBatchSize = &v
  6054. return s
  6055. }
  6056. // Represents the output of a PollForThirdPartyJobs action.
  6057. type PollForThirdPartyJobsOutput struct {
  6058. _ struct{} `type:"structure"`
  6059. // Information about the jobs to take action on.
  6060. Jobs []*ThirdPartyJob `locationName:"jobs" type:"list"`
  6061. }
  6062. // String returns the string representation
  6063. func (s PollForThirdPartyJobsOutput) String() string {
  6064. return awsutil.Prettify(s)
  6065. }
  6066. // GoString returns the string representation
  6067. func (s PollForThirdPartyJobsOutput) GoString() string {
  6068. return s.String()
  6069. }
  6070. // SetJobs sets the Jobs field's value.
  6071. func (s *PollForThirdPartyJobsOutput) SetJobs(v []*ThirdPartyJob) *PollForThirdPartyJobsOutput {
  6072. s.Jobs = v
  6073. return s
  6074. }
  6075. // Represents the input of a PutActionRevision action.
  6076. type PutActionRevisionInput struct {
  6077. _ struct{} `type:"structure"`
  6078. // The name of the action that will process the revision.
  6079. //
  6080. // ActionName is a required field
  6081. ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
  6082. // Represents information about the version (or revision) of an action.
  6083. //
  6084. // ActionRevision is a required field
  6085. ActionRevision *ActionRevision `locationName:"actionRevision" type:"structure" required:"true"`
  6086. // The name of the pipeline that will start processing the revision to the source.
  6087. //
  6088. // PipelineName is a required field
  6089. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  6090. // The name of the stage that contains the action that will act upon the revision.
  6091. //
  6092. // StageName is a required field
  6093. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  6094. }
  6095. // String returns the string representation
  6096. func (s PutActionRevisionInput) String() string {
  6097. return awsutil.Prettify(s)
  6098. }
  6099. // GoString returns the string representation
  6100. func (s PutActionRevisionInput) GoString() string {
  6101. return s.String()
  6102. }
  6103. // Validate inspects the fields of the type to determine if they are valid.
  6104. func (s *PutActionRevisionInput) Validate() error {
  6105. invalidParams := request.ErrInvalidParams{Context: "PutActionRevisionInput"}
  6106. if s.ActionName == nil {
  6107. invalidParams.Add(request.NewErrParamRequired("ActionName"))
  6108. }
  6109. if s.ActionName != nil && len(*s.ActionName) < 1 {
  6110. invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
  6111. }
  6112. if s.ActionRevision == nil {
  6113. invalidParams.Add(request.NewErrParamRequired("ActionRevision"))
  6114. }
  6115. if s.PipelineName == nil {
  6116. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  6117. }
  6118. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  6119. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  6120. }
  6121. if s.StageName == nil {
  6122. invalidParams.Add(request.NewErrParamRequired("StageName"))
  6123. }
  6124. if s.StageName != nil && len(*s.StageName) < 1 {
  6125. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  6126. }
  6127. if s.ActionRevision != nil {
  6128. if err := s.ActionRevision.Validate(); err != nil {
  6129. invalidParams.AddNested("ActionRevision", err.(request.ErrInvalidParams))
  6130. }
  6131. }
  6132. if invalidParams.Len() > 0 {
  6133. return invalidParams
  6134. }
  6135. return nil
  6136. }
  6137. // SetActionName sets the ActionName field's value.
  6138. func (s *PutActionRevisionInput) SetActionName(v string) *PutActionRevisionInput {
  6139. s.ActionName = &v
  6140. return s
  6141. }
  6142. // SetActionRevision sets the ActionRevision field's value.
  6143. func (s *PutActionRevisionInput) SetActionRevision(v *ActionRevision) *PutActionRevisionInput {
  6144. s.ActionRevision = v
  6145. return s
  6146. }
  6147. // SetPipelineName sets the PipelineName field's value.
  6148. func (s *PutActionRevisionInput) SetPipelineName(v string) *PutActionRevisionInput {
  6149. s.PipelineName = &v
  6150. return s
  6151. }
  6152. // SetStageName sets the StageName field's value.
  6153. func (s *PutActionRevisionInput) SetStageName(v string) *PutActionRevisionInput {
  6154. s.StageName = &v
  6155. return s
  6156. }
  6157. // Represents the output of a PutActionRevision action.
  6158. type PutActionRevisionOutput struct {
  6159. _ struct{} `type:"structure"`
  6160. // Indicates whether the artifact revision was previously used in an execution
  6161. // of the specified pipeline.
  6162. NewRevision *bool `locationName:"newRevision" type:"boolean"`
  6163. // The ID of the current workflow state of the pipeline.
  6164. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  6165. }
  6166. // String returns the string representation
  6167. func (s PutActionRevisionOutput) String() string {
  6168. return awsutil.Prettify(s)
  6169. }
  6170. // GoString returns the string representation
  6171. func (s PutActionRevisionOutput) GoString() string {
  6172. return s.String()
  6173. }
  6174. // SetNewRevision sets the NewRevision field's value.
  6175. func (s *PutActionRevisionOutput) SetNewRevision(v bool) *PutActionRevisionOutput {
  6176. s.NewRevision = &v
  6177. return s
  6178. }
  6179. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  6180. func (s *PutActionRevisionOutput) SetPipelineExecutionId(v string) *PutActionRevisionOutput {
  6181. s.PipelineExecutionId = &v
  6182. return s
  6183. }
  6184. // Represents the input of a PutApprovalResult action.
  6185. type PutApprovalResultInput struct {
  6186. _ struct{} `type:"structure"`
  6187. // The name of the action for which approval is requested.
  6188. //
  6189. // ActionName is a required field
  6190. ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
  6191. // The name of the pipeline that contains the action.
  6192. //
  6193. // PipelineName is a required field
  6194. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  6195. // Represents information about the result of the approval request.
  6196. //
  6197. // Result is a required field
  6198. Result *ApprovalResult `locationName:"result" type:"structure" required:"true"`
  6199. // The name of the stage that contains the action.
  6200. //
  6201. // StageName is a required field
  6202. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  6203. // The system-generated token used to identify a unique approval request. The
  6204. // token for each open approval request can be obtained using the GetPipelineState
  6205. // action and is used to validate that the approval request corresponding to
  6206. // this token is still valid.
  6207. //
  6208. // Token is a required field
  6209. Token *string `locationName:"token" type:"string" required:"true"`
  6210. }
  6211. // String returns the string representation
  6212. func (s PutApprovalResultInput) String() string {
  6213. return awsutil.Prettify(s)
  6214. }
  6215. // GoString returns the string representation
  6216. func (s PutApprovalResultInput) GoString() string {
  6217. return s.String()
  6218. }
  6219. // Validate inspects the fields of the type to determine if they are valid.
  6220. func (s *PutApprovalResultInput) Validate() error {
  6221. invalidParams := request.ErrInvalidParams{Context: "PutApprovalResultInput"}
  6222. if s.ActionName == nil {
  6223. invalidParams.Add(request.NewErrParamRequired("ActionName"))
  6224. }
  6225. if s.ActionName != nil && len(*s.ActionName) < 1 {
  6226. invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
  6227. }
  6228. if s.PipelineName == nil {
  6229. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  6230. }
  6231. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  6232. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  6233. }
  6234. if s.Result == nil {
  6235. invalidParams.Add(request.NewErrParamRequired("Result"))
  6236. }
  6237. if s.StageName == nil {
  6238. invalidParams.Add(request.NewErrParamRequired("StageName"))
  6239. }
  6240. if s.StageName != nil && len(*s.StageName) < 1 {
  6241. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  6242. }
  6243. if s.Token == nil {
  6244. invalidParams.Add(request.NewErrParamRequired("Token"))
  6245. }
  6246. if s.Result != nil {
  6247. if err := s.Result.Validate(); err != nil {
  6248. invalidParams.AddNested("Result", err.(request.ErrInvalidParams))
  6249. }
  6250. }
  6251. if invalidParams.Len() > 0 {
  6252. return invalidParams
  6253. }
  6254. return nil
  6255. }
  6256. // SetActionName sets the ActionName field's value.
  6257. func (s *PutApprovalResultInput) SetActionName(v string) *PutApprovalResultInput {
  6258. s.ActionName = &v
  6259. return s
  6260. }
  6261. // SetPipelineName sets the PipelineName field's value.
  6262. func (s *PutApprovalResultInput) SetPipelineName(v string) *PutApprovalResultInput {
  6263. s.PipelineName = &v
  6264. return s
  6265. }
  6266. // SetResult sets the Result field's value.
  6267. func (s *PutApprovalResultInput) SetResult(v *ApprovalResult) *PutApprovalResultInput {
  6268. s.Result = v
  6269. return s
  6270. }
  6271. // SetStageName sets the StageName field's value.
  6272. func (s *PutApprovalResultInput) SetStageName(v string) *PutApprovalResultInput {
  6273. s.StageName = &v
  6274. return s
  6275. }
  6276. // SetToken sets the Token field's value.
  6277. func (s *PutApprovalResultInput) SetToken(v string) *PutApprovalResultInput {
  6278. s.Token = &v
  6279. return s
  6280. }
  6281. // Represents the output of a PutApprovalResult action.
  6282. type PutApprovalResultOutput struct {
  6283. _ struct{} `type:"structure"`
  6284. // The timestamp showing when the approval or rejection was submitted.
  6285. ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp"`
  6286. }
  6287. // String returns the string representation
  6288. func (s PutApprovalResultOutput) String() string {
  6289. return awsutil.Prettify(s)
  6290. }
  6291. // GoString returns the string representation
  6292. func (s PutApprovalResultOutput) GoString() string {
  6293. return s.String()
  6294. }
  6295. // SetApprovedAt sets the ApprovedAt field's value.
  6296. func (s *PutApprovalResultOutput) SetApprovedAt(v time.Time) *PutApprovalResultOutput {
  6297. s.ApprovedAt = &v
  6298. return s
  6299. }
  6300. // Represents the input of a PutJobFailureResult action.
  6301. type PutJobFailureResultInput struct {
  6302. _ struct{} `type:"structure"`
  6303. // The details about the failure of a job.
  6304. //
  6305. // FailureDetails is a required field
  6306. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
  6307. // The unique system-generated ID of the job that failed. This is the same ID
  6308. // returned from PollForJobs.
  6309. //
  6310. // JobId is a required field
  6311. JobId *string `locationName:"jobId" type:"string" required:"true"`
  6312. }
  6313. // String returns the string representation
  6314. func (s PutJobFailureResultInput) String() string {
  6315. return awsutil.Prettify(s)
  6316. }
  6317. // GoString returns the string representation
  6318. func (s PutJobFailureResultInput) GoString() string {
  6319. return s.String()
  6320. }
  6321. // Validate inspects the fields of the type to determine if they are valid.
  6322. func (s *PutJobFailureResultInput) Validate() error {
  6323. invalidParams := request.ErrInvalidParams{Context: "PutJobFailureResultInput"}
  6324. if s.FailureDetails == nil {
  6325. invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
  6326. }
  6327. if s.JobId == nil {
  6328. invalidParams.Add(request.NewErrParamRequired("JobId"))
  6329. }
  6330. if s.FailureDetails != nil {
  6331. if err := s.FailureDetails.Validate(); err != nil {
  6332. invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
  6333. }
  6334. }
  6335. if invalidParams.Len() > 0 {
  6336. return invalidParams
  6337. }
  6338. return nil
  6339. }
  6340. // SetFailureDetails sets the FailureDetails field's value.
  6341. func (s *PutJobFailureResultInput) SetFailureDetails(v *FailureDetails) *PutJobFailureResultInput {
  6342. s.FailureDetails = v
  6343. return s
  6344. }
  6345. // SetJobId sets the JobId field's value.
  6346. func (s *PutJobFailureResultInput) SetJobId(v string) *PutJobFailureResultInput {
  6347. s.JobId = &v
  6348. return s
  6349. }
  6350. type PutJobFailureResultOutput struct {
  6351. _ struct{} `type:"structure"`
  6352. }
  6353. // String returns the string representation
  6354. func (s PutJobFailureResultOutput) String() string {
  6355. return awsutil.Prettify(s)
  6356. }
  6357. // GoString returns the string representation
  6358. func (s PutJobFailureResultOutput) GoString() string {
  6359. return s.String()
  6360. }
  6361. // Represents the input of a PutJobSuccessResult action.
  6362. type PutJobSuccessResultInput struct {
  6363. _ struct{} `type:"structure"`
  6364. // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
  6365. // that a successful job provides to identify a custom action in progress. Future
  6366. // jobs will use this token in order to identify the running instance of the
  6367. // action. It can be reused to return additional information about the progress
  6368. // of the custom action. When the action is complete, no continuation token
  6369. // should be supplied.
  6370. ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
  6371. // The ID of the current revision of the artifact successfully worked upon by
  6372. // the job.
  6373. CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
  6374. // The execution details of the successful job, such as the actions taken by
  6375. // the job worker.
  6376. ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
  6377. // The unique system-generated ID of the job that succeeded. This is the same
  6378. // ID returned from PollForJobs.
  6379. //
  6380. // JobId is a required field
  6381. JobId *string `locationName:"jobId" type:"string" required:"true"`
  6382. }
  6383. // String returns the string representation
  6384. func (s PutJobSuccessResultInput) String() string {
  6385. return awsutil.Prettify(s)
  6386. }
  6387. // GoString returns the string representation
  6388. func (s PutJobSuccessResultInput) GoString() string {
  6389. return s.String()
  6390. }
  6391. // Validate inspects the fields of the type to determine if they are valid.
  6392. func (s *PutJobSuccessResultInput) Validate() error {
  6393. invalidParams := request.ErrInvalidParams{Context: "PutJobSuccessResultInput"}
  6394. if s.ContinuationToken != nil && len(*s.ContinuationToken) < 1 {
  6395. invalidParams.Add(request.NewErrParamMinLen("ContinuationToken", 1))
  6396. }
  6397. if s.JobId == nil {
  6398. invalidParams.Add(request.NewErrParamRequired("JobId"))
  6399. }
  6400. if s.CurrentRevision != nil {
  6401. if err := s.CurrentRevision.Validate(); err != nil {
  6402. invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
  6403. }
  6404. }
  6405. if s.ExecutionDetails != nil {
  6406. if err := s.ExecutionDetails.Validate(); err != nil {
  6407. invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
  6408. }
  6409. }
  6410. if invalidParams.Len() > 0 {
  6411. return invalidParams
  6412. }
  6413. return nil
  6414. }
  6415. // SetContinuationToken sets the ContinuationToken field's value.
  6416. func (s *PutJobSuccessResultInput) SetContinuationToken(v string) *PutJobSuccessResultInput {
  6417. s.ContinuationToken = &v
  6418. return s
  6419. }
  6420. // SetCurrentRevision sets the CurrentRevision field's value.
  6421. func (s *PutJobSuccessResultInput) SetCurrentRevision(v *CurrentRevision) *PutJobSuccessResultInput {
  6422. s.CurrentRevision = v
  6423. return s
  6424. }
  6425. // SetExecutionDetails sets the ExecutionDetails field's value.
  6426. func (s *PutJobSuccessResultInput) SetExecutionDetails(v *ExecutionDetails) *PutJobSuccessResultInput {
  6427. s.ExecutionDetails = v
  6428. return s
  6429. }
  6430. // SetJobId sets the JobId field's value.
  6431. func (s *PutJobSuccessResultInput) SetJobId(v string) *PutJobSuccessResultInput {
  6432. s.JobId = &v
  6433. return s
  6434. }
  6435. type PutJobSuccessResultOutput struct {
  6436. _ struct{} `type:"structure"`
  6437. }
  6438. // String returns the string representation
  6439. func (s PutJobSuccessResultOutput) String() string {
  6440. return awsutil.Prettify(s)
  6441. }
  6442. // GoString returns the string representation
  6443. func (s PutJobSuccessResultOutput) GoString() string {
  6444. return s.String()
  6445. }
  6446. // Represents the input of a PutThirdPartyJobFailureResult action.
  6447. type PutThirdPartyJobFailureResultInput struct {
  6448. _ struct{} `type:"structure"`
  6449. // The clientToken portion of the clientId and clientToken pair used to verify
  6450. // that the calling entity is allowed access to the job and its details.
  6451. //
  6452. // ClientToken is a required field
  6453. ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
  6454. // Represents information about failure details.
  6455. //
  6456. // FailureDetails is a required field
  6457. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
  6458. // The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
  6459. //
  6460. // JobId is a required field
  6461. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  6462. }
  6463. // String returns the string representation
  6464. func (s PutThirdPartyJobFailureResultInput) String() string {
  6465. return awsutil.Prettify(s)
  6466. }
  6467. // GoString returns the string representation
  6468. func (s PutThirdPartyJobFailureResultInput) GoString() string {
  6469. return s.String()
  6470. }
  6471. // Validate inspects the fields of the type to determine if they are valid.
  6472. func (s *PutThirdPartyJobFailureResultInput) Validate() error {
  6473. invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobFailureResultInput"}
  6474. if s.ClientToken == nil {
  6475. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  6476. }
  6477. if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  6478. invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  6479. }
  6480. if s.FailureDetails == nil {
  6481. invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
  6482. }
  6483. if s.JobId == nil {
  6484. invalidParams.Add(request.NewErrParamRequired("JobId"))
  6485. }
  6486. if s.JobId != nil && len(*s.JobId) < 1 {
  6487. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  6488. }
  6489. if s.FailureDetails != nil {
  6490. if err := s.FailureDetails.Validate(); err != nil {
  6491. invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
  6492. }
  6493. }
  6494. if invalidParams.Len() > 0 {
  6495. return invalidParams
  6496. }
  6497. return nil
  6498. }
  6499. // SetClientToken sets the ClientToken field's value.
  6500. func (s *PutThirdPartyJobFailureResultInput) SetClientToken(v string) *PutThirdPartyJobFailureResultInput {
  6501. s.ClientToken = &v
  6502. return s
  6503. }
  6504. // SetFailureDetails sets the FailureDetails field's value.
  6505. func (s *PutThirdPartyJobFailureResultInput) SetFailureDetails(v *FailureDetails) *PutThirdPartyJobFailureResultInput {
  6506. s.FailureDetails = v
  6507. return s
  6508. }
  6509. // SetJobId sets the JobId field's value.
  6510. func (s *PutThirdPartyJobFailureResultInput) SetJobId(v string) *PutThirdPartyJobFailureResultInput {
  6511. s.JobId = &v
  6512. return s
  6513. }
  6514. type PutThirdPartyJobFailureResultOutput struct {
  6515. _ struct{} `type:"structure"`
  6516. }
  6517. // String returns the string representation
  6518. func (s PutThirdPartyJobFailureResultOutput) String() string {
  6519. return awsutil.Prettify(s)
  6520. }
  6521. // GoString returns the string representation
  6522. func (s PutThirdPartyJobFailureResultOutput) GoString() string {
  6523. return s.String()
  6524. }
  6525. // Represents the input of a PutThirdPartyJobSuccessResult action.
  6526. type PutThirdPartyJobSuccessResultInput struct {
  6527. _ struct{} `type:"structure"`
  6528. // The clientToken portion of the clientId and clientToken pair used to verify
  6529. // that the calling entity is allowed access to the job and its details.
  6530. //
  6531. // ClientToken is a required field
  6532. ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
  6533. // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
  6534. // that a successful job provides to identify a partner action in progress.
  6535. // Future jobs will use this token in order to identify the running instance
  6536. // of the action. It can be reused to return additional information about the
  6537. // progress of the partner action. When the action is complete, no continuation
  6538. // token should be supplied.
  6539. ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
  6540. // Represents information about a current revision.
  6541. CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
  6542. // The details of the actions taken and results produced on an artifact as it
  6543. // passes through stages in the pipeline.
  6544. ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
  6545. // The ID of the job that successfully completed. This is the same ID returned
  6546. // from PollForThirdPartyJobs.
  6547. //
  6548. // JobId is a required field
  6549. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  6550. }
  6551. // String returns the string representation
  6552. func (s PutThirdPartyJobSuccessResultInput) String() string {
  6553. return awsutil.Prettify(s)
  6554. }
  6555. // GoString returns the string representation
  6556. func (s PutThirdPartyJobSuccessResultInput) GoString() string {
  6557. return s.String()
  6558. }
  6559. // Validate inspects the fields of the type to determine if they are valid.
  6560. func (s *PutThirdPartyJobSuccessResultInput) Validate() error {
  6561. invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobSuccessResultInput"}
  6562. if s.ClientToken == nil {
  6563. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  6564. }
  6565. if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  6566. invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  6567. }
  6568. if s.ContinuationToken != nil && len(*s.ContinuationToken) < 1 {
  6569. invalidParams.Add(request.NewErrParamMinLen("ContinuationToken", 1))
  6570. }
  6571. if s.JobId == nil {
  6572. invalidParams.Add(request.NewErrParamRequired("JobId"))
  6573. }
  6574. if s.JobId != nil && len(*s.JobId) < 1 {
  6575. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  6576. }
  6577. if s.CurrentRevision != nil {
  6578. if err := s.CurrentRevision.Validate(); err != nil {
  6579. invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
  6580. }
  6581. }
  6582. if s.ExecutionDetails != nil {
  6583. if err := s.ExecutionDetails.Validate(); err != nil {
  6584. invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
  6585. }
  6586. }
  6587. if invalidParams.Len() > 0 {
  6588. return invalidParams
  6589. }
  6590. return nil
  6591. }
  6592. // SetClientToken sets the ClientToken field's value.
  6593. func (s *PutThirdPartyJobSuccessResultInput) SetClientToken(v string) *PutThirdPartyJobSuccessResultInput {
  6594. s.ClientToken = &v
  6595. return s
  6596. }
  6597. // SetContinuationToken sets the ContinuationToken field's value.
  6598. func (s *PutThirdPartyJobSuccessResultInput) SetContinuationToken(v string) *PutThirdPartyJobSuccessResultInput {
  6599. s.ContinuationToken = &v
  6600. return s
  6601. }
  6602. // SetCurrentRevision sets the CurrentRevision field's value.
  6603. func (s *PutThirdPartyJobSuccessResultInput) SetCurrentRevision(v *CurrentRevision) *PutThirdPartyJobSuccessResultInput {
  6604. s.CurrentRevision = v
  6605. return s
  6606. }
  6607. // SetExecutionDetails sets the ExecutionDetails field's value.
  6608. func (s *PutThirdPartyJobSuccessResultInput) SetExecutionDetails(v *ExecutionDetails) *PutThirdPartyJobSuccessResultInput {
  6609. s.ExecutionDetails = v
  6610. return s
  6611. }
  6612. // SetJobId sets the JobId field's value.
  6613. func (s *PutThirdPartyJobSuccessResultInput) SetJobId(v string) *PutThirdPartyJobSuccessResultInput {
  6614. s.JobId = &v
  6615. return s
  6616. }
  6617. type PutThirdPartyJobSuccessResultOutput struct {
  6618. _ struct{} `type:"structure"`
  6619. }
  6620. // String returns the string representation
  6621. func (s PutThirdPartyJobSuccessResultOutput) String() string {
  6622. return awsutil.Prettify(s)
  6623. }
  6624. // GoString returns the string representation
  6625. func (s PutThirdPartyJobSuccessResultOutput) GoString() string {
  6626. return s.String()
  6627. }
  6628. type PutWebhookInput struct {
  6629. _ struct{} `type:"structure"`
  6630. // The detail provided in an input file to create the webhook, such as the webhook
  6631. // name, the pipeline name, and the action name. Give the webhook a unique name
  6632. // which identifies the webhook being defined. You may choose to name the webhook
  6633. // after the pipeline and action it targets so that you can easily recognize
  6634. // what it's used for later.
  6635. //
  6636. // Webhook is a required field
  6637. Webhook *WebhookDefinition `locationName:"webhook" type:"structure" required:"true"`
  6638. }
  6639. // String returns the string representation
  6640. func (s PutWebhookInput) String() string {
  6641. return awsutil.Prettify(s)
  6642. }
  6643. // GoString returns the string representation
  6644. func (s PutWebhookInput) GoString() string {
  6645. return s.String()
  6646. }
  6647. // Validate inspects the fields of the type to determine if they are valid.
  6648. func (s *PutWebhookInput) Validate() error {
  6649. invalidParams := request.ErrInvalidParams{Context: "PutWebhookInput"}
  6650. if s.Webhook == nil {
  6651. invalidParams.Add(request.NewErrParamRequired("Webhook"))
  6652. }
  6653. if s.Webhook != nil {
  6654. if err := s.Webhook.Validate(); err != nil {
  6655. invalidParams.AddNested("Webhook", err.(request.ErrInvalidParams))
  6656. }
  6657. }
  6658. if invalidParams.Len() > 0 {
  6659. return invalidParams
  6660. }
  6661. return nil
  6662. }
  6663. // SetWebhook sets the Webhook field's value.
  6664. func (s *PutWebhookInput) SetWebhook(v *WebhookDefinition) *PutWebhookInput {
  6665. s.Webhook = v
  6666. return s
  6667. }
  6668. type PutWebhookOutput struct {
  6669. _ struct{} `type:"structure"`
  6670. // The detail returned from creating the webhook, such as the webhook name,
  6671. // webhook URL, and webhook ARN.
  6672. Webhook *ListWebhookItem `locationName:"webhook" type:"structure"`
  6673. }
  6674. // String returns the string representation
  6675. func (s PutWebhookOutput) String() string {
  6676. return awsutil.Prettify(s)
  6677. }
  6678. // GoString returns the string representation
  6679. func (s PutWebhookOutput) GoString() string {
  6680. return s.String()
  6681. }
  6682. // SetWebhook sets the Webhook field's value.
  6683. func (s *PutWebhookOutput) SetWebhook(v *ListWebhookItem) *PutWebhookOutput {
  6684. s.Webhook = v
  6685. return s
  6686. }
  6687. type RegisterWebhookWithThirdPartyInput struct {
  6688. _ struct{} `type:"structure"`
  6689. // The name of an existing webhook created with PutWebhook to register with
  6690. // a supported third party.
  6691. WebhookName *string `locationName:"webhookName" min:"1" type:"string"`
  6692. }
  6693. // String returns the string representation
  6694. func (s RegisterWebhookWithThirdPartyInput) String() string {
  6695. return awsutil.Prettify(s)
  6696. }
  6697. // GoString returns the string representation
  6698. func (s RegisterWebhookWithThirdPartyInput) GoString() string {
  6699. return s.String()
  6700. }
  6701. // Validate inspects the fields of the type to determine if they are valid.
  6702. func (s *RegisterWebhookWithThirdPartyInput) Validate() error {
  6703. invalidParams := request.ErrInvalidParams{Context: "RegisterWebhookWithThirdPartyInput"}
  6704. if s.WebhookName != nil && len(*s.WebhookName) < 1 {
  6705. invalidParams.Add(request.NewErrParamMinLen("WebhookName", 1))
  6706. }
  6707. if invalidParams.Len() > 0 {
  6708. return invalidParams
  6709. }
  6710. return nil
  6711. }
  6712. // SetWebhookName sets the WebhookName field's value.
  6713. func (s *RegisterWebhookWithThirdPartyInput) SetWebhookName(v string) *RegisterWebhookWithThirdPartyInput {
  6714. s.WebhookName = &v
  6715. return s
  6716. }
  6717. type RegisterWebhookWithThirdPartyOutput struct {
  6718. _ struct{} `type:"structure"`
  6719. }
  6720. // String returns the string representation
  6721. func (s RegisterWebhookWithThirdPartyOutput) String() string {
  6722. return awsutil.Prettify(s)
  6723. }
  6724. // GoString returns the string representation
  6725. func (s RegisterWebhookWithThirdPartyOutput) GoString() string {
  6726. return s.String()
  6727. }
  6728. // Represents the input of a RetryStageExecution action.
  6729. type RetryStageExecutionInput struct {
  6730. _ struct{} `type:"structure"`
  6731. // The ID of the pipeline execution in the failed stage to be retried. Use the
  6732. // GetPipelineState action to retrieve the current pipelineExecutionId of the
  6733. // failed stage
  6734. //
  6735. // PipelineExecutionId is a required field
  6736. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
  6737. // The name of the pipeline that contains the failed stage.
  6738. //
  6739. // PipelineName is a required field
  6740. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  6741. // The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.
  6742. //
  6743. // RetryMode is a required field
  6744. RetryMode *string `locationName:"retryMode" type:"string" required:"true" enum:"StageRetryMode"`
  6745. // The name of the failed stage to be retried.
  6746. //
  6747. // StageName is a required field
  6748. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  6749. }
  6750. // String returns the string representation
  6751. func (s RetryStageExecutionInput) String() string {
  6752. return awsutil.Prettify(s)
  6753. }
  6754. // GoString returns the string representation
  6755. func (s RetryStageExecutionInput) GoString() string {
  6756. return s.String()
  6757. }
  6758. // Validate inspects the fields of the type to determine if they are valid.
  6759. func (s *RetryStageExecutionInput) Validate() error {
  6760. invalidParams := request.ErrInvalidParams{Context: "RetryStageExecutionInput"}
  6761. if s.PipelineExecutionId == nil {
  6762. invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
  6763. }
  6764. if s.PipelineName == nil {
  6765. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  6766. }
  6767. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  6768. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  6769. }
  6770. if s.RetryMode == nil {
  6771. invalidParams.Add(request.NewErrParamRequired("RetryMode"))
  6772. }
  6773. if s.StageName == nil {
  6774. invalidParams.Add(request.NewErrParamRequired("StageName"))
  6775. }
  6776. if s.StageName != nil && len(*s.StageName) < 1 {
  6777. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  6778. }
  6779. if invalidParams.Len() > 0 {
  6780. return invalidParams
  6781. }
  6782. return nil
  6783. }
  6784. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  6785. func (s *RetryStageExecutionInput) SetPipelineExecutionId(v string) *RetryStageExecutionInput {
  6786. s.PipelineExecutionId = &v
  6787. return s
  6788. }
  6789. // SetPipelineName sets the PipelineName field's value.
  6790. func (s *RetryStageExecutionInput) SetPipelineName(v string) *RetryStageExecutionInput {
  6791. s.PipelineName = &v
  6792. return s
  6793. }
  6794. // SetRetryMode sets the RetryMode field's value.
  6795. func (s *RetryStageExecutionInput) SetRetryMode(v string) *RetryStageExecutionInput {
  6796. s.RetryMode = &v
  6797. return s
  6798. }
  6799. // SetStageName sets the StageName field's value.
  6800. func (s *RetryStageExecutionInput) SetStageName(v string) *RetryStageExecutionInput {
  6801. s.StageName = &v
  6802. return s
  6803. }
  6804. // Represents the output of a RetryStageExecution action.
  6805. type RetryStageExecutionOutput struct {
  6806. _ struct{} `type:"structure"`
  6807. // The ID of the current workflow execution in the failed stage.
  6808. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  6809. }
  6810. // String returns the string representation
  6811. func (s RetryStageExecutionOutput) String() string {
  6812. return awsutil.Prettify(s)
  6813. }
  6814. // GoString returns the string representation
  6815. func (s RetryStageExecutionOutput) GoString() string {
  6816. return s.String()
  6817. }
  6818. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  6819. func (s *RetryStageExecutionOutput) SetPipelineExecutionId(v string) *RetryStageExecutionOutput {
  6820. s.PipelineExecutionId = &v
  6821. return s
  6822. }
  6823. // The location of the Amazon S3 bucket that contains a revision.
  6824. type S3ArtifactLocation struct {
  6825. _ struct{} `type:"structure"`
  6826. // The name of the Amazon S3 bucket.
  6827. //
  6828. // BucketName is a required field
  6829. BucketName *string `locationName:"bucketName" type:"string" required:"true"`
  6830. // The key of the object in the Amazon S3 bucket, which uniquely identifies
  6831. // the object in the bucket.
  6832. //
  6833. // ObjectKey is a required field
  6834. ObjectKey *string `locationName:"objectKey" type:"string" required:"true"`
  6835. }
  6836. // String returns the string representation
  6837. func (s S3ArtifactLocation) String() string {
  6838. return awsutil.Prettify(s)
  6839. }
  6840. // GoString returns the string representation
  6841. func (s S3ArtifactLocation) GoString() string {
  6842. return s.String()
  6843. }
  6844. // SetBucketName sets the BucketName field's value.
  6845. func (s *S3ArtifactLocation) SetBucketName(v string) *S3ArtifactLocation {
  6846. s.BucketName = &v
  6847. return s
  6848. }
  6849. // SetObjectKey sets the ObjectKey field's value.
  6850. func (s *S3ArtifactLocation) SetObjectKey(v string) *S3ArtifactLocation {
  6851. s.ObjectKey = &v
  6852. return s
  6853. }
  6854. // Information about the version (or revision) of a source artifact that initiated
  6855. // a pipeline execution.
  6856. type SourceRevision struct {
  6857. _ struct{} `type:"structure"`
  6858. // The name of the action that processed the revision to the source artifact.
  6859. //
  6860. // ActionName is a required field
  6861. ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
  6862. // The system-generated unique ID that identifies the revision number of the
  6863. // artifact.
  6864. RevisionId *string `locationName:"revisionId" min:"1" type:"string"`
  6865. // Summary information about the most recent revision of the artifact. For GitHub
  6866. // and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets
  6867. // or actions, the user-provided content of a codepipeline-artifact-revision-summary
  6868. // key specified in the object metadata.
  6869. RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
  6870. // The commit ID for the artifact revision. For artifacts stored in GitHub or
  6871. // AWS CodeCommit repositories, the commit ID is linked to a commit details
  6872. // page.
  6873. RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
  6874. }
  6875. // String returns the string representation
  6876. func (s SourceRevision) String() string {
  6877. return awsutil.Prettify(s)
  6878. }
  6879. // GoString returns the string representation
  6880. func (s SourceRevision) GoString() string {
  6881. return s.String()
  6882. }
  6883. // SetActionName sets the ActionName field's value.
  6884. func (s *SourceRevision) SetActionName(v string) *SourceRevision {
  6885. s.ActionName = &v
  6886. return s
  6887. }
  6888. // SetRevisionId sets the RevisionId field's value.
  6889. func (s *SourceRevision) SetRevisionId(v string) *SourceRevision {
  6890. s.RevisionId = &v
  6891. return s
  6892. }
  6893. // SetRevisionSummary sets the RevisionSummary field's value.
  6894. func (s *SourceRevision) SetRevisionSummary(v string) *SourceRevision {
  6895. s.RevisionSummary = &v
  6896. return s
  6897. }
  6898. // SetRevisionUrl sets the RevisionUrl field's value.
  6899. func (s *SourceRevision) SetRevisionUrl(v string) *SourceRevision {
  6900. s.RevisionUrl = &v
  6901. return s
  6902. }
  6903. // Represents information about a stage to a job worker.
  6904. type StageContext struct {
  6905. _ struct{} `type:"structure"`
  6906. // The name of the stage.
  6907. Name *string `locationName:"name" min:"1" type:"string"`
  6908. }
  6909. // String returns the string representation
  6910. func (s StageContext) String() string {
  6911. return awsutil.Prettify(s)
  6912. }
  6913. // GoString returns the string representation
  6914. func (s StageContext) GoString() string {
  6915. return s.String()
  6916. }
  6917. // SetName sets the Name field's value.
  6918. func (s *StageContext) SetName(v string) *StageContext {
  6919. s.Name = &v
  6920. return s
  6921. }
  6922. // Represents information about a stage and its definition.
  6923. type StageDeclaration struct {
  6924. _ struct{} `type:"structure"`
  6925. // The actions included in a stage.
  6926. //
  6927. // Actions is a required field
  6928. Actions []*ActionDeclaration `locationName:"actions" type:"list" required:"true"`
  6929. // Reserved for future use.
  6930. Blockers []*BlockerDeclaration `locationName:"blockers" type:"list"`
  6931. // The name of the stage.
  6932. //
  6933. // Name is a required field
  6934. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  6935. }
  6936. // String returns the string representation
  6937. func (s StageDeclaration) String() string {
  6938. return awsutil.Prettify(s)
  6939. }
  6940. // GoString returns the string representation
  6941. func (s StageDeclaration) GoString() string {
  6942. return s.String()
  6943. }
  6944. // Validate inspects the fields of the type to determine if they are valid.
  6945. func (s *StageDeclaration) Validate() error {
  6946. invalidParams := request.ErrInvalidParams{Context: "StageDeclaration"}
  6947. if s.Actions == nil {
  6948. invalidParams.Add(request.NewErrParamRequired("Actions"))
  6949. }
  6950. if s.Name == nil {
  6951. invalidParams.Add(request.NewErrParamRequired("Name"))
  6952. }
  6953. if s.Name != nil && len(*s.Name) < 1 {
  6954. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6955. }
  6956. if s.Actions != nil {
  6957. for i, v := range s.Actions {
  6958. if v == nil {
  6959. continue
  6960. }
  6961. if err := v.Validate(); err != nil {
  6962. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
  6963. }
  6964. }
  6965. }
  6966. if s.Blockers != nil {
  6967. for i, v := range s.Blockers {
  6968. if v == nil {
  6969. continue
  6970. }
  6971. if err := v.Validate(); err != nil {
  6972. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Blockers", i), err.(request.ErrInvalidParams))
  6973. }
  6974. }
  6975. }
  6976. if invalidParams.Len() > 0 {
  6977. return invalidParams
  6978. }
  6979. return nil
  6980. }
  6981. // SetActions sets the Actions field's value.
  6982. func (s *StageDeclaration) SetActions(v []*ActionDeclaration) *StageDeclaration {
  6983. s.Actions = v
  6984. return s
  6985. }
  6986. // SetBlockers sets the Blockers field's value.
  6987. func (s *StageDeclaration) SetBlockers(v []*BlockerDeclaration) *StageDeclaration {
  6988. s.Blockers = v
  6989. return s
  6990. }
  6991. // SetName sets the Name field's value.
  6992. func (s *StageDeclaration) SetName(v string) *StageDeclaration {
  6993. s.Name = &v
  6994. return s
  6995. }
  6996. // Represents information about the run of a stage.
  6997. type StageExecution struct {
  6998. _ struct{} `type:"structure"`
  6999. // The ID of the pipeline execution associated with the stage.
  7000. //
  7001. // PipelineExecutionId is a required field
  7002. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
  7003. // The status of the stage, or for a completed stage, the last status of the
  7004. // stage.
  7005. //
  7006. // Status is a required field
  7007. Status *string `locationName:"status" type:"string" required:"true" enum:"StageExecutionStatus"`
  7008. }
  7009. // String returns the string representation
  7010. func (s StageExecution) String() string {
  7011. return awsutil.Prettify(s)
  7012. }
  7013. // GoString returns the string representation
  7014. func (s StageExecution) GoString() string {
  7015. return s.String()
  7016. }
  7017. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  7018. func (s *StageExecution) SetPipelineExecutionId(v string) *StageExecution {
  7019. s.PipelineExecutionId = &v
  7020. return s
  7021. }
  7022. // SetStatus sets the Status field's value.
  7023. func (s *StageExecution) SetStatus(v string) *StageExecution {
  7024. s.Status = &v
  7025. return s
  7026. }
  7027. // Represents information about the state of the stage.
  7028. type StageState struct {
  7029. _ struct{} `type:"structure"`
  7030. // The state of the stage.
  7031. ActionStates []*ActionState `locationName:"actionStates" type:"list"`
  7032. // The state of the inbound transition, which is either enabled or disabled.
  7033. InboundTransitionState *TransitionState `locationName:"inboundTransitionState" type:"structure"`
  7034. // Information about the latest execution in the stage, including its ID and
  7035. // status.
  7036. LatestExecution *StageExecution `locationName:"latestExecution" type:"structure"`
  7037. // The name of the stage.
  7038. StageName *string `locationName:"stageName" min:"1" type:"string"`
  7039. }
  7040. // String returns the string representation
  7041. func (s StageState) String() string {
  7042. return awsutil.Prettify(s)
  7043. }
  7044. // GoString returns the string representation
  7045. func (s StageState) GoString() string {
  7046. return s.String()
  7047. }
  7048. // SetActionStates sets the ActionStates field's value.
  7049. func (s *StageState) SetActionStates(v []*ActionState) *StageState {
  7050. s.ActionStates = v
  7051. return s
  7052. }
  7053. // SetInboundTransitionState sets the InboundTransitionState field's value.
  7054. func (s *StageState) SetInboundTransitionState(v *TransitionState) *StageState {
  7055. s.InboundTransitionState = v
  7056. return s
  7057. }
  7058. // SetLatestExecution sets the LatestExecution field's value.
  7059. func (s *StageState) SetLatestExecution(v *StageExecution) *StageState {
  7060. s.LatestExecution = v
  7061. return s
  7062. }
  7063. // SetStageName sets the StageName field's value.
  7064. func (s *StageState) SetStageName(v string) *StageState {
  7065. s.StageName = &v
  7066. return s
  7067. }
  7068. // Represents the input of a StartPipelineExecution action.
  7069. type StartPipelineExecutionInput struct {
  7070. _ struct{} `type:"structure"`
  7071. // The system-generated unique ID used to identify a unique execution request.
  7072. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`
  7073. // The name of the pipeline to start.
  7074. //
  7075. // Name is a required field
  7076. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7077. }
  7078. // String returns the string representation
  7079. func (s StartPipelineExecutionInput) String() string {
  7080. return awsutil.Prettify(s)
  7081. }
  7082. // GoString returns the string representation
  7083. func (s StartPipelineExecutionInput) GoString() string {
  7084. return s.String()
  7085. }
  7086. // Validate inspects the fields of the type to determine if they are valid.
  7087. func (s *StartPipelineExecutionInput) Validate() error {
  7088. invalidParams := request.ErrInvalidParams{Context: "StartPipelineExecutionInput"}
  7089. if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
  7090. invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
  7091. }
  7092. if s.Name == nil {
  7093. invalidParams.Add(request.NewErrParamRequired("Name"))
  7094. }
  7095. if s.Name != nil && len(*s.Name) < 1 {
  7096. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7097. }
  7098. if invalidParams.Len() > 0 {
  7099. return invalidParams
  7100. }
  7101. return nil
  7102. }
  7103. // SetClientRequestToken sets the ClientRequestToken field's value.
  7104. func (s *StartPipelineExecutionInput) SetClientRequestToken(v string) *StartPipelineExecutionInput {
  7105. s.ClientRequestToken = &v
  7106. return s
  7107. }
  7108. // SetName sets the Name field's value.
  7109. func (s *StartPipelineExecutionInput) SetName(v string) *StartPipelineExecutionInput {
  7110. s.Name = &v
  7111. return s
  7112. }
  7113. // Represents the output of a StartPipelineExecution action.
  7114. type StartPipelineExecutionOutput struct {
  7115. _ struct{} `type:"structure"`
  7116. // The unique system-generated ID of the pipeline execution that was started.
  7117. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  7118. }
  7119. // String returns the string representation
  7120. func (s StartPipelineExecutionOutput) String() string {
  7121. return awsutil.Prettify(s)
  7122. }
  7123. // GoString returns the string representation
  7124. func (s StartPipelineExecutionOutput) GoString() string {
  7125. return s.String()
  7126. }
  7127. // SetPipelineExecutionId sets the PipelineExecutionId field's value.
  7128. func (s *StartPipelineExecutionOutput) SetPipelineExecutionId(v string) *StartPipelineExecutionOutput {
  7129. s.PipelineExecutionId = &v
  7130. return s
  7131. }
  7132. // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline
  7133. // when there is a job to be worked upon by a partner action.
  7134. type ThirdPartyJob struct {
  7135. _ struct{} `type:"structure"`
  7136. // The clientToken portion of the clientId and clientToken pair used to verify
  7137. // that the calling entity is allowed access to the job and its details.
  7138. ClientId *string `locationName:"clientId" type:"string"`
  7139. // The identifier used to identify the job in AWS CodePipeline.
  7140. JobId *string `locationName:"jobId" type:"string"`
  7141. }
  7142. // String returns the string representation
  7143. func (s ThirdPartyJob) String() string {
  7144. return awsutil.Prettify(s)
  7145. }
  7146. // GoString returns the string representation
  7147. func (s ThirdPartyJob) GoString() string {
  7148. return s.String()
  7149. }
  7150. // SetClientId sets the ClientId field's value.
  7151. func (s *ThirdPartyJob) SetClientId(v string) *ThirdPartyJob {
  7152. s.ClientId = &v
  7153. return s
  7154. }
  7155. // SetJobId sets the JobId field's value.
  7156. func (s *ThirdPartyJob) SetJobId(v string) *ThirdPartyJob {
  7157. s.JobId = &v
  7158. return s
  7159. }
  7160. // Represents information about the job data for a partner action.
  7161. type ThirdPartyJobData struct {
  7162. _ struct{} `type:"structure"`
  7163. // Represents information about an action configuration.
  7164. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
  7165. // Represents information about an action type.
  7166. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
  7167. // Represents an AWS session credentials object. These credentials are temporary
  7168. // credentials that are issued by AWS Secure Token Service (STS). They can be
  7169. // used to access input and output artifacts in the Amazon S3 bucket used to
  7170. // store artifact for the pipeline in AWS CodePipeline.
  7171. ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"`
  7172. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  7173. // job requires in order to continue the job asynchronously.
  7174. ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
  7175. // The encryption key used to encrypt and decrypt data in the artifact store
  7176. // for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This
  7177. // is optional and might not be present.
  7178. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  7179. // The name of the artifact that will be worked upon by the action, if any.
  7180. // This name might be system-generated, such as "MyApp", or might be defined
  7181. // by the user when the action is created. The input artifact name must match
  7182. // the name of an output artifact generated by an action in an earlier action
  7183. // or stage of the pipeline.
  7184. InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
  7185. // The name of the artifact that will be the result of the action, if any. This
  7186. // name might be system-generated, such as "MyBuiltApp", or might be defined
  7187. // by the user when the action is created.
  7188. OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
  7189. // Represents information about a pipeline to a job worker.
  7190. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
  7191. }
  7192. // String returns the string representation
  7193. func (s ThirdPartyJobData) String() string {
  7194. return awsutil.Prettify(s)
  7195. }
  7196. // GoString returns the string representation
  7197. func (s ThirdPartyJobData) GoString() string {
  7198. return s.String()
  7199. }
  7200. // SetActionConfiguration sets the ActionConfiguration field's value.
  7201. func (s *ThirdPartyJobData) SetActionConfiguration(v *ActionConfiguration) *ThirdPartyJobData {
  7202. s.ActionConfiguration = v
  7203. return s
  7204. }
  7205. // SetActionTypeId sets the ActionTypeId field's value.
  7206. func (s *ThirdPartyJobData) SetActionTypeId(v *ActionTypeId) *ThirdPartyJobData {
  7207. s.ActionTypeId = v
  7208. return s
  7209. }
  7210. // SetArtifactCredentials sets the ArtifactCredentials field's value.
  7211. func (s *ThirdPartyJobData) SetArtifactCredentials(v *AWSSessionCredentials) *ThirdPartyJobData {
  7212. s.ArtifactCredentials = v
  7213. return s
  7214. }
  7215. // SetContinuationToken sets the ContinuationToken field's value.
  7216. func (s *ThirdPartyJobData) SetContinuationToken(v string) *ThirdPartyJobData {
  7217. s.ContinuationToken = &v
  7218. return s
  7219. }
  7220. // SetEncryptionKey sets the EncryptionKey field's value.
  7221. func (s *ThirdPartyJobData) SetEncryptionKey(v *EncryptionKey) *ThirdPartyJobData {
  7222. s.EncryptionKey = v
  7223. return s
  7224. }
  7225. // SetInputArtifacts sets the InputArtifacts field's value.
  7226. func (s *ThirdPartyJobData) SetInputArtifacts(v []*Artifact) *ThirdPartyJobData {
  7227. s.InputArtifacts = v
  7228. return s
  7229. }
  7230. // SetOutputArtifacts sets the OutputArtifacts field's value.
  7231. func (s *ThirdPartyJobData) SetOutputArtifacts(v []*Artifact) *ThirdPartyJobData {
  7232. s.OutputArtifacts = v
  7233. return s
  7234. }
  7235. // SetPipelineContext sets the PipelineContext field's value.
  7236. func (s *ThirdPartyJobData) SetPipelineContext(v *PipelineContext) *ThirdPartyJobData {
  7237. s.PipelineContext = v
  7238. return s
  7239. }
  7240. // The details of a job sent in response to a GetThirdPartyJobDetails request.
  7241. type ThirdPartyJobDetails struct {
  7242. _ struct{} `type:"structure"`
  7243. // The data to be returned by the third party job worker.
  7244. Data *ThirdPartyJobData `locationName:"data" type:"structure"`
  7245. // The identifier used to identify the job details in AWS CodePipeline.
  7246. Id *string `locationName:"id" min:"1" type:"string"`
  7247. // A system-generated random number that AWS CodePipeline uses to ensure that
  7248. // the job is being worked on by only one job worker. Use this number in an
  7249. // AcknowledgeThirdPartyJob request.
  7250. Nonce *string `locationName:"nonce" min:"1" type:"string"`
  7251. }
  7252. // String returns the string representation
  7253. func (s ThirdPartyJobDetails) String() string {
  7254. return awsutil.Prettify(s)
  7255. }
  7256. // GoString returns the string representation
  7257. func (s ThirdPartyJobDetails) GoString() string {
  7258. return s.String()
  7259. }
  7260. // SetData sets the Data field's value.
  7261. func (s *ThirdPartyJobDetails) SetData(v *ThirdPartyJobData) *ThirdPartyJobDetails {
  7262. s.Data = v
  7263. return s
  7264. }
  7265. // SetId sets the Id field's value.
  7266. func (s *ThirdPartyJobDetails) SetId(v string) *ThirdPartyJobDetails {
  7267. s.Id = &v
  7268. return s
  7269. }
  7270. // SetNonce sets the Nonce field's value.
  7271. func (s *ThirdPartyJobDetails) SetNonce(v string) *ThirdPartyJobDetails {
  7272. s.Nonce = &v
  7273. return s
  7274. }
  7275. // Represents information about the state of transitions between one stage and
  7276. // another stage.
  7277. type TransitionState struct {
  7278. _ struct{} `type:"structure"`
  7279. // The user-specified reason why the transition between two stages of a pipeline
  7280. // was disabled.
  7281. DisabledReason *string `locationName:"disabledReason" min:"1" type:"string"`
  7282. // Whether the transition between stages is enabled (true) or disabled (false).
  7283. Enabled *bool `locationName:"enabled" type:"boolean"`
  7284. // The timestamp when the transition state was last changed.
  7285. LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp"`
  7286. // The ID of the user who last changed the transition state.
  7287. LastChangedBy *string `locationName:"lastChangedBy" type:"string"`
  7288. }
  7289. // String returns the string representation
  7290. func (s TransitionState) String() string {
  7291. return awsutil.Prettify(s)
  7292. }
  7293. // GoString returns the string representation
  7294. func (s TransitionState) GoString() string {
  7295. return s.String()
  7296. }
  7297. // SetDisabledReason sets the DisabledReason field's value.
  7298. func (s *TransitionState) SetDisabledReason(v string) *TransitionState {
  7299. s.DisabledReason = &v
  7300. return s
  7301. }
  7302. // SetEnabled sets the Enabled field's value.
  7303. func (s *TransitionState) SetEnabled(v bool) *TransitionState {
  7304. s.Enabled = &v
  7305. return s
  7306. }
  7307. // SetLastChangedAt sets the LastChangedAt field's value.
  7308. func (s *TransitionState) SetLastChangedAt(v time.Time) *TransitionState {
  7309. s.LastChangedAt = &v
  7310. return s
  7311. }
  7312. // SetLastChangedBy sets the LastChangedBy field's value.
  7313. func (s *TransitionState) SetLastChangedBy(v string) *TransitionState {
  7314. s.LastChangedBy = &v
  7315. return s
  7316. }
  7317. // Represents the input of an UpdatePipeline action.
  7318. type UpdatePipelineInput struct {
  7319. _ struct{} `type:"structure"`
  7320. // The name of the pipeline to be updated.
  7321. //
  7322. // Pipeline is a required field
  7323. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
  7324. }
  7325. // String returns the string representation
  7326. func (s UpdatePipelineInput) String() string {
  7327. return awsutil.Prettify(s)
  7328. }
  7329. // GoString returns the string representation
  7330. func (s UpdatePipelineInput) GoString() string {
  7331. return s.String()
  7332. }
  7333. // Validate inspects the fields of the type to determine if they are valid.
  7334. func (s *UpdatePipelineInput) Validate() error {
  7335. invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
  7336. if s.Pipeline == nil {
  7337. invalidParams.Add(request.NewErrParamRequired("Pipeline"))
  7338. }
  7339. if s.Pipeline != nil {
  7340. if err := s.Pipeline.Validate(); err != nil {
  7341. invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
  7342. }
  7343. }
  7344. if invalidParams.Len() > 0 {
  7345. return invalidParams
  7346. }
  7347. return nil
  7348. }
  7349. // SetPipeline sets the Pipeline field's value.
  7350. func (s *UpdatePipelineInput) SetPipeline(v *PipelineDeclaration) *UpdatePipelineInput {
  7351. s.Pipeline = v
  7352. return s
  7353. }
  7354. // Represents the output of an UpdatePipeline action.
  7355. type UpdatePipelineOutput struct {
  7356. _ struct{} `type:"structure"`
  7357. // The structure of the updated pipeline.
  7358. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  7359. }
  7360. // String returns the string representation
  7361. func (s UpdatePipelineOutput) String() string {
  7362. return awsutil.Prettify(s)
  7363. }
  7364. // GoString returns the string representation
  7365. func (s UpdatePipelineOutput) GoString() string {
  7366. return s.String()
  7367. }
  7368. // SetPipeline sets the Pipeline field's value.
  7369. func (s *UpdatePipelineOutput) SetPipeline(v *PipelineDeclaration) *UpdatePipelineOutput {
  7370. s.Pipeline = v
  7371. return s
  7372. }
  7373. // The authentication applied to incoming webhook trigger requests.
  7374. type WebhookAuthConfiguration struct {
  7375. _ struct{} `type:"structure"`
  7376. // The property used to configure acceptance of webhooks within a specific IP
  7377. // range. For IP, only the AllowedIPRange property must be set, and this property
  7378. // must be set to a valid CIDR range.
  7379. AllowedIPRange *string `min:"1" type:"string"`
  7380. // The property used to configure GitHub authentication. For GITHUB_HMAC, only
  7381. // the SecretToken property must be set.
  7382. SecretToken *string `min:"1" type:"string"`
  7383. }
  7384. // String returns the string representation
  7385. func (s WebhookAuthConfiguration) String() string {
  7386. return awsutil.Prettify(s)
  7387. }
  7388. // GoString returns the string representation
  7389. func (s WebhookAuthConfiguration) GoString() string {
  7390. return s.String()
  7391. }
  7392. // Validate inspects the fields of the type to determine if they are valid.
  7393. func (s *WebhookAuthConfiguration) Validate() error {
  7394. invalidParams := request.ErrInvalidParams{Context: "WebhookAuthConfiguration"}
  7395. if s.AllowedIPRange != nil && len(*s.AllowedIPRange) < 1 {
  7396. invalidParams.Add(request.NewErrParamMinLen("AllowedIPRange", 1))
  7397. }
  7398. if s.SecretToken != nil && len(*s.SecretToken) < 1 {
  7399. invalidParams.Add(request.NewErrParamMinLen("SecretToken", 1))
  7400. }
  7401. if invalidParams.Len() > 0 {
  7402. return invalidParams
  7403. }
  7404. return nil
  7405. }
  7406. // SetAllowedIPRange sets the AllowedIPRange field's value.
  7407. func (s *WebhookAuthConfiguration) SetAllowedIPRange(v string) *WebhookAuthConfiguration {
  7408. s.AllowedIPRange = &v
  7409. return s
  7410. }
  7411. // SetSecretToken sets the SecretToken field's value.
  7412. func (s *WebhookAuthConfiguration) SetSecretToken(v string) *WebhookAuthConfiguration {
  7413. s.SecretToken = &v
  7414. return s
  7415. }
  7416. // Represents information about a webhook and its definition.
  7417. type WebhookDefinition struct {
  7418. _ struct{} `type:"structure"`
  7419. // Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
  7420. //
  7421. // * GITHUB_HMAC implements the authentication scheme described here: https://developer.github.com/webhooks/securing/
  7422. //
  7423. // * IP will reject webhooks trigger requests unless they originate from
  7424. // an IP within the IP range whitelisted in the authentication configuration.
  7425. //
  7426. // * UNAUTHENTICATED will accept all webhook trigger requests regardless
  7427. // of origin.
  7428. //
  7429. // Authentication is a required field
  7430. Authentication *string `locationName:"authentication" type:"string" required:"true" enum:"WebhookAuthenticationType"`
  7431. // Properties that configure the authentication applied to incoming webhook
  7432. // trigger requests. The required properties depend on the authentication type.
  7433. // For GITHUB_HMAC, only the SecretToken property must be set. For IP, only
  7434. // the AllowedIPRange property must be set to a valid CIDR range. For UNAUTHENTICATED,
  7435. // no properties can be set.
  7436. //
  7437. // AuthenticationConfiguration is a required field
  7438. AuthenticationConfiguration *WebhookAuthConfiguration `locationName:"authenticationConfiguration" type:"structure" required:"true"`
  7439. // A list of rules applied to the body/payload sent in the POST request to a
  7440. // webhook URL. All defined rules must pass for the request to be accepted and
  7441. // the pipeline started.
  7442. //
  7443. // Filters is a required field
  7444. Filters []*WebhookFilterRule `locationName:"filters" type:"list" required:"true"`
  7445. // The name of the webhook.
  7446. //
  7447. // Name is a required field
  7448. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  7449. // The name of the action in a pipeline you want to connect to the webhook.
  7450. // The action must be from the source (first) stage of the pipeline.
  7451. //
  7452. // TargetAction is a required field
  7453. TargetAction *string `locationName:"targetAction" min:"1" type:"string" required:"true"`
  7454. // The name of the pipeline you want to connect to the webhook.
  7455. //
  7456. // TargetPipeline is a required field
  7457. TargetPipeline *string `locationName:"targetPipeline" min:"1" type:"string" required:"true"`
  7458. }
  7459. // String returns the string representation
  7460. func (s WebhookDefinition) String() string {
  7461. return awsutil.Prettify(s)
  7462. }
  7463. // GoString returns the string representation
  7464. func (s WebhookDefinition) GoString() string {
  7465. return s.String()
  7466. }
  7467. // Validate inspects the fields of the type to determine if they are valid.
  7468. func (s *WebhookDefinition) Validate() error {
  7469. invalidParams := request.ErrInvalidParams{Context: "WebhookDefinition"}
  7470. if s.Authentication == nil {
  7471. invalidParams.Add(request.NewErrParamRequired("Authentication"))
  7472. }
  7473. if s.AuthenticationConfiguration == nil {
  7474. invalidParams.Add(request.NewErrParamRequired("AuthenticationConfiguration"))
  7475. }
  7476. if s.Filters == nil {
  7477. invalidParams.Add(request.NewErrParamRequired("Filters"))
  7478. }
  7479. if s.Name == nil {
  7480. invalidParams.Add(request.NewErrParamRequired("Name"))
  7481. }
  7482. if s.Name != nil && len(*s.Name) < 1 {
  7483. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7484. }
  7485. if s.TargetAction == nil {
  7486. invalidParams.Add(request.NewErrParamRequired("TargetAction"))
  7487. }
  7488. if s.TargetAction != nil && len(*s.TargetAction) < 1 {
  7489. invalidParams.Add(request.NewErrParamMinLen("TargetAction", 1))
  7490. }
  7491. if s.TargetPipeline == nil {
  7492. invalidParams.Add(request.NewErrParamRequired("TargetPipeline"))
  7493. }
  7494. if s.TargetPipeline != nil && len(*s.TargetPipeline) < 1 {
  7495. invalidParams.Add(request.NewErrParamMinLen("TargetPipeline", 1))
  7496. }
  7497. if s.AuthenticationConfiguration != nil {
  7498. if err := s.AuthenticationConfiguration.Validate(); err != nil {
  7499. invalidParams.AddNested("AuthenticationConfiguration", err.(request.ErrInvalidParams))
  7500. }
  7501. }
  7502. if s.Filters != nil {
  7503. for i, v := range s.Filters {
  7504. if v == nil {
  7505. continue
  7506. }
  7507. if err := v.Validate(); err != nil {
  7508. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7509. }
  7510. }
  7511. }
  7512. if invalidParams.Len() > 0 {
  7513. return invalidParams
  7514. }
  7515. return nil
  7516. }
  7517. // SetAuthentication sets the Authentication field's value.
  7518. func (s *WebhookDefinition) SetAuthentication(v string) *WebhookDefinition {
  7519. s.Authentication = &v
  7520. return s
  7521. }
  7522. // SetAuthenticationConfiguration sets the AuthenticationConfiguration field's value.
  7523. func (s *WebhookDefinition) SetAuthenticationConfiguration(v *WebhookAuthConfiguration) *WebhookDefinition {
  7524. s.AuthenticationConfiguration = v
  7525. return s
  7526. }
  7527. // SetFilters sets the Filters field's value.
  7528. func (s *WebhookDefinition) SetFilters(v []*WebhookFilterRule) *WebhookDefinition {
  7529. s.Filters = v
  7530. return s
  7531. }
  7532. // SetName sets the Name field's value.
  7533. func (s *WebhookDefinition) SetName(v string) *WebhookDefinition {
  7534. s.Name = &v
  7535. return s
  7536. }
  7537. // SetTargetAction sets the TargetAction field's value.
  7538. func (s *WebhookDefinition) SetTargetAction(v string) *WebhookDefinition {
  7539. s.TargetAction = &v
  7540. return s
  7541. }
  7542. // SetTargetPipeline sets the TargetPipeline field's value.
  7543. func (s *WebhookDefinition) SetTargetPipeline(v string) *WebhookDefinition {
  7544. s.TargetPipeline = &v
  7545. return s
  7546. }
  7547. // The event criteria that specify when a webhook notification is sent to your
  7548. // URL.
  7549. type WebhookFilterRule struct {
  7550. _ struct{} `type:"structure"`
  7551. // A JsonPath expression that will be applied to the body/payload of the webhook.
  7552. // The value selected by JsonPath expression must match the value specified
  7553. // in the matchEquals field, otherwise the request will be ignored. More information
  7554. // on JsonPath expressions can be found here: https://github.com/json-path/JsonPath.
  7555. //
  7556. // JsonPath is a required field
  7557. JsonPath *string `locationName:"jsonPath" min:"1" type:"string" required:"true"`
  7558. // The value selected by the JsonPath expression must match what is supplied
  7559. // in the MatchEquals field, otherwise the request will be ignored. Properties
  7560. // from the target action configuration can be included as placeholders in this
  7561. // value by surrounding the action configuration key with curly braces. For
  7562. // example, if the value supplied here is "refs/heads/{Branch}" and the target
  7563. // action has an action configuration property called "Branch" with a value
  7564. // of "master", the MatchEquals value will be evaluated as "refs/heads/master".
  7565. // A list of action configuration properties for built-in action types can be
  7566. // found here: Pipeline Structure Reference Action Requirements (http://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements).
  7567. MatchEquals *string `locationName:"matchEquals" min:"1" type:"string"`
  7568. }
  7569. // String returns the string representation
  7570. func (s WebhookFilterRule) String() string {
  7571. return awsutil.Prettify(s)
  7572. }
  7573. // GoString returns the string representation
  7574. func (s WebhookFilterRule) GoString() string {
  7575. return s.String()
  7576. }
  7577. // Validate inspects the fields of the type to determine if they are valid.
  7578. func (s *WebhookFilterRule) Validate() error {
  7579. invalidParams := request.ErrInvalidParams{Context: "WebhookFilterRule"}
  7580. if s.JsonPath == nil {
  7581. invalidParams.Add(request.NewErrParamRequired("JsonPath"))
  7582. }
  7583. if s.JsonPath != nil && len(*s.JsonPath) < 1 {
  7584. invalidParams.Add(request.NewErrParamMinLen("JsonPath", 1))
  7585. }
  7586. if s.MatchEquals != nil && len(*s.MatchEquals) < 1 {
  7587. invalidParams.Add(request.NewErrParamMinLen("MatchEquals", 1))
  7588. }
  7589. if invalidParams.Len() > 0 {
  7590. return invalidParams
  7591. }
  7592. return nil
  7593. }
  7594. // SetJsonPath sets the JsonPath field's value.
  7595. func (s *WebhookFilterRule) SetJsonPath(v string) *WebhookFilterRule {
  7596. s.JsonPath = &v
  7597. return s
  7598. }
  7599. // SetMatchEquals sets the MatchEquals field's value.
  7600. func (s *WebhookFilterRule) SetMatchEquals(v string) *WebhookFilterRule {
  7601. s.MatchEquals = &v
  7602. return s
  7603. }
  7604. const (
  7605. // ActionCategorySource is a ActionCategory enum value
  7606. ActionCategorySource = "Source"
  7607. // ActionCategoryBuild is a ActionCategory enum value
  7608. ActionCategoryBuild = "Build"
  7609. // ActionCategoryDeploy is a ActionCategory enum value
  7610. ActionCategoryDeploy = "Deploy"
  7611. // ActionCategoryTest is a ActionCategory enum value
  7612. ActionCategoryTest = "Test"
  7613. // ActionCategoryInvoke is a ActionCategory enum value
  7614. ActionCategoryInvoke = "Invoke"
  7615. // ActionCategoryApproval is a ActionCategory enum value
  7616. ActionCategoryApproval = "Approval"
  7617. )
  7618. const (
  7619. // ActionConfigurationPropertyTypeString is a ActionConfigurationPropertyType enum value
  7620. ActionConfigurationPropertyTypeString = "String"
  7621. // ActionConfigurationPropertyTypeNumber is a ActionConfigurationPropertyType enum value
  7622. ActionConfigurationPropertyTypeNumber = "Number"
  7623. // ActionConfigurationPropertyTypeBoolean is a ActionConfigurationPropertyType enum value
  7624. ActionConfigurationPropertyTypeBoolean = "Boolean"
  7625. )
  7626. const (
  7627. // ActionExecutionStatusInProgress is a ActionExecutionStatus enum value
  7628. ActionExecutionStatusInProgress = "InProgress"
  7629. // ActionExecutionStatusSucceeded is a ActionExecutionStatus enum value
  7630. ActionExecutionStatusSucceeded = "Succeeded"
  7631. // ActionExecutionStatusFailed is a ActionExecutionStatus enum value
  7632. ActionExecutionStatusFailed = "Failed"
  7633. )
  7634. const (
  7635. // ActionOwnerAws is a ActionOwner enum value
  7636. ActionOwnerAws = "AWS"
  7637. // ActionOwnerThirdParty is a ActionOwner enum value
  7638. ActionOwnerThirdParty = "ThirdParty"
  7639. // ActionOwnerCustom is a ActionOwner enum value
  7640. ActionOwnerCustom = "Custom"
  7641. )
  7642. const (
  7643. // ApprovalStatusApproved is a ApprovalStatus enum value
  7644. ApprovalStatusApproved = "Approved"
  7645. // ApprovalStatusRejected is a ApprovalStatus enum value
  7646. ApprovalStatusRejected = "Rejected"
  7647. )
  7648. const (
  7649. // ArtifactLocationTypeS3 is a ArtifactLocationType enum value
  7650. ArtifactLocationTypeS3 = "S3"
  7651. )
  7652. const (
  7653. // ArtifactStoreTypeS3 is a ArtifactStoreType enum value
  7654. ArtifactStoreTypeS3 = "S3"
  7655. )
  7656. const (
  7657. // BlockerTypeSchedule is a BlockerType enum value
  7658. BlockerTypeSchedule = "Schedule"
  7659. )
  7660. const (
  7661. // EncryptionKeyTypeKms is a EncryptionKeyType enum value
  7662. EncryptionKeyTypeKms = "KMS"
  7663. )
  7664. const (
  7665. // FailureTypeJobFailed is a FailureType enum value
  7666. FailureTypeJobFailed = "JobFailed"
  7667. // FailureTypeConfigurationError is a FailureType enum value
  7668. FailureTypeConfigurationError = "ConfigurationError"
  7669. // FailureTypePermissionError is a FailureType enum value
  7670. FailureTypePermissionError = "PermissionError"
  7671. // FailureTypeRevisionOutOfSync is a FailureType enum value
  7672. FailureTypeRevisionOutOfSync = "RevisionOutOfSync"
  7673. // FailureTypeRevisionUnavailable is a FailureType enum value
  7674. FailureTypeRevisionUnavailable = "RevisionUnavailable"
  7675. // FailureTypeSystemUnavailable is a FailureType enum value
  7676. FailureTypeSystemUnavailable = "SystemUnavailable"
  7677. )
  7678. const (
  7679. // JobStatusCreated is a JobStatus enum value
  7680. JobStatusCreated = "Created"
  7681. // JobStatusQueued is a JobStatus enum value
  7682. JobStatusQueued = "Queued"
  7683. // JobStatusDispatched is a JobStatus enum value
  7684. JobStatusDispatched = "Dispatched"
  7685. // JobStatusInProgress is a JobStatus enum value
  7686. JobStatusInProgress = "InProgress"
  7687. // JobStatusTimedOut is a JobStatus enum value
  7688. JobStatusTimedOut = "TimedOut"
  7689. // JobStatusSucceeded is a JobStatus enum value
  7690. JobStatusSucceeded = "Succeeded"
  7691. // JobStatusFailed is a JobStatus enum value
  7692. JobStatusFailed = "Failed"
  7693. )
  7694. const (
  7695. // PipelineExecutionStatusInProgress is a PipelineExecutionStatus enum value
  7696. PipelineExecutionStatusInProgress = "InProgress"
  7697. // PipelineExecutionStatusSucceeded is a PipelineExecutionStatus enum value
  7698. PipelineExecutionStatusSucceeded = "Succeeded"
  7699. // PipelineExecutionStatusSuperseded is a PipelineExecutionStatus enum value
  7700. PipelineExecutionStatusSuperseded = "Superseded"
  7701. // PipelineExecutionStatusFailed is a PipelineExecutionStatus enum value
  7702. PipelineExecutionStatusFailed = "Failed"
  7703. )
  7704. const (
  7705. // StageExecutionStatusInProgress is a StageExecutionStatus enum value
  7706. StageExecutionStatusInProgress = "InProgress"
  7707. // StageExecutionStatusFailed is a StageExecutionStatus enum value
  7708. StageExecutionStatusFailed = "Failed"
  7709. // StageExecutionStatusSucceeded is a StageExecutionStatus enum value
  7710. StageExecutionStatusSucceeded = "Succeeded"
  7711. )
  7712. const (
  7713. // StageRetryModeFailedActions is a StageRetryMode enum value
  7714. StageRetryModeFailedActions = "FAILED_ACTIONS"
  7715. )
  7716. const (
  7717. // StageTransitionTypeInbound is a StageTransitionType enum value
  7718. StageTransitionTypeInbound = "Inbound"
  7719. // StageTransitionTypeOutbound is a StageTransitionType enum value
  7720. StageTransitionTypeOutbound = "Outbound"
  7721. )
  7722. const (
  7723. // WebhookAuthenticationTypeGithubHmac is a WebhookAuthenticationType enum value
  7724. WebhookAuthenticationTypeGithubHmac = "GITHUB_HMAC"
  7725. // WebhookAuthenticationTypeIp is a WebhookAuthenticationType enum value
  7726. WebhookAuthenticationTypeIp = "IP"
  7727. // WebhookAuthenticationTypeUnauthenticated is a WebhookAuthenticationType enum value
  7728. WebhookAuthenticationTypeUnauthenticated = "UNAUTHENTICATED"
  7729. )