123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package codepipeline provides a client for AWS CodePipeline.
- package codepipeline
- import (
- "fmt"
- "time"
- "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 can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See AcknowledgeJob for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AcknowledgeJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) {
- op := &request.Operation{
- Name: opAcknowledgeJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcknowledgeJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AcknowledgeJobOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * InvalidNonceException
- // The specified nonce was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
- req, out := c.AcknowledgeJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
- // AcknowledgeThirdPartyJobRequest generates a "aws/request.Request" representing the
- // client's request for the AcknowledgeThirdPartyJob operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See AcknowledgeThirdPartyJob for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AcknowledgeThirdPartyJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) {
- op := &request.Operation{
- Name: opAcknowledgeThirdPartyJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcknowledgeThirdPartyJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AcknowledgeThirdPartyJobOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * InvalidNonceException
- // The specified nonce was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * InvalidClientTokenException
- // The client token was specified in an invalid format
- //
- func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
- req, out := c.AcknowledgeThirdPartyJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateCustomActionType = "CreateCustomActionType"
- // CreateCustomActionTypeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCustomActionType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateCustomActionType for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateCustomActionType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) {
- op := &request.Operation{
- Name: opCreateCustomActionType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCustomActionTypeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateCustomActionTypeOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * LimitExceededException
- // The number of pipelines associated with the AWS account has exceeded the
- // limit allowed for the account.
- //
- func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
- req, out := c.CreateCustomActionTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreatePipeline = "CreatePipeline"
- // CreatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreatePipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreatePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
- op := &request.Operation{
- Name: opCreatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreatePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreatePipelineOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNameInUseException
- // The specified pipeline name is already in use.
- //
- // * InvalidStageDeclarationException
- // The specified stage declaration was specified in an invalid format.
- //
- // * InvalidActionDeclarationException
- // The specified action declaration was specified in an invalid format.
- //
- // * InvalidBlockerDeclarationException
- // Reserved for future use.
- //
- // * InvalidStructureException
- // The specified structure was specified in an invalid format.
- //
- // * LimitExceededException
- // The number of pipelines associated with the AWS account has exceeded the
- // limit allowed for the account.
- //
- func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteCustomActionType = "DeleteCustomActionType"
- // DeleteCustomActionTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCustomActionType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeleteCustomActionType for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteCustomActionType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) {
- op := &request.Operation{
- Name: opDeleteCustomActionType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteCustomActionTypeInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteCustomActionTypeOutput{}
- req.Data = output
- 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.
- //
- // You cannot recreate a custom action after it has been deleted unless you
- // increase the version number of 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 DeleteCustomActionType for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
- req, out := c.DeleteCustomActionTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeletePipeline = "DeletePipeline"
- // DeletePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeletePipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeletePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
- op := &request.Operation{
- Name: opDeletePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeletePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeletePipelineOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisableStageTransition = "DisableStageTransition"
- // DisableStageTransitionRequest generates a "aws/request.Request" representing the
- // client's request for the DisableStageTransition operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DisableStageTransition for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DisableStageTransition method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) {
- op := &request.Operation{
- Name: opDisableStageTransition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableStageTransitionInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DisableStageTransitionOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * StageNotFoundException
- // The specified stage was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
- req, out := c.DisableStageTransitionRequest(input)
- err := req.Send()
- return out, err
- }
- const opEnableStageTransition = "EnableStageTransition"
- // EnableStageTransitionRequest generates a "aws/request.Request" representing the
- // client's request for the EnableStageTransition operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See EnableStageTransition for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the EnableStageTransition method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) {
- op := &request.Operation{
- Name: opEnableStageTransition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableStageTransitionInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &EnableStageTransitionOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * StageNotFoundException
- // The specified stage was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
- req, out := c.EnableStageTransitionRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetJobDetails = "GetJobDetails"
- // GetJobDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetJobDetails operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetJobDetails for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetJobDetails method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) {
- op := &request.Operation{
- Name: opGetJobDetails,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetJobDetailsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetJobDetailsOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
- req, out := c.GetJobDetailsRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPipeline = "GetPipeline"
- // GetPipelineRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetPipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) {
- op := &request.Operation{
- Name: opGetPipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPipelineOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * PipelineVersionNotFoundException
- // The specified pipeline version was specified in an invalid format or cannot
- // be found.
- //
- func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
- req, out := c.GetPipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPipelineExecution = "GetPipelineExecution"
- // GetPipelineExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipelineExecution operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetPipelineExecution for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPipelineExecution method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionInput) (req *request.Request, output *GetPipelineExecutionOutput) {
- op := &request.Operation{
- Name: opGetPipelineExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineExecutionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPipelineExecutionOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * 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.
- //
- func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) {
- req, out := c.GetPipelineExecutionRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPipelineState = "GetPipelineState"
- // GetPipelineStateRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipelineState operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetPipelineState for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPipelineState method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) {
- op := &request.Operation{
- Name: opGetPipelineState,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineStateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPipelineStateOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
- req, out := c.GetPipelineStateRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
- // GetThirdPartyJobDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetThirdPartyJobDetails operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See GetThirdPartyJobDetails for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetThirdPartyJobDetails method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) {
- op := &request.Operation{
- Name: opGetThirdPartyJobDetails,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetThirdPartyJobDetailsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetThirdPartyJobDetailsOutput{}
- req.Data = 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:
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * InvalidClientTokenException
- // The client token was specified in an invalid format
- //
- // * InvalidJobException
- // The specified job was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
- req, out := c.GetThirdPartyJobDetailsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListActionTypes = "ListActionTypes"
- // ListActionTypesRequest generates a "aws/request.Request" representing the
- // client's request for the ListActionTypes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ListActionTypes for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListActionTypes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) {
- op := &request.Operation{
- Name: opListActionTypes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListActionTypesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListActionTypesOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * 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.
- //
- func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
- req, out := c.ListActionTypesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPipelines = "ListPipelines"
- // ListPipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelines operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ListPipelines for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPipelines method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
- op := &request.Operation{
- Name: opListPipelines,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListPipelinesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPipelinesOutput{}
- req.Data = 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:
- // * 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.
- //
- func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- err := req.Send()
- return out, err
- }
- const opPollForJobs = "PollForJobs"
- // PollForJobsRequest generates a "aws/request.Request" representing the
- // client's request for the PollForJobs operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PollForJobs for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PollForJobs method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) {
- op := &request.Operation{
- Name: opPollForJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForJobsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PollForJobsOutput{}
- req.Data = output
- return
- }
- // PollForJobs API operation for AWS CodePipeline.
- //
- // Returns information about any jobs for AWS CodePipeline to act upon.
- //
- // 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * ActionTypeNotFoundException
- // The specified action type cannot be found.
- //
- func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
- req, out := c.PollForJobsRequest(input)
- err := req.Send()
- return out, err
- }
- const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
- // PollForThirdPartyJobsRequest generates a "aws/request.Request" representing the
- // client's request for the PollForThirdPartyJobs operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PollForThirdPartyJobs for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PollForThirdPartyJobs method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) {
- op := &request.Operation{
- Name: opPollForThirdPartyJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForThirdPartyJobsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PollForThirdPartyJobsOutput{}
- req.Data = 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:
- // * ActionTypeNotFoundException
- // The specified action type cannot be found.
- //
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
- req, out := c.PollForThirdPartyJobsRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutActionRevision = "PutActionRevision"
- // PutActionRevisionRequest generates a "aws/request.Request" representing the
- // client's request for the PutActionRevision operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PutActionRevision for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutActionRevision method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) {
- op := &request.Operation{
- Name: opPutActionRevision,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutActionRevisionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PutActionRevisionOutput{}
- req.Data = 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:
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * StageNotFoundException
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // * ActionNotFoundException
- // The specified action cannot be found.
- //
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
- req, out := c.PutActionRevisionRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutApprovalResult = "PutApprovalResult"
- // PutApprovalResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutApprovalResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PutApprovalResult for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutApprovalResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) (req *request.Request, output *PutApprovalResultOutput) {
- op := &request.Operation{
- Name: opPutApprovalResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutApprovalResultInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PutApprovalResultOutput{}
- req.Data = 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:
- // * InvalidApprovalTokenException
- // The approval request already received a response or has expired.
- //
- // * ApprovalAlreadyCompletedException
- // The approval action has already been approved or rejected.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * StageNotFoundException
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // * ActionNotFoundException
- // The specified action cannot be found.
- //
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) {
- req, out := c.PutApprovalResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutJobFailureResult = "PutJobFailureResult"
- // PutJobFailureResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutJobFailureResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PutJobFailureResult for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutJobFailureResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) {
- op := &request.Operation{
- Name: opPutJobFailureResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutJobFailureResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutJobFailureResultOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * InvalidJobStateException
- // The specified job state was specified in an invalid format.
- //
- func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
- req, out := c.PutJobFailureResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutJobSuccessResult = "PutJobSuccessResult"
- // PutJobSuccessResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutJobSuccessResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PutJobSuccessResult for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutJobSuccessResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) {
- op := &request.Operation{
- Name: opPutJobSuccessResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutJobSuccessResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutJobSuccessResultOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * InvalidJobStateException
- // The specified job state was specified in an invalid format.
- //
- func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
- req, out := c.PutJobSuccessResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
- // PutThirdPartyJobFailureResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutThirdPartyJobFailureResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PutThirdPartyJobFailureResult for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutThirdPartyJobFailureResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) {
- op := &request.Operation{
- Name: opPutThirdPartyJobFailureResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutThirdPartyJobFailureResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutThirdPartyJobFailureResultOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * InvalidJobStateException
- // The specified job state was specified in an invalid format.
- //
- // * InvalidClientTokenException
- // The client token was specified in an invalid format
- //
- func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
- req, out := c.PutThirdPartyJobFailureResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
- // PutThirdPartyJobSuccessResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutThirdPartyJobSuccessResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See PutThirdPartyJobSuccessResult for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutThirdPartyJobSuccessResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) {
- op := &request.Operation{
- Name: opPutThirdPartyJobSuccessResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutThirdPartyJobSuccessResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutThirdPartyJobSuccessResultOutput{}
- req.Data = output
- 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * JobNotFoundException
- // The specified job was specified in an invalid format or cannot be found.
- //
- // * InvalidJobStateException
- // The specified job state was specified in an invalid format.
- //
- // * InvalidClientTokenException
- // The client token was specified in an invalid format
- //
- func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
- req, out := c.PutThirdPartyJobSuccessResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opRetryStageExecution = "RetryStageExecution"
- // RetryStageExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the RetryStageExecution operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See RetryStageExecution for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RetryStageExecution method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInput) (req *request.Request, output *RetryStageExecutionOutput) {
- op := &request.Operation{
- Name: opRetryStageExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RetryStageExecutionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RetryStageExecutionOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- // * StageNotFoundException
- // The specified stage was specified in an invalid format or cannot be found.
- //
- // * 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.
- //
- // * NotLatestPipelineExecutionException
- // The stage has failed in a later run of the pipeline and the pipelineExecutionId
- // associated with the request is out of date.
- //
- func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) {
- req, out := c.RetryStageExecutionRequest(input)
- err := req.Send()
- return out, err
- }
- const opStartPipelineExecution = "StartPipelineExecution"
- // StartPipelineExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the StartPipelineExecution operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See StartPipelineExecution for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the StartPipelineExecution method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) {
- op := &request.Operation{
- Name: opStartPipelineExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartPipelineExecutionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &StartPipelineExecutionOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * PipelineNotFoundException
- // The specified pipeline was specified in an invalid format or cannot be found.
- //
- func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
- req, out := c.StartPipelineExecutionRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdatePipeline = "UpdatePipeline"
- // UpdatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See UpdatePipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdatePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
- op := &request.Operation{
- Name: opUpdatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdatePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdatePipelineOutput{}
- req.Data = 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:
- // * ValidationException
- // The validation was specified in an invalid format.
- //
- // * InvalidStageDeclarationException
- // The specified stage declaration was specified in an invalid format.
- //
- // * InvalidActionDeclarationException
- // The specified action declaration was specified in an invalid format.
- //
- // * InvalidBlockerDeclarationException
- // Reserved for future use.
- //
- // * InvalidStructureException
- // The specified structure was specified in an invalid format.
- //
- func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- // 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"`
- // 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()
- }
- // Represents the input of an acknowledge job 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. This number must be returned
- // in the response.
- //
- // Nonce is a required field
- Nonce *string `locationName:"nonce" 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of an acknowledge job 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()
- }
- // Represents the input of an acknowledge third party job 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" 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. This number must be returned
- // in the response.
- //
- // Nonce is a required field
- Nonce *string `locationName:"nonce" 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.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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of an acknowledge third party job 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()
- }
- // 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()
- }
- // 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 proprety 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
- }
- // 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()
- }
- // 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 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.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
- }
- // 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" timestampFormat:"unix"`
- // 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" 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()
- }
- // 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" timestampFormat:"unix" 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
- }
- // 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()
- }
- // 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()
- }
- // 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 identifies the action type.
- //
- // 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
- }
- // 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
- }
- // 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
- }
- // 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()
- }
- // 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
- }
- // 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()
- }
- // 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" timestampFormat:"unix"`
- // 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()
- }
- // The Amazon S3 location where artifacts are stored for the pipeline. If this
- // Amazon S3 bucket is created manually, it must meet the requirements for AWS
- // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
- 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 location for storing the artifacts for a pipeline, such as an S3 bucket
- // or folder.
- //
- // 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
- }
- // 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
- }
- // Represents the input of a create custom action 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"`
- // Returns information about the details of an artifact.
- //
- // InputArtifactDetails is a required field
- InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
- // Returns information about the details of an artifact.
- //
- // 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
- }
- // Represents the output of a create custom action 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()
- }
- // Represents the input of a create pipeline 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
- }
- // Represents the output of a create pipeline 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()
- }
- // 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" timestampFormat:"unix"`
- // 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
- }
- // Represents the input of a delete custom action 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
- }
- 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 delete pipeline 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
- }
- 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()
- }
- // Represents the input of a disable stage transition input 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
- }
- 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 enable stage transition 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
- }
- 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
- }
- // 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" 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()
- }
- // 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" 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 invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // 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" 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.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the input of a get job details 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
- }
- // Represents the output of a get job details 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()
- }
- // Represents the input of a get pipeline execution 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
- }
- // Represents the output of a get pipeline execution 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()
- }
- // Represents the input of a get pipeline 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
- }
- // Represents the output of a get pipeline action.
- type GetPipelineOutput 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 GetPipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get pipeline state 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
- }
- // Represents the output of a get pipeline state 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" timestampFormat:"unix"`
- // 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" timestampFormat:"unix"`
- }
- // 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()
- }
- // Represents the input of a get third party job details 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" 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.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
- }
- // Represents the output of a get third party job details 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()
- }
- // 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
- }
- // 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. This number must be returned
- // in the response.
- Nonce *string `locationName:"nonce" 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()
- }
- // 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"`
- // 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" 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()
- }
- // 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()
- }
- // Represents the input of a list action types 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" 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()
- }
- // Represents the output of a list action types 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" 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()
- }
- // Represents the input of a list pipelines 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" 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()
- }
- // Represents the output of a list pipelines 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" 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()
- }
- // 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
- }
- // Represents information about a pipeline to a job worker.
- type PipelineContext struct {
- _ struct{} `type:"structure"`
- // Represents the context of an action within the stage of a pipeline to a job
- // worker.
- 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()
- }
- // Represents the structure of actions and stages to be performed in the pipeline.
- type PipelineDeclaration struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 location where artifacts are stored for the pipeline. If this
- // Amazon S3 bucket is created manually, it must meet the requirements for AWS
- // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
- //
- // ArtifactStore is a required field
- ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"`
- // 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.ArtifactStore == nil {
- invalidParams.Add(request.NewErrParamRequired("ArtifactStore"))
- }
- 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.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
- }
- // 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 completed successfully.
- //
- // * Superseded: While this pipeline execution was waiting for the next stage
- // to be completed, a newer pipeline execution caught up and continued through
- // the pipeline instead.
- //
- // * Failed: The pipeline did not complete 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()
- }
- // 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" timestampFormat:"unix"`
- // 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" timestampFormat:"unix"`
- // 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()
- }
- // Represents the input of a poll for jobs 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
- }
- // Represents the output of a poll for jobs 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()
- }
- // Represents the input of a poll for third party jobs 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
- }
- // Represents the output of a poll for third party jobs 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()
- }
- // Represents the input of a put action revision 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
- }
- // Represents the output of a put action revision 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()
- }
- // Represents the input of a put approval result 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
- }
- // Represents the output of a put approval result action.
- type PutApprovalResultOutput struct {
- _ struct{} `type:"structure"`
- // The timestamp showing when the approval or rejection was submitted.
- ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp" timestampFormat:"unix"`
- }
- // 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()
- }
- // Represents the input of a put job failure result 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
- }
- 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 put job success result 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" 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.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
- }
- 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 third party job failure result 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" 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.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
- }
- 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 put third party job success result 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" 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" 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.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
- }
- 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()
- }
- // Represents the input of a retry stage execution 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
- }
- // Represents the output of a retry stage execution 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()
- }
- // 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()
- }
- // 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()
- }
- // 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
- }
- // 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()
- }
- // 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()
- }
- // Represents the input of a start pipeline execution action.
- type StartPipelineExecutionInput struct {
- _ struct{} `type:"structure"`
- // 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.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
- }
- // Represents the output of a start pipeline execution 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()
- }
- // 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()
- }
- // 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"`
- // 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" 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()
- }
- // 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. This number must be returned
- // in the response.
- Nonce *string `locationName:"nonce" 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()
- }
- // 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" timestampFormat:"unix"`
- // 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()
- }
- // Represents the input of an update pipeline 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
- }
- // Represents the output of an update pipeline 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()
- }
- 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"
- )
|