| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package codepipeline provides a client for AWS CodePipeline.
- package codepipeline
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opAcknowledgeJob = "AcknowledgeJob"
- // AcknowledgeJobRequest generates a "aws/request.Request" representing the
- // client's request for the AcknowledgeJob operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AcknowledgeJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AcknowledgeJobRequest method.
- // req, resp := client.AcknowledgeJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) {
- op := &request.Operation{
- Name: opAcknowledgeJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcknowledgeJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AcknowledgeJobOutput{}
- req.Data = output
- return
- }
- // Returns information about a specified job and whether that job has been received
- // by the job worker. Only used for custom actions.
- func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
- req, out := c.AcknowledgeJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
- // AcknowledgeThirdPartyJobRequest generates a "aws/request.Request" representing the
- // client's request for the AcknowledgeThirdPartyJob operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AcknowledgeThirdPartyJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AcknowledgeThirdPartyJobRequest method.
- // req, resp := client.AcknowledgeThirdPartyJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) {
- op := &request.Operation{
- Name: opAcknowledgeThirdPartyJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcknowledgeThirdPartyJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AcknowledgeThirdPartyJobOutput{}
- req.Data = output
- return
- }
- // Confirms a job worker has received the specified job. Only used for partner
- // actions.
- func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
- req, out := c.AcknowledgeThirdPartyJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateCustomActionType = "CreateCustomActionType"
- // CreateCustomActionTypeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCustomActionType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateCustomActionType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateCustomActionTypeRequest method.
- // req, resp := client.CreateCustomActionTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) {
- op := &request.Operation{
- Name: opCreateCustomActionType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCustomActionTypeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateCustomActionTypeOutput{}
- req.Data = output
- return
- }
- // Creates a new custom action that can be used in all pipelines associated
- // with the AWS account. Only used for custom actions.
- func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
- req, out := c.CreateCustomActionTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreatePipeline = "CreatePipeline"
- // CreatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreatePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreatePipelineRequest method.
- // req, resp := client.CreatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
- op := &request.Operation{
- Name: opCreatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreatePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreatePipelineOutput{}
- req.Data = output
- return
- }
- // Creates a pipeline.
- func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteCustomActionType = "DeleteCustomActionType"
- // DeleteCustomActionTypeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCustomActionType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteCustomActionType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteCustomActionTypeRequest method.
- // req, resp := client.DeleteCustomActionTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) {
- op := &request.Operation{
- Name: opDeleteCustomActionType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteCustomActionTypeInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteCustomActionTypeOutput{}
- req.Data = output
- return
- }
- // Marks a custom action as deleted. PollForJobs for the custom action will
- // fail after the action is marked for deletion. Only used for custom actions.
- //
- // You cannot recreate a custom action after it has been deleted unless you
- // increase the version number of the action.
- func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
- req, out := c.DeleteCustomActionTypeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeletePipeline = "DeletePipeline"
- // DeletePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeletePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeletePipelineRequest method.
- // req, resp := client.DeletePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
- op := &request.Operation{
- Name: opDeletePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeletePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeletePipelineOutput{}
- req.Data = output
- return
- }
- // Deletes the specified pipeline.
- func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisableStageTransition = "DisableStageTransition"
- // DisableStageTransitionRequest generates a "aws/request.Request" representing the
- // client's request for the DisableStageTransition operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DisableStageTransition method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DisableStageTransitionRequest method.
- // req, resp := client.DisableStageTransitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) {
- op := &request.Operation{
- Name: opDisableStageTransition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableStageTransitionInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DisableStageTransitionOutput{}
- req.Data = output
- return
- }
- // Prevents artifacts in a pipeline from transitioning to the next stage in
- // the pipeline.
- func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
- req, out := c.DisableStageTransitionRequest(input)
- err := req.Send()
- return out, err
- }
- const opEnableStageTransition = "EnableStageTransition"
- // EnableStageTransitionRequest generates a "aws/request.Request" representing the
- // client's request for the EnableStageTransition operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the EnableStageTransition method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the EnableStageTransitionRequest method.
- // req, resp := client.EnableStageTransitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) {
- op := &request.Operation{
- Name: opEnableStageTransition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableStageTransitionInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &EnableStageTransitionOutput{}
- req.Data = output
- return
- }
- // Enables artifacts in a pipeline to transition to a stage in a pipeline.
- func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
- req, out := c.EnableStageTransitionRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetJobDetails = "GetJobDetails"
- // GetJobDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetJobDetails operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetJobDetails method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetJobDetailsRequest method.
- // req, resp := client.GetJobDetailsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) {
- op := &request.Operation{
- Name: opGetJobDetails,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetJobDetailsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetJobDetailsOutput{}
- req.Data = output
- return
- }
- // Returns information about a job. Only used for custom actions.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials
- // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
- // action requires access to that Amazon S3 bucket for input or output artifacts.
- // Additionally, this API returns any secret values defined for the action.
- func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
- req, out := c.GetJobDetailsRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPipeline = "GetPipeline"
- // GetPipelineRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetPipelineRequest method.
- // req, resp := client.GetPipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) {
- op := &request.Operation{
- Name: opGetPipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPipelineOutput{}
- req.Data = output
- return
- }
- // Returns the metadata, structure, stages, and actions of a pipeline. Can be
- // used to return the entire structure of a pipeline in JSON format, which can
- // then be modified and used to update the pipeline structure with UpdatePipeline.
- func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
- req, out := c.GetPipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetPipelineState = "GetPipelineState"
- // GetPipelineStateRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipelineState operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetPipelineState method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetPipelineStateRequest method.
- // req, resp := client.GetPipelineStateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) {
- op := &request.Operation{
- Name: opGetPipelineState,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineStateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetPipelineStateOutput{}
- req.Data = output
- return
- }
- // Returns information about the state of a pipeline, including the stages and
- // actions.
- func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
- req, out := c.GetPipelineStateRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
- // GetThirdPartyJobDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetThirdPartyJobDetails operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetThirdPartyJobDetails method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetThirdPartyJobDetailsRequest method.
- // req, resp := client.GetThirdPartyJobDetailsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) {
- op := &request.Operation{
- Name: opGetThirdPartyJobDetails,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetThirdPartyJobDetailsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetThirdPartyJobDetailsOutput{}
- req.Data = output
- return
- }
- // Requests the details of a job for a third party action. Only used for partner
- // actions.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials
- // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
- // action requires access to that Amazon S3 bucket for input or output artifacts.
- // Additionally, this API returns any secret values defined for the action.
- func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
- req, out := c.GetThirdPartyJobDetailsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListActionTypes = "ListActionTypes"
- // ListActionTypesRequest generates a "aws/request.Request" representing the
- // client's request for the ListActionTypes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListActionTypes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListActionTypesRequest method.
- // req, resp := client.ListActionTypesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) {
- op := &request.Operation{
- Name: opListActionTypes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListActionTypesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListActionTypesOutput{}
- req.Data = output
- return
- }
- // Gets a summary of all AWS CodePipeline action types associated with your
- // account.
- func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
- req, out := c.ListActionTypesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListPipelines = "ListPipelines"
- // ListPipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelines operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPipelines method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListPipelinesRequest method.
- // req, resp := client.ListPipelinesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
- op := &request.Operation{
- Name: opListPipelines,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListPipelinesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPipelinesOutput{}
- req.Data = output
- return
- }
- // Gets a summary of all of the pipelines associated with your account.
- func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- err := req.Send()
- return out, err
- }
- const opPollForJobs = "PollForJobs"
- // PollForJobsRequest generates a "aws/request.Request" representing the
- // client's request for the PollForJobs operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PollForJobs method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PollForJobsRequest method.
- // req, resp := client.PollForJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) {
- op := &request.Operation{
- Name: opPollForJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForJobsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PollForJobsOutput{}
- req.Data = output
- return
- }
- // Returns information about any jobs for AWS CodePipeline to act upon.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials
- // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
- // action requires access to that Amazon S3 bucket for input or output artifacts.
- // Additionally, this API returns any secret values defined for the action.
- func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
- req, out := c.PollForJobsRequest(input)
- err := req.Send()
- return out, err
- }
- const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
- // PollForThirdPartyJobsRequest generates a "aws/request.Request" representing the
- // client's request for the PollForThirdPartyJobs operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PollForThirdPartyJobs method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PollForThirdPartyJobsRequest method.
- // req, resp := client.PollForThirdPartyJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) {
- op := &request.Operation{
- Name: opPollForThirdPartyJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForThirdPartyJobsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PollForThirdPartyJobsOutput{}
- req.Data = output
- return
- }
- // Determines whether there are any third party jobs for a job worker to act
- // on. Only used for partner actions.
- //
- // When this API is called, AWS CodePipeline returns temporary credentials
- // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
- // action requires access to that Amazon S3 bucket for input or output artifacts.
- func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
- req, out := c.PollForThirdPartyJobsRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutActionRevision = "PutActionRevision"
- // PutActionRevisionRequest generates a "aws/request.Request" representing the
- // client's request for the PutActionRevision operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutActionRevision method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutActionRevisionRequest method.
- // req, resp := client.PutActionRevisionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) {
- op := &request.Operation{
- Name: opPutActionRevision,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutActionRevisionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PutActionRevisionOutput{}
- req.Data = output
- return
- }
- // Provides information to AWS CodePipeline about new revisions to a source.
- func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
- req, out := c.PutActionRevisionRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutApprovalResult = "PutApprovalResult"
- // PutApprovalResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutApprovalResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutApprovalResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutApprovalResultRequest method.
- // req, resp := client.PutApprovalResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) (req *request.Request, output *PutApprovalResultOutput) {
- op := &request.Operation{
- Name: opPutApprovalResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutApprovalResultInput{}
- }
- req = c.newRequest(op, input, output)
- output = &PutApprovalResultOutput{}
- req.Data = output
- return
- }
- // Provides the response to a manual approval request to AWS CodePipeline. Valid
- // responses include Approved and Rejected.
- func (c *CodePipeline) PutApprovalResult(input *PutApprovalResultInput) (*PutApprovalResultOutput, error) {
- req, out := c.PutApprovalResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutJobFailureResult = "PutJobFailureResult"
- // PutJobFailureResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutJobFailureResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutJobFailureResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutJobFailureResultRequest method.
- // req, resp := client.PutJobFailureResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) {
- op := &request.Operation{
- Name: opPutJobFailureResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutJobFailureResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutJobFailureResultOutput{}
- req.Data = output
- return
- }
- // Represents the failure of a job as returned to the pipeline by a job worker.
- // Only used for custom actions.
- func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
- req, out := c.PutJobFailureResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutJobSuccessResult = "PutJobSuccessResult"
- // PutJobSuccessResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutJobSuccessResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutJobSuccessResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutJobSuccessResultRequest method.
- // req, resp := client.PutJobSuccessResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) {
- op := &request.Operation{
- Name: opPutJobSuccessResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutJobSuccessResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutJobSuccessResultOutput{}
- req.Data = output
- return
- }
- // Represents the success of a job as returned to the pipeline by a job worker.
- // Only used for custom actions.
- func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
- req, out := c.PutJobSuccessResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
- // PutThirdPartyJobFailureResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutThirdPartyJobFailureResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutThirdPartyJobFailureResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutThirdPartyJobFailureResultRequest method.
- // req, resp := client.PutThirdPartyJobFailureResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) {
- op := &request.Operation{
- Name: opPutThirdPartyJobFailureResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutThirdPartyJobFailureResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutThirdPartyJobFailureResultOutput{}
- req.Data = output
- return
- }
- // Represents the failure of a third party job as returned to the pipeline by
- // a job worker. Only used for partner actions.
- func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
- req, out := c.PutThirdPartyJobFailureResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
- // PutThirdPartyJobSuccessResultRequest generates a "aws/request.Request" representing the
- // client's request for the PutThirdPartyJobSuccessResult operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the PutThirdPartyJobSuccessResult method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the PutThirdPartyJobSuccessResultRequest method.
- // req, resp := client.PutThirdPartyJobSuccessResultRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) {
- op := &request.Operation{
- Name: opPutThirdPartyJobSuccessResult,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutThirdPartyJobSuccessResultInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &PutThirdPartyJobSuccessResultOutput{}
- req.Data = output
- return
- }
- // Represents the success of a third party job as returned to the pipeline by
- // a job worker. Only used for partner actions.
- func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
- req, out := c.PutThirdPartyJobSuccessResultRequest(input)
- err := req.Send()
- return out, err
- }
- const opRetryStageExecution = "RetryStageExecution"
- // RetryStageExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the RetryStageExecution operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RetryStageExecution method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RetryStageExecutionRequest method.
- // req, resp := client.RetryStageExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInput) (req *request.Request, output *RetryStageExecutionOutput) {
- op := &request.Operation{
- Name: opRetryStageExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RetryStageExecutionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RetryStageExecutionOutput{}
- req.Data = output
- return
- }
- // Resumes the pipeline execution by retrying the last failed actions in a stage.
- func (c *CodePipeline) RetryStageExecution(input *RetryStageExecutionInput) (*RetryStageExecutionOutput, error) {
- req, out := c.RetryStageExecutionRequest(input)
- err := req.Send()
- return out, err
- }
- const opStartPipelineExecution = "StartPipelineExecution"
- // StartPipelineExecutionRequest generates a "aws/request.Request" representing the
- // client's request for the StartPipelineExecution operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the StartPipelineExecution method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the StartPipelineExecutionRequest method.
- // req, resp := client.StartPipelineExecutionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) {
- op := &request.Operation{
- Name: opStartPipelineExecution,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartPipelineExecutionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &StartPipelineExecutionOutput{}
- req.Data = output
- return
- }
- // Starts the specified pipeline. Specifically, it begins processing the latest
- // commit to the source location specified as part of the pipeline.
- func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
- req, out := c.StartPipelineExecutionRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdatePipeline = "UpdatePipeline"
- // UpdatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdatePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdatePipelineRequest method.
- // req, resp := client.UpdatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
- op := &request.Operation{
- Name: opUpdatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdatePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdatePipelineOutput{}
- req.Data = output
- return
- }
- // Updates a specified pipeline with edits or changes to its structure. Use
- // a JSON file with the pipeline structure in conjunction with UpdatePipeline
- // to provide the full structure of the pipeline. Updating the pipeline increases
- // the version number of the pipeline by 1.
- func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- // Represents an AWS session credentials object. These credentials are temporary
- // credentials that are issued by AWS Secure Token Service (STS). They can be
- // used to access input and output artifacts in the Amazon S3 bucket used to
- // store artifact for the pipeline in AWS CodePipeline.
- type AWSSessionCredentials struct {
- _ struct{} `type:"structure"`
- // The access key for the session.
- AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true"`
- // The secret access key for the session.
- SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
- // The token for the session.
- SessionToken *string `locationName:"sessionToken" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AWSSessionCredentials) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AWSSessionCredentials) GoString() string {
- return s.String()
- }
- // Represents the input of an acknowledge job action.
- type AcknowledgeJobInput struct {
- _ struct{} `type:"structure"`
- // The unique system-generated ID of the job for which you want to confirm receipt.
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. This number must be returned
- // in the response.
- Nonce *string `locationName:"nonce" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AcknowledgeJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcknowledgeJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcknowledgeJobInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.Nonce == nil {
- invalidParams.Add(request.NewErrParamRequired("Nonce"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of an acknowledge job action.
- type AcknowledgeJobOutput struct {
- _ struct{} `type:"structure"`
- // Whether the job worker has received the specified job.
- Status *string `locationName:"status" type:"string" enum:"JobStatus"`
- }
- // String returns the string representation
- func (s AcknowledgeJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeJobOutput) GoString() string {
- return s.String()
- }
- // Represents the input of an acknowledge third party job action.
- type AcknowledgeThirdPartyJobInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
- // The unique system-generated ID of the job.
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. This number must be returned
- // in the response.
- Nonce *string `locationName:"nonce" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AcknowledgeThirdPartyJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeThirdPartyJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcknowledgeThirdPartyJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcknowledgeThirdPartyJobInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.Nonce == nil {
- invalidParams.Add(request.NewErrParamRequired("Nonce"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of an acknowledge third party job action.
- type AcknowledgeThirdPartyJobOutput struct {
- _ struct{} `type:"structure"`
- // The status information for the third party job, if any.
- Status *string `locationName:"status" type:"string" enum:"JobStatus"`
- }
- // String returns the string representation
- func (s AcknowledgeThirdPartyJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcknowledgeThirdPartyJobOutput) GoString() string {
- return s.String()
- }
- // Represents information about an action configuration.
- type ActionConfiguration struct {
- _ struct{} `type:"structure"`
- // The configuration data for the action.
- Configuration map[string]*string `locationName:"configuration" type:"map"`
- }
- // String returns the string representation
- func (s ActionConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionConfiguration) GoString() string {
- return s.String()
- }
- // Represents information about an action configuration property.
- type ActionConfigurationProperty struct {
- _ struct{} `type:"structure"`
- // The description of the action configuration property that will be displayed
- // to users.
- Description *string `locationName:"description" min:"1" type:"string"`
- // Whether the configuration property is a key.
- Key *bool `locationName:"key" type:"boolean" required:"true"`
- // The name of the action configuration property.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // Indicates that the proprety will be used in conjunction with PollForJobs.
- // When creating a custom action, an action can have up to one queryable property.
- // If it has one, that property must be both required and not secret.
- //
- // If you create a pipeline with a custom action type, and that custom action
- // contains a queryable property, the value for that configuration property
- // is subject to additional restrictions. The value must be less than or equal
- // to twenty (20) characters. The value can contain only alphanumeric characters,
- // underscores, and hyphens.
- Queryable *bool `locationName:"queryable" type:"boolean"`
- // Whether the configuration property is a required value.
- Required *bool `locationName:"required" type:"boolean" required:"true"`
- // Whether the configuration property is secret. Secrets are hidden from all
- // calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
- // PollForThirdPartyJobs.
- //
- // When updating a pipeline, passing * * * * * without changing any other values
- // of the action will preserve the prior value of the secret.
- Secret *bool `locationName:"secret" type:"boolean" required:"true"`
- // The type of the configuration property.
- Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"`
- }
- // String returns the string representation
- func (s ActionConfigurationProperty) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionConfigurationProperty) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionConfigurationProperty) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionConfigurationProperty"}
- if s.Description != nil && len(*s.Description) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Description", 1))
- }
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Required == nil {
- invalidParams.Add(request.NewErrParamRequired("Required"))
- }
- if s.Secret == nil {
- invalidParams.Add(request.NewErrParamRequired("Secret"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the context of an action within the stage of a pipeline to a job
- // worker.
- type ActionContext struct {
- _ struct{} `type:"structure"`
- // The name of the action within the context of a job.
- Name *string `locationName:"name" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ActionContext) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionContext) GoString() string {
- return s.String()
- }
- // Represents information about an action declaration.
- type ActionDeclaration struct {
- _ struct{} `type:"structure"`
- // The configuration information for the action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
- // The action declaration's configuration.
- Configuration map[string]*string `locationName:"configuration" type:"map"`
- // The name or ID of the artifact consumed by the action, such as a test or
- // build artifact.
- InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"`
- // The action declaration's name.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The name or ID of the result of the action declaration, such as a test or
- // build artifact.
- OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"`
- // The ARN of the IAM service role that will perform the declared action. This
- // is assumed through the roleArn for the pipeline.
- RoleArn *string `locationName:"roleArn" type:"string"`
- // The order in which actions are run.
- RunOrder *int64 `locationName:"runOrder" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ActionDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionDeclaration"}
- if s.ActionTypeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.RunOrder != nil && *s.RunOrder < 1 {
- invalidParams.Add(request.NewErrParamMinValue("RunOrder", 1))
- }
- if s.ActionTypeId != nil {
- if err := s.ActionTypeId.Validate(); err != nil {
- invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
- }
- }
- if s.InputArtifacts != nil {
- for i, v := range s.InputArtifacts {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputArtifacts", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OutputArtifacts != nil {
- for i, v := range s.OutputArtifacts {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputArtifacts", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about the run of an action.
- type ActionExecution struct {
- _ struct{} `type:"structure"`
- // The details of an error returned by a URL external to AWS.
- ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"`
- // The external ID of the run of the action.
- ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
- // The URL of a resource external to AWS that will be used when running the
- // action, for example an external repository URL.
- ExternalExecutionUrl *string `locationName:"externalExecutionUrl" min:"1" type:"string"`
- // The last status change of the action.
- LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"unix"`
- // The ARN of the user who last changed the pipeline.
- LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
- // A percentage of completeness of the action as it runs.
- PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
- // The status of the action, or for a completed action, the last status of the
- // action.
- Status *string `locationName:"status" type:"string" enum:"ActionExecutionStatus"`
- // A summary of the run of the action.
- Summary *string `locationName:"summary" type:"string"`
- // The system-generated token used to identify a unique approval request. The
- // token for each open approval request can be obtained using the GetPipelineState
- // command and is used to validate that the approval request corresponding to
- // this token is still valid.
- Token *string `locationName:"token" type:"string"`
- }
- // String returns the string representation
- func (s ActionExecution) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionExecution) GoString() string {
- return s.String()
- }
- // Represents information about the version (or revision) of an action.
- type ActionRevision struct {
- _ struct{} `type:"structure"`
- // The date and time when the most recent version of the action was created,
- // in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix" required:"true"`
- // The unique identifier of the change that set the state to this revision,
- // for example a deployment ID or timestamp.
- RevisionChangeId *string `locationName:"revisionChangeId" min:"1" type:"string" required:"true"`
- // The system-generated unique ID that identifies the revision number of the
- // action.
- RevisionId *string `locationName:"revisionId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ActionRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionRevision) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionRevision) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionRevision"}
- if s.Created == nil {
- invalidParams.Add(request.NewErrParamRequired("Created"))
- }
- if s.RevisionChangeId == nil {
- invalidParams.Add(request.NewErrParamRequired("RevisionChangeId"))
- }
- if s.RevisionChangeId != nil && len(*s.RevisionChangeId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionChangeId", 1))
- }
- if s.RevisionId == nil {
- invalidParams.Add(request.NewErrParamRequired("RevisionId"))
- }
- if s.RevisionId != nil && len(*s.RevisionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about the state of an action.
- type ActionState struct {
- _ struct{} `type:"structure"`
- // The name of the action.
- ActionName *string `locationName:"actionName" min:"1" type:"string"`
- // Represents information about the version (or revision) of an action.
- CurrentRevision *ActionRevision `locationName:"currentRevision" type:"structure"`
- // A URL link for more information about the state of the action, such as a
- // deployment group details page.
- EntityUrl *string `locationName:"entityUrl" min:"1" type:"string"`
- // Represents information about the run of an action.
- LatestExecution *ActionExecution `locationName:"latestExecution" type:"structure"`
- // A URL link for more information about the revision, such as a commit details
- // page.
- RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ActionState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionState) GoString() string {
- return s.String()
- }
- // Returns information about the details of an action type.
- type ActionType struct {
- _ struct{} `type:"structure"`
- // The configuration properties for the action type.
- ActionConfigurationProperties []*ActionConfigurationProperty `locationName:"actionConfigurationProperties" type:"list"`
- // Represents information about an action type.
- Id *ActionTypeId `locationName:"id" type:"structure" required:"true"`
- // The details of the input artifact for the action, such as its commit ID.
- InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
- // The details of the output artifact of the action, such as its commit ID.
- OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
- // The settings for the action type.
- Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
- }
- // String returns the string representation
- func (s ActionType) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionType) GoString() string {
- return s.String()
- }
- // Represents information about an action type.
- type ActionTypeId struct {
- _ struct{} `type:"structure"`
- // A category defines what kind of action can be taken in the stage, and constrains
- // the provider type for the action. Valid categories are limited to one of
- // the values below.
- Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
- // The creator of the action being called.
- Owner *string `locationName:"owner" type:"string" required:"true" enum:"ActionOwner"`
- // The provider of the service being called by the action. Valid providers are
- // determined by the action category. For example, an action in the Deploy category
- // type might have a provider of AWS CodeDeploy, which would be specified as
- // CodeDeploy.
- Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
- // A string that identifies the action type.
- Version *string `locationName:"version" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ActionTypeId) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionTypeId) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionTypeId) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionTypeId"}
- if s.Category == nil {
- invalidParams.Add(request.NewErrParamRequired("Category"))
- }
- if s.Owner == nil {
- invalidParams.Add(request.NewErrParamRequired("Owner"))
- }
- if s.Provider == nil {
- invalidParams.Add(request.NewErrParamRequired("Provider"))
- }
- if s.Provider != nil && len(*s.Provider) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && len(*s.Version) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Returns information about the settings for an action type.
- type ActionTypeSettings struct {
- _ struct{} `type:"structure"`
- // The URL returned to the AWS CodePipeline console that provides a deep link
- // to the resources of the external system, such as the configuration page for
- // an AWS CodeDeploy deployment group. This link is provided as part of the
- // action display within the pipeline.
- EntityUrlTemplate *string `locationName:"entityUrlTemplate" min:"1" type:"string"`
- // The URL returned to the AWS CodePipeline console that contains a link to
- // the top-level landing page for the external system, such as console page
- // for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS
- // CodePipeline console and provides a link to the execution entity of the external
- // action.
- ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" min:"1" type:"string"`
- // The URL returned to the AWS CodePipeline console that contains a link to
- // the page where customers can update or change the configuration of the external
- // action.
- RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" min:"1" type:"string"`
- // The URL of a sign-up page where users can sign up for an external service
- // and perform initial configuration of the action provided by that service.
- ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ActionTypeSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActionTypeSettings) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActionTypeSettings) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActionTypeSettings"}
- if s.EntityUrlTemplate != nil && len(*s.EntityUrlTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("EntityUrlTemplate", 1))
- }
- if s.ExecutionUrlTemplate != nil && len(*s.ExecutionUrlTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExecutionUrlTemplate", 1))
- }
- if s.RevisionUrlTemplate != nil && len(*s.RevisionUrlTemplate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RevisionUrlTemplate", 1))
- }
- if s.ThirdPartyConfigurationUrl != nil && len(*s.ThirdPartyConfigurationUrl) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ThirdPartyConfigurationUrl", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about the result of an approval request.
- type ApprovalResult struct {
- _ struct{} `type:"structure"`
- // The response submitted by a reviewer assigned to an approval action request.
- Status *string `locationName:"status" type:"string" required:"true" enum:"ApprovalStatus"`
- // The summary of the current status of the approval request.
- Summary *string `locationName:"summary" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ApprovalResult) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApprovalResult) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ApprovalResult) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ApprovalResult"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
- if s.Summary == nil {
- invalidParams.Add(request.NewErrParamRequired("Summary"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about an artifact that will be worked upon by actions
- // in the pipeline.
- type Artifact struct {
- _ struct{} `type:"structure"`
- // The location of an artifact.
- Location *ArtifactLocation `locationName:"location" type:"structure"`
- // The artifact's name.
- Name *string `locationName:"name" min:"1" type:"string"`
- // The artifact's revision ID. Depending on the type of object, this could be
- // a commit ID (GitHub) or a revision ID (Amazon S3).
- Revision *string `locationName:"revision" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Artifact) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Artifact) GoString() string {
- return s.String()
- }
- // Returns information about the details of an artifact.
- type ArtifactDetails struct {
- _ struct{} `type:"structure"`
- // The maximum number of artifacts allowed for the action type.
- MaximumCount *int64 `locationName:"maximumCount" type:"integer" required:"true"`
- // The minimum number of artifacts allowed for the action type.
- MinimumCount *int64 `locationName:"minimumCount" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ArtifactDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactDetails) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ArtifactDetails) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ArtifactDetails"}
- if s.MaximumCount == nil {
- invalidParams.Add(request.NewErrParamRequired("MaximumCount"))
- }
- if s.MinimumCount == nil {
- invalidParams.Add(request.NewErrParamRequired("MinimumCount"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about the location of an artifact.
- type ArtifactLocation struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket that contains the artifact.
- S3Location *S3ArtifactLocation `locationName:"s3Location" type:"structure"`
- // The type of artifact in the location.
- Type *string `locationName:"type" type:"string" enum:"ArtifactLocationType"`
- }
- // String returns the string representation
- func (s ArtifactLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactLocation) GoString() string {
- return s.String()
- }
- // The Amazon S3 location where artifacts are stored for the pipeline. If this
- // Amazon S3 bucket is created manually, it must meet the requirements for AWS
- // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
- type ArtifactStore struct {
- _ struct{} `type:"structure"`
- // The encryption key used to encrypt the data in the artifact store, such as
- // an AWS Key Management Service (AWS KMS) key. If this is undefined, the default
- // key for Amazon S3 is used.
- EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
- // The location for storing the artifacts for a pipeline, such as an S3 bucket
- // or folder.
- Location *string `locationName:"location" min:"3" type:"string" required:"true"`
- // The type of the artifact store, such as S3.
- Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactStoreType"`
- }
- // String returns the string representation
- func (s ArtifactStore) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ArtifactStore) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ArtifactStore) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ArtifactStore"}
- if s.Location == nil {
- invalidParams.Add(request.NewErrParamRequired("Location"))
- }
- if s.Location != nil && len(*s.Location) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("Location", 3))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.EncryptionKey != nil {
- if err := s.EncryptionKey.Validate(); err != nil {
- invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Reserved for future use.
- type BlockerDeclaration struct {
- _ struct{} `type:"structure"`
- // Reserved for future use.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // Reserved for future use.
- Type *string `locationName:"type" type:"string" required:"true" enum:"BlockerType"`
- }
- // String returns the string representation
- func (s BlockerDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BlockerDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BlockerDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BlockerDeclaration"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the input of a create custom action operation.
- type CreateCustomActionTypeInput struct {
- _ struct{} `type:"structure"`
- // The category of the custom action, such as a source action or a build action.
- //
- // Although Source is listed as a valid value, it is not currently functional.
- // This value is reserved for future use.
- Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
- // The configuration properties for the custom action.
- //
- // You can refer to a name in the configuration properties of the custom action
- // within the URL templates by following the format of {Config:name}, as long
- // as the configuration property is both required and not secret. For more information,
- // see Create a Custom Action for a Pipeline (http://docs.aws.amazon.com/codepipeline/latest/userguide/how-to-create-custom-action.html).
- ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"`
- // Returns information about the details of an artifact.
- InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
- // Returns information about the details of an artifact.
- OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
- // The provider of the service used in the custom action, such as AWS CodeDeploy.
- Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
- // Returns information about the settings for an action type.
- Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
- // The version number of the custom action.
- Version *string `locationName:"version" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateCustomActionTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCustomActionTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCustomActionTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCustomActionTypeInput"}
- if s.Category == nil {
- invalidParams.Add(request.NewErrParamRequired("Category"))
- }
- if s.InputArtifactDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("InputArtifactDetails"))
- }
- if s.OutputArtifactDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputArtifactDetails"))
- }
- if s.Provider == nil {
- invalidParams.Add(request.NewErrParamRequired("Provider"))
- }
- if s.Provider != nil && len(*s.Provider) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && len(*s.Version) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Version", 1))
- }
- if s.ConfigurationProperties != nil {
- for i, v := range s.ConfigurationProperties {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ConfigurationProperties", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.InputArtifactDetails != nil {
- if err := s.InputArtifactDetails.Validate(); err != nil {
- invalidParams.AddNested("InputArtifactDetails", err.(request.ErrInvalidParams))
- }
- }
- if s.OutputArtifactDetails != nil {
- if err := s.OutputArtifactDetails.Validate(); err != nil {
- invalidParams.AddNested("OutputArtifactDetails", err.(request.ErrInvalidParams))
- }
- }
- if s.Settings != nil {
- if err := s.Settings.Validate(); err != nil {
- invalidParams.AddNested("Settings", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a create custom action operation.
- type CreateCustomActionTypeOutput struct {
- _ struct{} `type:"structure"`
- // Returns information about the details of an action type.
- ActionType *ActionType `locationName:"actionType" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateCustomActionTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCustomActionTypeOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a create pipeline action.
- type CreatePipelineInput struct {
- _ struct{} `type:"structure"`
- // Represents the structure of actions and stages to be performed in the pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
- if s.Pipeline == nil {
- invalidParams.Add(request.NewErrParamRequired("Pipeline"))
- }
- if s.Pipeline != nil {
- if err := s.Pipeline.Validate(); err != nil {
- invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a create pipeline action.
- type CreatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // Represents the structure of actions and stages to be performed in the pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s CreatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineOutput) GoString() string {
- return s.String()
- }
- // Represents information about a current revision.
- type CurrentRevision struct {
- _ struct{} `type:"structure"`
- // The change identifier for the current revision.
- ChangeIdentifier *string `locationName:"changeIdentifier" min:"1" type:"string" required:"true"`
- // The revision ID of the current version of an artifact.
- Revision *string `locationName:"revision" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CurrentRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CurrentRevision) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CurrentRevision) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CurrentRevision"}
- if s.ChangeIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ChangeIdentifier"))
- }
- if s.ChangeIdentifier != nil && len(*s.ChangeIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ChangeIdentifier", 1))
- }
- if s.Revision == nil {
- invalidParams.Add(request.NewErrParamRequired("Revision"))
- }
- if s.Revision != nil && len(*s.Revision) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Revision", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the input of a delete custom action operation. The custom action
- // will be marked as deleted.
- type DeleteCustomActionTypeInput struct {
- _ struct{} `type:"structure"`
- // The category of the custom action that you want to delete, such as source
- // or deploy.
- Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
- // The provider of the service used in the custom action, such as AWS CodeDeploy.
- Provider *string `locationName:"provider" min:"1" type:"string" required:"true"`
- // The version of the custom action to delete.
- Version *string `locationName:"version" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteCustomActionTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCustomActionTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteCustomActionTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteCustomActionTypeInput"}
- if s.Category == nil {
- invalidParams.Add(request.NewErrParamRequired("Category"))
- }
- if s.Provider == nil {
- invalidParams.Add(request.NewErrParamRequired("Provider"))
- }
- if s.Provider != nil && len(*s.Provider) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Provider", 1))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && len(*s.Version) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteCustomActionTypeOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteCustomActionTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteCustomActionTypeOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a delete pipeline action.
- type DeletePipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline to be deleted.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeletePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a disable stage transition input action.
- type DisableStageTransitionInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline in which you want to disable the flow of artifacts
- // from one stage to another.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The reason given to the user why a stage is disabled, such as waiting for
- // manual approval or manual tests. This message is displayed in the pipeline
- // console UI.
- Reason *string `locationName:"reason" min:"1" type:"string" required:"true"`
- // The name of the stage where you want to disable the inbound or outbound transition
- // of artifacts.
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- // Specifies whether artifacts will be prevented from transitioning into the
- // stage and being processed by the actions in that stage (inbound), or prevented
- // from transitioning from the stage after they have been processed by the actions
- // in that stage (outbound).
- TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
- }
- // String returns the string representation
- func (s DisableStageTransitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableStageTransitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableStageTransitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableStageTransitionInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.Reason == nil {
- invalidParams.Add(request.NewErrParamRequired("Reason"))
- }
- if s.Reason != nil && len(*s.Reason) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Reason", 1))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.TransitionType == nil {
- invalidParams.Add(request.NewErrParamRequired("TransitionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DisableStageTransitionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisableStageTransitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableStageTransitionOutput) GoString() string {
- return s.String()
- }
- // Represents the input of an enable stage transition action.
- type EnableStageTransitionInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline in which you want to enable the flow of artifacts
- // from one stage to another.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The name of the stage where you want to enable the transition of artifacts,
- // either into the stage (inbound) or from that stage to the next stage (outbound).
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- // Specifies whether artifacts will be allowed to enter the stage and be processed
- // by the actions in that stage (inbound) or whether already-processed artifacts
- // will be allowed to transition to the next stage (outbound).
- TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
- }
- // String returns the string representation
- func (s EnableStageTransitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableStageTransitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableStageTransitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableStageTransitionInput"}
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.TransitionType == nil {
- invalidParams.Add(request.NewErrParamRequired("TransitionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type EnableStageTransitionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s EnableStageTransitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableStageTransitionOutput) GoString() string {
- return s.String()
- }
- // Represents information about the key used to encrypt data in the artifact
- // store, such as an AWS Key Management Service (AWS KMS) key.
- type EncryptionKey struct {
- _ struct{} `type:"structure"`
- // The ID used to identify the key. For an AWS KMS key, this is the key ID or
- // key ARN.
- Id *string `locationName:"id" min:"1" type:"string" required:"true"`
- // The type of encryption key, such as an AWS Key Management Service (AWS KMS)
- // key. When creating or updating a pipeline, the value must be set to 'KMS'.
- Type *string `locationName:"type" type:"string" required:"true" enum:"EncryptionKeyType"`
- }
- // String returns the string representation
- func (s EncryptionKey) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EncryptionKey) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EncryptionKey) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EncryptionKey"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about an error in AWS CodePipeline.
- type ErrorDetails struct {
- _ struct{} `type:"structure"`
- // The system ID or error number code of the error.
- Code *string `locationName:"code" type:"string"`
- // The text of the error message.
- Message *string `locationName:"message" type:"string"`
- }
- // String returns the string representation
- func (s ErrorDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ErrorDetails) GoString() string {
- return s.String()
- }
- // The details of the actions taken and results produced on an artifact as it
- // passes through stages in the pipeline.
- type ExecutionDetails struct {
- _ struct{} `type:"structure"`
- // The system-generated unique ID of this action used to identify this job worker
- // in any external systems, such as AWS CodeDeploy.
- ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
- // The percentage of work completed on the action, represented on a scale of
- // zero to one hundred percent.
- PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
- // The summary of the current status of the actions.
- Summary *string `locationName:"summary" type:"string"`
- }
- // String returns the string representation
- func (s ExecutionDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExecutionDetails) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ExecutionDetails) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ExecutionDetails"}
- if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about failure details.
- type FailureDetails struct {
- _ struct{} `type:"structure"`
- // The external ID of the run of the action that failed.
- ExternalExecutionId *string `locationName:"externalExecutionId" min:"1" type:"string"`
- // The message about the failure.
- Message *string `locationName:"message" type:"string" required:"true"`
- // The type of the failure.
- Type *string `locationName:"type" type:"string" required:"true" enum:"FailureType"`
- }
- // String returns the string representation
- func (s FailureDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FailureDetails) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FailureDetails) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FailureDetails"}
- if s.ExternalExecutionId != nil && len(*s.ExternalExecutionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExternalExecutionId", 1))
- }
- if s.Message == nil {
- invalidParams.Add(request.NewErrParamRequired("Message"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the input of a get job details action.
- type GetJobDetailsInput struct {
- _ struct{} `type:"structure"`
- // The unique system-generated ID for the job.
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetJobDetailsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetJobDetailsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetJobDetailsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetJobDetailsInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get job details action.
- type GetJobDetailsOutput struct {
- _ struct{} `type:"structure"`
- // The details of the job.
- //
- // If AWSSessionCredentials is used, a long-running job can call GetJobDetails
- // again to obtain new credentials.
- JobDetails *JobDetails `locationName:"jobDetails" type:"structure"`
- }
- // String returns the string representation
- func (s GetJobDetailsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetJobDetailsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get pipeline action.
- type GetPipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline for which you want to get information. Pipeline
- // names must be unique under an Amazon Web Services (AWS) user account.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The version number of the pipeline. If you do not specify a version, defaults
- // to the most current version.
- Version *int64 `locationName:"version" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s GetPipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPipelineInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get pipeline action.
- type GetPipelineOutput struct {
- _ struct{} `type:"structure"`
- // Represents the structure of actions and stages to be performed in the pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s GetPipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get pipeline state action.
- type GetPipelineStateInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline about which you want to get information.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetPipelineStateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineStateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPipelineStateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPipelineStateInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get pipeline state action.
- type GetPipelineStateOutput struct {
- _ struct{} `type:"structure"`
- // The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
- // The name of the pipeline for which you want to get the state.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- // The version number of the pipeline.
- //
- // A newly-created pipeline is always assigned a version number of 1.
- PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"`
- // A list of the pipeline stage output information, including stage name, state,
- // most recent run details, whether the stage is disabled, and other data.
- StageStates []*StageState `locationName:"stageStates" type:"list"`
- // The date and time the pipeline was last updated, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
- }
- // String returns the string representation
- func (s GetPipelineStateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineStateOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get third party job details action.
- type GetThirdPartyJobDetailsInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
- // The unique system-generated ID used for identifying the job.
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetThirdPartyJobDetailsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetThirdPartyJobDetailsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetThirdPartyJobDetailsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetThirdPartyJobDetailsInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get third party job details action.
- type GetThirdPartyJobDetailsOutput struct {
- _ struct{} `type:"structure"`
- // The details of the job, including any protected values defined for the job.
- JobDetails *ThirdPartyJobDetails `locationName:"jobDetails" type:"structure"`
- }
- // String returns the string representation
- func (s GetThirdPartyJobDetailsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetThirdPartyJobDetailsOutput) GoString() string {
- return s.String()
- }
- // Represents information about an artifact to be worked on, such as a test
- // or build artifact.
- type InputArtifact struct {
- _ struct{} `type:"structure"`
- // The name of the artifact to be worked on, for example, "My App".
- //
- // The input artifact of an action must exactly match the output artifact declared
- // in a preceding action, but the input artifact does not have to be the next
- // action in strict sequence from the action that provided the output artifact.
- // Actions in parallel can declare different output artifacts, which are in
- // turn consumed by different following actions.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s InputArtifact) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputArtifact) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputArtifact) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputArtifact"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about a job.
- type Job struct {
- _ struct{} `type:"structure"`
- // The ID of the AWS account to use when performing the job.
- AccountId *string `locationName:"accountId" type:"string"`
- // Additional data about a job.
- Data *JobData `locationName:"data" type:"structure"`
- // The unique system-generated ID of the job.
- Id *string `locationName:"id" type:"string"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. This number must be returned
- // in the response.
- Nonce *string `locationName:"nonce" type:"string"`
- }
- // String returns the string representation
- func (s Job) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Job) GoString() string {
- return s.String()
- }
- // Represents additional information about a job required for a job worker to
- // complete the job.
- type JobData struct {
- _ struct{} `type:"structure"`
- // Represents information about an action configuration.
- ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
- // Represents information about an action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
- // Represents an AWS session credentials object. These credentials are temporary
- // credentials that are issued by AWS Secure Token Service (STS). They can be
- // used to access input and output artifacts in the Amazon S3 bucket used to
- // store artifact for the pipeline in AWS CodePipeline.
- ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"`
- // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
- // job requires in order to continue the job asynchronously.
- ContinuationToken *string `locationName:"continuationToken" type:"string"`
- // Represents information about the key used to encrypt data in the artifact
- // store, such as an AWS Key Management Service (AWS KMS) key.
- EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
- // The artifact supplied to the job.
- InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
- // The output of the job.
- OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
- // Represents information about a pipeline to a job worker.
- PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
- }
- // String returns the string representation
- func (s JobData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobData) GoString() string {
- return s.String()
- }
- // Represents information about the details of a job.
- type JobDetails struct {
- _ struct{} `type:"structure"`
- // The AWS account ID associated with the job.
- AccountId *string `locationName:"accountId" type:"string"`
- // Represents additional information about a job required for a job worker to
- // complete the job.
- Data *JobData `locationName:"data" type:"structure"`
- // The unique system-generated ID of the job.
- Id *string `locationName:"id" type:"string"`
- }
- // String returns the string representation
- func (s JobDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobDetails) GoString() string {
- return s.String()
- }
- // Represents the input of a list action types action.
- type ListActionTypesInput struct {
- _ struct{} `type:"structure"`
- // Filters the list of action types to those created by a specified entity.
- ActionOwnerFilter *string `locationName:"actionOwnerFilter" type:"string" enum:"ActionOwner"`
- // An identifier that was returned from the previous list action types call,
- // which can be used to return the next set of action types in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListActionTypesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListActionTypesInput) GoString() string {
- return s.String()
- }
- // Represents the output of a list action types action.
- type ListActionTypesOutput struct {
- _ struct{} `type:"structure"`
- // Provides details of the action types.
- ActionTypes []*ActionType `locationName:"actionTypes" type:"list" required:"true"`
- // If the amount of returned information is significantly large, an identifier
- // is also returned which can be used in a subsequent list action types call
- // to return the next set of action types in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListActionTypesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListActionTypesOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list pipelines action.
- type ListPipelinesInput struct {
- _ struct{} `type:"structure"`
- // An identifier that was returned from the previous list pipelines call, which
- // can be used to return the next set of pipelines in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListPipelinesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesInput) GoString() string {
- return s.String()
- }
- // Represents the output of a list pipelines action.
- type ListPipelinesOutput struct {
- _ struct{} `type:"structure"`
- // If the amount of returned information is significantly large, an identifier
- // is also returned which can be used in a subsequent list pipelines call to
- // return the next set of pipelines in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The list of pipelines.
- Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"`
- }
- // String returns the string representation
- func (s ListPipelinesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesOutput) GoString() string {
- return s.String()
- }
- // Represents information about the output of an action.
- type OutputArtifact struct {
- _ struct{} `type:"structure"`
- // The name of the output of an artifact, such as "My App".
- //
- // The input artifact of an action must exactly match the output artifact declared
- // in a preceding action, but the input artifact does not have to be the next
- // action in strict sequence from the action that provided the output artifact.
- // Actions in parallel can declare different output artifacts, which are in
- // turn consumed by different following actions.
- //
- // Output artifact names must be unique within a pipeline.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s OutputArtifact) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputArtifact) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OutputArtifact) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OutputArtifact"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about a pipeline to a job worker.
- type PipelineContext struct {
- _ struct{} `type:"structure"`
- // Represents the context of an action within the stage of a pipeline to a job
- // worker.
- Action *ActionContext `locationName:"action" type:"structure"`
- // The name of the pipeline. This is a user-specified value. Pipeline names
- // must be unique across all pipeline names under an Amazon Web Services account.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string"`
- // The stage of the pipeline.
- Stage *StageContext `locationName:"stage" type:"structure"`
- }
- // String returns the string representation
- func (s PipelineContext) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineContext) GoString() string {
- return s.String()
- }
- // Represents the structure of actions and stages to be performed in the pipeline.
- type PipelineDeclaration struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 location where artifacts are stored for the pipeline. If this
- // Amazon S3 bucket is created manually, it must meet the requirements for AWS
- // CodePipeline. For more information, see the Concepts (http://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html#CPS3Bucket).
- ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"`
- // The name of the action to be performed.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform
- // actions with no actionRoleArn, or to use to assume roles for actions with
- // an actionRoleArn.
- RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
- // The stage in which to perform the action.
- Stages []*StageDeclaration `locationName:"stages" type:"list" required:"true"`
- // The version number of the pipeline. A new pipeline always has a version number
- // of 1. This number is automatically incremented when a pipeline is updated.
- Version *int64 `locationName:"version" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s PipelineDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PipelineDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PipelineDeclaration"}
- if s.ArtifactStore == nil {
- invalidParams.Add(request.NewErrParamRequired("ArtifactStore"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.RoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleArn"))
- }
- if s.Stages == nil {
- invalidParams.Add(request.NewErrParamRequired("Stages"))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if s.ArtifactStore != nil {
- if err := s.ArtifactStore.Validate(); err != nil {
- invalidParams.AddNested("ArtifactStore", err.(request.ErrInvalidParams))
- }
- }
- if s.Stages != nil {
- for i, v := range s.Stages {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Stages", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Returns a summary of a pipeline.
- type PipelineSummary struct {
- _ struct{} `type:"structure"`
- // The date and time the pipeline was created, in timestamp format.
- Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
- // The name of the pipeline.
- Name *string `locationName:"name" min:"1" type:"string"`
- // The date and time of the last update to the pipeline, in timestamp format.
- Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
- // The version number of the pipeline.
- Version *int64 `locationName:"version" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s PipelineSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineSummary) GoString() string {
- return s.String()
- }
- // Represents the input of a poll for jobs action.
- type PollForJobsInput struct {
- _ struct{} `type:"structure"`
- // Represents information about an action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
- // The maximum number of jobs to return in a poll for jobs call.
- MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
- // A map of property names and values. For an action type with no queryable
- // properties, this value must be null or an empty map. For an action type with
- // a queryable property, you must supply that property as a key in the map.
- // Only jobs whose action configuration matches the mapped value will be returned.
- QueryParam map[string]*string `locationName:"queryParam" type:"map"`
- }
- // String returns the string representation
- func (s PollForJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PollForJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PollForJobsInput"}
- if s.ActionTypeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
- }
- if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
- }
- if s.ActionTypeId != nil {
- if err := s.ActionTypeId.Validate(); err != nil {
- invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a poll for jobs action.
- type PollForJobsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the jobs to take action on.
- Jobs []*Job `locationName:"jobs" type:"list"`
- }
- // String returns the string representation
- func (s PollForJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForJobsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a poll for third party jobs action.
- type PollForThirdPartyJobsInput struct {
- _ struct{} `type:"structure"`
- // Represents information about an action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
- // The maximum number of jobs to return in a poll for jobs call.
- MaxBatchSize *int64 `locationName:"maxBatchSize" min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s PollForThirdPartyJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForThirdPartyJobsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PollForThirdPartyJobsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PollForThirdPartyJobsInput"}
- if s.ActionTypeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionTypeId"))
- }
- if s.MaxBatchSize != nil && *s.MaxBatchSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxBatchSize", 1))
- }
- if s.ActionTypeId != nil {
- if err := s.ActionTypeId.Validate(); err != nil {
- invalidParams.AddNested("ActionTypeId", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a poll for third party jobs action.
- type PollForThirdPartyJobsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the jobs to take action on.
- Jobs []*ThirdPartyJob `locationName:"jobs" type:"list"`
- }
- // String returns the string representation
- func (s PollForThirdPartyJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForThirdPartyJobsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a put action revision action.
- type PutActionRevisionInput struct {
- _ struct{} `type:"structure"`
- // The name of the action that will process the revision.
- ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
- // Represents information about the version (or revision) of an action.
- ActionRevision *ActionRevision `locationName:"actionRevision" type:"structure" required:"true"`
- // The name of the pipeline that will start processing the revision to the source.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The name of the stage that contains the action that will act upon the revision.
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutActionRevisionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutActionRevisionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutActionRevisionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutActionRevisionInput"}
- if s.ActionName == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionName"))
- }
- if s.ActionName != nil && len(*s.ActionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
- }
- if s.ActionRevision == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionRevision"))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.ActionRevision != nil {
- if err := s.ActionRevision.Validate(); err != nil {
- invalidParams.AddNested("ActionRevision", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a put action revision action.
- type PutActionRevisionOutput struct {
- _ struct{} `type:"structure"`
- // The new revision number or ID for the revision after the action completes.
- NewRevision *bool `locationName:"newRevision" type:"boolean"`
- // The ID of the current workflow state of the pipeline.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- }
- // String returns the string representation
- func (s PutActionRevisionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutActionRevisionOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a put approval result action.
- type PutApprovalResultInput struct {
- _ struct{} `type:"structure"`
- // The name of the action for which approval is requested.
- ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"`
- // The name of the pipeline that contains the action.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // Represents information about the result of the approval request.
- Result *ApprovalResult `locationName:"result" type:"structure" required:"true"`
- // The name of the stage that contains the action.
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- // The system-generated token used to identify a unique approval request. The
- // token for each open approval request can be obtained using the GetPipelineState
- // action and is used to validate that the approval request corresponding to
- // this token is still valid.
- Token *string `locationName:"token" type:"string"`
- }
- // String returns the string representation
- func (s PutApprovalResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutApprovalResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutApprovalResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutApprovalResultInput"}
- if s.ActionName == nil {
- invalidParams.Add(request.NewErrParamRequired("ActionName"))
- }
- if s.ActionName != nil && len(*s.ActionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ActionName", 1))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.Result == nil {
- invalidParams.Add(request.NewErrParamRequired("Result"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if s.Result != nil {
- if err := s.Result.Validate(); err != nil {
- invalidParams.AddNested("Result", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a put approval result action.
- type PutApprovalResultOutput struct {
- _ struct{} `type:"structure"`
- // The timestamp showing when the approval or rejection was submitted.
- ApprovedAt *time.Time `locationName:"approvedAt" type:"timestamp" timestampFormat:"unix"`
- }
- // String returns the string representation
- func (s PutApprovalResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutApprovalResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a put job failure result action.
- type PutJobFailureResultInput struct {
- _ struct{} `type:"structure"`
- // The details about the failure of a job.
- FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
- // The unique system-generated ID of the job that failed. This is the same ID
- // returned from PollForJobs.
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutJobFailureResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobFailureResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutJobFailureResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutJobFailureResultInput"}
- if s.FailureDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.FailureDetails != nil {
- if err := s.FailureDetails.Validate(); err != nil {
- invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type PutJobFailureResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutJobFailureResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobFailureResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a put job success result action.
- type PutJobSuccessResultInput struct {
- _ struct{} `type:"structure"`
- // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
- // that a successful job provides to identify a custom action in progress. Future
- // jobs will use this token in order to identify the running instance of the
- // action. It can be reused to return additional information about the progress
- // of the custom action. When the action is complete, no continuation token
- // should be supplied.
- ContinuationToken *string `locationName:"continuationToken" type:"string"`
- // The ID of the current revision of the artifact successfully worked upon by
- // the job.
- CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
- // The execution details of the successful job, such as the actions taken by
- // the job worker.
- ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
- // The unique system-generated ID of the job that succeeded. This is the same
- // ID returned from PollForJobs.
- JobId *string `locationName:"jobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutJobSuccessResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobSuccessResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutJobSuccessResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutJobSuccessResultInput"}
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.CurrentRevision != nil {
- if err := s.CurrentRevision.Validate(); err != nil {
- invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
- }
- }
- if s.ExecutionDetails != nil {
- if err := s.ExecutionDetails.Validate(); err != nil {
- invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type PutJobSuccessResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutJobSuccessResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutJobSuccessResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a third party job failure result action.
- type PutThirdPartyJobFailureResultInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
- // Represents information about failure details.
- FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
- // The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobFailureResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobFailureResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutThirdPartyJobFailureResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobFailureResultInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.FailureDetails == nil {
- invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.FailureDetails != nil {
- if err := s.FailureDetails.Validate(); err != nil {
- invalidParams.AddNested("FailureDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type PutThirdPartyJobFailureResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobFailureResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobFailureResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a put third party job success result action.
- type PutThirdPartyJobSuccessResultInput struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
- // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
- // that a successful job provides to identify a partner action in progress.
- // Future jobs will use this token in order to identify the running instance
- // of the action. It can be reused to return additional information about the
- // progress of the partner action. When the action is complete, no continuation
- // token should be supplied.
- ContinuationToken *string `locationName:"continuationToken" type:"string"`
- // Represents information about a current revision.
- CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
- // The details of the actions taken and results produced on an artifact as it
- // passes through stages in the pipeline.
- ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
- // The ID of the job that successfully completed. This is the same ID returned
- // from PollForThirdPartyJobs.
- JobId *string `locationName:"jobId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobSuccessResultInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobSuccessResultInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutThirdPartyJobSuccessResultInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutThirdPartyJobSuccessResultInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.JobId == nil {
- invalidParams.Add(request.NewErrParamRequired("JobId"))
- }
- if s.JobId != nil && len(*s.JobId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
- }
- if s.CurrentRevision != nil {
- if err := s.CurrentRevision.Validate(); err != nil {
- invalidParams.AddNested("CurrentRevision", err.(request.ErrInvalidParams))
- }
- }
- if s.ExecutionDetails != nil {
- if err := s.ExecutionDetails.Validate(); err != nil {
- invalidParams.AddNested("ExecutionDetails", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type PutThirdPartyJobSuccessResultOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutThirdPartyJobSuccessResultOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutThirdPartyJobSuccessResultOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a retry stage execution action.
- type RetryStageExecutionInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline execution in the failed stage to be retried. Use the
- // GetPipelineState action to retrieve the current pipelineExecutionId of the
- // failed stage
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
- // The name of the pipeline that contains the failed stage.
- PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"`
- // The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.
- RetryMode *string `locationName:"retryMode" type:"string" required:"true" enum:"StageRetryMode"`
- // The name of the failed stage to be retried.
- StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RetryStageExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetryStageExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RetryStageExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RetryStageExecutionInput"}
- if s.PipelineExecutionId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineExecutionId"))
- }
- if s.PipelineName == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineName"))
- }
- if s.PipelineName != nil && len(*s.PipelineName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1))
- }
- if s.RetryMode == nil {
- invalidParams.Add(request.NewErrParamRequired("RetryMode"))
- }
- if s.StageName == nil {
- invalidParams.Add(request.NewErrParamRequired("StageName"))
- }
- if s.StageName != nil && len(*s.StageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StageName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a retry stage execution action.
- type RetryStageExecutionOutput struct {
- _ struct{} `type:"structure"`
- // The ID of the current workflow execution in the failed stage.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- }
- // String returns the string representation
- func (s RetryStageExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetryStageExecutionOutput) GoString() string {
- return s.String()
- }
- // The location of the Amazon S3 bucket that contains a revision.
- type S3ArtifactLocation struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon S3 bucket.
- BucketName *string `locationName:"bucketName" type:"string" required:"true"`
- // The key of the object in the Amazon S3 bucket, which uniquely identifies
- // the object in the bucket.
- ObjectKey *string `locationName:"objectKey" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s S3ArtifactLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3ArtifactLocation) GoString() string {
- return s.String()
- }
- // Represents information about a stage to a job worker.
- type StageContext struct {
- _ struct{} `type:"structure"`
- // The name of the stage.
- Name *string `locationName:"name" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StageContext) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageContext) GoString() string {
- return s.String()
- }
- // Represents information about a stage and its definition.
- type StageDeclaration struct {
- _ struct{} `type:"structure"`
- // The actions included in a stage.
- Actions []*ActionDeclaration `locationName:"actions" type:"list" required:"true"`
- // Reserved for future use.
- Blockers []*BlockerDeclaration `locationName:"blockers" type:"list"`
- // The name of the stage.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StageDeclaration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageDeclaration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StageDeclaration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StageDeclaration"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Blockers != nil {
- for i, v := range s.Blockers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Blockers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents information about the run of a stage.
- type StageExecution struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline execution associated with the stage.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"`
- // The status of the stage, or for a completed stage, the last status of the
- // stage.
- Status *string `locationName:"status" type:"string" required:"true" enum:"StageExecutionStatus"`
- }
- // String returns the string representation
- func (s StageExecution) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageExecution) GoString() string {
- return s.String()
- }
- // Represents information about the state of the stage.
- type StageState struct {
- _ struct{} `type:"structure"`
- // The state of the stage.
- ActionStates []*ActionState `locationName:"actionStates" type:"list"`
- // The state of the inbound transition, which is either enabled or disabled.
- InboundTransitionState *TransitionState `locationName:"inboundTransitionState" type:"structure"`
- // Information about the latest execution in the stage, including its ID and
- // status.
- LatestExecution *StageExecution `locationName:"latestExecution" type:"structure"`
- // The name of the stage.
- StageName *string `locationName:"stageName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StageState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StageState) GoString() string {
- return s.String()
- }
- // Represents the input of a start pipeline execution action.
- type StartPipelineExecutionInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline to start.
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartPipelineExecutionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartPipelineExecutionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartPipelineExecutionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartPipelineExecutionInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a start pipeline execution action.
- type StartPipelineExecutionOutput struct {
- _ struct{} `type:"structure"`
- // The unique system-generated ID of the pipeline that was started.
- PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
- }
- // String returns the string representation
- func (s StartPipelineExecutionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartPipelineExecutionOutput) GoString() string {
- return s.String()
- }
- // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline
- // when there is a job to be worked upon by a partner action.
- type ThirdPartyJob struct {
- _ struct{} `type:"structure"`
- // The clientToken portion of the clientId and clientToken pair used to verify
- // that the calling entity is allowed access to the job and its details.
- ClientId *string `locationName:"clientId" type:"string"`
- // The identifier used to identify the job in AWS CodePipeline.
- JobId *string `locationName:"jobId" type:"string"`
- }
- // String returns the string representation
- func (s ThirdPartyJob) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThirdPartyJob) GoString() string {
- return s.String()
- }
- // Represents information about the job data for a partner action.
- type ThirdPartyJobData struct {
- _ struct{} `type:"structure"`
- // Represents information about an action configuration.
- ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
- // Represents information about an action type.
- ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
- // Represents an AWS session credentials object. These credentials are temporary
- // credentials that are issued by AWS Secure Token Service (STS). They can be
- // used to access input and output artifacts in the Amazon S3 bucket used to
- // store artifact for the pipeline in AWS CodePipeline.
- ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"`
- // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
- // job requires in order to continue the job asynchronously.
- ContinuationToken *string `locationName:"continuationToken" type:"string"`
- // The encryption key used to encrypt and decrypt data in the artifact store
- // for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This
- // is optional and might not be present.
- EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
- // The name of the artifact that will be worked upon by the action, if any.
- // This name might be system-generated, such as "MyApp", or might be defined
- // by the user when the action is created. The input artifact name must match
- // the name of an output artifact generated by an action in an earlier action
- // or stage of the pipeline.
- InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
- // The name of the artifact that will be the result of the action, if any. This
- // name might be system-generated, such as "MyBuiltApp", or might be defined
- // by the user when the action is created.
- OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
- // Represents information about a pipeline to a job worker.
- PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
- }
- // String returns the string representation
- func (s ThirdPartyJobData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThirdPartyJobData) GoString() string {
- return s.String()
- }
- // The details of a job sent in response to a GetThirdPartyJobDetails request.
- type ThirdPartyJobDetails struct {
- _ struct{} `type:"structure"`
- // The data to be returned by the third party job worker.
- Data *ThirdPartyJobData `locationName:"data" type:"structure"`
- // The identifier used to identify the job details in AWS CodePipeline.
- Id *string `locationName:"id" min:"1" type:"string"`
- // A system-generated random number that AWS CodePipeline uses to ensure that
- // the job is being worked on by only one job worker. This number must be returned
- // in the response.
- Nonce *string `locationName:"nonce" type:"string"`
- }
- // String returns the string representation
- func (s ThirdPartyJobDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ThirdPartyJobDetails) GoString() string {
- return s.String()
- }
- // Represents information about the state of transitions between one stage and
- // another stage.
- type TransitionState struct {
- _ struct{} `type:"structure"`
- // The user-specified reason why the transition between two stages of a pipeline
- // was disabled.
- DisabledReason *string `locationName:"disabledReason" min:"1" type:"string"`
- // Whether the transition between stages is enabled (true) or disabled (false).
- Enabled *bool `locationName:"enabled" type:"boolean"`
- // The timestamp when the transition state was last changed.
- LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp" timestampFormat:"unix"`
- // The ID of the user who last changed the transition state.
- LastChangedBy *string `locationName:"lastChangedBy" type:"string"`
- }
- // String returns the string representation
- func (s TransitionState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TransitionState) GoString() string {
- return s.String()
- }
- // Represents the input of an update pipeline action.
- type UpdatePipelineInput struct {
- _ struct{} `type:"structure"`
- // The name of the pipeline to be updated.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
- if s.Pipeline == nil {
- invalidParams.Add(request.NewErrParamRequired("Pipeline"))
- }
- if s.Pipeline != nil {
- if err := s.Pipeline.Validate(); err != nil {
- invalidParams.AddNested("Pipeline", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of an update pipeline action.
- type UpdatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // The structure of the updated pipeline.
- Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
- }
- // String returns the string representation
- func (s UpdatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum ActionCategory
- ActionCategorySource = "Source"
- // @enum ActionCategory
- ActionCategoryBuild = "Build"
- // @enum ActionCategory
- ActionCategoryDeploy = "Deploy"
- // @enum ActionCategory
- ActionCategoryTest = "Test"
- // @enum ActionCategory
- ActionCategoryInvoke = "Invoke"
- // @enum ActionCategory
- ActionCategoryApproval = "Approval"
- )
- const (
- // @enum ActionConfigurationPropertyType
- ActionConfigurationPropertyTypeString = "String"
- // @enum ActionConfigurationPropertyType
- ActionConfigurationPropertyTypeNumber = "Number"
- // @enum ActionConfigurationPropertyType
- ActionConfigurationPropertyTypeBoolean = "Boolean"
- )
- const (
- // @enum ActionExecutionStatus
- ActionExecutionStatusInProgress = "InProgress"
- // @enum ActionExecutionStatus
- ActionExecutionStatusSucceeded = "Succeeded"
- // @enum ActionExecutionStatus
- ActionExecutionStatusFailed = "Failed"
- )
- const (
- // @enum ActionOwner
- ActionOwnerAws = "AWS"
- // @enum ActionOwner
- ActionOwnerThirdParty = "ThirdParty"
- // @enum ActionOwner
- ActionOwnerCustom = "Custom"
- )
- const (
- // @enum ApprovalStatus
- ApprovalStatusApproved = "Approved"
- // @enum ApprovalStatus
- ApprovalStatusRejected = "Rejected"
- )
- const (
- // @enum ArtifactLocationType
- ArtifactLocationTypeS3 = "S3"
- )
- const (
- // @enum ArtifactStoreType
- ArtifactStoreTypeS3 = "S3"
- )
- const (
- // @enum BlockerType
- BlockerTypeSchedule = "Schedule"
- )
- const (
- // @enum EncryptionKeyType
- EncryptionKeyTypeKms = "KMS"
- )
- const (
- // @enum FailureType
- FailureTypeJobFailed = "JobFailed"
- // @enum FailureType
- FailureTypeConfigurationError = "ConfigurationError"
- // @enum FailureType
- FailureTypePermissionError = "PermissionError"
- // @enum FailureType
- FailureTypeRevisionOutOfSync = "RevisionOutOfSync"
- // @enum FailureType
- FailureTypeRevisionUnavailable = "RevisionUnavailable"
- // @enum FailureType
- FailureTypeSystemUnavailable = "SystemUnavailable"
- )
- const (
- // @enum JobStatus
- JobStatusCreated = "Created"
- // @enum JobStatus
- JobStatusQueued = "Queued"
- // @enum JobStatus
- JobStatusDispatched = "Dispatched"
- // @enum JobStatus
- JobStatusInProgress = "InProgress"
- // @enum JobStatus
- JobStatusTimedOut = "TimedOut"
- // @enum JobStatus
- JobStatusSucceeded = "Succeeded"
- // @enum JobStatus
- JobStatusFailed = "Failed"
- )
- const (
- // @enum StageExecutionStatus
- StageExecutionStatusInProgress = "InProgress"
- // @enum StageExecutionStatus
- StageExecutionStatusFailed = "Failed"
- // @enum StageExecutionStatus
- StageExecutionStatusSucceeded = "Succeeded"
- )
- const (
- // @enum StageRetryMode
- StageRetryModeFailedActions = "FAILED_ACTIONS"
- )
- const (
- // @enum StageTransitionType
- StageTransitionTypeInbound = "Inbound"
- // @enum StageTransitionType
- StageTransitionTypeOutbound = "Outbound"
- )
|