| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package codepipeline
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opAcknowledgeJob = "AcknowledgeJob"
- // AcknowledgeJobRequest generates a "aws/request.Request" representing the
- // client's request for the AcknowledgeJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AcknowledgeJob for more information on using the AcknowledgeJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AcknowledgeJobRequest method.
- // req, resp := client.AcknowledgeJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob
- func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) {
- op := &request.Operation{
- Name: opAcknowledgeJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcknowledgeJobInput{}
- }
- output = &AcknowledgeJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AcknowledgeJob API operation for AWS CodePipeline.
- //
- // Returns information about a specified job and whether that job has been received
- // by the job worker. Only used for custom actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation AcknowledgeJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidNonceException "InvalidNonceException"
- // The specified nonce was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob
- func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
- req, out := c.AcknowledgeJobRequest(input)
- return out, req.Send()
- }
- // AcknowledgeJobWithContext is the same as AcknowledgeJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AcknowledgeJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) AcknowledgeJobWithContext(ctx aws.Context, input *AcknowledgeJobInput, opts ...request.Option) (*AcknowledgeJobOutput, error) {
- req, out := c.AcknowledgeJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
- // AcknowledgeThirdPartyJobRequest generates a "aws/request.Request" representing the
- // client's request for the AcknowledgeThirdPartyJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AcknowledgeThirdPartyJob for more information on using the AcknowledgeThirdPartyJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AcknowledgeThirdPartyJobRequest method.
- // req, resp := client.AcknowledgeThirdPartyJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob
- func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) {
- op := &request.Operation{
- Name: opAcknowledgeThirdPartyJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcknowledgeThirdPartyJobInput{}
- }
- output = &AcknowledgeThirdPartyJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AcknowledgeThirdPartyJob API operation for AWS CodePipeline.
- //
- // Confirms a job worker has received the specified job. Only used for partner
- // actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation AcknowledgeThirdPartyJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidNonceException "InvalidNonceException"
- // The specified nonce was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // The client token was specified in an invalid format
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob
- func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
- req, out := c.AcknowledgeThirdPartyJobRequest(input)
- return out, req.Send()
- }
- // AcknowledgeThirdPartyJobWithContext is the same as AcknowledgeThirdPartyJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AcknowledgeThirdPartyJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) AcknowledgeThirdPartyJobWithContext(ctx aws.Context, input *AcknowledgeThirdPartyJobInput, opts ...request.Option) (*AcknowledgeThirdPartyJobOutput, error) {
- req, out := c.AcknowledgeThirdPartyJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateCustomActionType = "CreateCustomActionType"
- // CreateCustomActionTypeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCustomActionType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateCustomActionType for more information on using the CreateCustomActionType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateCustomActionTypeRequest method.
- // req, resp := client.CreateCustomActionTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType
- func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) {
- op := &request.Operation{
- Name: opCreateCustomActionType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCustomActionTypeInput{}
- }
- output = &CreateCustomActionTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCustomActionType API operation for AWS CodePipeline.
- //
- // Creates a new custom action that can be used in all pipelines associated
- // with the AWS account. Only used for custom actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation CreateCustomActionType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The number of pipelines associated with the AWS account has exceeded the
- // limit allowed for the account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType
- func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
- req, out := c.CreateCustomActionTypeRequest(input)
- return out, req.Send()
- }
- // CreateCustomActionTypeWithContext is the same as CreateCustomActionType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCustomActionType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) CreateCustomActionTypeWithContext(ctx aws.Context, input *CreateCustomActionTypeInput, opts ...request.Option) (*CreateCustomActionTypeOutput, error) {
- req, out := c.CreateCustomActionTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePipeline = "CreatePipeline"
- // CreatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreatePipeline for more information on using the CreatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreatePipelineRequest method.
- // req, resp := client.CreatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline
- func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
- op := &request.Operation{
- Name: opCreatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreatePipelineInput{}
- }
- output = &CreatePipelineOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePipeline API operation for AWS CodePipeline.
- //
- // Creates a pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation CreatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNameInUseException "PipelineNameInUseException"
- // The specified pipeline name is already in use.
- //
- // * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException"
- // The specified stage declaration was specified in an invalid format.
- //
- // * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException"
- // The specified action declaration was specified in an invalid format.
- //
- // * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException"
- // Reserved for future use.
- //
- // * ErrCodeInvalidStructureException "InvalidStructureException"
- // The specified structure was specified in an invalid format.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The number of pipelines associated with the AWS account has exceeded the
- // limit allowed for the account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline
- func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- return out, req.Send()
- }
- // CreatePipelineWithContext is the same as CreatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCustomActionType = "DeleteCustomActionType"
- // DeleteCustomActionTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCustomActionType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteCustomActionType for more information on using the DeleteCustomActionType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteCustomActionTypeRequest method.
- // req, resp := client.DeleteCustomActionTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType
- func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) {
- op := &request.Operation{
- Name: opDeleteCustomActionType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteCustomActionTypeInput{}
- }
- output = &DeleteCustomActionTypeOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteCustomActionType API operation for AWS CodePipeline.
- //
- // Marks a custom action as deleted. PollForJobs for the custom action will
- // fail after the action is marked for deletion. Only used for custom actions.
- //
- // To re-create a custom action after it has been deleted you must use a string
- // in the version field that has never been used before. This string can be
- // an incremented version number, for example. To restore a deleted custom action,
- // use a JSON file that is identical to the deleted action, including the original
- // string in the version field.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation DeleteCustomActionType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType
- func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
- req, out := c.DeleteCustomActionTypeRequest(input)
- return out, req.Send()
- }
- // DeleteCustomActionTypeWithContext is the same as DeleteCustomActionType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCustomActionType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) DeleteCustomActionTypeWithContext(ctx aws.Context, input *DeleteCustomActionTypeInput, opts ...request.Option) (*DeleteCustomActionTypeOutput, error) {
- req, out := c.DeleteCustomActionTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeletePipeline = "DeletePipeline"
- // DeletePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeletePipeline for more information on using the DeletePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeletePipelineRequest method.
- // req, resp := client.DeletePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline
- func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
- op := &request.Operation{
- Name: opDeletePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeletePipelineInput{}
- }
- output = &DeletePipelineOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeletePipeline API operation for AWS CodePipeline.
- //
- // Deletes the specified pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation DeletePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline
- func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- return out, req.Send()
- }
- // DeletePipelineWithContext is the same as DeletePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeletePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteWebhook = "DeleteWebhook"
- // DeleteWebhookRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteWebhook operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteWebhook for more information on using the DeleteWebhook
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteWebhookRequest method.
- // req, resp := client.DeleteWebhookRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook
- func (c *CodePipeline) DeleteWebhookRequest(input *DeleteWebhookInput) (req *request.Request, output *DeleteWebhookOutput) {
- op := &request.Operation{
- Name: opDeleteWebhook,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteWebhookInput{}
- }
- output = &DeleteWebhookOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteWebhook API operation for AWS CodePipeline.
- //
- // Deletes a previously created webhook by name. Deleting the webhook stops
- // AWS CodePipeline from starting a pipeline every time an external event occurs.
- // The API will return successfully when trying to delete a webhook that is
- // already deleted. If a deleted webhook is re-created by calling PutWebhook
- // with the same name, it will have a different URL.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation DeleteWebhook for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook
- func (c *CodePipeline) DeleteWebhook(input *DeleteWebhookInput) (*DeleteWebhookOutput, error) {
- req, out := c.DeleteWebhookRequest(input)
- return out, req.Send()
- }
- // DeleteWebhookWithContext is the same as DeleteWebhook with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteWebhook for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) DeleteWebhookWithContext(ctx aws.Context, input *DeleteWebhookInput, opts ...request.Option) (*DeleteWebhookOutput, error) {
- req, out := c.DeleteWebhookRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeregisterWebhookWithThirdParty = "DeregisterWebhookWithThirdParty"
- // DeregisterWebhookWithThirdPartyRequest generates a "aws/request.Request" representing the
- // client's request for the DeregisterWebhookWithThirdParty operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeregisterWebhookWithThirdParty for more information on using the DeregisterWebhookWithThirdParty
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeregisterWebhookWithThirdPartyRequest method.
- // req, resp := client.DeregisterWebhookWithThirdPartyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty
- func (c *CodePipeline) DeregisterWebhookWithThirdPartyRequest(input *DeregisterWebhookWithThirdPartyInput) (req *request.Request, output *DeregisterWebhookWithThirdPartyOutput) {
- op := &request.Operation{
- Name: opDeregisterWebhookWithThirdParty,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeregisterWebhookWithThirdPartyInput{}
- }
- output = &DeregisterWebhookWithThirdPartyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeregisterWebhookWithThirdParty API operation for AWS CodePipeline.
- //
- // Removes the connection between the webhook that was created by CodePipeline
- // and the external tool with events to be detected. Currently only supported
- // for webhooks that target an action type of GitHub.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation DeregisterWebhookWithThirdParty for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeWebhookNotFoundException "WebhookNotFoundException"
- // The specified webhook was entered in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty
- func (c *CodePipeline) DeregisterWebhookWithThirdParty(input *DeregisterWebhookWithThirdPartyInput) (*DeregisterWebhookWithThirdPartyOutput, error) {
- req, out := c.DeregisterWebhookWithThirdPartyRequest(input)
- return out, req.Send()
- }
- // DeregisterWebhookWithThirdPartyWithContext is the same as DeregisterWebhookWithThirdParty with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeregisterWebhookWithThirdParty for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) DeregisterWebhookWithThirdPartyWithContext(ctx aws.Context, input *DeregisterWebhookWithThirdPartyInput, opts ...request.Option) (*DeregisterWebhookWithThirdPartyOutput, error) {
- req, out := c.DeregisterWebhookWithThirdPartyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisableStageTransition = "DisableStageTransition"
- // DisableStageTransitionRequest generates a "aws/request.Request" representing the
- // client's request for the DisableStageTransition operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisableStageTransition for more information on using the DisableStageTransition
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisableStageTransitionRequest method.
- // req, resp := client.DisableStageTransitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition
- func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) {
- op := &request.Operation{
- Name: opDisableStageTransition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableStageTransitionInput{}
- }
- output = &DisableStageTransitionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DisableStageTransition API operation for AWS CodePipeline.
- //
- // Prevents artifacts in a pipeline from transitioning to the next stage in
- // the pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation DisableStageTransition for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodeStageNotFoundException "StageNotFoundException"
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition
- func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
- req, out := c.DisableStageTransitionRequest(input)
- return out, req.Send()
- }
- // DisableStageTransitionWithContext is the same as DisableStageTransition with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisableStageTransition for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) DisableStageTransitionWithContext(ctx aws.Context, input *DisableStageTransitionInput, opts ...request.Option) (*DisableStageTransitionOutput, error) {
- req, out := c.DisableStageTransitionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEnableStageTransition = "EnableStageTransition"
- // EnableStageTransitionRequest generates a "aws/request.Request" representing the
- // client's request for the EnableStageTransition operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See EnableStageTransition for more information on using the EnableStageTransition
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the EnableStageTransitionRequest method.
- // req, resp := client.EnableStageTransitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition
- func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) {
- op := &request.Operation{
- Name: opEnableStageTransition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableStageTransitionInput{}
- }
- output = &EnableStageTransitionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // EnableStageTransition API operation for AWS CodePipeline.
- //
- // Enables artifacts in a pipeline to transition to a stage in a pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation EnableStageTransition for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodeStageNotFoundException "StageNotFoundException"
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition
- func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
- req, out := c.EnableStageTransitionRequest(input)
- return out, req.Send()
- }
- // EnableStageTransitionWithContext is the same as EnableStageTransition with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EnableStageTransition for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) EnableStageTransitionWithContext(ctx aws.Context, input *EnableStageTransitionInput, opts ...request.Option) (*EnableStageTransitionOutput, error) {
- req, out := c.EnableStageTransitionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetJobDetails = "GetJobDetails"
- // GetJobDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetJobDetails operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetJobDetails for more information on using the GetJobDetails
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetJobDetailsRequest method.
- // req, resp := client.GetJobDetailsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails
- func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) {
- op := &request.Operation{
- Name: opGetJobDetails,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetJobDetailsInput{}
- }
- output = &GetJobDetailsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetJobDetails API operation for AWS CodePipeline.
- //
- // Returns information about a job. Only used for custom actions.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials for
- // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
- // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
- // this API returns any secret values defined for the action.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation GetJobDetails for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails
- func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
- req, out := c.GetJobDetailsRequest(input)
- return out, req.Send()
- }
- // GetJobDetailsWithContext is the same as GetJobDetails with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetJobDetails for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) GetJobDetailsWithContext(ctx aws.Context, input *GetJobDetailsInput, opts ...request.Option) (*GetJobDetailsOutput, error) {
- req, out := c.GetJobDetailsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPipeline = "GetPipeline"
- // GetPipelineRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetPipeline for more information on using the GetPipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetPipelineRequest method.
- // req, resp := client.GetPipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline
- func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) {
- op := &request.Operation{
- Name: opGetPipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineInput{}
- }
- output = &GetPipelineOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPipeline API operation for AWS CodePipeline.
- //
- // Returns the metadata, structure, stages, and actions of a pipeline. Can be
- // used to return the entire structure of a pipeline in JSON format, which can
- // then be modified and used to update the pipeline structure with UpdatePipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation GetPipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodePipelineVersionNotFoundException "PipelineVersionNotFoundException"
- // The specified pipeline version was specified in an invalid format or cannot
- // be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline
- func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
- req, out := c.GetPipelineRequest(input)
- return out, req.Send()
- }
- // GetPipelineWithContext is the same as GetPipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) GetPipelineWithContext(ctx aws.Context, input *GetPipelineInput, opts ...request.Option) (*GetPipelineOutput, error) {
- req, out := c.GetPipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPipelineExecution = "GetPipelineExecution"
- // GetPipelineExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipelineExecution operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetPipelineExecution for more information on using the GetPipelineExecution
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetPipelineExecutionRequest method.
- // req, resp := client.GetPipelineExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution
- func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionInput) (req *request.Request, output *GetPipelineExecutionOutput) {
- op := &request.Operation{
- Name: opGetPipelineExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineExecutionInput{}
- }
- output = &GetPipelineExecutionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPipelineExecution API operation for AWS CodePipeline.
- //
- // Returns information about an execution of a pipeline, including details about
- // artifacts, the pipeline execution ID, and the name, version, and status of
- // the pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation GetPipelineExecution for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodePipelineExecutionNotFoundException "PipelineExecutionNotFoundException"
- // The pipeline execution was specified in an invalid format or cannot be found,
- // or an execution ID does not belong to the specified pipeline.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution
- func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) {
- req, out := c.GetPipelineExecutionRequest(input)
- return out, req.Send()
- }
- // GetPipelineExecutionWithContext is the same as GetPipelineExecution with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPipelineExecution for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) GetPipelineExecutionWithContext(ctx aws.Context, input *GetPipelineExecutionInput, opts ...request.Option) (*GetPipelineExecutionOutput, error) {
- req, out := c.GetPipelineExecutionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPipelineState = "GetPipelineState"
- // GetPipelineStateRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipelineState operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetPipelineState for more information on using the GetPipelineState
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetPipelineStateRequest method.
- // req, resp := client.GetPipelineStateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState
- func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) {
- op := &request.Operation{
- Name: opGetPipelineState,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineStateInput{}
- }
- output = &GetPipelineStateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPipelineState API operation for AWS CodePipeline.
- //
- // Returns information about the state of a pipeline, including the stages and
- // actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation GetPipelineState for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState
- func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
- req, out := c.GetPipelineStateRequest(input)
- return out, req.Send()
- }
- // GetPipelineStateWithContext is the same as GetPipelineState with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPipelineState for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) GetPipelineStateWithContext(ctx aws.Context, input *GetPipelineStateInput, opts ...request.Option) (*GetPipelineStateOutput, error) {
- req, out := c.GetPipelineStateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
- // GetThirdPartyJobDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetThirdPartyJobDetails operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetThirdPartyJobDetails for more information on using the GetThirdPartyJobDetails
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetThirdPartyJobDetailsRequest method.
- // req, resp := client.GetThirdPartyJobDetailsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails
- func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) {
- op := &request.Operation{
- Name: opGetThirdPartyJobDetails,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetThirdPartyJobDetailsInput{}
- }
- output = &GetThirdPartyJobDetailsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetThirdPartyJobDetails API operation for AWS CodePipeline.
- //
- // Requests the details of a job for a third party action. Only used for partner
- // actions.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials for
- // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
- // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
- // this API returns any secret values defined for the action.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation GetThirdPartyJobDetails for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // The client token was specified in an invalid format
- //
- // * ErrCodeInvalidJobException "InvalidJobException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails
- func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
- req, out := c.GetThirdPartyJobDetailsRequest(input)
- return out, req.Send()
- }
- // GetThirdPartyJobDetailsWithContext is the same as GetThirdPartyJobDetails with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetThirdPartyJobDetails for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) GetThirdPartyJobDetailsWithContext(ctx aws.Context, input *GetThirdPartyJobDetailsInput, opts ...request.Option) (*GetThirdPartyJobDetailsOutput, error) {
- req, out := c.GetThirdPartyJobDetailsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListActionTypes = "ListActionTypes"
- // ListActionTypesRequest generates a "aws/request.Request" representing the
- // client's request for the ListActionTypes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListActionTypes for more information on using the ListActionTypes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListActionTypesRequest method.
- // req, resp := client.ListActionTypesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes
- func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) {
- op := &request.Operation{
- Name: opListActionTypes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListActionTypesInput{}
- }
- output = &ListActionTypesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListActionTypes API operation for AWS CodePipeline.
- //
- // Gets a summary of all AWS CodePipeline action types associated with your
- // account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation ListActionTypes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The next token was specified in an invalid format. Make sure that the next
- // token you provided is the token returned by a previous call.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes
- func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
- req, out := c.ListActionTypesRequest(input)
- return out, req.Send()
- }
- // ListActionTypesWithContext is the same as ListActionTypes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListActionTypes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) ListActionTypesWithContext(ctx aws.Context, input *ListActionTypesInput, opts ...request.Option) (*ListActionTypesOutput, error) {
- req, out := c.ListActionTypesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPipelineExecutions = "ListPipelineExecutions"
- // ListPipelineExecutionsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelineExecutions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListPipelineExecutions for more information on using the ListPipelineExecutions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListPipelineExecutionsRequest method.
- // req, resp := client.ListPipelineExecutionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
- func (c *CodePipeline) ListPipelineExecutionsRequest(input *ListPipelineExecutionsInput) (req *request.Request, output *ListPipelineExecutionsOutput) {
- op := &request.Operation{
- Name: opListPipelineExecutions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListPipelineExecutionsInput{}
- }
- output = &ListPipelineExecutionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPipelineExecutions API operation for AWS CodePipeline.
- //
- // Gets a summary of the most recent executions for a pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation ListPipelineExecutions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The next token was specified in an invalid format. Make sure that the next
- // token you provided is the token returned by a previous call.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
- func (c *CodePipeline) ListPipelineExecutions(input *ListPipelineExecutionsInput) (*ListPipelineExecutionsOutput, error) {
- req, out := c.ListPipelineExecutionsRequest(input)
- return out, req.Send()
- }
- // ListPipelineExecutionsWithContext is the same as ListPipelineExecutions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPipelineExecutions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) ListPipelineExecutionsWithContext(ctx aws.Context, input *ListPipelineExecutionsInput, opts ...request.Option) (*ListPipelineExecutionsOutput, error) {
- req, out := c.ListPipelineExecutionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPipelines = "ListPipelines"
- // ListPipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelines operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListPipelines for more information on using the ListPipelines
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListPipelinesRequest method.
- // req, resp := client.ListPipelinesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines
- func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
- op := &request.Operation{
- Name: opListPipelines,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListPipelinesInput{}
- }
- output = &ListPipelinesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPipelines API operation for AWS CodePipeline.
- //
- // Gets a summary of all of the pipelines associated with your account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation ListPipelines for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The next token was specified in an invalid format. Make sure that the next
- // token you provided is the token returned by a previous call.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines
- func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- return out, req.Send()
- }
- // ListPipelinesWithContext is the same as ListPipelines with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPipelines for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListWebhooks = "ListWebhooks"
- // ListWebhooksRequest generates a "aws/request.Request" representing the
- // client's request for the ListWebhooks operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListWebhooks for more information on using the ListWebhooks
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListWebhooksRequest method.
- // req, resp := client.ListWebhooksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooks
- func (c *CodePipeline) ListWebhooksRequest(input *ListWebhooksInput) (req *request.Request, output *ListWebhooksOutput) {
- op := &request.Operation{
- Name: opListWebhooks,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListWebhooksInput{}
- }
- output = &ListWebhooksOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListWebhooks API operation for AWS CodePipeline.
- //
- // Gets a listing of all the webhooks in this region for this account. The output
- // lists all webhooks and includes the webhook URL and ARN, as well the configuration
- // for each webhook.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation ListWebhooks for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The next token was specified in an invalid format. Make sure that the next
- // token you provided is the token returned by a previous call.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooks
- func (c *CodePipeline) ListWebhooks(input *ListWebhooksInput) (*ListWebhooksOutput, error) {
- req, out := c.ListWebhooksRequest(input)
- return out, req.Send()
- }
- // ListWebhooksWithContext is the same as ListWebhooks with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListWebhooks for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) ListWebhooksWithContext(ctx aws.Context, input *ListWebhooksInput, opts ...request.Option) (*ListWebhooksOutput, error) {
- req, out := c.ListWebhooksRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPollForJobs = "PollForJobs"
- // PollForJobsRequest generates a "aws/request.Request" representing the
- // client's request for the PollForJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PollForJobs for more information on using the PollForJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PollForJobsRequest method.
- // req, resp := client.PollForJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs
- func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) {
- op := &request.Operation{
- Name: opPollForJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForJobsInput{}
- }
- output = &PollForJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PollForJobs API operation for AWS CodePipeline.
- //
- // Returns information about any jobs for AWS CodePipeline to act upon. PollForJobs
- // is only valid for action types with "Custom" in the owner field. If the action
- // type contains "AWS" or "ThirdParty" in the owner field, the PollForJobs action
- // returns an error.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials for
- // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
- // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
- // this API returns any secret values defined for the action.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PollForJobs for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException"
- // The specified action type cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs
- func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
- req, out := c.PollForJobsRequest(input)
- return out, req.Send()
- }
- // PollForJobsWithContext is the same as PollForJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PollForJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PollForJobsWithContext(ctx aws.Context, input *PollForJobsInput, opts ...request.Option) (*PollForJobsOutput, error) {
- req, out := c.PollForJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
- // PollForThirdPartyJobsRequest generates a "aws/request.Request" representing the
- // client's request for the PollForThirdPartyJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PollForThirdPartyJobs for more information on using the PollForThirdPartyJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PollForThirdPartyJobsRequest method.
- // req, resp := client.PollForThirdPartyJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs
- func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) {
- op := &request.Operation{
- Name: opPollForThirdPartyJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForThirdPartyJobsInput{}
- }
- output = &PollForThirdPartyJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PollForThirdPartyJobs API operation for AWS CodePipeline.
- //
- // Determines whether there are any third party jobs for a job worker to act
- // on. Only used for partner actions.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials for
- // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
- // requires access to that Amazon S3 bucket for input or output artifacts.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PollForThirdPartyJobs for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException"
- // The specified action type cannot be found.
- //
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs
- func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
- req, out := c.PollForThirdPartyJobsRequest(input)
- return out, req.Send()
- }
- // PollForThirdPartyJobsWithContext is the same as PollForThirdPartyJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PollForThirdPartyJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PollForThirdPartyJobsWithContext(ctx aws.Context, input *PollForThirdPartyJobsInput, opts ...request.Option) (*PollForThirdPartyJobsOutput, error) {
- req, out := c.PollForThirdPartyJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutActionRevision = "PutActionRevision"
- // PutActionRevisionRequest generates a "aws/request.Request" representing the
- // client's request for the PutActionRevision operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutActionRevision for more information on using the PutActionRevision
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutActionRevisionRequest method.
- // req, resp := client.PutActionRevisionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision
- func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) {
- op := &request.Operation{
- Name: opPutActionRevision,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutActionRevisionInput{}
- }
- output = &PutActionRevisionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PutActionRevision API operation for AWS CodePipeline.
- //
- // Provides information to AWS CodePipeline about new revisions to a source.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutActionRevision for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodeStageNotFoundException "StageNotFoundException"
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // * ErrCodeActionNotFoundException "ActionNotFoundException"
- // The specified action cannot be found.
- //
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision
- func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
- req, out := c.PutActionRevisionRequest(input)
- return out, req.Send()
- }
- // PutActionRevisionWithContext is the same as PutActionRevision with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutActionRevision for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutActionRevisionWithContext(ctx aws.Context, input *PutActionRevisionInput, opts ...request.Option) (*PutActionRevisionOutput, error) {
- req, out := c.PutActionRevisionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutApprovalResult = "PutApprovalResult"
- // PutApprovalResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutApprovalResult operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutApprovalResult for more information on using the PutApprovalResult
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutApprovalResultRequest method.
- // req, resp := client.PutApprovalResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult
- func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) (req *request.Request, output *PutApprovalResultOutput) {
- op := &request.Operation{
- Name: opPutApprovalResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutApprovalResultInput{}
- }
- output = &PutApprovalResultOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PutApprovalResult API operation for AWS CodePipeline.
- //
- // Provides the response to a manual approval request to AWS CodePipeline. Valid
- // responses include Approved and Rejected.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutApprovalResult for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidApprovalTokenException "InvalidApprovalTokenException"
- // The approval request already received a response or has expired.
- //
- // * ErrCodeApprovalAlreadyCompletedException "ApprovalAlreadyCompletedException"
- // The approval action has already been approved or rejected.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodeStageNotFoundException "StageNotFoundException"
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // * ErrCodeActionNotFoundException "ActionNotFoundException"
- // The specified action cannot be found.
- //
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult
- func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) {
- req, out := c.PutApprovalResultRequest(input)
- return out, req.Send()
- }
- // PutApprovalResultWithContext is the same as PutApprovalResult with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutApprovalResult for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutApprovalResultWithContext(ctx aws.Context, input *PutApprovalResultInput, opts ...request.Option) (*PutApprovalResultOutput, error) {
- req, out := c.PutApprovalResultRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutJobFailureResult = "PutJobFailureResult"
- // PutJobFailureResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutJobFailureResult operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutJobFailureResult for more information on using the PutJobFailureResult
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutJobFailureResultRequest method.
- // req, resp := client.PutJobFailureResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult
- func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) {
- op := &request.Operation{
- Name: opPutJobFailureResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutJobFailureResultInput{}
- }
- output = &PutJobFailureResultOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutJobFailureResult API operation for AWS CodePipeline.
- //
- // Represents the failure of a job as returned to the pipeline by a job worker.
- // Only used for custom actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutJobFailureResult for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ErrCodeInvalidJobStateException "InvalidJobStateException"
- // The specified job state was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult
- func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
- req, out := c.PutJobFailureResultRequest(input)
- return out, req.Send()
- }
- // PutJobFailureResultWithContext is the same as PutJobFailureResult with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutJobFailureResult for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutJobFailureResultWithContext(ctx aws.Context, input *PutJobFailureResultInput, opts ...request.Option) (*PutJobFailureResultOutput, error) {
- req, out := c.PutJobFailureResultRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutJobSuccessResult = "PutJobSuccessResult"
- // PutJobSuccessResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutJobSuccessResult operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutJobSuccessResult for more information on using the PutJobSuccessResult
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutJobSuccessResultRequest method.
- // req, resp := client.PutJobSuccessResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult
- func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) {
- op := &request.Operation{
- Name: opPutJobSuccessResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutJobSuccessResultInput{}
- }
- output = &PutJobSuccessResultOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutJobSuccessResult API operation for AWS CodePipeline.
- //
- // Represents the success of a job as returned to the pipeline by a job worker.
- // Only used for custom actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutJobSuccessResult for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ErrCodeInvalidJobStateException "InvalidJobStateException"
- // The specified job state was specified in an invalid format.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult
- func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
- req, out := c.PutJobSuccessResultRequest(input)
- return out, req.Send()
- }
- // PutJobSuccessResultWithContext is the same as PutJobSuccessResult with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutJobSuccessResult for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutJobSuccessResultWithContext(ctx aws.Context, input *PutJobSuccessResultInput, opts ...request.Option) (*PutJobSuccessResultOutput, error) {
- req, out := c.PutJobSuccessResultRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
- // PutThirdPartyJobFailureResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutThirdPartyJobFailureResult operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutThirdPartyJobFailureResult for more information on using the PutThirdPartyJobFailureResult
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutThirdPartyJobFailureResultRequest method.
- // req, resp := client.PutThirdPartyJobFailureResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult
- func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) {
- op := &request.Operation{
- Name: opPutThirdPartyJobFailureResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutThirdPartyJobFailureResultInput{}
- }
- output = &PutThirdPartyJobFailureResultOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutThirdPartyJobFailureResult API operation for AWS CodePipeline.
- //
- // Represents the failure of a third party job as returned to the pipeline by
- // a job worker. Only used for partner actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutThirdPartyJobFailureResult for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ErrCodeInvalidJobStateException "InvalidJobStateException"
- // The specified job state was specified in an invalid format.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // The client token was specified in an invalid format
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult
- func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
- req, out := c.PutThirdPartyJobFailureResultRequest(input)
- return out, req.Send()
- }
- // PutThirdPartyJobFailureResultWithContext is the same as PutThirdPartyJobFailureResult with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutThirdPartyJobFailureResult for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutThirdPartyJobFailureResultWithContext(ctx aws.Context, input *PutThirdPartyJobFailureResultInput, opts ...request.Option) (*PutThirdPartyJobFailureResultOutput, error) {
- req, out := c.PutThirdPartyJobFailureResultRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
- // PutThirdPartyJobSuccessResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutThirdPartyJobSuccessResult operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutThirdPartyJobSuccessResult for more information on using the PutThirdPartyJobSuccessResult
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutThirdPartyJobSuccessResultRequest method.
- // req, resp := client.PutThirdPartyJobSuccessResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult
- func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) {
- op := &request.Operation{
- Name: opPutThirdPartyJobSuccessResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutThirdPartyJobSuccessResultInput{}
- }
- output = &PutThirdPartyJobSuccessResultOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutThirdPartyJobSuccessResult API operation for AWS CodePipeline.
- //
- // Represents the success of a third party job as returned to the pipeline by
- // a job worker. Only used for partner actions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutThirdPartyJobSuccessResult for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeJobNotFoundException "JobNotFoundException"
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ErrCodeInvalidJobStateException "InvalidJobStateException"
- // The specified job state was specified in an invalid format.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // The client token was specified in an invalid format
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult
- func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
- req, out := c.PutThirdPartyJobSuccessResultRequest(input)
- return out, req.Send()
- }
- // PutThirdPartyJobSuccessResultWithContext is the same as PutThirdPartyJobSuccessResult with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutThirdPartyJobSuccessResult for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutThirdPartyJobSuccessResultWithContext(ctx aws.Context, input *PutThirdPartyJobSuccessResultInput, opts ...request.Option) (*PutThirdPartyJobSuccessResultOutput, error) {
- req, out := c.PutThirdPartyJobSuccessResultRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutWebhook = "PutWebhook"
- // PutWebhookRequest generates a "aws/request.Request" representing the
- // client's request for the PutWebhook operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutWebhook for more information on using the PutWebhook
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutWebhookRequest method.
- // req, resp := client.PutWebhookRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhook
- func (c *CodePipeline) PutWebhookRequest(input *PutWebhookInput) (req *request.Request, output *PutWebhookOutput) {
- op := &request.Operation{
- Name: opPutWebhook,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutWebhookInput{}
- }
- output = &PutWebhookOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PutWebhook API operation for AWS CodePipeline.
- //
- // Defines a webhook and returns a unique webhook URL generated by CodePipeline.
- // This URL can be supplied to third party source hosting providers to call
- // every time there's a code change. When CodePipeline receives a POST request
- // on this URL, the pipeline defined in the webhook is started as long as the
- // POST request satisfied the authentication and filtering requirements supplied
- // when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty
- // APIs can be used to automatically configure supported third parties to call
- // the generated webhook URL.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation PutWebhook for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The number of pipelines associated with the AWS account has exceeded the
- // limit allowed for the account.
- //
- // * ErrCodeInvalidWebhookFilterPatternException "InvalidWebhookFilterPatternException"
- // The specified event filter rule is in an invalid format.
- //
- // * ErrCodeInvalidWebhookAuthenticationParametersException "InvalidWebhookAuthenticationParametersException"
- // The specified authentication type is in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhook
- func (c *CodePipeline) PutWebhook(input *PutWebhookInput) (*PutWebhookOutput, error) {
- req, out := c.PutWebhookRequest(input)
- return out, req.Send()
- }
- // PutWebhookWithContext is the same as PutWebhook with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutWebhook for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) PutWebhookWithContext(ctx aws.Context, input *PutWebhookInput, opts ...request.Option) (*PutWebhookOutput, error) {
- req, out := c.PutWebhookRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRegisterWebhookWithThirdParty = "RegisterWebhookWithThirdParty"
- // RegisterWebhookWithThirdPartyRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterWebhookWithThirdParty operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RegisterWebhookWithThirdParty for more information on using the RegisterWebhookWithThirdParty
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RegisterWebhookWithThirdPartyRequest method.
- // req, resp := client.RegisterWebhookWithThirdPartyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdParty
- func (c *CodePipeline) RegisterWebhookWithThirdPartyRequest(input *RegisterWebhookWithThirdPartyInput) (req *request.Request, output *RegisterWebhookWithThirdPartyOutput) {
- op := &request.Operation{
- Name: opRegisterWebhookWithThirdParty,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RegisterWebhookWithThirdPartyInput{}
- }
- output = &RegisterWebhookWithThirdPartyOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RegisterWebhookWithThirdParty API operation for AWS CodePipeline.
- //
- // Configures a connection between the webhook that was created and the external
- // tool with events to be detected.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation RegisterWebhookWithThirdParty for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeWebhookNotFoundException "WebhookNotFoundException"
- // The specified webhook was entered in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdParty
- func (c *CodePipeline) RegisterWebhookWithThirdParty(input *RegisterWebhookWithThirdPartyInput) (*RegisterWebhookWithThirdPartyOutput, error) {
- req, out := c.RegisterWebhookWithThirdPartyRequest(input)
- return out, req.Send()
- }
- // RegisterWebhookWithThirdPartyWithContext is the same as RegisterWebhookWithThirdParty with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RegisterWebhookWithThirdParty for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) RegisterWebhookWithThirdPartyWithContext(ctx aws.Context, input *RegisterWebhookWithThirdPartyInput, opts ...request.Option) (*RegisterWebhookWithThirdPartyOutput, error) {
- req, out := c.RegisterWebhookWithThirdPartyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRetryStageExecution = "RetryStageExecution"
- // RetryStageExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the RetryStageExecution operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RetryStageExecution for more information on using the RetryStageExecution
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RetryStageExecutionRequest method.
- // req, resp := client.RetryStageExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecution
- func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInput) (req *request.Request, output *RetryStageExecutionOutput) {
- op := &request.Operation{
- Name: opRetryStageExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RetryStageExecutionInput{}
- }
- output = &RetryStageExecutionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RetryStageExecution API operation for AWS CodePipeline.
- //
- // Resumes the pipeline execution by retrying the last failed actions in a stage.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation RetryStageExecution for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * ErrCodeStageNotFoundException "StageNotFoundException"
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // * ErrCodeStageNotRetryableException "StageNotRetryableException"
- // The specified stage can't be retried because the pipeline structure or stage
- // state changed after the stage was not completed; the stage contains no failed
- // actions; one or more actions are still in progress; or another retry attempt
- // is already in progress.
- //
- // * ErrCodeNotLatestPipelineExecutionException "NotLatestPipelineExecutionException"
- // The stage has failed in a later run of the pipeline and the pipelineExecutionId
- // associated with the request is out of date.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecution
- func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) {
- req, out := c.RetryStageExecutionRequest(input)
- return out, req.Send()
- }
- // RetryStageExecutionWithContext is the same as RetryStageExecution with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RetryStageExecution for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) RetryStageExecutionWithContext(ctx aws.Context, input *RetryStageExecutionInput, opts ...request.Option) (*RetryStageExecutionOutput, error) {
- req, out := c.RetryStageExecutionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartPipelineExecution = "StartPipelineExecution"
- // StartPipelineExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the StartPipelineExecution operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartPipelineExecution for more information on using the StartPipelineExecution
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartPipelineExecutionRequest method.
- // req, resp := client.StartPipelineExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution
- func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) {
- op := &request.Operation{
- Name: opStartPipelineExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartPipelineExecutionInput{}
- }
- output = &StartPipelineExecutionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartPipelineExecution API operation for AWS CodePipeline.
- //
- // Starts the specified pipeline. Specifically, it begins processing the latest
- // commit to the source location specified as part of the pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation StartPipelineExecution for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution
- func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
- req, out := c.StartPipelineExecutionRequest(input)
- return out, req.Send()
- }
- // StartPipelineExecutionWithContext is the same as StartPipelineExecution with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartPipelineExecution for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) StartPipelineExecutionWithContext(ctx aws.Context, input *StartPipelineExecutionInput, opts ...request.Option) (*StartPipelineExecutionOutput, error) {
- req, out := c.StartPipelineExecutionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdatePipeline = "UpdatePipeline"
- // UpdatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdatePipeline for more information on using the UpdatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdatePipelineRequest method.
- // req, resp := client.UpdatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipeline
- func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
- op := &request.Operation{
- Name: opUpdatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdatePipelineInput{}
- }
- output = &UpdatePipelineOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdatePipeline API operation for AWS CodePipeline.
- //
- // Updates a specified pipeline with edits or changes to its structure. Use
- // a JSON file with the pipeline structure in conjunction with UpdatePipeline
- // to provide the full structure of the pipeline. Updating the pipeline increases
- // the version number of the pipeline by 1.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS CodePipeline's
- // API operation UpdatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeValidationException "ValidationException"
- // The validation was specified in an invalid format.
- //
- // * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException"
- // The specified stage declaration was specified in an invalid format.
- //
- // * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException"
- // The specified action declaration was specified in an invalid format.
- //
- // * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException"
- // Reserved for future use.
- //
- // * ErrCodeInvalidStructureException "InvalidStructureException"
- // The specified structure was specified in an invalid format.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The number of pipelines associated with the AWS account has exceeded the
- // limit allowed for the account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipeline
- func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- return out, req.Send()
- }
- // UpdatePipelineWithContext is the same as UpdatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *CodePipeline) UpdatePipelineWithContext(ctx aws.Context, input *UpdatePipelineInput, opts ...request.Option) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Represents an AWS session credentials object. These credentials are temporary
- // credentials that are issued by AWS Secure Token Service (STS). They can be
- // used to access input and output artifacts in the Amazon S3 bucket used to
- // store artifact for the pipeline in AWS CodePipeline.
- type AWSSessionCredentials struct {
- _ struct{} `type:"structure" sensitive:"true"`
- // The access key for the session.
- //
- // AccessKeyId is a required field
- AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true"`
- // The secret access key for the session.
- //
- // SecretAccessKey is a required field
- SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
- // The token for the session.
- //
- // SessionToken is a required field
- SessionToken *string `locationName:"sessionToken" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AWSSessionCredentials) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AWSSessionCredentials) GoString() string {
- return s.String()
- }
- // SetAccessKeyId sets the AccessKeyId field's value.
- func (s *AWSSessionCredentials) SetAccessKeyId(v string) *AWSSessionCredentials {
- s.AccessKeyId = &v
- return s
- }
- // SetSecretAccessKey sets the SecretAccessKey field's value.
- func (s *AWSSessionCredentials) SetSecretAccessKey(v string) *AWSSessionCredentials {
- s.SecretAccessKey = &v
- return s
- }
- // SetSessionToken sets the SessionToken field's value.
- func (s *AWSSessionCredentials) SetSessionToken(v string) *AWSSessionCredentials {
- s.SessionToken = &v
- return s
- }
- // Represents the input of an AcknowledgeJob action.
- type AcknowledgeJobInput struct {
- _ struct{} `type:"structure"`
- // The unique system-generated ID of the job for which you want to confirm receipt.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. Get this number from the
- // response of the PollForJobs request that returned this job.
- //
- // Nonce is a required field
- Nonce *string `locationName:"nonce" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AcknowledgeJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcknowledgeJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcknowledgeJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.Nonce == nil {
- invalidParams.Add(request.NewErrParamRequired("Nonce"))
- }
- if s.Nonce != nil && len(*s.Nonce) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Nonce", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetJobId sets the JobId field's value.
- func (s *AcknowledgeJobInput) SetJobId(v string) *AcknowledgeJobInput {
- s.JobId = &v
- return s
- }
- // SetNonce sets the Nonce field's value.
- func (s *AcknowledgeJobInput) SetNonce(v string) *AcknowledgeJobInput {
- s.Nonce = &v
- return s
- }
- // Represents the output of an AcknowledgeJob action.
- type AcknowledgeJobOutput struct {
- _ struct{} `type:"structure"`
- // Whether the job worker has received the specified job.
- Status *string `locationName:"status" type:"string" enum:"JobStatus"`
- }
- // String returns the string representation
- func (s AcknowledgeJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeJobOutput) GoString() string {
- return s.String()
- }
- // SetStatus sets the Status field's value.
- func (s *AcknowledgeJobOutput) SetStatus(v string) *AcknowledgeJobOutput {
- s.Status = &v
- return s
- }
- // Represents the input of an AcknowledgeThirdPartyJob action.
- type AcknowledgeThirdPartyJobInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- //
- // ClientToken is a required field
- ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
- // The unique system-generated ID of the job.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. Get this number from the
- // response to a GetThirdPartyJobDetails request.
- //
- // Nonce is a required field
- Nonce *string `locationName:"nonce" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AcknowledgeThirdPartyJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeThirdPartyJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcknowledgeThirdPartyJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcknowledgeThirdPartyJobInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.ClientToken != nil && len(*s.ClientToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.Nonce == nil {
- invalidParams.Add(request.NewErrParamRequired("Nonce"))
- }
- if s.Nonce != nil && len(*s.Nonce) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Nonce", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *AcknowledgeThirdPartyJobInput) SetClientToken(v string) *AcknowledgeThirdPartyJobInput {
- s.ClientToken = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *AcknowledgeThirdPartyJobInput) SetJobId(v string) *AcknowledgeThirdPartyJobInput {
- s.JobId = &v
- return s
- }
- // SetNonce sets the Nonce field's value.
- func (s *AcknowledgeThirdPartyJobInput) SetNonce(v string) *AcknowledgeThirdPartyJobInput {
- s.Nonce = &v
- return s
- }
- // Represents the output of an AcknowledgeThirdPartyJob action.
- type AcknowledgeThirdPartyJobOutput struct {
- _ struct{} `type:"structure"`
- // The status information for the third party job, if any.
- Status *string `locationName:"status" type:"string" enum:"JobStatus"`
- }
- // String returns the string representation
- func (s AcknowledgeThirdPartyJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeThirdPartyJobOutput) GoString() string {
- return s.String()
- }
- // SetStatus sets the Status field's value.
- func (s *AcknowledgeThirdPartyJobOutput) SetStatus(v string) *AcknowledgeThirdPartyJobOutput {
- s.Status = &v
- return s
- }
- // Represents information about an action configuration.
- type ActionConfiguration struct {
- _ struct{} `type:"structure"`
- // The configuration data for the action.
- Configuration map[string]*string `locationName:"configuration" type:"map"`
- }
- // String returns the string representation
- func (s ActionConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionConfiguration) GoString() string {
- return s.String()
- }
- // SetConfiguration sets the Configuration field's value.
- func (s *ActionConfiguration) SetConfiguration(v map[string]*string) *ActionConfiguration {
- s.Configuration = v
- return s
- }
- // Represents information about an action configuration property.
- type ActionConfigurationProperty struct {
- _ struct{} `type:"structure"`
- // The description of the action configuration property that will be displayed
- // to users.
- Description *string `locationName:"description" min:"1" type:"string"`
- // Whether the configuration property is a key.
- //
- // Key is a required field
- Key *bool `locationName:"key" type:"boolean" required:"true"`
- // The name of the action configuration property.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // Indicates that the property will be used in conjunction with PollForJobs.
- // When creating a custom action, an action can have up to one queryable property.
- // If it has one, that property must be both required and not secret.
- //
- // If you create a pipeline with a custom action type, and that custom action
- // contains a queryable property, the value for that configuration property
- // is subject to additional restrictions. The value must be less than or equal
- // to twenty (20) characters. The value can contain only alphanumeric characters,
- // underscores, and hyphens.
- Queryable *bool `locationName:"queryable" type:"boolean"`
- // Whether the configuration property is a required value.
- //
- // Required is a required field
- Required *bool `locationName:"required" type:"boolean" required:"true"`
- // Whether the configuration property is secret. Secrets are hidden from all
- // calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
- // PollForThirdPartyJobs.
- //
- // When updating a pipeline, passing * * * * * without changing any other values
- // of the action will preserve the prior value of the secret.
- //
- // Secret is a required field
- Secret *bool `locationName:"secret" type:"boolean" required:"true"`
- // The type of the configuration property.
- Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"`
- }
- // String returns the string representation
- func (s ActionConfigurationProperty) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionConfigurationProperty) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionConfigurationProperty) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionConfigurationProperty"}
- if s.Description != nil && len(*s.Description) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Description", 1))
- }
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Required == nil {
- invalidParams.Add(request.NewErrParamRequired("Required"))
- }
- if s.Secret == nil {
- invalidParams.Add(request.NewErrParamRequired("Secret"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *ActionConfigurationProperty) SetDescription(v string) *ActionConfigurationProperty {
- s.Description = &v
- return s
- }
- // SetKey sets the Key field's value.
- func (s *ActionConfigurationProperty) SetKey(v bool) *ActionConfigurationProperty {
- s.Key = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ActionConfigurationProperty) SetName(v string) *ActionConfigurationProperty {
- s.Name = &v
- return s
- }
- // SetQueryable sets the Queryable field's value.
- func (s *ActionConfigurationProperty) SetQueryable(v bool) *ActionConfigurationProperty {
- s.Queryable = &v
- return s
- }
- // SetRequired sets the Required field's value.
- func (s *ActionConfigurationProperty) SetRequired(v bool) *ActionConfigurationProperty {
- s.Required = &v
- return s
- }
- // SetSecret sets the Secret field's value.
- func (s *ActionConfigurationProperty) SetSecret(v bool) *ActionConfigurationProperty {
- s.Secret = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *ActionConfigurationProperty) SetType(v string) *ActionConfigurationProperty {
- s.Type = &v
- return s
- }
- // Represents the context of an action within the stage of a pipeline to a job
- // worker.
- type ActionContext struct {
- _ struct{} `type:"structure"`
- // The name of the action within the context of a job.
- Name *string `locationName:"name" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ActionContext) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionContext) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *ActionContext) SetName(v string) *ActionContext {
- s.Name = &v
- return s
- }
- // Represents information about an action declaration.
- type ActionDeclaration struct {
- _ struct{} `type:"structure"`
- // The configuration information for the action type.
- //
- // ActionTypeId is a required field
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
- // The action declaration's configuration.
- Configuration map[string]*string `locationName:"configuration" type:"map"`
- // The name or ID of the artifact consumed by the action, such as a test or
- // build artifact.
- InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"`
- // The action declaration's name.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The name or ID of the result of the action declaration, such as a test or
- // build artifact.
- OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"`
- // The action declaration's AWS Region, such as us-east-1.
- Region *string `locationName:"region" min:"4" type:"string"`
- // The ARN of the IAM service role that will perform the declared action. This
- // is assumed through the roleArn for the pipeline.
- RoleArn *string `locationName:"roleArn" type:"string"`
- // The order in which actions are run.
- RunOrder *int64 `locationName:"runOrder" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ActionDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionDeclaration"}
- if s.ActionTypeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Region != nil && len(*s.Region) < 4 {
- invalidParams.Add(request.NewErrParamMinLen("Region", 4))
- }
- if s.RunOrder != nil && *s.RunOrder < 1 {
- invalidParams.Add(request.NewErrParamMinValue("RunOrder", 1))
- }
- if s.ActionTypeId != nil {
- if err := s.ActionTypeId.Validate(); err != nil {
- invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
- }
- }
- if s.InputArtifacts != nil {
- for i, v := range s.InputArtifacts {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OutputArtifacts != nil {
- for i, v := range s.OutputArtifacts {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionTypeId sets the ActionTypeId field's value.
- func (s *ActionDeclaration) SetActionTypeId(v *ActionTypeId) *ActionDeclaration {
- s.ActionTypeId = v
- return s
- }
- // SetConfiguration sets the Configuration field's value.
- func (s *ActionDeclaration) SetConfiguration(v map[string]*string) *ActionDeclaration {
- s.Configuration = v
- return s
- }
- // SetInputArtifacts sets the InputArtifacts field's value.
- func (s *ActionDeclaration) SetInputArtifacts(v []*InputArtifact) *ActionDeclaration {
- s.InputArtifacts = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ActionDeclaration) SetName(v string) *ActionDeclaration {
- s.Name = &v
- return s
- }
- // SetOutputArtifacts sets the OutputArtifacts field's value.
- func (s *ActionDeclaration) SetOutputArtifacts(v []*OutputArtifact) *ActionDeclaration {
- s.OutputArtifacts = v
- return s
- }
- // SetRegion sets the Region field's value.
- func (s *ActionDeclaration) SetRegion(v string) *ActionDeclaration {
- s.Region = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *ActionDeclaration) SetRoleArn(v string) *ActionDeclaration {
- s.RoleArn = &v
- return s
- }
- // SetRunOrder sets the RunOrder field's value.
- func (s *ActionDeclaration) SetRunOrder(v int64) *ActionDeclaration {
- s.RunOrder = &v
- return s
- }
- // Represents information about the run of an action.
- type ActionExecution struct {
- _ struct{} `type:"structure"`
- // The details of an error returned by a URL external to AWS.
- ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"`
- // The external ID of the run of the action.
- ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
- // The URL of a resource external to AWS that will be used when running the
- // action, for example an external repository URL.
- ExternalExecutionUrl *string `locationName:"externalExecutionUrl" min:"1" type:"string"`
- // The last status change of the action.
- LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp"`
- // The ARN of the user who last changed the pipeline.
- LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
- // A percentage of completeness of the action as it runs.
- PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
- // The status of the action, or for a completed action, the last status of the
- // action.
- Status *string `locationName:"status" type:"string" enum:"ActionExecutionStatus"`
- // A summary of the run of the action.
- Summary *string `locationName:"summary" min:"1" type:"string"`
- // The system-generated token used to identify a unique approval request. The
- // token for each open approval request can be obtained using the GetPipelineState
- // command and is used to validate that the approval request corresponding to
- // this token is still valid.
- Token *string `locationName:"token" type:"string"`
- }
- // String returns the string representation
- func (s ActionExecution) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionExecution) GoString() string {
- return s.String()
- }
- // SetErrorDetails sets the ErrorDetails field's value.
- func (s *ActionExecution) SetErrorDetails(v *ErrorDetails) *ActionExecution {
- s.ErrorDetails = v
- return s
- }
- // SetExternalExecutionId sets the ExternalExecutionId field's value.
- func (s *ActionExecution) SetExternalExecutionId(v string) *ActionExecution {
- s.ExternalExecutionId = &v
- return s
- }
- // SetExternalExecutionUrl sets the ExternalExecutionUrl field's value.
- func (s *ActionExecution) SetExternalExecutionUrl(v string) *ActionExecution {
- s.ExternalExecutionUrl = &v
- return s
- }
- // SetLastStatusChange sets the LastStatusChange field's value.
- func (s *ActionExecution) SetLastStatusChange(v time.Time) *ActionExecution {
- s.LastStatusChange = &v
- return s
- }
- // SetLastUpdatedBy sets the LastUpdatedBy field's value.
- func (s *ActionExecution) SetLastUpdatedBy(v string) *ActionExecution {
- s.LastUpdatedBy = &v
- return s
- }
- // SetPercentComplete sets the PercentComplete field's value.
- func (s *ActionExecution) SetPercentComplete(v int64) *ActionExecution {
- s.PercentComplete = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ActionExecution) SetStatus(v string) *ActionExecution {
- s.Status = &v
- return s
- }
- // SetSummary sets the Summary field's value.
- func (s *ActionExecution) SetSummary(v string) *ActionExecution {
- s.Summary = &v
- return s
- }
- // SetToken sets the Token field's value.
- func (s *ActionExecution) SetToken(v string) *ActionExecution {
- s.Token = &v
- return s
- }
- // Represents information about the version (or revision) of an action.
- type ActionRevision struct {
- _ struct{} `type:"structure"`
- // The date and time when the most recent version of the action was created,
- // in timestamp format.
- //
- // Created is a required field
- Created *time.Time `locationName:"created" type:"timestamp" required:"true"`
- // The unique identifier of the change that set the state to this revision,
- // for example a deployment ID or timestamp.
- //
- // RevisionChangeId is a required field
- RevisionChangeId *string `locationName:"revisionChangeId" min:"1" type:"string" required:"true"`
- // The system-generated unique ID that identifies the revision number of the
- // action.
- //
- // RevisionId is a required field
- RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ActionRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionRevision) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionRevision) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionRevision"}
- if s.Created == nil {
- invalidParams.Add(request.NewErrParamRequired("Created"))
- }
- if s.RevisionChangeId == nil {
- invalidParams.Add(request.NewErrParamRequired("RevisionChangeId"))
- }
- if s.RevisionChangeId != nil && len(*s.RevisionChangeId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionChangeId", 1))
- }
- if s.RevisionId == nil {
- invalidParams.Add(request.NewErrParamRequired("RevisionId"))
- }
- if s.RevisionId != nil && len(*s.RevisionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCreated sets the Created field's value.
- func (s *ActionRevision) SetCreated(v time.Time) *ActionRevision {
- s.Created = &v
- return s
- }
- // SetRevisionChangeId sets the RevisionChangeId field's value.
- func (s *ActionRevision) SetRevisionChangeId(v string) *ActionRevision {
- s.RevisionChangeId = &v
- return s
- }
- // SetRevisionId sets the RevisionId field's value.
- func (s *ActionRevision) SetRevisionId(v string) *ActionRevision {
- s.RevisionId = &v
- return s
- }
- // Represents information about the state of an action.
- type ActionState struct {
- _ struct{} `type:"structure"`
- // The name of the action.
- ActionName *string `locationName:"actionName" min:"1" type:"string"`
- // Represents information about the version (or revision) of an action.
- CurrentRevision *ActionRevision `locationName:"currentRevision" type:"structure"`
- // A URL link for more information about the state of the action, such as a
- // deployment group details page.
- EntityUrl *string `locationName:"entityUrl" min:"1" type:"string"`
- // Represents information about the run of an action.
- LatestExecution *ActionExecution `locationName:"latestExecution" type:"structure"`
- // A URL link for more information about the revision, such as a commit details
- // page.
- RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ActionState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionState) GoString() string {
- return s.String()
- }
- // SetActionName sets the ActionName field's value.
- func (s *ActionState) SetActionName(v string) *ActionState {
- s.ActionName = &v
- return s
- }
- // SetCurrentRevision sets the CurrentRevision field's value.
- func (s *ActionState) SetCurrentRevision(v *ActionRevision) *ActionState {
- s.CurrentRevision = v
- return s
- }
- // SetEntityUrl sets the EntityUrl field's value.
- func (s *ActionState) SetEntityUrl(v string) *ActionState {
- s.EntityUrl = &v
- return s
- }
- // SetLatestExecution sets the LatestExecution field's value.
- func (s *ActionState) SetLatestExecution(v *ActionExecution) *ActionState {
- s.LatestExecution = v
- return s
- }
- // SetRevisionUrl sets the RevisionUrl field's value.
- func (s *ActionState) SetRevisionUrl(v string) *ActionState {
- s.RevisionUrl = &v
- return s
- }
- // Returns information about the details of an action type.
- type ActionType struct {
- _ struct{} `type:"structure"`
- // The configuration properties for the action type.
- ActionConfigurationProperties []*ActionConfigurationProperty `locationName:"actionConfigurationProperties" type:"list"`
- // Represents information about an action type.
- //
- // Id is a required field
- Id *ActionTypeId `locationName:"id" type:"structure" required:"true"`
- // The details of the input artifact for the action, such as its commit ID.
- //
- // InputArtifactDetails is a required field
- InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
- // The details of the output artifact of the action, such as its commit ID.
- //
- // OutputArtifactDetails is a required field
- OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
- // The settings for the action type.
- Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
- }
- // String returns the string representation
- func (s ActionType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionType) GoString() string {
- return s.String()
- }
- // SetActionConfigurationProperties sets the ActionConfigurationProperties field's value.
- func (s *ActionType) SetActionConfigurationProperties(v []*ActionConfigurationProperty) *ActionType {
- s.ActionConfigurationProperties = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ActionType) SetId(v *ActionTypeId) *ActionType {
- s.Id = v
- return s
- }
- // SetInputArtifactDetails sets the InputArtifactDetails field's value.
- func (s *ActionType) SetInputArtifactDetails(v *ArtifactDetails) *ActionType {
- s.InputArtifactDetails = v
- return s
- }
- // SetOutputArtifactDetails sets the OutputArtifactDetails field's value.
- func (s *ActionType) SetOutputArtifactDetails(v *ArtifactDetails) *ActionType {
- s.OutputArtifactDetails = v
- return s
- }
- // SetSettings sets the Settings field's value.
- func (s *ActionType) SetSettings(v *ActionTypeSettings) *ActionType {
- s.Settings = v
- return s
- }
- // Represents information about an action type.
- type ActionTypeId struct {
- _ struct{} `type:"structure"`
- // A category defines what kind of action can be taken in the stage, and constrains
- // the provider type for the action. Valid categories are limited to one of
- // the values below.
- //
- // Category is a required field
- Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
- // The creator of the action being called.
- //
- // Owner is a required field
- Owner *string `locationName:"owner" type:"string" required:"true" enum:"ActionOwner"`
- // The provider of the service being called by the action. Valid providers are
- // determined by the action category. For example, an action in the Deploy category
- // type might have a provider of AWS CodeDeploy, which would be specified as
- // CodeDeploy.
- //
- // Provider is a required field
- Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
- // A string that describes the action version.
- //
- // Version is a required field
- Version *string `locationName:"version" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ActionTypeId) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionTypeId) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionTypeId) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionTypeId"}
- if s.Category == nil {
- invalidParams.Add(request.NewErrParamRequired("Category"))
- }
- if s.Owner == nil {
- invalidParams.Add(request.NewErrParamRequired("Owner"))
- }
- if s.Provider == nil {
- invalidParams.Add(request.NewErrParamRequired("Provider"))
- }
- if s.Provider != nil && len(*s.Provider) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && len(*s.Version) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCategory sets the Category field's value.
- func (s *ActionTypeId) SetCategory(v string) *ActionTypeId {
- s.Category = &v
- return s
- }
- // SetOwner sets the Owner field's value.
- func (s *ActionTypeId) SetOwner(v string) *ActionTypeId {
- s.Owner = &v
- return s
- }
- // SetProvider sets the Provider field's value.
- func (s *ActionTypeId) SetProvider(v string) *ActionTypeId {
- s.Provider = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *ActionTypeId) SetVersion(v string) *ActionTypeId {
- s.Version = &v
- return s
- }
- // Returns information about the settings for an action type.
- type ActionTypeSettings struct {
- _ struct{} `type:"structure"`
- // The URL returned to the AWS CodePipeline console that provides a deep link
- // to the resources of the external system, such as the configuration page for
- // an AWS CodeDeploy deployment group. This link is provided as part of the
- // action display within the pipeline.
- EntityUrlTemplate *string `locationName:"entityUrlTemplate" min:"1" type:"string"`
- // The URL returned to the AWS CodePipeline console that contains a link to
- // the top-level landing page for the external system, such as console page
- // for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS
- // CodePipeline console and provides a link to the execution entity of the external
- // action.
- ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" min:"1" type:"string"`
- // The URL returned to the AWS CodePipeline console that contains a link to
- // the page where customers can update or change the configuration of the external
- // action.
- RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" min:"1" type:"string"`
- // The URL of a sign-up page where users can sign up for an external service
- // and perform initial configuration of the action provided by that service.
- ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ActionTypeSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionTypeSettings) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionTypeSettings) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionTypeSettings"}
- if s.EntityUrlTemplate != nil && len(*s.EntityUrlTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("EntityUrlTemplate", 1))
- }
- if s.ExecutionUrlTemplate != nil && len(*s.ExecutionUrlTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExecutionUrlTemplate", 1))
- }
- if s.RevisionUrlTemplate != nil && len(*s.RevisionUrlTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionUrlTemplate", 1))
- }
- if s.ThirdPartyConfigurationUrl != nil && len(*s.ThirdPartyConfigurationUrl) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThirdPartyConfigurationUrl", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEntityUrlTemplate sets the EntityUrlTemplate field's value.
- func (s *ActionTypeSettings) SetEntityUrlTemplate(v string) *ActionTypeSettings {
- s.EntityUrlTemplate = &v
- return s
- }
- // SetExecutionUrlTemplate sets the ExecutionUrlTemplate field's value.
- func (s *ActionTypeSettings) SetExecutionUrlTemplate(v string) *ActionTypeSettings {
- s.ExecutionUrlTemplate = &v
- return s
- }
- // SetRevisionUrlTemplate sets the RevisionUrlTemplate field's value.
- func (s *ActionTypeSettings) SetRevisionUrlTemplate(v string) *ActionTypeSettings {
- s.RevisionUrlTemplate = &v
- return s
- }
- // SetThirdPartyConfigurationUrl sets the ThirdPartyConfigurationUrl field's value.
- func (s *ActionTypeSettings) SetThirdPartyConfigurationUrl(v string) *ActionTypeSettings {
- s.ThirdPartyConfigurationUrl = &v
- return s
- }
- // Represents information about the result of an approval request.
- type ApprovalResult struct {
- _ struct{} `type:"structure"`
- // The response submitted by a reviewer assigned to an approval action request.
- //
- // Status is a required field
- Status *string `locationName:"status" type:"string" required:"true" enum:"ApprovalStatus"`
- // The summary of the current status of the approval request.
- //
- // Summary is a required field
- Summary *string `locationName:"summary" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ApprovalResult) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApprovalResult) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ApprovalResult) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ApprovalResult"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
- if s.Summary == nil {
- invalidParams.Add(request.NewErrParamRequired("Summary"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetStatus sets the Status field's value.
- func (s *ApprovalResult) SetStatus(v string) *ApprovalResult {
- s.Status = &v
- return s
- }
- // SetSummary sets the Summary field's value.
- func (s *ApprovalResult) SetSummary(v string) *ApprovalResult {
- s.Summary = &v
- return s
- }
- // Represents information about an artifact that will be worked upon by actions
- // in the pipeline.
- type Artifact struct {
- _ struct{} `type:"structure"`
- // The location of an artifact.
- Location *ArtifactLocation `locationName:"location" type:"structure"`
- // The artifact's name.
- Name *string `locationName:"name" min:"1" type:"string"`
- // The artifact's revision ID. Depending on the type of object, this could be
- // a commit ID (GitHub) or a revision ID (Amazon S3).
- Revision *string `locationName:"revision" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Artifact) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Artifact) GoString() string {
- return s.String()
- }
- // SetLocation sets the Location field's value.
- func (s *Artifact) SetLocation(v *ArtifactLocation) *Artifact {
- s.Location = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Artifact) SetName(v string) *Artifact {
- s.Name = &v
- return s
- }
- // SetRevision sets the Revision field's value.
- func (s *Artifact) SetRevision(v string) *Artifact {
- s.Revision = &v
- return s
- }
- // Returns information about the details of an artifact.
- type ArtifactDetails struct {
- _ struct{} `type:"structure"`
- // The maximum number of artifacts allowed for the action type.
- //
- // MaximumCount is a required field
- MaximumCount *int64 `locationName:"maximumCount" type:"integer" required:"true"`
- // The minimum number of artifacts allowed for the action type.
- //
- // MinimumCount is a required field
- MinimumCount *int64 `locationName:"minimumCount" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ArtifactDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactDetails) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ArtifactDetails) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ArtifactDetails"}
- if s.MaximumCount == nil {
- invalidParams.Add(request.NewErrParamRequired("MaximumCount"))
- }
- if s.MinimumCount == nil {
- invalidParams.Add(request.NewErrParamRequired("MinimumCount"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaximumCount sets the MaximumCount field's value.
- func (s *ArtifactDetails) SetMaximumCount(v int64) *ArtifactDetails {
- s.MaximumCount = &v
- return s
- }
- // SetMinimumCount sets the MinimumCount field's value.
- func (s *ArtifactDetails) SetMinimumCount(v int64) *ArtifactDetails {
- s.MinimumCount = &v
- return s
- }
- // Represents information about the location of an artifact.
- type ArtifactLocation struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket that contains the artifact.
- S3Location *S3ArtifactLocation `locationName:"s3Location" type:"structure"`
- // The type of artifact in the location.
- Type *string `locationName:"type" type:"string" enum:"ArtifactLocationType"`
- }
- // String returns the string representation
- func (s ArtifactLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactLocation) GoString() string {
- return s.String()
- }
- // SetS3Location sets the S3Location field's value.
- func (s *ArtifactLocation) SetS3Location(v *S3ArtifactLocation) *ArtifactLocation {
- s.S3Location = v
- return s
- }
- // SetType sets the Type field's value.
- func (s *ArtifactLocation) SetType(v string) *ArtifactLocation {
- s.Type = &v
- return s
- }
- // Represents revision details of an artifact.
- type ArtifactRevision struct {
- _ struct{} `type:"structure"`
- // The date and time when the most recent revision of the artifact was created,
- // in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp"`
- // The name of an artifact. This name might be system-generated, such as "MyApp",
- // or might be defined by the user when an action is created.
- Name *string `locationName:"name" min:"1" type:"string"`
- // An additional identifier for a revision, such as a commit date or, for artifacts
- // stored in Amazon S3 buckets, the ETag value.
- RevisionChangeIdentifier *string `locationName:"revisionChangeIdentifier" min:"1" type:"string"`
- // The revision ID of the artifact.
- RevisionId *string `locationName:"revisionId" min:"1" type:"string"`
- // Summary information about the most recent revision of the artifact. For GitHub
- // and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets
- // or actions, the user-provided content of a codepipeline-artifact-revision-summary
- // key specified in the object metadata.
- RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
- // The commit ID for the artifact revision. For artifacts stored in GitHub or
- // AWS CodeCommit repositories, the commit ID is linked to a commit details
- // page.
- RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ArtifactRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactRevision) GoString() string {
- return s.String()
- }
- // SetCreated sets the Created field's value.
- func (s *ArtifactRevision) SetCreated(v time.Time) *ArtifactRevision {
- s.Created = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ArtifactRevision) SetName(v string) *ArtifactRevision {
- s.Name = &v
- return s
- }
- // SetRevisionChangeIdentifier sets the RevisionChangeIdentifier field's value.
- func (s *ArtifactRevision) SetRevisionChangeIdentifier(v string) *ArtifactRevision {
- s.RevisionChangeIdentifier = &v
- return s
- }
- // SetRevisionId sets the RevisionId field's value.
- func (s *ArtifactRevision) SetRevisionId(v string) *ArtifactRevision {
- s.RevisionId = &v
- return s
- }
- // SetRevisionSummary sets the RevisionSummary field's value.
- func (s *ArtifactRevision) SetRevisionSummary(v string) *ArtifactRevision {
- s.RevisionSummary = &v
- return s
- }
- // SetRevisionUrl sets the RevisionUrl field's value.
- func (s *ArtifactRevision) SetRevisionUrl(v string) *ArtifactRevision {
- s.RevisionUrl = &v
- return s
- }
- // The Amazon S3 bucket where artifacts are stored for the pipeline.
- type ArtifactStore struct {
- _ struct{} `type:"structure"`
- // The encryption key used to encrypt the data in the artifact store, such as
- // an AWS Key Management Service (AWS KMS) key. If this is undefined, the default
- // key for Amazon S3 is used.
- EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
- // The Amazon S3 bucket used for storing the artifacts for a pipeline. You can
- // specify the name of an S3 bucket but not a folder within the bucket. A folder
- // to contain the pipeline artifacts is created for you based on the name of
- // the pipeline. You can use any Amazon S3 bucket in the same AWS Region as
- // the pipeline to store your pipeline artifacts.
- //
- // Location is a required field
- Location *string `locationName:"location" min:"3" type:"string" required:"true"`
- // The type of the artifact store, such as S3.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactStoreType"`
- }
- // String returns the string representation
- func (s ArtifactStore) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactStore) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ArtifactStore) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ArtifactStore"}
- if s.Location == nil {
- invalidParams.Add(request.NewErrParamRequired("Location"))
- }
- if s.Location != nil && len(*s.Location) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Location", 3))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.EncryptionKey != nil {
- if err := s.EncryptionKey.Validate(); err != nil {
- invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEncryptionKey sets the EncryptionKey field's value.
- func (s *ArtifactStore) SetEncryptionKey(v *EncryptionKey) *ArtifactStore {
- s.EncryptionKey = v
- return s
- }
- // SetLocation sets the Location field's value.
- func (s *ArtifactStore) SetLocation(v string) *ArtifactStore {
- s.Location = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *ArtifactStore) SetType(v string) *ArtifactStore {
- s.Type = &v
- return s
- }
- // Reserved for future use.
- type BlockerDeclaration struct {
- _ struct{} `type:"structure"`
- // Reserved for future use.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // Reserved for future use.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true" enum:"BlockerType"`
- }
- // String returns the string representation
- func (s BlockerDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BlockerDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BlockerDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BlockerDeclaration"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *BlockerDeclaration) SetName(v string) *BlockerDeclaration {
- s.Name = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *BlockerDeclaration) SetType(v string) *BlockerDeclaration {
- s.Type = &v
- return s
- }
- // Represents the input of a CreateCustomActionType operation.
- type CreateCustomActionTypeInput struct {
- _ struct{} `type:"structure"`
- // The category of the custom action, such as a build action or a test action.
- //
- // Although Source and Approval are listed as valid values, they are not currently
- // functional. These values are reserved for future use.
- //
- // Category is a required field
- Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
- // The configuration properties for the custom action.
- //
- // You can refer to a name in the configuration properties of the custom action
- // within the URL templates by following the format of {Config:name}, as long
- // as the configuration property is both required and not secret. For more information,
- // see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html).
- ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"`
- // The details of the input artifact for the action, such as its commit ID.
- //
- // InputArtifactDetails is a required field
- InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
- // The details of the output artifact of the action, such as its commit ID.
- //
- // OutputArtifactDetails is a required field
- OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
- // The provider of the service used in the custom action, such as AWS CodeDeploy.
- //
- // Provider is a required field
- Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
- // Returns information about the settings for an action type.
- Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
- // The version identifier of the custom action.
- //
- // Version is a required field
- Version *string `locationName:"version" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateCustomActionTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCustomActionTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCustomActionTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCustomActionTypeInput"}
- if s.Category == nil {
- invalidParams.Add(request.NewErrParamRequired("Category"))
- }
- if s.InputArtifactDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("InputArtifactDetails"))
- }
- if s.OutputArtifactDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputArtifactDetails"))
- }
- if s.Provider == nil {
- invalidParams.Add(request.NewErrParamRequired("Provider"))
- }
- if s.Provider != nil && len(*s.Provider) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && len(*s.Version) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Version", 1))
- }
- if s.ConfigurationProperties != nil {
- for i, v := range s.ConfigurationProperties {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ConfigurationProperties", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.InputArtifactDetails != nil {
- if err := s.InputArtifactDetails.Validate(); err != nil {
- invalidParams.AddNested("InputArtifactDetails", err.(request.ErrInvalidParams))
- }
- }
- if s.OutputArtifactDetails != nil {
- if err := s.OutputArtifactDetails.Validate(); err != nil {
- invalidParams.AddNested("OutputArtifactDetails", err.(request.ErrInvalidParams))
- }
- }
- if s.Settings != nil {
- if err := s.Settings.Validate(); err != nil {
- invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCategory sets the Category field's value.
- func (s *CreateCustomActionTypeInput) SetCategory(v string) *CreateCustomActionTypeInput {
- s.Category = &v
- return s
- }
- // SetConfigurationProperties sets the ConfigurationProperties field's value.
- func (s *CreateCustomActionTypeInput) SetConfigurationProperties(v []*ActionConfigurationProperty) *CreateCustomActionTypeInput {
- s.ConfigurationProperties = v
- return s
- }
- // SetInputArtifactDetails sets the InputArtifactDetails field's value.
- func (s *CreateCustomActionTypeInput) SetInputArtifactDetails(v *ArtifactDetails) *CreateCustomActionTypeInput {
- s.InputArtifactDetails = v
- return s
- }
- // SetOutputArtifactDetails sets the OutputArtifactDetails field's value.
- func (s *CreateCustomActionTypeInput) SetOutputArtifactDetails(v *ArtifactDetails) *CreateCustomActionTypeInput {
- s.OutputArtifactDetails = v
- return s
- }
- // SetProvider sets the Provider field's value.
- func (s *CreateCustomActionTypeInput) SetProvider(v string) *CreateCustomActionTypeInput {
- s.Provider = &v
- return s
- }
- // SetSettings sets the Settings field's value.
- func (s *CreateCustomActionTypeInput) SetSettings(v *ActionTypeSettings) *CreateCustomActionTypeInput {
- s.Settings = v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *CreateCustomActionTypeInput) SetVersion(v string) *CreateCustomActionTypeInput {
- s.Version = &v
- return s
- }
- // Represents the output of a CreateCustomActionType operation.
- type CreateCustomActionTypeOutput struct {
- _ struct{} `type:"structure"`
- // Returns information about the details of an action type.
- //
- // ActionType is a required field
- ActionType *ActionType `locationName:"actionType" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateCustomActionTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCustomActionTypeOutput) GoString() string {
- return s.String()
- }
- // SetActionType sets the ActionType field's value.
- func (s *CreateCustomActionTypeOutput) SetActionType(v *ActionType) *CreateCustomActionTypeOutput {
- s.ActionType = v
- return s
- }
- // Represents the input of a CreatePipeline action.
- type CreatePipelineInput struct {
- _ struct{} `type:"structure"`
- // Represents the structure of actions and stages to be performed in the pipeline.
- //
- // Pipeline is a required field
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
- if s.Pipeline == nil {
- invalidParams.Add(request.NewErrParamRequired("Pipeline"))
- }
- if s.Pipeline != nil {
- if err := s.Pipeline.Validate(); err != nil {
- invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipeline sets the Pipeline field's value.
- func (s *CreatePipelineInput) SetPipeline(v *PipelineDeclaration) *CreatePipelineInput {
- s.Pipeline = v
- return s
- }
- // Represents the output of a CreatePipeline action.
- type CreatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // Represents the structure of actions and stages to be performed in the pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s CreatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineOutput) GoString() string {
- return s.String()
- }
- // SetPipeline sets the Pipeline field's value.
- func (s *CreatePipelineOutput) SetPipeline(v *PipelineDeclaration) *CreatePipelineOutput {
- s.Pipeline = v
- return s
- }
- // Represents information about a current revision.
- type CurrentRevision struct {
- _ struct{} `type:"structure"`
- // The change identifier for the current revision.
- //
- // ChangeIdentifier is a required field
- ChangeIdentifier *string `locationName:"changeIdentifier" min:"1" type:"string" required:"true"`
- // The date and time when the most recent revision of the artifact was created,
- // in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp"`
- // The revision ID of the current version of an artifact.
- //
- // Revision is a required field
- Revision *string `locationName:"revision" min:"1" type:"string" required:"true"`
- // The summary of the most recent revision of the artifact.
- RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CurrentRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CurrentRevision) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CurrentRevision) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CurrentRevision"}
- if s.ChangeIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ChangeIdentifier"))
- }
- if s.ChangeIdentifier != nil && len(*s.ChangeIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChangeIdentifier", 1))
- }
- if s.Revision == nil {
- invalidParams.Add(request.NewErrParamRequired("Revision"))
- }
- if s.Revision != nil && len(*s.Revision) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Revision", 1))
- }
- if s.RevisionSummary != nil && len(*s.RevisionSummary) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionSummary", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetChangeIdentifier sets the ChangeIdentifier field's value.
- func (s *CurrentRevision) SetChangeIdentifier(v string) *CurrentRevision {
- s.ChangeIdentifier = &v
- return s
- }
- // SetCreated sets the Created field's value.
- func (s *CurrentRevision) SetCreated(v time.Time) *CurrentRevision {
- s.Created = &v
- return s
- }
- // SetRevision sets the Revision field's value.
- func (s *CurrentRevision) SetRevision(v string) *CurrentRevision {
- s.Revision = &v
- return s
- }
- // SetRevisionSummary sets the RevisionSummary field's value.
- func (s *CurrentRevision) SetRevisionSummary(v string) *CurrentRevision {
- s.RevisionSummary = &v
- return s
- }
- // Represents the input of a DeleteCustomActionType operation. The custom action
- // will be marked as deleted.
- type DeleteCustomActionTypeInput struct {
- _ struct{} `type:"structure"`
- // The category of the custom action that you want to delete, such as source
- // or deploy.
- //
- // Category is a required field
- Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
- // The provider of the service used in the custom action, such as AWS CodeDeploy.
- //
- // Provider is a required field
- Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
- // The version of the custom action to delete.
- //
- // Version is a required field
- Version *string `locationName:"version" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteCustomActionTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCustomActionTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCustomActionTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCustomActionTypeInput"}
- if s.Category == nil {
- invalidParams.Add(request.NewErrParamRequired("Category"))
- }
- if s.Provider == nil {
- invalidParams.Add(request.NewErrParamRequired("Provider"))
- }
- if s.Provider != nil && len(*s.Provider) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && len(*s.Version) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCategory sets the Category field's value.
- func (s *DeleteCustomActionTypeInput) SetCategory(v string) *DeleteCustomActionTypeInput {
- s.Category = &v
- return s
- }
- // SetProvider sets the Provider field's value.
- func (s *DeleteCustomActionTypeInput) SetProvider(v string) *DeleteCustomActionTypeInput {
- s.Provider = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *DeleteCustomActionTypeInput) SetVersion(v string) *DeleteCustomActionTypeInput {
- s.Version = &v
- return s
- }
- type DeleteCustomActionTypeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCustomActionTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCustomActionTypeOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a DeletePipeline action.
- type DeletePipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline to be deleted.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeletePipelineInput) SetName(v string) *DeletePipelineInput {
- s.Name = &v
- return s
- }
- type DeletePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineOutput) GoString() string {
- return s.String()
- }
- type DeleteWebhookInput struct {
- _ struct{} `type:"structure"`
- // The name of the webhook you want to delete.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteWebhookInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteWebhookInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteWebhookInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteWebhookInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeleteWebhookInput) SetName(v string) *DeleteWebhookInput {
- s.Name = &v
- return s
- }
- type DeleteWebhookOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteWebhookOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteWebhookOutput) GoString() string {
- return s.String()
- }
- type DeregisterWebhookWithThirdPartyInput struct {
- _ struct{} `type:"structure"`
- // The name of the webhook you want to deregister.
- WebhookName *string `locationName:"webhookName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DeregisterWebhookWithThirdPartyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterWebhookWithThirdPartyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeregisterWebhookWithThirdPartyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeregisterWebhookWithThirdPartyInput"}
- if s.WebhookName != nil && len(*s.WebhookName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WebhookName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetWebhookName sets the WebhookName field's value.
- func (s *DeregisterWebhookWithThirdPartyInput) SetWebhookName(v string) *DeregisterWebhookWithThirdPartyInput {
- s.WebhookName = &v
- return s
- }
- type DeregisterWebhookWithThirdPartyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeregisterWebhookWithThirdPartyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterWebhookWithThirdPartyOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a DisableStageTransition action.
- type DisableStageTransitionInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline in which you want to disable the flow of artifacts
- // from one stage to another.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The reason given to the user why a stage is disabled, such as waiting for
- // manual approval or manual tests. This message is displayed in the pipeline
- // console UI.
- //
- // Reason is a required field
- Reason *string `locationName:"reason" min:"1" type:"string" required:"true"`
- // The name of the stage where you want to disable the inbound or outbound transition
- // of artifacts.
- //
- // StageName is a required field
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- // Specifies whether artifacts will be prevented from transitioning into the
- // stage and being processed by the actions in that stage (inbound), or prevented
- // from transitioning from the stage after they have been processed by the actions
- // in that stage (outbound).
- //
- // TransitionType is a required field
- TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
- }
- // String returns the string representation
- func (s DisableStageTransitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableStageTransitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableStageTransitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableStageTransitionInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.Reason == nil {
- invalidParams.Add(request.NewErrParamRequired("Reason"))
- }
- if s.Reason != nil && len(*s.Reason) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Reason", 1))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.TransitionType == nil {
- invalidParams.Add(request.NewErrParamRequired("TransitionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *DisableStageTransitionInput) SetPipelineName(v string) *DisableStageTransitionInput {
- s.PipelineName = &v
- return s
- }
- // SetReason sets the Reason field's value.
- func (s *DisableStageTransitionInput) SetReason(v string) *DisableStageTransitionInput {
- s.Reason = &v
- return s
- }
- // SetStageName sets the StageName field's value.
- func (s *DisableStageTransitionInput) SetStageName(v string) *DisableStageTransitionInput {
- s.StageName = &v
- return s
- }
- // SetTransitionType sets the TransitionType field's value.
- func (s *DisableStageTransitionInput) SetTransitionType(v string) *DisableStageTransitionInput {
- s.TransitionType = &v
- return s
- }
- type DisableStageTransitionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisableStageTransitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableStageTransitionOutput) GoString() string {
- return s.String()
- }
- // Represents the input of an EnableStageTransition action.
- type EnableStageTransitionInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline in which you want to enable the flow of artifacts
- // from one stage to another.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The name of the stage where you want to enable the transition of artifacts,
- // either into the stage (inbound) or from that stage to the next stage (outbound).
- //
- // StageName is a required field
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- // Specifies whether artifacts will be allowed to enter the stage and be processed
- // by the actions in that stage (inbound) or whether already-processed artifacts
- // will be allowed to transition to the next stage (outbound).
- //
- // TransitionType is a required field
- TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
- }
- // String returns the string representation
- func (s EnableStageTransitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableStageTransitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableStageTransitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableStageTransitionInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.TransitionType == nil {
- invalidParams.Add(request.NewErrParamRequired("TransitionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *EnableStageTransitionInput) SetPipelineName(v string) *EnableStageTransitionInput {
- s.PipelineName = &v
- return s
- }
- // SetStageName sets the StageName field's value.
- func (s *EnableStageTransitionInput) SetStageName(v string) *EnableStageTransitionInput {
- s.StageName = &v
- return s
- }
- // SetTransitionType sets the TransitionType field's value.
- func (s *EnableStageTransitionInput) SetTransitionType(v string) *EnableStageTransitionInput {
- s.TransitionType = &v
- return s
- }
- type EnableStageTransitionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s EnableStageTransitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableStageTransitionOutput) GoString() string {
- return s.String()
- }
- // Represents information about the key used to encrypt data in the artifact
- // store, such as an AWS Key Management Service (AWS KMS) key.
- type EncryptionKey struct {
- _ struct{} `type:"structure"`
- // The ID used to identify the key. For an AWS KMS key, this is the key ID or
- // key ARN.
- //
- // Id is a required field
- Id *string `locationName:"id" min:"1" type:"string" required:"true"`
- // The type of encryption key, such as an AWS Key Management Service (AWS KMS)
- // key. When creating or updating a pipeline, the value must be set to 'KMS'.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true" enum:"EncryptionKeyType"`
- }
- // String returns the string representation
- func (s EncryptionKey) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EncryptionKey) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EncryptionKey) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EncryptionKey"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetId sets the Id field's value.
- func (s *EncryptionKey) SetId(v string) *EncryptionKey {
- s.Id = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *EncryptionKey) SetType(v string) *EncryptionKey {
- s.Type = &v
- return s
- }
- // Represents information about an error in AWS CodePipeline.
- type ErrorDetails struct {
- _ struct{} `type:"structure"`
- // The system ID or error number code of the error.
- Code *string `locationName:"code" type:"string"`
- // The text of the error message.
- Message *string `locationName:"message" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ErrorDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ErrorDetails) GoString() string {
- return s.String()
- }
- // SetCode sets the Code field's value.
- func (s *ErrorDetails) SetCode(v string) *ErrorDetails {
- s.Code = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *ErrorDetails) SetMessage(v string) *ErrorDetails {
- s.Message = &v
- return s
- }
- // The details of the actions taken and results produced on an artifact as it
- // passes through stages in the pipeline.
- type ExecutionDetails struct {
- _ struct{} `type:"structure"`
- // The system-generated unique ID of this action used to identify this job worker
- // in any external systems, such as AWS CodeDeploy.
- ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
- // The percentage of work completed on the action, represented on a scale of
- // zero to one hundred percent.
- PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
- // The summary of the current status of the actions.
- Summary *string `locationName:"summary" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ExecutionDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExecutionDetails) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ExecutionDetails) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ExecutionDetails"}
- if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
- }
- if s.Summary != nil && len(*s.Summary) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Summary", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExternalExecutionId sets the ExternalExecutionId field's value.
- func (s *ExecutionDetails) SetExternalExecutionId(v string) *ExecutionDetails {
- s.ExternalExecutionId = &v
- return s
- }
- // SetPercentComplete sets the PercentComplete field's value.
- func (s *ExecutionDetails) SetPercentComplete(v int64) *ExecutionDetails {
- s.PercentComplete = &v
- return s
- }
- // SetSummary sets the Summary field's value.
- func (s *ExecutionDetails) SetSummary(v string) *ExecutionDetails {
- s.Summary = &v
- return s
- }
- // Represents information about failure details.
- type FailureDetails struct {
- _ struct{} `type:"structure"`
- // The external ID of the run of the action that failed.
- ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
- // The message about the failure.
- //
- // Message is a required field
- Message *string `locationName:"message" min:"1" type:"string" required:"true"`
- // The type of the failure.
- //
- // Type is a required field
- Type *string `locationName:"type" type:"string" required:"true" enum:"FailureType"`
- }
- // String returns the string representation
- func (s FailureDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FailureDetails) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FailureDetails) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FailureDetails"}
- if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
- }
- if s.Message == nil {
- invalidParams.Add(request.NewErrParamRequired("Message"))
- }
- if s.Message != nil && len(*s.Message) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Message", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExternalExecutionId sets the ExternalExecutionId field's value.
- func (s *FailureDetails) SetExternalExecutionId(v string) *FailureDetails {
- s.ExternalExecutionId = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *FailureDetails) SetMessage(v string) *FailureDetails {
- s.Message = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *FailureDetails) SetType(v string) *FailureDetails {
- s.Type = &v
- return s
- }
- // Represents the input of a GetJobDetails action.
- type GetJobDetailsInput struct {
- _ struct{} `type:"structure"`
- // The unique system-generated ID for the job.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetJobDetailsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetJobDetailsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetJobDetailsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetJobDetailsInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetJobId sets the JobId field's value.
- func (s *GetJobDetailsInput) SetJobId(v string) *GetJobDetailsInput {
- s.JobId = &v
- return s
- }
- // Represents the output of a GetJobDetails action.
- type GetJobDetailsOutput struct {
- _ struct{} `type:"structure"`
- // The details of the job.
- //
- // If AWSSessionCredentials is used, a long-running job can call GetJobDetails
- // again to obtain new credentials.
- JobDetails *JobDetails `locationName:"jobDetails" type:"structure"`
- }
- // String returns the string representation
- func (s GetJobDetailsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetJobDetailsOutput) GoString() string {
- return s.String()
- }
- // SetJobDetails sets the JobDetails field's value.
- func (s *GetJobDetailsOutput) SetJobDetails(v *JobDetails) *GetJobDetailsOutput {
- s.JobDetails = v
- return s
- }
- // Represents the input of a GetPipelineExecution action.
- type GetPipelineExecutionInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline execution about which you want to get execution details.
- //
- // PipelineExecutionId is a required field
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
- // The name of the pipeline about which you want to get execution details.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetPipelineExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPipelineExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPipelineExecutionInput"}
- if s.PipelineExecutionId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *GetPipelineExecutionInput) SetPipelineExecutionId(v string) *GetPipelineExecutionInput {
- s.PipelineExecutionId = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *GetPipelineExecutionInput) SetPipelineName(v string) *GetPipelineExecutionInput {
- s.PipelineName = &v
- return s
- }
- // Represents the output of a GetPipelineExecution action.
- type GetPipelineExecutionOutput struct {
- _ struct{} `type:"structure"`
- // Represents information about the execution of a pipeline.
- PipelineExecution *PipelineExecution `locationName:"pipelineExecution" type:"structure"`
- }
- // String returns the string representation
- func (s GetPipelineExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineExecutionOutput) GoString() string {
- return s.String()
- }
- // SetPipelineExecution sets the PipelineExecution field's value.
- func (s *GetPipelineExecutionOutput) SetPipelineExecution(v *PipelineExecution) *GetPipelineExecutionOutput {
- s.PipelineExecution = v
- return s
- }
- // Represents the input of a GetPipeline action.
- type GetPipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline for which you want to get information. Pipeline
- // names must be unique under an Amazon Web Services (AWS) user account.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The version number of the pipeline. If you do not specify a version, defaults
- // to the most current version.
- Version *int64 `locationName:"version" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s GetPipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPipelineInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *GetPipelineInput) SetName(v string) *GetPipelineInput {
- s.Name = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *GetPipelineInput) SetVersion(v int64) *GetPipelineInput {
- s.Version = &v
- return s
- }
- // Represents the output of a GetPipeline action.
- type GetPipelineOutput struct {
- _ struct{} `type:"structure"`
- // Represents the pipeline metadata information returned as part of the output
- // of a GetPipeline action.
- Metadata *PipelineMetadata `locationName:"metadata" type:"structure"`
- // Represents the structure of actions and stages to be performed in the pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s GetPipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineOutput) GoString() string {
- return s.String()
- }
- // SetMetadata sets the Metadata field's value.
- func (s *GetPipelineOutput) SetMetadata(v *PipelineMetadata) *GetPipelineOutput {
- s.Metadata = v
- return s
- }
- // SetPipeline sets the Pipeline field's value.
- func (s *GetPipelineOutput) SetPipeline(v *PipelineDeclaration) *GetPipelineOutput {
- s.Pipeline = v
- return s
- }
- // Represents the input of a GetPipelineState action.
- type GetPipelineStateInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline about which you want to get information.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetPipelineStateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineStateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPipelineStateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPipelineStateInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *GetPipelineStateInput) SetName(v string) *GetPipelineStateInput {
- s.Name = &v
- return s
- }
- // Represents the output of a GetPipelineState action.
- type GetPipelineStateOutput struct {
- _ struct{} `type:"structure"`
- // The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp"`
- // The name of the pipeline for which you want to get the state.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- // The version number of the pipeline.
- //
- // A newly-created pipeline is always assigned a version number of 1.
- PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
- // A list of the pipeline stage output information, including stage name, state,
- // most recent run details, whether the stage is disabled, and other data.
- StageStates []*StageState `locationName:"stageStates" type:"list"`
- // The date and time the pipeline was last updated, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp"`
- }
- // String returns the string representation
- func (s GetPipelineStateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineStateOutput) GoString() string {
- return s.String()
- }
- // SetCreated sets the Created field's value.
- func (s *GetPipelineStateOutput) SetCreated(v time.Time) *GetPipelineStateOutput {
- s.Created = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *GetPipelineStateOutput) SetPipelineName(v string) *GetPipelineStateOutput {
- s.PipelineName = &v
- return s
- }
- // SetPipelineVersion sets the PipelineVersion field's value.
- func (s *GetPipelineStateOutput) SetPipelineVersion(v int64) *GetPipelineStateOutput {
- s.PipelineVersion = &v
- return s
- }
- // SetStageStates sets the StageStates field's value.
- func (s *GetPipelineStateOutput) SetStageStates(v []*StageState) *GetPipelineStateOutput {
- s.StageStates = v
- return s
- }
- // SetUpdated sets the Updated field's value.
- func (s *GetPipelineStateOutput) SetUpdated(v time.Time) *GetPipelineStateOutput {
- s.Updated = &v
- return s
- }
- // Represents the input of a GetThirdPartyJobDetails action.
- type GetThirdPartyJobDetailsInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- //
- // ClientToken is a required field
- ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
- // The unique system-generated ID used for identifying the job.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetThirdPartyJobDetailsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetThirdPartyJobDetailsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetThirdPartyJobDetailsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetThirdPartyJobDetailsInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.ClientToken != nil && len(*s.ClientToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *GetThirdPartyJobDetailsInput) SetClientToken(v string) *GetThirdPartyJobDetailsInput {
- s.ClientToken = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *GetThirdPartyJobDetailsInput) SetJobId(v string) *GetThirdPartyJobDetailsInput {
- s.JobId = &v
- return s
- }
- // Represents the output of a GetThirdPartyJobDetails action.
- type GetThirdPartyJobDetailsOutput struct {
- _ struct{} `type:"structure"`
- // The details of the job, including any protected values defined for the job.
- JobDetails *ThirdPartyJobDetails `locationName:"jobDetails" type:"structure"`
- }
- // String returns the string representation
- func (s GetThirdPartyJobDetailsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetThirdPartyJobDetailsOutput) GoString() string {
- return s.String()
- }
- // SetJobDetails sets the JobDetails field's value.
- func (s *GetThirdPartyJobDetailsOutput) SetJobDetails(v *ThirdPartyJobDetails) *GetThirdPartyJobDetailsOutput {
- s.JobDetails = v
- return s
- }
- // Represents information about an artifact to be worked on, such as a test
- // or build artifact.
- type InputArtifact struct {
- _ struct{} `type:"structure"`
- // The name of the artifact to be worked on, for example, "My App".
- //
- // The input artifact of an action must exactly match the output artifact declared
- // in a preceding action, but the input artifact does not have to be the next
- // action in strict sequence from the action that provided the output artifact.
- // Actions in parallel can declare different output artifacts, which are in
- // turn consumed by different following actions.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s InputArtifact) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputArtifact) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputArtifact) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputArtifact"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *InputArtifact) SetName(v string) *InputArtifact {
- s.Name = &v
- return s
- }
- // Represents information about a job.
- type Job struct {
- _ struct{} `type:"structure"`
- // The ID of the AWS account to use when performing the job.
- AccountId *string `locationName:"accountId" type:"string"`
- // Additional data about a job.
- Data *JobData `locationName:"data" type:"structure"`
- // The unique system-generated ID of the job.
- Id *string `locationName:"id" type:"string"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. Use this number in an
- // AcknowledgeJob request.
- Nonce *string `locationName:"nonce" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Job) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Job) GoString() string {
- return s.String()
- }
- // SetAccountId sets the AccountId field's value.
- func (s *Job) SetAccountId(v string) *Job {
- s.AccountId = &v
- return s
- }
- // SetData sets the Data field's value.
- func (s *Job) SetData(v *JobData) *Job {
- s.Data = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *Job) SetId(v string) *Job {
- s.Id = &v
- return s
- }
- // SetNonce sets the Nonce field's value.
- func (s *Job) SetNonce(v string) *Job {
- s.Nonce = &v
- return s
- }
- // Represents additional information about a job required for a job worker to
- // complete the job.
- type JobData struct {
- _ struct{} `type:"structure"`
- // Represents information about an action configuration.
- ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
- // Represents information about an action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
- // Represents an AWS session credentials object. These credentials are temporary
- // credentials that are issued by AWS Secure Token Service (STS). They can be
- // used to access input and output artifacts in the Amazon S3 bucket used to
- // store artifact for the pipeline in AWS CodePipeline.
- ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"`
- // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
- // job requires in order to continue the job asynchronously.
- ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
- // Represents information about the key used to encrypt data in the artifact
- // store, such as an AWS Key Management Service (AWS KMS) key.
- EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
- // The artifact supplied to the job.
- InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
- // The output of the job.
- OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
- // Represents information about a pipeline to a job worker.
- PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
- }
- // String returns the string representation
- func (s JobData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobData) GoString() string {
- return s.String()
- }
- // SetActionConfiguration sets the ActionConfiguration field's value.
- func (s *JobData) SetActionConfiguration(v *ActionConfiguration) *JobData {
- s.ActionConfiguration = v
- return s
- }
- // SetActionTypeId sets the ActionTypeId field's value.
- func (s *JobData) SetActionTypeId(v *ActionTypeId) *JobData {
- s.ActionTypeId = v
- return s
- }
- // SetArtifactCredentials sets the ArtifactCredentials field's value.
- func (s *JobData) SetArtifactCredentials(v *AWSSessionCredentials) *JobData {
- s.ArtifactCredentials = v
- return s
- }
- // SetContinuationToken sets the ContinuationToken field's value.
- func (s *JobData) SetContinuationToken(v string) *JobData {
- s.ContinuationToken = &v
- return s
- }
- // SetEncryptionKey sets the EncryptionKey field's value.
- func (s *JobData) SetEncryptionKey(v *EncryptionKey) *JobData {
- s.EncryptionKey = v
- return s
- }
- // SetInputArtifacts sets the InputArtifacts field's value.
- func (s *JobData) SetInputArtifacts(v []*Artifact) *JobData {
- s.InputArtifacts = v
- return s
- }
- // SetOutputArtifacts sets the OutputArtifacts field's value.
- func (s *JobData) SetOutputArtifacts(v []*Artifact) *JobData {
- s.OutputArtifacts = v
- return s
- }
- // SetPipelineContext sets the PipelineContext field's value.
- func (s *JobData) SetPipelineContext(v *PipelineContext) *JobData {
- s.PipelineContext = v
- return s
- }
- // Represents information about the details of a job.
- type JobDetails struct {
- _ struct{} `type:"structure"`
- // The AWS account ID associated with the job.
- AccountId *string `locationName:"accountId" type:"string"`
- // Represents additional information about a job required for a job worker to
- // complete the job.
- Data *JobData `locationName:"data" type:"structure"`
- // The unique system-generated ID of the job.
- Id *string `locationName:"id" type:"string"`
- }
- // String returns the string representation
- func (s JobDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobDetails) GoString() string {
- return s.String()
- }
- // SetAccountId sets the AccountId field's value.
- func (s *JobDetails) SetAccountId(v string) *JobDetails {
- s.AccountId = &v
- return s
- }
- // SetData sets the Data field's value.
- func (s *JobDetails) SetData(v *JobData) *JobDetails {
- s.Data = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *JobDetails) SetId(v string) *JobDetails {
- s.Id = &v
- return s
- }
- // Represents the input of a ListActionTypes action.
- type ListActionTypesInput struct {
- _ struct{} `type:"structure"`
- // Filters the list of action types to those created by a specified entity.
- ActionOwnerFilter *string `locationName:"actionOwnerFilter" type:"string" enum:"ActionOwner"`
- // An identifier that was returned from the previous list action types call,
- // which can be used to return the next set of action types in the list.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListActionTypesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListActionTypesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListActionTypesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListActionTypesInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionOwnerFilter sets the ActionOwnerFilter field's value.
- func (s *ListActionTypesInput) SetActionOwnerFilter(v string) *ListActionTypesInput {
- s.ActionOwnerFilter = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListActionTypesInput) SetNextToken(v string) *ListActionTypesInput {
- s.NextToken = &v
- return s
- }
- // Represents the output of a ListActionTypes action.
- type ListActionTypesOutput struct {
- _ struct{} `type:"structure"`
- // Provides details of the action types.
- //
- // ActionTypes is a required field
- ActionTypes []*ActionType `locationName:"actionTypes" type:"list" required:"true"`
- // If the amount of returned information is significantly large, an identifier
- // is also returned which can be used in a subsequent list action types call
- // to return the next set of action types in the list.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListActionTypesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListActionTypesOutput) GoString() string {
- return s.String()
- }
- // SetActionTypes sets the ActionTypes field's value.
- func (s *ListActionTypesOutput) SetActionTypes(v []*ActionType) *ListActionTypesOutput {
- s.ActionTypes = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListActionTypesOutput) SetNextToken(v string) *ListActionTypesOutput {
- s.NextToken = &v
- return s
- }
- // Represents the input of a ListPipelineExecutions action.
- type ListPipelineExecutionsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value. The
- // available pipeline execution history is limited to the most recent 12 months,
- // based on pipeline execution start times. Default value is 100.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token that was returned from the previous ListPipelineExecutions call,
- // which can be used to return the next set of pipeline executions in the list.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- // The name of the pipeline for which you want to get execution summary information.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListPipelineExecutionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelineExecutionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPipelineExecutionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPipelineExecutionsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListPipelineExecutionsInput) SetMaxResults(v int64) *ListPipelineExecutionsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPipelineExecutionsInput) SetNextToken(v string) *ListPipelineExecutionsInput {
- s.NextToken = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *ListPipelineExecutionsInput) SetPipelineName(v string) *ListPipelineExecutionsInput {
- s.PipelineName = &v
- return s
- }
- // Represents the output of a ListPipelineExecutions action.
- type ListPipelineExecutionsOutput struct {
- _ struct{} `type:"structure"`
- // A token that can be used in the next ListPipelineExecutions call. To view
- // all items in the list, continue to call this operation with each subsequent
- // token until no more nextToken values are returned.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- // A list of executions in the history of a pipeline.
- PipelineExecutionSummaries []*PipelineExecutionSummary `locationName:"pipelineExecutionSummaries" type:"list"`
- }
- // String returns the string representation
- func (s ListPipelineExecutionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelineExecutionsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPipelineExecutionsOutput) SetNextToken(v string) *ListPipelineExecutionsOutput {
- s.NextToken = &v
- return s
- }
- // SetPipelineExecutionSummaries sets the PipelineExecutionSummaries field's value.
- func (s *ListPipelineExecutionsOutput) SetPipelineExecutionSummaries(v []*PipelineExecutionSummary) *ListPipelineExecutionsOutput {
- s.PipelineExecutionSummaries = v
- return s
- }
- // Represents the input of a ListPipelines action.
- type ListPipelinesInput struct {
- _ struct{} `type:"structure"`
- // An identifier that was returned from the previous list pipelines call, which
- // can be used to return the next set of pipelines in the list.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListPipelinesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPipelinesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPipelinesInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput {
- s.NextToken = &v
- return s
- }
- // Represents the output of a ListPipelines action.
- type ListPipelinesOutput struct {
- _ struct{} `type:"structure"`
- // If the amount of returned information is significantly large, an identifier
- // is also returned which can be used in a subsequent list pipelines call to
- // return the next set of pipelines in the list.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- // The list of pipelines.
- Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"`
- }
- // String returns the string representation
- func (s ListPipelinesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPipelinesOutput) SetNextToken(v string) *ListPipelinesOutput {
- s.NextToken = &v
- return s
- }
- // SetPipelines sets the Pipelines field's value.
- func (s *ListPipelinesOutput) SetPipelines(v []*PipelineSummary) *ListPipelinesOutput {
- s.Pipelines = v
- return s
- }
- // The detail returned for each webhook after listing webhooks, such as the
- // webhook URL, the webhook name, and the webhook ARN.
- type ListWebhookItem struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the webhook.
- Arn *string `locationName:"arn" type:"string"`
- // The detail returned for each webhook, such as the webhook authentication
- // type and filter rules.
- //
- // Definition is a required field
- Definition *WebhookDefinition `locationName:"definition" type:"structure" required:"true"`
- // The number code of the error.
- ErrorCode *string `locationName:"errorCode" type:"string"`
- // The text of the error message about the webhook.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- // The date and time a webhook was last successfully triggered, in timestamp
- // format.
- LastTriggered *time.Time `locationName:"lastTriggered" type:"timestamp"`
- // A unique URL generated by CodePipeline. When a POST request is made to this
- // URL, the defined pipeline is started as long as the body of the post request
- // satisfies the defined authentication and filtering conditions. Deleting and
- // re-creating a webhook will make the old URL invalid and generate a new URL.
- //
- // Url is a required field
- Url *string `locationName:"url" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListWebhookItem) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWebhookItem) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *ListWebhookItem) SetArn(v string) *ListWebhookItem {
- s.Arn = &v
- return s
- }
- // SetDefinition sets the Definition field's value.
- func (s *ListWebhookItem) SetDefinition(v *WebhookDefinition) *ListWebhookItem {
- s.Definition = v
- return s
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *ListWebhookItem) SetErrorCode(v string) *ListWebhookItem {
- s.ErrorCode = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *ListWebhookItem) SetErrorMessage(v string) *ListWebhookItem {
- s.ErrorMessage = &v
- return s
- }
- // SetLastTriggered sets the LastTriggered field's value.
- func (s *ListWebhookItem) SetLastTriggered(v time.Time) *ListWebhookItem {
- s.LastTriggered = &v
- return s
- }
- // SetUrl sets the Url field's value.
- func (s *ListWebhookItem) SetUrl(v string) *ListWebhookItem {
- s.Url = &v
- return s
- }
- type ListWebhooksInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `min:"1" type:"integer"`
- // The token that was returned from the previous ListWebhooks call, which can
- // be used to return the next set of webhooks in the list.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListWebhooksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWebhooksInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListWebhooksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListWebhooksInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListWebhooksInput) SetMaxResults(v int64) *ListWebhooksInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListWebhooksInput) SetNextToken(v string) *ListWebhooksInput {
- s.NextToken = &v
- return s
- }
- type ListWebhooksOutput struct {
- _ struct{} `type:"structure"`
- // If the amount of returned information is significantly large, an identifier
- // is also returned and can be used in a subsequent ListWebhooks call to return
- // the next set of webhooks in the list.
- NextToken *string `min:"1" type:"string"`
- // The JSON detail returned for each webhook in the list output for the ListWebhooks
- // call.
- Webhooks []*ListWebhookItem `locationName:"webhooks" type:"list"`
- }
- // String returns the string representation
- func (s ListWebhooksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWebhooksOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListWebhooksOutput) SetNextToken(v string) *ListWebhooksOutput {
- s.NextToken = &v
- return s
- }
- // SetWebhooks sets the Webhooks field's value.
- func (s *ListWebhooksOutput) SetWebhooks(v []*ListWebhookItem) *ListWebhooksOutput {
- s.Webhooks = v
- return s
- }
- // Represents information about the output of an action.
- type OutputArtifact struct {
- _ struct{} `type:"structure"`
- // The name of the output of an artifact, such as "My App".
- //
- // The input artifact of an action must exactly match the output artifact declared
- // in a preceding action, but the input artifact does not have to be the next
- // action in strict sequence from the action that provided the output artifact.
- // Actions in parallel can declare different output artifacts, which are in
- // turn consumed by different following actions.
- //
- // Output artifact names must be unique within a pipeline.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s OutputArtifact) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputArtifact) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OutputArtifact) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OutputArtifact"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *OutputArtifact) SetName(v string) *OutputArtifact {
- s.Name = &v
- return s
- }
- // Represents information about a pipeline to a job worker.
- type PipelineContext struct {
- _ struct{} `type:"structure"`
- // The context of an action to a job worker within the stage of a pipeline.
- Action *ActionContext `locationName:"action" type:"structure"`
- // The name of the pipeline. This is a user-specified value. Pipeline names
- // must be unique across all pipeline names under an Amazon Web Services account.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- // The stage of the pipeline.
- Stage *StageContext `locationName:"stage" type:"structure"`
- }
- // String returns the string representation
- func (s PipelineContext) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineContext) GoString() string {
- return s.String()
- }
- // SetAction sets the Action field's value.
- func (s *PipelineContext) SetAction(v *ActionContext) *PipelineContext {
- s.Action = v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *PipelineContext) SetPipelineName(v string) *PipelineContext {
- s.PipelineName = &v
- return s
- }
- // SetStage sets the Stage field's value.
- func (s *PipelineContext) SetStage(v *StageContext) *PipelineContext {
- s.Stage = v
- return s
- }
- // Represents the structure of actions and stages to be performed in the pipeline.
- type PipelineDeclaration struct {
- _ struct{} `type:"structure"`
- // Represents information about the Amazon S3 bucket where artifacts are stored
- // for the pipeline.
- ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure"`
- // A mapping of artifactStore objects and their corresponding regions. There
- // must be an artifact store for the pipeline region and for each cross-region
- // action within the pipeline. You can only use either artifactStore or artifactStores,
- // not both.
- //
- // If you create a cross-region action in your pipeline, you must use artifactStores.
- ArtifactStores map[string]*ArtifactStore `locationName:"artifactStores" type:"map"`
- // The name of the action to be performed.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform
- // actions with no actionRoleArn, or to use to assume roles for actions with
- // an actionRoleArn.
- //
- // RoleArn is a required field
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The stage in which to perform the action.
- //
- // Stages is a required field
- Stages []*StageDeclaration `locationName:"stages" type:"list" required:"true"`
- // The version number of the pipeline. A new pipeline always has a version number
- // of 1. This number is automatically incremented when a pipeline is updated.
- Version *int64 `locationName:"version" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s PipelineDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PipelineDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PipelineDeclaration"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.Stages == nil {
- invalidParams.Add(request.NewErrParamRequired("Stages"))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if s.ArtifactStore != nil {
- if err := s.ArtifactStore.Validate(); err != nil {
- invalidParams.AddNested("ArtifactStore", err.(request.ErrInvalidParams))
- }
- }
- if s.ArtifactStores != nil {
- for i, v := range s.ArtifactStores {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ArtifactStores", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Stages != nil {
- for i, v := range s.Stages {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Stages", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetArtifactStore sets the ArtifactStore field's value.
- func (s *PipelineDeclaration) SetArtifactStore(v *ArtifactStore) *PipelineDeclaration {
- s.ArtifactStore = v
- return s
- }
- // SetArtifactStores sets the ArtifactStores field's value.
- func (s *PipelineDeclaration) SetArtifactStores(v map[string]*ArtifactStore) *PipelineDeclaration {
- s.ArtifactStores = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *PipelineDeclaration) SetName(v string) *PipelineDeclaration {
- s.Name = &v
- return s
- }
- // SetRoleArn sets the RoleArn field's value.
- func (s *PipelineDeclaration) SetRoleArn(v string) *PipelineDeclaration {
- s.RoleArn = &v
- return s
- }
- // SetStages sets the Stages field's value.
- func (s *PipelineDeclaration) SetStages(v []*StageDeclaration) *PipelineDeclaration {
- s.Stages = v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *PipelineDeclaration) SetVersion(v int64) *PipelineDeclaration {
- s.Version = &v
- return s
- }
- // Represents information about an execution of a pipeline.
- type PipelineExecution struct {
- _ struct{} `type:"structure"`
- // A list of ArtifactRevision objects included in a pipeline execution.
- ArtifactRevisions []*ArtifactRevision `locationName:"artifactRevisions" type:"list"`
- // The ID of the pipeline execution.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- // The name of the pipeline that was executed.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- // The version number of the pipeline that was executed.
- PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
- // The status of the pipeline execution.
- //
- // * InProgress: The pipeline execution is currently running.
- //
- // * Succeeded: The pipeline execution was completed successfully.
- //
- // * Superseded: While this pipeline execution was waiting for the next stage
- // to be completed, a newer pipeline execution advanced and continued through
- // the pipeline instead.
- //
- // * Failed: The pipeline execution was not completed successfully.
- Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
- }
- // String returns the string representation
- func (s PipelineExecution) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineExecution) GoString() string {
- return s.String()
- }
- // SetArtifactRevisions sets the ArtifactRevisions field's value.
- func (s *PipelineExecution) SetArtifactRevisions(v []*ArtifactRevision) *PipelineExecution {
- s.ArtifactRevisions = v
- return s
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *PipelineExecution) SetPipelineExecutionId(v string) *PipelineExecution {
- s.PipelineExecutionId = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *PipelineExecution) SetPipelineName(v string) *PipelineExecution {
- s.PipelineName = &v
- return s
- }
- // SetPipelineVersion sets the PipelineVersion field's value.
- func (s *PipelineExecution) SetPipelineVersion(v int64) *PipelineExecution {
- s.PipelineVersion = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *PipelineExecution) SetStatus(v string) *PipelineExecution {
- s.Status = &v
- return s
- }
- // Summary information about a pipeline execution.
- type PipelineExecutionSummary struct {
- _ struct{} `type:"structure"`
- // The date and time of the last change to the pipeline execution, in timestamp
- // format.
- LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"`
- // The ID of the pipeline execution.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- // A list of the source artifact revisions that initiated a pipeline execution.
- SourceRevisions []*SourceRevision `locationName:"sourceRevisions" type:"list"`
- // The date and time when the pipeline execution began, in timestamp format.
- StartTime *time.Time `locationName:"startTime" type:"timestamp"`
- // The status of the pipeline execution.
- //
- // * InProgress: The pipeline execution is currently running.
- //
- // * Succeeded: The pipeline execution was completed successfully.
- //
- // * Superseded: While this pipeline execution was waiting for the next stage
- // to be completed, a newer pipeline execution advanced and continued through
- // the pipeline instead.
- //
- // * Failed: The pipeline execution was not completed successfully.
- Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
- }
- // String returns the string representation
- func (s PipelineExecutionSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineExecutionSummary) GoString() string {
- return s.String()
- }
- // SetLastUpdateTime sets the LastUpdateTime field's value.
- func (s *PipelineExecutionSummary) SetLastUpdateTime(v time.Time) *PipelineExecutionSummary {
- s.LastUpdateTime = &v
- return s
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *PipelineExecutionSummary) SetPipelineExecutionId(v string) *PipelineExecutionSummary {
- s.PipelineExecutionId = &v
- return s
- }
- // SetSourceRevisions sets the SourceRevisions field's value.
- func (s *PipelineExecutionSummary) SetSourceRevisions(v []*SourceRevision) *PipelineExecutionSummary {
- s.SourceRevisions = v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *PipelineExecutionSummary) SetStartTime(v time.Time) *PipelineExecutionSummary {
- s.StartTime = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *PipelineExecutionSummary) SetStatus(v string) *PipelineExecutionSummary {
- s.Status = &v
- return s
- }
- // Information about a pipeline.
- type PipelineMetadata struct {
- _ struct{} `type:"structure"`
- // The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp"`
- // The Amazon Resource Name (ARN) of the pipeline.
- PipelineArn *string `locationName:"pipelineArn" type:"string"`
- // The date and time the pipeline was last updated, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp"`
- }
- // String returns the string representation
- func (s PipelineMetadata) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineMetadata) GoString() string {
- return s.String()
- }
- // SetCreated sets the Created field's value.
- func (s *PipelineMetadata) SetCreated(v time.Time) *PipelineMetadata {
- s.Created = &v
- return s
- }
- // SetPipelineArn sets the PipelineArn field's value.
- func (s *PipelineMetadata) SetPipelineArn(v string) *PipelineMetadata {
- s.PipelineArn = &v
- return s
- }
- // SetUpdated sets the Updated field's value.
- func (s *PipelineMetadata) SetUpdated(v time.Time) *PipelineMetadata {
- s.Updated = &v
- return s
- }
- // Returns a summary of a pipeline.
- type PipelineSummary struct {
- _ struct{} `type:"structure"`
- // The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp"`
- // The name of the pipeline.
- Name *string `locationName:"name" min:"1" type:"string"`
- // The date and time of the last update to the pipeline, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp"`
- // The version number of the pipeline.
- Version *int64 `locationName:"version" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s PipelineSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineSummary) GoString() string {
- return s.String()
- }
- // SetCreated sets the Created field's value.
- func (s *PipelineSummary) SetCreated(v time.Time) *PipelineSummary {
- s.Created = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *PipelineSummary) SetName(v string) *PipelineSummary {
- s.Name = &v
- return s
- }
- // SetUpdated sets the Updated field's value.
- func (s *PipelineSummary) SetUpdated(v time.Time) *PipelineSummary {
- s.Updated = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary {
- s.Version = &v
- return s
- }
- // Represents the input of a PollForJobs action.
- type PollForJobsInput struct {
- _ struct{} `type:"structure"`
- // Represents information about an action type.
- //
- // ActionTypeId is a required field
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
- // The maximum number of jobs to return in a poll for jobs call.
- MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
- // A map of property names and values. For an action type with no queryable
- // properties, this value must be null or an empty map. For an action type with
- // a queryable property, you must supply that property as a key in the map.
- // Only jobs whose action configuration matches the mapped value will be returned.
- QueryParam map[string]*string `locationName:"queryParam" type:"map"`
- }
- // String returns the string representation
- func (s PollForJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PollForJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PollForJobsInput"}
- if s.ActionTypeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
- }
- if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
- }
- if s.ActionTypeId != nil {
- if err := s.ActionTypeId.Validate(); err != nil {
- invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionTypeId sets the ActionTypeId field's value.
- func (s *PollForJobsInput) SetActionTypeId(v *ActionTypeId) *PollForJobsInput {
- s.ActionTypeId = v
- return s
- }
- // SetMaxBatchSize sets the MaxBatchSize field's value.
- func (s *PollForJobsInput) SetMaxBatchSize(v int64) *PollForJobsInput {
- s.MaxBatchSize = &v
- return s
- }
- // SetQueryParam sets the QueryParam field's value.
- func (s *PollForJobsInput) SetQueryParam(v map[string]*string) *PollForJobsInput {
- s.QueryParam = v
- return s
- }
- // Represents the output of a PollForJobs action.
- type PollForJobsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the jobs to take action on.
- Jobs []*Job `locationName:"jobs" type:"list"`
- }
- // String returns the string representation
- func (s PollForJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForJobsOutput) GoString() string {
- return s.String()
- }
- // SetJobs sets the Jobs field's value.
- func (s *PollForJobsOutput) SetJobs(v []*Job) *PollForJobsOutput {
- s.Jobs = v
- return s
- }
- // Represents the input of a PollForThirdPartyJobs action.
- type PollForThirdPartyJobsInput struct {
- _ struct{} `type:"structure"`
- // Represents information about an action type.
- //
- // ActionTypeId is a required field
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
- // The maximum number of jobs to return in a poll for jobs call.
- MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s PollForThirdPartyJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForThirdPartyJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PollForThirdPartyJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PollForThirdPartyJobsInput"}
- if s.ActionTypeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
- }
- if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
- }
- if s.ActionTypeId != nil {
- if err := s.ActionTypeId.Validate(); err != nil {
- invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionTypeId sets the ActionTypeId field's value.
- func (s *PollForThirdPartyJobsInput) SetActionTypeId(v *ActionTypeId) *PollForThirdPartyJobsInput {
- s.ActionTypeId = v
- return s
- }
- // SetMaxBatchSize sets the MaxBatchSize field's value.
- func (s *PollForThirdPartyJobsInput) SetMaxBatchSize(v int64) *PollForThirdPartyJobsInput {
- s.MaxBatchSize = &v
- return s
- }
- // Represents the output of a PollForThirdPartyJobs action.
- type PollForThirdPartyJobsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the jobs to take action on.
- Jobs []*ThirdPartyJob `locationName:"jobs" type:"list"`
- }
- // String returns the string representation
- func (s PollForThirdPartyJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForThirdPartyJobsOutput) GoString() string {
- return s.String()
- }
- // SetJobs sets the Jobs field's value.
- func (s *PollForThirdPartyJobsOutput) SetJobs(v []*ThirdPartyJob) *PollForThirdPartyJobsOutput {
- s.Jobs = v
- return s
- }
- // Represents the input of a PutActionRevision action.
- type PutActionRevisionInput struct {
- _ struct{} `type:"structure"`
- // The name of the action that will process the revision.
- //
- // ActionName is a required field
- ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
- // Represents information about the version (or revision) of an action.
- //
- // ActionRevision is a required field
- ActionRevision *ActionRevision `locationName:"actionRevision" type:"structure" required:"true"`
- // The name of the pipeline that will start processing the revision to the source.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The name of the stage that contains the action that will act upon the revision.
- //
- // StageName is a required field
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutActionRevisionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutActionRevisionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutActionRevisionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutActionRevisionInput"}
- if s.ActionName == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionName"))
- }
- if s.ActionName != nil && len(*s.ActionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
- }
- if s.ActionRevision == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionRevision"))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.ActionRevision != nil {
- if err := s.ActionRevision.Validate(); err != nil {
- invalidParams.AddNested("ActionRevision", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionName sets the ActionName field's value.
- func (s *PutActionRevisionInput) SetActionName(v string) *PutActionRevisionInput {
- s.ActionName = &v
- return s
- }
- // SetActionRevision sets the ActionRevision field's value.
- func (s *PutActionRevisionInput) SetActionRevision(v *ActionRevision) *PutActionRevisionInput {
- s.ActionRevision = v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *PutActionRevisionInput) SetPipelineName(v string) *PutActionRevisionInput {
- s.PipelineName = &v
- return s
- }
- // SetStageName sets the StageName field's value.
- func (s *PutActionRevisionInput) SetStageName(v string) *PutActionRevisionInput {
- s.StageName = &v
- return s
- }
- // Represents the output of a PutActionRevision action.
- type PutActionRevisionOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether the artifact revision was previously used in an execution
- // of the specified pipeline.
- NewRevision *bool `locationName:"newRevision" type:"boolean"`
- // The ID of the current workflow state of the pipeline.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- }
- // String returns the string representation
- func (s PutActionRevisionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutActionRevisionOutput) GoString() string {
- return s.String()
- }
- // SetNewRevision sets the NewRevision field's value.
- func (s *PutActionRevisionOutput) SetNewRevision(v bool) *PutActionRevisionOutput {
- s.NewRevision = &v
- return s
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *PutActionRevisionOutput) SetPipelineExecutionId(v string) *PutActionRevisionOutput {
- s.PipelineExecutionId = &v
- return s
- }
- // Represents the input of a PutApprovalResult action.
- type PutApprovalResultInput struct {
- _ struct{} `type:"structure"`
- // The name of the action for which approval is requested.
- //
- // ActionName is a required field
- ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
- // The name of the pipeline that contains the action.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // Represents information about the result of the approval request.
- //
- // Result is a required field
- Result *ApprovalResult `locationName:"result" type:"structure" required:"true"`
- // The name of the stage that contains the action.
- //
- // StageName is a required field
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- // The system-generated token used to identify a unique approval request. The
- // token for each open approval request can be obtained using the GetPipelineState
- // action and is used to validate that the approval request corresponding to
- // this token is still valid.
- //
- // Token is a required field
- Token *string `locationName:"token" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutApprovalResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutApprovalResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutApprovalResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutApprovalResultInput"}
- if s.ActionName == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionName"))
- }
- if s.ActionName != nil && len(*s.ActionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.Result == nil {
- invalidParams.Add(request.NewErrParamRequired("Result"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.Token == nil {
- invalidParams.Add(request.NewErrParamRequired("Token"))
- }
- if s.Result != nil {
- if err := s.Result.Validate(); err != nil {
- invalidParams.AddNested("Result", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActionName sets the ActionName field's value.
- func (s *PutApprovalResultInput) SetActionName(v string) *PutApprovalResultInput {
- s.ActionName = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *PutApprovalResultInput) SetPipelineName(v string) *PutApprovalResultInput {
- s.PipelineName = &v
- return s
- }
- // SetResult sets the Result field's value.
- func (s *PutApprovalResultInput) SetResult(v *ApprovalResult) *PutApprovalResultInput {
- s.Result = v
- return s
- }
- // SetStageName sets the StageName field's value.
- func (s *PutApprovalResultInput) SetStageName(v string) *PutApprovalResultInput {
- s.StageName = &v
- return s
- }
- // SetToken sets the Token field's value.
- func (s *PutApprovalResultInput) SetToken(v string) *PutApprovalResultInput {
- s.Token = &v
- return s
- }
- // Represents the output of a PutApprovalResult action.
- type PutApprovalResultOutput struct {
- _ struct{} `type:"structure"`
- // The timestamp showing when the approval or rejection was submitted.
- ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp"`
- }
- // String returns the string representation
- func (s PutApprovalResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutApprovalResultOutput) GoString() string {
- return s.String()
- }
- // SetApprovedAt sets the ApprovedAt field's value.
- func (s *PutApprovalResultOutput) SetApprovedAt(v time.Time) *PutApprovalResultOutput {
- s.ApprovedAt = &v
- return s
- }
- // Represents the input of a PutJobFailureResult action.
- type PutJobFailureResultInput struct {
- _ struct{} `type:"structure"`
- // The details about the failure of a job.
- //
- // FailureDetails is a required field
- FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
- // The unique system-generated ID of the job that failed. This is the same ID
- // returned from PollForJobs.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutJobFailureResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobFailureResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutJobFailureResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutJobFailureResultInput"}
- if s.FailureDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.FailureDetails != nil {
- if err := s.FailureDetails.Validate(); err != nil {
- invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFailureDetails sets the FailureDetails field's value.
- func (s *PutJobFailureResultInput) SetFailureDetails(v *FailureDetails) *PutJobFailureResultInput {
- s.FailureDetails = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *PutJobFailureResultInput) SetJobId(v string) *PutJobFailureResultInput {
- s.JobId = &v
- return s
- }
- type PutJobFailureResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutJobFailureResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobFailureResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a PutJobSuccessResult action.
- type PutJobSuccessResultInput struct {
- _ struct{} `type:"structure"`
- // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
- // that a successful job provides to identify a custom action in progress. Future
- // jobs will use this token in order to identify the running instance of the
- // action. It can be reused to return additional information about the progress
- // of the custom action. When the action is complete, no continuation token
- // should be supplied.
- ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
- // The ID of the current revision of the artifact successfully worked upon by
- // the job.
- CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
- // The execution details of the successful job, such as the actions taken by
- // the job worker.
- ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
- // The unique system-generated ID of the job that succeeded. This is the same
- // ID returned from PollForJobs.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutJobSuccessResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobSuccessResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutJobSuccessResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutJobSuccessResultInput"}
- if s.ContinuationToken != nil && len(*s.ContinuationToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContinuationToken", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.CurrentRevision != nil {
- if err := s.CurrentRevision.Validate(); err != nil {
- invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
- }
- }
- if s.ExecutionDetails != nil {
- if err := s.ExecutionDetails.Validate(); err != nil {
- invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContinuationToken sets the ContinuationToken field's value.
- func (s *PutJobSuccessResultInput) SetContinuationToken(v string) *PutJobSuccessResultInput {
- s.ContinuationToken = &v
- return s
- }
- // SetCurrentRevision sets the CurrentRevision field's value.
- func (s *PutJobSuccessResultInput) SetCurrentRevision(v *CurrentRevision) *PutJobSuccessResultInput {
- s.CurrentRevision = v
- return s
- }
- // SetExecutionDetails sets the ExecutionDetails field's value.
- func (s *PutJobSuccessResultInput) SetExecutionDetails(v *ExecutionDetails) *PutJobSuccessResultInput {
- s.ExecutionDetails = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *PutJobSuccessResultInput) SetJobId(v string) *PutJobSuccessResultInput {
- s.JobId = &v
- return s
- }
- type PutJobSuccessResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutJobSuccessResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobSuccessResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a PutThirdPartyJobFailureResult action.
- type PutThirdPartyJobFailureResultInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- //
- // ClientToken is a required field
- ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
- // Represents information about failure details.
- //
- // FailureDetails is a required field
- FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
- // The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobFailureResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobFailureResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutThirdPartyJobFailureResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobFailureResultInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.ClientToken != nil && len(*s.ClientToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
- }
- if s.FailureDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.FailureDetails != nil {
- if err := s.FailureDetails.Validate(); err != nil {
- invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *PutThirdPartyJobFailureResultInput) SetClientToken(v string) *PutThirdPartyJobFailureResultInput {
- s.ClientToken = &v
- return s
- }
- // SetFailureDetails sets the FailureDetails field's value.
- func (s *PutThirdPartyJobFailureResultInput) SetFailureDetails(v *FailureDetails) *PutThirdPartyJobFailureResultInput {
- s.FailureDetails = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *PutThirdPartyJobFailureResultInput) SetJobId(v string) *PutThirdPartyJobFailureResultInput {
- s.JobId = &v
- return s
- }
- type PutThirdPartyJobFailureResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobFailureResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobFailureResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a PutThirdPartyJobSuccessResult action.
- type PutThirdPartyJobSuccessResultInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- //
- // ClientToken is a required field
- ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
- // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
- // that a successful job provides to identify a partner action in progress.
- // Future jobs will use this token in order to identify the running instance
- // of the action. It can be reused to return additional information about the
- // progress of the partner action. When the action is complete, no continuation
- // token should be supplied.
- ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
- // Represents information about a current revision.
- CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
- // The details of the actions taken and results produced on an artifact as it
- // passes through stages in the pipeline.
- ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
- // The ID of the job that successfully completed. This is the same ID returned
- // from PollForThirdPartyJobs.
- //
- // JobId is a required field
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobSuccessResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobSuccessResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutThirdPartyJobSuccessResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobSuccessResultInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.ClientToken != nil && len(*s.ClientToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
- }
- if s.ContinuationToken != nil && len(*s.ContinuationToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ContinuationToken", 1))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.CurrentRevision != nil {
- if err := s.CurrentRevision.Validate(); err != nil {
- invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
- }
- }
- if s.ExecutionDetails != nil {
- if err := s.ExecutionDetails.Validate(); err != nil {
- invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *PutThirdPartyJobSuccessResultInput) SetClientToken(v string) *PutThirdPartyJobSuccessResultInput {
- s.ClientToken = &v
- return s
- }
- // SetContinuationToken sets the ContinuationToken field's value.
- func (s *PutThirdPartyJobSuccessResultInput) SetContinuationToken(v string) *PutThirdPartyJobSuccessResultInput {
- s.ContinuationToken = &v
- return s
- }
- // SetCurrentRevision sets the CurrentRevision field's value.
- func (s *PutThirdPartyJobSuccessResultInput) SetCurrentRevision(v *CurrentRevision) *PutThirdPartyJobSuccessResultInput {
- s.CurrentRevision = v
- return s
- }
- // SetExecutionDetails sets the ExecutionDetails field's value.
- func (s *PutThirdPartyJobSuccessResultInput) SetExecutionDetails(v *ExecutionDetails) *PutThirdPartyJobSuccessResultInput {
- s.ExecutionDetails = v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *PutThirdPartyJobSuccessResultInput) SetJobId(v string) *PutThirdPartyJobSuccessResultInput {
- s.JobId = &v
- return s
- }
- type PutThirdPartyJobSuccessResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobSuccessResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobSuccessResultOutput) GoString() string {
- return s.String()
- }
- type PutWebhookInput struct {
- _ struct{} `type:"structure"`
- // The detail provided in an input file to create the webhook, such as the webhook
- // name, the pipeline name, and the action name. Give the webhook a unique name
- // which identifies the webhook being defined. You may choose to name the webhook
- // after the pipeline and action it targets so that you can easily recognize
- // what it's used for later.
- //
- // Webhook is a required field
- Webhook *WebhookDefinition `locationName:"webhook" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s PutWebhookInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutWebhookInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutWebhookInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutWebhookInput"}
- if s.Webhook == nil {
- invalidParams.Add(request.NewErrParamRequired("Webhook"))
- }
- if s.Webhook != nil {
- if err := s.Webhook.Validate(); err != nil {
- invalidParams.AddNested("Webhook", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetWebhook sets the Webhook field's value.
- func (s *PutWebhookInput) SetWebhook(v *WebhookDefinition) *PutWebhookInput {
- s.Webhook = v
- return s
- }
- type PutWebhookOutput struct {
- _ struct{} `type:"structure"`
- // The detail returned from creating the webhook, such as the webhook name,
- // webhook URL, and webhook ARN.
- Webhook *ListWebhookItem `locationName:"webhook" type:"structure"`
- }
- // String returns the string representation
- func (s PutWebhookOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutWebhookOutput) GoString() string {
- return s.String()
- }
- // SetWebhook sets the Webhook field's value.
- func (s *PutWebhookOutput) SetWebhook(v *ListWebhookItem) *PutWebhookOutput {
- s.Webhook = v
- return s
- }
- type RegisterWebhookWithThirdPartyInput struct {
- _ struct{} `type:"structure"`
- // The name of an existing webhook created with PutWebhook to register with
- // a supported third party.
- WebhookName *string `locationName:"webhookName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s RegisterWebhookWithThirdPartyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterWebhookWithThirdPartyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterWebhookWithThirdPartyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterWebhookWithThirdPartyInput"}
- if s.WebhookName != nil && len(*s.WebhookName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WebhookName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetWebhookName sets the WebhookName field's value.
- func (s *RegisterWebhookWithThirdPartyInput) SetWebhookName(v string) *RegisterWebhookWithThirdPartyInput {
- s.WebhookName = &v
- return s
- }
- type RegisterWebhookWithThirdPartyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RegisterWebhookWithThirdPartyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterWebhookWithThirdPartyOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a RetryStageExecution action.
- type RetryStageExecutionInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline execution in the failed stage to be retried. Use the
- // GetPipelineState action to retrieve the current pipelineExecutionId of the
- // failed stage
- //
- // PipelineExecutionId is a required field
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
- // The name of the pipeline that contains the failed stage.
- //
- // PipelineName is a required field
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.
- //
- // RetryMode is a required field
- RetryMode *string `locationName:"retryMode" type:"string" required:"true" enum:"StageRetryMode"`
- // The name of the failed stage to be retried.
- //
- // StageName is a required field
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RetryStageExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetryStageExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RetryStageExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RetryStageExecutionInput"}
- if s.PipelineExecutionId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.RetryMode == nil {
- invalidParams.Add(request.NewErrParamRequired("RetryMode"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *RetryStageExecutionInput) SetPipelineExecutionId(v string) *RetryStageExecutionInput {
- s.PipelineExecutionId = &v
- return s
- }
- // SetPipelineName sets the PipelineName field's value.
- func (s *RetryStageExecutionInput) SetPipelineName(v string) *RetryStageExecutionInput {
- s.PipelineName = &v
- return s
- }
- // SetRetryMode sets the RetryMode field's value.
- func (s *RetryStageExecutionInput) SetRetryMode(v string) *RetryStageExecutionInput {
- s.RetryMode = &v
- return s
- }
- // SetStageName sets the StageName field's value.
- func (s *RetryStageExecutionInput) SetStageName(v string) *RetryStageExecutionInput {
- s.StageName = &v
- return s
- }
- // Represents the output of a RetryStageExecution action.
- type RetryStageExecutionOutput struct {
- _ struct{} `type:"structure"`
- // The ID of the current workflow execution in the failed stage.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- }
- // String returns the string representation
- func (s RetryStageExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetryStageExecutionOutput) GoString() string {
- return s.String()
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *RetryStageExecutionOutput) SetPipelineExecutionId(v string) *RetryStageExecutionOutput {
- s.PipelineExecutionId = &v
- return s
- }
- // The location of the Amazon S3 bucket that contains a revision.
- type S3ArtifactLocation struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon S3 bucket.
- //
- // BucketName is a required field
- BucketName *string `locationName:"bucketName" type:"string" required:"true"`
- // The key of the object in the Amazon S3 bucket, which uniquely identifies
- // the object in the bucket.
- //
- // ObjectKey is a required field
- ObjectKey *string `locationName:"objectKey" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s S3ArtifactLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3ArtifactLocation) GoString() string {
- return s.String()
- }
- // SetBucketName sets the BucketName field's value.
- func (s *S3ArtifactLocation) SetBucketName(v string) *S3ArtifactLocation {
- s.BucketName = &v
- return s
- }
- // SetObjectKey sets the ObjectKey field's value.
- func (s *S3ArtifactLocation) SetObjectKey(v string) *S3ArtifactLocation {
- s.ObjectKey = &v
- return s
- }
- // Information about the version (or revision) of a source artifact that initiated
- // a pipeline execution.
- type SourceRevision struct {
- _ struct{} `type:"structure"`
- // The name of the action that processed the revision to the source artifact.
- //
- // ActionName is a required field
- ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
- // The system-generated unique ID that identifies the revision number of the
- // artifact.
- RevisionId *string `locationName:"revisionId" min:"1" type:"string"`
- // Summary information about the most recent revision of the artifact. For GitHub
- // and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets
- // or actions, the user-provided content of a codepipeline-artifact-revision-summary
- // key specified in the object metadata.
- RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
- // The commit ID for the artifact revision. For artifacts stored in GitHub or
- // AWS CodeCommit repositories, the commit ID is linked to a commit details
- // page.
- RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s SourceRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SourceRevision) GoString() string {
- return s.String()
- }
- // SetActionName sets the ActionName field's value.
- func (s *SourceRevision) SetActionName(v string) *SourceRevision {
- s.ActionName = &v
- return s
- }
- // SetRevisionId sets the RevisionId field's value.
- func (s *SourceRevision) SetRevisionId(v string) *SourceRevision {
- s.RevisionId = &v
- return s
- }
- // SetRevisionSummary sets the RevisionSummary field's value.
- func (s *SourceRevision) SetRevisionSummary(v string) *SourceRevision {
- s.RevisionSummary = &v
- return s
- }
- // SetRevisionUrl sets the RevisionUrl field's value.
- func (s *SourceRevision) SetRevisionUrl(v string) *SourceRevision {
- s.RevisionUrl = &v
- return s
- }
- // Represents information about a stage to a job worker.
- type StageContext struct {
- _ struct{} `type:"structure"`
- // The name of the stage.
- Name *string `locationName:"name" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StageContext) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageContext) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *StageContext) SetName(v string) *StageContext {
- s.Name = &v
- return s
- }
- // Represents information about a stage and its definition.
- type StageDeclaration struct {
- _ struct{} `type:"structure"`
- // The actions included in a stage.
- //
- // Actions is a required field
- Actions []*ActionDeclaration `locationName:"actions" type:"list" required:"true"`
- // Reserved for future use.
- Blockers []*BlockerDeclaration `locationName:"blockers" type:"list"`
- // The name of the stage.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StageDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StageDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StageDeclaration"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Blockers != nil {
- for i, v := range s.Blockers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Blockers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActions sets the Actions field's value.
- func (s *StageDeclaration) SetActions(v []*ActionDeclaration) *StageDeclaration {
- s.Actions = v
- return s
- }
- // SetBlockers sets the Blockers field's value.
- func (s *StageDeclaration) SetBlockers(v []*BlockerDeclaration) *StageDeclaration {
- s.Blockers = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *StageDeclaration) SetName(v string) *StageDeclaration {
- s.Name = &v
- return s
- }
- // Represents information about the run of a stage.
- type StageExecution struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline execution associated with the stage.
- //
- // PipelineExecutionId is a required field
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
- // The status of the stage, or for a completed stage, the last status of the
- // stage.
- //
- // Status is a required field
- Status *string `locationName:"status" type:"string" required:"true" enum:"StageExecutionStatus"`
- }
- // String returns the string representation
- func (s StageExecution) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageExecution) GoString() string {
- return s.String()
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *StageExecution) SetPipelineExecutionId(v string) *StageExecution {
- s.PipelineExecutionId = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *StageExecution) SetStatus(v string) *StageExecution {
- s.Status = &v
- return s
- }
- // Represents information about the state of the stage.
- type StageState struct {
- _ struct{} `type:"structure"`
- // The state of the stage.
- ActionStates []*ActionState `locationName:"actionStates" type:"list"`
- // The state of the inbound transition, which is either enabled or disabled.
- InboundTransitionState *TransitionState `locationName:"inboundTransitionState" type:"structure"`
- // Information about the latest execution in the stage, including its ID and
- // status.
- LatestExecution *StageExecution `locationName:"latestExecution" type:"structure"`
- // The name of the stage.
- StageName *string `locationName:"stageName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StageState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageState) GoString() string {
- return s.String()
- }
- // SetActionStates sets the ActionStates field's value.
- func (s *StageState) SetActionStates(v []*ActionState) *StageState {
- s.ActionStates = v
- return s
- }
- // SetInboundTransitionState sets the InboundTransitionState field's value.
- func (s *StageState) SetInboundTransitionState(v *TransitionState) *StageState {
- s.InboundTransitionState = v
- return s
- }
- // SetLatestExecution sets the LatestExecution field's value.
- func (s *StageState) SetLatestExecution(v *StageExecution) *StageState {
- s.LatestExecution = v
- return s
- }
- // SetStageName sets the StageName field's value.
- func (s *StageState) SetStageName(v string) *StageState {
- s.StageName = &v
- return s
- }
- // Represents the input of a StartPipelineExecution action.
- type StartPipelineExecutionInput struct {
- _ struct{} `type:"structure"`
- // The system-generated unique ID used to identify a unique execution request.
- ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`
- // The name of the pipeline to start.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartPipelineExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartPipelineExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartPipelineExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartPipelineExecutionInput"}
- if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientRequestToken sets the ClientRequestToken field's value.
- func (s *StartPipelineExecutionInput) SetClientRequestToken(v string) *StartPipelineExecutionInput {
- s.ClientRequestToken = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *StartPipelineExecutionInput) SetName(v string) *StartPipelineExecutionInput {
- s.Name = &v
- return s
- }
- // Represents the output of a StartPipelineExecution action.
- type StartPipelineExecutionOutput struct {
- _ struct{} `type:"structure"`
- // The unique system-generated ID of the pipeline execution that was started.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- }
- // String returns the string representation
- func (s StartPipelineExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartPipelineExecutionOutput) GoString() string {
- return s.String()
- }
- // SetPipelineExecutionId sets the PipelineExecutionId field's value.
- func (s *StartPipelineExecutionOutput) SetPipelineExecutionId(v string) *StartPipelineExecutionOutput {
- s.PipelineExecutionId = &v
- return s
- }
- // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline
- // when there is a job to be worked upon by a partner action.
- type ThirdPartyJob struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- ClientId *string `locationName:"clientId" type:"string"`
- // The identifier used to identify the job in AWS CodePipeline.
- JobId *string `locationName:"jobId" type:"string"`
- }
- // String returns the string representation
- func (s ThirdPartyJob) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThirdPartyJob) GoString() string {
- return s.String()
- }
- // SetClientId sets the ClientId field's value.
- func (s *ThirdPartyJob) SetClientId(v string) *ThirdPartyJob {
- s.ClientId = &v
- return s
- }
- // SetJobId sets the JobId field's value.
- func (s *ThirdPartyJob) SetJobId(v string) *ThirdPartyJob {
- s.JobId = &v
- return s
- }
- // Represents information about the job data for a partner action.
- type ThirdPartyJobData struct {
- _ struct{} `type:"structure"`
- // Represents information about an action configuration.
- ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
- // Represents information about an action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
- // Represents an AWS session credentials object. These credentials are temporary
- // credentials that are issued by AWS Secure Token Service (STS). They can be
- // used to access input and output artifacts in the Amazon S3 bucket used to
- // store artifact for the pipeline in AWS CodePipeline.
- ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"`
- // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
- // job requires in order to continue the job asynchronously.
- ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"`
- // The encryption key used to encrypt and decrypt data in the artifact store
- // for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This
- // is optional and might not be present.
- EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
- // The name of the artifact that will be worked upon by the action, if any.
- // This name might be system-generated, such as "MyApp", or might be defined
- // by the user when the action is created. The input artifact name must match
- // the name of an output artifact generated by an action in an earlier action
- // or stage of the pipeline.
- InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
- // The name of the artifact that will be the result of the action, if any. This
- // name might be system-generated, such as "MyBuiltApp", or might be defined
- // by the user when the action is created.
- OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
- // Represents information about a pipeline to a job worker.
- PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
- }
- // String returns the string representation
- func (s ThirdPartyJobData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThirdPartyJobData) GoString() string {
- return s.String()
- }
- // SetActionConfiguration sets the ActionConfiguration field's value.
- func (s *ThirdPartyJobData) SetActionConfiguration(v *ActionConfiguration) *ThirdPartyJobData {
- s.ActionConfiguration = v
- return s
- }
- // SetActionTypeId sets the ActionTypeId field's value.
- func (s *ThirdPartyJobData) SetActionTypeId(v *ActionTypeId) *ThirdPartyJobData {
- s.ActionTypeId = v
- return s
- }
- // SetArtifactCredentials sets the ArtifactCredentials field's value.
- func (s *ThirdPartyJobData) SetArtifactCredentials(v *AWSSessionCredentials) *ThirdPartyJobData {
- s.ArtifactCredentials = v
- return s
- }
- // SetContinuationToken sets the ContinuationToken field's value.
- func (s *ThirdPartyJobData) SetContinuationToken(v string) *ThirdPartyJobData {
- s.ContinuationToken = &v
- return s
- }
- // SetEncryptionKey sets the EncryptionKey field's value.
- func (s *ThirdPartyJobData) SetEncryptionKey(v *EncryptionKey) *ThirdPartyJobData {
- s.EncryptionKey = v
- return s
- }
- // SetInputArtifacts sets the InputArtifacts field's value.
- func (s *ThirdPartyJobData) SetInputArtifacts(v []*Artifact) *ThirdPartyJobData {
- s.InputArtifacts = v
- return s
- }
- // SetOutputArtifacts sets the OutputArtifacts field's value.
- func (s *ThirdPartyJobData) SetOutputArtifacts(v []*Artifact) *ThirdPartyJobData {
- s.OutputArtifacts = v
- return s
- }
- // SetPipelineContext sets the PipelineContext field's value.
- func (s *ThirdPartyJobData) SetPipelineContext(v *PipelineContext) *ThirdPartyJobData {
- s.PipelineContext = v
- return s
- }
- // The details of a job sent in response to a GetThirdPartyJobDetails request.
- type ThirdPartyJobDetails struct {
- _ struct{} `type:"structure"`
- // The data to be returned by the third party job worker.
- Data *ThirdPartyJobData `locationName:"data" type:"structure"`
- // The identifier used to identify the job details in AWS CodePipeline.
- Id *string `locationName:"id" min:"1" type:"string"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. Use this number in an
- // AcknowledgeThirdPartyJob request.
- Nonce *string `locationName:"nonce" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ThirdPartyJobDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThirdPartyJobDetails) GoString() string {
- return s.String()
- }
- // SetData sets the Data field's value.
- func (s *ThirdPartyJobDetails) SetData(v *ThirdPartyJobData) *ThirdPartyJobDetails {
- s.Data = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ThirdPartyJobDetails) SetId(v string) *ThirdPartyJobDetails {
- s.Id = &v
- return s
- }
- // SetNonce sets the Nonce field's value.
- func (s *ThirdPartyJobDetails) SetNonce(v string) *ThirdPartyJobDetails {
- s.Nonce = &v
- return s
- }
- // Represents information about the state of transitions between one stage and
- // another stage.
- type TransitionState struct {
- _ struct{} `type:"structure"`
- // The user-specified reason why the transition between two stages of a pipeline
- // was disabled.
- DisabledReason *string `locationName:"disabledReason" min:"1" type:"string"`
- // Whether the transition between stages is enabled (true) or disabled (false).
- Enabled *bool `locationName:"enabled" type:"boolean"`
- // The timestamp when the transition state was last changed.
- LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp"`
- // The ID of the user who last changed the transition state.
- LastChangedBy *string `locationName:"lastChangedBy" type:"string"`
- }
- // String returns the string representation
- func (s TransitionState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransitionState) GoString() string {
- return s.String()
- }
- // SetDisabledReason sets the DisabledReason field's value.
- func (s *TransitionState) SetDisabledReason(v string) *TransitionState {
- s.DisabledReason = &v
- return s
- }
- // SetEnabled sets the Enabled field's value.
- func (s *TransitionState) SetEnabled(v bool) *TransitionState {
- s.Enabled = &v
- return s
- }
- // SetLastChangedAt sets the LastChangedAt field's value.
- func (s *TransitionState) SetLastChangedAt(v time.Time) *TransitionState {
- s.LastChangedAt = &v
- return s
- }
- // SetLastChangedBy sets the LastChangedBy field's value.
- func (s *TransitionState) SetLastChangedBy(v string) *TransitionState {
- s.LastChangedBy = &v
- return s
- }
- // Represents the input of an UpdatePipeline action.
- type UpdatePipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline to be updated.
- //
- // Pipeline is a required field
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
- if s.Pipeline == nil {
- invalidParams.Add(request.NewErrParamRequired("Pipeline"))
- }
- if s.Pipeline != nil {
- if err := s.Pipeline.Validate(); err != nil {
- invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipeline sets the Pipeline field's value.
- func (s *UpdatePipelineInput) SetPipeline(v *PipelineDeclaration) *UpdatePipelineInput {
- s.Pipeline = v
- return s
- }
- // Represents the output of an UpdatePipeline action.
- type UpdatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // The structure of the updated pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s UpdatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineOutput) GoString() string {
- return s.String()
- }
- // SetPipeline sets the Pipeline field's value.
- func (s *UpdatePipelineOutput) SetPipeline(v *PipelineDeclaration) *UpdatePipelineOutput {
- s.Pipeline = v
- return s
- }
- // The authentication applied to incoming webhook trigger requests.
- type WebhookAuthConfiguration struct {
- _ struct{} `type:"structure"`
- // The property used to configure acceptance of webhooks within a specific IP
- // range. For IP, only the AllowedIPRange property must be set, and this property
- // must be set to a valid CIDR range.
- AllowedIPRange *string `min:"1" type:"string"`
- // The property used to configure GitHub authentication. For GITHUB_HMAC, only
- // the SecretToken property must be set.
- SecretToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s WebhookAuthConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s WebhookAuthConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *WebhookAuthConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "WebhookAuthConfiguration"}
- if s.AllowedIPRange != nil && len(*s.AllowedIPRange) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AllowedIPRange", 1))
- }
- if s.SecretToken != nil && len(*s.SecretToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAllowedIPRange sets the AllowedIPRange field's value.
- func (s *WebhookAuthConfiguration) SetAllowedIPRange(v string) *WebhookAuthConfiguration {
- s.AllowedIPRange = &v
- return s
- }
- // SetSecretToken sets the SecretToken field's value.
- func (s *WebhookAuthConfiguration) SetSecretToken(v string) *WebhookAuthConfiguration {
- s.SecretToken = &v
- return s
- }
- // Represents information about a webhook and its definition.
- type WebhookDefinition struct {
- _ struct{} `type:"structure"`
- // Supported options are GITHUB_HMAC, IP and UNAUTHENTICATED.
- //
- // * GITHUB_HMAC implements the authentication scheme described here: https://developer.github.com/webhooks/securing/
- //
- // * IP will reject webhooks trigger requests unless they originate from
- // an IP within the IP range whitelisted in the authentication configuration.
- //
- // * UNAUTHENTICATED will accept all webhook trigger requests regardless
- // of origin.
- //
- // Authentication is a required field
- Authentication *string `locationName:"authentication" type:"string" required:"true" enum:"WebhookAuthenticationType"`
- // Properties that configure the authentication applied to incoming webhook
- // trigger requests. The required properties depend on the authentication type.
- // For GITHUB_HMAC, only the SecretToken property must be set. For IP, only
- // the AllowedIPRange property must be set to a valid CIDR range. For UNAUTHENTICATED,
- // no properties can be set.
- //
- // AuthenticationConfiguration is a required field
- AuthenticationConfiguration *WebhookAuthConfiguration `locationName:"authenticationConfiguration" type:"structure" required:"true"`
- // A list of rules applied to the body/payload sent in the POST request to a
- // webhook URL. All defined rules must pass for the request to be accepted and
- // the pipeline started.
- //
- // Filters is a required field
- Filters []*WebhookFilterRule `locationName:"filters" type:"list" required:"true"`
- // The name of the webhook.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The name of the action in a pipeline you want to connect to the webhook.
- // The action must be from the source (first) stage of the pipeline.
- //
- // TargetAction is a required field
- TargetAction *string `locationName:"targetAction" min:"1" type:"string" required:"true"`
- // The name of the pipeline you want to connect to the webhook.
- //
- // TargetPipeline is a required field
- TargetPipeline *string `locationName:"targetPipeline" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s WebhookDefinition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s WebhookDefinition) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *WebhookDefinition) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "WebhookDefinition"}
- if s.Authentication == nil {
- invalidParams.Add(request.NewErrParamRequired("Authentication"))
- }
- if s.AuthenticationConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationConfiguration"))
- }
- if s.Filters == nil {
- invalidParams.Add(request.NewErrParamRequired("Filters"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.TargetAction == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetAction"))
- }
- if s.TargetAction != nil && len(*s.TargetAction) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TargetAction", 1))
- }
- if s.TargetPipeline == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetPipeline"))
- }
- if s.TargetPipeline != nil && len(*s.TargetPipeline) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TargetPipeline", 1))
- }
- if s.AuthenticationConfiguration != nil {
- if err := s.AuthenticationConfiguration.Validate(); err != nil {
- invalidParams.AddNested("AuthenticationConfiguration", err.(request.ErrInvalidParams))
- }
- }
- if s.Filters != nil {
- for i, v := range s.Filters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthentication sets the Authentication field's value.
- func (s *WebhookDefinition) SetAuthentication(v string) *WebhookDefinition {
- s.Authentication = &v
- return s
- }
- // SetAuthenticationConfiguration sets the AuthenticationConfiguration field's value.
- func (s *WebhookDefinition) SetAuthenticationConfiguration(v *WebhookAuthConfiguration) *WebhookDefinition {
- s.AuthenticationConfiguration = v
- return s
- }
- // SetFilters sets the Filters field's value.
- func (s *WebhookDefinition) SetFilters(v []*WebhookFilterRule) *WebhookDefinition {
- s.Filters = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *WebhookDefinition) SetName(v string) *WebhookDefinition {
- s.Name = &v
- return s
- }
- // SetTargetAction sets the TargetAction field's value.
- func (s *WebhookDefinition) SetTargetAction(v string) *WebhookDefinition {
- s.TargetAction = &v
- return s
- }
- // SetTargetPipeline sets the TargetPipeline field's value.
- func (s *WebhookDefinition) SetTargetPipeline(v string) *WebhookDefinition {
- s.TargetPipeline = &v
- return s
- }
- // The event criteria that specify when a webhook notification is sent to your
- // URL.
- type WebhookFilterRule struct {
- _ struct{} `type:"structure"`
- // A JsonPath expression that will be applied to the body/payload of the webhook.
- // The value selected by JsonPath expression must match the value specified
- // in the matchEquals field, otherwise the request will be ignored. More information
- // on JsonPath expressions can be found here: https://github.com/json-path/JsonPath.
- //
- // JsonPath is a required field
- JsonPath *string `locationName:"jsonPath" min:"1" type:"string" required:"true"`
- // The value selected by the JsonPath expression must match what is supplied
- // in the MatchEquals field, otherwise the request will be ignored. Properties
- // from the target action configuration can be included as placeholders in this
- // value by surrounding the action configuration key with curly braces. For
- // example, if the value supplied here is "refs/heads/{Branch}" and the target
- // action has an action configuration property called "Branch" with a value
- // of "master", the MatchEquals value will be evaluated as "refs/heads/master".
- // A list of action configuration properties for built-in action types can be
- // found here: Pipeline Structure Reference Action Requirements (http://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements).
- MatchEquals *string `locationName:"matchEquals" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s WebhookFilterRule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s WebhookFilterRule) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *WebhookFilterRule) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "WebhookFilterRule"}
- if s.JsonPath == nil {
- invalidParams.Add(request.NewErrParamRequired("JsonPath"))
- }
- if s.JsonPath != nil && len(*s.JsonPath) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JsonPath", 1))
- }
- if s.MatchEquals != nil && len(*s.MatchEquals) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("MatchEquals", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetJsonPath sets the JsonPath field's value.
- func (s *WebhookFilterRule) SetJsonPath(v string) *WebhookFilterRule {
- s.JsonPath = &v
- return s
- }
- // SetMatchEquals sets the MatchEquals field's value.
- func (s *WebhookFilterRule) SetMatchEquals(v string) *WebhookFilterRule {
- s.MatchEquals = &v
- return s
- }
- const (
- // ActionCategorySource is a ActionCategory enum value
- ActionCategorySource = "Source"
- // ActionCategoryBuild is a ActionCategory enum value
- ActionCategoryBuild = "Build"
- // ActionCategoryDeploy is a ActionCategory enum value
- ActionCategoryDeploy = "Deploy"
- // ActionCategoryTest is a ActionCategory enum value
- ActionCategoryTest = "Test"
- // ActionCategoryInvoke is a ActionCategory enum value
- ActionCategoryInvoke = "Invoke"
- // ActionCategoryApproval is a ActionCategory enum value
- ActionCategoryApproval = "Approval"
- )
- const (
- // ActionConfigurationPropertyTypeString is a ActionConfigurationPropertyType enum value
- ActionConfigurationPropertyTypeString = "String"
- // ActionConfigurationPropertyTypeNumber is a ActionConfigurationPropertyType enum value
- ActionConfigurationPropertyTypeNumber = "Number"
- // ActionConfigurationPropertyTypeBoolean is a ActionConfigurationPropertyType enum value
- ActionConfigurationPropertyTypeBoolean = "Boolean"
- )
- const (
- // ActionExecutionStatusInProgress is a ActionExecutionStatus enum value
- ActionExecutionStatusInProgress = "InProgress"
- // ActionExecutionStatusSucceeded is a ActionExecutionStatus enum value
- ActionExecutionStatusSucceeded = "Succeeded"
- // ActionExecutionStatusFailed is a ActionExecutionStatus enum value
- ActionExecutionStatusFailed = "Failed"
- )
- const (
- // ActionOwnerAws is a ActionOwner enum value
- ActionOwnerAws = "AWS"
- // ActionOwnerThirdParty is a ActionOwner enum value
- ActionOwnerThirdParty = "ThirdParty"
- // ActionOwnerCustom is a ActionOwner enum value
- ActionOwnerCustom = "Custom"
- )
- const (
- // ApprovalStatusApproved is a ApprovalStatus enum value
- ApprovalStatusApproved = "Approved"
- // ApprovalStatusRejected is a ApprovalStatus enum value
- ApprovalStatusRejected = "Rejected"
- )
- const (
- // ArtifactLocationTypeS3 is a ArtifactLocationType enum value
- ArtifactLocationTypeS3 = "S3"
- )
- const (
- // ArtifactStoreTypeS3 is a ArtifactStoreType enum value
- ArtifactStoreTypeS3 = "S3"
- )
- const (
- // BlockerTypeSchedule is a BlockerType enum value
- BlockerTypeSchedule = "Schedule"
- )
- const (
- // EncryptionKeyTypeKms is a EncryptionKeyType enum value
- EncryptionKeyTypeKms = "KMS"
- )
- const (
- // FailureTypeJobFailed is a FailureType enum value
- FailureTypeJobFailed = "JobFailed"
- // FailureTypeConfigurationError is a FailureType enum value
- FailureTypeConfigurationError = "ConfigurationError"
- // FailureTypePermissionError is a FailureType enum value
- FailureTypePermissionError = "PermissionError"
- // FailureTypeRevisionOutOfSync is a FailureType enum value
- FailureTypeRevisionOutOfSync = "RevisionOutOfSync"
- // FailureTypeRevisionUnavailable is a FailureType enum value
- FailureTypeRevisionUnavailable = "RevisionUnavailable"
- // FailureTypeSystemUnavailable is a FailureType enum value
- FailureTypeSystemUnavailable = "SystemUnavailable"
- )
- const (
- // JobStatusCreated is a JobStatus enum value
- JobStatusCreated = "Created"
- // JobStatusQueued is a JobStatus enum value
- JobStatusQueued = "Queued"
- // JobStatusDispatched is a JobStatus enum value
- JobStatusDispatched = "Dispatched"
- // JobStatusInProgress is a JobStatus enum value
- JobStatusInProgress = "InProgress"
- // JobStatusTimedOut is a JobStatus enum value
- JobStatusTimedOut = "TimedOut"
- // JobStatusSucceeded is a JobStatus enum value
- JobStatusSucceeded = "Succeeded"
- // JobStatusFailed is a JobStatus enum value
- JobStatusFailed = "Failed"
- )
- const (
- // PipelineExecutionStatusInProgress is a PipelineExecutionStatus enum value
- PipelineExecutionStatusInProgress = "InProgress"
- // PipelineExecutionStatusSucceeded is a PipelineExecutionStatus enum value
- PipelineExecutionStatusSucceeded = "Succeeded"
- // PipelineExecutionStatusSuperseded is a PipelineExecutionStatus enum value
- PipelineExecutionStatusSuperseded = "Superseded"
- // PipelineExecutionStatusFailed is a PipelineExecutionStatus enum value
- PipelineExecutionStatusFailed = "Failed"
- )
- const (
- // StageExecutionStatusInProgress is a StageExecutionStatus enum value
- StageExecutionStatusInProgress = "InProgress"
- // StageExecutionStatusFailed is a StageExecutionStatus enum value
- StageExecutionStatusFailed = "Failed"
- // StageExecutionStatusSucceeded is a StageExecutionStatus enum value
- StageExecutionStatusSucceeded = "Succeeded"
- )
- const (
- // StageRetryModeFailedActions is a StageRetryMode enum value
- StageRetryModeFailedActions = "FAILED_ACTIONS"
- )
- const (
- // StageTransitionTypeInbound is a StageTransitionType enum value
- StageTransitionTypeInbound = "Inbound"
- // StageTransitionTypeOutbound is a StageTransitionType enum value
- StageTransitionTypeOutbound = "Outbound"
- )
- const (
- // WebhookAuthenticationTypeGithubHmac is a WebhookAuthenticationType enum value
- WebhookAuthenticationTypeGithubHmac = "GITHUB_HMAC"
- // WebhookAuthenticationTypeIp is a WebhookAuthenticationType enum value
- WebhookAuthenticationTypeIp = "IP"
- // WebhookAuthenticationTypeUnauthenticated is a WebhookAuthenticationType enum value
- WebhookAuthenticationTypeUnauthenticated = "UNAUTHENTICATED"
- )
|