api.go 149 KB

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