api.go 182 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package codepipeline provides a client for AWS CodePipeline.
  3. package codepipeline
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opAcknowledgeJob = "AcknowledgeJob"
  13. // AcknowledgeJobRequest generates a "aws/request.Request" representing the
  14. // client's request for the AcknowledgeJob operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See AcknowledgeJob for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the AcknowledgeJob method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the AcknowledgeJobRequest method.
  30. // req, resp := client.AcknowledgeJobRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) {
  38. op := &request.Operation{
  39. Name: opAcknowledgeJob,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AcknowledgeJobInput{}
  45. }
  46. req = c.newRequest(op, input, output)
  47. output = &AcknowledgeJobOutput{}
  48. req.Data = output
  49. return
  50. }
  51. // AcknowledgeJob API operation for AWS CodePipeline.
  52. //
  53. // Returns information about a specified job and whether that job has been received
  54. // by the job worker. Only used for custom actions.
  55. //
  56. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  57. // with awserr.Error's Code and Message methods to get detailed information about
  58. // the error.
  59. //
  60. // See the AWS API reference guide for AWS CodePipeline's
  61. // API operation AcknowledgeJob for usage and error information.
  62. //
  63. // Returned Error Codes:
  64. // * ValidationException
  65. // The validation was specified in an invalid format.
  66. //
  67. // * InvalidNonceException
  68. // The specified nonce was specified in an invalid format.
  69. //
  70. // * JobNotFoundException
  71. // The specified job was specified in an invalid format or cannot be found.
  72. //
  73. func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
  74. req, out := c.AcknowledgeJobRequest(input)
  75. err := req.Send()
  76. return out, err
  77. }
  78. const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
  79. // AcknowledgeThirdPartyJobRequest generates a "aws/request.Request" representing the
  80. // client's request for the AcknowledgeThirdPartyJob operation. The "output" return
  81. // value can be used to capture response data after the request's "Send" method
  82. // is called.
  83. //
  84. // See AcknowledgeThirdPartyJob for usage and error information.
  85. //
  86. // Creating a request object using this method should be used when you want to inject
  87. // custom logic into the request's lifecycle using a custom handler, or if you want to
  88. // access properties on the request object before or after sending the request. If
  89. // you just want the service response, call the AcknowledgeThirdPartyJob method directly
  90. // instead.
  91. //
  92. // Note: You must call the "Send" method on the returned request object in order
  93. // to execute the request.
  94. //
  95. // // Example sending a request using the AcknowledgeThirdPartyJobRequest method.
  96. // req, resp := client.AcknowledgeThirdPartyJobRequest(params)
  97. //
  98. // err := req.Send()
  99. // if err == nil { // resp is now filled
  100. // fmt.Println(resp)
  101. // }
  102. //
  103. func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) {
  104. op := &request.Operation{
  105. Name: opAcknowledgeThirdPartyJob,
  106. HTTPMethod: "POST",
  107. HTTPPath: "/",
  108. }
  109. if input == nil {
  110. input = &AcknowledgeThirdPartyJobInput{}
  111. }
  112. req = c.newRequest(op, input, output)
  113. output = &AcknowledgeThirdPartyJobOutput{}
  114. req.Data = output
  115. return
  116. }
  117. // AcknowledgeThirdPartyJob API operation for AWS CodePipeline.
  118. //
  119. // Confirms a job worker has received the specified job. Only used for partner
  120. // actions.
  121. //
  122. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  123. // with awserr.Error's Code and Message methods to get detailed information about
  124. // the error.
  125. //
  126. // See the AWS API reference guide for AWS CodePipeline's
  127. // API operation AcknowledgeThirdPartyJob for usage and error information.
  128. //
  129. // Returned Error Codes:
  130. // * ValidationException
  131. // The validation was specified in an invalid format.
  132. //
  133. // * InvalidNonceException
  134. // The specified nonce was specified in an invalid format.
  135. //
  136. // * JobNotFoundException
  137. // The specified job was specified in an invalid format or cannot be found.
  138. //
  139. // * InvalidClientTokenException
  140. // The client token was specified in an invalid format
  141. //
  142. func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
  143. req, out := c.AcknowledgeThirdPartyJobRequest(input)
  144. err := req.Send()
  145. return out, err
  146. }
  147. const opCreateCustomActionType = "CreateCustomActionType"
  148. // CreateCustomActionTypeRequest generates a "aws/request.Request" representing the
  149. // client's request for the CreateCustomActionType operation. The "output" return
  150. // value can be used to capture response data after the request's "Send" method
  151. // is called.
  152. //
  153. // See CreateCustomActionType for usage and error information.
  154. //
  155. // Creating a request object using this method should be used when you want to inject
  156. // custom logic into the request's lifecycle using a custom handler, or if you want to
  157. // access properties on the request object before or after sending the request. If
  158. // you just want the service response, call the CreateCustomActionType method directly
  159. // instead.
  160. //
  161. // Note: You must call the "Send" method on the returned request object in order
  162. // to execute the request.
  163. //
  164. // // Example sending a request using the CreateCustomActionTypeRequest method.
  165. // req, resp := client.CreateCustomActionTypeRequest(params)
  166. //
  167. // err := req.Send()
  168. // if err == nil { // resp is now filled
  169. // fmt.Println(resp)
  170. // }
  171. //
  172. func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) {
  173. op := &request.Operation{
  174. Name: opCreateCustomActionType,
  175. HTTPMethod: "POST",
  176. HTTPPath: "/",
  177. }
  178. if input == nil {
  179. input = &CreateCustomActionTypeInput{}
  180. }
  181. req = c.newRequest(op, input, output)
  182. output = &CreateCustomActionTypeOutput{}
  183. req.Data = output
  184. return
  185. }
  186. // CreateCustomActionType API operation for AWS CodePipeline.
  187. //
  188. // Creates a new custom action that can be used in all pipelines associated
  189. // with the AWS account. Only used for custom actions.
  190. //
  191. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  192. // with awserr.Error's Code and Message methods to get detailed information about
  193. // the error.
  194. //
  195. // See the AWS API reference guide for AWS CodePipeline's
  196. // API operation CreateCustomActionType for usage and error information.
  197. //
  198. // Returned Error Codes:
  199. // * ValidationException
  200. // The validation was specified in an invalid format.
  201. //
  202. // * LimitExceededException
  203. // The number of pipelines associated with the AWS account has exceeded the
  204. // limit allowed for the account.
  205. //
  206. func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
  207. req, out := c.CreateCustomActionTypeRequest(input)
  208. err := req.Send()
  209. return out, err
  210. }
  211. const opCreatePipeline = "CreatePipeline"
  212. // CreatePipelineRequest generates a "aws/request.Request" representing the
  213. // client's request for the CreatePipeline operation. The "output" return
  214. // value can be used to capture response data after the request's "Send" method
  215. // is called.
  216. //
  217. // See CreatePipeline for usage and error information.
  218. //
  219. // Creating a request object using this method should be used when you want to inject
  220. // custom logic into the request's lifecycle using a custom handler, or if you want to
  221. // access properties on the request object before or after sending the request. If
  222. // you just want the service response, call the CreatePipeline method directly
  223. // instead.
  224. //
  225. // Note: You must call the "Send" method on the returned request object in order
  226. // to execute the request.
  227. //
  228. // // Example sending a request using the CreatePipelineRequest method.
  229. // req, resp := client.CreatePipelineRequest(params)
  230. //
  231. // err := req.Send()
  232. // if err == nil { // resp is now filled
  233. // fmt.Println(resp)
  234. // }
  235. //
  236. func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  237. op := &request.Operation{
  238. Name: opCreatePipeline,
  239. HTTPMethod: "POST",
  240. HTTPPath: "/",
  241. }
  242. if input == nil {
  243. input = &CreatePipelineInput{}
  244. }
  245. req = c.newRequest(op, input, output)
  246. output = &CreatePipelineOutput{}
  247. req.Data = output
  248. return
  249. }
  250. // CreatePipeline API operation for AWS CodePipeline.
  251. //
  252. // Creates a pipeline.
  253. //
  254. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  255. // with awserr.Error's Code and Message methods to get detailed information about
  256. // the error.
  257. //
  258. // See the AWS API reference guide for AWS CodePipeline's
  259. // API operation CreatePipeline for usage and error information.
  260. //
  261. // Returned Error Codes:
  262. // * ValidationException
  263. // The validation was specified in an invalid format.
  264. //
  265. // * PipelineNameInUseException
  266. // The specified pipeline name is already in use.
  267. //
  268. // * InvalidStageDeclarationException
  269. // The specified stage declaration was specified in an invalid format.
  270. //
  271. // * InvalidActionDeclarationException
  272. // The specified action declaration was specified in an invalid format.
  273. //
  274. // * InvalidBlockerDeclarationException
  275. // Reserved for future use.
  276. //
  277. // * InvalidStructureException
  278. // The specified structure was specified in an invalid format.
  279. //
  280. // * LimitExceededException
  281. // The number of pipelines associated with the AWS account has exceeded the
  282. // limit allowed for the account.
  283. //
  284. func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  285. req, out := c.CreatePipelineRequest(input)
  286. err := req.Send()
  287. return out, err
  288. }
  289. const opDeleteCustomActionType = "DeleteCustomActionType"
  290. // DeleteCustomActionTypeRequest generates a "aws/request.Request" representing the
  291. // client's request for the DeleteCustomActionType operation. The "output" return
  292. // value can be used to capture response data after the request's "Send" method
  293. // is called.
  294. //
  295. // See DeleteCustomActionType for usage and error information.
  296. //
  297. // Creating a request object using this method should be used when you want to inject
  298. // custom logic into the request's lifecycle using a custom handler, or if you want to
  299. // access properties on the request object before or after sending the request. If
  300. // you just want the service response, call the DeleteCustomActionType method directly
  301. // instead.
  302. //
  303. // Note: You must call the "Send" method on the returned request object in order
  304. // to execute the request.
  305. //
  306. // // Example sending a request using the DeleteCustomActionTypeRequest method.
  307. // req, resp := client.DeleteCustomActionTypeRequest(params)
  308. //
  309. // err := req.Send()
  310. // if err == nil { // resp is now filled
  311. // fmt.Println(resp)
  312. // }
  313. //
  314. func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) {
  315. op := &request.Operation{
  316. Name: opDeleteCustomActionType,
  317. HTTPMethod: "POST",
  318. HTTPPath: "/",
  319. }
  320. if input == nil {
  321. input = &DeleteCustomActionTypeInput{}
  322. }
  323. req = c.newRequest(op, input, output)
  324. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  325. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  326. output = &DeleteCustomActionTypeOutput{}
  327. req.Data = output
  328. return
  329. }
  330. // DeleteCustomActionType API operation for AWS CodePipeline.
  331. //
  332. // Marks a custom action as deleted. PollForJobs for the custom action will
  333. // fail after the action is marked for deletion. Only used for custom actions.
  334. //
  335. // You cannot recreate a custom action after it has been deleted unless you
  336. // increase the version number of the action.
  337. //
  338. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  339. // with awserr.Error's Code and Message methods to get detailed information about
  340. // the error.
  341. //
  342. // See the AWS API reference guide for AWS CodePipeline's
  343. // API operation DeleteCustomActionType for usage and error information.
  344. //
  345. // Returned Error Codes:
  346. // * ValidationException
  347. // The validation was specified in an invalid format.
  348. //
  349. func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
  350. req, out := c.DeleteCustomActionTypeRequest(input)
  351. err := req.Send()
  352. return out, err
  353. }
  354. const opDeletePipeline = "DeletePipeline"
  355. // DeletePipelineRequest generates a "aws/request.Request" representing the
  356. // client's request for the DeletePipeline operation. The "output" return
  357. // value can be used to capture response data after the request's "Send" method
  358. // is called.
  359. //
  360. // See DeletePipeline for usage and error information.
  361. //
  362. // Creating a request object using this method should be used when you want to inject
  363. // custom logic into the request's lifecycle using a custom handler, or if you want to
  364. // access properties on the request object before or after sending the request. If
  365. // you just want the service response, call the DeletePipeline method directly
  366. // instead.
  367. //
  368. // Note: You must call the "Send" method on the returned request object in order
  369. // to execute the request.
  370. //
  371. // // Example sending a request using the DeletePipelineRequest method.
  372. // req, resp := client.DeletePipelineRequest(params)
  373. //
  374. // err := req.Send()
  375. // if err == nil { // resp is now filled
  376. // fmt.Println(resp)
  377. // }
  378. //
  379. func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  380. op := &request.Operation{
  381. Name: opDeletePipeline,
  382. HTTPMethod: "POST",
  383. HTTPPath: "/",
  384. }
  385. if input == nil {
  386. input = &DeletePipelineInput{}
  387. }
  388. req = c.newRequest(op, input, output)
  389. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  390. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  391. output = &DeletePipelineOutput{}
  392. req.Data = output
  393. return
  394. }
  395. // DeletePipeline API operation for AWS CodePipeline.
  396. //
  397. // Deletes the specified pipeline.
  398. //
  399. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  400. // with awserr.Error's Code and Message methods to get detailed information about
  401. // the error.
  402. //
  403. // See the AWS API reference guide for AWS CodePipeline's
  404. // API operation DeletePipeline for usage and error information.
  405. //
  406. // Returned Error Codes:
  407. // * ValidationException
  408. // The validation was specified in an invalid format.
  409. //
  410. func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  411. req, out := c.DeletePipelineRequest(input)
  412. err := req.Send()
  413. return out, err
  414. }
  415. const opDisableStageTransition = "DisableStageTransition"
  416. // DisableStageTransitionRequest generates a "aws/request.Request" representing the
  417. // client's request for the DisableStageTransition operation. The "output" return
  418. // value can be used to capture response data after the request's "Send" method
  419. // is called.
  420. //
  421. // See DisableStageTransition for usage and error information.
  422. //
  423. // Creating a request object using this method should be used when you want to inject
  424. // custom logic into the request's lifecycle using a custom handler, or if you want to
  425. // access properties on the request object before or after sending the request. If
  426. // you just want the service response, call the DisableStageTransition method directly
  427. // instead.
  428. //
  429. // Note: You must call the "Send" method on the returned request object in order
  430. // to execute the request.
  431. //
  432. // // Example sending a request using the DisableStageTransitionRequest method.
  433. // req, resp := client.DisableStageTransitionRequest(params)
  434. //
  435. // err := req.Send()
  436. // if err == nil { // resp is now filled
  437. // fmt.Println(resp)
  438. // }
  439. //
  440. func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) {
  441. op := &request.Operation{
  442. Name: opDisableStageTransition,
  443. HTTPMethod: "POST",
  444. HTTPPath: "/",
  445. }
  446. if input == nil {
  447. input = &DisableStageTransitionInput{}
  448. }
  449. req = c.newRequest(op, input, output)
  450. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  451. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  452. output = &DisableStageTransitionOutput{}
  453. req.Data = output
  454. return
  455. }
  456. // DisableStageTransition API operation for AWS CodePipeline.
  457. //
  458. // Prevents artifacts in a pipeline from transitioning to the next stage in
  459. // the pipeline.
  460. //
  461. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  462. // with awserr.Error's Code and Message methods to get detailed information about
  463. // the error.
  464. //
  465. // See the AWS API reference guide for AWS CodePipeline's
  466. // API operation DisableStageTransition for usage and error information.
  467. //
  468. // Returned Error Codes:
  469. // * ValidationException
  470. // The validation was specified in an invalid format.
  471. //
  472. // * PipelineNotFoundException
  473. // The specified pipeline was specified in an invalid format or cannot be found.
  474. //
  475. // * StageNotFoundException
  476. // The specified stage was specified in an invalid format or cannot be found.
  477. //
  478. func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
  479. req, out := c.DisableStageTransitionRequest(input)
  480. err := req.Send()
  481. return out, err
  482. }
  483. const opEnableStageTransition = "EnableStageTransition"
  484. // EnableStageTransitionRequest generates a "aws/request.Request" representing the
  485. // client's request for the EnableStageTransition operation. The "output" return
  486. // value can be used to capture response data after the request's "Send" method
  487. // is called.
  488. //
  489. // See EnableStageTransition for usage and error information.
  490. //
  491. // Creating a request object using this method should be used when you want to inject
  492. // custom logic into the request's lifecycle using a custom handler, or if you want to
  493. // access properties on the request object before or after sending the request. If
  494. // you just want the service response, call the EnableStageTransition method directly
  495. // instead.
  496. //
  497. // Note: You must call the "Send" method on the returned request object in order
  498. // to execute the request.
  499. //
  500. // // Example sending a request using the EnableStageTransitionRequest method.
  501. // req, resp := client.EnableStageTransitionRequest(params)
  502. //
  503. // err := req.Send()
  504. // if err == nil { // resp is now filled
  505. // fmt.Println(resp)
  506. // }
  507. //
  508. func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) {
  509. op := &request.Operation{
  510. Name: opEnableStageTransition,
  511. HTTPMethod: "POST",
  512. HTTPPath: "/",
  513. }
  514. if input == nil {
  515. input = &EnableStageTransitionInput{}
  516. }
  517. req = c.newRequest(op, input, output)
  518. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  519. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  520. output = &EnableStageTransitionOutput{}
  521. req.Data = output
  522. return
  523. }
  524. // EnableStageTransition API operation for AWS CodePipeline.
  525. //
  526. // Enables artifacts in a pipeline to transition to a stage in a pipeline.
  527. //
  528. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  529. // with awserr.Error's Code and Message methods to get detailed information about
  530. // the error.
  531. //
  532. // See the AWS API reference guide for AWS CodePipeline's
  533. // API operation EnableStageTransition for usage and error information.
  534. //
  535. // Returned Error Codes:
  536. // * ValidationException
  537. // The validation was specified in an invalid format.
  538. //
  539. // * PipelineNotFoundException
  540. // The specified pipeline was specified in an invalid format or cannot be found.
  541. //
  542. // * StageNotFoundException
  543. // The specified stage was specified in an invalid format or cannot be found.
  544. //
  545. func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
  546. req, out := c.EnableStageTransitionRequest(input)
  547. err := req.Send()
  548. return out, err
  549. }
  550. const opGetJobDetails = "GetJobDetails"
  551. // GetJobDetailsRequest generates a "aws/request.Request" representing the
  552. // client's request for the GetJobDetails operation. The "output" return
  553. // value can be used to capture response data after the request's "Send" method
  554. // is called.
  555. //
  556. // See GetJobDetails for usage and error information.
  557. //
  558. // Creating a request object using this method should be used when you want to inject
  559. // custom logic into the request's lifecycle using a custom handler, or if you want to
  560. // access properties on the request object before or after sending the request. If
  561. // you just want the service response, call the GetJobDetails method directly
  562. // instead.
  563. //
  564. // Note: You must call the "Send" method on the returned request object in order
  565. // to execute the request.
  566. //
  567. // // Example sending a request using the GetJobDetailsRequest method.
  568. // req, resp := client.GetJobDetailsRequest(params)
  569. //
  570. // err := req.Send()
  571. // if err == nil { // resp is now filled
  572. // fmt.Println(resp)
  573. // }
  574. //
  575. func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) {
  576. op := &request.Operation{
  577. Name: opGetJobDetails,
  578. HTTPMethod: "POST",
  579. HTTPPath: "/",
  580. }
  581. if input == nil {
  582. input = &GetJobDetailsInput{}
  583. }
  584. req = c.newRequest(op, input, output)
  585. output = &GetJobDetailsOutput{}
  586. req.Data = output
  587. return
  588. }
  589. // GetJobDetails API operation for AWS CodePipeline.
  590. //
  591. // Returns information about a job. Only used for custom actions.
  592. //
  593. // When this API is called, AWS CodePipeline returns temporary credentials for
  594. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  595. // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
  596. // this API returns any secret values defined for the action.
  597. //
  598. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  599. // with awserr.Error's Code and Message methods to get detailed information about
  600. // the error.
  601. //
  602. // See the AWS API reference guide for AWS CodePipeline's
  603. // API operation GetJobDetails for usage and error information.
  604. //
  605. // Returned Error Codes:
  606. // * ValidationException
  607. // The validation was specified in an invalid format.
  608. //
  609. // * JobNotFoundException
  610. // The specified job was specified in an invalid format or cannot be found.
  611. //
  612. func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
  613. req, out := c.GetJobDetailsRequest(input)
  614. err := req.Send()
  615. return out, err
  616. }
  617. const opGetPipeline = "GetPipeline"
  618. // GetPipelineRequest generates a "aws/request.Request" representing the
  619. // client's request for the GetPipeline operation. The "output" return
  620. // value can be used to capture response data after the request's "Send" method
  621. // is called.
  622. //
  623. // See GetPipeline for usage and error information.
  624. //
  625. // Creating a request object using this method should be used when you want to inject
  626. // custom logic into the request's lifecycle using a custom handler, or if you want to
  627. // access properties on the request object before or after sending the request. If
  628. // you just want the service response, call the GetPipeline method directly
  629. // instead.
  630. //
  631. // Note: You must call the "Send" method on the returned request object in order
  632. // to execute the request.
  633. //
  634. // // Example sending a request using the GetPipelineRequest method.
  635. // req, resp := client.GetPipelineRequest(params)
  636. //
  637. // err := req.Send()
  638. // if err == nil { // resp is now filled
  639. // fmt.Println(resp)
  640. // }
  641. //
  642. func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) {
  643. op := &request.Operation{
  644. Name: opGetPipeline,
  645. HTTPMethod: "POST",
  646. HTTPPath: "/",
  647. }
  648. if input == nil {
  649. input = &GetPipelineInput{}
  650. }
  651. req = c.newRequest(op, input, output)
  652. output = &GetPipelineOutput{}
  653. req.Data = output
  654. return
  655. }
  656. // GetPipeline API operation for AWS CodePipeline.
  657. //
  658. // Returns the metadata, structure, stages, and actions of a pipeline. Can be
  659. // used to return the entire structure of a pipeline in JSON format, which can
  660. // then be modified and used to update the pipeline structure with UpdatePipeline.
  661. //
  662. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  663. // with awserr.Error's Code and Message methods to get detailed information about
  664. // the error.
  665. //
  666. // See the AWS API reference guide for AWS CodePipeline's
  667. // API operation GetPipeline for usage and error information.
  668. //
  669. // Returned Error Codes:
  670. // * ValidationException
  671. // The validation was specified in an invalid format.
  672. //
  673. // * PipelineNotFoundException
  674. // The specified pipeline was specified in an invalid format or cannot be found.
  675. //
  676. // * PipelineVersionNotFoundException
  677. // The specified pipeline version was specified in an invalid format or cannot
  678. // be found.
  679. //
  680. func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
  681. req, out := c.GetPipelineRequest(input)
  682. err := req.Send()
  683. return out, err
  684. }
  685. const opGetPipelineExecution = "GetPipelineExecution"
  686. // GetPipelineExecutionRequest generates a "aws/request.Request" representing the
  687. // client's request for the GetPipelineExecution operation. The "output" return
  688. // value can be used to capture response data after the request's "Send" method
  689. // is called.
  690. //
  691. // See GetPipelineExecution for usage and error information.
  692. //
  693. // Creating a request object using this method should be used when you want to inject
  694. // custom logic into the request's lifecycle using a custom handler, or if you want to
  695. // access properties on the request object before or after sending the request. If
  696. // you just want the service response, call the GetPipelineExecution method directly
  697. // instead.
  698. //
  699. // Note: You must call the "Send" method on the returned request object in order
  700. // to execute the request.
  701. //
  702. // // Example sending a request using the GetPipelineExecutionRequest method.
  703. // req, resp := client.GetPipelineExecutionRequest(params)
  704. //
  705. // err := req.Send()
  706. // if err == nil { // resp is now filled
  707. // fmt.Println(resp)
  708. // }
  709. //
  710. func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionInput) (req *request.Request, output *GetPipelineExecutionOutput) {
  711. op := &request.Operation{
  712. Name: opGetPipelineExecution,
  713. HTTPMethod: "POST",
  714. HTTPPath: "/",
  715. }
  716. if input == nil {
  717. input = &GetPipelineExecutionInput{}
  718. }
  719. req = c.newRequest(op, input, output)
  720. output = &GetPipelineExecutionOutput{}
  721. req.Data = output
  722. return
  723. }
  724. // GetPipelineExecution API operation for AWS CodePipeline.
  725. //
  726. // Returns information about an execution of a pipeline, including details about
  727. // artifacts, the pipeline execution ID, and the name, version, and status of
  728. // the pipeline.
  729. //
  730. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  731. // with awserr.Error's Code and Message methods to get detailed information about
  732. // the error.
  733. //
  734. // See the AWS API reference guide for AWS CodePipeline's
  735. // API operation GetPipelineExecution for usage and error information.
  736. //
  737. // Returned Error Codes:
  738. // * ValidationException
  739. // The validation was specified in an invalid format.
  740. //
  741. // * PipelineNotFoundException
  742. // The specified pipeline was specified in an invalid format or cannot be found.
  743. //
  744. // * PipelineExecutionNotFoundException
  745. // The pipeline execution was specified in an invalid format or cannot be found,
  746. // or an execution ID does not belong to the specified pipeline.
  747. //
  748. func (c *CodePipeline) GetPipelineExecution(input *GetPipelineExecutionInput) (*GetPipelineExecutionOutput, error) {
  749. req, out := c.GetPipelineExecutionRequest(input)
  750. err := req.Send()
  751. return out, err
  752. }
  753. const opGetPipelineState = "GetPipelineState"
  754. // GetPipelineStateRequest generates a "aws/request.Request" representing the
  755. // client's request for the GetPipelineState operation. The "output" return
  756. // value can be used to capture response data after the request's "Send" method
  757. // is called.
  758. //
  759. // See GetPipelineState for usage and error information.
  760. //
  761. // Creating a request object using this method should be used when you want to inject
  762. // custom logic into the request's lifecycle using a custom handler, or if you want to
  763. // access properties on the request object before or after sending the request. If
  764. // you just want the service response, call the GetPipelineState method directly
  765. // instead.
  766. //
  767. // Note: You must call the "Send" method on the returned request object in order
  768. // to execute the request.
  769. //
  770. // // Example sending a request using the GetPipelineStateRequest method.
  771. // req, resp := client.GetPipelineStateRequest(params)
  772. //
  773. // err := req.Send()
  774. // if err == nil { // resp is now filled
  775. // fmt.Println(resp)
  776. // }
  777. //
  778. func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) {
  779. op := &request.Operation{
  780. Name: opGetPipelineState,
  781. HTTPMethod: "POST",
  782. HTTPPath: "/",
  783. }
  784. if input == nil {
  785. input = &GetPipelineStateInput{}
  786. }
  787. req = c.newRequest(op, input, output)
  788. output = &GetPipelineStateOutput{}
  789. req.Data = output
  790. return
  791. }
  792. // GetPipelineState API operation for AWS CodePipeline.
  793. //
  794. // Returns information about the state of a pipeline, including the stages and
  795. // actions.
  796. //
  797. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  798. // with awserr.Error's Code and Message methods to get detailed information about
  799. // the error.
  800. //
  801. // See the AWS API reference guide for AWS CodePipeline's
  802. // API operation GetPipelineState for usage and error information.
  803. //
  804. // Returned Error Codes:
  805. // * ValidationException
  806. // The validation was specified in an invalid format.
  807. //
  808. // * PipelineNotFoundException
  809. // The specified pipeline was specified in an invalid format or cannot be found.
  810. //
  811. func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
  812. req, out := c.GetPipelineStateRequest(input)
  813. err := req.Send()
  814. return out, err
  815. }
  816. const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
  817. // GetThirdPartyJobDetailsRequest generates a "aws/request.Request" representing the
  818. // client's request for the GetThirdPartyJobDetails operation. The "output" return
  819. // value can be used to capture response data after the request's "Send" method
  820. // is called.
  821. //
  822. // See GetThirdPartyJobDetails for usage and error information.
  823. //
  824. // Creating a request object using this method should be used when you want to inject
  825. // custom logic into the request's lifecycle using a custom handler, or if you want to
  826. // access properties on the request object before or after sending the request. If
  827. // you just want the service response, call the GetThirdPartyJobDetails method directly
  828. // instead.
  829. //
  830. // Note: You must call the "Send" method on the returned request object in order
  831. // to execute the request.
  832. //
  833. // // Example sending a request using the GetThirdPartyJobDetailsRequest method.
  834. // req, resp := client.GetThirdPartyJobDetailsRequest(params)
  835. //
  836. // err := req.Send()
  837. // if err == nil { // resp is now filled
  838. // fmt.Println(resp)
  839. // }
  840. //
  841. func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) {
  842. op := &request.Operation{
  843. Name: opGetThirdPartyJobDetails,
  844. HTTPMethod: "POST",
  845. HTTPPath: "/",
  846. }
  847. if input == nil {
  848. input = &GetThirdPartyJobDetailsInput{}
  849. }
  850. req = c.newRequest(op, input, output)
  851. output = &GetThirdPartyJobDetailsOutput{}
  852. req.Data = output
  853. return
  854. }
  855. // GetThirdPartyJobDetails API operation for AWS CodePipeline.
  856. //
  857. // Requests the details of a job for a third party action. Only used for partner
  858. // actions.
  859. //
  860. // When this API is called, AWS CodePipeline returns temporary credentials for
  861. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  862. // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
  863. // this API returns any secret values defined for the action.
  864. //
  865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  866. // with awserr.Error's Code and Message methods to get detailed information about
  867. // the error.
  868. //
  869. // See the AWS API reference guide for AWS CodePipeline's
  870. // API operation GetThirdPartyJobDetails for usage and error information.
  871. //
  872. // Returned Error Codes:
  873. // * JobNotFoundException
  874. // The specified job was specified in an invalid format or cannot be found.
  875. //
  876. // * ValidationException
  877. // The validation was specified in an invalid format.
  878. //
  879. // * InvalidClientTokenException
  880. // The client token was specified in an invalid format
  881. //
  882. // * InvalidJobException
  883. // The specified job was specified in an invalid format or cannot be found.
  884. //
  885. func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
  886. req, out := c.GetThirdPartyJobDetailsRequest(input)
  887. err := req.Send()
  888. return out, err
  889. }
  890. const opListActionTypes = "ListActionTypes"
  891. // ListActionTypesRequest generates a "aws/request.Request" representing the
  892. // client's request for the ListActionTypes operation. The "output" return
  893. // value can be used to capture response data after the request's "Send" method
  894. // is called.
  895. //
  896. // See ListActionTypes for usage and error information.
  897. //
  898. // Creating a request object using this method should be used when you want to inject
  899. // custom logic into the request's lifecycle using a custom handler, or if you want to
  900. // access properties on the request object before or after sending the request. If
  901. // you just want the service response, call the ListActionTypes method directly
  902. // instead.
  903. //
  904. // Note: You must call the "Send" method on the returned request object in order
  905. // to execute the request.
  906. //
  907. // // Example sending a request using the ListActionTypesRequest method.
  908. // req, resp := client.ListActionTypesRequest(params)
  909. //
  910. // err := req.Send()
  911. // if err == nil { // resp is now filled
  912. // fmt.Println(resp)
  913. // }
  914. //
  915. func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) {
  916. op := &request.Operation{
  917. Name: opListActionTypes,
  918. HTTPMethod: "POST",
  919. HTTPPath: "/",
  920. }
  921. if input == nil {
  922. input = &ListActionTypesInput{}
  923. }
  924. req = c.newRequest(op, input, output)
  925. output = &ListActionTypesOutput{}
  926. req.Data = output
  927. return
  928. }
  929. // ListActionTypes API operation for AWS CodePipeline.
  930. //
  931. // Gets a summary of all AWS CodePipeline action types associated with your
  932. // account.
  933. //
  934. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  935. // with awserr.Error's Code and Message methods to get detailed information about
  936. // the error.
  937. //
  938. // See the AWS API reference guide for AWS CodePipeline's
  939. // API operation ListActionTypes for usage and error information.
  940. //
  941. // Returned Error Codes:
  942. // * ValidationException
  943. // The validation was specified in an invalid format.
  944. //
  945. // * InvalidNextTokenException
  946. // The next token was specified in an invalid format. Make sure that the next
  947. // token you provided is the token returned by a previous call.
  948. //
  949. func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
  950. req, out := c.ListActionTypesRequest(input)
  951. err := req.Send()
  952. return out, err
  953. }
  954. const opListPipelines = "ListPipelines"
  955. // ListPipelinesRequest generates a "aws/request.Request" representing the
  956. // client's request for the ListPipelines operation. The "output" return
  957. // value can be used to capture response data after the request's "Send" method
  958. // is called.
  959. //
  960. // See ListPipelines for usage and error information.
  961. //
  962. // Creating a request object using this method should be used when you want to inject
  963. // custom logic into the request's lifecycle using a custom handler, or if you want to
  964. // access properties on the request object before or after sending the request. If
  965. // you just want the service response, call the ListPipelines method directly
  966. // instead.
  967. //
  968. // Note: You must call the "Send" method on the returned request object in order
  969. // to execute the request.
  970. //
  971. // // Example sending a request using the ListPipelinesRequest method.
  972. // req, resp := client.ListPipelinesRequest(params)
  973. //
  974. // err := req.Send()
  975. // if err == nil { // resp is now filled
  976. // fmt.Println(resp)
  977. // }
  978. //
  979. func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  980. op := &request.Operation{
  981. Name: opListPipelines,
  982. HTTPMethod: "POST",
  983. HTTPPath: "/",
  984. }
  985. if input == nil {
  986. input = &ListPipelinesInput{}
  987. }
  988. req = c.newRequest(op, input, output)
  989. output = &ListPipelinesOutput{}
  990. req.Data = output
  991. return
  992. }
  993. // ListPipelines API operation for AWS CodePipeline.
  994. //
  995. // Gets a summary of all of the pipelines associated with your account.
  996. //
  997. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  998. // with awserr.Error's Code and Message methods to get detailed information about
  999. // the error.
  1000. //
  1001. // See the AWS API reference guide for AWS CodePipeline's
  1002. // API operation ListPipelines for usage and error information.
  1003. //
  1004. // Returned Error Codes:
  1005. // * InvalidNextTokenException
  1006. // The next token was specified in an invalid format. Make sure that the next
  1007. // token you provided is the token returned by a previous call.
  1008. //
  1009. func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  1010. req, out := c.ListPipelinesRequest(input)
  1011. err := req.Send()
  1012. return out, err
  1013. }
  1014. const opPollForJobs = "PollForJobs"
  1015. // PollForJobsRequest generates a "aws/request.Request" representing the
  1016. // client's request for the PollForJobs operation. The "output" return
  1017. // value can be used to capture response data after the request's "Send" method
  1018. // is called.
  1019. //
  1020. // See PollForJobs for usage and error information.
  1021. //
  1022. // Creating a request object using this method should be used when you want to inject
  1023. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1024. // access properties on the request object before or after sending the request. If
  1025. // you just want the service response, call the PollForJobs method directly
  1026. // instead.
  1027. //
  1028. // Note: You must call the "Send" method on the returned request object in order
  1029. // to execute the request.
  1030. //
  1031. // // Example sending a request using the PollForJobsRequest method.
  1032. // req, resp := client.PollForJobsRequest(params)
  1033. //
  1034. // err := req.Send()
  1035. // if err == nil { // resp is now filled
  1036. // fmt.Println(resp)
  1037. // }
  1038. //
  1039. func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) {
  1040. op := &request.Operation{
  1041. Name: opPollForJobs,
  1042. HTTPMethod: "POST",
  1043. HTTPPath: "/",
  1044. }
  1045. if input == nil {
  1046. input = &PollForJobsInput{}
  1047. }
  1048. req = c.newRequest(op, input, output)
  1049. output = &PollForJobsOutput{}
  1050. req.Data = output
  1051. return
  1052. }
  1053. // PollForJobs API operation for AWS CodePipeline.
  1054. //
  1055. // Returns information about any jobs for AWS CodePipeline to act upon.
  1056. //
  1057. // When this API is called, AWS CodePipeline returns temporary credentials for
  1058. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  1059. // requires access to that Amazon S3 bucket for input or output artifacts. Additionally,
  1060. // this API returns any secret values defined for the action.
  1061. //
  1062. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1063. // with awserr.Error's Code and Message methods to get detailed information about
  1064. // the error.
  1065. //
  1066. // See the AWS API reference guide for AWS CodePipeline's
  1067. // API operation PollForJobs for usage and error information.
  1068. //
  1069. // Returned Error Codes:
  1070. // * ValidationException
  1071. // The validation was specified in an invalid format.
  1072. //
  1073. // * ActionTypeNotFoundException
  1074. // The specified action type cannot be found.
  1075. //
  1076. func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
  1077. req, out := c.PollForJobsRequest(input)
  1078. err := req.Send()
  1079. return out, err
  1080. }
  1081. const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
  1082. // PollForThirdPartyJobsRequest generates a "aws/request.Request" representing the
  1083. // client's request for the PollForThirdPartyJobs operation. The "output" return
  1084. // value can be used to capture response data after the request's "Send" method
  1085. // is called.
  1086. //
  1087. // See PollForThirdPartyJobs for usage and error information.
  1088. //
  1089. // Creating a request object using this method should be used when you want to inject
  1090. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1091. // access properties on the request object before or after sending the request. If
  1092. // you just want the service response, call the PollForThirdPartyJobs method directly
  1093. // instead.
  1094. //
  1095. // Note: You must call the "Send" method on the returned request object in order
  1096. // to execute the request.
  1097. //
  1098. // // Example sending a request using the PollForThirdPartyJobsRequest method.
  1099. // req, resp := client.PollForThirdPartyJobsRequest(params)
  1100. //
  1101. // err := req.Send()
  1102. // if err == nil { // resp is now filled
  1103. // fmt.Println(resp)
  1104. // }
  1105. //
  1106. func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) {
  1107. op := &request.Operation{
  1108. Name: opPollForThirdPartyJobs,
  1109. HTTPMethod: "POST",
  1110. HTTPPath: "/",
  1111. }
  1112. if input == nil {
  1113. input = &PollForThirdPartyJobsInput{}
  1114. }
  1115. req = c.newRequest(op, input, output)
  1116. output = &PollForThirdPartyJobsOutput{}
  1117. req.Data = output
  1118. return
  1119. }
  1120. // PollForThirdPartyJobs API operation for AWS CodePipeline.
  1121. //
  1122. // Determines whether there are any third party jobs for a job worker to act
  1123. // on. Only used for partner actions.
  1124. //
  1125. // When this API is called, AWS CodePipeline returns temporary credentials for
  1126. // the Amazon S3 bucket used to store artifacts for the pipeline, if the action
  1127. // requires access to that Amazon S3 bucket for input or output artifacts.
  1128. //
  1129. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1130. // with awserr.Error's Code and Message methods to get detailed information about
  1131. // the error.
  1132. //
  1133. // See the AWS API reference guide for AWS CodePipeline's
  1134. // API operation PollForThirdPartyJobs for usage and error information.
  1135. //
  1136. // Returned Error Codes:
  1137. // * ActionTypeNotFoundException
  1138. // The specified action type cannot be found.
  1139. //
  1140. // * ValidationException
  1141. // The validation was specified in an invalid format.
  1142. //
  1143. func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
  1144. req, out := c.PollForThirdPartyJobsRequest(input)
  1145. err := req.Send()
  1146. return out, err
  1147. }
  1148. const opPutActionRevision = "PutActionRevision"
  1149. // PutActionRevisionRequest generates a "aws/request.Request" representing the
  1150. // client's request for the PutActionRevision operation. The "output" return
  1151. // value can be used to capture response data after the request's "Send" method
  1152. // is called.
  1153. //
  1154. // See PutActionRevision for usage and error information.
  1155. //
  1156. // Creating a request object using this method should be used when you want to inject
  1157. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1158. // access properties on the request object before or after sending the request. If
  1159. // you just want the service response, call the PutActionRevision method directly
  1160. // instead.
  1161. //
  1162. // Note: You must call the "Send" method on the returned request object in order
  1163. // to execute the request.
  1164. //
  1165. // // Example sending a request using the PutActionRevisionRequest method.
  1166. // req, resp := client.PutActionRevisionRequest(params)
  1167. //
  1168. // err := req.Send()
  1169. // if err == nil { // resp is now filled
  1170. // fmt.Println(resp)
  1171. // }
  1172. //
  1173. func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) {
  1174. op := &request.Operation{
  1175. Name: opPutActionRevision,
  1176. HTTPMethod: "POST",
  1177. HTTPPath: "/",
  1178. }
  1179. if input == nil {
  1180. input = &PutActionRevisionInput{}
  1181. }
  1182. req = c.newRequest(op, input, output)
  1183. output = &PutActionRevisionOutput{}
  1184. req.Data = output
  1185. return
  1186. }
  1187. // PutActionRevision API operation for AWS CodePipeline.
  1188. //
  1189. // Provides information to AWS CodePipeline about new revisions to a source.
  1190. //
  1191. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1192. // with awserr.Error's Code and Message methods to get detailed information about
  1193. // the error.
  1194. //
  1195. // See the AWS API reference guide for AWS CodePipeline's
  1196. // API operation PutActionRevision for usage and error information.
  1197. //
  1198. // Returned Error Codes:
  1199. // * PipelineNotFoundException
  1200. // The specified pipeline was specified in an invalid format or cannot be found.
  1201. //
  1202. // * StageNotFoundException
  1203. // The specified stage was specified in an invalid format or cannot be found.
  1204. //
  1205. // * ActionNotFoundException
  1206. // The specified action cannot be found.
  1207. //
  1208. // * ValidationException
  1209. // The validation was specified in an invalid format.
  1210. //
  1211. func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
  1212. req, out := c.PutActionRevisionRequest(input)
  1213. err := req.Send()
  1214. return out, err
  1215. }
  1216. const opPutApprovalResult = "PutApprovalResult"
  1217. // PutApprovalResultRequest generates a "aws/request.Request" representing the
  1218. // client's request for the PutApprovalResult operation. The "output" return
  1219. // value can be used to capture response data after the request's "Send" method
  1220. // is called.
  1221. //
  1222. // See PutApprovalResult for usage and error information.
  1223. //
  1224. // Creating a request object using this method should be used when you want to inject
  1225. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1226. // access properties on the request object before or after sending the request. If
  1227. // you just want the service response, call the PutApprovalResult method directly
  1228. // instead.
  1229. //
  1230. // Note: You must call the "Send" method on the returned request object in order
  1231. // to execute the request.
  1232. //
  1233. // // Example sending a request using the PutApprovalResultRequest method.
  1234. // req, resp := client.PutApprovalResultRequest(params)
  1235. //
  1236. // err := req.Send()
  1237. // if err == nil { // resp is now filled
  1238. // fmt.Println(resp)
  1239. // }
  1240. //
  1241. func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) (req *request.Request, output *PutApprovalResultOutput) {
  1242. op := &request.Operation{
  1243. Name: opPutApprovalResult,
  1244. HTTPMethod: "POST",
  1245. HTTPPath: "/",
  1246. }
  1247. if input == nil {
  1248. input = &PutApprovalResultInput{}
  1249. }
  1250. req = c.newRequest(op, input, output)
  1251. output = &PutApprovalResultOutput{}
  1252. req.Data = output
  1253. return
  1254. }
  1255. // PutApprovalResult API operation for AWS CodePipeline.
  1256. //
  1257. // Provides the response to a manual approval request to AWS CodePipeline. Valid
  1258. // responses include Approved and Rejected.
  1259. //
  1260. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1261. // with awserr.Error's Code and Message methods to get detailed information about
  1262. // the error.
  1263. //
  1264. // See the AWS API reference guide for AWS CodePipeline's
  1265. // API operation PutApprovalResult for usage and error information.
  1266. //
  1267. // Returned Error Codes:
  1268. // * InvalidApprovalTokenException
  1269. // The approval request already received a response or has expired.
  1270. //
  1271. // * ApprovalAlreadyCompletedException
  1272. // The approval action has already been approved or rejected.
  1273. //
  1274. // * PipelineNotFoundException
  1275. // The specified pipeline was specified in an invalid format or cannot be found.
  1276. //
  1277. // * StageNotFoundException
  1278. // The specified stage was specified in an invalid format or cannot be found.
  1279. //
  1280. // * ActionNotFoundException
  1281. // The specified action cannot be found.
  1282. //
  1283. // * ValidationException
  1284. // The validation was specified in an invalid format.
  1285. //
  1286. func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) {
  1287. req, out := c.PutApprovalResultRequest(input)
  1288. err := req.Send()
  1289. return out, err
  1290. }
  1291. const opPutJobFailureResult = "PutJobFailureResult"
  1292. // PutJobFailureResultRequest generates a "aws/request.Request" representing the
  1293. // client's request for the PutJobFailureResult operation. The "output" return
  1294. // value can be used to capture response data after the request's "Send" method
  1295. // is called.
  1296. //
  1297. // See PutJobFailureResult for usage and error information.
  1298. //
  1299. // Creating a request object using this method should be used when you want to inject
  1300. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1301. // access properties on the request object before or after sending the request. If
  1302. // you just want the service response, call the PutJobFailureResult method directly
  1303. // instead.
  1304. //
  1305. // Note: You must call the "Send" method on the returned request object in order
  1306. // to execute the request.
  1307. //
  1308. // // Example sending a request using the PutJobFailureResultRequest method.
  1309. // req, resp := client.PutJobFailureResultRequest(params)
  1310. //
  1311. // err := req.Send()
  1312. // if err == nil { // resp is now filled
  1313. // fmt.Println(resp)
  1314. // }
  1315. //
  1316. func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) {
  1317. op := &request.Operation{
  1318. Name: opPutJobFailureResult,
  1319. HTTPMethod: "POST",
  1320. HTTPPath: "/",
  1321. }
  1322. if input == nil {
  1323. input = &PutJobFailureResultInput{}
  1324. }
  1325. req = c.newRequest(op, input, output)
  1326. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1327. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1328. output = &PutJobFailureResultOutput{}
  1329. req.Data = output
  1330. return
  1331. }
  1332. // PutJobFailureResult API operation for AWS CodePipeline.
  1333. //
  1334. // Represents the failure of a job as returned to the pipeline by a job worker.
  1335. // Only used for custom actions.
  1336. //
  1337. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1338. // with awserr.Error's Code and Message methods to get detailed information about
  1339. // the error.
  1340. //
  1341. // See the AWS API reference guide for AWS CodePipeline's
  1342. // API operation PutJobFailureResult for usage and error information.
  1343. //
  1344. // Returned Error Codes:
  1345. // * ValidationException
  1346. // The validation was specified in an invalid format.
  1347. //
  1348. // * JobNotFoundException
  1349. // The specified job was specified in an invalid format or cannot be found.
  1350. //
  1351. // * InvalidJobStateException
  1352. // The specified job state was specified in an invalid format.
  1353. //
  1354. func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
  1355. req, out := c.PutJobFailureResultRequest(input)
  1356. err := req.Send()
  1357. return out, err
  1358. }
  1359. const opPutJobSuccessResult = "PutJobSuccessResult"
  1360. // PutJobSuccessResultRequest generates a "aws/request.Request" representing the
  1361. // client's request for the PutJobSuccessResult operation. The "output" return
  1362. // value can be used to capture response data after the request's "Send" method
  1363. // is called.
  1364. //
  1365. // See PutJobSuccessResult for usage and error information.
  1366. //
  1367. // Creating a request object using this method should be used when you want to inject
  1368. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1369. // access properties on the request object before or after sending the request. If
  1370. // you just want the service response, call the PutJobSuccessResult method directly
  1371. // instead.
  1372. //
  1373. // Note: You must call the "Send" method on the returned request object in order
  1374. // to execute the request.
  1375. //
  1376. // // Example sending a request using the PutJobSuccessResultRequest method.
  1377. // req, resp := client.PutJobSuccessResultRequest(params)
  1378. //
  1379. // err := req.Send()
  1380. // if err == nil { // resp is now filled
  1381. // fmt.Println(resp)
  1382. // }
  1383. //
  1384. func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) {
  1385. op := &request.Operation{
  1386. Name: opPutJobSuccessResult,
  1387. HTTPMethod: "POST",
  1388. HTTPPath: "/",
  1389. }
  1390. if input == nil {
  1391. input = &PutJobSuccessResultInput{}
  1392. }
  1393. req = c.newRequest(op, input, output)
  1394. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1395. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1396. output = &PutJobSuccessResultOutput{}
  1397. req.Data = output
  1398. return
  1399. }
  1400. // PutJobSuccessResult API operation for AWS CodePipeline.
  1401. //
  1402. // Represents the success of a job as returned to the pipeline by a job worker.
  1403. // Only used for custom actions.
  1404. //
  1405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1406. // with awserr.Error's Code and Message methods to get detailed information about
  1407. // the error.
  1408. //
  1409. // See the AWS API reference guide for AWS CodePipeline's
  1410. // API operation PutJobSuccessResult for usage and error information.
  1411. //
  1412. // Returned Error Codes:
  1413. // * ValidationException
  1414. // The validation was specified in an invalid format.
  1415. //
  1416. // * JobNotFoundException
  1417. // The specified job was specified in an invalid format or cannot be found.
  1418. //
  1419. // * InvalidJobStateException
  1420. // The specified job state was specified in an invalid format.
  1421. //
  1422. func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
  1423. req, out := c.PutJobSuccessResultRequest(input)
  1424. err := req.Send()
  1425. return out, err
  1426. }
  1427. const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
  1428. // PutThirdPartyJobFailureResultRequest generates a "aws/request.Request" representing the
  1429. // client's request for the PutThirdPartyJobFailureResult operation. The "output" return
  1430. // value can be used to capture response data after the request's "Send" method
  1431. // is called.
  1432. //
  1433. // See PutThirdPartyJobFailureResult for usage and error information.
  1434. //
  1435. // Creating a request object using this method should be used when you want to inject
  1436. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1437. // access properties on the request object before or after sending the request. If
  1438. // you just want the service response, call the PutThirdPartyJobFailureResult method directly
  1439. // instead.
  1440. //
  1441. // Note: You must call the "Send" method on the returned request object in order
  1442. // to execute the request.
  1443. //
  1444. // // Example sending a request using the PutThirdPartyJobFailureResultRequest method.
  1445. // req, resp := client.PutThirdPartyJobFailureResultRequest(params)
  1446. //
  1447. // err := req.Send()
  1448. // if err == nil { // resp is now filled
  1449. // fmt.Println(resp)
  1450. // }
  1451. //
  1452. func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) {
  1453. op := &request.Operation{
  1454. Name: opPutThirdPartyJobFailureResult,
  1455. HTTPMethod: "POST",
  1456. HTTPPath: "/",
  1457. }
  1458. if input == nil {
  1459. input = &PutThirdPartyJobFailureResultInput{}
  1460. }
  1461. req = c.newRequest(op, input, output)
  1462. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1463. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1464. output = &PutThirdPartyJobFailureResultOutput{}
  1465. req.Data = output
  1466. return
  1467. }
  1468. // PutThirdPartyJobFailureResult API operation for AWS CodePipeline.
  1469. //
  1470. // Represents the failure of a third party job as returned to the pipeline by
  1471. // a job worker. Only used for partner actions.
  1472. //
  1473. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1474. // with awserr.Error's Code and Message methods to get detailed information about
  1475. // the error.
  1476. //
  1477. // See the AWS API reference guide for AWS CodePipeline's
  1478. // API operation PutThirdPartyJobFailureResult for usage and error information.
  1479. //
  1480. // Returned Error Codes:
  1481. // * ValidationException
  1482. // The validation was specified in an invalid format.
  1483. //
  1484. // * JobNotFoundException
  1485. // The specified job was specified in an invalid format or cannot be found.
  1486. //
  1487. // * InvalidJobStateException
  1488. // The specified job state was specified in an invalid format.
  1489. //
  1490. // * InvalidClientTokenException
  1491. // The client token was specified in an invalid format
  1492. //
  1493. func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
  1494. req, out := c.PutThirdPartyJobFailureResultRequest(input)
  1495. err := req.Send()
  1496. return out, err
  1497. }
  1498. const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
  1499. // PutThirdPartyJobSuccessResultRequest generates a "aws/request.Request" representing the
  1500. // client's request for the PutThirdPartyJobSuccessResult operation. The "output" return
  1501. // value can be used to capture response data after the request's "Send" method
  1502. // is called.
  1503. //
  1504. // See PutThirdPartyJobSuccessResult for usage and error information.
  1505. //
  1506. // Creating a request object using this method should be used when you want to inject
  1507. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1508. // access properties on the request object before or after sending the request. If
  1509. // you just want the service response, call the PutThirdPartyJobSuccessResult method directly
  1510. // instead.
  1511. //
  1512. // Note: You must call the "Send" method on the returned request object in order
  1513. // to execute the request.
  1514. //
  1515. // // Example sending a request using the PutThirdPartyJobSuccessResultRequest method.
  1516. // req, resp := client.PutThirdPartyJobSuccessResultRequest(params)
  1517. //
  1518. // err := req.Send()
  1519. // if err == nil { // resp is now filled
  1520. // fmt.Println(resp)
  1521. // }
  1522. //
  1523. func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) {
  1524. op := &request.Operation{
  1525. Name: opPutThirdPartyJobSuccessResult,
  1526. HTTPMethod: "POST",
  1527. HTTPPath: "/",
  1528. }
  1529. if input == nil {
  1530. input = &PutThirdPartyJobSuccessResultInput{}
  1531. }
  1532. req = c.newRequest(op, input, output)
  1533. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1534. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1535. output = &PutThirdPartyJobSuccessResultOutput{}
  1536. req.Data = output
  1537. return
  1538. }
  1539. // PutThirdPartyJobSuccessResult API operation for AWS CodePipeline.
  1540. //
  1541. // Represents the success of a third party job as returned to the pipeline by
  1542. // a job worker. Only used for partner actions.
  1543. //
  1544. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1545. // with awserr.Error's Code and Message methods to get detailed information about
  1546. // the error.
  1547. //
  1548. // See the AWS API reference guide for AWS CodePipeline's
  1549. // API operation PutThirdPartyJobSuccessResult for usage and error information.
  1550. //
  1551. // Returned Error Codes:
  1552. // * ValidationException
  1553. // The validation was specified in an invalid format.
  1554. //
  1555. // * JobNotFoundException
  1556. // The specified job was specified in an invalid format or cannot be found.
  1557. //
  1558. // * InvalidJobStateException
  1559. // The specified job state was specified in an invalid format.
  1560. //
  1561. // * InvalidClientTokenException
  1562. // The client token was specified in an invalid format
  1563. //
  1564. func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
  1565. req, out := c.PutThirdPartyJobSuccessResultRequest(input)
  1566. err := req.Send()
  1567. return out, err
  1568. }
  1569. const opRetryStageExecution = "RetryStageExecution"
  1570. // RetryStageExecutionRequest generates a "aws/request.Request" representing the
  1571. // client's request for the RetryStageExecution operation. The "output" return
  1572. // value can be used to capture response data after the request's "Send" method
  1573. // is called.
  1574. //
  1575. // See RetryStageExecution for usage and error information.
  1576. //
  1577. // Creating a request object using this method should be used when you want to inject
  1578. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1579. // access properties on the request object before or after sending the request. If
  1580. // you just want the service response, call the RetryStageExecution method directly
  1581. // instead.
  1582. //
  1583. // Note: You must call the "Send" method on the returned request object in order
  1584. // to execute the request.
  1585. //
  1586. // // Example sending a request using the RetryStageExecutionRequest method.
  1587. // req, resp := client.RetryStageExecutionRequest(params)
  1588. //
  1589. // err := req.Send()
  1590. // if err == nil { // resp is now filled
  1591. // fmt.Println(resp)
  1592. // }
  1593. //
  1594. func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInput) (req *request.Request, output *RetryStageExecutionOutput) {
  1595. op := &request.Operation{
  1596. Name: opRetryStageExecution,
  1597. HTTPMethod: "POST",
  1598. HTTPPath: "/",
  1599. }
  1600. if input == nil {
  1601. input = &RetryStageExecutionInput{}
  1602. }
  1603. req = c.newRequest(op, input, output)
  1604. output = &RetryStageExecutionOutput{}
  1605. req.Data = output
  1606. return
  1607. }
  1608. // RetryStageExecution API operation for AWS CodePipeline.
  1609. //
  1610. // Resumes the pipeline execution by retrying the last failed actions in a stage.
  1611. //
  1612. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1613. // with awserr.Error's Code and Message methods to get detailed information about
  1614. // the error.
  1615. //
  1616. // See the AWS API reference guide for AWS CodePipeline's
  1617. // API operation RetryStageExecution for usage and error information.
  1618. //
  1619. // Returned Error Codes:
  1620. // * ValidationException
  1621. // The validation was specified in an invalid format.
  1622. //
  1623. // * PipelineNotFoundException
  1624. // The specified pipeline was specified in an invalid format or cannot be found.
  1625. //
  1626. // * StageNotFoundException
  1627. // The specified stage was specified in an invalid format or cannot be found.
  1628. //
  1629. // * StageNotRetryableException
  1630. // The specified stage can't be retried because the pipeline structure or stage
  1631. // state changed after the stage was not completed; the stage contains no failed
  1632. // actions; one or more actions are still in progress; or another retry attempt
  1633. // is already in progress.
  1634. //
  1635. // * NotLatestPipelineExecutionException
  1636. // The stage has failed in a later run of the pipeline and the pipelineExecutionId
  1637. // associated with the request is out of date.
  1638. //
  1639. func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) {
  1640. req, out := c.RetryStageExecutionRequest(input)
  1641. err := req.Send()
  1642. return out, err
  1643. }
  1644. const opStartPipelineExecution = "StartPipelineExecution"
  1645. // StartPipelineExecutionRequest generates a "aws/request.Request" representing the
  1646. // client's request for the StartPipelineExecution operation. The "output" return
  1647. // value can be used to capture response data after the request's "Send" method
  1648. // is called.
  1649. //
  1650. // See StartPipelineExecution for usage and error information.
  1651. //
  1652. // Creating a request object using this method should be used when you want to inject
  1653. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1654. // access properties on the request object before or after sending the request. If
  1655. // you just want the service response, call the StartPipelineExecution method directly
  1656. // instead.
  1657. //
  1658. // Note: You must call the "Send" method on the returned request object in order
  1659. // to execute the request.
  1660. //
  1661. // // Example sending a request using the StartPipelineExecutionRequest method.
  1662. // req, resp := client.StartPipelineExecutionRequest(params)
  1663. //
  1664. // err := req.Send()
  1665. // if err == nil { // resp is now filled
  1666. // fmt.Println(resp)
  1667. // }
  1668. //
  1669. func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) {
  1670. op := &request.Operation{
  1671. Name: opStartPipelineExecution,
  1672. HTTPMethod: "POST",
  1673. HTTPPath: "/",
  1674. }
  1675. if input == nil {
  1676. input = &StartPipelineExecutionInput{}
  1677. }
  1678. req = c.newRequest(op, input, output)
  1679. output = &StartPipelineExecutionOutput{}
  1680. req.Data = output
  1681. return
  1682. }
  1683. // StartPipelineExecution API operation for AWS CodePipeline.
  1684. //
  1685. // Starts the specified pipeline. Specifically, it begins processing the latest
  1686. // commit to the source location specified as part of the pipeline.
  1687. //
  1688. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1689. // with awserr.Error's Code and Message methods to get detailed information about
  1690. // the error.
  1691. //
  1692. // See the AWS API reference guide for AWS CodePipeline's
  1693. // API operation StartPipelineExecution for usage and error information.
  1694. //
  1695. // Returned Error Codes:
  1696. // * ValidationException
  1697. // The validation was specified in an invalid format.
  1698. //
  1699. // * PipelineNotFoundException
  1700. // The specified pipeline was specified in an invalid format or cannot be found.
  1701. //
  1702. func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
  1703. req, out := c.StartPipelineExecutionRequest(input)
  1704. err := req.Send()
  1705. return out, err
  1706. }
  1707. const opUpdatePipeline = "UpdatePipeline"
  1708. // UpdatePipelineRequest generates a "aws/request.Request" representing the
  1709. // client's request for the UpdatePipeline operation. The "output" return
  1710. // value can be used to capture response data after the request's "Send" method
  1711. // is called.
  1712. //
  1713. // See UpdatePipeline for usage and error information.
  1714. //
  1715. // Creating a request object using this method should be used when you want to inject
  1716. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1717. // access properties on the request object before or after sending the request. If
  1718. // you just want the service response, call the UpdatePipeline method directly
  1719. // instead.
  1720. //
  1721. // Note: You must call the "Send" method on the returned request object in order
  1722. // to execute the request.
  1723. //
  1724. // // Example sending a request using the UpdatePipelineRequest method.
  1725. // req, resp := client.UpdatePipelineRequest(params)
  1726. //
  1727. // err := req.Send()
  1728. // if err == nil { // resp is now filled
  1729. // fmt.Println(resp)
  1730. // }
  1731. //
  1732. func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
  1733. op := &request.Operation{
  1734. Name: opUpdatePipeline,
  1735. HTTPMethod: "POST",
  1736. HTTPPath: "/",
  1737. }
  1738. if input == nil {
  1739. input = &UpdatePipelineInput{}
  1740. }
  1741. req = c.newRequest(op, input, output)
  1742. output = &UpdatePipelineOutput{}
  1743. req.Data = output
  1744. return
  1745. }
  1746. // UpdatePipeline API operation for AWS CodePipeline.
  1747. //
  1748. // Updates a specified pipeline with edits or changes to its structure. Use
  1749. // a JSON file with the pipeline structure in conjunction with UpdatePipeline
  1750. // to provide the full structure of the pipeline. Updating the pipeline increases
  1751. // the version number of the pipeline by 1.
  1752. //
  1753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1754. // with awserr.Error's Code and Message methods to get detailed information about
  1755. // the error.
  1756. //
  1757. // See the AWS API reference guide for AWS CodePipeline's
  1758. // API operation UpdatePipeline for usage and error information.
  1759. //
  1760. // Returned Error Codes:
  1761. // * ValidationException
  1762. // The validation was specified in an invalid format.
  1763. //
  1764. // * InvalidStageDeclarationException
  1765. // The specified stage declaration was specified in an invalid format.
  1766. //
  1767. // * InvalidActionDeclarationException
  1768. // The specified action declaration was specified in an invalid format.
  1769. //
  1770. // * InvalidBlockerDeclarationException
  1771. // Reserved for future use.
  1772. //
  1773. // * InvalidStructureException
  1774. // The specified structure was specified in an invalid format.
  1775. //
  1776. func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
  1777. req, out := c.UpdatePipelineRequest(input)
  1778. err := req.Send()
  1779. return out, err
  1780. }
  1781. // Represents an AWS session credentials object. These credentials are temporary
  1782. // credentials that are issued by AWS Secure Token Service (STS). They can be
  1783. // used to access input and output artifacts in the Amazon S3 bucket used to
  1784. // store artifact for the pipeline in AWS CodePipeline.
  1785. type AWSSessionCredentials struct {
  1786. _ struct{} `type:"structure"`
  1787. // The access key for the session.
  1788. //
  1789. // AccessKeyId is a required field
  1790. AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true"`
  1791. // The secret access key for the session.
  1792. //
  1793. // SecretAccessKey is a required field
  1794. SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
  1795. // The token for the session.
  1796. //
  1797. // SessionToken is a required field
  1798. SessionToken *string `locationName:"sessionToken" type:"string" required:"true"`
  1799. }
  1800. // String returns the string representation
  1801. func (s AWSSessionCredentials) String() string {
  1802. return awsutil.Prettify(s)
  1803. }
  1804. // GoString returns the string representation
  1805. func (s AWSSessionCredentials) GoString() string {
  1806. return s.String()
  1807. }
  1808. // Represents the input of an acknowledge job action.
  1809. type AcknowledgeJobInput struct {
  1810. _ struct{} `type:"structure"`
  1811. // The unique system-generated ID of the job for which you want to confirm receipt.
  1812. //
  1813. // JobId is a required field
  1814. JobId *string `locationName:"jobId" type:"string" required:"true"`
  1815. // A system-generated random number that AWS CodePipeline uses to ensure that
  1816. // the job is being worked on by only one job worker. This number must be returned
  1817. // in the response.
  1818. //
  1819. // Nonce is a required field
  1820. Nonce *string `locationName:"nonce" type:"string" required:"true"`
  1821. }
  1822. // String returns the string representation
  1823. func (s AcknowledgeJobInput) String() string {
  1824. return awsutil.Prettify(s)
  1825. }
  1826. // GoString returns the string representation
  1827. func (s AcknowledgeJobInput) GoString() string {
  1828. return s.String()
  1829. }
  1830. // Validate inspects the fields of the type to determine if they are valid.
  1831. func (s *AcknowledgeJobInput) Validate() error {
  1832. invalidParams := request.ErrInvalidParams{Context: "AcknowledgeJobInput"}
  1833. if s.JobId == nil {
  1834. invalidParams.Add(request.NewErrParamRequired("JobId"))
  1835. }
  1836. if s.Nonce == nil {
  1837. invalidParams.Add(request.NewErrParamRequired("Nonce"))
  1838. }
  1839. if invalidParams.Len() > 0 {
  1840. return invalidParams
  1841. }
  1842. return nil
  1843. }
  1844. // Represents the output of an acknowledge job action.
  1845. type AcknowledgeJobOutput struct {
  1846. _ struct{} `type:"structure"`
  1847. // Whether the job worker has received the specified job.
  1848. Status *string `locationName:"status" type:"string" enum:"JobStatus"`
  1849. }
  1850. // String returns the string representation
  1851. func (s AcknowledgeJobOutput) String() string {
  1852. return awsutil.Prettify(s)
  1853. }
  1854. // GoString returns the string representation
  1855. func (s AcknowledgeJobOutput) GoString() string {
  1856. return s.String()
  1857. }
  1858. // Represents the input of an acknowledge third party job action.
  1859. type AcknowledgeThirdPartyJobInput struct {
  1860. _ struct{} `type:"structure"`
  1861. // The clientToken portion of the clientId and clientToken pair used to verify
  1862. // that the calling entity is allowed access to the job and its details.
  1863. //
  1864. // ClientToken is a required field
  1865. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  1866. // The unique system-generated ID of the job.
  1867. //
  1868. // JobId is a required field
  1869. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  1870. // A system-generated random number that AWS CodePipeline uses to ensure that
  1871. // the job is being worked on by only one job worker. This number must be returned
  1872. // in the response.
  1873. //
  1874. // Nonce is a required field
  1875. Nonce *string `locationName:"nonce" type:"string" required:"true"`
  1876. }
  1877. // String returns the string representation
  1878. func (s AcknowledgeThirdPartyJobInput) String() string {
  1879. return awsutil.Prettify(s)
  1880. }
  1881. // GoString returns the string representation
  1882. func (s AcknowledgeThirdPartyJobInput) GoString() string {
  1883. return s.String()
  1884. }
  1885. // Validate inspects the fields of the type to determine if they are valid.
  1886. func (s *AcknowledgeThirdPartyJobInput) Validate() error {
  1887. invalidParams := request.ErrInvalidParams{Context: "AcknowledgeThirdPartyJobInput"}
  1888. if s.ClientToken == nil {
  1889. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  1890. }
  1891. if s.JobId == nil {
  1892. invalidParams.Add(request.NewErrParamRequired("JobId"))
  1893. }
  1894. if s.JobId != nil && len(*s.JobId) < 1 {
  1895. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  1896. }
  1897. if s.Nonce == nil {
  1898. invalidParams.Add(request.NewErrParamRequired("Nonce"))
  1899. }
  1900. if invalidParams.Len() > 0 {
  1901. return invalidParams
  1902. }
  1903. return nil
  1904. }
  1905. // Represents the output of an acknowledge third party job action.
  1906. type AcknowledgeThirdPartyJobOutput struct {
  1907. _ struct{} `type:"structure"`
  1908. // The status information for the third party job, if any.
  1909. Status *string `locationName:"status" type:"string" enum:"JobStatus"`
  1910. }
  1911. // String returns the string representation
  1912. func (s AcknowledgeThirdPartyJobOutput) String() string {
  1913. return awsutil.Prettify(s)
  1914. }
  1915. // GoString returns the string representation
  1916. func (s AcknowledgeThirdPartyJobOutput) GoString() string {
  1917. return s.String()
  1918. }
  1919. // Represents information about an action configuration.
  1920. type ActionConfiguration struct {
  1921. _ struct{} `type:"structure"`
  1922. // The configuration data for the action.
  1923. Configuration map[string]*string `locationName:"configuration" type:"map"`
  1924. }
  1925. // String returns the string representation
  1926. func (s ActionConfiguration) String() string {
  1927. return awsutil.Prettify(s)
  1928. }
  1929. // GoString returns the string representation
  1930. func (s ActionConfiguration) GoString() string {
  1931. return s.String()
  1932. }
  1933. // Represents information about an action configuration property.
  1934. type ActionConfigurationProperty struct {
  1935. _ struct{} `type:"structure"`
  1936. // The description of the action configuration property that will be displayed
  1937. // to users.
  1938. Description *string `locationName:"description" min:"1" type:"string"`
  1939. // Whether the configuration property is a key.
  1940. //
  1941. // Key is a required field
  1942. Key *bool `locationName:"key" type:"boolean" required:"true"`
  1943. // The name of the action configuration property.
  1944. //
  1945. // Name is a required field
  1946. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  1947. // Indicates that the proprety will be used in conjunction with PollForJobs.
  1948. // When creating a custom action, an action can have up to one queryable property.
  1949. // If it has one, that property must be both required and not secret.
  1950. //
  1951. // If you create a pipeline with a custom action type, and that custom action
  1952. // contains a queryable property, the value for that configuration property
  1953. // is subject to additional restrictions. The value must be less than or equal
  1954. // to twenty (20) characters. The value can contain only alphanumeric characters,
  1955. // underscores, and hyphens.
  1956. Queryable *bool `locationName:"queryable" type:"boolean"`
  1957. // Whether the configuration property is a required value.
  1958. //
  1959. // Required is a required field
  1960. Required *bool `locationName:"required" type:"boolean" required:"true"`
  1961. // Whether the configuration property is secret. Secrets are hidden from all
  1962. // calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
  1963. // PollForThirdPartyJobs.
  1964. //
  1965. // When updating a pipeline, passing * * * * * without changing any other values
  1966. // of the action will preserve the prior value of the secret.
  1967. //
  1968. // Secret is a required field
  1969. Secret *bool `locationName:"secret" type:"boolean" required:"true"`
  1970. // The type of the configuration property.
  1971. Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"`
  1972. }
  1973. // String returns the string representation
  1974. func (s ActionConfigurationProperty) String() string {
  1975. return awsutil.Prettify(s)
  1976. }
  1977. // GoString returns the string representation
  1978. func (s ActionConfigurationProperty) GoString() string {
  1979. return s.String()
  1980. }
  1981. // Validate inspects the fields of the type to determine if they are valid.
  1982. func (s *ActionConfigurationProperty) Validate() error {
  1983. invalidParams := request.ErrInvalidParams{Context: "ActionConfigurationProperty"}
  1984. if s.Description != nil && len(*s.Description) < 1 {
  1985. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  1986. }
  1987. if s.Key == nil {
  1988. invalidParams.Add(request.NewErrParamRequired("Key"))
  1989. }
  1990. if s.Name == nil {
  1991. invalidParams.Add(request.NewErrParamRequired("Name"))
  1992. }
  1993. if s.Name != nil && len(*s.Name) < 1 {
  1994. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1995. }
  1996. if s.Required == nil {
  1997. invalidParams.Add(request.NewErrParamRequired("Required"))
  1998. }
  1999. if s.Secret == nil {
  2000. invalidParams.Add(request.NewErrParamRequired("Secret"))
  2001. }
  2002. if invalidParams.Len() > 0 {
  2003. return invalidParams
  2004. }
  2005. return nil
  2006. }
  2007. // Represents the context of an action within the stage of a pipeline to a job
  2008. // worker.
  2009. type ActionContext struct {
  2010. _ struct{} `type:"structure"`
  2011. // The name of the action within the context of a job.
  2012. Name *string `locationName:"name" min:"1" type:"string"`
  2013. }
  2014. // String returns the string representation
  2015. func (s ActionContext) String() string {
  2016. return awsutil.Prettify(s)
  2017. }
  2018. // GoString returns the string representation
  2019. func (s ActionContext) GoString() string {
  2020. return s.String()
  2021. }
  2022. // Represents information about an action declaration.
  2023. type ActionDeclaration struct {
  2024. _ struct{} `type:"structure"`
  2025. // The configuration information for the action type.
  2026. //
  2027. // ActionTypeId is a required field
  2028. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  2029. // The action declaration's configuration.
  2030. Configuration map[string]*string `locationName:"configuration" type:"map"`
  2031. // The name or ID of the artifact consumed by the action, such as a test or
  2032. // build artifact.
  2033. InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"`
  2034. // The action declaration's name.
  2035. //
  2036. // Name is a required field
  2037. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2038. // The name or ID of the result of the action declaration, such as a test or
  2039. // build artifact.
  2040. OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"`
  2041. // The ARN of the IAM service role that will perform the declared action. This
  2042. // is assumed through the roleArn for the pipeline.
  2043. RoleArn *string `locationName:"roleArn" type:"string"`
  2044. // The order in which actions are run.
  2045. RunOrder *int64 `locationName:"runOrder" min:"1" type:"integer"`
  2046. }
  2047. // String returns the string representation
  2048. func (s ActionDeclaration) String() string {
  2049. return awsutil.Prettify(s)
  2050. }
  2051. // GoString returns the string representation
  2052. func (s ActionDeclaration) GoString() string {
  2053. return s.String()
  2054. }
  2055. // Validate inspects the fields of the type to determine if they are valid.
  2056. func (s *ActionDeclaration) Validate() error {
  2057. invalidParams := request.ErrInvalidParams{Context: "ActionDeclaration"}
  2058. if s.ActionTypeId == nil {
  2059. invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
  2060. }
  2061. if s.Name == nil {
  2062. invalidParams.Add(request.NewErrParamRequired("Name"))
  2063. }
  2064. if s.Name != nil && len(*s.Name) < 1 {
  2065. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2066. }
  2067. if s.RunOrder != nil && *s.RunOrder < 1 {
  2068. invalidParams.Add(request.NewErrParamMinValue("RunOrder", 1))
  2069. }
  2070. if s.ActionTypeId != nil {
  2071. if err := s.ActionTypeId.Validate(); err != nil {
  2072. invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
  2073. }
  2074. }
  2075. if s.InputArtifacts != nil {
  2076. for i, v := range s.InputArtifacts {
  2077. if v == nil {
  2078. continue
  2079. }
  2080. if err := v.Validate(); err != nil {
  2081. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams))
  2082. }
  2083. }
  2084. }
  2085. if s.OutputArtifacts != nil {
  2086. for i, v := range s.OutputArtifacts {
  2087. if v == nil {
  2088. continue
  2089. }
  2090. if err := v.Validate(); err != nil {
  2091. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams))
  2092. }
  2093. }
  2094. }
  2095. if invalidParams.Len() > 0 {
  2096. return invalidParams
  2097. }
  2098. return nil
  2099. }
  2100. // Represents information about the run of an action.
  2101. type ActionExecution struct {
  2102. _ struct{} `type:"structure"`
  2103. // The details of an error returned by a URL external to AWS.
  2104. ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"`
  2105. // The external ID of the run of the action.
  2106. ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
  2107. // The URL of a resource external to AWS that will be used when running the
  2108. // action, for example an external repository URL.
  2109. ExternalExecutionUrl *string `locationName:"externalExecutionUrl" min:"1" type:"string"`
  2110. // The last status change of the action.
  2111. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"unix"`
  2112. // The ARN of the user who last changed the pipeline.
  2113. LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
  2114. // A percentage of completeness of the action as it runs.
  2115. PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
  2116. // The status of the action, or for a completed action, the last status of the
  2117. // action.
  2118. Status *string `locationName:"status" type:"string" enum:"ActionExecutionStatus"`
  2119. // A summary of the run of the action.
  2120. Summary *string `locationName:"summary" type:"string"`
  2121. // The system-generated token used to identify a unique approval request. The
  2122. // token for each open approval request can be obtained using the GetPipelineState
  2123. // command and is used to validate that the approval request corresponding to
  2124. // this token is still valid.
  2125. Token *string `locationName:"token" type:"string"`
  2126. }
  2127. // String returns the string representation
  2128. func (s ActionExecution) String() string {
  2129. return awsutil.Prettify(s)
  2130. }
  2131. // GoString returns the string representation
  2132. func (s ActionExecution) GoString() string {
  2133. return s.String()
  2134. }
  2135. // Represents information about the version (or revision) of an action.
  2136. type ActionRevision struct {
  2137. _ struct{} `type:"structure"`
  2138. // The date and time when the most recent version of the action was created,
  2139. // in timestamp format.
  2140. //
  2141. // Created is a required field
  2142. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix" required:"true"`
  2143. // The unique identifier of the change that set the state to this revision,
  2144. // for example a deployment ID or timestamp.
  2145. //
  2146. // RevisionChangeId is a required field
  2147. RevisionChangeId *string `locationName:"revisionChangeId" min:"1" type:"string" required:"true"`
  2148. // The system-generated unique ID that identifies the revision number of the
  2149. // action.
  2150. //
  2151. // RevisionId is a required field
  2152. RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"`
  2153. }
  2154. // String returns the string representation
  2155. func (s ActionRevision) String() string {
  2156. return awsutil.Prettify(s)
  2157. }
  2158. // GoString returns the string representation
  2159. func (s ActionRevision) GoString() string {
  2160. return s.String()
  2161. }
  2162. // Validate inspects the fields of the type to determine if they are valid.
  2163. func (s *ActionRevision) Validate() error {
  2164. invalidParams := request.ErrInvalidParams{Context: "ActionRevision"}
  2165. if s.Created == nil {
  2166. invalidParams.Add(request.NewErrParamRequired("Created"))
  2167. }
  2168. if s.RevisionChangeId == nil {
  2169. invalidParams.Add(request.NewErrParamRequired("RevisionChangeId"))
  2170. }
  2171. if s.RevisionChangeId != nil && len(*s.RevisionChangeId) < 1 {
  2172. invalidParams.Add(request.NewErrParamMinLen("RevisionChangeId", 1))
  2173. }
  2174. if s.RevisionId == nil {
  2175. invalidParams.Add(request.NewErrParamRequired("RevisionId"))
  2176. }
  2177. if s.RevisionId != nil && len(*s.RevisionId) < 1 {
  2178. invalidParams.Add(request.NewErrParamMinLen("RevisionId", 1))
  2179. }
  2180. if invalidParams.Len() > 0 {
  2181. return invalidParams
  2182. }
  2183. return nil
  2184. }
  2185. // Represents information about the state of an action.
  2186. type ActionState struct {
  2187. _ struct{} `type:"structure"`
  2188. // The name of the action.
  2189. ActionName *string `locationName:"actionName" min:"1" type:"string"`
  2190. // Represents information about the version (or revision) of an action.
  2191. CurrentRevision *ActionRevision `locationName:"currentRevision" type:"structure"`
  2192. // A URL link for more information about the state of the action, such as a
  2193. // deployment group details page.
  2194. EntityUrl *string `locationName:"entityUrl" min:"1" type:"string"`
  2195. // Represents information about the run of an action.
  2196. LatestExecution *ActionExecution `locationName:"latestExecution" type:"structure"`
  2197. // A URL link for more information about the revision, such as a commit details
  2198. // page.
  2199. RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
  2200. }
  2201. // String returns the string representation
  2202. func (s ActionState) String() string {
  2203. return awsutil.Prettify(s)
  2204. }
  2205. // GoString returns the string representation
  2206. func (s ActionState) GoString() string {
  2207. return s.String()
  2208. }
  2209. // Returns information about the details of an action type.
  2210. type ActionType struct {
  2211. _ struct{} `type:"structure"`
  2212. // The configuration properties for the action type.
  2213. ActionConfigurationProperties []*ActionConfigurationProperty `locationName:"actionConfigurationProperties" type:"list"`
  2214. // Represents information about an action type.
  2215. //
  2216. // Id is a required field
  2217. Id *ActionTypeId `locationName:"id" type:"structure" required:"true"`
  2218. // The details of the input artifact for the action, such as its commit ID.
  2219. //
  2220. // InputArtifactDetails is a required field
  2221. InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
  2222. // The details of the output artifact of the action, such as its commit ID.
  2223. //
  2224. // OutputArtifactDetails is a required field
  2225. OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
  2226. // The settings for the action type.
  2227. Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
  2228. }
  2229. // String returns the string representation
  2230. func (s ActionType) String() string {
  2231. return awsutil.Prettify(s)
  2232. }
  2233. // GoString returns the string representation
  2234. func (s ActionType) GoString() string {
  2235. return s.String()
  2236. }
  2237. // Represents information about an action type.
  2238. type ActionTypeId struct {
  2239. _ struct{} `type:"structure"`
  2240. // A category defines what kind of action can be taken in the stage, and constrains
  2241. // the provider type for the action. Valid categories are limited to one of
  2242. // the values below.
  2243. //
  2244. // Category is a required field
  2245. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  2246. // The creator of the action being called.
  2247. //
  2248. // Owner is a required field
  2249. Owner *string `locationName:"owner" type:"string" required:"true" enum:"ActionOwner"`
  2250. // The provider of the service being called by the action. Valid providers are
  2251. // determined by the action category. For example, an action in the Deploy category
  2252. // type might have a provider of AWS CodeDeploy, which would be specified as
  2253. // CodeDeploy.
  2254. //
  2255. // Provider is a required field
  2256. Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
  2257. // A string that identifies the action type.
  2258. //
  2259. // Version is a required field
  2260. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  2261. }
  2262. // String returns the string representation
  2263. func (s ActionTypeId) String() string {
  2264. return awsutil.Prettify(s)
  2265. }
  2266. // GoString returns the string representation
  2267. func (s ActionTypeId) GoString() string {
  2268. return s.String()
  2269. }
  2270. // Validate inspects the fields of the type to determine if they are valid.
  2271. func (s *ActionTypeId) Validate() error {
  2272. invalidParams := request.ErrInvalidParams{Context: "ActionTypeId"}
  2273. if s.Category == nil {
  2274. invalidParams.Add(request.NewErrParamRequired("Category"))
  2275. }
  2276. if s.Owner == nil {
  2277. invalidParams.Add(request.NewErrParamRequired("Owner"))
  2278. }
  2279. if s.Provider == nil {
  2280. invalidParams.Add(request.NewErrParamRequired("Provider"))
  2281. }
  2282. if s.Provider != nil && len(*s.Provider) < 1 {
  2283. invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
  2284. }
  2285. if s.Version == nil {
  2286. invalidParams.Add(request.NewErrParamRequired("Version"))
  2287. }
  2288. if s.Version != nil && len(*s.Version) < 1 {
  2289. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  2290. }
  2291. if invalidParams.Len() > 0 {
  2292. return invalidParams
  2293. }
  2294. return nil
  2295. }
  2296. // Returns information about the settings for an action type.
  2297. type ActionTypeSettings struct {
  2298. _ struct{} `type:"structure"`
  2299. // The URL returned to the AWS CodePipeline console that provides a deep link
  2300. // to the resources of the external system, such as the configuration page for
  2301. // an AWS CodeDeploy deployment group. This link is provided as part of the
  2302. // action display within the pipeline.
  2303. EntityUrlTemplate *string `locationName:"entityUrlTemplate" min:"1" type:"string"`
  2304. // The URL returned to the AWS CodePipeline console that contains a link to
  2305. // the top-level landing page for the external system, such as console page
  2306. // for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS
  2307. // CodePipeline console and provides a link to the execution entity of the external
  2308. // action.
  2309. ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" min:"1" type:"string"`
  2310. // The URL returned to the AWS CodePipeline console that contains a link to
  2311. // the page where customers can update or change the configuration of the external
  2312. // action.
  2313. RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" min:"1" type:"string"`
  2314. // The URL of a sign-up page where users can sign up for an external service
  2315. // and perform initial configuration of the action provided by that service.
  2316. ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" min:"1" type:"string"`
  2317. }
  2318. // String returns the string representation
  2319. func (s ActionTypeSettings) String() string {
  2320. return awsutil.Prettify(s)
  2321. }
  2322. // GoString returns the string representation
  2323. func (s ActionTypeSettings) GoString() string {
  2324. return s.String()
  2325. }
  2326. // Validate inspects the fields of the type to determine if they are valid.
  2327. func (s *ActionTypeSettings) Validate() error {
  2328. invalidParams := request.ErrInvalidParams{Context: "ActionTypeSettings"}
  2329. if s.EntityUrlTemplate != nil && len(*s.EntityUrlTemplate) < 1 {
  2330. invalidParams.Add(request.NewErrParamMinLen("EntityUrlTemplate", 1))
  2331. }
  2332. if s.ExecutionUrlTemplate != nil && len(*s.ExecutionUrlTemplate) < 1 {
  2333. invalidParams.Add(request.NewErrParamMinLen("ExecutionUrlTemplate", 1))
  2334. }
  2335. if s.RevisionUrlTemplate != nil && len(*s.RevisionUrlTemplate) < 1 {
  2336. invalidParams.Add(request.NewErrParamMinLen("RevisionUrlTemplate", 1))
  2337. }
  2338. if s.ThirdPartyConfigurationUrl != nil && len(*s.ThirdPartyConfigurationUrl) < 1 {
  2339. invalidParams.Add(request.NewErrParamMinLen("ThirdPartyConfigurationUrl", 1))
  2340. }
  2341. if invalidParams.Len() > 0 {
  2342. return invalidParams
  2343. }
  2344. return nil
  2345. }
  2346. // Represents information about the result of an approval request.
  2347. type ApprovalResult struct {
  2348. _ struct{} `type:"structure"`
  2349. // The response submitted by a reviewer assigned to an approval action request.
  2350. //
  2351. // Status is a required field
  2352. Status *string `locationName:"status" type:"string" required:"true" enum:"ApprovalStatus"`
  2353. // The summary of the current status of the approval request.
  2354. //
  2355. // Summary is a required field
  2356. Summary *string `locationName:"summary" type:"string" required:"true"`
  2357. }
  2358. // String returns the string representation
  2359. func (s ApprovalResult) String() string {
  2360. return awsutil.Prettify(s)
  2361. }
  2362. // GoString returns the string representation
  2363. func (s ApprovalResult) GoString() string {
  2364. return s.String()
  2365. }
  2366. // Validate inspects the fields of the type to determine if they are valid.
  2367. func (s *ApprovalResult) Validate() error {
  2368. invalidParams := request.ErrInvalidParams{Context: "ApprovalResult"}
  2369. if s.Status == nil {
  2370. invalidParams.Add(request.NewErrParamRequired("Status"))
  2371. }
  2372. if s.Summary == nil {
  2373. invalidParams.Add(request.NewErrParamRequired("Summary"))
  2374. }
  2375. if invalidParams.Len() > 0 {
  2376. return invalidParams
  2377. }
  2378. return nil
  2379. }
  2380. // Represents information about an artifact that will be worked upon by actions
  2381. // in the pipeline.
  2382. type Artifact struct {
  2383. _ struct{} `type:"structure"`
  2384. // The location of an artifact.
  2385. Location *ArtifactLocation `locationName:"location" type:"structure"`
  2386. // The artifact's name.
  2387. Name *string `locationName:"name" min:"1" type:"string"`
  2388. // The artifact's revision ID. Depending on the type of object, this could be
  2389. // a commit ID (GitHub) or a revision ID (Amazon S3).
  2390. Revision *string `locationName:"revision" min:"1" type:"string"`
  2391. }
  2392. // String returns the string representation
  2393. func (s Artifact) String() string {
  2394. return awsutil.Prettify(s)
  2395. }
  2396. // GoString returns the string representation
  2397. func (s Artifact) GoString() string {
  2398. return s.String()
  2399. }
  2400. // Returns information about the details of an artifact.
  2401. type ArtifactDetails struct {
  2402. _ struct{} `type:"structure"`
  2403. // The maximum number of artifacts allowed for the action type.
  2404. //
  2405. // MaximumCount is a required field
  2406. MaximumCount *int64 `locationName:"maximumCount" type:"integer" required:"true"`
  2407. // The minimum number of artifacts allowed for the action type.
  2408. //
  2409. // MinimumCount is a required field
  2410. MinimumCount *int64 `locationName:"minimumCount" type:"integer" required:"true"`
  2411. }
  2412. // String returns the string representation
  2413. func (s ArtifactDetails) String() string {
  2414. return awsutil.Prettify(s)
  2415. }
  2416. // GoString returns the string representation
  2417. func (s ArtifactDetails) GoString() string {
  2418. return s.String()
  2419. }
  2420. // Validate inspects the fields of the type to determine if they are valid.
  2421. func (s *ArtifactDetails) Validate() error {
  2422. invalidParams := request.ErrInvalidParams{Context: "ArtifactDetails"}
  2423. if s.MaximumCount == nil {
  2424. invalidParams.Add(request.NewErrParamRequired("MaximumCount"))
  2425. }
  2426. if s.MinimumCount == nil {
  2427. invalidParams.Add(request.NewErrParamRequired("MinimumCount"))
  2428. }
  2429. if invalidParams.Len() > 0 {
  2430. return invalidParams
  2431. }
  2432. return nil
  2433. }
  2434. // Represents information about the location of an artifact.
  2435. type ArtifactLocation struct {
  2436. _ struct{} `type:"structure"`
  2437. // The Amazon S3 bucket that contains the artifact.
  2438. S3Location *S3ArtifactLocation `locationName:"s3Location" type:"structure"`
  2439. // The type of artifact in the location.
  2440. Type *string `locationName:"type" type:"string" enum:"ArtifactLocationType"`
  2441. }
  2442. // String returns the string representation
  2443. func (s ArtifactLocation) String() string {
  2444. return awsutil.Prettify(s)
  2445. }
  2446. // GoString returns the string representation
  2447. func (s ArtifactLocation) GoString() string {
  2448. return s.String()
  2449. }
  2450. // Represents revision details of an artifact.
  2451. type ArtifactRevision struct {
  2452. _ struct{} `type:"structure"`
  2453. // The date and time when the most recent revision of the artifact was created,
  2454. // in timestamp format.
  2455. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2456. // The name of an artifact. This name might be system-generated, such as "MyApp",
  2457. // or might be defined by the user when an action is created.
  2458. Name *string `locationName:"name" min:"1" type:"string"`
  2459. // An additional identifier for a revision, such as a commit date or, for artifacts
  2460. // stored in Amazon S3 buckets, the ETag value.
  2461. RevisionChangeIdentifier *string `locationName:"revisionChangeIdentifier" min:"1" type:"string"`
  2462. // The revision ID of the artifact.
  2463. RevisionId *string `locationName:"revisionId" min:"1" type:"string"`
  2464. // Summary information about the most recent revision of the artifact. For GitHub
  2465. // and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets
  2466. // or actions, the user-provided content of a codepipeline-artifact-revision-summary
  2467. // key specified in the object metadata.
  2468. RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
  2469. // The commit ID for the artifact revision. For artifacts stored in GitHub or
  2470. // AWS CodeCommit repositories, the commit ID is linked to a commit details
  2471. // page.
  2472. RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
  2473. }
  2474. // String returns the string representation
  2475. func (s ArtifactRevision) String() string {
  2476. return awsutil.Prettify(s)
  2477. }
  2478. // GoString returns the string representation
  2479. func (s ArtifactRevision) GoString() string {
  2480. return s.String()
  2481. }
  2482. // The Amazon S3 location where artifacts are stored for the pipeline. If this
  2483. // Amazon S3 bucket is created manually, it must meet the requirements for AWS
  2484. // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
  2485. type ArtifactStore struct {
  2486. _ struct{} `type:"structure"`
  2487. // The encryption key used to encrypt the data in the artifact store, such as
  2488. // an AWS Key Management Service (AWS KMS) key. If this is undefined, the default
  2489. // key for Amazon S3 is used.
  2490. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  2491. // The location for storing the artifacts for a pipeline, such as an S3 bucket
  2492. // or folder.
  2493. //
  2494. // Location is a required field
  2495. Location *string `locationName:"location" min:"3" type:"string" required:"true"`
  2496. // The type of the artifact store, such as S3.
  2497. //
  2498. // Type is a required field
  2499. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactStoreType"`
  2500. }
  2501. // String returns the string representation
  2502. func (s ArtifactStore) String() string {
  2503. return awsutil.Prettify(s)
  2504. }
  2505. // GoString returns the string representation
  2506. func (s ArtifactStore) GoString() string {
  2507. return s.String()
  2508. }
  2509. // Validate inspects the fields of the type to determine if they are valid.
  2510. func (s *ArtifactStore) Validate() error {
  2511. invalidParams := request.ErrInvalidParams{Context: "ArtifactStore"}
  2512. if s.Location == nil {
  2513. invalidParams.Add(request.NewErrParamRequired("Location"))
  2514. }
  2515. if s.Location != nil && len(*s.Location) < 3 {
  2516. invalidParams.Add(request.NewErrParamMinLen("Location", 3))
  2517. }
  2518. if s.Type == nil {
  2519. invalidParams.Add(request.NewErrParamRequired("Type"))
  2520. }
  2521. if s.EncryptionKey != nil {
  2522. if err := s.EncryptionKey.Validate(); err != nil {
  2523. invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams))
  2524. }
  2525. }
  2526. if invalidParams.Len() > 0 {
  2527. return invalidParams
  2528. }
  2529. return nil
  2530. }
  2531. // Reserved for future use.
  2532. type BlockerDeclaration struct {
  2533. _ struct{} `type:"structure"`
  2534. // Reserved for future use.
  2535. //
  2536. // Name is a required field
  2537. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2538. // Reserved for future use.
  2539. //
  2540. // Type is a required field
  2541. Type *string `locationName:"type" type:"string" required:"true" enum:"BlockerType"`
  2542. }
  2543. // String returns the string representation
  2544. func (s BlockerDeclaration) String() string {
  2545. return awsutil.Prettify(s)
  2546. }
  2547. // GoString returns the string representation
  2548. func (s BlockerDeclaration) GoString() string {
  2549. return s.String()
  2550. }
  2551. // Validate inspects the fields of the type to determine if they are valid.
  2552. func (s *BlockerDeclaration) Validate() error {
  2553. invalidParams := request.ErrInvalidParams{Context: "BlockerDeclaration"}
  2554. if s.Name == nil {
  2555. invalidParams.Add(request.NewErrParamRequired("Name"))
  2556. }
  2557. if s.Name != nil && len(*s.Name) < 1 {
  2558. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2559. }
  2560. if s.Type == nil {
  2561. invalidParams.Add(request.NewErrParamRequired("Type"))
  2562. }
  2563. if invalidParams.Len() > 0 {
  2564. return invalidParams
  2565. }
  2566. return nil
  2567. }
  2568. // Represents the input of a create custom action operation.
  2569. type CreateCustomActionTypeInput struct {
  2570. _ struct{} `type:"structure"`
  2571. // The category of the custom action, such as a build action or a test action.
  2572. //
  2573. // Although Source and Approval are listed as valid values, they are not currently
  2574. // functional. These values are reserved for future use.
  2575. //
  2576. // Category is a required field
  2577. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  2578. // The configuration properties for the custom action.
  2579. //
  2580. // You can refer to a name in the configuration properties of the custom action
  2581. // within the URL templates by following the format of {Config:name}, as long
  2582. // as the configuration property is both required and not secret. For more information,
  2583. // see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html).
  2584. ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"`
  2585. // Returns information about the details of an artifact.
  2586. //
  2587. // InputArtifactDetails is a required field
  2588. InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
  2589. // Returns information about the details of an artifact.
  2590. //
  2591. // OutputArtifactDetails is a required field
  2592. OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
  2593. // The provider of the service used in the custom action, such as AWS CodeDeploy.
  2594. //
  2595. // Provider is a required field
  2596. Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
  2597. // Returns information about the settings for an action type.
  2598. Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
  2599. // The version identifier of the custom action.
  2600. //
  2601. // Version is a required field
  2602. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  2603. }
  2604. // String returns the string representation
  2605. func (s CreateCustomActionTypeInput) String() string {
  2606. return awsutil.Prettify(s)
  2607. }
  2608. // GoString returns the string representation
  2609. func (s CreateCustomActionTypeInput) GoString() string {
  2610. return s.String()
  2611. }
  2612. // Validate inspects the fields of the type to determine if they are valid.
  2613. func (s *CreateCustomActionTypeInput) Validate() error {
  2614. invalidParams := request.ErrInvalidParams{Context: "CreateCustomActionTypeInput"}
  2615. if s.Category == nil {
  2616. invalidParams.Add(request.NewErrParamRequired("Category"))
  2617. }
  2618. if s.InputArtifactDetails == nil {
  2619. invalidParams.Add(request.NewErrParamRequired("InputArtifactDetails"))
  2620. }
  2621. if s.OutputArtifactDetails == nil {
  2622. invalidParams.Add(request.NewErrParamRequired("OutputArtifactDetails"))
  2623. }
  2624. if s.Provider == nil {
  2625. invalidParams.Add(request.NewErrParamRequired("Provider"))
  2626. }
  2627. if s.Provider != nil && len(*s.Provider) < 1 {
  2628. invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
  2629. }
  2630. if s.Version == nil {
  2631. invalidParams.Add(request.NewErrParamRequired("Version"))
  2632. }
  2633. if s.Version != nil && len(*s.Version) < 1 {
  2634. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  2635. }
  2636. if s.ConfigurationProperties != nil {
  2637. for i, v := range s.ConfigurationProperties {
  2638. if v == nil {
  2639. continue
  2640. }
  2641. if err := v.Validate(); err != nil {
  2642. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ConfigurationProperties", i), err.(request.ErrInvalidParams))
  2643. }
  2644. }
  2645. }
  2646. if s.InputArtifactDetails != nil {
  2647. if err := s.InputArtifactDetails.Validate(); err != nil {
  2648. invalidParams.AddNested("InputArtifactDetails", err.(request.ErrInvalidParams))
  2649. }
  2650. }
  2651. if s.OutputArtifactDetails != nil {
  2652. if err := s.OutputArtifactDetails.Validate(); err != nil {
  2653. invalidParams.AddNested("OutputArtifactDetails", err.(request.ErrInvalidParams))
  2654. }
  2655. }
  2656. if s.Settings != nil {
  2657. if err := s.Settings.Validate(); err != nil {
  2658. invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
  2659. }
  2660. }
  2661. if invalidParams.Len() > 0 {
  2662. return invalidParams
  2663. }
  2664. return nil
  2665. }
  2666. // Represents the output of a create custom action operation.
  2667. type CreateCustomActionTypeOutput struct {
  2668. _ struct{} `type:"structure"`
  2669. // Returns information about the details of an action type.
  2670. //
  2671. // ActionType is a required field
  2672. ActionType *ActionType `locationName:"actionType" type:"structure" required:"true"`
  2673. }
  2674. // String returns the string representation
  2675. func (s CreateCustomActionTypeOutput) String() string {
  2676. return awsutil.Prettify(s)
  2677. }
  2678. // GoString returns the string representation
  2679. func (s CreateCustomActionTypeOutput) GoString() string {
  2680. return s.String()
  2681. }
  2682. // Represents the input of a create pipeline action.
  2683. type CreatePipelineInput struct {
  2684. _ struct{} `type:"structure"`
  2685. // Represents the structure of actions and stages to be performed in the pipeline.
  2686. //
  2687. // Pipeline is a required field
  2688. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
  2689. }
  2690. // String returns the string representation
  2691. func (s CreatePipelineInput) String() string {
  2692. return awsutil.Prettify(s)
  2693. }
  2694. // GoString returns the string representation
  2695. func (s CreatePipelineInput) GoString() string {
  2696. return s.String()
  2697. }
  2698. // Validate inspects the fields of the type to determine if they are valid.
  2699. func (s *CreatePipelineInput) Validate() error {
  2700. invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
  2701. if s.Pipeline == nil {
  2702. invalidParams.Add(request.NewErrParamRequired("Pipeline"))
  2703. }
  2704. if s.Pipeline != nil {
  2705. if err := s.Pipeline.Validate(); err != nil {
  2706. invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
  2707. }
  2708. }
  2709. if invalidParams.Len() > 0 {
  2710. return invalidParams
  2711. }
  2712. return nil
  2713. }
  2714. // Represents the output of a create pipeline action.
  2715. type CreatePipelineOutput struct {
  2716. _ struct{} `type:"structure"`
  2717. // Represents the structure of actions and stages to be performed in the pipeline.
  2718. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  2719. }
  2720. // String returns the string representation
  2721. func (s CreatePipelineOutput) String() string {
  2722. return awsutil.Prettify(s)
  2723. }
  2724. // GoString returns the string representation
  2725. func (s CreatePipelineOutput) GoString() string {
  2726. return s.String()
  2727. }
  2728. // Represents information about a current revision.
  2729. type CurrentRevision struct {
  2730. _ struct{} `type:"structure"`
  2731. // The change identifier for the current revision.
  2732. //
  2733. // ChangeIdentifier is a required field
  2734. ChangeIdentifier *string `locationName:"changeIdentifier" min:"1" type:"string" required:"true"`
  2735. // The date and time when the most recent revision of the artifact was created,
  2736. // in timestamp format.
  2737. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  2738. // The revision ID of the current version of an artifact.
  2739. //
  2740. // Revision is a required field
  2741. Revision *string `locationName:"revision" min:"1" type:"string" required:"true"`
  2742. // The summary of the most recent revision of the artifact.
  2743. RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"`
  2744. }
  2745. // String returns the string representation
  2746. func (s CurrentRevision) String() string {
  2747. return awsutil.Prettify(s)
  2748. }
  2749. // GoString returns the string representation
  2750. func (s CurrentRevision) GoString() string {
  2751. return s.String()
  2752. }
  2753. // Validate inspects the fields of the type to determine if they are valid.
  2754. func (s *CurrentRevision) Validate() error {
  2755. invalidParams := request.ErrInvalidParams{Context: "CurrentRevision"}
  2756. if s.ChangeIdentifier == nil {
  2757. invalidParams.Add(request.NewErrParamRequired("ChangeIdentifier"))
  2758. }
  2759. if s.ChangeIdentifier != nil && len(*s.ChangeIdentifier) < 1 {
  2760. invalidParams.Add(request.NewErrParamMinLen("ChangeIdentifier", 1))
  2761. }
  2762. if s.Revision == nil {
  2763. invalidParams.Add(request.NewErrParamRequired("Revision"))
  2764. }
  2765. if s.Revision != nil && len(*s.Revision) < 1 {
  2766. invalidParams.Add(request.NewErrParamMinLen("Revision", 1))
  2767. }
  2768. if s.RevisionSummary != nil && len(*s.RevisionSummary) < 1 {
  2769. invalidParams.Add(request.NewErrParamMinLen("RevisionSummary", 1))
  2770. }
  2771. if invalidParams.Len() > 0 {
  2772. return invalidParams
  2773. }
  2774. return nil
  2775. }
  2776. // Represents the input of a delete custom action operation. The custom action
  2777. // will be marked as deleted.
  2778. type DeleteCustomActionTypeInput struct {
  2779. _ struct{} `type:"structure"`
  2780. // The category of the custom action that you want to delete, such as source
  2781. // or deploy.
  2782. //
  2783. // Category is a required field
  2784. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  2785. // The provider of the service used in the custom action, such as AWS CodeDeploy.
  2786. //
  2787. // Provider is a required field
  2788. Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
  2789. // The version of the custom action to delete.
  2790. //
  2791. // Version is a required field
  2792. Version *string `locationName:"version" min:"1" type:"string" required:"true"`
  2793. }
  2794. // String returns the string representation
  2795. func (s DeleteCustomActionTypeInput) String() string {
  2796. return awsutil.Prettify(s)
  2797. }
  2798. // GoString returns the string representation
  2799. func (s DeleteCustomActionTypeInput) GoString() string {
  2800. return s.String()
  2801. }
  2802. // Validate inspects the fields of the type to determine if they are valid.
  2803. func (s *DeleteCustomActionTypeInput) Validate() error {
  2804. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomActionTypeInput"}
  2805. if s.Category == nil {
  2806. invalidParams.Add(request.NewErrParamRequired("Category"))
  2807. }
  2808. if s.Provider == nil {
  2809. invalidParams.Add(request.NewErrParamRequired("Provider"))
  2810. }
  2811. if s.Provider != nil && len(*s.Provider) < 1 {
  2812. invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
  2813. }
  2814. if s.Version == nil {
  2815. invalidParams.Add(request.NewErrParamRequired("Version"))
  2816. }
  2817. if s.Version != nil && len(*s.Version) < 1 {
  2818. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  2819. }
  2820. if invalidParams.Len() > 0 {
  2821. return invalidParams
  2822. }
  2823. return nil
  2824. }
  2825. type DeleteCustomActionTypeOutput struct {
  2826. _ struct{} `type:"structure"`
  2827. }
  2828. // String returns the string representation
  2829. func (s DeleteCustomActionTypeOutput) String() string {
  2830. return awsutil.Prettify(s)
  2831. }
  2832. // GoString returns the string representation
  2833. func (s DeleteCustomActionTypeOutput) GoString() string {
  2834. return s.String()
  2835. }
  2836. // Represents the input of a delete pipeline action.
  2837. type DeletePipelineInput struct {
  2838. _ struct{} `type:"structure"`
  2839. // The name of the pipeline to be deleted.
  2840. //
  2841. // Name is a required field
  2842. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2843. }
  2844. // String returns the string representation
  2845. func (s DeletePipelineInput) String() string {
  2846. return awsutil.Prettify(s)
  2847. }
  2848. // GoString returns the string representation
  2849. func (s DeletePipelineInput) GoString() string {
  2850. return s.String()
  2851. }
  2852. // Validate inspects the fields of the type to determine if they are valid.
  2853. func (s *DeletePipelineInput) Validate() error {
  2854. invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
  2855. if s.Name == nil {
  2856. invalidParams.Add(request.NewErrParamRequired("Name"))
  2857. }
  2858. if s.Name != nil && len(*s.Name) < 1 {
  2859. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2860. }
  2861. if invalidParams.Len() > 0 {
  2862. return invalidParams
  2863. }
  2864. return nil
  2865. }
  2866. type DeletePipelineOutput struct {
  2867. _ struct{} `type:"structure"`
  2868. }
  2869. // String returns the string representation
  2870. func (s DeletePipelineOutput) String() string {
  2871. return awsutil.Prettify(s)
  2872. }
  2873. // GoString returns the string representation
  2874. func (s DeletePipelineOutput) GoString() string {
  2875. return s.String()
  2876. }
  2877. // Represents the input of a disable stage transition input action.
  2878. type DisableStageTransitionInput struct {
  2879. _ struct{} `type:"structure"`
  2880. // The name of the pipeline in which you want to disable the flow of artifacts
  2881. // from one stage to another.
  2882. //
  2883. // PipelineName is a required field
  2884. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  2885. // The reason given to the user why a stage is disabled, such as waiting for
  2886. // manual approval or manual tests. This message is displayed in the pipeline
  2887. // console UI.
  2888. //
  2889. // Reason is a required field
  2890. Reason *string `locationName:"reason" min:"1" type:"string" required:"true"`
  2891. // The name of the stage where you want to disable the inbound or outbound transition
  2892. // of artifacts.
  2893. //
  2894. // StageName is a required field
  2895. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  2896. // Specifies whether artifacts will be prevented from transitioning into the
  2897. // stage and being processed by the actions in that stage (inbound), or prevented
  2898. // from transitioning from the stage after they have been processed by the actions
  2899. // in that stage (outbound).
  2900. //
  2901. // TransitionType is a required field
  2902. TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
  2903. }
  2904. // String returns the string representation
  2905. func (s DisableStageTransitionInput) String() string {
  2906. return awsutil.Prettify(s)
  2907. }
  2908. // GoString returns the string representation
  2909. func (s DisableStageTransitionInput) GoString() string {
  2910. return s.String()
  2911. }
  2912. // Validate inspects the fields of the type to determine if they are valid.
  2913. func (s *DisableStageTransitionInput) Validate() error {
  2914. invalidParams := request.ErrInvalidParams{Context: "DisableStageTransitionInput"}
  2915. if s.PipelineName == nil {
  2916. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  2917. }
  2918. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  2919. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  2920. }
  2921. if s.Reason == nil {
  2922. invalidParams.Add(request.NewErrParamRequired("Reason"))
  2923. }
  2924. if s.Reason != nil && len(*s.Reason) < 1 {
  2925. invalidParams.Add(request.NewErrParamMinLen("Reason", 1))
  2926. }
  2927. if s.StageName == nil {
  2928. invalidParams.Add(request.NewErrParamRequired("StageName"))
  2929. }
  2930. if s.StageName != nil && len(*s.StageName) < 1 {
  2931. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  2932. }
  2933. if s.TransitionType == nil {
  2934. invalidParams.Add(request.NewErrParamRequired("TransitionType"))
  2935. }
  2936. if invalidParams.Len() > 0 {
  2937. return invalidParams
  2938. }
  2939. return nil
  2940. }
  2941. type DisableStageTransitionOutput struct {
  2942. _ struct{} `type:"structure"`
  2943. }
  2944. // String returns the string representation
  2945. func (s DisableStageTransitionOutput) String() string {
  2946. return awsutil.Prettify(s)
  2947. }
  2948. // GoString returns the string representation
  2949. func (s DisableStageTransitionOutput) GoString() string {
  2950. return s.String()
  2951. }
  2952. // Represents the input of an enable stage transition action.
  2953. type EnableStageTransitionInput struct {
  2954. _ struct{} `type:"structure"`
  2955. // The name of the pipeline in which you want to enable the flow of artifacts
  2956. // from one stage to another.
  2957. //
  2958. // PipelineName is a required field
  2959. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  2960. // The name of the stage where you want to enable the transition of artifacts,
  2961. // either into the stage (inbound) or from that stage to the next stage (outbound).
  2962. //
  2963. // StageName is a required field
  2964. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  2965. // Specifies whether artifacts will be allowed to enter the stage and be processed
  2966. // by the actions in that stage (inbound) or whether already-processed artifacts
  2967. // will be allowed to transition to the next stage (outbound).
  2968. //
  2969. // TransitionType is a required field
  2970. TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
  2971. }
  2972. // String returns the string representation
  2973. func (s EnableStageTransitionInput) String() string {
  2974. return awsutil.Prettify(s)
  2975. }
  2976. // GoString returns the string representation
  2977. func (s EnableStageTransitionInput) GoString() string {
  2978. return s.String()
  2979. }
  2980. // Validate inspects the fields of the type to determine if they are valid.
  2981. func (s *EnableStageTransitionInput) Validate() error {
  2982. invalidParams := request.ErrInvalidParams{Context: "EnableStageTransitionInput"}
  2983. if s.PipelineName == nil {
  2984. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  2985. }
  2986. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  2987. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  2988. }
  2989. if s.StageName == nil {
  2990. invalidParams.Add(request.NewErrParamRequired("StageName"))
  2991. }
  2992. if s.StageName != nil && len(*s.StageName) < 1 {
  2993. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  2994. }
  2995. if s.TransitionType == nil {
  2996. invalidParams.Add(request.NewErrParamRequired("TransitionType"))
  2997. }
  2998. if invalidParams.Len() > 0 {
  2999. return invalidParams
  3000. }
  3001. return nil
  3002. }
  3003. type EnableStageTransitionOutput struct {
  3004. _ struct{} `type:"structure"`
  3005. }
  3006. // String returns the string representation
  3007. func (s EnableStageTransitionOutput) String() string {
  3008. return awsutil.Prettify(s)
  3009. }
  3010. // GoString returns the string representation
  3011. func (s EnableStageTransitionOutput) GoString() string {
  3012. return s.String()
  3013. }
  3014. // Represents information about the key used to encrypt data in the artifact
  3015. // store, such as an AWS Key Management Service (AWS KMS) key.
  3016. type EncryptionKey struct {
  3017. _ struct{} `type:"structure"`
  3018. // The ID used to identify the key. For an AWS KMS key, this is the key ID or
  3019. // key ARN.
  3020. //
  3021. // Id is a required field
  3022. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  3023. // The type of encryption key, such as an AWS Key Management Service (AWS KMS)
  3024. // key. When creating or updating a pipeline, the value must be set to 'KMS'.
  3025. //
  3026. // Type is a required field
  3027. Type *string `locationName:"type" type:"string" required:"true" enum:"EncryptionKeyType"`
  3028. }
  3029. // String returns the string representation
  3030. func (s EncryptionKey) String() string {
  3031. return awsutil.Prettify(s)
  3032. }
  3033. // GoString returns the string representation
  3034. func (s EncryptionKey) GoString() string {
  3035. return s.String()
  3036. }
  3037. // Validate inspects the fields of the type to determine if they are valid.
  3038. func (s *EncryptionKey) Validate() error {
  3039. invalidParams := request.ErrInvalidParams{Context: "EncryptionKey"}
  3040. if s.Id == nil {
  3041. invalidParams.Add(request.NewErrParamRequired("Id"))
  3042. }
  3043. if s.Id != nil && len(*s.Id) < 1 {
  3044. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  3045. }
  3046. if s.Type == nil {
  3047. invalidParams.Add(request.NewErrParamRequired("Type"))
  3048. }
  3049. if invalidParams.Len() > 0 {
  3050. return invalidParams
  3051. }
  3052. return nil
  3053. }
  3054. // Represents information about an error in AWS CodePipeline.
  3055. type ErrorDetails struct {
  3056. _ struct{} `type:"structure"`
  3057. // The system ID or error number code of the error.
  3058. Code *string `locationName:"code" type:"string"`
  3059. // The text of the error message.
  3060. Message *string `locationName:"message" type:"string"`
  3061. }
  3062. // String returns the string representation
  3063. func (s ErrorDetails) String() string {
  3064. return awsutil.Prettify(s)
  3065. }
  3066. // GoString returns the string representation
  3067. func (s ErrorDetails) GoString() string {
  3068. return s.String()
  3069. }
  3070. // The details of the actions taken and results produced on an artifact as it
  3071. // passes through stages in the pipeline.
  3072. type ExecutionDetails struct {
  3073. _ struct{} `type:"structure"`
  3074. // The system-generated unique ID of this action used to identify this job worker
  3075. // in any external systems, such as AWS CodeDeploy.
  3076. ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
  3077. // The percentage of work completed on the action, represented on a scale of
  3078. // zero to one hundred percent.
  3079. PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
  3080. // The summary of the current status of the actions.
  3081. Summary *string `locationName:"summary" type:"string"`
  3082. }
  3083. // String returns the string representation
  3084. func (s ExecutionDetails) String() string {
  3085. return awsutil.Prettify(s)
  3086. }
  3087. // GoString returns the string representation
  3088. func (s ExecutionDetails) GoString() string {
  3089. return s.String()
  3090. }
  3091. // Validate inspects the fields of the type to determine if they are valid.
  3092. func (s *ExecutionDetails) Validate() error {
  3093. invalidParams := request.ErrInvalidParams{Context: "ExecutionDetails"}
  3094. if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
  3095. invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
  3096. }
  3097. if invalidParams.Len() > 0 {
  3098. return invalidParams
  3099. }
  3100. return nil
  3101. }
  3102. // Represents information about failure details.
  3103. type FailureDetails struct {
  3104. _ struct{} `type:"structure"`
  3105. // The external ID of the run of the action that failed.
  3106. ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
  3107. // The message about the failure.
  3108. //
  3109. // Message is a required field
  3110. Message *string `locationName:"message" type:"string" required:"true"`
  3111. // The type of the failure.
  3112. //
  3113. // Type is a required field
  3114. Type *string `locationName:"type" type:"string" required:"true" enum:"FailureType"`
  3115. }
  3116. // String returns the string representation
  3117. func (s FailureDetails) String() string {
  3118. return awsutil.Prettify(s)
  3119. }
  3120. // GoString returns the string representation
  3121. func (s FailureDetails) GoString() string {
  3122. return s.String()
  3123. }
  3124. // Validate inspects the fields of the type to determine if they are valid.
  3125. func (s *FailureDetails) Validate() error {
  3126. invalidParams := request.ErrInvalidParams{Context: "FailureDetails"}
  3127. if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
  3128. invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
  3129. }
  3130. if s.Message == nil {
  3131. invalidParams.Add(request.NewErrParamRequired("Message"))
  3132. }
  3133. if s.Type == nil {
  3134. invalidParams.Add(request.NewErrParamRequired("Type"))
  3135. }
  3136. if invalidParams.Len() > 0 {
  3137. return invalidParams
  3138. }
  3139. return nil
  3140. }
  3141. // Represents the input of a get job details action.
  3142. type GetJobDetailsInput struct {
  3143. _ struct{} `type:"structure"`
  3144. // The unique system-generated ID for the job.
  3145. //
  3146. // JobId is a required field
  3147. JobId *string `locationName:"jobId" type:"string" required:"true"`
  3148. }
  3149. // String returns the string representation
  3150. func (s GetJobDetailsInput) String() string {
  3151. return awsutil.Prettify(s)
  3152. }
  3153. // GoString returns the string representation
  3154. func (s GetJobDetailsInput) GoString() string {
  3155. return s.String()
  3156. }
  3157. // Validate inspects the fields of the type to determine if they are valid.
  3158. func (s *GetJobDetailsInput) Validate() error {
  3159. invalidParams := request.ErrInvalidParams{Context: "GetJobDetailsInput"}
  3160. if s.JobId == nil {
  3161. invalidParams.Add(request.NewErrParamRequired("JobId"))
  3162. }
  3163. if invalidParams.Len() > 0 {
  3164. return invalidParams
  3165. }
  3166. return nil
  3167. }
  3168. // Represents the output of a get job details action.
  3169. type GetJobDetailsOutput struct {
  3170. _ struct{} `type:"structure"`
  3171. // The details of the job.
  3172. //
  3173. // If AWSSessionCredentials is used, a long-running job can call GetJobDetails
  3174. // again to obtain new credentials.
  3175. JobDetails *JobDetails `locationName:"jobDetails" type:"structure"`
  3176. }
  3177. // String returns the string representation
  3178. func (s GetJobDetailsOutput) String() string {
  3179. return awsutil.Prettify(s)
  3180. }
  3181. // GoString returns the string representation
  3182. func (s GetJobDetailsOutput) GoString() string {
  3183. return s.String()
  3184. }
  3185. // Represents the input of a get pipeline execution action.
  3186. type GetPipelineExecutionInput struct {
  3187. _ struct{} `type:"structure"`
  3188. // The ID of the pipeline execution about which you want to get execution details.
  3189. //
  3190. // PipelineExecutionId is a required field
  3191. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
  3192. // The name of the pipeline about which you want to get execution details.
  3193. //
  3194. // PipelineName is a required field
  3195. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  3196. }
  3197. // String returns the string representation
  3198. func (s GetPipelineExecutionInput) String() string {
  3199. return awsutil.Prettify(s)
  3200. }
  3201. // GoString returns the string representation
  3202. func (s GetPipelineExecutionInput) GoString() string {
  3203. return s.String()
  3204. }
  3205. // Validate inspects the fields of the type to determine if they are valid.
  3206. func (s *GetPipelineExecutionInput) Validate() error {
  3207. invalidParams := request.ErrInvalidParams{Context: "GetPipelineExecutionInput"}
  3208. if s.PipelineExecutionId == nil {
  3209. invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
  3210. }
  3211. if s.PipelineName == nil {
  3212. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  3213. }
  3214. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  3215. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  3216. }
  3217. if invalidParams.Len() > 0 {
  3218. return invalidParams
  3219. }
  3220. return nil
  3221. }
  3222. // Represents the output of a get pipeline execution action.
  3223. type GetPipelineExecutionOutput struct {
  3224. _ struct{} `type:"structure"`
  3225. // Represents information about the execution of a pipeline.
  3226. PipelineExecution *PipelineExecution `locationName:"pipelineExecution" type:"structure"`
  3227. }
  3228. // String returns the string representation
  3229. func (s GetPipelineExecutionOutput) String() string {
  3230. return awsutil.Prettify(s)
  3231. }
  3232. // GoString returns the string representation
  3233. func (s GetPipelineExecutionOutput) GoString() string {
  3234. return s.String()
  3235. }
  3236. // Represents the input of a get pipeline action.
  3237. type GetPipelineInput struct {
  3238. _ struct{} `type:"structure"`
  3239. // The name of the pipeline for which you want to get information. Pipeline
  3240. // names must be unique under an Amazon Web Services (AWS) user account.
  3241. //
  3242. // Name is a required field
  3243. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3244. // The version number of the pipeline. If you do not specify a version, defaults
  3245. // to the most current version.
  3246. Version *int64 `locationName:"version" min:"1" type:"integer"`
  3247. }
  3248. // String returns the string representation
  3249. func (s GetPipelineInput) String() string {
  3250. return awsutil.Prettify(s)
  3251. }
  3252. // GoString returns the string representation
  3253. func (s GetPipelineInput) GoString() string {
  3254. return s.String()
  3255. }
  3256. // Validate inspects the fields of the type to determine if they are valid.
  3257. func (s *GetPipelineInput) Validate() error {
  3258. invalidParams := request.ErrInvalidParams{Context: "GetPipelineInput"}
  3259. if s.Name == nil {
  3260. invalidParams.Add(request.NewErrParamRequired("Name"))
  3261. }
  3262. if s.Name != nil && len(*s.Name) < 1 {
  3263. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3264. }
  3265. if s.Version != nil && *s.Version < 1 {
  3266. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  3267. }
  3268. if invalidParams.Len() > 0 {
  3269. return invalidParams
  3270. }
  3271. return nil
  3272. }
  3273. // Represents the output of a get pipeline action.
  3274. type GetPipelineOutput struct {
  3275. _ struct{} `type:"structure"`
  3276. // Represents the structure of actions and stages to be performed in the pipeline.
  3277. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  3278. }
  3279. // String returns the string representation
  3280. func (s GetPipelineOutput) String() string {
  3281. return awsutil.Prettify(s)
  3282. }
  3283. // GoString returns the string representation
  3284. func (s GetPipelineOutput) GoString() string {
  3285. return s.String()
  3286. }
  3287. // Represents the input of a get pipeline state action.
  3288. type GetPipelineStateInput struct {
  3289. _ struct{} `type:"structure"`
  3290. // The name of the pipeline about which you want to get information.
  3291. //
  3292. // Name is a required field
  3293. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3294. }
  3295. // String returns the string representation
  3296. func (s GetPipelineStateInput) String() string {
  3297. return awsutil.Prettify(s)
  3298. }
  3299. // GoString returns the string representation
  3300. func (s GetPipelineStateInput) GoString() string {
  3301. return s.String()
  3302. }
  3303. // Validate inspects the fields of the type to determine if they are valid.
  3304. func (s *GetPipelineStateInput) Validate() error {
  3305. invalidParams := request.ErrInvalidParams{Context: "GetPipelineStateInput"}
  3306. if s.Name == nil {
  3307. invalidParams.Add(request.NewErrParamRequired("Name"))
  3308. }
  3309. if s.Name != nil && len(*s.Name) < 1 {
  3310. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3311. }
  3312. if invalidParams.Len() > 0 {
  3313. return invalidParams
  3314. }
  3315. return nil
  3316. }
  3317. // Represents the output of a get pipeline state action.
  3318. type GetPipelineStateOutput struct {
  3319. _ struct{} `type:"structure"`
  3320. // The date and time the pipeline was created, in timestamp format.
  3321. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  3322. // The name of the pipeline for which you want to get the state.
  3323. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  3324. // The version number of the pipeline.
  3325. //
  3326. // A newly-created pipeline is always assigned a version number of 1.
  3327. PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
  3328. // A list of the pipeline stage output information, including stage name, state,
  3329. // most recent run details, whether the stage is disabled, and other data.
  3330. StageStates []*StageState `locationName:"stageStates" type:"list"`
  3331. // The date and time the pipeline was last updated, in timestamp format.
  3332. Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
  3333. }
  3334. // String returns the string representation
  3335. func (s GetPipelineStateOutput) String() string {
  3336. return awsutil.Prettify(s)
  3337. }
  3338. // GoString returns the string representation
  3339. func (s GetPipelineStateOutput) GoString() string {
  3340. return s.String()
  3341. }
  3342. // Represents the input of a get third party job details action.
  3343. type GetThirdPartyJobDetailsInput struct {
  3344. _ struct{} `type:"structure"`
  3345. // The clientToken portion of the clientId and clientToken pair used to verify
  3346. // that the calling entity is allowed access to the job and its details.
  3347. //
  3348. // ClientToken is a required field
  3349. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  3350. // The unique system-generated ID used for identifying the job.
  3351. //
  3352. // JobId is a required field
  3353. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  3354. }
  3355. // String returns the string representation
  3356. func (s GetThirdPartyJobDetailsInput) String() string {
  3357. return awsutil.Prettify(s)
  3358. }
  3359. // GoString returns the string representation
  3360. func (s GetThirdPartyJobDetailsInput) GoString() string {
  3361. return s.String()
  3362. }
  3363. // Validate inspects the fields of the type to determine if they are valid.
  3364. func (s *GetThirdPartyJobDetailsInput) Validate() error {
  3365. invalidParams := request.ErrInvalidParams{Context: "GetThirdPartyJobDetailsInput"}
  3366. if s.ClientToken == nil {
  3367. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  3368. }
  3369. if s.JobId == nil {
  3370. invalidParams.Add(request.NewErrParamRequired("JobId"))
  3371. }
  3372. if s.JobId != nil && len(*s.JobId) < 1 {
  3373. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  3374. }
  3375. if invalidParams.Len() > 0 {
  3376. return invalidParams
  3377. }
  3378. return nil
  3379. }
  3380. // Represents the output of a get third party job details action.
  3381. type GetThirdPartyJobDetailsOutput struct {
  3382. _ struct{} `type:"structure"`
  3383. // The details of the job, including any protected values defined for the job.
  3384. JobDetails *ThirdPartyJobDetails `locationName:"jobDetails" type:"structure"`
  3385. }
  3386. // String returns the string representation
  3387. func (s GetThirdPartyJobDetailsOutput) String() string {
  3388. return awsutil.Prettify(s)
  3389. }
  3390. // GoString returns the string representation
  3391. func (s GetThirdPartyJobDetailsOutput) GoString() string {
  3392. return s.String()
  3393. }
  3394. // Represents information about an artifact to be worked on, such as a test
  3395. // or build artifact.
  3396. type InputArtifact struct {
  3397. _ struct{} `type:"structure"`
  3398. // The name of the artifact to be worked on, for example, "My App".
  3399. //
  3400. // The input artifact of an action must exactly match the output artifact declared
  3401. // in a preceding action, but the input artifact does not have to be the next
  3402. // action in strict sequence from the action that provided the output artifact.
  3403. // Actions in parallel can declare different output artifacts, which are in
  3404. // turn consumed by different following actions.
  3405. //
  3406. // Name is a required field
  3407. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3408. }
  3409. // String returns the string representation
  3410. func (s InputArtifact) String() string {
  3411. return awsutil.Prettify(s)
  3412. }
  3413. // GoString returns the string representation
  3414. func (s InputArtifact) GoString() string {
  3415. return s.String()
  3416. }
  3417. // Validate inspects the fields of the type to determine if they are valid.
  3418. func (s *InputArtifact) Validate() error {
  3419. invalidParams := request.ErrInvalidParams{Context: "InputArtifact"}
  3420. if s.Name == nil {
  3421. invalidParams.Add(request.NewErrParamRequired("Name"))
  3422. }
  3423. if s.Name != nil && len(*s.Name) < 1 {
  3424. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3425. }
  3426. if invalidParams.Len() > 0 {
  3427. return invalidParams
  3428. }
  3429. return nil
  3430. }
  3431. // Represents information about a job.
  3432. type Job struct {
  3433. _ struct{} `type:"structure"`
  3434. // The ID of the AWS account to use when performing the job.
  3435. AccountId *string `locationName:"accountId" type:"string"`
  3436. // Additional data about a job.
  3437. Data *JobData `locationName:"data" type:"structure"`
  3438. // The unique system-generated ID of the job.
  3439. Id *string `locationName:"id" type:"string"`
  3440. // A system-generated random number that AWS CodePipeline uses to ensure that
  3441. // the job is being worked on by only one job worker. This number must be returned
  3442. // in the response.
  3443. Nonce *string `locationName:"nonce" type:"string"`
  3444. }
  3445. // String returns the string representation
  3446. func (s Job) String() string {
  3447. return awsutil.Prettify(s)
  3448. }
  3449. // GoString returns the string representation
  3450. func (s Job) GoString() string {
  3451. return s.String()
  3452. }
  3453. // Represents additional information about a job required for a job worker to
  3454. // complete the job.
  3455. type JobData struct {
  3456. _ struct{} `type:"structure"`
  3457. // Represents information about an action configuration.
  3458. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
  3459. // Represents information about an action type.
  3460. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
  3461. // Represents an AWS session credentials object. These credentials are temporary
  3462. // credentials that are issued by AWS Secure Token Service (STS). They can be
  3463. // used to access input and output artifacts in the Amazon S3 bucket used to
  3464. // store artifact for the pipeline in AWS CodePipeline.
  3465. ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"`
  3466. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  3467. // job requires in order to continue the job asynchronously.
  3468. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  3469. // Represents information about the key used to encrypt data in the artifact
  3470. // store, such as an AWS Key Management Service (AWS KMS) key.
  3471. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  3472. // The artifact supplied to the job.
  3473. InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
  3474. // The output of the job.
  3475. OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
  3476. // Represents information about a pipeline to a job worker.
  3477. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
  3478. }
  3479. // String returns the string representation
  3480. func (s JobData) String() string {
  3481. return awsutil.Prettify(s)
  3482. }
  3483. // GoString returns the string representation
  3484. func (s JobData) GoString() string {
  3485. return s.String()
  3486. }
  3487. // Represents information about the details of a job.
  3488. type JobDetails struct {
  3489. _ struct{} `type:"structure"`
  3490. // The AWS account ID associated with the job.
  3491. AccountId *string `locationName:"accountId" type:"string"`
  3492. // Represents additional information about a job required for a job worker to
  3493. // complete the job.
  3494. Data *JobData `locationName:"data" type:"structure"`
  3495. // The unique system-generated ID of the job.
  3496. Id *string `locationName:"id" type:"string"`
  3497. }
  3498. // String returns the string representation
  3499. func (s JobDetails) String() string {
  3500. return awsutil.Prettify(s)
  3501. }
  3502. // GoString returns the string representation
  3503. func (s JobDetails) GoString() string {
  3504. return s.String()
  3505. }
  3506. // Represents the input of a list action types action.
  3507. type ListActionTypesInput struct {
  3508. _ struct{} `type:"structure"`
  3509. // Filters the list of action types to those created by a specified entity.
  3510. ActionOwnerFilter *string `locationName:"actionOwnerFilter" type:"string" enum:"ActionOwner"`
  3511. // An identifier that was returned from the previous list action types call,
  3512. // which can be used to return the next set of action types in the list.
  3513. NextToken *string `locationName:"nextToken" type:"string"`
  3514. }
  3515. // String returns the string representation
  3516. func (s ListActionTypesInput) String() string {
  3517. return awsutil.Prettify(s)
  3518. }
  3519. // GoString returns the string representation
  3520. func (s ListActionTypesInput) GoString() string {
  3521. return s.String()
  3522. }
  3523. // Represents the output of a list action types action.
  3524. type ListActionTypesOutput struct {
  3525. _ struct{} `type:"structure"`
  3526. // Provides details of the action types.
  3527. //
  3528. // ActionTypes is a required field
  3529. ActionTypes []*ActionType `locationName:"actionTypes" type:"list" required:"true"`
  3530. // If the amount of returned information is significantly large, an identifier
  3531. // is also returned which can be used in a subsequent list action types call
  3532. // to return the next set of action types in the list.
  3533. NextToken *string `locationName:"nextToken" type:"string"`
  3534. }
  3535. // String returns the string representation
  3536. func (s ListActionTypesOutput) String() string {
  3537. return awsutil.Prettify(s)
  3538. }
  3539. // GoString returns the string representation
  3540. func (s ListActionTypesOutput) GoString() string {
  3541. return s.String()
  3542. }
  3543. // Represents the input of a list pipelines action.
  3544. type ListPipelinesInput struct {
  3545. _ struct{} `type:"structure"`
  3546. // An identifier that was returned from the previous list pipelines call, which
  3547. // can be used to return the next set of pipelines in the list.
  3548. NextToken *string `locationName:"nextToken" type:"string"`
  3549. }
  3550. // String returns the string representation
  3551. func (s ListPipelinesInput) String() string {
  3552. return awsutil.Prettify(s)
  3553. }
  3554. // GoString returns the string representation
  3555. func (s ListPipelinesInput) GoString() string {
  3556. return s.String()
  3557. }
  3558. // Represents the output of a list pipelines action.
  3559. type ListPipelinesOutput struct {
  3560. _ struct{} `type:"structure"`
  3561. // If the amount of returned information is significantly large, an identifier
  3562. // is also returned which can be used in a subsequent list pipelines call to
  3563. // return the next set of pipelines in the list.
  3564. NextToken *string `locationName:"nextToken" type:"string"`
  3565. // The list of pipelines.
  3566. Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"`
  3567. }
  3568. // String returns the string representation
  3569. func (s ListPipelinesOutput) String() string {
  3570. return awsutil.Prettify(s)
  3571. }
  3572. // GoString returns the string representation
  3573. func (s ListPipelinesOutput) GoString() string {
  3574. return s.String()
  3575. }
  3576. // Represents information about the output of an action.
  3577. type OutputArtifact struct {
  3578. _ struct{} `type:"structure"`
  3579. // The name of the output of an artifact, such as "My App".
  3580. //
  3581. // The input artifact of an action must exactly match the output artifact declared
  3582. // in a preceding action, but the input artifact does not have to be the next
  3583. // action in strict sequence from the action that provided the output artifact.
  3584. // Actions in parallel can declare different output artifacts, which are in
  3585. // turn consumed by different following actions.
  3586. //
  3587. // Output artifact names must be unique within a pipeline.
  3588. //
  3589. // Name is a required field
  3590. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3591. }
  3592. // String returns the string representation
  3593. func (s OutputArtifact) String() string {
  3594. return awsutil.Prettify(s)
  3595. }
  3596. // GoString returns the string representation
  3597. func (s OutputArtifact) GoString() string {
  3598. return s.String()
  3599. }
  3600. // Validate inspects the fields of the type to determine if they are valid.
  3601. func (s *OutputArtifact) Validate() error {
  3602. invalidParams := request.ErrInvalidParams{Context: "OutputArtifact"}
  3603. if s.Name == nil {
  3604. invalidParams.Add(request.NewErrParamRequired("Name"))
  3605. }
  3606. if s.Name != nil && len(*s.Name) < 1 {
  3607. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3608. }
  3609. if invalidParams.Len() > 0 {
  3610. return invalidParams
  3611. }
  3612. return nil
  3613. }
  3614. // Represents information about a pipeline to a job worker.
  3615. type PipelineContext struct {
  3616. _ struct{} `type:"structure"`
  3617. // Represents the context of an action within the stage of a pipeline to a job
  3618. // worker.
  3619. Action *ActionContext `locationName:"action" type:"structure"`
  3620. // The name of the pipeline. This is a user-specified value. Pipeline names
  3621. // must be unique across all pipeline names under an Amazon Web Services account.
  3622. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  3623. // The stage of the pipeline.
  3624. Stage *StageContext `locationName:"stage" type:"structure"`
  3625. }
  3626. // String returns the string representation
  3627. func (s PipelineContext) String() string {
  3628. return awsutil.Prettify(s)
  3629. }
  3630. // GoString returns the string representation
  3631. func (s PipelineContext) GoString() string {
  3632. return s.String()
  3633. }
  3634. // Represents the structure of actions and stages to be performed in the pipeline.
  3635. type PipelineDeclaration struct {
  3636. _ struct{} `type:"structure"`
  3637. // The Amazon S3 location where artifacts are stored for the pipeline. If this
  3638. // Amazon S3 bucket is created manually, it must meet the requirements for AWS
  3639. // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
  3640. //
  3641. // ArtifactStore is a required field
  3642. ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"`
  3643. // The name of the action to be performed.
  3644. //
  3645. // Name is a required field
  3646. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  3647. // The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform
  3648. // actions with no actionRoleArn, or to use to assume roles for actions with
  3649. // an actionRoleArn.
  3650. //
  3651. // RoleArn is a required field
  3652. RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
  3653. // The stage in which to perform the action.
  3654. //
  3655. // Stages is a required field
  3656. Stages []*StageDeclaration `locationName:"stages" type:"list" required:"true"`
  3657. // The version number of the pipeline. A new pipeline always has a version number
  3658. // of 1. This number is automatically incremented when a pipeline is updated.
  3659. Version *int64 `locationName:"version" min:"1" type:"integer"`
  3660. }
  3661. // String returns the string representation
  3662. func (s PipelineDeclaration) String() string {
  3663. return awsutil.Prettify(s)
  3664. }
  3665. // GoString returns the string representation
  3666. func (s PipelineDeclaration) GoString() string {
  3667. return s.String()
  3668. }
  3669. // Validate inspects the fields of the type to determine if they are valid.
  3670. func (s *PipelineDeclaration) Validate() error {
  3671. invalidParams := request.ErrInvalidParams{Context: "PipelineDeclaration"}
  3672. if s.ArtifactStore == nil {
  3673. invalidParams.Add(request.NewErrParamRequired("ArtifactStore"))
  3674. }
  3675. if s.Name == nil {
  3676. invalidParams.Add(request.NewErrParamRequired("Name"))
  3677. }
  3678. if s.Name != nil && len(*s.Name) < 1 {
  3679. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3680. }
  3681. if s.RoleArn == nil {
  3682. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  3683. }
  3684. if s.Stages == nil {
  3685. invalidParams.Add(request.NewErrParamRequired("Stages"))
  3686. }
  3687. if s.Version != nil && *s.Version < 1 {
  3688. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  3689. }
  3690. if s.ArtifactStore != nil {
  3691. if err := s.ArtifactStore.Validate(); err != nil {
  3692. invalidParams.AddNested("ArtifactStore", err.(request.ErrInvalidParams))
  3693. }
  3694. }
  3695. if s.Stages != nil {
  3696. for i, v := range s.Stages {
  3697. if v == nil {
  3698. continue
  3699. }
  3700. if err := v.Validate(); err != nil {
  3701. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Stages", i), err.(request.ErrInvalidParams))
  3702. }
  3703. }
  3704. }
  3705. if invalidParams.Len() > 0 {
  3706. return invalidParams
  3707. }
  3708. return nil
  3709. }
  3710. // Represents information about an execution of a pipeline.
  3711. type PipelineExecution struct {
  3712. _ struct{} `type:"structure"`
  3713. // A list of ArtifactRevision objects included in a pipeline execution.
  3714. ArtifactRevisions []*ArtifactRevision `locationName:"artifactRevisions" type:"list"`
  3715. // The ID of the pipeline execution.
  3716. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  3717. // The name of the pipeline that was executed.
  3718. PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
  3719. // The version number of the pipeline that was executed.
  3720. PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
  3721. // The status of the pipeline execution.
  3722. //
  3723. // * InProgress: The pipeline execution is currently running.
  3724. //
  3725. // * Succeeded: The pipeline execution completed successfully.
  3726. //
  3727. // * Superseded: While this pipeline execution was waiting for the next stage
  3728. // to be completed, a newer pipeline execution caught up and continued through
  3729. // the pipeline instead.
  3730. //
  3731. // * Failed: The pipeline did not complete successfully.
  3732. Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
  3733. }
  3734. // String returns the string representation
  3735. func (s PipelineExecution) String() string {
  3736. return awsutil.Prettify(s)
  3737. }
  3738. // GoString returns the string representation
  3739. func (s PipelineExecution) GoString() string {
  3740. return s.String()
  3741. }
  3742. // Returns a summary of a pipeline.
  3743. type PipelineSummary struct {
  3744. _ struct{} `type:"structure"`
  3745. // The date and time the pipeline was created, in timestamp format.
  3746. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  3747. // The name of the pipeline.
  3748. Name *string `locationName:"name" min:"1" type:"string"`
  3749. // The date and time of the last update to the pipeline, in timestamp format.
  3750. Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
  3751. // The version number of the pipeline.
  3752. Version *int64 `locationName:"version" min:"1" type:"integer"`
  3753. }
  3754. // String returns the string representation
  3755. func (s PipelineSummary) String() string {
  3756. return awsutil.Prettify(s)
  3757. }
  3758. // GoString returns the string representation
  3759. func (s PipelineSummary) GoString() string {
  3760. return s.String()
  3761. }
  3762. // Represents the input of a poll for jobs action.
  3763. type PollForJobsInput struct {
  3764. _ struct{} `type:"structure"`
  3765. // Represents information about an action type.
  3766. //
  3767. // ActionTypeId is a required field
  3768. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  3769. // The maximum number of jobs to return in a poll for jobs call.
  3770. MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
  3771. // A map of property names and values. For an action type with no queryable
  3772. // properties, this value must be null or an empty map. For an action type with
  3773. // a queryable property, you must supply that property as a key in the map.
  3774. // Only jobs whose action configuration matches the mapped value will be returned.
  3775. QueryParam map[string]*string `locationName:"queryParam" type:"map"`
  3776. }
  3777. // String returns the string representation
  3778. func (s PollForJobsInput) String() string {
  3779. return awsutil.Prettify(s)
  3780. }
  3781. // GoString returns the string representation
  3782. func (s PollForJobsInput) GoString() string {
  3783. return s.String()
  3784. }
  3785. // Validate inspects the fields of the type to determine if they are valid.
  3786. func (s *PollForJobsInput) Validate() error {
  3787. invalidParams := request.ErrInvalidParams{Context: "PollForJobsInput"}
  3788. if s.ActionTypeId == nil {
  3789. invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
  3790. }
  3791. if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
  3792. invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
  3793. }
  3794. if s.ActionTypeId != nil {
  3795. if err := s.ActionTypeId.Validate(); err != nil {
  3796. invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
  3797. }
  3798. }
  3799. if invalidParams.Len() > 0 {
  3800. return invalidParams
  3801. }
  3802. return nil
  3803. }
  3804. // Represents the output of a poll for jobs action.
  3805. type PollForJobsOutput struct {
  3806. _ struct{} `type:"structure"`
  3807. // Information about the jobs to take action on.
  3808. Jobs []*Job `locationName:"jobs" type:"list"`
  3809. }
  3810. // String returns the string representation
  3811. func (s PollForJobsOutput) String() string {
  3812. return awsutil.Prettify(s)
  3813. }
  3814. // GoString returns the string representation
  3815. func (s PollForJobsOutput) GoString() string {
  3816. return s.String()
  3817. }
  3818. // Represents the input of a poll for third party jobs action.
  3819. type PollForThirdPartyJobsInput struct {
  3820. _ struct{} `type:"structure"`
  3821. // Represents information about an action type.
  3822. //
  3823. // ActionTypeId is a required field
  3824. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  3825. // The maximum number of jobs to return in a poll for jobs call.
  3826. MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
  3827. }
  3828. // String returns the string representation
  3829. func (s PollForThirdPartyJobsInput) String() string {
  3830. return awsutil.Prettify(s)
  3831. }
  3832. // GoString returns the string representation
  3833. func (s PollForThirdPartyJobsInput) GoString() string {
  3834. return s.String()
  3835. }
  3836. // Validate inspects the fields of the type to determine if they are valid.
  3837. func (s *PollForThirdPartyJobsInput) Validate() error {
  3838. invalidParams := request.ErrInvalidParams{Context: "PollForThirdPartyJobsInput"}
  3839. if s.ActionTypeId == nil {
  3840. invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
  3841. }
  3842. if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
  3843. invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
  3844. }
  3845. if s.ActionTypeId != nil {
  3846. if err := s.ActionTypeId.Validate(); err != nil {
  3847. invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
  3848. }
  3849. }
  3850. if invalidParams.Len() > 0 {
  3851. return invalidParams
  3852. }
  3853. return nil
  3854. }
  3855. // Represents the output of a poll for third party jobs action.
  3856. type PollForThirdPartyJobsOutput struct {
  3857. _ struct{} `type:"structure"`
  3858. // Information about the jobs to take action on.
  3859. Jobs []*ThirdPartyJob `locationName:"jobs" type:"list"`
  3860. }
  3861. // String returns the string representation
  3862. func (s PollForThirdPartyJobsOutput) String() string {
  3863. return awsutil.Prettify(s)
  3864. }
  3865. // GoString returns the string representation
  3866. func (s PollForThirdPartyJobsOutput) GoString() string {
  3867. return s.String()
  3868. }
  3869. // Represents the input of a put action revision action.
  3870. type PutActionRevisionInput struct {
  3871. _ struct{} `type:"structure"`
  3872. // The name of the action that will process the revision.
  3873. //
  3874. // ActionName is a required field
  3875. ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
  3876. // Represents information about the version (or revision) of an action.
  3877. //
  3878. // ActionRevision is a required field
  3879. ActionRevision *ActionRevision `locationName:"actionRevision" type:"structure" required:"true"`
  3880. // The name of the pipeline that will start processing the revision to the source.
  3881. //
  3882. // PipelineName is a required field
  3883. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  3884. // The name of the stage that contains the action that will act upon the revision.
  3885. //
  3886. // StageName is a required field
  3887. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  3888. }
  3889. // String returns the string representation
  3890. func (s PutActionRevisionInput) String() string {
  3891. return awsutil.Prettify(s)
  3892. }
  3893. // GoString returns the string representation
  3894. func (s PutActionRevisionInput) GoString() string {
  3895. return s.String()
  3896. }
  3897. // Validate inspects the fields of the type to determine if they are valid.
  3898. func (s *PutActionRevisionInput) Validate() error {
  3899. invalidParams := request.ErrInvalidParams{Context: "PutActionRevisionInput"}
  3900. if s.ActionName == nil {
  3901. invalidParams.Add(request.NewErrParamRequired("ActionName"))
  3902. }
  3903. if s.ActionName != nil && len(*s.ActionName) < 1 {
  3904. invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
  3905. }
  3906. if s.ActionRevision == nil {
  3907. invalidParams.Add(request.NewErrParamRequired("ActionRevision"))
  3908. }
  3909. if s.PipelineName == nil {
  3910. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  3911. }
  3912. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  3913. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  3914. }
  3915. if s.StageName == nil {
  3916. invalidParams.Add(request.NewErrParamRequired("StageName"))
  3917. }
  3918. if s.StageName != nil && len(*s.StageName) < 1 {
  3919. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  3920. }
  3921. if s.ActionRevision != nil {
  3922. if err := s.ActionRevision.Validate(); err != nil {
  3923. invalidParams.AddNested("ActionRevision", err.(request.ErrInvalidParams))
  3924. }
  3925. }
  3926. if invalidParams.Len() > 0 {
  3927. return invalidParams
  3928. }
  3929. return nil
  3930. }
  3931. // Represents the output of a put action revision action.
  3932. type PutActionRevisionOutput struct {
  3933. _ struct{} `type:"structure"`
  3934. // Indicates whether the artifact revision was previously used in an execution
  3935. // of the specified pipeline.
  3936. NewRevision *bool `locationName:"newRevision" type:"boolean"`
  3937. // The ID of the current workflow state of the pipeline.
  3938. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  3939. }
  3940. // String returns the string representation
  3941. func (s PutActionRevisionOutput) String() string {
  3942. return awsutil.Prettify(s)
  3943. }
  3944. // GoString returns the string representation
  3945. func (s PutActionRevisionOutput) GoString() string {
  3946. return s.String()
  3947. }
  3948. // Represents the input of a put approval result action.
  3949. type PutApprovalResultInput struct {
  3950. _ struct{} `type:"structure"`
  3951. // The name of the action for which approval is requested.
  3952. //
  3953. // ActionName is a required field
  3954. ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
  3955. // The name of the pipeline that contains the action.
  3956. //
  3957. // PipelineName is a required field
  3958. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  3959. // Represents information about the result of the approval request.
  3960. //
  3961. // Result is a required field
  3962. Result *ApprovalResult `locationName:"result" type:"structure" required:"true"`
  3963. // The name of the stage that contains the action.
  3964. //
  3965. // StageName is a required field
  3966. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  3967. // The system-generated token used to identify a unique approval request. The
  3968. // token for each open approval request can be obtained using the GetPipelineState
  3969. // action and is used to validate that the approval request corresponding to
  3970. // this token is still valid.
  3971. //
  3972. // Token is a required field
  3973. Token *string `locationName:"token" type:"string" required:"true"`
  3974. }
  3975. // String returns the string representation
  3976. func (s PutApprovalResultInput) String() string {
  3977. return awsutil.Prettify(s)
  3978. }
  3979. // GoString returns the string representation
  3980. func (s PutApprovalResultInput) GoString() string {
  3981. return s.String()
  3982. }
  3983. // Validate inspects the fields of the type to determine if they are valid.
  3984. func (s *PutApprovalResultInput) Validate() error {
  3985. invalidParams := request.ErrInvalidParams{Context: "PutApprovalResultInput"}
  3986. if s.ActionName == nil {
  3987. invalidParams.Add(request.NewErrParamRequired("ActionName"))
  3988. }
  3989. if s.ActionName != nil && len(*s.ActionName) < 1 {
  3990. invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
  3991. }
  3992. if s.PipelineName == nil {
  3993. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  3994. }
  3995. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  3996. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  3997. }
  3998. if s.Result == nil {
  3999. invalidParams.Add(request.NewErrParamRequired("Result"))
  4000. }
  4001. if s.StageName == nil {
  4002. invalidParams.Add(request.NewErrParamRequired("StageName"))
  4003. }
  4004. if s.StageName != nil && len(*s.StageName) < 1 {
  4005. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  4006. }
  4007. if s.Token == nil {
  4008. invalidParams.Add(request.NewErrParamRequired("Token"))
  4009. }
  4010. if s.Result != nil {
  4011. if err := s.Result.Validate(); err != nil {
  4012. invalidParams.AddNested("Result", err.(request.ErrInvalidParams))
  4013. }
  4014. }
  4015. if invalidParams.Len() > 0 {
  4016. return invalidParams
  4017. }
  4018. return nil
  4019. }
  4020. // Represents the output of a put approval result action.
  4021. type PutApprovalResultOutput struct {
  4022. _ struct{} `type:"structure"`
  4023. // The timestamp showing when the approval or rejection was submitted.
  4024. ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp" timestampFormat:"unix"`
  4025. }
  4026. // String returns the string representation
  4027. func (s PutApprovalResultOutput) String() string {
  4028. return awsutil.Prettify(s)
  4029. }
  4030. // GoString returns the string representation
  4031. func (s PutApprovalResultOutput) GoString() string {
  4032. return s.String()
  4033. }
  4034. // Represents the input of a put job failure result action.
  4035. type PutJobFailureResultInput struct {
  4036. _ struct{} `type:"structure"`
  4037. // The details about the failure of a job.
  4038. //
  4039. // FailureDetails is a required field
  4040. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
  4041. // The unique system-generated ID of the job that failed. This is the same ID
  4042. // returned from PollForJobs.
  4043. //
  4044. // JobId is a required field
  4045. JobId *string `locationName:"jobId" type:"string" required:"true"`
  4046. }
  4047. // String returns the string representation
  4048. func (s PutJobFailureResultInput) String() string {
  4049. return awsutil.Prettify(s)
  4050. }
  4051. // GoString returns the string representation
  4052. func (s PutJobFailureResultInput) GoString() string {
  4053. return s.String()
  4054. }
  4055. // Validate inspects the fields of the type to determine if they are valid.
  4056. func (s *PutJobFailureResultInput) Validate() error {
  4057. invalidParams := request.ErrInvalidParams{Context: "PutJobFailureResultInput"}
  4058. if s.FailureDetails == nil {
  4059. invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
  4060. }
  4061. if s.JobId == nil {
  4062. invalidParams.Add(request.NewErrParamRequired("JobId"))
  4063. }
  4064. if s.FailureDetails != nil {
  4065. if err := s.FailureDetails.Validate(); err != nil {
  4066. invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
  4067. }
  4068. }
  4069. if invalidParams.Len() > 0 {
  4070. return invalidParams
  4071. }
  4072. return nil
  4073. }
  4074. type PutJobFailureResultOutput struct {
  4075. _ struct{} `type:"structure"`
  4076. }
  4077. // String returns the string representation
  4078. func (s PutJobFailureResultOutput) String() string {
  4079. return awsutil.Prettify(s)
  4080. }
  4081. // GoString returns the string representation
  4082. func (s PutJobFailureResultOutput) GoString() string {
  4083. return s.String()
  4084. }
  4085. // Represents the input of a put job success result action.
  4086. type PutJobSuccessResultInput struct {
  4087. _ struct{} `type:"structure"`
  4088. // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
  4089. // that a successful job provides to identify a custom action in progress. Future
  4090. // jobs will use this token in order to identify the running instance of the
  4091. // action. It can be reused to return additional information about the progress
  4092. // of the custom action. When the action is complete, no continuation token
  4093. // should be supplied.
  4094. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  4095. // The ID of the current revision of the artifact successfully worked upon by
  4096. // the job.
  4097. CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
  4098. // The execution details of the successful job, such as the actions taken by
  4099. // the job worker.
  4100. ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
  4101. // The unique system-generated ID of the job that succeeded. This is the same
  4102. // ID returned from PollForJobs.
  4103. //
  4104. // JobId is a required field
  4105. JobId *string `locationName:"jobId" type:"string" required:"true"`
  4106. }
  4107. // String returns the string representation
  4108. func (s PutJobSuccessResultInput) String() string {
  4109. return awsutil.Prettify(s)
  4110. }
  4111. // GoString returns the string representation
  4112. func (s PutJobSuccessResultInput) GoString() string {
  4113. return s.String()
  4114. }
  4115. // Validate inspects the fields of the type to determine if they are valid.
  4116. func (s *PutJobSuccessResultInput) Validate() error {
  4117. invalidParams := request.ErrInvalidParams{Context: "PutJobSuccessResultInput"}
  4118. if s.JobId == nil {
  4119. invalidParams.Add(request.NewErrParamRequired("JobId"))
  4120. }
  4121. if s.CurrentRevision != nil {
  4122. if err := s.CurrentRevision.Validate(); err != nil {
  4123. invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
  4124. }
  4125. }
  4126. if s.ExecutionDetails != nil {
  4127. if err := s.ExecutionDetails.Validate(); err != nil {
  4128. invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
  4129. }
  4130. }
  4131. if invalidParams.Len() > 0 {
  4132. return invalidParams
  4133. }
  4134. return nil
  4135. }
  4136. type PutJobSuccessResultOutput struct {
  4137. _ struct{} `type:"structure"`
  4138. }
  4139. // String returns the string representation
  4140. func (s PutJobSuccessResultOutput) String() string {
  4141. return awsutil.Prettify(s)
  4142. }
  4143. // GoString returns the string representation
  4144. func (s PutJobSuccessResultOutput) GoString() string {
  4145. return s.String()
  4146. }
  4147. // Represents the input of a third party job failure result action.
  4148. type PutThirdPartyJobFailureResultInput struct {
  4149. _ struct{} `type:"structure"`
  4150. // The clientToken portion of the clientId and clientToken pair used to verify
  4151. // that the calling entity is allowed access to the job and its details.
  4152. //
  4153. // ClientToken is a required field
  4154. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  4155. // Represents information about failure details.
  4156. //
  4157. // FailureDetails is a required field
  4158. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
  4159. // The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
  4160. //
  4161. // JobId is a required field
  4162. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  4163. }
  4164. // String returns the string representation
  4165. func (s PutThirdPartyJobFailureResultInput) String() string {
  4166. return awsutil.Prettify(s)
  4167. }
  4168. // GoString returns the string representation
  4169. func (s PutThirdPartyJobFailureResultInput) GoString() string {
  4170. return s.String()
  4171. }
  4172. // Validate inspects the fields of the type to determine if they are valid.
  4173. func (s *PutThirdPartyJobFailureResultInput) Validate() error {
  4174. invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobFailureResultInput"}
  4175. if s.ClientToken == nil {
  4176. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  4177. }
  4178. if s.FailureDetails == nil {
  4179. invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
  4180. }
  4181. if s.JobId == nil {
  4182. invalidParams.Add(request.NewErrParamRequired("JobId"))
  4183. }
  4184. if s.JobId != nil && len(*s.JobId) < 1 {
  4185. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  4186. }
  4187. if s.FailureDetails != nil {
  4188. if err := s.FailureDetails.Validate(); err != nil {
  4189. invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
  4190. }
  4191. }
  4192. if invalidParams.Len() > 0 {
  4193. return invalidParams
  4194. }
  4195. return nil
  4196. }
  4197. type PutThirdPartyJobFailureResultOutput struct {
  4198. _ struct{} `type:"structure"`
  4199. }
  4200. // String returns the string representation
  4201. func (s PutThirdPartyJobFailureResultOutput) String() string {
  4202. return awsutil.Prettify(s)
  4203. }
  4204. // GoString returns the string representation
  4205. func (s PutThirdPartyJobFailureResultOutput) GoString() string {
  4206. return s.String()
  4207. }
  4208. // Represents the input of a put third party job success result action.
  4209. type PutThirdPartyJobSuccessResultInput struct {
  4210. _ struct{} `type:"structure"`
  4211. // The clientToken portion of the clientId and clientToken pair used to verify
  4212. // that the calling entity is allowed access to the job and its details.
  4213. //
  4214. // ClientToken is a required field
  4215. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  4216. // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
  4217. // that a successful job provides to identify a partner action in progress.
  4218. // Future jobs will use this token in order to identify the running instance
  4219. // of the action. It can be reused to return additional information about the
  4220. // progress of the partner action. When the action is complete, no continuation
  4221. // token should be supplied.
  4222. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  4223. // Represents information about a current revision.
  4224. CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
  4225. // The details of the actions taken and results produced on an artifact as it
  4226. // passes through stages in the pipeline.
  4227. ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
  4228. // The ID of the job that successfully completed. This is the same ID returned
  4229. // from PollForThirdPartyJobs.
  4230. //
  4231. // JobId is a required field
  4232. JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
  4233. }
  4234. // String returns the string representation
  4235. func (s PutThirdPartyJobSuccessResultInput) String() string {
  4236. return awsutil.Prettify(s)
  4237. }
  4238. // GoString returns the string representation
  4239. func (s PutThirdPartyJobSuccessResultInput) GoString() string {
  4240. return s.String()
  4241. }
  4242. // Validate inspects the fields of the type to determine if they are valid.
  4243. func (s *PutThirdPartyJobSuccessResultInput) Validate() error {
  4244. invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobSuccessResultInput"}
  4245. if s.ClientToken == nil {
  4246. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  4247. }
  4248. if s.JobId == nil {
  4249. invalidParams.Add(request.NewErrParamRequired("JobId"))
  4250. }
  4251. if s.JobId != nil && len(*s.JobId) < 1 {
  4252. invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
  4253. }
  4254. if s.CurrentRevision != nil {
  4255. if err := s.CurrentRevision.Validate(); err != nil {
  4256. invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
  4257. }
  4258. }
  4259. if s.ExecutionDetails != nil {
  4260. if err := s.ExecutionDetails.Validate(); err != nil {
  4261. invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
  4262. }
  4263. }
  4264. if invalidParams.Len() > 0 {
  4265. return invalidParams
  4266. }
  4267. return nil
  4268. }
  4269. type PutThirdPartyJobSuccessResultOutput struct {
  4270. _ struct{} `type:"structure"`
  4271. }
  4272. // String returns the string representation
  4273. func (s PutThirdPartyJobSuccessResultOutput) String() string {
  4274. return awsutil.Prettify(s)
  4275. }
  4276. // GoString returns the string representation
  4277. func (s PutThirdPartyJobSuccessResultOutput) GoString() string {
  4278. return s.String()
  4279. }
  4280. // Represents the input of a retry stage execution action.
  4281. type RetryStageExecutionInput struct {
  4282. _ struct{} `type:"structure"`
  4283. // The ID of the pipeline execution in the failed stage to be retried. Use the
  4284. // GetPipelineState action to retrieve the current pipelineExecutionId of the
  4285. // failed stage
  4286. //
  4287. // PipelineExecutionId is a required field
  4288. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
  4289. // The name of the pipeline that contains the failed stage.
  4290. //
  4291. // PipelineName is a required field
  4292. PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
  4293. // The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.
  4294. //
  4295. // RetryMode is a required field
  4296. RetryMode *string `locationName:"retryMode" type:"string" required:"true" enum:"StageRetryMode"`
  4297. // The name of the failed stage to be retried.
  4298. //
  4299. // StageName is a required field
  4300. StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
  4301. }
  4302. // String returns the string representation
  4303. func (s RetryStageExecutionInput) String() string {
  4304. return awsutil.Prettify(s)
  4305. }
  4306. // GoString returns the string representation
  4307. func (s RetryStageExecutionInput) GoString() string {
  4308. return s.String()
  4309. }
  4310. // Validate inspects the fields of the type to determine if they are valid.
  4311. func (s *RetryStageExecutionInput) Validate() error {
  4312. invalidParams := request.ErrInvalidParams{Context: "RetryStageExecutionInput"}
  4313. if s.PipelineExecutionId == nil {
  4314. invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
  4315. }
  4316. if s.PipelineName == nil {
  4317. invalidParams.Add(request.NewErrParamRequired("PipelineName"))
  4318. }
  4319. if s.PipelineName != nil && len(*s.PipelineName) < 1 {
  4320. invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
  4321. }
  4322. if s.RetryMode == nil {
  4323. invalidParams.Add(request.NewErrParamRequired("RetryMode"))
  4324. }
  4325. if s.StageName == nil {
  4326. invalidParams.Add(request.NewErrParamRequired("StageName"))
  4327. }
  4328. if s.StageName != nil && len(*s.StageName) < 1 {
  4329. invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
  4330. }
  4331. if invalidParams.Len() > 0 {
  4332. return invalidParams
  4333. }
  4334. return nil
  4335. }
  4336. // Represents the output of a retry stage execution action.
  4337. type RetryStageExecutionOutput struct {
  4338. _ struct{} `type:"structure"`
  4339. // The ID of the current workflow execution in the failed stage.
  4340. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  4341. }
  4342. // String returns the string representation
  4343. func (s RetryStageExecutionOutput) String() string {
  4344. return awsutil.Prettify(s)
  4345. }
  4346. // GoString returns the string representation
  4347. func (s RetryStageExecutionOutput) GoString() string {
  4348. return s.String()
  4349. }
  4350. // The location of the Amazon S3 bucket that contains a revision.
  4351. type S3ArtifactLocation struct {
  4352. _ struct{} `type:"structure"`
  4353. // The name of the Amazon S3 bucket.
  4354. //
  4355. // BucketName is a required field
  4356. BucketName *string `locationName:"bucketName" type:"string" required:"true"`
  4357. // The key of the object in the Amazon S3 bucket, which uniquely identifies
  4358. // the object in the bucket.
  4359. //
  4360. // ObjectKey is a required field
  4361. ObjectKey *string `locationName:"objectKey" type:"string" required:"true"`
  4362. }
  4363. // String returns the string representation
  4364. func (s S3ArtifactLocation) String() string {
  4365. return awsutil.Prettify(s)
  4366. }
  4367. // GoString returns the string representation
  4368. func (s S3ArtifactLocation) GoString() string {
  4369. return s.String()
  4370. }
  4371. // Represents information about a stage to a job worker.
  4372. type StageContext struct {
  4373. _ struct{} `type:"structure"`
  4374. // The name of the stage.
  4375. Name *string `locationName:"name" min:"1" type:"string"`
  4376. }
  4377. // String returns the string representation
  4378. func (s StageContext) String() string {
  4379. return awsutil.Prettify(s)
  4380. }
  4381. // GoString returns the string representation
  4382. func (s StageContext) GoString() string {
  4383. return s.String()
  4384. }
  4385. // Represents information about a stage and its definition.
  4386. type StageDeclaration struct {
  4387. _ struct{} `type:"structure"`
  4388. // The actions included in a stage.
  4389. //
  4390. // Actions is a required field
  4391. Actions []*ActionDeclaration `locationName:"actions" type:"list" required:"true"`
  4392. // Reserved for future use.
  4393. Blockers []*BlockerDeclaration `locationName:"blockers" type:"list"`
  4394. // The name of the stage.
  4395. //
  4396. // Name is a required field
  4397. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4398. }
  4399. // String returns the string representation
  4400. func (s StageDeclaration) String() string {
  4401. return awsutil.Prettify(s)
  4402. }
  4403. // GoString returns the string representation
  4404. func (s StageDeclaration) GoString() string {
  4405. return s.String()
  4406. }
  4407. // Validate inspects the fields of the type to determine if they are valid.
  4408. func (s *StageDeclaration) Validate() error {
  4409. invalidParams := request.ErrInvalidParams{Context: "StageDeclaration"}
  4410. if s.Actions == nil {
  4411. invalidParams.Add(request.NewErrParamRequired("Actions"))
  4412. }
  4413. if s.Name == nil {
  4414. invalidParams.Add(request.NewErrParamRequired("Name"))
  4415. }
  4416. if s.Name != nil && len(*s.Name) < 1 {
  4417. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4418. }
  4419. if s.Actions != nil {
  4420. for i, v := range s.Actions {
  4421. if v == nil {
  4422. continue
  4423. }
  4424. if err := v.Validate(); err != nil {
  4425. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
  4426. }
  4427. }
  4428. }
  4429. if s.Blockers != nil {
  4430. for i, v := range s.Blockers {
  4431. if v == nil {
  4432. continue
  4433. }
  4434. if err := v.Validate(); err != nil {
  4435. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Blockers", i), err.(request.ErrInvalidParams))
  4436. }
  4437. }
  4438. }
  4439. if invalidParams.Len() > 0 {
  4440. return invalidParams
  4441. }
  4442. return nil
  4443. }
  4444. // Represents information about the run of a stage.
  4445. type StageExecution struct {
  4446. _ struct{} `type:"structure"`
  4447. // The ID of the pipeline execution associated with the stage.
  4448. //
  4449. // PipelineExecutionId is a required field
  4450. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
  4451. // The status of the stage, or for a completed stage, the last status of the
  4452. // stage.
  4453. //
  4454. // Status is a required field
  4455. Status *string `locationName:"status" type:"string" required:"true" enum:"StageExecutionStatus"`
  4456. }
  4457. // String returns the string representation
  4458. func (s StageExecution) String() string {
  4459. return awsutil.Prettify(s)
  4460. }
  4461. // GoString returns the string representation
  4462. func (s StageExecution) GoString() string {
  4463. return s.String()
  4464. }
  4465. // Represents information about the state of the stage.
  4466. type StageState struct {
  4467. _ struct{} `type:"structure"`
  4468. // The state of the stage.
  4469. ActionStates []*ActionState `locationName:"actionStates" type:"list"`
  4470. // The state of the inbound transition, which is either enabled or disabled.
  4471. InboundTransitionState *TransitionState `locationName:"inboundTransitionState" type:"structure"`
  4472. // Information about the latest execution in the stage, including its ID and
  4473. // status.
  4474. LatestExecution *StageExecution `locationName:"latestExecution" type:"structure"`
  4475. // The name of the stage.
  4476. StageName *string `locationName:"stageName" min:"1" type:"string"`
  4477. }
  4478. // String returns the string representation
  4479. func (s StageState) String() string {
  4480. return awsutil.Prettify(s)
  4481. }
  4482. // GoString returns the string representation
  4483. func (s StageState) GoString() string {
  4484. return s.String()
  4485. }
  4486. // Represents the input of a start pipeline execution action.
  4487. type StartPipelineExecutionInput struct {
  4488. _ struct{} `type:"structure"`
  4489. // The name of the pipeline to start.
  4490. //
  4491. // Name is a required field
  4492. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4493. }
  4494. // String returns the string representation
  4495. func (s StartPipelineExecutionInput) String() string {
  4496. return awsutil.Prettify(s)
  4497. }
  4498. // GoString returns the string representation
  4499. func (s StartPipelineExecutionInput) GoString() string {
  4500. return s.String()
  4501. }
  4502. // Validate inspects the fields of the type to determine if they are valid.
  4503. func (s *StartPipelineExecutionInput) Validate() error {
  4504. invalidParams := request.ErrInvalidParams{Context: "StartPipelineExecutionInput"}
  4505. if s.Name == nil {
  4506. invalidParams.Add(request.NewErrParamRequired("Name"))
  4507. }
  4508. if s.Name != nil && len(*s.Name) < 1 {
  4509. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4510. }
  4511. if invalidParams.Len() > 0 {
  4512. return invalidParams
  4513. }
  4514. return nil
  4515. }
  4516. // Represents the output of a start pipeline execution action.
  4517. type StartPipelineExecutionOutput struct {
  4518. _ struct{} `type:"structure"`
  4519. // The unique system-generated ID of the pipeline execution that was started.
  4520. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  4521. }
  4522. // String returns the string representation
  4523. func (s StartPipelineExecutionOutput) String() string {
  4524. return awsutil.Prettify(s)
  4525. }
  4526. // GoString returns the string representation
  4527. func (s StartPipelineExecutionOutput) GoString() string {
  4528. return s.String()
  4529. }
  4530. // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline
  4531. // when there is a job to be worked upon by a partner action.
  4532. type ThirdPartyJob struct {
  4533. _ struct{} `type:"structure"`
  4534. // The clientToken portion of the clientId and clientToken pair used to verify
  4535. // that the calling entity is allowed access to the job and its details.
  4536. ClientId *string `locationName:"clientId" type:"string"`
  4537. // The identifier used to identify the job in AWS CodePipeline.
  4538. JobId *string `locationName:"jobId" type:"string"`
  4539. }
  4540. // String returns the string representation
  4541. func (s ThirdPartyJob) String() string {
  4542. return awsutil.Prettify(s)
  4543. }
  4544. // GoString returns the string representation
  4545. func (s ThirdPartyJob) GoString() string {
  4546. return s.String()
  4547. }
  4548. // Represents information about the job data for a partner action.
  4549. type ThirdPartyJobData struct {
  4550. _ struct{} `type:"structure"`
  4551. // Represents information about an action configuration.
  4552. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
  4553. // Represents information about an action type.
  4554. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
  4555. // Represents an AWS session credentials object. These credentials are temporary
  4556. // credentials that are issued by AWS Secure Token Service (STS). They can be
  4557. // used to access input and output artifacts in the Amazon S3 bucket used to
  4558. // store artifact for the pipeline in AWS CodePipeline.
  4559. ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"`
  4560. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  4561. // job requires in order to continue the job asynchronously.
  4562. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  4563. // The encryption key used to encrypt and decrypt data in the artifact store
  4564. // for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This
  4565. // is optional and might not be present.
  4566. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  4567. // The name of the artifact that will be worked upon by the action, if any.
  4568. // This name might be system-generated, such as "MyApp", or might be defined
  4569. // by the user when the action is created. The input artifact name must match
  4570. // the name of an output artifact generated by an action in an earlier action
  4571. // or stage of the pipeline.
  4572. InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
  4573. // The name of the artifact that will be the result of the action, if any. This
  4574. // name might be system-generated, such as "MyBuiltApp", or might be defined
  4575. // by the user when the action is created.
  4576. OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
  4577. // Represents information about a pipeline to a job worker.
  4578. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
  4579. }
  4580. // String returns the string representation
  4581. func (s ThirdPartyJobData) String() string {
  4582. return awsutil.Prettify(s)
  4583. }
  4584. // GoString returns the string representation
  4585. func (s ThirdPartyJobData) GoString() string {
  4586. return s.String()
  4587. }
  4588. // The details of a job sent in response to a GetThirdPartyJobDetails request.
  4589. type ThirdPartyJobDetails struct {
  4590. _ struct{} `type:"structure"`
  4591. // The data to be returned by the third party job worker.
  4592. Data *ThirdPartyJobData `locationName:"data" type:"structure"`
  4593. // The identifier used to identify the job details in AWS CodePipeline.
  4594. Id *string `locationName:"id" min:"1" type:"string"`
  4595. // A system-generated random number that AWS CodePipeline uses to ensure that
  4596. // the job is being worked on by only one job worker. This number must be returned
  4597. // in the response.
  4598. Nonce *string `locationName:"nonce" type:"string"`
  4599. }
  4600. // String returns the string representation
  4601. func (s ThirdPartyJobDetails) String() string {
  4602. return awsutil.Prettify(s)
  4603. }
  4604. // GoString returns the string representation
  4605. func (s ThirdPartyJobDetails) GoString() string {
  4606. return s.String()
  4607. }
  4608. // Represents information about the state of transitions between one stage and
  4609. // another stage.
  4610. type TransitionState struct {
  4611. _ struct{} `type:"structure"`
  4612. // The user-specified reason why the transition between two stages of a pipeline
  4613. // was disabled.
  4614. DisabledReason *string `locationName:"disabledReason" min:"1" type:"string"`
  4615. // Whether the transition between stages is enabled (true) or disabled (false).
  4616. Enabled *bool `locationName:"enabled" type:"boolean"`
  4617. // The timestamp when the transition state was last changed.
  4618. LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp" timestampFormat:"unix"`
  4619. // The ID of the user who last changed the transition state.
  4620. LastChangedBy *string `locationName:"lastChangedBy" type:"string"`
  4621. }
  4622. // String returns the string representation
  4623. func (s TransitionState) String() string {
  4624. return awsutil.Prettify(s)
  4625. }
  4626. // GoString returns the string representation
  4627. func (s TransitionState) GoString() string {
  4628. return s.String()
  4629. }
  4630. // Represents the input of an update pipeline action.
  4631. type UpdatePipelineInput struct {
  4632. _ struct{} `type:"structure"`
  4633. // The name of the pipeline to be updated.
  4634. //
  4635. // Pipeline is a required field
  4636. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
  4637. }
  4638. // String returns the string representation
  4639. func (s UpdatePipelineInput) String() string {
  4640. return awsutil.Prettify(s)
  4641. }
  4642. // GoString returns the string representation
  4643. func (s UpdatePipelineInput) GoString() string {
  4644. return s.String()
  4645. }
  4646. // Validate inspects the fields of the type to determine if they are valid.
  4647. func (s *UpdatePipelineInput) Validate() error {
  4648. invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
  4649. if s.Pipeline == nil {
  4650. invalidParams.Add(request.NewErrParamRequired("Pipeline"))
  4651. }
  4652. if s.Pipeline != nil {
  4653. if err := s.Pipeline.Validate(); err != nil {
  4654. invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
  4655. }
  4656. }
  4657. if invalidParams.Len() > 0 {
  4658. return invalidParams
  4659. }
  4660. return nil
  4661. }
  4662. // Represents the output of an update pipeline action.
  4663. type UpdatePipelineOutput struct {
  4664. _ struct{} `type:"structure"`
  4665. // The structure of the updated pipeline.
  4666. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  4667. }
  4668. // String returns the string representation
  4669. func (s UpdatePipelineOutput) String() string {
  4670. return awsutil.Prettify(s)
  4671. }
  4672. // GoString returns the string representation
  4673. func (s UpdatePipelineOutput) GoString() string {
  4674. return s.String()
  4675. }
  4676. const (
  4677. // ActionCategorySource is a ActionCategory enum value
  4678. ActionCategorySource = "Source"
  4679. // ActionCategoryBuild is a ActionCategory enum value
  4680. ActionCategoryBuild = "Build"
  4681. // ActionCategoryDeploy is a ActionCategory enum value
  4682. ActionCategoryDeploy = "Deploy"
  4683. // ActionCategoryTest is a ActionCategory enum value
  4684. ActionCategoryTest = "Test"
  4685. // ActionCategoryInvoke is a ActionCategory enum value
  4686. ActionCategoryInvoke = "Invoke"
  4687. // ActionCategoryApproval is a ActionCategory enum value
  4688. ActionCategoryApproval = "Approval"
  4689. )
  4690. const (
  4691. // ActionConfigurationPropertyTypeString is a ActionConfigurationPropertyType enum value
  4692. ActionConfigurationPropertyTypeString = "String"
  4693. // ActionConfigurationPropertyTypeNumber is a ActionConfigurationPropertyType enum value
  4694. ActionConfigurationPropertyTypeNumber = "Number"
  4695. // ActionConfigurationPropertyTypeBoolean is a ActionConfigurationPropertyType enum value
  4696. ActionConfigurationPropertyTypeBoolean = "Boolean"
  4697. )
  4698. const (
  4699. // ActionExecutionStatusInProgress is a ActionExecutionStatus enum value
  4700. ActionExecutionStatusInProgress = "InProgress"
  4701. // ActionExecutionStatusSucceeded is a ActionExecutionStatus enum value
  4702. ActionExecutionStatusSucceeded = "Succeeded"
  4703. // ActionExecutionStatusFailed is a ActionExecutionStatus enum value
  4704. ActionExecutionStatusFailed = "Failed"
  4705. )
  4706. const (
  4707. // ActionOwnerAws is a ActionOwner enum value
  4708. ActionOwnerAws = "AWS"
  4709. // ActionOwnerThirdParty is a ActionOwner enum value
  4710. ActionOwnerThirdParty = "ThirdParty"
  4711. // ActionOwnerCustom is a ActionOwner enum value
  4712. ActionOwnerCustom = "Custom"
  4713. )
  4714. const (
  4715. // ApprovalStatusApproved is a ApprovalStatus enum value
  4716. ApprovalStatusApproved = "Approved"
  4717. // ApprovalStatusRejected is a ApprovalStatus enum value
  4718. ApprovalStatusRejected = "Rejected"
  4719. )
  4720. const (
  4721. // ArtifactLocationTypeS3 is a ArtifactLocationType enum value
  4722. ArtifactLocationTypeS3 = "S3"
  4723. )
  4724. const (
  4725. // ArtifactStoreTypeS3 is a ArtifactStoreType enum value
  4726. ArtifactStoreTypeS3 = "S3"
  4727. )
  4728. const (
  4729. // BlockerTypeSchedule is a BlockerType enum value
  4730. BlockerTypeSchedule = "Schedule"
  4731. )
  4732. const (
  4733. // EncryptionKeyTypeKms is a EncryptionKeyType enum value
  4734. EncryptionKeyTypeKms = "KMS"
  4735. )
  4736. const (
  4737. // FailureTypeJobFailed is a FailureType enum value
  4738. FailureTypeJobFailed = "JobFailed"
  4739. // FailureTypeConfigurationError is a FailureType enum value
  4740. FailureTypeConfigurationError = "ConfigurationError"
  4741. // FailureTypePermissionError is a FailureType enum value
  4742. FailureTypePermissionError = "PermissionError"
  4743. // FailureTypeRevisionOutOfSync is a FailureType enum value
  4744. FailureTypeRevisionOutOfSync = "RevisionOutOfSync"
  4745. // FailureTypeRevisionUnavailable is a FailureType enum value
  4746. FailureTypeRevisionUnavailable = "RevisionUnavailable"
  4747. // FailureTypeSystemUnavailable is a FailureType enum value
  4748. FailureTypeSystemUnavailable = "SystemUnavailable"
  4749. )
  4750. const (
  4751. // JobStatusCreated is a JobStatus enum value
  4752. JobStatusCreated = "Created"
  4753. // JobStatusQueued is a JobStatus enum value
  4754. JobStatusQueued = "Queued"
  4755. // JobStatusDispatched is a JobStatus enum value
  4756. JobStatusDispatched = "Dispatched"
  4757. // JobStatusInProgress is a JobStatus enum value
  4758. JobStatusInProgress = "InProgress"
  4759. // JobStatusTimedOut is a JobStatus enum value
  4760. JobStatusTimedOut = "TimedOut"
  4761. // JobStatusSucceeded is a JobStatus enum value
  4762. JobStatusSucceeded = "Succeeded"
  4763. // JobStatusFailed is a JobStatus enum value
  4764. JobStatusFailed = "Failed"
  4765. )
  4766. const (
  4767. // PipelineExecutionStatusInProgress is a PipelineExecutionStatus enum value
  4768. PipelineExecutionStatusInProgress = "InProgress"
  4769. // PipelineExecutionStatusSucceeded is a PipelineExecutionStatus enum value
  4770. PipelineExecutionStatusSucceeded = "Succeeded"
  4771. // PipelineExecutionStatusSuperseded is a PipelineExecutionStatus enum value
  4772. PipelineExecutionStatusSuperseded = "Superseded"
  4773. // PipelineExecutionStatusFailed is a PipelineExecutionStatus enum value
  4774. PipelineExecutionStatusFailed = "Failed"
  4775. )
  4776. const (
  4777. // StageExecutionStatusInProgress is a StageExecutionStatus enum value
  4778. StageExecutionStatusInProgress = "InProgress"
  4779. // StageExecutionStatusFailed is a StageExecutionStatus enum value
  4780. StageExecutionStatusFailed = "Failed"
  4781. // StageExecutionStatusSucceeded is a StageExecutionStatus enum value
  4782. StageExecutionStatusSucceeded = "Succeeded"
  4783. )
  4784. const (
  4785. // StageRetryModeFailedActions is a StageRetryMode enum value
  4786. StageRetryModeFailedActions = "FAILED_ACTIONS"
  4787. )
  4788. const (
  4789. // StageTransitionTypeInbound is a StageTransitionType enum value
  4790. StageTransitionTypeInbound = "Inbound"
  4791. // StageTransitionTypeOutbound is a StageTransitionType enum value
  4792. StageTransitionTypeOutbound = "Outbound"
  4793. )