api.go 430 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package codedeploy
  3. import (
  4. "time"
  5. "github.com/aws/aws-sdk-go/aws"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  10. )
  11. const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances"
  12. // AddTagsToOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  13. // client's request for the AddTagsToOnPremisesInstances operation. The "output" return
  14. // value will be populated with the request's response once the request completes
  15. // successfully.
  16. //
  17. // Use "Send" method on the returned Request to send the API call to the service.
  18. // the "output" return value is not valid until after Send returns without error.
  19. //
  20. // See AddTagsToOnPremisesInstances for more information on using the AddTagsToOnPremisesInstances
  21. // API call, and error handling.
  22. //
  23. // This method is useful when you want to inject custom logic or configuration
  24. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25. //
  26. //
  27. // // Example sending a request using the AddTagsToOnPremisesInstancesRequest method.
  28. // req, resp := client.AddTagsToOnPremisesInstancesRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances
  36. func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremisesInstancesInput) (req *request.Request, output *AddTagsToOnPremisesInstancesOutput) {
  37. op := &request.Operation{
  38. Name: opAddTagsToOnPremisesInstances,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/",
  41. }
  42. if input == nil {
  43. input = &AddTagsToOnPremisesInstancesInput{}
  44. }
  45. output = &AddTagsToOnPremisesInstancesOutput{}
  46. req = c.newRequest(op, input, output)
  47. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  48. return
  49. }
  50. // AddTagsToOnPremisesInstances API operation for AWS CodeDeploy.
  51. //
  52. // Adds tags to on-premises instances.
  53. //
  54. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  55. // with awserr.Error's Code and Message methods to get detailed information about
  56. // the error.
  57. //
  58. // See the AWS API reference guide for AWS CodeDeploy's
  59. // API operation AddTagsToOnPremisesInstances for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
  63. // An on-premises instance name was not specified.
  64. //
  65. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  66. // The on-premises instance name was specified in an invalid format.
  67. //
  68. // * ErrCodeTagRequiredException "TagRequiredException"
  69. // A tag was not specified.
  70. //
  71. // * ErrCodeInvalidTagException "InvalidTagException"
  72. // The tag was specified in an invalid format.
  73. //
  74. // * ErrCodeTagLimitExceededException "TagLimitExceededException"
  75. // The maximum allowed number of tags was exceeded.
  76. //
  77. // * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException"
  78. // The maximum number of allowed on-premises instances in a single call was
  79. // exceeded.
  80. //
  81. // * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException"
  82. // The specified on-premises instance is not registered.
  83. //
  84. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances
  85. func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) {
  86. req, out := c.AddTagsToOnPremisesInstancesRequest(input)
  87. return out, req.Send()
  88. }
  89. // AddTagsToOnPremisesInstancesWithContext is the same as AddTagsToOnPremisesInstances with the addition of
  90. // the ability to pass a context and additional request options.
  91. //
  92. // See AddTagsToOnPremisesInstances for details on how to use this API operation.
  93. //
  94. // The context must be non-nil and will be used for request cancellation. If
  95. // the context is nil a panic will occur. In the future the SDK may create
  96. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  97. // for more information on using Contexts.
  98. func (c *CodeDeploy) AddTagsToOnPremisesInstancesWithContext(ctx aws.Context, input *AddTagsToOnPremisesInstancesInput, opts ...request.Option) (*AddTagsToOnPremisesInstancesOutput, error) {
  99. req, out := c.AddTagsToOnPremisesInstancesRequest(input)
  100. req.SetContext(ctx)
  101. req.ApplyOptions(opts...)
  102. return out, req.Send()
  103. }
  104. const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions"
  105. // BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the
  106. // client's request for the BatchGetApplicationRevisions operation. The "output" return
  107. // value will be populated with the request's response once the request completes
  108. // successfully.
  109. //
  110. // Use "Send" method on the returned Request to send the API call to the service.
  111. // the "output" return value is not valid until after Send returns without error.
  112. //
  113. // See BatchGetApplicationRevisions for more information on using the BatchGetApplicationRevisions
  114. // API call, and error handling.
  115. //
  116. // This method is useful when you want to inject custom logic or configuration
  117. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  118. //
  119. //
  120. // // Example sending a request using the BatchGetApplicationRevisionsRequest method.
  121. // req, resp := client.BatchGetApplicationRevisionsRequest(params)
  122. //
  123. // err := req.Send()
  124. // if err == nil { // resp is now filled
  125. // fmt.Println(resp)
  126. // }
  127. //
  128. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions
  129. func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) {
  130. op := &request.Operation{
  131. Name: opBatchGetApplicationRevisions,
  132. HTTPMethod: "POST",
  133. HTTPPath: "/",
  134. }
  135. if input == nil {
  136. input = &BatchGetApplicationRevisionsInput{}
  137. }
  138. output = &BatchGetApplicationRevisionsOutput{}
  139. req = c.newRequest(op, input, output)
  140. return
  141. }
  142. // BatchGetApplicationRevisions API operation for AWS CodeDeploy.
  143. //
  144. // Gets information about one or more application revisions.
  145. //
  146. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  147. // with awserr.Error's Code and Message methods to get detailed information about
  148. // the error.
  149. //
  150. // See the AWS API reference guide for AWS CodeDeploy's
  151. // API operation BatchGetApplicationRevisions for usage and error information.
  152. //
  153. // Returned Error Codes:
  154. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  155. // The application does not exist with the IAM user or AWS account.
  156. //
  157. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  158. // The minimum number of required application names was not specified.
  159. //
  160. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  161. // The application name was specified in an invalid format.
  162. //
  163. // * ErrCodeRevisionRequiredException "RevisionRequiredException"
  164. // The revision ID was not specified.
  165. //
  166. // * ErrCodeInvalidRevisionException "InvalidRevisionException"
  167. // The revision was specified in an invalid format.
  168. //
  169. // * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
  170. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  171. //
  172. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions
  173. func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) {
  174. req, out := c.BatchGetApplicationRevisionsRequest(input)
  175. return out, req.Send()
  176. }
  177. // BatchGetApplicationRevisionsWithContext is the same as BatchGetApplicationRevisions with the addition of
  178. // the ability to pass a context and additional request options.
  179. //
  180. // See BatchGetApplicationRevisions for details on how to use this API operation.
  181. //
  182. // The context must be non-nil and will be used for request cancellation. If
  183. // the context is nil a panic will occur. In the future the SDK may create
  184. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  185. // for more information on using Contexts.
  186. func (c *CodeDeploy) BatchGetApplicationRevisionsWithContext(ctx aws.Context, input *BatchGetApplicationRevisionsInput, opts ...request.Option) (*BatchGetApplicationRevisionsOutput, error) {
  187. req, out := c.BatchGetApplicationRevisionsRequest(input)
  188. req.SetContext(ctx)
  189. req.ApplyOptions(opts...)
  190. return out, req.Send()
  191. }
  192. const opBatchGetApplications = "BatchGetApplications"
  193. // BatchGetApplicationsRequest generates a "aws/request.Request" representing the
  194. // client's request for the BatchGetApplications operation. The "output" return
  195. // value will be populated with the request's response once the request completes
  196. // successfully.
  197. //
  198. // Use "Send" method on the returned Request to send the API call to the service.
  199. // the "output" return value is not valid until after Send returns without error.
  200. //
  201. // See BatchGetApplications for more information on using the BatchGetApplications
  202. // API call, and error handling.
  203. //
  204. // This method is useful when you want to inject custom logic or configuration
  205. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  206. //
  207. //
  208. // // Example sending a request using the BatchGetApplicationsRequest method.
  209. // req, resp := client.BatchGetApplicationsRequest(params)
  210. //
  211. // err := req.Send()
  212. // if err == nil { // resp is now filled
  213. // fmt.Println(resp)
  214. // }
  215. //
  216. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications
  217. func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput) {
  218. op := &request.Operation{
  219. Name: opBatchGetApplications,
  220. HTTPMethod: "POST",
  221. HTTPPath: "/",
  222. }
  223. if input == nil {
  224. input = &BatchGetApplicationsInput{}
  225. }
  226. output = &BatchGetApplicationsOutput{}
  227. req = c.newRequest(op, input, output)
  228. return
  229. }
  230. // BatchGetApplications API operation for AWS CodeDeploy.
  231. //
  232. // Gets information about one or more applications.
  233. //
  234. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  235. // with awserr.Error's Code and Message methods to get detailed information about
  236. // the error.
  237. //
  238. // See the AWS API reference guide for AWS CodeDeploy's
  239. // API operation BatchGetApplications for usage and error information.
  240. //
  241. // Returned Error Codes:
  242. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  243. // The minimum number of required application names was not specified.
  244. //
  245. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  246. // The application name was specified in an invalid format.
  247. //
  248. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  249. // The application does not exist with the IAM user or AWS account.
  250. //
  251. // * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
  252. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  253. //
  254. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications
  255. func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) {
  256. req, out := c.BatchGetApplicationsRequest(input)
  257. return out, req.Send()
  258. }
  259. // BatchGetApplicationsWithContext is the same as BatchGetApplications with the addition of
  260. // the ability to pass a context and additional request options.
  261. //
  262. // See BatchGetApplications for details on how to use this API operation.
  263. //
  264. // The context must be non-nil and will be used for request cancellation. If
  265. // the context is nil a panic will occur. In the future the SDK may create
  266. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  267. // for more information on using Contexts.
  268. func (c *CodeDeploy) BatchGetApplicationsWithContext(ctx aws.Context, input *BatchGetApplicationsInput, opts ...request.Option) (*BatchGetApplicationsOutput, error) {
  269. req, out := c.BatchGetApplicationsRequest(input)
  270. req.SetContext(ctx)
  271. req.ApplyOptions(opts...)
  272. return out, req.Send()
  273. }
  274. const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups"
  275. // BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the
  276. // client's request for the BatchGetDeploymentGroups operation. The "output" return
  277. // value will be populated with the request's response once the request completes
  278. // successfully.
  279. //
  280. // Use "Send" method on the returned Request to send the API call to the service.
  281. // the "output" return value is not valid until after Send returns without error.
  282. //
  283. // See BatchGetDeploymentGroups for more information on using the BatchGetDeploymentGroups
  284. // API call, and error handling.
  285. //
  286. // This method is useful when you want to inject custom logic or configuration
  287. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  288. //
  289. //
  290. // // Example sending a request using the BatchGetDeploymentGroupsRequest method.
  291. // req, resp := client.BatchGetDeploymentGroupsRequest(params)
  292. //
  293. // err := req.Send()
  294. // if err == nil { // resp is now filled
  295. // fmt.Println(resp)
  296. // }
  297. //
  298. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups
  299. func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) {
  300. op := &request.Operation{
  301. Name: opBatchGetDeploymentGroups,
  302. HTTPMethod: "POST",
  303. HTTPPath: "/",
  304. }
  305. if input == nil {
  306. input = &BatchGetDeploymentGroupsInput{}
  307. }
  308. output = &BatchGetDeploymentGroupsOutput{}
  309. req = c.newRequest(op, input, output)
  310. return
  311. }
  312. // BatchGetDeploymentGroups API operation for AWS CodeDeploy.
  313. //
  314. // Gets information about one or more deployment groups.
  315. //
  316. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  317. // with awserr.Error's Code and Message methods to get detailed information about
  318. // the error.
  319. //
  320. // See the AWS API reference guide for AWS CodeDeploy's
  321. // API operation BatchGetDeploymentGroups for usage and error information.
  322. //
  323. // Returned Error Codes:
  324. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  325. // The minimum number of required application names was not specified.
  326. //
  327. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  328. // The application name was specified in an invalid format.
  329. //
  330. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  331. // The application does not exist with the IAM user or AWS account.
  332. //
  333. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  334. // The deployment group name was not specified.
  335. //
  336. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  337. // The deployment group name was specified in an invalid format.
  338. //
  339. // * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
  340. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  341. //
  342. // * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
  343. // The deployment configuration does not exist with the IAM user or AWS account.
  344. //
  345. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups
  346. func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) {
  347. req, out := c.BatchGetDeploymentGroupsRequest(input)
  348. return out, req.Send()
  349. }
  350. // BatchGetDeploymentGroupsWithContext is the same as BatchGetDeploymentGroups with the addition of
  351. // the ability to pass a context and additional request options.
  352. //
  353. // See BatchGetDeploymentGroups for details on how to use this API operation.
  354. //
  355. // The context must be non-nil and will be used for request cancellation. If
  356. // the context is nil a panic will occur. In the future the SDK may create
  357. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  358. // for more information on using Contexts.
  359. func (c *CodeDeploy) BatchGetDeploymentGroupsWithContext(ctx aws.Context, input *BatchGetDeploymentGroupsInput, opts ...request.Option) (*BatchGetDeploymentGroupsOutput, error) {
  360. req, out := c.BatchGetDeploymentGroupsRequest(input)
  361. req.SetContext(ctx)
  362. req.ApplyOptions(opts...)
  363. return out, req.Send()
  364. }
  365. const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances"
  366. // BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the
  367. // client's request for the BatchGetDeploymentInstances operation. The "output" return
  368. // value will be populated with the request's response once the request completes
  369. // successfully.
  370. //
  371. // Use "Send" method on the returned Request to send the API call to the service.
  372. // the "output" return value is not valid until after Send returns without error.
  373. //
  374. // See BatchGetDeploymentInstances for more information on using the BatchGetDeploymentInstances
  375. // API call, and error handling.
  376. //
  377. // This method is useful when you want to inject custom logic or configuration
  378. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  379. //
  380. //
  381. // // Example sending a request using the BatchGetDeploymentInstancesRequest method.
  382. // req, resp := client.BatchGetDeploymentInstancesRequest(params)
  383. //
  384. // err := req.Send()
  385. // if err == nil { // resp is now filled
  386. // fmt.Println(resp)
  387. // }
  388. //
  389. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances
  390. //
  391. // Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead.
  392. func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) {
  393. if c.Client.Config.Logger != nil {
  394. c.Client.Config.Logger.Log("This operation, BatchGetDeploymentInstances, has been deprecated")
  395. }
  396. op := &request.Operation{
  397. Name: opBatchGetDeploymentInstances,
  398. HTTPMethod: "POST",
  399. HTTPPath: "/",
  400. }
  401. if input == nil {
  402. input = &BatchGetDeploymentInstancesInput{}
  403. }
  404. output = &BatchGetDeploymentInstancesOutput{}
  405. req = c.newRequest(op, input, output)
  406. return
  407. }
  408. // BatchGetDeploymentInstances API operation for AWS CodeDeploy.
  409. //
  410. // This method works, but is deprecated. Use BatchGetDeploymentTargets instead.
  411. //
  412. // Returns an array of instances associated with a deployment. This method works
  413. // with EC2/On-premises and AWS Lambda compute platforms. The newer BatchGetDeploymentTargets
  414. // works with all compute platforms.
  415. //
  416. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  417. // with awserr.Error's Code and Message methods to get detailed information about
  418. // the error.
  419. //
  420. // See the AWS API reference guide for AWS CodeDeploy's
  421. // API operation BatchGetDeploymentInstances for usage and error information.
  422. //
  423. // Returned Error Codes:
  424. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  425. // At least one deployment ID must be specified.
  426. //
  427. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  428. // The deployment with the IAM user or AWS account does not exist.
  429. //
  430. // * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException"
  431. // The instance ID was not specified.
  432. //
  433. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  434. // At least one of the deployment IDs was specified in an invalid format.
  435. //
  436. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  437. // The on-premises instance name was specified in an invalid format.
  438. //
  439. // * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
  440. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  441. //
  442. // * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException"
  443. // The computePlatform is invalid. The computePlatform should be Lambda or Server.
  444. //
  445. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances
  446. //
  447. // Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead.
  448. func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) {
  449. req, out := c.BatchGetDeploymentInstancesRequest(input)
  450. return out, req.Send()
  451. }
  452. // BatchGetDeploymentInstancesWithContext is the same as BatchGetDeploymentInstances with the addition of
  453. // the ability to pass a context and additional request options.
  454. //
  455. // See BatchGetDeploymentInstances for details on how to use this API operation.
  456. //
  457. // The context must be non-nil and will be used for request cancellation. If
  458. // the context is nil a panic will occur. In the future the SDK may create
  459. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  460. // for more information on using Contexts.
  461. //
  462. // Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead.
  463. func (c *CodeDeploy) BatchGetDeploymentInstancesWithContext(ctx aws.Context, input *BatchGetDeploymentInstancesInput, opts ...request.Option) (*BatchGetDeploymentInstancesOutput, error) {
  464. req, out := c.BatchGetDeploymentInstancesRequest(input)
  465. req.SetContext(ctx)
  466. req.ApplyOptions(opts...)
  467. return out, req.Send()
  468. }
  469. const opBatchGetDeploymentTargets = "BatchGetDeploymentTargets"
  470. // BatchGetDeploymentTargetsRequest generates a "aws/request.Request" representing the
  471. // client's request for the BatchGetDeploymentTargets operation. The "output" return
  472. // value will be populated with the request's response once the request completes
  473. // successfully.
  474. //
  475. // Use "Send" method on the returned Request to send the API call to the service.
  476. // the "output" return value is not valid until after Send returns without error.
  477. //
  478. // See BatchGetDeploymentTargets for more information on using the BatchGetDeploymentTargets
  479. // API call, and error handling.
  480. //
  481. // This method is useful when you want to inject custom logic or configuration
  482. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  483. //
  484. //
  485. // // Example sending a request using the BatchGetDeploymentTargetsRequest method.
  486. // req, resp := client.BatchGetDeploymentTargetsRequest(params)
  487. //
  488. // err := req.Send()
  489. // if err == nil { // resp is now filled
  490. // fmt.Println(resp)
  491. // }
  492. //
  493. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets
  494. func (c *CodeDeploy) BatchGetDeploymentTargetsRequest(input *BatchGetDeploymentTargetsInput) (req *request.Request, output *BatchGetDeploymentTargetsOutput) {
  495. op := &request.Operation{
  496. Name: opBatchGetDeploymentTargets,
  497. HTTPMethod: "POST",
  498. HTTPPath: "/",
  499. }
  500. if input == nil {
  501. input = &BatchGetDeploymentTargetsInput{}
  502. }
  503. output = &BatchGetDeploymentTargetsOutput{}
  504. req = c.newRequest(op, input, output)
  505. return
  506. }
  507. // BatchGetDeploymentTargets API operation for AWS CodeDeploy.
  508. //
  509. // Returns an array of targets associated with a deployment. This method works
  510. // with all compute types and should be used instead of the deprecated BatchGetDeploymentInstances.
  511. //
  512. // The type of targets returned depends on the deployment's compute platform:
  513. //
  514. // * EC2/On-premises: Information about EC2 instance targets.
  515. //
  516. // * AWS Lambda: Information about Lambda functions targets.
  517. //
  518. // * Amazon ECS: Information about Amazon ECS service targets.
  519. //
  520. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  521. // with awserr.Error's Code and Message methods to get detailed information about
  522. // the error.
  523. //
  524. // See the AWS API reference guide for AWS CodeDeploy's
  525. // API operation BatchGetDeploymentTargets for usage and error information.
  526. //
  527. // Returned Error Codes:
  528. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  529. // At least one of the deployment IDs was specified in an invalid format.
  530. //
  531. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  532. // At least one deployment ID must be specified.
  533. //
  534. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  535. // The deployment with the IAM user or AWS account does not exist.
  536. //
  537. // * ErrCodeDeploymentTargetIdRequiredException "DeploymentTargetIdRequiredException"
  538. // A deployment target ID was not provided.
  539. //
  540. // * ErrCodeInvalidDeploymentTargetIdException "InvalidDeploymentTargetIdException"
  541. // The target ID provided was not valid.
  542. //
  543. // * ErrCodeDeploymentTargetDoesNotExistException "DeploymentTargetDoesNotExistException"
  544. // The provided target ID does not belong to the attempted deployment.
  545. //
  546. // * ErrCodeDeploymentTargetListSizeExceededException "DeploymentTargetListSizeExceededException"
  547. // The maximum number of targets that can be associated with an Amazon ECS or
  548. // AWS Lambda deployment was exceeded. The target list of both types of deployments
  549. // must have exactly one item. This exception does not apply to EC2/On-premises
  550. // deployments.
  551. //
  552. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets
  553. func (c *CodeDeploy) BatchGetDeploymentTargets(input *BatchGetDeploymentTargetsInput) (*BatchGetDeploymentTargetsOutput, error) {
  554. req, out := c.BatchGetDeploymentTargetsRequest(input)
  555. return out, req.Send()
  556. }
  557. // BatchGetDeploymentTargetsWithContext is the same as BatchGetDeploymentTargets with the addition of
  558. // the ability to pass a context and additional request options.
  559. //
  560. // See BatchGetDeploymentTargets for details on how to use this API operation.
  561. //
  562. // The context must be non-nil and will be used for request cancellation. If
  563. // the context is nil a panic will occur. In the future the SDK may create
  564. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  565. // for more information on using Contexts.
  566. func (c *CodeDeploy) BatchGetDeploymentTargetsWithContext(ctx aws.Context, input *BatchGetDeploymentTargetsInput, opts ...request.Option) (*BatchGetDeploymentTargetsOutput, error) {
  567. req, out := c.BatchGetDeploymentTargetsRequest(input)
  568. req.SetContext(ctx)
  569. req.ApplyOptions(opts...)
  570. return out, req.Send()
  571. }
  572. const opBatchGetDeployments = "BatchGetDeployments"
  573. // BatchGetDeploymentsRequest generates a "aws/request.Request" representing the
  574. // client's request for the BatchGetDeployments operation. The "output" return
  575. // value will be populated with the request's response once the request completes
  576. // successfully.
  577. //
  578. // Use "Send" method on the returned Request to send the API call to the service.
  579. // the "output" return value is not valid until after Send returns without error.
  580. //
  581. // See BatchGetDeployments for more information on using the BatchGetDeployments
  582. // API call, and error handling.
  583. //
  584. // This method is useful when you want to inject custom logic or configuration
  585. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  586. //
  587. //
  588. // // Example sending a request using the BatchGetDeploymentsRequest method.
  589. // req, resp := client.BatchGetDeploymentsRequest(params)
  590. //
  591. // err := req.Send()
  592. // if err == nil { // resp is now filled
  593. // fmt.Println(resp)
  594. // }
  595. //
  596. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments
  597. func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput) {
  598. op := &request.Operation{
  599. Name: opBatchGetDeployments,
  600. HTTPMethod: "POST",
  601. HTTPPath: "/",
  602. }
  603. if input == nil {
  604. input = &BatchGetDeploymentsInput{}
  605. }
  606. output = &BatchGetDeploymentsOutput{}
  607. req = c.newRequest(op, input, output)
  608. return
  609. }
  610. // BatchGetDeployments API operation for AWS CodeDeploy.
  611. //
  612. // Gets information about one or more deployments.
  613. //
  614. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  615. // with awserr.Error's Code and Message methods to get detailed information about
  616. // the error.
  617. //
  618. // See the AWS API reference guide for AWS CodeDeploy's
  619. // API operation BatchGetDeployments for usage and error information.
  620. //
  621. // Returned Error Codes:
  622. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  623. // At least one deployment ID must be specified.
  624. //
  625. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  626. // At least one of the deployment IDs was specified in an invalid format.
  627. //
  628. // * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
  629. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  630. //
  631. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments
  632. func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) {
  633. req, out := c.BatchGetDeploymentsRequest(input)
  634. return out, req.Send()
  635. }
  636. // BatchGetDeploymentsWithContext is the same as BatchGetDeployments with the addition of
  637. // the ability to pass a context and additional request options.
  638. //
  639. // See BatchGetDeployments for details on how to use this API operation.
  640. //
  641. // The context must be non-nil and will be used for request cancellation. If
  642. // the context is nil a panic will occur. In the future the SDK may create
  643. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  644. // for more information on using Contexts.
  645. func (c *CodeDeploy) BatchGetDeploymentsWithContext(ctx aws.Context, input *BatchGetDeploymentsInput, opts ...request.Option) (*BatchGetDeploymentsOutput, error) {
  646. req, out := c.BatchGetDeploymentsRequest(input)
  647. req.SetContext(ctx)
  648. req.ApplyOptions(opts...)
  649. return out, req.Send()
  650. }
  651. const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances"
  652. // BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  653. // client's request for the BatchGetOnPremisesInstances operation. The "output" return
  654. // value will be populated with the request's response once the request completes
  655. // successfully.
  656. //
  657. // Use "Send" method on the returned Request to send the API call to the service.
  658. // the "output" return value is not valid until after Send returns without error.
  659. //
  660. // See BatchGetOnPremisesInstances for more information on using the BatchGetOnPremisesInstances
  661. // API call, and error handling.
  662. //
  663. // This method is useful when you want to inject custom logic or configuration
  664. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  665. //
  666. //
  667. // // Example sending a request using the BatchGetOnPremisesInstancesRequest method.
  668. // req, resp := client.BatchGetOnPremisesInstancesRequest(params)
  669. //
  670. // err := req.Send()
  671. // if err == nil { // resp is now filled
  672. // fmt.Println(resp)
  673. // }
  674. //
  675. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances
  676. func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput) {
  677. op := &request.Operation{
  678. Name: opBatchGetOnPremisesInstances,
  679. HTTPMethod: "POST",
  680. HTTPPath: "/",
  681. }
  682. if input == nil {
  683. input = &BatchGetOnPremisesInstancesInput{}
  684. }
  685. output = &BatchGetOnPremisesInstancesOutput{}
  686. req = c.newRequest(op, input, output)
  687. return
  688. }
  689. // BatchGetOnPremisesInstances API operation for AWS CodeDeploy.
  690. //
  691. // Gets information about one or more on-premises instances.
  692. //
  693. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  694. // with awserr.Error's Code and Message methods to get detailed information about
  695. // the error.
  696. //
  697. // See the AWS API reference guide for AWS CodeDeploy's
  698. // API operation BatchGetOnPremisesInstances for usage and error information.
  699. //
  700. // Returned Error Codes:
  701. // * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
  702. // An on-premises instance name was not specified.
  703. //
  704. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  705. // The on-premises instance name was specified in an invalid format.
  706. //
  707. // * ErrCodeBatchLimitExceededException "BatchLimitExceededException"
  708. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  709. //
  710. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances
  711. func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) {
  712. req, out := c.BatchGetOnPremisesInstancesRequest(input)
  713. return out, req.Send()
  714. }
  715. // BatchGetOnPremisesInstancesWithContext is the same as BatchGetOnPremisesInstances with the addition of
  716. // the ability to pass a context and additional request options.
  717. //
  718. // See BatchGetOnPremisesInstances for details on how to use this API operation.
  719. //
  720. // The context must be non-nil and will be used for request cancellation. If
  721. // the context is nil a panic will occur. In the future the SDK may create
  722. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  723. // for more information on using Contexts.
  724. func (c *CodeDeploy) BatchGetOnPremisesInstancesWithContext(ctx aws.Context, input *BatchGetOnPremisesInstancesInput, opts ...request.Option) (*BatchGetOnPremisesInstancesOutput, error) {
  725. req, out := c.BatchGetOnPremisesInstancesRequest(input)
  726. req.SetContext(ctx)
  727. req.ApplyOptions(opts...)
  728. return out, req.Send()
  729. }
  730. const opContinueDeployment = "ContinueDeployment"
  731. // ContinueDeploymentRequest generates a "aws/request.Request" representing the
  732. // client's request for the ContinueDeployment operation. The "output" return
  733. // value will be populated with the request's response once the request completes
  734. // successfully.
  735. //
  736. // Use "Send" method on the returned Request to send the API call to the service.
  737. // the "output" return value is not valid until after Send returns without error.
  738. //
  739. // See ContinueDeployment for more information on using the ContinueDeployment
  740. // API call, and error handling.
  741. //
  742. // This method is useful when you want to inject custom logic or configuration
  743. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  744. //
  745. //
  746. // // Example sending a request using the ContinueDeploymentRequest method.
  747. // req, resp := client.ContinueDeploymentRequest(params)
  748. //
  749. // err := req.Send()
  750. // if err == nil { // resp is now filled
  751. // fmt.Println(resp)
  752. // }
  753. //
  754. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment
  755. func (c *CodeDeploy) ContinueDeploymentRequest(input *ContinueDeploymentInput) (req *request.Request, output *ContinueDeploymentOutput) {
  756. op := &request.Operation{
  757. Name: opContinueDeployment,
  758. HTTPMethod: "POST",
  759. HTTPPath: "/",
  760. }
  761. if input == nil {
  762. input = &ContinueDeploymentInput{}
  763. }
  764. output = &ContinueDeploymentOutput{}
  765. req = c.newRequest(op, input, output)
  766. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  767. return
  768. }
  769. // ContinueDeployment API operation for AWS CodeDeploy.
  770. //
  771. // For a blue/green deployment, starts the process of rerouting traffic from
  772. // instances in the original environment to instances in the replacement environment
  773. // without waiting for a specified wait time to elapse. (Traffic rerouting,
  774. // which is achieved by registering instances in the replacement environment
  775. // with the load balancer, can start as soon as all instances have a status
  776. // of Ready.)
  777. //
  778. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  779. // with awserr.Error's Code and Message methods to get detailed information about
  780. // the error.
  781. //
  782. // See the AWS API reference guide for AWS CodeDeploy's
  783. // API operation ContinueDeployment for usage and error information.
  784. //
  785. // Returned Error Codes:
  786. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  787. // At least one deployment ID must be specified.
  788. //
  789. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  790. // The deployment with the IAM user or AWS account does not exist.
  791. //
  792. // * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException"
  793. // The deployment is already complete.
  794. //
  795. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  796. // At least one of the deployment IDs was specified in an invalid format.
  797. //
  798. // * ErrCodeDeploymentIsNotInReadyStateException "DeploymentIsNotInReadyStateException"
  799. // The deployment does not have a status of Ready and can't continue yet.
  800. //
  801. // * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException"
  802. // A call was submitted that is not supported for the specified deployment type.
  803. //
  804. // * ErrCodeInvalidDeploymentWaitTypeException "InvalidDeploymentWaitTypeException"
  805. // The wait type is invalid.
  806. //
  807. // * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException"
  808. // The specified deployment status doesn't exist or cannot be determined.
  809. //
  810. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment
  811. func (c *CodeDeploy) ContinueDeployment(input *ContinueDeploymentInput) (*ContinueDeploymentOutput, error) {
  812. req, out := c.ContinueDeploymentRequest(input)
  813. return out, req.Send()
  814. }
  815. // ContinueDeploymentWithContext is the same as ContinueDeployment with the addition of
  816. // the ability to pass a context and additional request options.
  817. //
  818. // See ContinueDeployment for details on how to use this API operation.
  819. //
  820. // The context must be non-nil and will be used for request cancellation. If
  821. // the context is nil a panic will occur. In the future the SDK may create
  822. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  823. // for more information on using Contexts.
  824. func (c *CodeDeploy) ContinueDeploymentWithContext(ctx aws.Context, input *ContinueDeploymentInput, opts ...request.Option) (*ContinueDeploymentOutput, error) {
  825. req, out := c.ContinueDeploymentRequest(input)
  826. req.SetContext(ctx)
  827. req.ApplyOptions(opts...)
  828. return out, req.Send()
  829. }
  830. const opCreateApplication = "CreateApplication"
  831. // CreateApplicationRequest generates a "aws/request.Request" representing the
  832. // client's request for the CreateApplication operation. The "output" return
  833. // value will be populated with the request's response once the request completes
  834. // successfully.
  835. //
  836. // Use "Send" method on the returned Request to send the API call to the service.
  837. // the "output" return value is not valid until after Send returns without error.
  838. //
  839. // See CreateApplication for more information on using the CreateApplication
  840. // API call, and error handling.
  841. //
  842. // This method is useful when you want to inject custom logic or configuration
  843. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  844. //
  845. //
  846. // // Example sending a request using the CreateApplicationRequest method.
  847. // req, resp := client.CreateApplicationRequest(params)
  848. //
  849. // err := req.Send()
  850. // if err == nil { // resp is now filled
  851. // fmt.Println(resp)
  852. // }
  853. //
  854. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication
  855. func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
  856. op := &request.Operation{
  857. Name: opCreateApplication,
  858. HTTPMethod: "POST",
  859. HTTPPath: "/",
  860. }
  861. if input == nil {
  862. input = &CreateApplicationInput{}
  863. }
  864. output = &CreateApplicationOutput{}
  865. req = c.newRequest(op, input, output)
  866. return
  867. }
  868. // CreateApplication API operation for AWS CodeDeploy.
  869. //
  870. // Creates an application.
  871. //
  872. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  873. // with awserr.Error's Code and Message methods to get detailed information about
  874. // the error.
  875. //
  876. // See the AWS API reference guide for AWS CodeDeploy's
  877. // API operation CreateApplication for usage and error information.
  878. //
  879. // Returned Error Codes:
  880. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  881. // The minimum number of required application names was not specified.
  882. //
  883. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  884. // The application name was specified in an invalid format.
  885. //
  886. // * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException"
  887. // An application with the specified name with the IAM user or AWS account already
  888. // exists.
  889. //
  890. // * ErrCodeApplicationLimitExceededException "ApplicationLimitExceededException"
  891. // More applications were attempted to be created than are allowed.
  892. //
  893. // * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException"
  894. // The computePlatform is invalid. The computePlatform should be Lambda or Server.
  895. //
  896. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication
  897. func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
  898. req, out := c.CreateApplicationRequest(input)
  899. return out, req.Send()
  900. }
  901. // CreateApplicationWithContext is the same as CreateApplication with the addition of
  902. // the ability to pass a context and additional request options.
  903. //
  904. // See CreateApplication for details on how to use this API operation.
  905. //
  906. // The context must be non-nil and will be used for request cancellation. If
  907. // the context is nil a panic will occur. In the future the SDK may create
  908. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  909. // for more information on using Contexts.
  910. func (c *CodeDeploy) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) {
  911. req, out := c.CreateApplicationRequest(input)
  912. req.SetContext(ctx)
  913. req.ApplyOptions(opts...)
  914. return out, req.Send()
  915. }
  916. const opCreateDeployment = "CreateDeployment"
  917. // CreateDeploymentRequest generates a "aws/request.Request" representing the
  918. // client's request for the CreateDeployment operation. The "output" return
  919. // value will be populated with the request's response once the request completes
  920. // successfully.
  921. //
  922. // Use "Send" method on the returned Request to send the API call to the service.
  923. // the "output" return value is not valid until after Send returns without error.
  924. //
  925. // See CreateDeployment for more information on using the CreateDeployment
  926. // API call, and error handling.
  927. //
  928. // This method is useful when you want to inject custom logic or configuration
  929. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  930. //
  931. //
  932. // // Example sending a request using the CreateDeploymentRequest method.
  933. // req, resp := client.CreateDeploymentRequest(params)
  934. //
  935. // err := req.Send()
  936. // if err == nil { // resp is now filled
  937. // fmt.Println(resp)
  938. // }
  939. //
  940. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment
  941. func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
  942. op := &request.Operation{
  943. Name: opCreateDeployment,
  944. HTTPMethod: "POST",
  945. HTTPPath: "/",
  946. }
  947. if input == nil {
  948. input = &CreateDeploymentInput{}
  949. }
  950. output = &CreateDeploymentOutput{}
  951. req = c.newRequest(op, input, output)
  952. return
  953. }
  954. // CreateDeployment API operation for AWS CodeDeploy.
  955. //
  956. // Deploys an application revision through the specified deployment group.
  957. //
  958. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  959. // with awserr.Error's Code and Message methods to get detailed information about
  960. // the error.
  961. //
  962. // See the AWS API reference guide for AWS CodeDeploy's
  963. // API operation CreateDeployment for usage and error information.
  964. //
  965. // Returned Error Codes:
  966. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  967. // The minimum number of required application names was not specified.
  968. //
  969. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  970. // The application name was specified in an invalid format.
  971. //
  972. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  973. // The application does not exist with the IAM user or AWS account.
  974. //
  975. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  976. // The deployment group name was not specified.
  977. //
  978. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  979. // The deployment group name was specified in an invalid format.
  980. //
  981. // * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
  982. // The named deployment group with the IAM user or AWS account does not exist.
  983. //
  984. // * ErrCodeRevisionRequiredException "RevisionRequiredException"
  985. // The revision ID was not specified.
  986. //
  987. // * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException"
  988. // The named revision does not exist with the IAM user or AWS account.
  989. //
  990. // * ErrCodeInvalidRevisionException "InvalidRevisionException"
  991. // The revision was specified in an invalid format.
  992. //
  993. // * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
  994. // The deployment configuration name was specified in an invalid format.
  995. //
  996. // * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
  997. // The deployment configuration does not exist with the IAM user or AWS account.
  998. //
  999. // * ErrCodeDescriptionTooLongException "DescriptionTooLongException"
  1000. // The description is too long.
  1001. //
  1002. // * ErrCodeDeploymentLimitExceededException "DeploymentLimitExceededException"
  1003. // The number of allowed deployments was exceeded.
  1004. //
  1005. // * ErrCodeInvalidTargetInstancesException "InvalidTargetInstancesException"
  1006. // The target instance configuration is invalid. Possible causes include:
  1007. //
  1008. // * Configuration data for target instances was entered for an in-place
  1009. // deployment.
  1010. //
  1011. // * The limit of 10 tags for a tag type was exceeded.
  1012. //
  1013. // * The combined length of the tag names exceeded the limit.
  1014. //
  1015. // * A specified tag is not currently applied to any instances.
  1016. //
  1017. // * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException"
  1018. // The automatic rollback configuration was specified in an invalid format.
  1019. // For example, automatic rollback is enabled, but an invalid triggering event
  1020. // type or no event types were listed.
  1021. //
  1022. // * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException"
  1023. // An invalid load balancer name, or no load balancer name, was specified.
  1024. //
  1025. // * ErrCodeInvalidFileExistsBehaviorException "InvalidFileExistsBehaviorException"
  1026. // An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy
  1027. // handles files or directories that already exist in a deployment target location,
  1028. // but weren't part of the previous successful deployment. Valid values include
  1029. // "DISALLOW," "OVERWRITE," and "RETAIN."
  1030. //
  1031. // * ErrCodeInvalidRoleException "InvalidRoleException"
  1032. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  1033. // group was specified, the specified service role does not grant the appropriate
  1034. // permissions to Amazon EC2 Auto Scaling.
  1035. //
  1036. // * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException"
  1037. // The Auto Scaling group was specified in an invalid format or does not exist.
  1038. //
  1039. // * ErrCodeThrottlingException "ThrottlingException"
  1040. // An API function was called too frequently.
  1041. //
  1042. // * ErrCodeInvalidUpdateOutdatedInstancesOnlyValueException "InvalidUpdateOutdatedInstancesOnlyValueException"
  1043. // The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments,
  1044. // false is expected. For EC2/On-premises deployments, true or false is expected.
  1045. //
  1046. // * ErrCodeInvalidIgnoreApplicationStopFailuresValueException "InvalidIgnoreApplicationStopFailuresValueException"
  1047. // The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments,
  1048. // false is expected. For EC2/On-premises deployments, true or false is expected.
  1049. //
  1050. // * ErrCodeInvalidGitHubAccountTokenException "InvalidGitHubAccountTokenException"
  1051. // The GitHub token is not valid.
  1052. //
  1053. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment
  1054. func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
  1055. req, out := c.CreateDeploymentRequest(input)
  1056. return out, req.Send()
  1057. }
  1058. // CreateDeploymentWithContext is the same as CreateDeployment with the addition of
  1059. // the ability to pass a context and additional request options.
  1060. //
  1061. // See CreateDeployment for details on how to use this API operation.
  1062. //
  1063. // The context must be non-nil and will be used for request cancellation. If
  1064. // the context is nil a panic will occur. In the future the SDK may create
  1065. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1066. // for more information on using Contexts.
  1067. func (c *CodeDeploy) CreateDeploymentWithContext(ctx aws.Context, input *CreateDeploymentInput, opts ...request.Option) (*CreateDeploymentOutput, error) {
  1068. req, out := c.CreateDeploymentRequest(input)
  1069. req.SetContext(ctx)
  1070. req.ApplyOptions(opts...)
  1071. return out, req.Send()
  1072. }
  1073. const opCreateDeploymentConfig = "CreateDeploymentConfig"
  1074. // CreateDeploymentConfigRequest generates a "aws/request.Request" representing the
  1075. // client's request for the CreateDeploymentConfig operation. The "output" return
  1076. // value will be populated with the request's response once the request completes
  1077. // successfully.
  1078. //
  1079. // Use "Send" method on the returned Request to send the API call to the service.
  1080. // the "output" return value is not valid until after Send returns without error.
  1081. //
  1082. // See CreateDeploymentConfig for more information on using the CreateDeploymentConfig
  1083. // API call, and error handling.
  1084. //
  1085. // This method is useful when you want to inject custom logic or configuration
  1086. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1087. //
  1088. //
  1089. // // Example sending a request using the CreateDeploymentConfigRequest method.
  1090. // req, resp := client.CreateDeploymentConfigRequest(params)
  1091. //
  1092. // err := req.Send()
  1093. // if err == nil { // resp is now filled
  1094. // fmt.Println(resp)
  1095. // }
  1096. //
  1097. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig
  1098. func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput) {
  1099. op := &request.Operation{
  1100. Name: opCreateDeploymentConfig,
  1101. HTTPMethod: "POST",
  1102. HTTPPath: "/",
  1103. }
  1104. if input == nil {
  1105. input = &CreateDeploymentConfigInput{}
  1106. }
  1107. output = &CreateDeploymentConfigOutput{}
  1108. req = c.newRequest(op, input, output)
  1109. return
  1110. }
  1111. // CreateDeploymentConfig API operation for AWS CodeDeploy.
  1112. //
  1113. // Creates a deployment configuration.
  1114. //
  1115. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1116. // with awserr.Error's Code and Message methods to get detailed information about
  1117. // the error.
  1118. //
  1119. // See the AWS API reference guide for AWS CodeDeploy's
  1120. // API operation CreateDeploymentConfig for usage and error information.
  1121. //
  1122. // Returned Error Codes:
  1123. // * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
  1124. // The deployment configuration name was specified in an invalid format.
  1125. //
  1126. // * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException"
  1127. // The deployment configuration name was not specified.
  1128. //
  1129. // * ErrCodeDeploymentConfigAlreadyExistsException "DeploymentConfigAlreadyExistsException"
  1130. // A deployment configuration with the specified name with the IAM user or AWS
  1131. // account already exists .
  1132. //
  1133. // * ErrCodeInvalidMinimumHealthyHostValueException "InvalidMinimumHealthyHostValueException"
  1134. // The minimum healthy instance value was specified in an invalid format.
  1135. //
  1136. // * ErrCodeDeploymentConfigLimitExceededException "DeploymentConfigLimitExceededException"
  1137. // The deployment configurations limit was exceeded.
  1138. //
  1139. // * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException"
  1140. // The computePlatform is invalid. The computePlatform should be Lambda or Server.
  1141. //
  1142. // * ErrCodeInvalidTrafficRoutingConfigurationException "InvalidTrafficRoutingConfigurationException"
  1143. // The configuration that specifies how traffic is routed during a deployment
  1144. // is invalid.
  1145. //
  1146. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig
  1147. func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) {
  1148. req, out := c.CreateDeploymentConfigRequest(input)
  1149. return out, req.Send()
  1150. }
  1151. // CreateDeploymentConfigWithContext is the same as CreateDeploymentConfig with the addition of
  1152. // the ability to pass a context and additional request options.
  1153. //
  1154. // See CreateDeploymentConfig for details on how to use this API operation.
  1155. //
  1156. // The context must be non-nil and will be used for request cancellation. If
  1157. // the context is nil a panic will occur. In the future the SDK may create
  1158. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1159. // for more information on using Contexts.
  1160. func (c *CodeDeploy) CreateDeploymentConfigWithContext(ctx aws.Context, input *CreateDeploymentConfigInput, opts ...request.Option) (*CreateDeploymentConfigOutput, error) {
  1161. req, out := c.CreateDeploymentConfigRequest(input)
  1162. req.SetContext(ctx)
  1163. req.ApplyOptions(opts...)
  1164. return out, req.Send()
  1165. }
  1166. const opCreateDeploymentGroup = "CreateDeploymentGroup"
  1167. // CreateDeploymentGroupRequest generates a "aws/request.Request" representing the
  1168. // client's request for the CreateDeploymentGroup operation. The "output" return
  1169. // value will be populated with the request's response once the request completes
  1170. // successfully.
  1171. //
  1172. // Use "Send" method on the returned Request to send the API call to the service.
  1173. // the "output" return value is not valid until after Send returns without error.
  1174. //
  1175. // See CreateDeploymentGroup for more information on using the CreateDeploymentGroup
  1176. // API call, and error handling.
  1177. //
  1178. // This method is useful when you want to inject custom logic or configuration
  1179. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1180. //
  1181. //
  1182. // // Example sending a request using the CreateDeploymentGroupRequest method.
  1183. // req, resp := client.CreateDeploymentGroupRequest(params)
  1184. //
  1185. // err := req.Send()
  1186. // if err == nil { // resp is now filled
  1187. // fmt.Println(resp)
  1188. // }
  1189. //
  1190. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup
  1191. func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput) {
  1192. op := &request.Operation{
  1193. Name: opCreateDeploymentGroup,
  1194. HTTPMethod: "POST",
  1195. HTTPPath: "/",
  1196. }
  1197. if input == nil {
  1198. input = &CreateDeploymentGroupInput{}
  1199. }
  1200. output = &CreateDeploymentGroupOutput{}
  1201. req = c.newRequest(op, input, output)
  1202. return
  1203. }
  1204. // CreateDeploymentGroup API operation for AWS CodeDeploy.
  1205. //
  1206. // Creates a deployment group to which application revisions are deployed.
  1207. //
  1208. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1209. // with awserr.Error's Code and Message methods to get detailed information about
  1210. // the error.
  1211. //
  1212. // See the AWS API reference guide for AWS CodeDeploy's
  1213. // API operation CreateDeploymentGroup for usage and error information.
  1214. //
  1215. // Returned Error Codes:
  1216. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  1217. // The minimum number of required application names was not specified.
  1218. //
  1219. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  1220. // The application name was specified in an invalid format.
  1221. //
  1222. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  1223. // The application does not exist with the IAM user or AWS account.
  1224. //
  1225. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  1226. // The deployment group name was not specified.
  1227. //
  1228. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  1229. // The deployment group name was specified in an invalid format.
  1230. //
  1231. // * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException"
  1232. // A deployment group with the specified name with the IAM user or AWS account
  1233. // already exists.
  1234. //
  1235. // * ErrCodeInvalidEC2TagException "InvalidEC2TagException"
  1236. // The tag was specified in an invalid format.
  1237. //
  1238. // * ErrCodeInvalidTagException "InvalidTagException"
  1239. // The tag was specified in an invalid format.
  1240. //
  1241. // * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException"
  1242. // The Auto Scaling group was specified in an invalid format or does not exist.
  1243. //
  1244. // * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
  1245. // The deployment configuration name was specified in an invalid format.
  1246. //
  1247. // * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
  1248. // The deployment configuration does not exist with the IAM user or AWS account.
  1249. //
  1250. // * ErrCodeRoleRequiredException "RoleRequiredException"
  1251. // The role ID was not specified.
  1252. //
  1253. // * ErrCodeInvalidRoleException "InvalidRoleException"
  1254. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  1255. // group was specified, the specified service role does not grant the appropriate
  1256. // permissions to Amazon EC2 Auto Scaling.
  1257. //
  1258. // * ErrCodeDeploymentGroupLimitExceededException "DeploymentGroupLimitExceededException"
  1259. // The deployment groups limit was exceeded.
  1260. //
  1261. // * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException"
  1262. // The limit for lifecycle hooks was exceeded.
  1263. //
  1264. // * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException"
  1265. // The trigger was specified in an invalid format.
  1266. //
  1267. // * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException"
  1268. // The maximum allowed number of triggers was exceeded.
  1269. //
  1270. // * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException"
  1271. // The format of the alarm configuration is invalid. Possible causes include:
  1272. //
  1273. // * The alarm list is null.
  1274. //
  1275. // * The alarm object is null.
  1276. //
  1277. // * The alarm name is empty or null or exceeds the limit of 255 characters.
  1278. //
  1279. // * Two alarms with the same name have been specified.
  1280. //
  1281. // * The alarm configuration is enabled, but the alarm list is empty.
  1282. //
  1283. // * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException"
  1284. // The maximum number of alarms for a deployment group (10) was exceeded.
  1285. //
  1286. // * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException"
  1287. // The automatic rollback configuration was specified in an invalid format.
  1288. // For example, automatic rollback is enabled, but an invalid triggering event
  1289. // type or no event types were listed.
  1290. //
  1291. // * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException"
  1292. // An invalid load balancer name, or no load balancer name, was specified.
  1293. //
  1294. // * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException"
  1295. // An invalid deployment style was specified. Valid deployment types include
  1296. // "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL"
  1297. // and "WITHOUT_TRAFFIC_CONTROL."
  1298. //
  1299. // * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException"
  1300. // The configuration for the blue/green deployment group was provided in an
  1301. // invalid format. For information about deployment configuration format, see
  1302. // CreateDeploymentConfig.
  1303. //
  1304. // * ErrCodeInvalidEC2TagCombinationException "InvalidEC2TagCombinationException"
  1305. // A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but
  1306. // only one of these data types can be used in a single call.
  1307. //
  1308. // * ErrCodeInvalidOnPremisesTagCombinationException "InvalidOnPremisesTagCombinationException"
  1309. // A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet,
  1310. // but only one of these data types can be used in a single call.
  1311. //
  1312. // * ErrCodeTagSetListLimitExceededException "TagSetListLimitExceededException"
  1313. // The number of tag groups included in the tag set list exceeded the maximum
  1314. // allowed limit of 3.
  1315. //
  1316. // * ErrCodeInvalidInputException "InvalidInputException"
  1317. // The input was specified in an invalid format.
  1318. //
  1319. // * ErrCodeThrottlingException "ThrottlingException"
  1320. // An API function was called too frequently.
  1321. //
  1322. // * ErrCodeInvalidECSServiceException "InvalidECSServiceException"
  1323. // The Amazon ECS service identifier is not valid.
  1324. //
  1325. // * ErrCodeInvalidTargetGroupPairException "InvalidTargetGroupPairException"
  1326. // A target group pair associated with this deployment is not valid.
  1327. //
  1328. // * ErrCodeECSServiceMappingLimitExceededException "ECSServiceMappingLimitExceededException"
  1329. // The Amazon ECS service is associated with more than one deployment groups.
  1330. // An Amazon ECS service can be associated with only one deployment group.
  1331. //
  1332. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup
  1333. func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) {
  1334. req, out := c.CreateDeploymentGroupRequest(input)
  1335. return out, req.Send()
  1336. }
  1337. // CreateDeploymentGroupWithContext is the same as CreateDeploymentGroup with the addition of
  1338. // the ability to pass a context and additional request options.
  1339. //
  1340. // See CreateDeploymentGroup for details on how to use this API operation.
  1341. //
  1342. // The context must be non-nil and will be used for request cancellation. If
  1343. // the context is nil a panic will occur. In the future the SDK may create
  1344. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1345. // for more information on using Contexts.
  1346. func (c *CodeDeploy) CreateDeploymentGroupWithContext(ctx aws.Context, input *CreateDeploymentGroupInput, opts ...request.Option) (*CreateDeploymentGroupOutput, error) {
  1347. req, out := c.CreateDeploymentGroupRequest(input)
  1348. req.SetContext(ctx)
  1349. req.ApplyOptions(opts...)
  1350. return out, req.Send()
  1351. }
  1352. const opDeleteApplication = "DeleteApplication"
  1353. // DeleteApplicationRequest generates a "aws/request.Request" representing the
  1354. // client's request for the DeleteApplication operation. The "output" return
  1355. // value will be populated with the request's response once the request completes
  1356. // successfully.
  1357. //
  1358. // Use "Send" method on the returned Request to send the API call to the service.
  1359. // the "output" return value is not valid until after Send returns without error.
  1360. //
  1361. // See DeleteApplication for more information on using the DeleteApplication
  1362. // API call, and error handling.
  1363. //
  1364. // This method is useful when you want to inject custom logic or configuration
  1365. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1366. //
  1367. //
  1368. // // Example sending a request using the DeleteApplicationRequest method.
  1369. // req, resp := client.DeleteApplicationRequest(params)
  1370. //
  1371. // err := req.Send()
  1372. // if err == nil { // resp is now filled
  1373. // fmt.Println(resp)
  1374. // }
  1375. //
  1376. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication
  1377. func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
  1378. op := &request.Operation{
  1379. Name: opDeleteApplication,
  1380. HTTPMethod: "POST",
  1381. HTTPPath: "/",
  1382. }
  1383. if input == nil {
  1384. input = &DeleteApplicationInput{}
  1385. }
  1386. output = &DeleteApplicationOutput{}
  1387. req = c.newRequest(op, input, output)
  1388. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1389. return
  1390. }
  1391. // DeleteApplication API operation for AWS CodeDeploy.
  1392. //
  1393. // Deletes an application.
  1394. //
  1395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1396. // with awserr.Error's Code and Message methods to get detailed information about
  1397. // the error.
  1398. //
  1399. // See the AWS API reference guide for AWS CodeDeploy's
  1400. // API operation DeleteApplication for usage and error information.
  1401. //
  1402. // Returned Error Codes:
  1403. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  1404. // The minimum number of required application names was not specified.
  1405. //
  1406. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  1407. // The application name was specified in an invalid format.
  1408. //
  1409. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication
  1410. func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
  1411. req, out := c.DeleteApplicationRequest(input)
  1412. return out, req.Send()
  1413. }
  1414. // DeleteApplicationWithContext is the same as DeleteApplication with the addition of
  1415. // the ability to pass a context and additional request options.
  1416. //
  1417. // See DeleteApplication for details on how to use this API operation.
  1418. //
  1419. // The context must be non-nil and will be used for request cancellation. If
  1420. // the context is nil a panic will occur. In the future the SDK may create
  1421. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1422. // for more information on using Contexts.
  1423. func (c *CodeDeploy) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) {
  1424. req, out := c.DeleteApplicationRequest(input)
  1425. req.SetContext(ctx)
  1426. req.ApplyOptions(opts...)
  1427. return out, req.Send()
  1428. }
  1429. const opDeleteDeploymentConfig = "DeleteDeploymentConfig"
  1430. // DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the
  1431. // client's request for the DeleteDeploymentConfig operation. The "output" return
  1432. // value will be populated with the request's response once the request completes
  1433. // successfully.
  1434. //
  1435. // Use "Send" method on the returned Request to send the API call to the service.
  1436. // the "output" return value is not valid until after Send returns without error.
  1437. //
  1438. // See DeleteDeploymentConfig for more information on using the DeleteDeploymentConfig
  1439. // API call, and error handling.
  1440. //
  1441. // This method is useful when you want to inject custom logic or configuration
  1442. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1443. //
  1444. //
  1445. // // Example sending a request using the DeleteDeploymentConfigRequest method.
  1446. // req, resp := client.DeleteDeploymentConfigRequest(params)
  1447. //
  1448. // err := req.Send()
  1449. // if err == nil { // resp is now filled
  1450. // fmt.Println(resp)
  1451. // }
  1452. //
  1453. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig
  1454. func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput) {
  1455. op := &request.Operation{
  1456. Name: opDeleteDeploymentConfig,
  1457. HTTPMethod: "POST",
  1458. HTTPPath: "/",
  1459. }
  1460. if input == nil {
  1461. input = &DeleteDeploymentConfigInput{}
  1462. }
  1463. output = &DeleteDeploymentConfigOutput{}
  1464. req = c.newRequest(op, input, output)
  1465. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1466. return
  1467. }
  1468. // DeleteDeploymentConfig API operation for AWS CodeDeploy.
  1469. //
  1470. // Deletes a deployment configuration.
  1471. //
  1472. // A deployment configuration cannot be deleted if it is currently in use. Predefined
  1473. // configurations cannot be deleted.
  1474. //
  1475. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1476. // with awserr.Error's Code and Message methods to get detailed information about
  1477. // the error.
  1478. //
  1479. // See the AWS API reference guide for AWS CodeDeploy's
  1480. // API operation DeleteDeploymentConfig for usage and error information.
  1481. //
  1482. // Returned Error Codes:
  1483. // * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
  1484. // The deployment configuration name was specified in an invalid format.
  1485. //
  1486. // * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException"
  1487. // The deployment configuration name was not specified.
  1488. //
  1489. // * ErrCodeDeploymentConfigInUseException "DeploymentConfigInUseException"
  1490. // The deployment configuration is still in use.
  1491. //
  1492. // * ErrCodeInvalidOperationException "InvalidOperationException"
  1493. // An invalid operation was detected.
  1494. //
  1495. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig
  1496. func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) {
  1497. req, out := c.DeleteDeploymentConfigRequest(input)
  1498. return out, req.Send()
  1499. }
  1500. // DeleteDeploymentConfigWithContext is the same as DeleteDeploymentConfig with the addition of
  1501. // the ability to pass a context and additional request options.
  1502. //
  1503. // See DeleteDeploymentConfig for details on how to use this API operation.
  1504. //
  1505. // The context must be non-nil and will be used for request cancellation. If
  1506. // the context is nil a panic will occur. In the future the SDK may create
  1507. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1508. // for more information on using Contexts.
  1509. func (c *CodeDeploy) DeleteDeploymentConfigWithContext(ctx aws.Context, input *DeleteDeploymentConfigInput, opts ...request.Option) (*DeleteDeploymentConfigOutput, error) {
  1510. req, out := c.DeleteDeploymentConfigRequest(input)
  1511. req.SetContext(ctx)
  1512. req.ApplyOptions(opts...)
  1513. return out, req.Send()
  1514. }
  1515. const opDeleteDeploymentGroup = "DeleteDeploymentGroup"
  1516. // DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the
  1517. // client's request for the DeleteDeploymentGroup operation. The "output" return
  1518. // value will be populated with the request's response once the request completes
  1519. // successfully.
  1520. //
  1521. // Use "Send" method on the returned Request to send the API call to the service.
  1522. // the "output" return value is not valid until after Send returns without error.
  1523. //
  1524. // See DeleteDeploymentGroup for more information on using the DeleteDeploymentGroup
  1525. // API call, and error handling.
  1526. //
  1527. // This method is useful when you want to inject custom logic or configuration
  1528. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1529. //
  1530. //
  1531. // // Example sending a request using the DeleteDeploymentGroupRequest method.
  1532. // req, resp := client.DeleteDeploymentGroupRequest(params)
  1533. //
  1534. // err := req.Send()
  1535. // if err == nil { // resp is now filled
  1536. // fmt.Println(resp)
  1537. // }
  1538. //
  1539. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup
  1540. func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput) {
  1541. op := &request.Operation{
  1542. Name: opDeleteDeploymentGroup,
  1543. HTTPMethod: "POST",
  1544. HTTPPath: "/",
  1545. }
  1546. if input == nil {
  1547. input = &DeleteDeploymentGroupInput{}
  1548. }
  1549. output = &DeleteDeploymentGroupOutput{}
  1550. req = c.newRequest(op, input, output)
  1551. return
  1552. }
  1553. // DeleteDeploymentGroup API operation for AWS CodeDeploy.
  1554. //
  1555. // Deletes a deployment group.
  1556. //
  1557. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1558. // with awserr.Error's Code and Message methods to get detailed information about
  1559. // the error.
  1560. //
  1561. // See the AWS API reference guide for AWS CodeDeploy's
  1562. // API operation DeleteDeploymentGroup for usage and error information.
  1563. //
  1564. // Returned Error Codes:
  1565. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  1566. // The minimum number of required application names was not specified.
  1567. //
  1568. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  1569. // The application name was specified in an invalid format.
  1570. //
  1571. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  1572. // The deployment group name was not specified.
  1573. //
  1574. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  1575. // The deployment group name was specified in an invalid format.
  1576. //
  1577. // * ErrCodeInvalidRoleException "InvalidRoleException"
  1578. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  1579. // group was specified, the specified service role does not grant the appropriate
  1580. // permissions to Amazon EC2 Auto Scaling.
  1581. //
  1582. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup
  1583. func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) {
  1584. req, out := c.DeleteDeploymentGroupRequest(input)
  1585. return out, req.Send()
  1586. }
  1587. // DeleteDeploymentGroupWithContext is the same as DeleteDeploymentGroup with the addition of
  1588. // the ability to pass a context and additional request options.
  1589. //
  1590. // See DeleteDeploymentGroup for details on how to use this API operation.
  1591. //
  1592. // The context must be non-nil and will be used for request cancellation. If
  1593. // the context is nil a panic will occur. In the future the SDK may create
  1594. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1595. // for more information on using Contexts.
  1596. func (c *CodeDeploy) DeleteDeploymentGroupWithContext(ctx aws.Context, input *DeleteDeploymentGroupInput, opts ...request.Option) (*DeleteDeploymentGroupOutput, error) {
  1597. req, out := c.DeleteDeploymentGroupRequest(input)
  1598. req.SetContext(ctx)
  1599. req.ApplyOptions(opts...)
  1600. return out, req.Send()
  1601. }
  1602. const opDeleteGitHubAccountToken = "DeleteGitHubAccountToken"
  1603. // DeleteGitHubAccountTokenRequest generates a "aws/request.Request" representing the
  1604. // client's request for the DeleteGitHubAccountToken operation. The "output" return
  1605. // value will be populated with the request's response once the request completes
  1606. // successfully.
  1607. //
  1608. // Use "Send" method on the returned Request to send the API call to the service.
  1609. // the "output" return value is not valid until after Send returns without error.
  1610. //
  1611. // See DeleteGitHubAccountToken for more information on using the DeleteGitHubAccountToken
  1612. // API call, and error handling.
  1613. //
  1614. // This method is useful when you want to inject custom logic or configuration
  1615. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1616. //
  1617. //
  1618. // // Example sending a request using the DeleteGitHubAccountTokenRequest method.
  1619. // req, resp := client.DeleteGitHubAccountTokenRequest(params)
  1620. //
  1621. // err := req.Send()
  1622. // if err == nil { // resp is now filled
  1623. // fmt.Println(resp)
  1624. // }
  1625. //
  1626. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountToken
  1627. func (c *CodeDeploy) DeleteGitHubAccountTokenRequest(input *DeleteGitHubAccountTokenInput) (req *request.Request, output *DeleteGitHubAccountTokenOutput) {
  1628. op := &request.Operation{
  1629. Name: opDeleteGitHubAccountToken,
  1630. HTTPMethod: "POST",
  1631. HTTPPath: "/",
  1632. }
  1633. if input == nil {
  1634. input = &DeleteGitHubAccountTokenInput{}
  1635. }
  1636. output = &DeleteGitHubAccountTokenOutput{}
  1637. req = c.newRequest(op, input, output)
  1638. return
  1639. }
  1640. // DeleteGitHubAccountToken API operation for AWS CodeDeploy.
  1641. //
  1642. // Deletes a GitHub account connection.
  1643. //
  1644. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1645. // with awserr.Error's Code and Message methods to get detailed information about
  1646. // the error.
  1647. //
  1648. // See the AWS API reference guide for AWS CodeDeploy's
  1649. // API operation DeleteGitHubAccountToken for usage and error information.
  1650. //
  1651. // Returned Error Codes:
  1652. // * ErrCodeGitHubAccountTokenNameRequiredException "GitHubAccountTokenNameRequiredException"
  1653. // The call is missing a required GitHub account connection name.
  1654. //
  1655. // * ErrCodeGitHubAccountTokenDoesNotExistException "GitHubAccountTokenDoesNotExistException"
  1656. // No GitHub account connection exists with the named specified in the call.
  1657. //
  1658. // * ErrCodeInvalidGitHubAccountTokenNameException "InvalidGitHubAccountTokenNameException"
  1659. // The format of the specified GitHub account connection name is invalid.
  1660. //
  1661. // * ErrCodeResourceValidationException "ResourceValidationException"
  1662. // The specified resource could not be validated.
  1663. //
  1664. // * ErrCodeOperationNotSupportedException "OperationNotSupportedException"
  1665. // The API used does not support the deployment.
  1666. //
  1667. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountToken
  1668. func (c *CodeDeploy) DeleteGitHubAccountToken(input *DeleteGitHubAccountTokenInput) (*DeleteGitHubAccountTokenOutput, error) {
  1669. req, out := c.DeleteGitHubAccountTokenRequest(input)
  1670. return out, req.Send()
  1671. }
  1672. // DeleteGitHubAccountTokenWithContext is the same as DeleteGitHubAccountToken with the addition of
  1673. // the ability to pass a context and additional request options.
  1674. //
  1675. // See DeleteGitHubAccountToken for details on how to use this API operation.
  1676. //
  1677. // The context must be non-nil and will be used for request cancellation. If
  1678. // the context is nil a panic will occur. In the future the SDK may create
  1679. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1680. // for more information on using Contexts.
  1681. func (c *CodeDeploy) DeleteGitHubAccountTokenWithContext(ctx aws.Context, input *DeleteGitHubAccountTokenInput, opts ...request.Option) (*DeleteGitHubAccountTokenOutput, error) {
  1682. req, out := c.DeleteGitHubAccountTokenRequest(input)
  1683. req.SetContext(ctx)
  1684. req.ApplyOptions(opts...)
  1685. return out, req.Send()
  1686. }
  1687. const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance"
  1688. // DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  1689. // client's request for the DeregisterOnPremisesInstance operation. The "output" return
  1690. // value will be populated with the request's response once the request completes
  1691. // successfully.
  1692. //
  1693. // Use "Send" method on the returned Request to send the API call to the service.
  1694. // the "output" return value is not valid until after Send returns without error.
  1695. //
  1696. // See DeregisterOnPremisesInstance for more information on using the DeregisterOnPremisesInstance
  1697. // API call, and error handling.
  1698. //
  1699. // This method is useful when you want to inject custom logic or configuration
  1700. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1701. //
  1702. //
  1703. // // Example sending a request using the DeregisterOnPremisesInstanceRequest method.
  1704. // req, resp := client.DeregisterOnPremisesInstanceRequest(params)
  1705. //
  1706. // err := req.Send()
  1707. // if err == nil { // resp is now filled
  1708. // fmt.Println(resp)
  1709. // }
  1710. //
  1711. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance
  1712. func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput) {
  1713. op := &request.Operation{
  1714. Name: opDeregisterOnPremisesInstance,
  1715. HTTPMethod: "POST",
  1716. HTTPPath: "/",
  1717. }
  1718. if input == nil {
  1719. input = &DeregisterOnPremisesInstanceInput{}
  1720. }
  1721. output = &DeregisterOnPremisesInstanceOutput{}
  1722. req = c.newRequest(op, input, output)
  1723. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1724. return
  1725. }
  1726. // DeregisterOnPremisesInstance API operation for AWS CodeDeploy.
  1727. //
  1728. // Deregisters an on-premises instance.
  1729. //
  1730. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1731. // with awserr.Error's Code and Message methods to get detailed information about
  1732. // the error.
  1733. //
  1734. // See the AWS API reference guide for AWS CodeDeploy's
  1735. // API operation DeregisterOnPremisesInstance for usage and error information.
  1736. //
  1737. // Returned Error Codes:
  1738. // * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
  1739. // An on-premises instance name was not specified.
  1740. //
  1741. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  1742. // The on-premises instance name was specified in an invalid format.
  1743. //
  1744. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance
  1745. func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) {
  1746. req, out := c.DeregisterOnPremisesInstanceRequest(input)
  1747. return out, req.Send()
  1748. }
  1749. // DeregisterOnPremisesInstanceWithContext is the same as DeregisterOnPremisesInstance with the addition of
  1750. // the ability to pass a context and additional request options.
  1751. //
  1752. // See DeregisterOnPremisesInstance for details on how to use this API operation.
  1753. //
  1754. // The context must be non-nil and will be used for request cancellation. If
  1755. // the context is nil a panic will occur. In the future the SDK may create
  1756. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1757. // for more information on using Contexts.
  1758. func (c *CodeDeploy) DeregisterOnPremisesInstanceWithContext(ctx aws.Context, input *DeregisterOnPremisesInstanceInput, opts ...request.Option) (*DeregisterOnPremisesInstanceOutput, error) {
  1759. req, out := c.DeregisterOnPremisesInstanceRequest(input)
  1760. req.SetContext(ctx)
  1761. req.ApplyOptions(opts...)
  1762. return out, req.Send()
  1763. }
  1764. const opGetApplication = "GetApplication"
  1765. // GetApplicationRequest generates a "aws/request.Request" representing the
  1766. // client's request for the GetApplication operation. The "output" return
  1767. // value will be populated with the request's response once the request completes
  1768. // successfully.
  1769. //
  1770. // Use "Send" method on the returned Request to send the API call to the service.
  1771. // the "output" return value is not valid until after Send returns without error.
  1772. //
  1773. // See GetApplication for more information on using the GetApplication
  1774. // API call, and error handling.
  1775. //
  1776. // This method is useful when you want to inject custom logic or configuration
  1777. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1778. //
  1779. //
  1780. // // Example sending a request using the GetApplicationRequest method.
  1781. // req, resp := client.GetApplicationRequest(params)
  1782. //
  1783. // err := req.Send()
  1784. // if err == nil { // resp is now filled
  1785. // fmt.Println(resp)
  1786. // }
  1787. //
  1788. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication
  1789. func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) {
  1790. op := &request.Operation{
  1791. Name: opGetApplication,
  1792. HTTPMethod: "POST",
  1793. HTTPPath: "/",
  1794. }
  1795. if input == nil {
  1796. input = &GetApplicationInput{}
  1797. }
  1798. output = &GetApplicationOutput{}
  1799. req = c.newRequest(op, input, output)
  1800. return
  1801. }
  1802. // GetApplication API operation for AWS CodeDeploy.
  1803. //
  1804. // Gets information about an application.
  1805. //
  1806. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1807. // with awserr.Error's Code and Message methods to get detailed information about
  1808. // the error.
  1809. //
  1810. // See the AWS API reference guide for AWS CodeDeploy's
  1811. // API operation GetApplication for usage and error information.
  1812. //
  1813. // Returned Error Codes:
  1814. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  1815. // The minimum number of required application names was not specified.
  1816. //
  1817. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  1818. // The application name was specified in an invalid format.
  1819. //
  1820. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  1821. // The application does not exist with the IAM user or AWS account.
  1822. //
  1823. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication
  1824. func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
  1825. req, out := c.GetApplicationRequest(input)
  1826. return out, req.Send()
  1827. }
  1828. // GetApplicationWithContext is the same as GetApplication with the addition of
  1829. // the ability to pass a context and additional request options.
  1830. //
  1831. // See GetApplication for details on how to use this API operation.
  1832. //
  1833. // The context must be non-nil and will be used for request cancellation. If
  1834. // the context is nil a panic will occur. In the future the SDK may create
  1835. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1836. // for more information on using Contexts.
  1837. func (c *CodeDeploy) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) {
  1838. req, out := c.GetApplicationRequest(input)
  1839. req.SetContext(ctx)
  1840. req.ApplyOptions(opts...)
  1841. return out, req.Send()
  1842. }
  1843. const opGetApplicationRevision = "GetApplicationRevision"
  1844. // GetApplicationRevisionRequest generates a "aws/request.Request" representing the
  1845. // client's request for the GetApplicationRevision operation. The "output" return
  1846. // value will be populated with the request's response once the request completes
  1847. // successfully.
  1848. //
  1849. // Use "Send" method on the returned Request to send the API call to the service.
  1850. // the "output" return value is not valid until after Send returns without error.
  1851. //
  1852. // See GetApplicationRevision for more information on using the GetApplicationRevision
  1853. // API call, and error handling.
  1854. //
  1855. // This method is useful when you want to inject custom logic or configuration
  1856. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1857. //
  1858. //
  1859. // // Example sending a request using the GetApplicationRevisionRequest method.
  1860. // req, resp := client.GetApplicationRevisionRequest(params)
  1861. //
  1862. // err := req.Send()
  1863. // if err == nil { // resp is now filled
  1864. // fmt.Println(resp)
  1865. // }
  1866. //
  1867. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision
  1868. func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput) {
  1869. op := &request.Operation{
  1870. Name: opGetApplicationRevision,
  1871. HTTPMethod: "POST",
  1872. HTTPPath: "/",
  1873. }
  1874. if input == nil {
  1875. input = &GetApplicationRevisionInput{}
  1876. }
  1877. output = &GetApplicationRevisionOutput{}
  1878. req = c.newRequest(op, input, output)
  1879. return
  1880. }
  1881. // GetApplicationRevision API operation for AWS CodeDeploy.
  1882. //
  1883. // Gets information about an application revision.
  1884. //
  1885. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1886. // with awserr.Error's Code and Message methods to get detailed information about
  1887. // the error.
  1888. //
  1889. // See the AWS API reference guide for AWS CodeDeploy's
  1890. // API operation GetApplicationRevision for usage and error information.
  1891. //
  1892. // Returned Error Codes:
  1893. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  1894. // The application does not exist with the IAM user or AWS account.
  1895. //
  1896. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  1897. // The minimum number of required application names was not specified.
  1898. //
  1899. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  1900. // The application name was specified in an invalid format.
  1901. //
  1902. // * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException"
  1903. // The named revision does not exist with the IAM user or AWS account.
  1904. //
  1905. // * ErrCodeRevisionRequiredException "RevisionRequiredException"
  1906. // The revision ID was not specified.
  1907. //
  1908. // * ErrCodeInvalidRevisionException "InvalidRevisionException"
  1909. // The revision was specified in an invalid format.
  1910. //
  1911. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision
  1912. func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) {
  1913. req, out := c.GetApplicationRevisionRequest(input)
  1914. return out, req.Send()
  1915. }
  1916. // GetApplicationRevisionWithContext is the same as GetApplicationRevision with the addition of
  1917. // the ability to pass a context and additional request options.
  1918. //
  1919. // See GetApplicationRevision for details on how to use this API operation.
  1920. //
  1921. // The context must be non-nil and will be used for request cancellation. If
  1922. // the context is nil a panic will occur. In the future the SDK may create
  1923. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1924. // for more information on using Contexts.
  1925. func (c *CodeDeploy) GetApplicationRevisionWithContext(ctx aws.Context, input *GetApplicationRevisionInput, opts ...request.Option) (*GetApplicationRevisionOutput, error) {
  1926. req, out := c.GetApplicationRevisionRequest(input)
  1927. req.SetContext(ctx)
  1928. req.ApplyOptions(opts...)
  1929. return out, req.Send()
  1930. }
  1931. const opGetDeployment = "GetDeployment"
  1932. // GetDeploymentRequest generates a "aws/request.Request" representing the
  1933. // client's request for the GetDeployment operation. The "output" return
  1934. // value will be populated with the request's response once the request completes
  1935. // successfully.
  1936. //
  1937. // Use "Send" method on the returned Request to send the API call to the service.
  1938. // the "output" return value is not valid until after Send returns without error.
  1939. //
  1940. // See GetDeployment for more information on using the GetDeployment
  1941. // API call, and error handling.
  1942. //
  1943. // This method is useful when you want to inject custom logic or configuration
  1944. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1945. //
  1946. //
  1947. // // Example sending a request using the GetDeploymentRequest method.
  1948. // req, resp := client.GetDeploymentRequest(params)
  1949. //
  1950. // err := req.Send()
  1951. // if err == nil { // resp is now filled
  1952. // fmt.Println(resp)
  1953. // }
  1954. //
  1955. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment
  1956. func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) {
  1957. op := &request.Operation{
  1958. Name: opGetDeployment,
  1959. HTTPMethod: "POST",
  1960. HTTPPath: "/",
  1961. }
  1962. if input == nil {
  1963. input = &GetDeploymentInput{}
  1964. }
  1965. output = &GetDeploymentOutput{}
  1966. req = c.newRequest(op, input, output)
  1967. return
  1968. }
  1969. // GetDeployment API operation for AWS CodeDeploy.
  1970. //
  1971. // Gets information about a deployment.
  1972. //
  1973. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1974. // with awserr.Error's Code and Message methods to get detailed information about
  1975. // the error.
  1976. //
  1977. // See the AWS API reference guide for AWS CodeDeploy's
  1978. // API operation GetDeployment for usage and error information.
  1979. //
  1980. // Returned Error Codes:
  1981. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  1982. // At least one deployment ID must be specified.
  1983. //
  1984. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  1985. // At least one of the deployment IDs was specified in an invalid format.
  1986. //
  1987. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  1988. // The deployment with the IAM user or AWS account does not exist.
  1989. //
  1990. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment
  1991. func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) {
  1992. req, out := c.GetDeploymentRequest(input)
  1993. return out, req.Send()
  1994. }
  1995. // GetDeploymentWithContext is the same as GetDeployment with the addition of
  1996. // the ability to pass a context and additional request options.
  1997. //
  1998. // See GetDeployment for details on how to use this API operation.
  1999. //
  2000. // The context must be non-nil and will be used for request cancellation. If
  2001. // the context is nil a panic will occur. In the future the SDK may create
  2002. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2003. // for more information on using Contexts.
  2004. func (c *CodeDeploy) GetDeploymentWithContext(ctx aws.Context, input *GetDeploymentInput, opts ...request.Option) (*GetDeploymentOutput, error) {
  2005. req, out := c.GetDeploymentRequest(input)
  2006. req.SetContext(ctx)
  2007. req.ApplyOptions(opts...)
  2008. return out, req.Send()
  2009. }
  2010. const opGetDeploymentConfig = "GetDeploymentConfig"
  2011. // GetDeploymentConfigRequest generates a "aws/request.Request" representing the
  2012. // client's request for the GetDeploymentConfig operation. The "output" return
  2013. // value will be populated with the request's response once the request completes
  2014. // successfully.
  2015. //
  2016. // Use "Send" method on the returned Request to send the API call to the service.
  2017. // the "output" return value is not valid until after Send returns without error.
  2018. //
  2019. // See GetDeploymentConfig for more information on using the GetDeploymentConfig
  2020. // API call, and error handling.
  2021. //
  2022. // This method is useful when you want to inject custom logic or configuration
  2023. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2024. //
  2025. //
  2026. // // Example sending a request using the GetDeploymentConfigRequest method.
  2027. // req, resp := client.GetDeploymentConfigRequest(params)
  2028. //
  2029. // err := req.Send()
  2030. // if err == nil { // resp is now filled
  2031. // fmt.Println(resp)
  2032. // }
  2033. //
  2034. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig
  2035. func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput) {
  2036. op := &request.Operation{
  2037. Name: opGetDeploymentConfig,
  2038. HTTPMethod: "POST",
  2039. HTTPPath: "/",
  2040. }
  2041. if input == nil {
  2042. input = &GetDeploymentConfigInput{}
  2043. }
  2044. output = &GetDeploymentConfigOutput{}
  2045. req = c.newRequest(op, input, output)
  2046. return
  2047. }
  2048. // GetDeploymentConfig API operation for AWS CodeDeploy.
  2049. //
  2050. // Gets information about a deployment configuration.
  2051. //
  2052. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2053. // with awserr.Error's Code and Message methods to get detailed information about
  2054. // the error.
  2055. //
  2056. // See the AWS API reference guide for AWS CodeDeploy's
  2057. // API operation GetDeploymentConfig for usage and error information.
  2058. //
  2059. // Returned Error Codes:
  2060. // * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
  2061. // The deployment configuration name was specified in an invalid format.
  2062. //
  2063. // * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException"
  2064. // The deployment configuration name was not specified.
  2065. //
  2066. // * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
  2067. // The deployment configuration does not exist with the IAM user or AWS account.
  2068. //
  2069. // * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException"
  2070. // The computePlatform is invalid. The computePlatform should be Lambda or Server.
  2071. //
  2072. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig
  2073. func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) {
  2074. req, out := c.GetDeploymentConfigRequest(input)
  2075. return out, req.Send()
  2076. }
  2077. // GetDeploymentConfigWithContext is the same as GetDeploymentConfig with the addition of
  2078. // the ability to pass a context and additional request options.
  2079. //
  2080. // See GetDeploymentConfig for details on how to use this API operation.
  2081. //
  2082. // The context must be non-nil and will be used for request cancellation. If
  2083. // the context is nil a panic will occur. In the future the SDK may create
  2084. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2085. // for more information on using Contexts.
  2086. func (c *CodeDeploy) GetDeploymentConfigWithContext(ctx aws.Context, input *GetDeploymentConfigInput, opts ...request.Option) (*GetDeploymentConfigOutput, error) {
  2087. req, out := c.GetDeploymentConfigRequest(input)
  2088. req.SetContext(ctx)
  2089. req.ApplyOptions(opts...)
  2090. return out, req.Send()
  2091. }
  2092. const opGetDeploymentGroup = "GetDeploymentGroup"
  2093. // GetDeploymentGroupRequest generates a "aws/request.Request" representing the
  2094. // client's request for the GetDeploymentGroup operation. The "output" return
  2095. // value will be populated with the request's response once the request completes
  2096. // successfully.
  2097. //
  2098. // Use "Send" method on the returned Request to send the API call to the service.
  2099. // the "output" return value is not valid until after Send returns without error.
  2100. //
  2101. // See GetDeploymentGroup for more information on using the GetDeploymentGroup
  2102. // API call, and error handling.
  2103. //
  2104. // This method is useful when you want to inject custom logic or configuration
  2105. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2106. //
  2107. //
  2108. // // Example sending a request using the GetDeploymentGroupRequest method.
  2109. // req, resp := client.GetDeploymentGroupRequest(params)
  2110. //
  2111. // err := req.Send()
  2112. // if err == nil { // resp is now filled
  2113. // fmt.Println(resp)
  2114. // }
  2115. //
  2116. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup
  2117. func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput) {
  2118. op := &request.Operation{
  2119. Name: opGetDeploymentGroup,
  2120. HTTPMethod: "POST",
  2121. HTTPPath: "/",
  2122. }
  2123. if input == nil {
  2124. input = &GetDeploymentGroupInput{}
  2125. }
  2126. output = &GetDeploymentGroupOutput{}
  2127. req = c.newRequest(op, input, output)
  2128. return
  2129. }
  2130. // GetDeploymentGroup API operation for AWS CodeDeploy.
  2131. //
  2132. // Gets information about a deployment group.
  2133. //
  2134. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2135. // with awserr.Error's Code and Message methods to get detailed information about
  2136. // the error.
  2137. //
  2138. // See the AWS API reference guide for AWS CodeDeploy's
  2139. // API operation GetDeploymentGroup for usage and error information.
  2140. //
  2141. // Returned Error Codes:
  2142. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  2143. // The minimum number of required application names was not specified.
  2144. //
  2145. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  2146. // The application name was specified in an invalid format.
  2147. //
  2148. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  2149. // The application does not exist with the IAM user or AWS account.
  2150. //
  2151. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  2152. // The deployment group name was not specified.
  2153. //
  2154. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  2155. // The deployment group name was specified in an invalid format.
  2156. //
  2157. // * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
  2158. // The named deployment group with the IAM user or AWS account does not exist.
  2159. //
  2160. // * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
  2161. // The deployment configuration does not exist with the IAM user or AWS account.
  2162. //
  2163. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup
  2164. func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) {
  2165. req, out := c.GetDeploymentGroupRequest(input)
  2166. return out, req.Send()
  2167. }
  2168. // GetDeploymentGroupWithContext is the same as GetDeploymentGroup with the addition of
  2169. // the ability to pass a context and additional request options.
  2170. //
  2171. // See GetDeploymentGroup for details on how to use this API operation.
  2172. //
  2173. // The context must be non-nil and will be used for request cancellation. If
  2174. // the context is nil a panic will occur. In the future the SDK may create
  2175. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2176. // for more information on using Contexts.
  2177. func (c *CodeDeploy) GetDeploymentGroupWithContext(ctx aws.Context, input *GetDeploymentGroupInput, opts ...request.Option) (*GetDeploymentGroupOutput, error) {
  2178. req, out := c.GetDeploymentGroupRequest(input)
  2179. req.SetContext(ctx)
  2180. req.ApplyOptions(opts...)
  2181. return out, req.Send()
  2182. }
  2183. const opGetDeploymentInstance = "GetDeploymentInstance"
  2184. // GetDeploymentInstanceRequest generates a "aws/request.Request" representing the
  2185. // client's request for the GetDeploymentInstance operation. The "output" return
  2186. // value will be populated with the request's response once the request completes
  2187. // successfully.
  2188. //
  2189. // Use "Send" method on the returned Request to send the API call to the service.
  2190. // the "output" return value is not valid until after Send returns without error.
  2191. //
  2192. // See GetDeploymentInstance for more information on using the GetDeploymentInstance
  2193. // API call, and error handling.
  2194. //
  2195. // This method is useful when you want to inject custom logic or configuration
  2196. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2197. //
  2198. //
  2199. // // Example sending a request using the GetDeploymentInstanceRequest method.
  2200. // req, resp := client.GetDeploymentInstanceRequest(params)
  2201. //
  2202. // err := req.Send()
  2203. // if err == nil { // resp is now filled
  2204. // fmt.Println(resp)
  2205. // }
  2206. //
  2207. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance
  2208. //
  2209. // Deprecated: This operation is deprecated, use GetDeploymentTarget instead.
  2210. func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) {
  2211. if c.Client.Config.Logger != nil {
  2212. c.Client.Config.Logger.Log("This operation, GetDeploymentInstance, has been deprecated")
  2213. }
  2214. op := &request.Operation{
  2215. Name: opGetDeploymentInstance,
  2216. HTTPMethod: "POST",
  2217. HTTPPath: "/",
  2218. }
  2219. if input == nil {
  2220. input = &GetDeploymentInstanceInput{}
  2221. }
  2222. output = &GetDeploymentInstanceOutput{}
  2223. req = c.newRequest(op, input, output)
  2224. return
  2225. }
  2226. // GetDeploymentInstance API operation for AWS CodeDeploy.
  2227. //
  2228. // Gets information about an instance as part of a deployment.
  2229. //
  2230. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2231. // with awserr.Error's Code and Message methods to get detailed information about
  2232. // the error.
  2233. //
  2234. // See the AWS API reference guide for AWS CodeDeploy's
  2235. // API operation GetDeploymentInstance for usage and error information.
  2236. //
  2237. // Returned Error Codes:
  2238. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  2239. // At least one deployment ID must be specified.
  2240. //
  2241. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  2242. // The deployment with the IAM user or AWS account does not exist.
  2243. //
  2244. // * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException"
  2245. // The instance ID was not specified.
  2246. //
  2247. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  2248. // At least one of the deployment IDs was specified in an invalid format.
  2249. //
  2250. // * ErrCodeInstanceDoesNotExistException "InstanceDoesNotExistException"
  2251. // The specified instance does not exist in the deployment group.
  2252. //
  2253. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  2254. // The on-premises instance name was specified in an invalid format.
  2255. //
  2256. // * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException"
  2257. // The computePlatform is invalid. The computePlatform should be Lambda or Server.
  2258. //
  2259. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance
  2260. //
  2261. // Deprecated: This operation is deprecated, use GetDeploymentTarget instead.
  2262. func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) {
  2263. req, out := c.GetDeploymentInstanceRequest(input)
  2264. return out, req.Send()
  2265. }
  2266. // GetDeploymentInstanceWithContext is the same as GetDeploymentInstance with the addition of
  2267. // the ability to pass a context and additional request options.
  2268. //
  2269. // See GetDeploymentInstance for details on how to use this API operation.
  2270. //
  2271. // The context must be non-nil and will be used for request cancellation. If
  2272. // the context is nil a panic will occur. In the future the SDK may create
  2273. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2274. // for more information on using Contexts.
  2275. //
  2276. // Deprecated: This operation is deprecated, use GetDeploymentTarget instead.
  2277. func (c *CodeDeploy) GetDeploymentInstanceWithContext(ctx aws.Context, input *GetDeploymentInstanceInput, opts ...request.Option) (*GetDeploymentInstanceOutput, error) {
  2278. req, out := c.GetDeploymentInstanceRequest(input)
  2279. req.SetContext(ctx)
  2280. req.ApplyOptions(opts...)
  2281. return out, req.Send()
  2282. }
  2283. const opGetDeploymentTarget = "GetDeploymentTarget"
  2284. // GetDeploymentTargetRequest generates a "aws/request.Request" representing the
  2285. // client's request for the GetDeploymentTarget operation. The "output" return
  2286. // value will be populated with the request's response once the request completes
  2287. // successfully.
  2288. //
  2289. // Use "Send" method on the returned Request to send the API call to the service.
  2290. // the "output" return value is not valid until after Send returns without error.
  2291. //
  2292. // See GetDeploymentTarget for more information on using the GetDeploymentTarget
  2293. // API call, and error handling.
  2294. //
  2295. // This method is useful when you want to inject custom logic or configuration
  2296. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2297. //
  2298. //
  2299. // // Example sending a request using the GetDeploymentTargetRequest method.
  2300. // req, resp := client.GetDeploymentTargetRequest(params)
  2301. //
  2302. // err := req.Send()
  2303. // if err == nil { // resp is now filled
  2304. // fmt.Println(resp)
  2305. // }
  2306. //
  2307. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget
  2308. func (c *CodeDeploy) GetDeploymentTargetRequest(input *GetDeploymentTargetInput) (req *request.Request, output *GetDeploymentTargetOutput) {
  2309. op := &request.Operation{
  2310. Name: opGetDeploymentTarget,
  2311. HTTPMethod: "POST",
  2312. HTTPPath: "/",
  2313. }
  2314. if input == nil {
  2315. input = &GetDeploymentTargetInput{}
  2316. }
  2317. output = &GetDeploymentTargetOutput{}
  2318. req = c.newRequest(op, input, output)
  2319. return
  2320. }
  2321. // GetDeploymentTarget API operation for AWS CodeDeploy.
  2322. //
  2323. // Returns information about a deployment target.
  2324. //
  2325. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2326. // with awserr.Error's Code and Message methods to get detailed information about
  2327. // the error.
  2328. //
  2329. // See the AWS API reference guide for AWS CodeDeploy's
  2330. // API operation GetDeploymentTarget for usage and error information.
  2331. //
  2332. // Returned Error Codes:
  2333. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  2334. // At least one of the deployment IDs was specified in an invalid format.
  2335. //
  2336. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  2337. // At least one deployment ID must be specified.
  2338. //
  2339. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  2340. // The deployment with the IAM user or AWS account does not exist.
  2341. //
  2342. // * ErrCodeDeploymentTargetIdRequiredException "DeploymentTargetIdRequiredException"
  2343. // A deployment target ID was not provided.
  2344. //
  2345. // * ErrCodeInvalidDeploymentTargetIdException "InvalidDeploymentTargetIdException"
  2346. // The target ID provided was not valid.
  2347. //
  2348. // * ErrCodeDeploymentTargetDoesNotExistException "DeploymentTargetDoesNotExistException"
  2349. // The provided target ID does not belong to the attempted deployment.
  2350. //
  2351. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  2352. // The on-premises instance name was specified in an invalid format.
  2353. //
  2354. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget
  2355. func (c *CodeDeploy) GetDeploymentTarget(input *GetDeploymentTargetInput) (*GetDeploymentTargetOutput, error) {
  2356. req, out := c.GetDeploymentTargetRequest(input)
  2357. return out, req.Send()
  2358. }
  2359. // GetDeploymentTargetWithContext is the same as GetDeploymentTarget with the addition of
  2360. // the ability to pass a context and additional request options.
  2361. //
  2362. // See GetDeploymentTarget for details on how to use this API operation.
  2363. //
  2364. // The context must be non-nil and will be used for request cancellation. If
  2365. // the context is nil a panic will occur. In the future the SDK may create
  2366. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2367. // for more information on using Contexts.
  2368. func (c *CodeDeploy) GetDeploymentTargetWithContext(ctx aws.Context, input *GetDeploymentTargetInput, opts ...request.Option) (*GetDeploymentTargetOutput, error) {
  2369. req, out := c.GetDeploymentTargetRequest(input)
  2370. req.SetContext(ctx)
  2371. req.ApplyOptions(opts...)
  2372. return out, req.Send()
  2373. }
  2374. const opGetOnPremisesInstance = "GetOnPremisesInstance"
  2375. // GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  2376. // client's request for the GetOnPremisesInstance operation. The "output" return
  2377. // value will be populated with the request's response once the request completes
  2378. // successfully.
  2379. //
  2380. // Use "Send" method on the returned Request to send the API call to the service.
  2381. // the "output" return value is not valid until after Send returns without error.
  2382. //
  2383. // See GetOnPremisesInstance for more information on using the GetOnPremisesInstance
  2384. // API call, and error handling.
  2385. //
  2386. // This method is useful when you want to inject custom logic or configuration
  2387. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2388. //
  2389. //
  2390. // // Example sending a request using the GetOnPremisesInstanceRequest method.
  2391. // req, resp := client.GetOnPremisesInstanceRequest(params)
  2392. //
  2393. // err := req.Send()
  2394. // if err == nil { // resp is now filled
  2395. // fmt.Println(resp)
  2396. // }
  2397. //
  2398. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance
  2399. func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput) {
  2400. op := &request.Operation{
  2401. Name: opGetOnPremisesInstance,
  2402. HTTPMethod: "POST",
  2403. HTTPPath: "/",
  2404. }
  2405. if input == nil {
  2406. input = &GetOnPremisesInstanceInput{}
  2407. }
  2408. output = &GetOnPremisesInstanceOutput{}
  2409. req = c.newRequest(op, input, output)
  2410. return
  2411. }
  2412. // GetOnPremisesInstance API operation for AWS CodeDeploy.
  2413. //
  2414. // Gets information about an on-premises instance.
  2415. //
  2416. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2417. // with awserr.Error's Code and Message methods to get detailed information about
  2418. // the error.
  2419. //
  2420. // See the AWS API reference guide for AWS CodeDeploy's
  2421. // API operation GetOnPremisesInstance for usage and error information.
  2422. //
  2423. // Returned Error Codes:
  2424. // * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
  2425. // An on-premises instance name was not specified.
  2426. //
  2427. // * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException"
  2428. // The specified on-premises instance is not registered.
  2429. //
  2430. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  2431. // The on-premises instance name was specified in an invalid format.
  2432. //
  2433. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance
  2434. func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) {
  2435. req, out := c.GetOnPremisesInstanceRequest(input)
  2436. return out, req.Send()
  2437. }
  2438. // GetOnPremisesInstanceWithContext is the same as GetOnPremisesInstance with the addition of
  2439. // the ability to pass a context and additional request options.
  2440. //
  2441. // See GetOnPremisesInstance for details on how to use this API operation.
  2442. //
  2443. // The context must be non-nil and will be used for request cancellation. If
  2444. // the context is nil a panic will occur. In the future the SDK may create
  2445. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2446. // for more information on using Contexts.
  2447. func (c *CodeDeploy) GetOnPremisesInstanceWithContext(ctx aws.Context, input *GetOnPremisesInstanceInput, opts ...request.Option) (*GetOnPremisesInstanceOutput, error) {
  2448. req, out := c.GetOnPremisesInstanceRequest(input)
  2449. req.SetContext(ctx)
  2450. req.ApplyOptions(opts...)
  2451. return out, req.Send()
  2452. }
  2453. const opListApplicationRevisions = "ListApplicationRevisions"
  2454. // ListApplicationRevisionsRequest generates a "aws/request.Request" representing the
  2455. // client's request for the ListApplicationRevisions operation. The "output" return
  2456. // value will be populated with the request's response once the request completes
  2457. // successfully.
  2458. //
  2459. // Use "Send" method on the returned Request to send the API call to the service.
  2460. // the "output" return value is not valid until after Send returns without error.
  2461. //
  2462. // See ListApplicationRevisions for more information on using the ListApplicationRevisions
  2463. // API call, and error handling.
  2464. //
  2465. // This method is useful when you want to inject custom logic or configuration
  2466. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2467. //
  2468. //
  2469. // // Example sending a request using the ListApplicationRevisionsRequest method.
  2470. // req, resp := client.ListApplicationRevisionsRequest(params)
  2471. //
  2472. // err := req.Send()
  2473. // if err == nil { // resp is now filled
  2474. // fmt.Println(resp)
  2475. // }
  2476. //
  2477. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions
  2478. func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput) {
  2479. op := &request.Operation{
  2480. Name: opListApplicationRevisions,
  2481. HTTPMethod: "POST",
  2482. HTTPPath: "/",
  2483. Paginator: &request.Paginator{
  2484. InputTokens: []string{"nextToken"},
  2485. OutputTokens: []string{"nextToken"},
  2486. LimitToken: "",
  2487. TruncationToken: "",
  2488. },
  2489. }
  2490. if input == nil {
  2491. input = &ListApplicationRevisionsInput{}
  2492. }
  2493. output = &ListApplicationRevisionsOutput{}
  2494. req = c.newRequest(op, input, output)
  2495. return
  2496. }
  2497. // ListApplicationRevisions API operation for AWS CodeDeploy.
  2498. //
  2499. // Lists information about revisions for an application.
  2500. //
  2501. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2502. // with awserr.Error's Code and Message methods to get detailed information about
  2503. // the error.
  2504. //
  2505. // See the AWS API reference guide for AWS CodeDeploy's
  2506. // API operation ListApplicationRevisions for usage and error information.
  2507. //
  2508. // Returned Error Codes:
  2509. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  2510. // The application does not exist with the IAM user or AWS account.
  2511. //
  2512. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  2513. // The minimum number of required application names was not specified.
  2514. //
  2515. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  2516. // The application name was specified in an invalid format.
  2517. //
  2518. // * ErrCodeInvalidSortByException "InvalidSortByException"
  2519. // The column name to sort by is either not present or was specified in an invalid
  2520. // format.
  2521. //
  2522. // * ErrCodeInvalidSortOrderException "InvalidSortOrderException"
  2523. // The sort order was specified in an invalid format.
  2524. //
  2525. // * ErrCodeInvalidBucketNameFilterException "InvalidBucketNameFilterException"
  2526. // The bucket name either doesn't exist or was specified in an invalid format.
  2527. //
  2528. // * ErrCodeInvalidKeyPrefixFilterException "InvalidKeyPrefixFilterException"
  2529. // The specified key prefix filter was specified in an invalid format.
  2530. //
  2531. // * ErrCodeBucketNameFilterRequiredException "BucketNameFilterRequiredException"
  2532. // A bucket name is required, but was not provided.
  2533. //
  2534. // * ErrCodeInvalidDeployedStateFilterException "InvalidDeployedStateFilterException"
  2535. // The deployed state filter was specified in an invalid format.
  2536. //
  2537. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  2538. // The next token was specified in an invalid format.
  2539. //
  2540. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions
  2541. func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) {
  2542. req, out := c.ListApplicationRevisionsRequest(input)
  2543. return out, req.Send()
  2544. }
  2545. // ListApplicationRevisionsWithContext is the same as ListApplicationRevisions with the addition of
  2546. // the ability to pass a context and additional request options.
  2547. //
  2548. // See ListApplicationRevisions for details on how to use this API operation.
  2549. //
  2550. // The context must be non-nil and will be used for request cancellation. If
  2551. // the context is nil a panic will occur. In the future the SDK may create
  2552. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2553. // for more information on using Contexts.
  2554. func (c *CodeDeploy) ListApplicationRevisionsWithContext(ctx aws.Context, input *ListApplicationRevisionsInput, opts ...request.Option) (*ListApplicationRevisionsOutput, error) {
  2555. req, out := c.ListApplicationRevisionsRequest(input)
  2556. req.SetContext(ctx)
  2557. req.ApplyOptions(opts...)
  2558. return out, req.Send()
  2559. }
  2560. // ListApplicationRevisionsPages iterates over the pages of a ListApplicationRevisions operation,
  2561. // calling the "fn" function with the response data for each page. To stop
  2562. // iterating, return false from the fn function.
  2563. //
  2564. // See ListApplicationRevisions method for more information on how to use this operation.
  2565. //
  2566. // Note: This operation can generate multiple requests to a service.
  2567. //
  2568. // // Example iterating over at most 3 pages of a ListApplicationRevisions operation.
  2569. // pageNum := 0
  2570. // err := client.ListApplicationRevisionsPages(params,
  2571. // func(page *ListApplicationRevisionsOutput, lastPage bool) bool {
  2572. // pageNum++
  2573. // fmt.Println(page)
  2574. // return pageNum <= 3
  2575. // })
  2576. //
  2577. func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(*ListApplicationRevisionsOutput, bool) bool) error {
  2578. return c.ListApplicationRevisionsPagesWithContext(aws.BackgroundContext(), input, fn)
  2579. }
  2580. // ListApplicationRevisionsPagesWithContext same as ListApplicationRevisionsPages except
  2581. // it takes a Context and allows setting request options on the pages.
  2582. //
  2583. // The context must be non-nil and will be used for request cancellation. If
  2584. // the context is nil a panic will occur. In the future the SDK may create
  2585. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2586. // for more information on using Contexts.
  2587. func (c *CodeDeploy) ListApplicationRevisionsPagesWithContext(ctx aws.Context, input *ListApplicationRevisionsInput, fn func(*ListApplicationRevisionsOutput, bool) bool, opts ...request.Option) error {
  2588. p := request.Pagination{
  2589. NewRequest: func() (*request.Request, error) {
  2590. var inCpy *ListApplicationRevisionsInput
  2591. if input != nil {
  2592. tmp := *input
  2593. inCpy = &tmp
  2594. }
  2595. req, _ := c.ListApplicationRevisionsRequest(inCpy)
  2596. req.SetContext(ctx)
  2597. req.ApplyOptions(opts...)
  2598. return req, nil
  2599. },
  2600. }
  2601. cont := true
  2602. for p.Next() && cont {
  2603. cont = fn(p.Page().(*ListApplicationRevisionsOutput), !p.HasNextPage())
  2604. }
  2605. return p.Err()
  2606. }
  2607. const opListApplications = "ListApplications"
  2608. // ListApplicationsRequest generates a "aws/request.Request" representing the
  2609. // client's request for the ListApplications operation. The "output" return
  2610. // value will be populated with the request's response once the request completes
  2611. // successfully.
  2612. //
  2613. // Use "Send" method on the returned Request to send the API call to the service.
  2614. // the "output" return value is not valid until after Send returns without error.
  2615. //
  2616. // See ListApplications for more information on using the ListApplications
  2617. // API call, and error handling.
  2618. //
  2619. // This method is useful when you want to inject custom logic or configuration
  2620. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2621. //
  2622. //
  2623. // // Example sending a request using the ListApplicationsRequest method.
  2624. // req, resp := client.ListApplicationsRequest(params)
  2625. //
  2626. // err := req.Send()
  2627. // if err == nil { // resp is now filled
  2628. // fmt.Println(resp)
  2629. // }
  2630. //
  2631. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications
  2632. func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
  2633. op := &request.Operation{
  2634. Name: opListApplications,
  2635. HTTPMethod: "POST",
  2636. HTTPPath: "/",
  2637. Paginator: &request.Paginator{
  2638. InputTokens: []string{"nextToken"},
  2639. OutputTokens: []string{"nextToken"},
  2640. LimitToken: "",
  2641. TruncationToken: "",
  2642. },
  2643. }
  2644. if input == nil {
  2645. input = &ListApplicationsInput{}
  2646. }
  2647. output = &ListApplicationsOutput{}
  2648. req = c.newRequest(op, input, output)
  2649. return
  2650. }
  2651. // ListApplications API operation for AWS CodeDeploy.
  2652. //
  2653. // Lists the applications registered with the IAM user or AWS account.
  2654. //
  2655. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2656. // with awserr.Error's Code and Message methods to get detailed information about
  2657. // the error.
  2658. //
  2659. // See the AWS API reference guide for AWS CodeDeploy's
  2660. // API operation ListApplications for usage and error information.
  2661. //
  2662. // Returned Error Codes:
  2663. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  2664. // The next token was specified in an invalid format.
  2665. //
  2666. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications
  2667. func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
  2668. req, out := c.ListApplicationsRequest(input)
  2669. return out, req.Send()
  2670. }
  2671. // ListApplicationsWithContext is the same as ListApplications with the addition of
  2672. // the ability to pass a context and additional request options.
  2673. //
  2674. // See ListApplications for details on how to use this API operation.
  2675. //
  2676. // The context must be non-nil and will be used for request cancellation. If
  2677. // the context is nil a panic will occur. In the future the SDK may create
  2678. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2679. // for more information on using Contexts.
  2680. func (c *CodeDeploy) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) {
  2681. req, out := c.ListApplicationsRequest(input)
  2682. req.SetContext(ctx)
  2683. req.ApplyOptions(opts...)
  2684. return out, req.Send()
  2685. }
  2686. // ListApplicationsPages iterates over the pages of a ListApplications operation,
  2687. // calling the "fn" function with the response data for each page. To stop
  2688. // iterating, return false from the fn function.
  2689. //
  2690. // See ListApplications method for more information on how to use this operation.
  2691. //
  2692. // Note: This operation can generate multiple requests to a service.
  2693. //
  2694. // // Example iterating over at most 3 pages of a ListApplications operation.
  2695. // pageNum := 0
  2696. // err := client.ListApplicationsPages(params,
  2697. // func(page *ListApplicationsOutput, lastPage bool) bool {
  2698. // pageNum++
  2699. // fmt.Println(page)
  2700. // return pageNum <= 3
  2701. // })
  2702. //
  2703. func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error {
  2704. return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn)
  2705. }
  2706. // ListApplicationsPagesWithContext same as ListApplicationsPages except
  2707. // it takes a Context and allows setting request options on the pages.
  2708. //
  2709. // The context must be non-nil and will be used for request cancellation. If
  2710. // the context is nil a panic will occur. In the future the SDK may create
  2711. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2712. // for more information on using Contexts.
  2713. func (c *CodeDeploy) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error {
  2714. p := request.Pagination{
  2715. NewRequest: func() (*request.Request, error) {
  2716. var inCpy *ListApplicationsInput
  2717. if input != nil {
  2718. tmp := *input
  2719. inCpy = &tmp
  2720. }
  2721. req, _ := c.ListApplicationsRequest(inCpy)
  2722. req.SetContext(ctx)
  2723. req.ApplyOptions(opts...)
  2724. return req, nil
  2725. },
  2726. }
  2727. cont := true
  2728. for p.Next() && cont {
  2729. cont = fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage())
  2730. }
  2731. return p.Err()
  2732. }
  2733. const opListDeploymentConfigs = "ListDeploymentConfigs"
  2734. // ListDeploymentConfigsRequest generates a "aws/request.Request" representing the
  2735. // client's request for the ListDeploymentConfigs operation. The "output" return
  2736. // value will be populated with the request's response once the request completes
  2737. // successfully.
  2738. //
  2739. // Use "Send" method on the returned Request to send the API call to the service.
  2740. // the "output" return value is not valid until after Send returns without error.
  2741. //
  2742. // See ListDeploymentConfigs for more information on using the ListDeploymentConfigs
  2743. // API call, and error handling.
  2744. //
  2745. // This method is useful when you want to inject custom logic or configuration
  2746. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2747. //
  2748. //
  2749. // // Example sending a request using the ListDeploymentConfigsRequest method.
  2750. // req, resp := client.ListDeploymentConfigsRequest(params)
  2751. //
  2752. // err := req.Send()
  2753. // if err == nil { // resp is now filled
  2754. // fmt.Println(resp)
  2755. // }
  2756. //
  2757. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs
  2758. func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput) {
  2759. op := &request.Operation{
  2760. Name: opListDeploymentConfigs,
  2761. HTTPMethod: "POST",
  2762. HTTPPath: "/",
  2763. Paginator: &request.Paginator{
  2764. InputTokens: []string{"nextToken"},
  2765. OutputTokens: []string{"nextToken"},
  2766. LimitToken: "",
  2767. TruncationToken: "",
  2768. },
  2769. }
  2770. if input == nil {
  2771. input = &ListDeploymentConfigsInput{}
  2772. }
  2773. output = &ListDeploymentConfigsOutput{}
  2774. req = c.newRequest(op, input, output)
  2775. return
  2776. }
  2777. // ListDeploymentConfigs API operation for AWS CodeDeploy.
  2778. //
  2779. // Lists the deployment configurations with the IAM user or AWS account.
  2780. //
  2781. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2782. // with awserr.Error's Code and Message methods to get detailed information about
  2783. // the error.
  2784. //
  2785. // See the AWS API reference guide for AWS CodeDeploy's
  2786. // API operation ListDeploymentConfigs for usage and error information.
  2787. //
  2788. // Returned Error Codes:
  2789. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  2790. // The next token was specified in an invalid format.
  2791. //
  2792. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs
  2793. func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) {
  2794. req, out := c.ListDeploymentConfigsRequest(input)
  2795. return out, req.Send()
  2796. }
  2797. // ListDeploymentConfigsWithContext is the same as ListDeploymentConfigs with the addition of
  2798. // the ability to pass a context and additional request options.
  2799. //
  2800. // See ListDeploymentConfigs for details on how to use this API operation.
  2801. //
  2802. // The context must be non-nil and will be used for request cancellation. If
  2803. // the context is nil a panic will occur. In the future the SDK may create
  2804. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2805. // for more information on using Contexts.
  2806. func (c *CodeDeploy) ListDeploymentConfigsWithContext(ctx aws.Context, input *ListDeploymentConfigsInput, opts ...request.Option) (*ListDeploymentConfigsOutput, error) {
  2807. req, out := c.ListDeploymentConfigsRequest(input)
  2808. req.SetContext(ctx)
  2809. req.ApplyOptions(opts...)
  2810. return out, req.Send()
  2811. }
  2812. // ListDeploymentConfigsPages iterates over the pages of a ListDeploymentConfigs operation,
  2813. // calling the "fn" function with the response data for each page. To stop
  2814. // iterating, return false from the fn function.
  2815. //
  2816. // See ListDeploymentConfigs method for more information on how to use this operation.
  2817. //
  2818. // Note: This operation can generate multiple requests to a service.
  2819. //
  2820. // // Example iterating over at most 3 pages of a ListDeploymentConfigs operation.
  2821. // pageNum := 0
  2822. // err := client.ListDeploymentConfigsPages(params,
  2823. // func(page *ListDeploymentConfigsOutput, lastPage bool) bool {
  2824. // pageNum++
  2825. // fmt.Println(page)
  2826. // return pageNum <= 3
  2827. // })
  2828. //
  2829. func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(*ListDeploymentConfigsOutput, bool) bool) error {
  2830. return c.ListDeploymentConfigsPagesWithContext(aws.BackgroundContext(), input, fn)
  2831. }
  2832. // ListDeploymentConfigsPagesWithContext same as ListDeploymentConfigsPages except
  2833. // it takes a Context and allows setting request options on the pages.
  2834. //
  2835. // The context must be non-nil and will be used for request cancellation. If
  2836. // the context is nil a panic will occur. In the future the SDK may create
  2837. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2838. // for more information on using Contexts.
  2839. func (c *CodeDeploy) ListDeploymentConfigsPagesWithContext(ctx aws.Context, input *ListDeploymentConfigsInput, fn func(*ListDeploymentConfigsOutput, bool) bool, opts ...request.Option) error {
  2840. p := request.Pagination{
  2841. NewRequest: func() (*request.Request, error) {
  2842. var inCpy *ListDeploymentConfigsInput
  2843. if input != nil {
  2844. tmp := *input
  2845. inCpy = &tmp
  2846. }
  2847. req, _ := c.ListDeploymentConfigsRequest(inCpy)
  2848. req.SetContext(ctx)
  2849. req.ApplyOptions(opts...)
  2850. return req, nil
  2851. },
  2852. }
  2853. cont := true
  2854. for p.Next() && cont {
  2855. cont = fn(p.Page().(*ListDeploymentConfigsOutput), !p.HasNextPage())
  2856. }
  2857. return p.Err()
  2858. }
  2859. const opListDeploymentGroups = "ListDeploymentGroups"
  2860. // ListDeploymentGroupsRequest generates a "aws/request.Request" representing the
  2861. // client's request for the ListDeploymentGroups operation. The "output" return
  2862. // value will be populated with the request's response once the request completes
  2863. // successfully.
  2864. //
  2865. // Use "Send" method on the returned Request to send the API call to the service.
  2866. // the "output" return value is not valid until after Send returns without error.
  2867. //
  2868. // See ListDeploymentGroups for more information on using the ListDeploymentGroups
  2869. // API call, and error handling.
  2870. //
  2871. // This method is useful when you want to inject custom logic or configuration
  2872. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2873. //
  2874. //
  2875. // // Example sending a request using the ListDeploymentGroupsRequest method.
  2876. // req, resp := client.ListDeploymentGroupsRequest(params)
  2877. //
  2878. // err := req.Send()
  2879. // if err == nil { // resp is now filled
  2880. // fmt.Println(resp)
  2881. // }
  2882. //
  2883. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups
  2884. func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput) {
  2885. op := &request.Operation{
  2886. Name: opListDeploymentGroups,
  2887. HTTPMethod: "POST",
  2888. HTTPPath: "/",
  2889. Paginator: &request.Paginator{
  2890. InputTokens: []string{"nextToken"},
  2891. OutputTokens: []string{"nextToken"},
  2892. LimitToken: "",
  2893. TruncationToken: "",
  2894. },
  2895. }
  2896. if input == nil {
  2897. input = &ListDeploymentGroupsInput{}
  2898. }
  2899. output = &ListDeploymentGroupsOutput{}
  2900. req = c.newRequest(op, input, output)
  2901. return
  2902. }
  2903. // ListDeploymentGroups API operation for AWS CodeDeploy.
  2904. //
  2905. // Lists the deployment groups for an application registered with the IAM user
  2906. // or AWS account.
  2907. //
  2908. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2909. // with awserr.Error's Code and Message methods to get detailed information about
  2910. // the error.
  2911. //
  2912. // See the AWS API reference guide for AWS CodeDeploy's
  2913. // API operation ListDeploymentGroups for usage and error information.
  2914. //
  2915. // Returned Error Codes:
  2916. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  2917. // The minimum number of required application names was not specified.
  2918. //
  2919. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  2920. // The application name was specified in an invalid format.
  2921. //
  2922. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  2923. // The application does not exist with the IAM user or AWS account.
  2924. //
  2925. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  2926. // The next token was specified in an invalid format.
  2927. //
  2928. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups
  2929. func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) {
  2930. req, out := c.ListDeploymentGroupsRequest(input)
  2931. return out, req.Send()
  2932. }
  2933. // ListDeploymentGroupsWithContext is the same as ListDeploymentGroups with the addition of
  2934. // the ability to pass a context and additional request options.
  2935. //
  2936. // See ListDeploymentGroups for details on how to use this API operation.
  2937. //
  2938. // The context must be non-nil and will be used for request cancellation. If
  2939. // the context is nil a panic will occur. In the future the SDK may create
  2940. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2941. // for more information on using Contexts.
  2942. func (c *CodeDeploy) ListDeploymentGroupsWithContext(ctx aws.Context, input *ListDeploymentGroupsInput, opts ...request.Option) (*ListDeploymentGroupsOutput, error) {
  2943. req, out := c.ListDeploymentGroupsRequest(input)
  2944. req.SetContext(ctx)
  2945. req.ApplyOptions(opts...)
  2946. return out, req.Send()
  2947. }
  2948. // ListDeploymentGroupsPages iterates over the pages of a ListDeploymentGroups operation,
  2949. // calling the "fn" function with the response data for each page. To stop
  2950. // iterating, return false from the fn function.
  2951. //
  2952. // See ListDeploymentGroups method for more information on how to use this operation.
  2953. //
  2954. // Note: This operation can generate multiple requests to a service.
  2955. //
  2956. // // Example iterating over at most 3 pages of a ListDeploymentGroups operation.
  2957. // pageNum := 0
  2958. // err := client.ListDeploymentGroupsPages(params,
  2959. // func(page *ListDeploymentGroupsOutput, lastPage bool) bool {
  2960. // pageNum++
  2961. // fmt.Println(page)
  2962. // return pageNum <= 3
  2963. // })
  2964. //
  2965. func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(*ListDeploymentGroupsOutput, bool) bool) error {
  2966. return c.ListDeploymentGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  2967. }
  2968. // ListDeploymentGroupsPagesWithContext same as ListDeploymentGroupsPages except
  2969. // it takes a Context and allows setting request options on the pages.
  2970. //
  2971. // The context must be non-nil and will be used for request cancellation. If
  2972. // the context is nil a panic will occur. In the future the SDK may create
  2973. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2974. // for more information on using Contexts.
  2975. func (c *CodeDeploy) ListDeploymentGroupsPagesWithContext(ctx aws.Context, input *ListDeploymentGroupsInput, fn func(*ListDeploymentGroupsOutput, bool) bool, opts ...request.Option) error {
  2976. p := request.Pagination{
  2977. NewRequest: func() (*request.Request, error) {
  2978. var inCpy *ListDeploymentGroupsInput
  2979. if input != nil {
  2980. tmp := *input
  2981. inCpy = &tmp
  2982. }
  2983. req, _ := c.ListDeploymentGroupsRequest(inCpy)
  2984. req.SetContext(ctx)
  2985. req.ApplyOptions(opts...)
  2986. return req, nil
  2987. },
  2988. }
  2989. cont := true
  2990. for p.Next() && cont {
  2991. cont = fn(p.Page().(*ListDeploymentGroupsOutput), !p.HasNextPage())
  2992. }
  2993. return p.Err()
  2994. }
  2995. const opListDeploymentInstances = "ListDeploymentInstances"
  2996. // ListDeploymentInstancesRequest generates a "aws/request.Request" representing the
  2997. // client's request for the ListDeploymentInstances operation. The "output" return
  2998. // value will be populated with the request's response once the request completes
  2999. // successfully.
  3000. //
  3001. // Use "Send" method on the returned Request to send the API call to the service.
  3002. // the "output" return value is not valid until after Send returns without error.
  3003. //
  3004. // See ListDeploymentInstances for more information on using the ListDeploymentInstances
  3005. // API call, and error handling.
  3006. //
  3007. // This method is useful when you want to inject custom logic or configuration
  3008. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3009. //
  3010. //
  3011. // // Example sending a request using the ListDeploymentInstancesRequest method.
  3012. // req, resp := client.ListDeploymentInstancesRequest(params)
  3013. //
  3014. // err := req.Send()
  3015. // if err == nil { // resp is now filled
  3016. // fmt.Println(resp)
  3017. // }
  3018. //
  3019. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances
  3020. //
  3021. // Deprecated: This operation is deprecated, use ListDeploymentTargets instead.
  3022. func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) {
  3023. if c.Client.Config.Logger != nil {
  3024. c.Client.Config.Logger.Log("This operation, ListDeploymentInstances, has been deprecated")
  3025. }
  3026. op := &request.Operation{
  3027. Name: opListDeploymentInstances,
  3028. HTTPMethod: "POST",
  3029. HTTPPath: "/",
  3030. Paginator: &request.Paginator{
  3031. InputTokens: []string{"nextToken"},
  3032. OutputTokens: []string{"nextToken"},
  3033. LimitToken: "",
  3034. TruncationToken: "",
  3035. },
  3036. }
  3037. if input == nil {
  3038. input = &ListDeploymentInstancesInput{}
  3039. }
  3040. output = &ListDeploymentInstancesOutput{}
  3041. req = c.newRequest(op, input, output)
  3042. return
  3043. }
  3044. // ListDeploymentInstances API operation for AWS CodeDeploy.
  3045. //
  3046. // The newer BatchGetDeploymentTargets should be used instead because it works
  3047. // with all compute types. ListDeploymentInstances throws an exception if it
  3048. // is used with a compute platform other than EC2/On-premises or AWS Lambda.
  3049. //
  3050. // Lists the instance for a deployment associated with the IAM user or AWS account.
  3051. //
  3052. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3053. // with awserr.Error's Code and Message methods to get detailed information about
  3054. // the error.
  3055. //
  3056. // See the AWS API reference guide for AWS CodeDeploy's
  3057. // API operation ListDeploymentInstances for usage and error information.
  3058. //
  3059. // Returned Error Codes:
  3060. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  3061. // At least one deployment ID must be specified.
  3062. //
  3063. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  3064. // The deployment with the IAM user or AWS account does not exist.
  3065. //
  3066. // * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException"
  3067. // The specified deployment has not started.
  3068. //
  3069. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  3070. // The next token was specified in an invalid format.
  3071. //
  3072. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  3073. // At least one of the deployment IDs was specified in an invalid format.
  3074. //
  3075. // * ErrCodeInvalidInstanceStatusException "InvalidInstanceStatusException"
  3076. // The specified instance status does not exist.
  3077. //
  3078. // * ErrCodeInvalidInstanceTypeException "InvalidInstanceTypeException"
  3079. // An invalid instance type was specified for instances in a blue/green deployment.
  3080. // Valid values include "Blue" for an original environment and "Green" for a
  3081. // replacement environment.
  3082. //
  3083. // * ErrCodeInvalidDeploymentInstanceTypeException "InvalidDeploymentInstanceTypeException"
  3084. // An instance type was specified for an in-place deployment. Instance types
  3085. // are supported for blue/green deployments only.
  3086. //
  3087. // * ErrCodeInvalidTargetFilterNameException "InvalidTargetFilterNameException"
  3088. // The target filter name is invalid.
  3089. //
  3090. // * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException"
  3091. // The computePlatform is invalid. The computePlatform should be Lambda or Server.
  3092. //
  3093. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances
  3094. //
  3095. // Deprecated: This operation is deprecated, use ListDeploymentTargets instead.
  3096. func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) {
  3097. req, out := c.ListDeploymentInstancesRequest(input)
  3098. return out, req.Send()
  3099. }
  3100. // ListDeploymentInstancesWithContext is the same as ListDeploymentInstances with the addition of
  3101. // the ability to pass a context and additional request options.
  3102. //
  3103. // See ListDeploymentInstances for details on how to use this API operation.
  3104. //
  3105. // The context must be non-nil and will be used for request cancellation. If
  3106. // the context is nil a panic will occur. In the future the SDK may create
  3107. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3108. // for more information on using Contexts.
  3109. //
  3110. // Deprecated: This operation is deprecated, use ListDeploymentTargets instead.
  3111. func (c *CodeDeploy) ListDeploymentInstancesWithContext(ctx aws.Context, input *ListDeploymentInstancesInput, opts ...request.Option) (*ListDeploymentInstancesOutput, error) {
  3112. req, out := c.ListDeploymentInstancesRequest(input)
  3113. req.SetContext(ctx)
  3114. req.ApplyOptions(opts...)
  3115. return out, req.Send()
  3116. }
  3117. // ListDeploymentInstancesPages iterates over the pages of a ListDeploymentInstances operation,
  3118. // calling the "fn" function with the response data for each page. To stop
  3119. // iterating, return false from the fn function.
  3120. //
  3121. // See ListDeploymentInstances method for more information on how to use this operation.
  3122. //
  3123. // Note: This operation can generate multiple requests to a service.
  3124. //
  3125. // // Example iterating over at most 3 pages of a ListDeploymentInstances operation.
  3126. // pageNum := 0
  3127. // err := client.ListDeploymentInstancesPages(params,
  3128. // func(page *ListDeploymentInstancesOutput, lastPage bool) bool {
  3129. // pageNum++
  3130. // fmt.Println(page)
  3131. // return pageNum <= 3
  3132. // })
  3133. //
  3134. //
  3135. // Deprecated: This operation is deprecated, use ListDeploymentTargets instead.
  3136. func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(*ListDeploymentInstancesOutput, bool) bool) error {
  3137. return c.ListDeploymentInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  3138. }
  3139. // ListDeploymentInstancesPagesWithContext same as ListDeploymentInstancesPages except
  3140. // it takes a Context and allows setting request options on the pages.
  3141. //
  3142. // The context must be non-nil and will be used for request cancellation. If
  3143. // the context is nil a panic will occur. In the future the SDK may create
  3144. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3145. // for more information on using Contexts.
  3146. //
  3147. // Deprecated: This operation is deprecated, use ListDeploymentTargets instead.
  3148. func (c *CodeDeploy) ListDeploymentInstancesPagesWithContext(ctx aws.Context, input *ListDeploymentInstancesInput, fn func(*ListDeploymentInstancesOutput, bool) bool, opts ...request.Option) error {
  3149. p := request.Pagination{
  3150. NewRequest: func() (*request.Request, error) {
  3151. var inCpy *ListDeploymentInstancesInput
  3152. if input != nil {
  3153. tmp := *input
  3154. inCpy = &tmp
  3155. }
  3156. req, _ := c.ListDeploymentInstancesRequest(inCpy)
  3157. req.SetContext(ctx)
  3158. req.ApplyOptions(opts...)
  3159. return req, nil
  3160. },
  3161. }
  3162. cont := true
  3163. for p.Next() && cont {
  3164. cont = fn(p.Page().(*ListDeploymentInstancesOutput), !p.HasNextPage())
  3165. }
  3166. return p.Err()
  3167. }
  3168. const opListDeploymentTargets = "ListDeploymentTargets"
  3169. // ListDeploymentTargetsRequest generates a "aws/request.Request" representing the
  3170. // client's request for the ListDeploymentTargets operation. The "output" return
  3171. // value will be populated with the request's response once the request completes
  3172. // successfully.
  3173. //
  3174. // Use "Send" method on the returned Request to send the API call to the service.
  3175. // the "output" return value is not valid until after Send returns without error.
  3176. //
  3177. // See ListDeploymentTargets for more information on using the ListDeploymentTargets
  3178. // API call, and error handling.
  3179. //
  3180. // This method is useful when you want to inject custom logic or configuration
  3181. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3182. //
  3183. //
  3184. // // Example sending a request using the ListDeploymentTargetsRequest method.
  3185. // req, resp := client.ListDeploymentTargetsRequest(params)
  3186. //
  3187. // err := req.Send()
  3188. // if err == nil { // resp is now filled
  3189. // fmt.Println(resp)
  3190. // }
  3191. //
  3192. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets
  3193. func (c *CodeDeploy) ListDeploymentTargetsRequest(input *ListDeploymentTargetsInput) (req *request.Request, output *ListDeploymentTargetsOutput) {
  3194. op := &request.Operation{
  3195. Name: opListDeploymentTargets,
  3196. HTTPMethod: "POST",
  3197. HTTPPath: "/",
  3198. }
  3199. if input == nil {
  3200. input = &ListDeploymentTargetsInput{}
  3201. }
  3202. output = &ListDeploymentTargetsOutput{}
  3203. req = c.newRequest(op, input, output)
  3204. return
  3205. }
  3206. // ListDeploymentTargets API operation for AWS CodeDeploy.
  3207. //
  3208. // Returns an array of target IDs that are associated a deployment.
  3209. //
  3210. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3211. // with awserr.Error's Code and Message methods to get detailed information about
  3212. // the error.
  3213. //
  3214. // See the AWS API reference guide for AWS CodeDeploy's
  3215. // API operation ListDeploymentTargets for usage and error information.
  3216. //
  3217. // Returned Error Codes:
  3218. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  3219. // At least one deployment ID must be specified.
  3220. //
  3221. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  3222. // The deployment with the IAM user or AWS account does not exist.
  3223. //
  3224. // * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException"
  3225. // The specified deployment has not started.
  3226. //
  3227. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  3228. // The next token was specified in an invalid format.
  3229. //
  3230. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  3231. // At least one of the deployment IDs was specified in an invalid format.
  3232. //
  3233. // * ErrCodeInvalidInstanceStatusException "InvalidInstanceStatusException"
  3234. // The specified instance status does not exist.
  3235. //
  3236. // * ErrCodeInvalidInstanceTypeException "InvalidInstanceTypeException"
  3237. // An invalid instance type was specified for instances in a blue/green deployment.
  3238. // Valid values include "Blue" for an original environment and "Green" for a
  3239. // replacement environment.
  3240. //
  3241. // * ErrCodeInvalidDeploymentInstanceTypeException "InvalidDeploymentInstanceTypeException"
  3242. // An instance type was specified for an in-place deployment. Instance types
  3243. // are supported for blue/green deployments only.
  3244. //
  3245. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets
  3246. func (c *CodeDeploy) ListDeploymentTargets(input *ListDeploymentTargetsInput) (*ListDeploymentTargetsOutput, error) {
  3247. req, out := c.ListDeploymentTargetsRequest(input)
  3248. return out, req.Send()
  3249. }
  3250. // ListDeploymentTargetsWithContext is the same as ListDeploymentTargets with the addition of
  3251. // the ability to pass a context and additional request options.
  3252. //
  3253. // See ListDeploymentTargets for details on how to use this API operation.
  3254. //
  3255. // The context must be non-nil and will be used for request cancellation. If
  3256. // the context is nil a panic will occur. In the future the SDK may create
  3257. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3258. // for more information on using Contexts.
  3259. func (c *CodeDeploy) ListDeploymentTargetsWithContext(ctx aws.Context, input *ListDeploymentTargetsInput, opts ...request.Option) (*ListDeploymentTargetsOutput, error) {
  3260. req, out := c.ListDeploymentTargetsRequest(input)
  3261. req.SetContext(ctx)
  3262. req.ApplyOptions(opts...)
  3263. return out, req.Send()
  3264. }
  3265. const opListDeployments = "ListDeployments"
  3266. // ListDeploymentsRequest generates a "aws/request.Request" representing the
  3267. // client's request for the ListDeployments operation. The "output" return
  3268. // value will be populated with the request's response once the request completes
  3269. // successfully.
  3270. //
  3271. // Use "Send" method on the returned Request to send the API call to the service.
  3272. // the "output" return value is not valid until after Send returns without error.
  3273. //
  3274. // See ListDeployments for more information on using the ListDeployments
  3275. // API call, and error handling.
  3276. //
  3277. // This method is useful when you want to inject custom logic or configuration
  3278. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3279. //
  3280. //
  3281. // // Example sending a request using the ListDeploymentsRequest method.
  3282. // req, resp := client.ListDeploymentsRequest(params)
  3283. //
  3284. // err := req.Send()
  3285. // if err == nil { // resp is now filled
  3286. // fmt.Println(resp)
  3287. // }
  3288. //
  3289. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments
  3290. func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) {
  3291. op := &request.Operation{
  3292. Name: opListDeployments,
  3293. HTTPMethod: "POST",
  3294. HTTPPath: "/",
  3295. Paginator: &request.Paginator{
  3296. InputTokens: []string{"nextToken"},
  3297. OutputTokens: []string{"nextToken"},
  3298. LimitToken: "",
  3299. TruncationToken: "",
  3300. },
  3301. }
  3302. if input == nil {
  3303. input = &ListDeploymentsInput{}
  3304. }
  3305. output = &ListDeploymentsOutput{}
  3306. req = c.newRequest(op, input, output)
  3307. return
  3308. }
  3309. // ListDeployments API operation for AWS CodeDeploy.
  3310. //
  3311. // Lists the deployments in a deployment group for an application registered
  3312. // with the IAM user or AWS account.
  3313. //
  3314. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3315. // with awserr.Error's Code and Message methods to get detailed information about
  3316. // the error.
  3317. //
  3318. // See the AWS API reference guide for AWS CodeDeploy's
  3319. // API operation ListDeployments for usage and error information.
  3320. //
  3321. // Returned Error Codes:
  3322. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  3323. // The minimum number of required application names was not specified.
  3324. //
  3325. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  3326. // The application name was specified in an invalid format.
  3327. //
  3328. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  3329. // The application does not exist with the IAM user or AWS account.
  3330. //
  3331. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  3332. // The deployment group name was specified in an invalid format.
  3333. //
  3334. // * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
  3335. // The named deployment group with the IAM user or AWS account does not exist.
  3336. //
  3337. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  3338. // The deployment group name was not specified.
  3339. //
  3340. // * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException"
  3341. // The specified time range was specified in an invalid format.
  3342. //
  3343. // * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException"
  3344. // The specified deployment status doesn't exist or cannot be determined.
  3345. //
  3346. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  3347. // The next token was specified in an invalid format.
  3348. //
  3349. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments
  3350. func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) {
  3351. req, out := c.ListDeploymentsRequest(input)
  3352. return out, req.Send()
  3353. }
  3354. // ListDeploymentsWithContext is the same as ListDeployments with the addition of
  3355. // the ability to pass a context and additional request options.
  3356. //
  3357. // See ListDeployments for details on how to use this API operation.
  3358. //
  3359. // The context must be non-nil and will be used for request cancellation. If
  3360. // the context is nil a panic will occur. In the future the SDK may create
  3361. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3362. // for more information on using Contexts.
  3363. func (c *CodeDeploy) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) {
  3364. req, out := c.ListDeploymentsRequest(input)
  3365. req.SetContext(ctx)
  3366. req.ApplyOptions(opts...)
  3367. return out, req.Send()
  3368. }
  3369. // ListDeploymentsPages iterates over the pages of a ListDeployments operation,
  3370. // calling the "fn" function with the response data for each page. To stop
  3371. // iterating, return false from the fn function.
  3372. //
  3373. // See ListDeployments method for more information on how to use this operation.
  3374. //
  3375. // Note: This operation can generate multiple requests to a service.
  3376. //
  3377. // // Example iterating over at most 3 pages of a ListDeployments operation.
  3378. // pageNum := 0
  3379. // err := client.ListDeploymentsPages(params,
  3380. // func(page *ListDeploymentsOutput, lastPage bool) bool {
  3381. // pageNum++
  3382. // fmt.Println(page)
  3383. // return pageNum <= 3
  3384. // })
  3385. //
  3386. func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool) error {
  3387. return c.ListDeploymentsPagesWithContext(aws.BackgroundContext(), input, fn)
  3388. }
  3389. // ListDeploymentsPagesWithContext same as ListDeploymentsPages except
  3390. // it takes a Context and allows setting request options on the pages.
  3391. //
  3392. // The context must be non-nil and will be used for request cancellation. If
  3393. // the context is nil a panic will occur. In the future the SDK may create
  3394. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3395. // for more information on using Contexts.
  3396. func (c *CodeDeploy) ListDeploymentsPagesWithContext(ctx aws.Context, input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool, opts ...request.Option) error {
  3397. p := request.Pagination{
  3398. NewRequest: func() (*request.Request, error) {
  3399. var inCpy *ListDeploymentsInput
  3400. if input != nil {
  3401. tmp := *input
  3402. inCpy = &tmp
  3403. }
  3404. req, _ := c.ListDeploymentsRequest(inCpy)
  3405. req.SetContext(ctx)
  3406. req.ApplyOptions(opts...)
  3407. return req, nil
  3408. },
  3409. }
  3410. cont := true
  3411. for p.Next() && cont {
  3412. cont = fn(p.Page().(*ListDeploymentsOutput), !p.HasNextPage())
  3413. }
  3414. return p.Err()
  3415. }
  3416. const opListGitHubAccountTokenNames = "ListGitHubAccountTokenNames"
  3417. // ListGitHubAccountTokenNamesRequest generates a "aws/request.Request" representing the
  3418. // client's request for the ListGitHubAccountTokenNames operation. The "output" return
  3419. // value will be populated with the request's response once the request completes
  3420. // successfully.
  3421. //
  3422. // Use "Send" method on the returned Request to send the API call to the service.
  3423. // the "output" return value is not valid until after Send returns without error.
  3424. //
  3425. // See ListGitHubAccountTokenNames for more information on using the ListGitHubAccountTokenNames
  3426. // API call, and error handling.
  3427. //
  3428. // This method is useful when you want to inject custom logic or configuration
  3429. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3430. //
  3431. //
  3432. // // Example sending a request using the ListGitHubAccountTokenNamesRequest method.
  3433. // req, resp := client.ListGitHubAccountTokenNamesRequest(params)
  3434. //
  3435. // err := req.Send()
  3436. // if err == nil { // resp is now filled
  3437. // fmt.Println(resp)
  3438. // }
  3439. //
  3440. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListGitHubAccountTokenNames
  3441. func (c *CodeDeploy) ListGitHubAccountTokenNamesRequest(input *ListGitHubAccountTokenNamesInput) (req *request.Request, output *ListGitHubAccountTokenNamesOutput) {
  3442. op := &request.Operation{
  3443. Name: opListGitHubAccountTokenNames,
  3444. HTTPMethod: "POST",
  3445. HTTPPath: "/",
  3446. }
  3447. if input == nil {
  3448. input = &ListGitHubAccountTokenNamesInput{}
  3449. }
  3450. output = &ListGitHubAccountTokenNamesOutput{}
  3451. req = c.newRequest(op, input, output)
  3452. return
  3453. }
  3454. // ListGitHubAccountTokenNames API operation for AWS CodeDeploy.
  3455. //
  3456. // Lists the names of stored connections to GitHub accounts.
  3457. //
  3458. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3459. // with awserr.Error's Code and Message methods to get detailed information about
  3460. // the error.
  3461. //
  3462. // See the AWS API reference guide for AWS CodeDeploy's
  3463. // API operation ListGitHubAccountTokenNames for usage and error information.
  3464. //
  3465. // Returned Error Codes:
  3466. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  3467. // The next token was specified in an invalid format.
  3468. //
  3469. // * ErrCodeResourceValidationException "ResourceValidationException"
  3470. // The specified resource could not be validated.
  3471. //
  3472. // * ErrCodeOperationNotSupportedException "OperationNotSupportedException"
  3473. // The API used does not support the deployment.
  3474. //
  3475. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListGitHubAccountTokenNames
  3476. func (c *CodeDeploy) ListGitHubAccountTokenNames(input *ListGitHubAccountTokenNamesInput) (*ListGitHubAccountTokenNamesOutput, error) {
  3477. req, out := c.ListGitHubAccountTokenNamesRequest(input)
  3478. return out, req.Send()
  3479. }
  3480. // ListGitHubAccountTokenNamesWithContext is the same as ListGitHubAccountTokenNames with the addition of
  3481. // the ability to pass a context and additional request options.
  3482. //
  3483. // See ListGitHubAccountTokenNames for details on how to use this API operation.
  3484. //
  3485. // The context must be non-nil and will be used for request cancellation. If
  3486. // the context is nil a panic will occur. In the future the SDK may create
  3487. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3488. // for more information on using Contexts.
  3489. func (c *CodeDeploy) ListGitHubAccountTokenNamesWithContext(ctx aws.Context, input *ListGitHubAccountTokenNamesInput, opts ...request.Option) (*ListGitHubAccountTokenNamesOutput, error) {
  3490. req, out := c.ListGitHubAccountTokenNamesRequest(input)
  3491. req.SetContext(ctx)
  3492. req.ApplyOptions(opts...)
  3493. return out, req.Send()
  3494. }
  3495. const opListOnPremisesInstances = "ListOnPremisesInstances"
  3496. // ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  3497. // client's request for the ListOnPremisesInstances operation. The "output" return
  3498. // value will be populated with the request's response once the request completes
  3499. // successfully.
  3500. //
  3501. // Use "Send" method on the returned Request to send the API call to the service.
  3502. // the "output" return value is not valid until after Send returns without error.
  3503. //
  3504. // See ListOnPremisesInstances for more information on using the ListOnPremisesInstances
  3505. // API call, and error handling.
  3506. //
  3507. // This method is useful when you want to inject custom logic or configuration
  3508. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3509. //
  3510. //
  3511. // // Example sending a request using the ListOnPremisesInstancesRequest method.
  3512. // req, resp := client.ListOnPremisesInstancesRequest(params)
  3513. //
  3514. // err := req.Send()
  3515. // if err == nil { // resp is now filled
  3516. // fmt.Println(resp)
  3517. // }
  3518. //
  3519. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances
  3520. func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput) {
  3521. op := &request.Operation{
  3522. Name: opListOnPremisesInstances,
  3523. HTTPMethod: "POST",
  3524. HTTPPath: "/",
  3525. }
  3526. if input == nil {
  3527. input = &ListOnPremisesInstancesInput{}
  3528. }
  3529. output = &ListOnPremisesInstancesOutput{}
  3530. req = c.newRequest(op, input, output)
  3531. return
  3532. }
  3533. // ListOnPremisesInstances API operation for AWS CodeDeploy.
  3534. //
  3535. // Gets a list of names for one or more on-premises instances.
  3536. //
  3537. // Unless otherwise specified, both registered and deregistered on-premises
  3538. // instance names are listed. To list only registered or deregistered on-premises
  3539. // instance names, use the registration status parameter.
  3540. //
  3541. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3542. // with awserr.Error's Code and Message methods to get detailed information about
  3543. // the error.
  3544. //
  3545. // See the AWS API reference guide for AWS CodeDeploy's
  3546. // API operation ListOnPremisesInstances for usage and error information.
  3547. //
  3548. // Returned Error Codes:
  3549. // * ErrCodeInvalidRegistrationStatusException "InvalidRegistrationStatusException"
  3550. // The registration status was specified in an invalid format.
  3551. //
  3552. // * ErrCodeInvalidTagFilterException "InvalidTagFilterException"
  3553. // The tag filter was specified in an invalid format.
  3554. //
  3555. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  3556. // The next token was specified in an invalid format.
  3557. //
  3558. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances
  3559. func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) {
  3560. req, out := c.ListOnPremisesInstancesRequest(input)
  3561. return out, req.Send()
  3562. }
  3563. // ListOnPremisesInstancesWithContext is the same as ListOnPremisesInstances with the addition of
  3564. // the ability to pass a context and additional request options.
  3565. //
  3566. // See ListOnPremisesInstances for details on how to use this API operation.
  3567. //
  3568. // The context must be non-nil and will be used for request cancellation. If
  3569. // the context is nil a panic will occur. In the future the SDK may create
  3570. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3571. // for more information on using Contexts.
  3572. func (c *CodeDeploy) ListOnPremisesInstancesWithContext(ctx aws.Context, input *ListOnPremisesInstancesInput, opts ...request.Option) (*ListOnPremisesInstancesOutput, error) {
  3573. req, out := c.ListOnPremisesInstancesRequest(input)
  3574. req.SetContext(ctx)
  3575. req.ApplyOptions(opts...)
  3576. return out, req.Send()
  3577. }
  3578. const opPutLifecycleEventHookExecutionStatus = "PutLifecycleEventHookExecutionStatus"
  3579. // PutLifecycleEventHookExecutionStatusRequest generates a "aws/request.Request" representing the
  3580. // client's request for the PutLifecycleEventHookExecutionStatus operation. The "output" return
  3581. // value will be populated with the request's response once the request completes
  3582. // successfully.
  3583. //
  3584. // Use "Send" method on the returned Request to send the API call to the service.
  3585. // the "output" return value is not valid until after Send returns without error.
  3586. //
  3587. // See PutLifecycleEventHookExecutionStatus for more information on using the PutLifecycleEventHookExecutionStatus
  3588. // API call, and error handling.
  3589. //
  3590. // This method is useful when you want to inject custom logic or configuration
  3591. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3592. //
  3593. //
  3594. // // Example sending a request using the PutLifecycleEventHookExecutionStatusRequest method.
  3595. // req, resp := client.PutLifecycleEventHookExecutionStatusRequest(params)
  3596. //
  3597. // err := req.Send()
  3598. // if err == nil { // resp is now filled
  3599. // fmt.Println(resp)
  3600. // }
  3601. //
  3602. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/PutLifecycleEventHookExecutionStatus
  3603. func (c *CodeDeploy) PutLifecycleEventHookExecutionStatusRequest(input *PutLifecycleEventHookExecutionStatusInput) (req *request.Request, output *PutLifecycleEventHookExecutionStatusOutput) {
  3604. op := &request.Operation{
  3605. Name: opPutLifecycleEventHookExecutionStatus,
  3606. HTTPMethod: "POST",
  3607. HTTPPath: "/",
  3608. }
  3609. if input == nil {
  3610. input = &PutLifecycleEventHookExecutionStatusInput{}
  3611. }
  3612. output = &PutLifecycleEventHookExecutionStatusOutput{}
  3613. req = c.newRequest(op, input, output)
  3614. return
  3615. }
  3616. // PutLifecycleEventHookExecutionStatus API operation for AWS CodeDeploy.
  3617. //
  3618. // Sets the result of a Lambda validation function. The function validates one
  3619. // or both lifecycle events (BeforeAllowTraffic and AfterAllowTraffic) and returns
  3620. // Succeeded or Failed.
  3621. //
  3622. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3623. // with awserr.Error's Code and Message methods to get detailed information about
  3624. // the error.
  3625. //
  3626. // See the AWS API reference guide for AWS CodeDeploy's
  3627. // API operation PutLifecycleEventHookExecutionStatus for usage and error information.
  3628. //
  3629. // Returned Error Codes:
  3630. // * ErrCodeInvalidLifecycleEventHookExecutionStatusException "InvalidLifecycleEventHookExecutionStatusException"
  3631. // The result of a Lambda validation function that verifies a lifecycle event
  3632. // is invalid. It should return Succeeded or Failed.
  3633. //
  3634. // * ErrCodeInvalidLifecycleEventHookExecutionIdException "InvalidLifecycleEventHookExecutionIdException"
  3635. // A lifecycle event hook is invalid. Review the hooks section in your AppSpec
  3636. // file to ensure the lifecycle events and hooks functions are valid.
  3637. //
  3638. // * ErrCodeLifecycleEventAlreadyCompletedException "LifecycleEventAlreadyCompletedException"
  3639. // An attempt to return the status of an already completed lifecycle event occurred.
  3640. //
  3641. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  3642. // At least one deployment ID must be specified.
  3643. //
  3644. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  3645. // The deployment with the IAM user or AWS account does not exist.
  3646. //
  3647. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  3648. // At least one of the deployment IDs was specified in an invalid format.
  3649. //
  3650. // * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException"
  3651. // A call was submitted that is not supported for the specified deployment type.
  3652. //
  3653. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/PutLifecycleEventHookExecutionStatus
  3654. func (c *CodeDeploy) PutLifecycleEventHookExecutionStatus(input *PutLifecycleEventHookExecutionStatusInput) (*PutLifecycleEventHookExecutionStatusOutput, error) {
  3655. req, out := c.PutLifecycleEventHookExecutionStatusRequest(input)
  3656. return out, req.Send()
  3657. }
  3658. // PutLifecycleEventHookExecutionStatusWithContext is the same as PutLifecycleEventHookExecutionStatus with the addition of
  3659. // the ability to pass a context and additional request options.
  3660. //
  3661. // See PutLifecycleEventHookExecutionStatus for details on how to use this API operation.
  3662. //
  3663. // The context must be non-nil and will be used for request cancellation. If
  3664. // the context is nil a panic will occur. In the future the SDK may create
  3665. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3666. // for more information on using Contexts.
  3667. func (c *CodeDeploy) PutLifecycleEventHookExecutionStatusWithContext(ctx aws.Context, input *PutLifecycleEventHookExecutionStatusInput, opts ...request.Option) (*PutLifecycleEventHookExecutionStatusOutput, error) {
  3668. req, out := c.PutLifecycleEventHookExecutionStatusRequest(input)
  3669. req.SetContext(ctx)
  3670. req.ApplyOptions(opts...)
  3671. return out, req.Send()
  3672. }
  3673. const opRegisterApplicationRevision = "RegisterApplicationRevision"
  3674. // RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the
  3675. // client's request for the RegisterApplicationRevision operation. The "output" return
  3676. // value will be populated with the request's response once the request completes
  3677. // successfully.
  3678. //
  3679. // Use "Send" method on the returned Request to send the API call to the service.
  3680. // the "output" return value is not valid until after Send returns without error.
  3681. //
  3682. // See RegisterApplicationRevision for more information on using the RegisterApplicationRevision
  3683. // API call, and error handling.
  3684. //
  3685. // This method is useful when you want to inject custom logic or configuration
  3686. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3687. //
  3688. //
  3689. // // Example sending a request using the RegisterApplicationRevisionRequest method.
  3690. // req, resp := client.RegisterApplicationRevisionRequest(params)
  3691. //
  3692. // err := req.Send()
  3693. // if err == nil { // resp is now filled
  3694. // fmt.Println(resp)
  3695. // }
  3696. //
  3697. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision
  3698. func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput) {
  3699. op := &request.Operation{
  3700. Name: opRegisterApplicationRevision,
  3701. HTTPMethod: "POST",
  3702. HTTPPath: "/",
  3703. }
  3704. if input == nil {
  3705. input = &RegisterApplicationRevisionInput{}
  3706. }
  3707. output = &RegisterApplicationRevisionOutput{}
  3708. req = c.newRequest(op, input, output)
  3709. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3710. return
  3711. }
  3712. // RegisterApplicationRevision API operation for AWS CodeDeploy.
  3713. //
  3714. // Registers with AWS CodeDeploy a revision for the specified application.
  3715. //
  3716. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3717. // with awserr.Error's Code and Message methods to get detailed information about
  3718. // the error.
  3719. //
  3720. // See the AWS API reference guide for AWS CodeDeploy's
  3721. // API operation RegisterApplicationRevision for usage and error information.
  3722. //
  3723. // Returned Error Codes:
  3724. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  3725. // The application does not exist with the IAM user or AWS account.
  3726. //
  3727. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  3728. // The minimum number of required application names was not specified.
  3729. //
  3730. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  3731. // The application name was specified in an invalid format.
  3732. //
  3733. // * ErrCodeDescriptionTooLongException "DescriptionTooLongException"
  3734. // The description is too long.
  3735. //
  3736. // * ErrCodeRevisionRequiredException "RevisionRequiredException"
  3737. // The revision ID was not specified.
  3738. //
  3739. // * ErrCodeInvalidRevisionException "InvalidRevisionException"
  3740. // The revision was specified in an invalid format.
  3741. //
  3742. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision
  3743. func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) {
  3744. req, out := c.RegisterApplicationRevisionRequest(input)
  3745. return out, req.Send()
  3746. }
  3747. // RegisterApplicationRevisionWithContext is the same as RegisterApplicationRevision with the addition of
  3748. // the ability to pass a context and additional request options.
  3749. //
  3750. // See RegisterApplicationRevision for details on how to use this API operation.
  3751. //
  3752. // The context must be non-nil and will be used for request cancellation. If
  3753. // the context is nil a panic will occur. In the future the SDK may create
  3754. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3755. // for more information on using Contexts.
  3756. func (c *CodeDeploy) RegisterApplicationRevisionWithContext(ctx aws.Context, input *RegisterApplicationRevisionInput, opts ...request.Option) (*RegisterApplicationRevisionOutput, error) {
  3757. req, out := c.RegisterApplicationRevisionRequest(input)
  3758. req.SetContext(ctx)
  3759. req.ApplyOptions(opts...)
  3760. return out, req.Send()
  3761. }
  3762. const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance"
  3763. // RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  3764. // client's request for the RegisterOnPremisesInstance operation. The "output" return
  3765. // value will be populated with the request's response once the request completes
  3766. // successfully.
  3767. //
  3768. // Use "Send" method on the returned Request to send the API call to the service.
  3769. // the "output" return value is not valid until after Send returns without error.
  3770. //
  3771. // See RegisterOnPremisesInstance for more information on using the RegisterOnPremisesInstance
  3772. // API call, and error handling.
  3773. //
  3774. // This method is useful when you want to inject custom logic or configuration
  3775. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3776. //
  3777. //
  3778. // // Example sending a request using the RegisterOnPremisesInstanceRequest method.
  3779. // req, resp := client.RegisterOnPremisesInstanceRequest(params)
  3780. //
  3781. // err := req.Send()
  3782. // if err == nil { // resp is now filled
  3783. // fmt.Println(resp)
  3784. // }
  3785. //
  3786. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance
  3787. func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput) {
  3788. op := &request.Operation{
  3789. Name: opRegisterOnPremisesInstance,
  3790. HTTPMethod: "POST",
  3791. HTTPPath: "/",
  3792. }
  3793. if input == nil {
  3794. input = &RegisterOnPremisesInstanceInput{}
  3795. }
  3796. output = &RegisterOnPremisesInstanceOutput{}
  3797. req = c.newRequest(op, input, output)
  3798. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3799. return
  3800. }
  3801. // RegisterOnPremisesInstance API operation for AWS CodeDeploy.
  3802. //
  3803. // Registers an on-premises instance.
  3804. //
  3805. // Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the
  3806. // request. You cannot use both.
  3807. //
  3808. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3809. // with awserr.Error's Code and Message methods to get detailed information about
  3810. // the error.
  3811. //
  3812. // See the AWS API reference guide for AWS CodeDeploy's
  3813. // API operation RegisterOnPremisesInstance for usage and error information.
  3814. //
  3815. // Returned Error Codes:
  3816. // * ErrCodeInstanceNameAlreadyRegisteredException "InstanceNameAlreadyRegisteredException"
  3817. // The specified on-premises instance name is already registered.
  3818. //
  3819. // * ErrCodeIamArnRequiredException "IamArnRequiredException"
  3820. // No IAM ARN was included in the request. You must use an IAM session ARN or
  3821. // IAM user ARN in the request.
  3822. //
  3823. // * ErrCodeIamSessionArnAlreadyRegisteredException "IamSessionArnAlreadyRegisteredException"
  3824. // The request included an IAM session ARN that has already been used to register
  3825. // a different instance.
  3826. //
  3827. // * ErrCodeIamUserArnAlreadyRegisteredException "IamUserArnAlreadyRegisteredException"
  3828. // The specified IAM user ARN is already registered with an on-premises instance.
  3829. //
  3830. // * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
  3831. // An on-premises instance name was not specified.
  3832. //
  3833. // * ErrCodeIamUserArnRequiredException "IamUserArnRequiredException"
  3834. // An IAM user ARN was not specified.
  3835. //
  3836. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  3837. // The on-premises instance name was specified in an invalid format.
  3838. //
  3839. // * ErrCodeInvalidIamSessionArnException "InvalidIamSessionArnException"
  3840. // The IAM session ARN was specified in an invalid format.
  3841. //
  3842. // * ErrCodeInvalidIamUserArnException "InvalidIamUserArnException"
  3843. // The IAM user ARN was specified in an invalid format.
  3844. //
  3845. // * ErrCodeMultipleIamArnsProvidedException "MultipleIamArnsProvidedException"
  3846. // Both an IAM user ARN and an IAM session ARN were included in the request.
  3847. // Use only one ARN type.
  3848. //
  3849. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance
  3850. func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) {
  3851. req, out := c.RegisterOnPremisesInstanceRequest(input)
  3852. return out, req.Send()
  3853. }
  3854. // RegisterOnPremisesInstanceWithContext is the same as RegisterOnPremisesInstance with the addition of
  3855. // the ability to pass a context and additional request options.
  3856. //
  3857. // See RegisterOnPremisesInstance for details on how to use this API operation.
  3858. //
  3859. // The context must be non-nil and will be used for request cancellation. If
  3860. // the context is nil a panic will occur. In the future the SDK may create
  3861. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3862. // for more information on using Contexts.
  3863. func (c *CodeDeploy) RegisterOnPremisesInstanceWithContext(ctx aws.Context, input *RegisterOnPremisesInstanceInput, opts ...request.Option) (*RegisterOnPremisesInstanceOutput, error) {
  3864. req, out := c.RegisterOnPremisesInstanceRequest(input)
  3865. req.SetContext(ctx)
  3866. req.ApplyOptions(opts...)
  3867. return out, req.Send()
  3868. }
  3869. const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances"
  3870. // RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  3871. // client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return
  3872. // value will be populated with the request's response once the request completes
  3873. // successfully.
  3874. //
  3875. // Use "Send" method on the returned Request to send the API call to the service.
  3876. // the "output" return value is not valid until after Send returns without error.
  3877. //
  3878. // See RemoveTagsFromOnPremisesInstances for more information on using the RemoveTagsFromOnPremisesInstances
  3879. // API call, and error handling.
  3880. //
  3881. // This method is useful when you want to inject custom logic or configuration
  3882. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3883. //
  3884. //
  3885. // // Example sending a request using the RemoveTagsFromOnPremisesInstancesRequest method.
  3886. // req, resp := client.RemoveTagsFromOnPremisesInstancesRequest(params)
  3887. //
  3888. // err := req.Send()
  3889. // if err == nil { // resp is now filled
  3890. // fmt.Println(resp)
  3891. // }
  3892. //
  3893. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances
  3894. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput) {
  3895. op := &request.Operation{
  3896. Name: opRemoveTagsFromOnPremisesInstances,
  3897. HTTPMethod: "POST",
  3898. HTTPPath: "/",
  3899. }
  3900. if input == nil {
  3901. input = &RemoveTagsFromOnPremisesInstancesInput{}
  3902. }
  3903. output = &RemoveTagsFromOnPremisesInstancesOutput{}
  3904. req = c.newRequest(op, input, output)
  3905. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3906. return
  3907. }
  3908. // RemoveTagsFromOnPremisesInstances API operation for AWS CodeDeploy.
  3909. //
  3910. // Removes one or more tags from one or more on-premises instances.
  3911. //
  3912. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3913. // with awserr.Error's Code and Message methods to get detailed information about
  3914. // the error.
  3915. //
  3916. // See the AWS API reference guide for AWS CodeDeploy's
  3917. // API operation RemoveTagsFromOnPremisesInstances for usage and error information.
  3918. //
  3919. // Returned Error Codes:
  3920. // * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException"
  3921. // An on-premises instance name was not specified.
  3922. //
  3923. // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException"
  3924. // The on-premises instance name was specified in an invalid format.
  3925. //
  3926. // * ErrCodeTagRequiredException "TagRequiredException"
  3927. // A tag was not specified.
  3928. //
  3929. // * ErrCodeInvalidTagException "InvalidTagException"
  3930. // The tag was specified in an invalid format.
  3931. //
  3932. // * ErrCodeTagLimitExceededException "TagLimitExceededException"
  3933. // The maximum allowed number of tags was exceeded.
  3934. //
  3935. // * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException"
  3936. // The maximum number of allowed on-premises instances in a single call was
  3937. // exceeded.
  3938. //
  3939. // * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException"
  3940. // The specified on-premises instance is not registered.
  3941. //
  3942. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances
  3943. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) {
  3944. req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input)
  3945. return out, req.Send()
  3946. }
  3947. // RemoveTagsFromOnPremisesInstancesWithContext is the same as RemoveTagsFromOnPremisesInstances with the addition of
  3948. // the ability to pass a context and additional request options.
  3949. //
  3950. // See RemoveTagsFromOnPremisesInstances for details on how to use this API operation.
  3951. //
  3952. // The context must be non-nil and will be used for request cancellation. If
  3953. // the context is nil a panic will occur. In the future the SDK may create
  3954. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3955. // for more information on using Contexts.
  3956. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesWithContext(ctx aws.Context, input *RemoveTagsFromOnPremisesInstancesInput, opts ...request.Option) (*RemoveTagsFromOnPremisesInstancesOutput, error) {
  3957. req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input)
  3958. req.SetContext(ctx)
  3959. req.ApplyOptions(opts...)
  3960. return out, req.Send()
  3961. }
  3962. const opSkipWaitTimeForInstanceTermination = "SkipWaitTimeForInstanceTermination"
  3963. // SkipWaitTimeForInstanceTerminationRequest generates a "aws/request.Request" representing the
  3964. // client's request for the SkipWaitTimeForInstanceTermination operation. The "output" return
  3965. // value will be populated with the request's response once the request completes
  3966. // successfully.
  3967. //
  3968. // Use "Send" method on the returned Request to send the API call to the service.
  3969. // the "output" return value is not valid until after Send returns without error.
  3970. //
  3971. // See SkipWaitTimeForInstanceTermination for more information on using the SkipWaitTimeForInstanceTermination
  3972. // API call, and error handling.
  3973. //
  3974. // This method is useful when you want to inject custom logic or configuration
  3975. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3976. //
  3977. //
  3978. // // Example sending a request using the SkipWaitTimeForInstanceTerminationRequest method.
  3979. // req, resp := client.SkipWaitTimeForInstanceTerminationRequest(params)
  3980. //
  3981. // err := req.Send()
  3982. // if err == nil { // resp is now filled
  3983. // fmt.Println(resp)
  3984. // }
  3985. //
  3986. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination
  3987. //
  3988. // Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead.
  3989. func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationRequest(input *SkipWaitTimeForInstanceTerminationInput) (req *request.Request, output *SkipWaitTimeForInstanceTerminationOutput) {
  3990. if c.Client.Config.Logger != nil {
  3991. c.Client.Config.Logger.Log("This operation, SkipWaitTimeForInstanceTermination, has been deprecated")
  3992. }
  3993. op := &request.Operation{
  3994. Name: opSkipWaitTimeForInstanceTermination,
  3995. HTTPMethod: "POST",
  3996. HTTPPath: "/",
  3997. }
  3998. if input == nil {
  3999. input = &SkipWaitTimeForInstanceTerminationInput{}
  4000. }
  4001. output = &SkipWaitTimeForInstanceTerminationOutput{}
  4002. req = c.newRequest(op, input, output)
  4003. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  4004. return
  4005. }
  4006. // SkipWaitTimeForInstanceTermination API operation for AWS CodeDeploy.
  4007. //
  4008. // In a blue/green deployment, overrides any specified wait time and starts
  4009. // terminating instances immediately after the traffic routing is complete.
  4010. //
  4011. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4012. // with awserr.Error's Code and Message methods to get detailed information about
  4013. // the error.
  4014. //
  4015. // See the AWS API reference guide for AWS CodeDeploy's
  4016. // API operation SkipWaitTimeForInstanceTermination for usage and error information.
  4017. //
  4018. // Returned Error Codes:
  4019. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  4020. // At least one deployment ID must be specified.
  4021. //
  4022. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  4023. // The deployment with the IAM user or AWS account does not exist.
  4024. //
  4025. // * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException"
  4026. // The deployment is already complete.
  4027. //
  4028. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  4029. // At least one of the deployment IDs was specified in an invalid format.
  4030. //
  4031. // * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException"
  4032. // The specified deployment has not started.
  4033. //
  4034. // * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException"
  4035. // A call was submitted that is not supported for the specified deployment type.
  4036. //
  4037. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination
  4038. //
  4039. // Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead.
  4040. func (c *CodeDeploy) SkipWaitTimeForInstanceTermination(input *SkipWaitTimeForInstanceTerminationInput) (*SkipWaitTimeForInstanceTerminationOutput, error) {
  4041. req, out := c.SkipWaitTimeForInstanceTerminationRequest(input)
  4042. return out, req.Send()
  4043. }
  4044. // SkipWaitTimeForInstanceTerminationWithContext is the same as SkipWaitTimeForInstanceTermination with the addition of
  4045. // the ability to pass a context and additional request options.
  4046. //
  4047. // See SkipWaitTimeForInstanceTermination for details on how to use this API operation.
  4048. //
  4049. // The context must be non-nil and will be used for request cancellation. If
  4050. // the context is nil a panic will occur. In the future the SDK may create
  4051. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4052. // for more information on using Contexts.
  4053. //
  4054. // Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead.
  4055. func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationWithContext(ctx aws.Context, input *SkipWaitTimeForInstanceTerminationInput, opts ...request.Option) (*SkipWaitTimeForInstanceTerminationOutput, error) {
  4056. req, out := c.SkipWaitTimeForInstanceTerminationRequest(input)
  4057. req.SetContext(ctx)
  4058. req.ApplyOptions(opts...)
  4059. return out, req.Send()
  4060. }
  4061. const opStopDeployment = "StopDeployment"
  4062. // StopDeploymentRequest generates a "aws/request.Request" representing the
  4063. // client's request for the StopDeployment operation. The "output" return
  4064. // value will be populated with the request's response once the request completes
  4065. // successfully.
  4066. //
  4067. // Use "Send" method on the returned Request to send the API call to the service.
  4068. // the "output" return value is not valid until after Send returns without error.
  4069. //
  4070. // See StopDeployment for more information on using the StopDeployment
  4071. // API call, and error handling.
  4072. //
  4073. // This method is useful when you want to inject custom logic or configuration
  4074. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4075. //
  4076. //
  4077. // // Example sending a request using the StopDeploymentRequest method.
  4078. // req, resp := client.StopDeploymentRequest(params)
  4079. //
  4080. // err := req.Send()
  4081. // if err == nil { // resp is now filled
  4082. // fmt.Println(resp)
  4083. // }
  4084. //
  4085. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment
  4086. func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) {
  4087. op := &request.Operation{
  4088. Name: opStopDeployment,
  4089. HTTPMethod: "POST",
  4090. HTTPPath: "/",
  4091. }
  4092. if input == nil {
  4093. input = &StopDeploymentInput{}
  4094. }
  4095. output = &StopDeploymentOutput{}
  4096. req = c.newRequest(op, input, output)
  4097. return
  4098. }
  4099. // StopDeployment API operation for AWS CodeDeploy.
  4100. //
  4101. // Attempts to stop an ongoing deployment.
  4102. //
  4103. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4104. // with awserr.Error's Code and Message methods to get detailed information about
  4105. // the error.
  4106. //
  4107. // See the AWS API reference guide for AWS CodeDeploy's
  4108. // API operation StopDeployment for usage and error information.
  4109. //
  4110. // Returned Error Codes:
  4111. // * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException"
  4112. // At least one deployment ID must be specified.
  4113. //
  4114. // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException"
  4115. // The deployment with the IAM user or AWS account does not exist.
  4116. //
  4117. // * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
  4118. // The named deployment group with the IAM user or AWS account does not exist.
  4119. //
  4120. // * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException"
  4121. // The deployment is already complete.
  4122. //
  4123. // * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException"
  4124. // At least one of the deployment IDs was specified in an invalid format.
  4125. //
  4126. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment
  4127. func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) {
  4128. req, out := c.StopDeploymentRequest(input)
  4129. return out, req.Send()
  4130. }
  4131. // StopDeploymentWithContext is the same as StopDeployment with the addition of
  4132. // the ability to pass a context and additional request options.
  4133. //
  4134. // See StopDeployment for details on how to use this API operation.
  4135. //
  4136. // The context must be non-nil and will be used for request cancellation. If
  4137. // the context is nil a panic will occur. In the future the SDK may create
  4138. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4139. // for more information on using Contexts.
  4140. func (c *CodeDeploy) StopDeploymentWithContext(ctx aws.Context, input *StopDeploymentInput, opts ...request.Option) (*StopDeploymentOutput, error) {
  4141. req, out := c.StopDeploymentRequest(input)
  4142. req.SetContext(ctx)
  4143. req.ApplyOptions(opts...)
  4144. return out, req.Send()
  4145. }
  4146. const opUpdateApplication = "UpdateApplication"
  4147. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  4148. // client's request for the UpdateApplication operation. The "output" return
  4149. // value will be populated with the request's response once the request completes
  4150. // successfully.
  4151. //
  4152. // Use "Send" method on the returned Request to send the API call to the service.
  4153. // the "output" return value is not valid until after Send returns without error.
  4154. //
  4155. // See UpdateApplication for more information on using the UpdateApplication
  4156. // API call, and error handling.
  4157. //
  4158. // This method is useful when you want to inject custom logic or configuration
  4159. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4160. //
  4161. //
  4162. // // Example sending a request using the UpdateApplicationRequest method.
  4163. // req, resp := client.UpdateApplicationRequest(params)
  4164. //
  4165. // err := req.Send()
  4166. // if err == nil { // resp is now filled
  4167. // fmt.Println(resp)
  4168. // }
  4169. //
  4170. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication
  4171. func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
  4172. op := &request.Operation{
  4173. Name: opUpdateApplication,
  4174. HTTPMethod: "POST",
  4175. HTTPPath: "/",
  4176. }
  4177. if input == nil {
  4178. input = &UpdateApplicationInput{}
  4179. }
  4180. output = &UpdateApplicationOutput{}
  4181. req = c.newRequest(op, input, output)
  4182. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  4183. return
  4184. }
  4185. // UpdateApplication API operation for AWS CodeDeploy.
  4186. //
  4187. // Changes the name of an application.
  4188. //
  4189. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4190. // with awserr.Error's Code and Message methods to get detailed information about
  4191. // the error.
  4192. //
  4193. // See the AWS API reference guide for AWS CodeDeploy's
  4194. // API operation UpdateApplication for usage and error information.
  4195. //
  4196. // Returned Error Codes:
  4197. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  4198. // The minimum number of required application names was not specified.
  4199. //
  4200. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  4201. // The application name was specified in an invalid format.
  4202. //
  4203. // * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException"
  4204. // An application with the specified name with the IAM user or AWS account already
  4205. // exists.
  4206. //
  4207. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  4208. // The application does not exist with the IAM user or AWS account.
  4209. //
  4210. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication
  4211. func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
  4212. req, out := c.UpdateApplicationRequest(input)
  4213. return out, req.Send()
  4214. }
  4215. // UpdateApplicationWithContext is the same as UpdateApplication with the addition of
  4216. // the ability to pass a context and additional request options.
  4217. //
  4218. // See UpdateApplication for details on how to use this API operation.
  4219. //
  4220. // The context must be non-nil and will be used for request cancellation. If
  4221. // the context is nil a panic will occur. In the future the SDK may create
  4222. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4223. // for more information on using Contexts.
  4224. func (c *CodeDeploy) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) {
  4225. req, out := c.UpdateApplicationRequest(input)
  4226. req.SetContext(ctx)
  4227. req.ApplyOptions(opts...)
  4228. return out, req.Send()
  4229. }
  4230. const opUpdateDeploymentGroup = "UpdateDeploymentGroup"
  4231. // UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the
  4232. // client's request for the UpdateDeploymentGroup operation. The "output" return
  4233. // value will be populated with the request's response once the request completes
  4234. // successfully.
  4235. //
  4236. // Use "Send" method on the returned Request to send the API call to the service.
  4237. // the "output" return value is not valid until after Send returns without error.
  4238. //
  4239. // See UpdateDeploymentGroup for more information on using the UpdateDeploymentGroup
  4240. // API call, and error handling.
  4241. //
  4242. // This method is useful when you want to inject custom logic or configuration
  4243. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4244. //
  4245. //
  4246. // // Example sending a request using the UpdateDeploymentGroupRequest method.
  4247. // req, resp := client.UpdateDeploymentGroupRequest(params)
  4248. //
  4249. // err := req.Send()
  4250. // if err == nil { // resp is now filled
  4251. // fmt.Println(resp)
  4252. // }
  4253. //
  4254. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup
  4255. func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput) {
  4256. op := &request.Operation{
  4257. Name: opUpdateDeploymentGroup,
  4258. HTTPMethod: "POST",
  4259. HTTPPath: "/",
  4260. }
  4261. if input == nil {
  4262. input = &UpdateDeploymentGroupInput{}
  4263. }
  4264. output = &UpdateDeploymentGroupOutput{}
  4265. req = c.newRequest(op, input, output)
  4266. return
  4267. }
  4268. // UpdateDeploymentGroup API operation for AWS CodeDeploy.
  4269. //
  4270. // Changes information about a deployment group.
  4271. //
  4272. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4273. // with awserr.Error's Code and Message methods to get detailed information about
  4274. // the error.
  4275. //
  4276. // See the AWS API reference guide for AWS CodeDeploy's
  4277. // API operation UpdateDeploymentGroup for usage and error information.
  4278. //
  4279. // Returned Error Codes:
  4280. // * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException"
  4281. // The minimum number of required application names was not specified.
  4282. //
  4283. // * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException"
  4284. // The application name was specified in an invalid format.
  4285. //
  4286. // * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException"
  4287. // The application does not exist with the IAM user or AWS account.
  4288. //
  4289. // * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException"
  4290. // The deployment group name was specified in an invalid format.
  4291. //
  4292. // * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException"
  4293. // A deployment group with the specified name with the IAM user or AWS account
  4294. // already exists.
  4295. //
  4296. // * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException"
  4297. // The deployment group name was not specified.
  4298. //
  4299. // * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException"
  4300. // The named deployment group with the IAM user or AWS account does not exist.
  4301. //
  4302. // * ErrCodeInvalidEC2TagException "InvalidEC2TagException"
  4303. // The tag was specified in an invalid format.
  4304. //
  4305. // * ErrCodeInvalidTagException "InvalidTagException"
  4306. // The tag was specified in an invalid format.
  4307. //
  4308. // * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException"
  4309. // The Auto Scaling group was specified in an invalid format or does not exist.
  4310. //
  4311. // * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException"
  4312. // The deployment configuration name was specified in an invalid format.
  4313. //
  4314. // * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException"
  4315. // The deployment configuration does not exist with the IAM user or AWS account.
  4316. //
  4317. // * ErrCodeInvalidRoleException "InvalidRoleException"
  4318. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  4319. // group was specified, the specified service role does not grant the appropriate
  4320. // permissions to Amazon EC2 Auto Scaling.
  4321. //
  4322. // * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException"
  4323. // The limit for lifecycle hooks was exceeded.
  4324. //
  4325. // * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException"
  4326. // The trigger was specified in an invalid format.
  4327. //
  4328. // * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException"
  4329. // The maximum allowed number of triggers was exceeded.
  4330. //
  4331. // * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException"
  4332. // The format of the alarm configuration is invalid. Possible causes include:
  4333. //
  4334. // * The alarm list is null.
  4335. //
  4336. // * The alarm object is null.
  4337. //
  4338. // * The alarm name is empty or null or exceeds the limit of 255 characters.
  4339. //
  4340. // * Two alarms with the same name have been specified.
  4341. //
  4342. // * The alarm configuration is enabled, but the alarm list is empty.
  4343. //
  4344. // * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException"
  4345. // The maximum number of alarms for a deployment group (10) was exceeded.
  4346. //
  4347. // * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException"
  4348. // The automatic rollback configuration was specified in an invalid format.
  4349. // For example, automatic rollback is enabled, but an invalid triggering event
  4350. // type or no event types were listed.
  4351. //
  4352. // * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException"
  4353. // An invalid load balancer name, or no load balancer name, was specified.
  4354. //
  4355. // * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException"
  4356. // An invalid deployment style was specified. Valid deployment types include
  4357. // "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL"
  4358. // and "WITHOUT_TRAFFIC_CONTROL."
  4359. //
  4360. // * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException"
  4361. // The configuration for the blue/green deployment group was provided in an
  4362. // invalid format. For information about deployment configuration format, see
  4363. // CreateDeploymentConfig.
  4364. //
  4365. // * ErrCodeInvalidEC2TagCombinationException "InvalidEC2TagCombinationException"
  4366. // A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but
  4367. // only one of these data types can be used in a single call.
  4368. //
  4369. // * ErrCodeInvalidOnPremisesTagCombinationException "InvalidOnPremisesTagCombinationException"
  4370. // A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet,
  4371. // but only one of these data types can be used in a single call.
  4372. //
  4373. // * ErrCodeTagSetListLimitExceededException "TagSetListLimitExceededException"
  4374. // The number of tag groups included in the tag set list exceeded the maximum
  4375. // allowed limit of 3.
  4376. //
  4377. // * ErrCodeInvalidInputException "InvalidInputException"
  4378. // The input was specified in an invalid format.
  4379. //
  4380. // * ErrCodeThrottlingException "ThrottlingException"
  4381. // An API function was called too frequently.
  4382. //
  4383. // * ErrCodeInvalidECSServiceException "InvalidECSServiceException"
  4384. // The Amazon ECS service identifier is not valid.
  4385. //
  4386. // * ErrCodeInvalidTargetGroupPairException "InvalidTargetGroupPairException"
  4387. // A target group pair associated with this deployment is not valid.
  4388. //
  4389. // * ErrCodeECSServiceMappingLimitExceededException "ECSServiceMappingLimitExceededException"
  4390. // The Amazon ECS service is associated with more than one deployment groups.
  4391. // An Amazon ECS service can be associated with only one deployment group.
  4392. //
  4393. // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup
  4394. func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) {
  4395. req, out := c.UpdateDeploymentGroupRequest(input)
  4396. return out, req.Send()
  4397. }
  4398. // UpdateDeploymentGroupWithContext is the same as UpdateDeploymentGroup with the addition of
  4399. // the ability to pass a context and additional request options.
  4400. //
  4401. // See UpdateDeploymentGroup for details on how to use this API operation.
  4402. //
  4403. // The context must be non-nil and will be used for request cancellation. If
  4404. // the context is nil a panic will occur. In the future the SDK may create
  4405. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4406. // for more information on using Contexts.
  4407. func (c *CodeDeploy) UpdateDeploymentGroupWithContext(ctx aws.Context, input *UpdateDeploymentGroupInput, opts ...request.Option) (*UpdateDeploymentGroupOutput, error) {
  4408. req, out := c.UpdateDeploymentGroupRequest(input)
  4409. req.SetContext(ctx)
  4410. req.ApplyOptions(opts...)
  4411. return out, req.Send()
  4412. }
  4413. // Represents the input of, and adds tags to, an on-premises instance operation.
  4414. type AddTagsToOnPremisesInstancesInput struct {
  4415. _ struct{} `type:"structure"`
  4416. // The names of the on-premises instances to which to add tags.
  4417. //
  4418. // InstanceNames is a required field
  4419. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  4420. // The tag key-value pairs to add to the on-premises instances.
  4421. //
  4422. // Keys and values are both required. Keys cannot be null or empty strings.
  4423. // Value-only tags are not allowed.
  4424. //
  4425. // Tags is a required field
  4426. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  4427. }
  4428. // String returns the string representation
  4429. func (s AddTagsToOnPremisesInstancesInput) String() string {
  4430. return awsutil.Prettify(s)
  4431. }
  4432. // GoString returns the string representation
  4433. func (s AddTagsToOnPremisesInstancesInput) GoString() string {
  4434. return s.String()
  4435. }
  4436. // Validate inspects the fields of the type to determine if they are valid.
  4437. func (s *AddTagsToOnPremisesInstancesInput) Validate() error {
  4438. invalidParams := request.ErrInvalidParams{Context: "AddTagsToOnPremisesInstancesInput"}
  4439. if s.InstanceNames == nil {
  4440. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  4441. }
  4442. if s.Tags == nil {
  4443. invalidParams.Add(request.NewErrParamRequired("Tags"))
  4444. }
  4445. if invalidParams.Len() > 0 {
  4446. return invalidParams
  4447. }
  4448. return nil
  4449. }
  4450. // SetInstanceNames sets the InstanceNames field's value.
  4451. func (s *AddTagsToOnPremisesInstancesInput) SetInstanceNames(v []*string) *AddTagsToOnPremisesInstancesInput {
  4452. s.InstanceNames = v
  4453. return s
  4454. }
  4455. // SetTags sets the Tags field's value.
  4456. func (s *AddTagsToOnPremisesInstancesInput) SetTags(v []*Tag) *AddTagsToOnPremisesInstancesInput {
  4457. s.Tags = v
  4458. return s
  4459. }
  4460. type AddTagsToOnPremisesInstancesOutput struct {
  4461. _ struct{} `type:"structure"`
  4462. }
  4463. // String returns the string representation
  4464. func (s AddTagsToOnPremisesInstancesOutput) String() string {
  4465. return awsutil.Prettify(s)
  4466. }
  4467. // GoString returns the string representation
  4468. func (s AddTagsToOnPremisesInstancesOutput) GoString() string {
  4469. return s.String()
  4470. }
  4471. // Information about an alarm.
  4472. type Alarm struct {
  4473. _ struct{} `type:"structure"`
  4474. // The name of the alarm. Maximum length is 255 characters. Each alarm name
  4475. // can be used only once in a list of alarms.
  4476. Name *string `locationName:"name" type:"string"`
  4477. }
  4478. // String returns the string representation
  4479. func (s Alarm) String() string {
  4480. return awsutil.Prettify(s)
  4481. }
  4482. // GoString returns the string representation
  4483. func (s Alarm) GoString() string {
  4484. return s.String()
  4485. }
  4486. // SetName sets the Name field's value.
  4487. func (s *Alarm) SetName(v string) *Alarm {
  4488. s.Name = &v
  4489. return s
  4490. }
  4491. // Information about alarms associated with the deployment group.
  4492. type AlarmConfiguration struct {
  4493. _ struct{} `type:"structure"`
  4494. // A list of alarms configured for the deployment group. A maximum of 10 alarms
  4495. // can be added to a deployment group.
  4496. Alarms []*Alarm `locationName:"alarms" type:"list"`
  4497. // Indicates whether the alarm configuration is enabled.
  4498. Enabled *bool `locationName:"enabled" type:"boolean"`
  4499. // Indicates whether a deployment should continue if information about the current
  4500. // state of alarms cannot be retrieved from Amazon CloudWatch. The default value
  4501. // is false.
  4502. //
  4503. // * true: The deployment proceeds even if alarm status information can't
  4504. // be retrieved from Amazon CloudWatch.
  4505. //
  4506. // * false: The deployment stops if alarm status information can't be retrieved
  4507. // from Amazon CloudWatch.
  4508. IgnorePollAlarmFailure *bool `locationName:"ignorePollAlarmFailure" type:"boolean"`
  4509. }
  4510. // String returns the string representation
  4511. func (s AlarmConfiguration) String() string {
  4512. return awsutil.Prettify(s)
  4513. }
  4514. // GoString returns the string representation
  4515. func (s AlarmConfiguration) GoString() string {
  4516. return s.String()
  4517. }
  4518. // SetAlarms sets the Alarms field's value.
  4519. func (s *AlarmConfiguration) SetAlarms(v []*Alarm) *AlarmConfiguration {
  4520. s.Alarms = v
  4521. return s
  4522. }
  4523. // SetEnabled sets the Enabled field's value.
  4524. func (s *AlarmConfiguration) SetEnabled(v bool) *AlarmConfiguration {
  4525. s.Enabled = &v
  4526. return s
  4527. }
  4528. // SetIgnorePollAlarmFailure sets the IgnorePollAlarmFailure field's value.
  4529. func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfiguration {
  4530. s.IgnorePollAlarmFailure = &v
  4531. return s
  4532. }
  4533. // A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted
  4534. // or JSON-formatted string. For AWS Lambda and Amazon ECS deployments, the
  4535. // revision is the same as the AppSpec file. This method replaces the deprecated
  4536. // RawString data type.
  4537. type AppSpecContent struct {
  4538. _ struct{} `type:"structure"`
  4539. // The YAML-formatted or JSON-formatted revision string.
  4540. //
  4541. // For an AWS Lambda deployment, the content includes a Lambda function name,
  4542. // the alias for its original version, and the alias for its replacement version.
  4543. // The deployment shifts traffic from the original version of the Lambda function
  4544. // to the replacement version.
  4545. //
  4546. // For an Amazon ECS deployment, the content includes the task name, information
  4547. // about the load balancer that serves traffic to the container, and more.
  4548. //
  4549. // For both types of deployments, the content can specify Lambda functions that
  4550. // run at specified hooks, such as BeforeInstall, during a deployment.
  4551. Content *string `locationName:"content" type:"string"`
  4552. // The SHA256 hash value of the revision content.
  4553. Sha256 *string `locationName:"sha256" type:"string"`
  4554. }
  4555. // String returns the string representation
  4556. func (s AppSpecContent) String() string {
  4557. return awsutil.Prettify(s)
  4558. }
  4559. // GoString returns the string representation
  4560. func (s AppSpecContent) GoString() string {
  4561. return s.String()
  4562. }
  4563. // SetContent sets the Content field's value.
  4564. func (s *AppSpecContent) SetContent(v string) *AppSpecContent {
  4565. s.Content = &v
  4566. return s
  4567. }
  4568. // SetSha256 sets the Sha256 field's value.
  4569. func (s *AppSpecContent) SetSha256(v string) *AppSpecContent {
  4570. s.Sha256 = &v
  4571. return s
  4572. }
  4573. // Information about an application.
  4574. type ApplicationInfo struct {
  4575. _ struct{} `type:"structure"`
  4576. // The application ID.
  4577. ApplicationId *string `locationName:"applicationId" type:"string"`
  4578. // The application name.
  4579. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  4580. // The destination platform type for deployment of the application (Lambda or
  4581. // Server).
  4582. ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"`
  4583. // The time at which the application was created.
  4584. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  4585. // The name for a connection to a GitHub account.
  4586. GitHubAccountName *string `locationName:"gitHubAccountName" type:"string"`
  4587. // True if the user has authenticated with GitHub for the specified application.
  4588. // Otherwise, false.
  4589. LinkedToGitHub *bool `locationName:"linkedToGitHub" type:"boolean"`
  4590. }
  4591. // String returns the string representation
  4592. func (s ApplicationInfo) String() string {
  4593. return awsutil.Prettify(s)
  4594. }
  4595. // GoString returns the string representation
  4596. func (s ApplicationInfo) GoString() string {
  4597. return s.String()
  4598. }
  4599. // SetApplicationId sets the ApplicationId field's value.
  4600. func (s *ApplicationInfo) SetApplicationId(v string) *ApplicationInfo {
  4601. s.ApplicationId = &v
  4602. return s
  4603. }
  4604. // SetApplicationName sets the ApplicationName field's value.
  4605. func (s *ApplicationInfo) SetApplicationName(v string) *ApplicationInfo {
  4606. s.ApplicationName = &v
  4607. return s
  4608. }
  4609. // SetComputePlatform sets the ComputePlatform field's value.
  4610. func (s *ApplicationInfo) SetComputePlatform(v string) *ApplicationInfo {
  4611. s.ComputePlatform = &v
  4612. return s
  4613. }
  4614. // SetCreateTime sets the CreateTime field's value.
  4615. func (s *ApplicationInfo) SetCreateTime(v time.Time) *ApplicationInfo {
  4616. s.CreateTime = &v
  4617. return s
  4618. }
  4619. // SetGitHubAccountName sets the GitHubAccountName field's value.
  4620. func (s *ApplicationInfo) SetGitHubAccountName(v string) *ApplicationInfo {
  4621. s.GitHubAccountName = &v
  4622. return s
  4623. }
  4624. // SetLinkedToGitHub sets the LinkedToGitHub field's value.
  4625. func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo {
  4626. s.LinkedToGitHub = &v
  4627. return s
  4628. }
  4629. // Information about a configuration for automatically rolling back to a previous
  4630. // version of an application revision when a deployment is not completed successfully.
  4631. type AutoRollbackConfiguration struct {
  4632. _ struct{} `type:"structure"`
  4633. // Indicates whether a defined automatic rollback configuration is currently
  4634. // enabled.
  4635. Enabled *bool `locationName:"enabled" type:"boolean"`
  4636. // The event type or types that trigger a rollback.
  4637. Events []*string `locationName:"events" type:"list"`
  4638. }
  4639. // String returns the string representation
  4640. func (s AutoRollbackConfiguration) String() string {
  4641. return awsutil.Prettify(s)
  4642. }
  4643. // GoString returns the string representation
  4644. func (s AutoRollbackConfiguration) GoString() string {
  4645. return s.String()
  4646. }
  4647. // SetEnabled sets the Enabled field's value.
  4648. func (s *AutoRollbackConfiguration) SetEnabled(v bool) *AutoRollbackConfiguration {
  4649. s.Enabled = &v
  4650. return s
  4651. }
  4652. // SetEvents sets the Events field's value.
  4653. func (s *AutoRollbackConfiguration) SetEvents(v []*string) *AutoRollbackConfiguration {
  4654. s.Events = v
  4655. return s
  4656. }
  4657. // Information about an Auto Scaling group.
  4658. type AutoScalingGroup struct {
  4659. _ struct{} `type:"structure"`
  4660. // An Auto Scaling lifecycle event hook name.
  4661. Hook *string `locationName:"hook" type:"string"`
  4662. // The Auto Scaling group name.
  4663. Name *string `locationName:"name" type:"string"`
  4664. }
  4665. // String returns the string representation
  4666. func (s AutoScalingGroup) String() string {
  4667. return awsutil.Prettify(s)
  4668. }
  4669. // GoString returns the string representation
  4670. func (s AutoScalingGroup) GoString() string {
  4671. return s.String()
  4672. }
  4673. // SetHook sets the Hook field's value.
  4674. func (s *AutoScalingGroup) SetHook(v string) *AutoScalingGroup {
  4675. s.Hook = &v
  4676. return s
  4677. }
  4678. // SetName sets the Name field's value.
  4679. func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup {
  4680. s.Name = &v
  4681. return s
  4682. }
  4683. // Represents the input of a BatchGetApplicationRevisions operation.
  4684. type BatchGetApplicationRevisionsInput struct {
  4685. _ struct{} `type:"structure"`
  4686. // The name of an AWS CodeDeploy application about which to get revision information.
  4687. //
  4688. // ApplicationName is a required field
  4689. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4690. // Information to get about the application revisions, including type and location.
  4691. //
  4692. // Revisions is a required field
  4693. Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"`
  4694. }
  4695. // String returns the string representation
  4696. func (s BatchGetApplicationRevisionsInput) String() string {
  4697. return awsutil.Prettify(s)
  4698. }
  4699. // GoString returns the string representation
  4700. func (s BatchGetApplicationRevisionsInput) GoString() string {
  4701. return s.String()
  4702. }
  4703. // Validate inspects the fields of the type to determine if they are valid.
  4704. func (s *BatchGetApplicationRevisionsInput) Validate() error {
  4705. invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationRevisionsInput"}
  4706. if s.ApplicationName == nil {
  4707. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4708. }
  4709. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4710. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4711. }
  4712. if s.Revisions == nil {
  4713. invalidParams.Add(request.NewErrParamRequired("Revisions"))
  4714. }
  4715. if invalidParams.Len() > 0 {
  4716. return invalidParams
  4717. }
  4718. return nil
  4719. }
  4720. // SetApplicationName sets the ApplicationName field's value.
  4721. func (s *BatchGetApplicationRevisionsInput) SetApplicationName(v string) *BatchGetApplicationRevisionsInput {
  4722. s.ApplicationName = &v
  4723. return s
  4724. }
  4725. // SetRevisions sets the Revisions field's value.
  4726. func (s *BatchGetApplicationRevisionsInput) SetRevisions(v []*RevisionLocation) *BatchGetApplicationRevisionsInput {
  4727. s.Revisions = v
  4728. return s
  4729. }
  4730. // Represents the output of a BatchGetApplicationRevisions operation.
  4731. type BatchGetApplicationRevisionsOutput struct {
  4732. _ struct{} `type:"structure"`
  4733. // The name of the application that corresponds to the revisions.
  4734. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  4735. // Information about errors that might have occurred during the API call.
  4736. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  4737. // Additional information about the revisions, including the type and location.
  4738. Revisions []*RevisionInfo `locationName:"revisions" type:"list"`
  4739. }
  4740. // String returns the string representation
  4741. func (s BatchGetApplicationRevisionsOutput) String() string {
  4742. return awsutil.Prettify(s)
  4743. }
  4744. // GoString returns the string representation
  4745. func (s BatchGetApplicationRevisionsOutput) GoString() string {
  4746. return s.String()
  4747. }
  4748. // SetApplicationName sets the ApplicationName field's value.
  4749. func (s *BatchGetApplicationRevisionsOutput) SetApplicationName(v string) *BatchGetApplicationRevisionsOutput {
  4750. s.ApplicationName = &v
  4751. return s
  4752. }
  4753. // SetErrorMessage sets the ErrorMessage field's value.
  4754. func (s *BatchGetApplicationRevisionsOutput) SetErrorMessage(v string) *BatchGetApplicationRevisionsOutput {
  4755. s.ErrorMessage = &v
  4756. return s
  4757. }
  4758. // SetRevisions sets the Revisions field's value.
  4759. func (s *BatchGetApplicationRevisionsOutput) SetRevisions(v []*RevisionInfo) *BatchGetApplicationRevisionsOutput {
  4760. s.Revisions = v
  4761. return s
  4762. }
  4763. // Represents the input of a BatchGetApplications operation.
  4764. type BatchGetApplicationsInput struct {
  4765. _ struct{} `type:"structure"`
  4766. // A list of application names separated by spaces.
  4767. //
  4768. // ApplicationNames is a required field
  4769. ApplicationNames []*string `locationName:"applicationNames" type:"list" required:"true"`
  4770. }
  4771. // String returns the string representation
  4772. func (s BatchGetApplicationsInput) String() string {
  4773. return awsutil.Prettify(s)
  4774. }
  4775. // GoString returns the string representation
  4776. func (s BatchGetApplicationsInput) GoString() string {
  4777. return s.String()
  4778. }
  4779. // Validate inspects the fields of the type to determine if they are valid.
  4780. func (s *BatchGetApplicationsInput) Validate() error {
  4781. invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationsInput"}
  4782. if s.ApplicationNames == nil {
  4783. invalidParams.Add(request.NewErrParamRequired("ApplicationNames"))
  4784. }
  4785. if invalidParams.Len() > 0 {
  4786. return invalidParams
  4787. }
  4788. return nil
  4789. }
  4790. // SetApplicationNames sets the ApplicationNames field's value.
  4791. func (s *BatchGetApplicationsInput) SetApplicationNames(v []*string) *BatchGetApplicationsInput {
  4792. s.ApplicationNames = v
  4793. return s
  4794. }
  4795. // Represents the output of a BatchGetApplications operation.
  4796. type BatchGetApplicationsOutput struct {
  4797. _ struct{} `type:"structure"`
  4798. // Information about the applications.
  4799. ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"`
  4800. }
  4801. // String returns the string representation
  4802. func (s BatchGetApplicationsOutput) String() string {
  4803. return awsutil.Prettify(s)
  4804. }
  4805. // GoString returns the string representation
  4806. func (s BatchGetApplicationsOutput) GoString() string {
  4807. return s.String()
  4808. }
  4809. // SetApplicationsInfo sets the ApplicationsInfo field's value.
  4810. func (s *BatchGetApplicationsOutput) SetApplicationsInfo(v []*ApplicationInfo) *BatchGetApplicationsOutput {
  4811. s.ApplicationsInfo = v
  4812. return s
  4813. }
  4814. // Represents the input of a BatchGetDeploymentGroups operation.
  4815. type BatchGetDeploymentGroupsInput struct {
  4816. _ struct{} `type:"structure"`
  4817. // The name of an AWS CodeDeploy application associated with the applicable
  4818. // IAM user or AWS account.
  4819. //
  4820. // ApplicationName is a required field
  4821. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4822. // The names of the deployment groups.
  4823. //
  4824. // DeploymentGroupNames is a required field
  4825. DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"`
  4826. }
  4827. // String returns the string representation
  4828. func (s BatchGetDeploymentGroupsInput) String() string {
  4829. return awsutil.Prettify(s)
  4830. }
  4831. // GoString returns the string representation
  4832. func (s BatchGetDeploymentGroupsInput) GoString() string {
  4833. return s.String()
  4834. }
  4835. // Validate inspects the fields of the type to determine if they are valid.
  4836. func (s *BatchGetDeploymentGroupsInput) Validate() error {
  4837. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentGroupsInput"}
  4838. if s.ApplicationName == nil {
  4839. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4840. }
  4841. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4842. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4843. }
  4844. if s.DeploymentGroupNames == nil {
  4845. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupNames"))
  4846. }
  4847. if invalidParams.Len() > 0 {
  4848. return invalidParams
  4849. }
  4850. return nil
  4851. }
  4852. // SetApplicationName sets the ApplicationName field's value.
  4853. func (s *BatchGetDeploymentGroupsInput) SetApplicationName(v string) *BatchGetDeploymentGroupsInput {
  4854. s.ApplicationName = &v
  4855. return s
  4856. }
  4857. // SetDeploymentGroupNames sets the DeploymentGroupNames field's value.
  4858. func (s *BatchGetDeploymentGroupsInput) SetDeploymentGroupNames(v []*string) *BatchGetDeploymentGroupsInput {
  4859. s.DeploymentGroupNames = v
  4860. return s
  4861. }
  4862. // Represents the output of a BatchGetDeploymentGroups operation.
  4863. type BatchGetDeploymentGroupsOutput struct {
  4864. _ struct{} `type:"structure"`
  4865. // Information about the deployment groups.
  4866. DeploymentGroupsInfo []*DeploymentGroupInfo `locationName:"deploymentGroupsInfo" type:"list"`
  4867. // Information about errors that might have occurred during the API call.
  4868. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  4869. }
  4870. // String returns the string representation
  4871. func (s BatchGetDeploymentGroupsOutput) String() string {
  4872. return awsutil.Prettify(s)
  4873. }
  4874. // GoString returns the string representation
  4875. func (s BatchGetDeploymentGroupsOutput) GoString() string {
  4876. return s.String()
  4877. }
  4878. // SetDeploymentGroupsInfo sets the DeploymentGroupsInfo field's value.
  4879. func (s *BatchGetDeploymentGroupsOutput) SetDeploymentGroupsInfo(v []*DeploymentGroupInfo) *BatchGetDeploymentGroupsOutput {
  4880. s.DeploymentGroupsInfo = v
  4881. return s
  4882. }
  4883. // SetErrorMessage sets the ErrorMessage field's value.
  4884. func (s *BatchGetDeploymentGroupsOutput) SetErrorMessage(v string) *BatchGetDeploymentGroupsOutput {
  4885. s.ErrorMessage = &v
  4886. return s
  4887. }
  4888. // Represents the input of a BatchGetDeploymentInstances operation.
  4889. type BatchGetDeploymentInstancesInput struct {
  4890. _ struct{} `type:"structure"`
  4891. // The unique ID of a deployment.
  4892. //
  4893. // DeploymentId is a required field
  4894. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  4895. // The unique IDs of instances used in the deployment.
  4896. //
  4897. // InstanceIds is a required field
  4898. InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"`
  4899. }
  4900. // String returns the string representation
  4901. func (s BatchGetDeploymentInstancesInput) String() string {
  4902. return awsutil.Prettify(s)
  4903. }
  4904. // GoString returns the string representation
  4905. func (s BatchGetDeploymentInstancesInput) GoString() string {
  4906. return s.String()
  4907. }
  4908. // Validate inspects the fields of the type to determine if they are valid.
  4909. func (s *BatchGetDeploymentInstancesInput) Validate() error {
  4910. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentInstancesInput"}
  4911. if s.DeploymentId == nil {
  4912. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  4913. }
  4914. if s.InstanceIds == nil {
  4915. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  4916. }
  4917. if invalidParams.Len() > 0 {
  4918. return invalidParams
  4919. }
  4920. return nil
  4921. }
  4922. // SetDeploymentId sets the DeploymentId field's value.
  4923. func (s *BatchGetDeploymentInstancesInput) SetDeploymentId(v string) *BatchGetDeploymentInstancesInput {
  4924. s.DeploymentId = &v
  4925. return s
  4926. }
  4927. // SetInstanceIds sets the InstanceIds field's value.
  4928. func (s *BatchGetDeploymentInstancesInput) SetInstanceIds(v []*string) *BatchGetDeploymentInstancesInput {
  4929. s.InstanceIds = v
  4930. return s
  4931. }
  4932. // Represents the output of a BatchGetDeploymentInstances operation.
  4933. type BatchGetDeploymentInstancesOutput struct {
  4934. _ struct{} `type:"structure"`
  4935. // Information about errors that might have occurred during the API call.
  4936. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  4937. // Information about the instance.
  4938. InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"`
  4939. }
  4940. // String returns the string representation
  4941. func (s BatchGetDeploymentInstancesOutput) String() string {
  4942. return awsutil.Prettify(s)
  4943. }
  4944. // GoString returns the string representation
  4945. func (s BatchGetDeploymentInstancesOutput) GoString() string {
  4946. return s.String()
  4947. }
  4948. // SetErrorMessage sets the ErrorMessage field's value.
  4949. func (s *BatchGetDeploymentInstancesOutput) SetErrorMessage(v string) *BatchGetDeploymentInstancesOutput {
  4950. s.ErrorMessage = &v
  4951. return s
  4952. }
  4953. // SetInstancesSummary sets the InstancesSummary field's value.
  4954. func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSummary) *BatchGetDeploymentInstancesOutput {
  4955. s.InstancesSummary = v
  4956. return s
  4957. }
  4958. type BatchGetDeploymentTargetsInput struct {
  4959. _ struct{} `type:"structure"`
  4960. // The unique ID of a deployment.
  4961. DeploymentId *string `locationName:"deploymentId" type:"string"`
  4962. // The unique IDs of the deployment targets. The compute platform of the deployment
  4963. // determines the type of the targets and their formats.
  4964. //
  4965. // * For deployments that use the EC2/On-premises compute platform, the
  4966. // target IDs are EC2 or on-premises instances IDs, and their target type
  4967. // is instanceTarget.
  4968. //
  4969. // * For deployments that use the AWS Lambda compute platform, the target
  4970. // IDs are the names of Lambda functions, and their target type is instanceTarget.
  4971. //
  4972. //
  4973. // * For deployments that use the Amazon ECS compute platform, the target
  4974. // IDs are pairs of Amazon ECS clusters and services specified using the
  4975. // format <clustername>:<servicename>. Their target type is ecsTarget.
  4976. TargetIds []*string `locationName:"targetIds" type:"list"`
  4977. }
  4978. // String returns the string representation
  4979. func (s BatchGetDeploymentTargetsInput) String() string {
  4980. return awsutil.Prettify(s)
  4981. }
  4982. // GoString returns the string representation
  4983. func (s BatchGetDeploymentTargetsInput) GoString() string {
  4984. return s.String()
  4985. }
  4986. // SetDeploymentId sets the DeploymentId field's value.
  4987. func (s *BatchGetDeploymentTargetsInput) SetDeploymentId(v string) *BatchGetDeploymentTargetsInput {
  4988. s.DeploymentId = &v
  4989. return s
  4990. }
  4991. // SetTargetIds sets the TargetIds field's value.
  4992. func (s *BatchGetDeploymentTargetsInput) SetTargetIds(v []*string) *BatchGetDeploymentTargetsInput {
  4993. s.TargetIds = v
  4994. return s
  4995. }
  4996. type BatchGetDeploymentTargetsOutput struct {
  4997. _ struct{} `type:"structure"`
  4998. // A list of target objects for a deployment. Each target object contains details
  4999. // about the target, such as its status and lifecycle events. The type of the
  5000. // target objects depends on the deployment' compute platform.
  5001. //
  5002. // * EC2/On-premises: Each target object is an EC2 or on-premises instance.
  5003. //
  5004. //
  5005. // * AWS Lambda: The target object is a specific version of an AWS Lambda
  5006. // function.
  5007. //
  5008. // * Amazon ECS: The target object is an Amazon ECS service.
  5009. DeploymentTargets []*DeploymentTarget `locationName:"deploymentTargets" type:"list"`
  5010. }
  5011. // String returns the string representation
  5012. func (s BatchGetDeploymentTargetsOutput) String() string {
  5013. return awsutil.Prettify(s)
  5014. }
  5015. // GoString returns the string representation
  5016. func (s BatchGetDeploymentTargetsOutput) GoString() string {
  5017. return s.String()
  5018. }
  5019. // SetDeploymentTargets sets the DeploymentTargets field's value.
  5020. func (s *BatchGetDeploymentTargetsOutput) SetDeploymentTargets(v []*DeploymentTarget) *BatchGetDeploymentTargetsOutput {
  5021. s.DeploymentTargets = v
  5022. return s
  5023. }
  5024. // Represents the input of a BatchGetDeployments operation.
  5025. type BatchGetDeploymentsInput struct {
  5026. _ struct{} `type:"structure"`
  5027. // A list of deployment IDs, separated by spaces.
  5028. //
  5029. // DeploymentIds is a required field
  5030. DeploymentIds []*string `locationName:"deploymentIds" type:"list" required:"true"`
  5031. }
  5032. // String returns the string representation
  5033. func (s BatchGetDeploymentsInput) String() string {
  5034. return awsutil.Prettify(s)
  5035. }
  5036. // GoString returns the string representation
  5037. func (s BatchGetDeploymentsInput) GoString() string {
  5038. return s.String()
  5039. }
  5040. // Validate inspects the fields of the type to determine if they are valid.
  5041. func (s *BatchGetDeploymentsInput) Validate() error {
  5042. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentsInput"}
  5043. if s.DeploymentIds == nil {
  5044. invalidParams.Add(request.NewErrParamRequired("DeploymentIds"))
  5045. }
  5046. if invalidParams.Len() > 0 {
  5047. return invalidParams
  5048. }
  5049. return nil
  5050. }
  5051. // SetDeploymentIds sets the DeploymentIds field's value.
  5052. func (s *BatchGetDeploymentsInput) SetDeploymentIds(v []*string) *BatchGetDeploymentsInput {
  5053. s.DeploymentIds = v
  5054. return s
  5055. }
  5056. // Represents the output of a BatchGetDeployments operation.
  5057. type BatchGetDeploymentsOutput struct {
  5058. _ struct{} `type:"structure"`
  5059. // Information about the deployments.
  5060. DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"`
  5061. }
  5062. // String returns the string representation
  5063. func (s BatchGetDeploymentsOutput) String() string {
  5064. return awsutil.Prettify(s)
  5065. }
  5066. // GoString returns the string representation
  5067. func (s BatchGetDeploymentsOutput) GoString() string {
  5068. return s.String()
  5069. }
  5070. // SetDeploymentsInfo sets the DeploymentsInfo field's value.
  5071. func (s *BatchGetDeploymentsOutput) SetDeploymentsInfo(v []*DeploymentInfo) *BatchGetDeploymentsOutput {
  5072. s.DeploymentsInfo = v
  5073. return s
  5074. }
  5075. // Represents the input of a BatchGetOnPremisesInstances operation.
  5076. type BatchGetOnPremisesInstancesInput struct {
  5077. _ struct{} `type:"structure"`
  5078. // The names of the on-premises instances about which to get information.
  5079. //
  5080. // InstanceNames is a required field
  5081. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  5082. }
  5083. // String returns the string representation
  5084. func (s BatchGetOnPremisesInstancesInput) String() string {
  5085. return awsutil.Prettify(s)
  5086. }
  5087. // GoString returns the string representation
  5088. func (s BatchGetOnPremisesInstancesInput) GoString() string {
  5089. return s.String()
  5090. }
  5091. // Validate inspects the fields of the type to determine if they are valid.
  5092. func (s *BatchGetOnPremisesInstancesInput) Validate() error {
  5093. invalidParams := request.ErrInvalidParams{Context: "BatchGetOnPremisesInstancesInput"}
  5094. if s.InstanceNames == nil {
  5095. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  5096. }
  5097. if invalidParams.Len() > 0 {
  5098. return invalidParams
  5099. }
  5100. return nil
  5101. }
  5102. // SetInstanceNames sets the InstanceNames field's value.
  5103. func (s *BatchGetOnPremisesInstancesInput) SetInstanceNames(v []*string) *BatchGetOnPremisesInstancesInput {
  5104. s.InstanceNames = v
  5105. return s
  5106. }
  5107. // Represents the output of a BatchGetOnPremisesInstances operation.
  5108. type BatchGetOnPremisesInstancesOutput struct {
  5109. _ struct{} `type:"structure"`
  5110. // Information about the on-premises instances.
  5111. InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"`
  5112. }
  5113. // String returns the string representation
  5114. func (s BatchGetOnPremisesInstancesOutput) String() string {
  5115. return awsutil.Prettify(s)
  5116. }
  5117. // GoString returns the string representation
  5118. func (s BatchGetOnPremisesInstancesOutput) GoString() string {
  5119. return s.String()
  5120. }
  5121. // SetInstanceInfos sets the InstanceInfos field's value.
  5122. func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) *BatchGetOnPremisesInstancesOutput {
  5123. s.InstanceInfos = v
  5124. return s
  5125. }
  5126. // Information about blue/green deployment options for a deployment group.
  5127. type BlueGreenDeploymentConfiguration struct {
  5128. _ struct{} `type:"structure"`
  5129. // Information about the action to take when newly provisioned instances are
  5130. // ready to receive traffic in a blue/green deployment.
  5131. DeploymentReadyOption *DeploymentReadyOption `locationName:"deploymentReadyOption" type:"structure"`
  5132. // Information about how instances are provisioned for a replacement environment
  5133. // in a blue/green deployment.
  5134. GreenFleetProvisioningOption *GreenFleetProvisioningOption `locationName:"greenFleetProvisioningOption" type:"structure"`
  5135. // Information about whether to terminate instances in the original fleet during
  5136. // a blue/green deployment.
  5137. TerminateBlueInstancesOnDeploymentSuccess *BlueInstanceTerminationOption `locationName:"terminateBlueInstancesOnDeploymentSuccess" type:"structure"`
  5138. }
  5139. // String returns the string representation
  5140. func (s BlueGreenDeploymentConfiguration) String() string {
  5141. return awsutil.Prettify(s)
  5142. }
  5143. // GoString returns the string representation
  5144. func (s BlueGreenDeploymentConfiguration) GoString() string {
  5145. return s.String()
  5146. }
  5147. // SetDeploymentReadyOption sets the DeploymentReadyOption field's value.
  5148. func (s *BlueGreenDeploymentConfiguration) SetDeploymentReadyOption(v *DeploymentReadyOption) *BlueGreenDeploymentConfiguration {
  5149. s.DeploymentReadyOption = v
  5150. return s
  5151. }
  5152. // SetGreenFleetProvisioningOption sets the GreenFleetProvisioningOption field's value.
  5153. func (s *BlueGreenDeploymentConfiguration) SetGreenFleetProvisioningOption(v *GreenFleetProvisioningOption) *BlueGreenDeploymentConfiguration {
  5154. s.GreenFleetProvisioningOption = v
  5155. return s
  5156. }
  5157. // SetTerminateBlueInstancesOnDeploymentSuccess sets the TerminateBlueInstancesOnDeploymentSuccess field's value.
  5158. func (s *BlueGreenDeploymentConfiguration) SetTerminateBlueInstancesOnDeploymentSuccess(v *BlueInstanceTerminationOption) *BlueGreenDeploymentConfiguration {
  5159. s.TerminateBlueInstancesOnDeploymentSuccess = v
  5160. return s
  5161. }
  5162. // Information about whether instances in the original environment are terminated
  5163. // when a blue/green deployment is successful.
  5164. type BlueInstanceTerminationOption struct {
  5165. _ struct{} `type:"structure"`
  5166. // The action to take on instances in the original environment after a successful
  5167. // blue/green deployment.
  5168. //
  5169. // * TERMINATE: Instances are terminated after a specified wait time.
  5170. //
  5171. // * KEEP_ALIVE: Instances are left running after they are deregistered from
  5172. // the load balancer and removed from the deployment group.
  5173. Action *string `locationName:"action" type:"string" enum:"InstanceAction"`
  5174. // The number of minutes to wait after a successful blue/green deployment before
  5175. // terminating instances from the original environment. The maximum setting
  5176. // is 2880 minutes (2 days).
  5177. TerminationWaitTimeInMinutes *int64 `locationName:"terminationWaitTimeInMinutes" type:"integer"`
  5178. }
  5179. // String returns the string representation
  5180. func (s BlueInstanceTerminationOption) String() string {
  5181. return awsutil.Prettify(s)
  5182. }
  5183. // GoString returns the string representation
  5184. func (s BlueInstanceTerminationOption) GoString() string {
  5185. return s.String()
  5186. }
  5187. // SetAction sets the Action field's value.
  5188. func (s *BlueInstanceTerminationOption) SetAction(v string) *BlueInstanceTerminationOption {
  5189. s.Action = &v
  5190. return s
  5191. }
  5192. // SetTerminationWaitTimeInMinutes sets the TerminationWaitTimeInMinutes field's value.
  5193. func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) *BlueInstanceTerminationOption {
  5194. s.TerminationWaitTimeInMinutes = &v
  5195. return s
  5196. }
  5197. type ContinueDeploymentInput struct {
  5198. _ struct{} `type:"structure"`
  5199. // The unique ID of a blue/green deployment for which you want to start rerouting
  5200. // traffic to the replacement environment.
  5201. DeploymentId *string `locationName:"deploymentId" type:"string"`
  5202. // The status of the deployment's waiting period. READY_WAIT indicates the deployment
  5203. // is ready to start shifting traffic. TERMINATION_WAIT indicates the traffic
  5204. // is shifted, but the original target is not terminated.
  5205. DeploymentWaitType *string `locationName:"deploymentWaitType" type:"string" enum:"DeploymentWaitType"`
  5206. }
  5207. // String returns the string representation
  5208. func (s ContinueDeploymentInput) String() string {
  5209. return awsutil.Prettify(s)
  5210. }
  5211. // GoString returns the string representation
  5212. func (s ContinueDeploymentInput) GoString() string {
  5213. return s.String()
  5214. }
  5215. // SetDeploymentId sets the DeploymentId field's value.
  5216. func (s *ContinueDeploymentInput) SetDeploymentId(v string) *ContinueDeploymentInput {
  5217. s.DeploymentId = &v
  5218. return s
  5219. }
  5220. // SetDeploymentWaitType sets the DeploymentWaitType field's value.
  5221. func (s *ContinueDeploymentInput) SetDeploymentWaitType(v string) *ContinueDeploymentInput {
  5222. s.DeploymentWaitType = &v
  5223. return s
  5224. }
  5225. type ContinueDeploymentOutput struct {
  5226. _ struct{} `type:"structure"`
  5227. }
  5228. // String returns the string representation
  5229. func (s ContinueDeploymentOutput) String() string {
  5230. return awsutil.Prettify(s)
  5231. }
  5232. // GoString returns the string representation
  5233. func (s ContinueDeploymentOutput) GoString() string {
  5234. return s.String()
  5235. }
  5236. // Represents the input of a CreateApplication operation.
  5237. type CreateApplicationInput struct {
  5238. _ struct{} `type:"structure"`
  5239. // The name of the application. This name must be unique with the applicable
  5240. // IAM user or AWS account.
  5241. //
  5242. // ApplicationName is a required field
  5243. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  5244. // The destination platform type for the deployment (Lambda or Server).
  5245. ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"`
  5246. }
  5247. // String returns the string representation
  5248. func (s CreateApplicationInput) String() string {
  5249. return awsutil.Prettify(s)
  5250. }
  5251. // GoString returns the string representation
  5252. func (s CreateApplicationInput) GoString() string {
  5253. return s.String()
  5254. }
  5255. // Validate inspects the fields of the type to determine if they are valid.
  5256. func (s *CreateApplicationInput) Validate() error {
  5257. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  5258. if s.ApplicationName == nil {
  5259. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  5260. }
  5261. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5262. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5263. }
  5264. if invalidParams.Len() > 0 {
  5265. return invalidParams
  5266. }
  5267. return nil
  5268. }
  5269. // SetApplicationName sets the ApplicationName field's value.
  5270. func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput {
  5271. s.ApplicationName = &v
  5272. return s
  5273. }
  5274. // SetComputePlatform sets the ComputePlatform field's value.
  5275. func (s *CreateApplicationInput) SetComputePlatform(v string) *CreateApplicationInput {
  5276. s.ComputePlatform = &v
  5277. return s
  5278. }
  5279. // Represents the output of a CreateApplication operation.
  5280. type CreateApplicationOutput struct {
  5281. _ struct{} `type:"structure"`
  5282. // A unique application ID.
  5283. ApplicationId *string `locationName:"applicationId" type:"string"`
  5284. }
  5285. // String returns the string representation
  5286. func (s CreateApplicationOutput) String() string {
  5287. return awsutil.Prettify(s)
  5288. }
  5289. // GoString returns the string representation
  5290. func (s CreateApplicationOutput) GoString() string {
  5291. return s.String()
  5292. }
  5293. // SetApplicationId sets the ApplicationId field's value.
  5294. func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput {
  5295. s.ApplicationId = &v
  5296. return s
  5297. }
  5298. // Represents the input of a CreateDeploymentConfig operation.
  5299. type CreateDeploymentConfigInput struct {
  5300. _ struct{} `type:"structure"`
  5301. // The destination platform type for the deployment (Lambda or Server>).
  5302. ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"`
  5303. // The name of the deployment configuration to create.
  5304. //
  5305. // DeploymentConfigName is a required field
  5306. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  5307. // The minimum number of healthy instances that should be available at any time
  5308. // during the deployment. There are two parameters expected in the input: type
  5309. // and value.
  5310. //
  5311. // The type parameter takes either of the following values:
  5312. //
  5313. // * HOST_COUNT: The value parameter represents the minimum number of healthy
  5314. // instances as an absolute value.
  5315. //
  5316. // * FLEET_PERCENT: The value parameter represents the minimum number of
  5317. // healthy instances as a percentage of the total number of instances in
  5318. // the deployment. If you specify FLEET_PERCENT, at the start of the deployment,
  5319. // AWS CodeDeploy converts the percentage to the equivalent number of instance
  5320. // and rounds up fractional instances.
  5321. //
  5322. // The value parameter takes an integer.
  5323. //
  5324. // For example, to set a minimum of 95% healthy instance, specify a type of
  5325. // FLEET_PERCENT and a value of 95.
  5326. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
  5327. // The configuration that specifies how the deployment traffic is routed.
  5328. TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"`
  5329. }
  5330. // String returns the string representation
  5331. func (s CreateDeploymentConfigInput) String() string {
  5332. return awsutil.Prettify(s)
  5333. }
  5334. // GoString returns the string representation
  5335. func (s CreateDeploymentConfigInput) GoString() string {
  5336. return s.String()
  5337. }
  5338. // Validate inspects the fields of the type to determine if they are valid.
  5339. func (s *CreateDeploymentConfigInput) Validate() error {
  5340. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentConfigInput"}
  5341. if s.DeploymentConfigName == nil {
  5342. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  5343. }
  5344. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  5345. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  5346. }
  5347. if invalidParams.Len() > 0 {
  5348. return invalidParams
  5349. }
  5350. return nil
  5351. }
  5352. // SetComputePlatform sets the ComputePlatform field's value.
  5353. func (s *CreateDeploymentConfigInput) SetComputePlatform(v string) *CreateDeploymentConfigInput {
  5354. s.ComputePlatform = &v
  5355. return s
  5356. }
  5357. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  5358. func (s *CreateDeploymentConfigInput) SetDeploymentConfigName(v string) *CreateDeploymentConfigInput {
  5359. s.DeploymentConfigName = &v
  5360. return s
  5361. }
  5362. // SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value.
  5363. func (s *CreateDeploymentConfigInput) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *CreateDeploymentConfigInput {
  5364. s.MinimumHealthyHosts = v
  5365. return s
  5366. }
  5367. // SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value.
  5368. func (s *CreateDeploymentConfigInput) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *CreateDeploymentConfigInput {
  5369. s.TrafficRoutingConfig = v
  5370. return s
  5371. }
  5372. // Represents the output of a CreateDeploymentConfig operation.
  5373. type CreateDeploymentConfigOutput struct {
  5374. _ struct{} `type:"structure"`
  5375. // A unique deployment configuration ID.
  5376. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
  5377. }
  5378. // String returns the string representation
  5379. func (s CreateDeploymentConfigOutput) String() string {
  5380. return awsutil.Prettify(s)
  5381. }
  5382. // GoString returns the string representation
  5383. func (s CreateDeploymentConfigOutput) GoString() string {
  5384. return s.String()
  5385. }
  5386. // SetDeploymentConfigId sets the DeploymentConfigId field's value.
  5387. func (s *CreateDeploymentConfigOutput) SetDeploymentConfigId(v string) *CreateDeploymentConfigOutput {
  5388. s.DeploymentConfigId = &v
  5389. return s
  5390. }
  5391. // Represents the input of a CreateDeploymentGroup operation.
  5392. type CreateDeploymentGroupInput struct {
  5393. _ struct{} `type:"structure"`
  5394. // Information to add about Amazon CloudWatch alarms when the deployment group
  5395. // is created.
  5396. AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"`
  5397. // The name of an AWS CodeDeploy application associated with the IAM user or
  5398. // AWS account.
  5399. //
  5400. // ApplicationName is a required field
  5401. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  5402. // Configuration information for an automatic rollback that is added when a
  5403. // deployment group is created.
  5404. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  5405. // A list of associated Amazon EC2 Auto Scaling groups.
  5406. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  5407. // Information about blue/green deployment options for a deployment group.
  5408. BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"`
  5409. // If specified, the deployment configuration name can be either one of the
  5410. // predefined configurations provided with AWS CodeDeploy or a custom deployment
  5411. // configuration that you create by calling the create deployment configuration
  5412. // operation.
  5413. //
  5414. // CodeDeployDefault.OneAtATime is the default deployment configuration. It
  5415. // is used if a configuration isn't specified for the deployment or deployment
  5416. // group.
  5417. //
  5418. // For more information about the predefined deployment configurations in AWS
  5419. // CodeDeploy, see Working with Deployment Groups in AWS CodeDeploy (http://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html)
  5420. // in the AWS CodeDeploy User Guide.
  5421. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  5422. // The name of a new deployment group for the specified application.
  5423. //
  5424. // DeploymentGroupName is a required field
  5425. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  5426. // Information about the type of deployment, in-place or blue/green, that you
  5427. // want to run and whether to route deployment traffic behind a load balancer.
  5428. DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"`
  5429. // The Amazon EC2 tags on which to filter. The deployment group includes EC2
  5430. // instances with any of the specified tags. Cannot be used in the same call
  5431. // as ec2TagSet.
  5432. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  5433. // Information about groups of tags applied to EC2 instances. The deployment
  5434. // group includes only EC2 instances identified by all the tag groups. Cannot
  5435. // be used in the same call as ec2TagFilters.
  5436. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"`
  5437. // The target Amazon ECS services in the deployment group. This applies only
  5438. // to deployment groups that use the Amazon ECS compute platform. A target Amazon
  5439. // ECS service is specified as an Amazon ECS cluster and service name pair using
  5440. // the format <clustername>:<servicename>.
  5441. EcsServices []*ECSService `locationName:"ecsServices" type:"list"`
  5442. // Information about the load balancer used in a deployment.
  5443. LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"`
  5444. // The on-premises instance tags on which to filter. The deployment group includes
  5445. // on-premises instances with any of the specified tags. Cannot be used in the
  5446. // same call as OnPremisesTagSet.
  5447. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  5448. // Information about groups of tags applied to on-premises instances. The deployment
  5449. // group includes only on-premises instances identified by all of the tag groups.
  5450. // Cannot be used in the same call as onPremisesInstanceTagFilters.
  5451. OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"`
  5452. // A service role ARN that allows AWS CodeDeploy to act on the user's behalf
  5453. // when interacting with AWS services.
  5454. //
  5455. // ServiceRoleArn is a required field
  5456. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"`
  5457. // Information about triggers to create when the deployment group is created.
  5458. // For examples, see Create a Trigger for an AWS CodeDeploy Event (http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html)
  5459. // in the AWS CodeDeploy User Guide.
  5460. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  5461. }
  5462. // String returns the string representation
  5463. func (s CreateDeploymentGroupInput) String() string {
  5464. return awsutil.Prettify(s)
  5465. }
  5466. // GoString returns the string representation
  5467. func (s CreateDeploymentGroupInput) GoString() string {
  5468. return s.String()
  5469. }
  5470. // Validate inspects the fields of the type to determine if they are valid.
  5471. func (s *CreateDeploymentGroupInput) Validate() error {
  5472. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"}
  5473. if s.ApplicationName == nil {
  5474. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  5475. }
  5476. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5477. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5478. }
  5479. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  5480. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  5481. }
  5482. if s.DeploymentGroupName == nil {
  5483. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  5484. }
  5485. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  5486. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  5487. }
  5488. if s.ServiceRoleArn == nil {
  5489. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  5490. }
  5491. if invalidParams.Len() > 0 {
  5492. return invalidParams
  5493. }
  5494. return nil
  5495. }
  5496. // SetAlarmConfiguration sets the AlarmConfiguration field's value.
  5497. func (s *CreateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *CreateDeploymentGroupInput {
  5498. s.AlarmConfiguration = v
  5499. return s
  5500. }
  5501. // SetApplicationName sets the ApplicationName field's value.
  5502. func (s *CreateDeploymentGroupInput) SetApplicationName(v string) *CreateDeploymentGroupInput {
  5503. s.ApplicationName = &v
  5504. return s
  5505. }
  5506. // SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
  5507. func (s *CreateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentGroupInput {
  5508. s.AutoRollbackConfiguration = v
  5509. return s
  5510. }
  5511. // SetAutoScalingGroups sets the AutoScalingGroups field's value.
  5512. func (s *CreateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *CreateDeploymentGroupInput {
  5513. s.AutoScalingGroups = v
  5514. return s
  5515. }
  5516. // SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
  5517. func (s *CreateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *CreateDeploymentGroupInput {
  5518. s.BlueGreenDeploymentConfiguration = v
  5519. return s
  5520. }
  5521. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  5522. func (s *CreateDeploymentGroupInput) SetDeploymentConfigName(v string) *CreateDeploymentGroupInput {
  5523. s.DeploymentConfigName = &v
  5524. return s
  5525. }
  5526. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  5527. func (s *CreateDeploymentGroupInput) SetDeploymentGroupName(v string) *CreateDeploymentGroupInput {
  5528. s.DeploymentGroupName = &v
  5529. return s
  5530. }
  5531. // SetDeploymentStyle sets the DeploymentStyle field's value.
  5532. func (s *CreateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *CreateDeploymentGroupInput {
  5533. s.DeploymentStyle = v
  5534. return s
  5535. }
  5536. // SetEc2TagFilters sets the Ec2TagFilters field's value.
  5537. func (s *CreateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *CreateDeploymentGroupInput {
  5538. s.Ec2TagFilters = v
  5539. return s
  5540. }
  5541. // SetEc2TagSet sets the Ec2TagSet field's value.
  5542. func (s *CreateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *CreateDeploymentGroupInput {
  5543. s.Ec2TagSet = v
  5544. return s
  5545. }
  5546. // SetEcsServices sets the EcsServices field's value.
  5547. func (s *CreateDeploymentGroupInput) SetEcsServices(v []*ECSService) *CreateDeploymentGroupInput {
  5548. s.EcsServices = v
  5549. return s
  5550. }
  5551. // SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
  5552. func (s *CreateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *CreateDeploymentGroupInput {
  5553. s.LoadBalancerInfo = v
  5554. return s
  5555. }
  5556. // SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value.
  5557. func (s *CreateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *CreateDeploymentGroupInput {
  5558. s.OnPremisesInstanceTagFilters = v
  5559. return s
  5560. }
  5561. // SetOnPremisesTagSet sets the OnPremisesTagSet field's value.
  5562. func (s *CreateDeploymentGroupInput) SetOnPremisesTagSet(v *OnPremisesTagSet) *CreateDeploymentGroupInput {
  5563. s.OnPremisesTagSet = v
  5564. return s
  5565. }
  5566. // SetServiceRoleArn sets the ServiceRoleArn field's value.
  5567. func (s *CreateDeploymentGroupInput) SetServiceRoleArn(v string) *CreateDeploymentGroupInput {
  5568. s.ServiceRoleArn = &v
  5569. return s
  5570. }
  5571. // SetTriggerConfigurations sets the TriggerConfigurations field's value.
  5572. func (s *CreateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *CreateDeploymentGroupInput {
  5573. s.TriggerConfigurations = v
  5574. return s
  5575. }
  5576. // Represents the output of a CreateDeploymentGroup operation.
  5577. type CreateDeploymentGroupOutput struct {
  5578. _ struct{} `type:"structure"`
  5579. // A unique deployment group ID.
  5580. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
  5581. }
  5582. // String returns the string representation
  5583. func (s CreateDeploymentGroupOutput) String() string {
  5584. return awsutil.Prettify(s)
  5585. }
  5586. // GoString returns the string representation
  5587. func (s CreateDeploymentGroupOutput) GoString() string {
  5588. return s.String()
  5589. }
  5590. // SetDeploymentGroupId sets the DeploymentGroupId field's value.
  5591. func (s *CreateDeploymentGroupOutput) SetDeploymentGroupId(v string) *CreateDeploymentGroupOutput {
  5592. s.DeploymentGroupId = &v
  5593. return s
  5594. }
  5595. // Represents the input of a CreateDeployment operation.
  5596. type CreateDeploymentInput struct {
  5597. _ struct{} `type:"structure"`
  5598. // The name of an AWS CodeDeploy application associated with the IAM user or
  5599. // AWS account.
  5600. //
  5601. // ApplicationName is a required field
  5602. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  5603. // Configuration information for an automatic rollback that is added when a
  5604. // deployment is created.
  5605. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  5606. // The name of a deployment configuration associated with the IAM user or AWS
  5607. // account.
  5608. //
  5609. // If not specified, the value configured in the deployment group is used as
  5610. // the default. If the deployment group does not have a deployment configuration
  5611. // associated with it, CodeDeployDefault.OneAtATime is used by default.
  5612. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  5613. // The name of the deployment group.
  5614. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  5615. // A comment about the deployment.
  5616. Description *string `locationName:"description" type:"string"`
  5617. // Information about how AWS CodeDeploy handles files that already exist in
  5618. // a deployment target location but weren't part of the previous successful
  5619. // deployment.
  5620. //
  5621. // The fileExistsBehavior parameter takes any of the following values:
  5622. //
  5623. // * DISALLOW: The deployment fails. This is also the default behavior if
  5624. // no option is specified.
  5625. //
  5626. // * OVERWRITE: The version of the file from the application revision currently
  5627. // being deployed replaces the version already on the instance.
  5628. //
  5629. // * RETAIN: The version of the file already on the instance is kept and
  5630. // used as part of the new deployment.
  5631. FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"`
  5632. // If set to true, then if the deployment causes the ApplicationStop deployment
  5633. // lifecycle event to an instance to fail, the deployment to that instance is
  5634. // considered to have failed at that point and continues on to the BeforeInstall
  5635. // deployment lifecycle event.
  5636. //
  5637. // If set to false or not specified, then if the deployment causes the ApplicationStop
  5638. // deployment lifecycle event to fail to an instance, the deployment to that
  5639. // instance stops, and the deployment to that instance is considered to have
  5640. // failed.
  5641. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
  5642. // The type and location of the revision to deploy.
  5643. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  5644. // Information about the instances that belong to the replacement environment
  5645. // in a blue/green deployment.
  5646. TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"`
  5647. // Indicates whether to deploy to all instances or only to instances that are
  5648. // not running the latest application revision.
  5649. UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"`
  5650. }
  5651. // String returns the string representation
  5652. func (s CreateDeploymentInput) String() string {
  5653. return awsutil.Prettify(s)
  5654. }
  5655. // GoString returns the string representation
  5656. func (s CreateDeploymentInput) GoString() string {
  5657. return s.String()
  5658. }
  5659. // Validate inspects the fields of the type to determine if they are valid.
  5660. func (s *CreateDeploymentInput) Validate() error {
  5661. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
  5662. if s.ApplicationName == nil {
  5663. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  5664. }
  5665. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5666. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5667. }
  5668. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  5669. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  5670. }
  5671. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  5672. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  5673. }
  5674. if invalidParams.Len() > 0 {
  5675. return invalidParams
  5676. }
  5677. return nil
  5678. }
  5679. // SetApplicationName sets the ApplicationName field's value.
  5680. func (s *CreateDeploymentInput) SetApplicationName(v string) *CreateDeploymentInput {
  5681. s.ApplicationName = &v
  5682. return s
  5683. }
  5684. // SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
  5685. func (s *CreateDeploymentInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentInput {
  5686. s.AutoRollbackConfiguration = v
  5687. return s
  5688. }
  5689. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  5690. func (s *CreateDeploymentInput) SetDeploymentConfigName(v string) *CreateDeploymentInput {
  5691. s.DeploymentConfigName = &v
  5692. return s
  5693. }
  5694. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  5695. func (s *CreateDeploymentInput) SetDeploymentGroupName(v string) *CreateDeploymentInput {
  5696. s.DeploymentGroupName = &v
  5697. return s
  5698. }
  5699. // SetDescription sets the Description field's value.
  5700. func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput {
  5701. s.Description = &v
  5702. return s
  5703. }
  5704. // SetFileExistsBehavior sets the FileExistsBehavior field's value.
  5705. func (s *CreateDeploymentInput) SetFileExistsBehavior(v string) *CreateDeploymentInput {
  5706. s.FileExistsBehavior = &v
  5707. return s
  5708. }
  5709. // SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value.
  5710. func (s *CreateDeploymentInput) SetIgnoreApplicationStopFailures(v bool) *CreateDeploymentInput {
  5711. s.IgnoreApplicationStopFailures = &v
  5712. return s
  5713. }
  5714. // SetRevision sets the Revision field's value.
  5715. func (s *CreateDeploymentInput) SetRevision(v *RevisionLocation) *CreateDeploymentInput {
  5716. s.Revision = v
  5717. return s
  5718. }
  5719. // SetTargetInstances sets the TargetInstances field's value.
  5720. func (s *CreateDeploymentInput) SetTargetInstances(v *TargetInstances) *CreateDeploymentInput {
  5721. s.TargetInstances = v
  5722. return s
  5723. }
  5724. // SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value.
  5725. func (s *CreateDeploymentInput) SetUpdateOutdatedInstancesOnly(v bool) *CreateDeploymentInput {
  5726. s.UpdateOutdatedInstancesOnly = &v
  5727. return s
  5728. }
  5729. // Represents the output of a CreateDeployment operation.
  5730. type CreateDeploymentOutput struct {
  5731. _ struct{} `type:"structure"`
  5732. // The unique ID of a deployment.
  5733. DeploymentId *string `locationName:"deploymentId" type:"string"`
  5734. }
  5735. // String returns the string representation
  5736. func (s CreateDeploymentOutput) String() string {
  5737. return awsutil.Prettify(s)
  5738. }
  5739. // GoString returns the string representation
  5740. func (s CreateDeploymentOutput) GoString() string {
  5741. return s.String()
  5742. }
  5743. // SetDeploymentId sets the DeploymentId field's value.
  5744. func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput {
  5745. s.DeploymentId = &v
  5746. return s
  5747. }
  5748. // Represents the input of a DeleteApplication operation.
  5749. type DeleteApplicationInput struct {
  5750. _ struct{} `type:"structure"`
  5751. // The name of an AWS CodeDeploy application associated with the IAM user or
  5752. // AWS account.
  5753. //
  5754. // ApplicationName is a required field
  5755. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  5756. }
  5757. // String returns the string representation
  5758. func (s DeleteApplicationInput) String() string {
  5759. return awsutil.Prettify(s)
  5760. }
  5761. // GoString returns the string representation
  5762. func (s DeleteApplicationInput) GoString() string {
  5763. return s.String()
  5764. }
  5765. // Validate inspects the fields of the type to determine if they are valid.
  5766. func (s *DeleteApplicationInput) Validate() error {
  5767. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
  5768. if s.ApplicationName == nil {
  5769. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  5770. }
  5771. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5772. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5773. }
  5774. if invalidParams.Len() > 0 {
  5775. return invalidParams
  5776. }
  5777. return nil
  5778. }
  5779. // SetApplicationName sets the ApplicationName field's value.
  5780. func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput {
  5781. s.ApplicationName = &v
  5782. return s
  5783. }
  5784. type DeleteApplicationOutput struct {
  5785. _ struct{} `type:"structure"`
  5786. }
  5787. // String returns the string representation
  5788. func (s DeleteApplicationOutput) String() string {
  5789. return awsutil.Prettify(s)
  5790. }
  5791. // GoString returns the string representation
  5792. func (s DeleteApplicationOutput) GoString() string {
  5793. return s.String()
  5794. }
  5795. // Represents the input of a DeleteDeploymentConfig operation.
  5796. type DeleteDeploymentConfigInput struct {
  5797. _ struct{} `type:"structure"`
  5798. // The name of a deployment configuration associated with the IAM user or AWS
  5799. // account.
  5800. //
  5801. // DeploymentConfigName is a required field
  5802. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  5803. }
  5804. // String returns the string representation
  5805. func (s DeleteDeploymentConfigInput) String() string {
  5806. return awsutil.Prettify(s)
  5807. }
  5808. // GoString returns the string representation
  5809. func (s DeleteDeploymentConfigInput) GoString() string {
  5810. return s.String()
  5811. }
  5812. // Validate inspects the fields of the type to determine if they are valid.
  5813. func (s *DeleteDeploymentConfigInput) Validate() error {
  5814. invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"}
  5815. if s.DeploymentConfigName == nil {
  5816. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  5817. }
  5818. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  5819. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  5820. }
  5821. if invalidParams.Len() > 0 {
  5822. return invalidParams
  5823. }
  5824. return nil
  5825. }
  5826. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  5827. func (s *DeleteDeploymentConfigInput) SetDeploymentConfigName(v string) *DeleteDeploymentConfigInput {
  5828. s.DeploymentConfigName = &v
  5829. return s
  5830. }
  5831. type DeleteDeploymentConfigOutput struct {
  5832. _ struct{} `type:"structure"`
  5833. }
  5834. // String returns the string representation
  5835. func (s DeleteDeploymentConfigOutput) String() string {
  5836. return awsutil.Prettify(s)
  5837. }
  5838. // GoString returns the string representation
  5839. func (s DeleteDeploymentConfigOutput) GoString() string {
  5840. return s.String()
  5841. }
  5842. // Represents the input of a DeleteDeploymentGroup operation.
  5843. type DeleteDeploymentGroupInput struct {
  5844. _ struct{} `type:"structure"`
  5845. // The name of an AWS CodeDeploy application associated with the IAM user or
  5846. // AWS account.
  5847. //
  5848. // ApplicationName is a required field
  5849. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  5850. // The name of a deployment group for the specified application.
  5851. //
  5852. // DeploymentGroupName is a required field
  5853. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  5854. }
  5855. // String returns the string representation
  5856. func (s DeleteDeploymentGroupInput) String() string {
  5857. return awsutil.Prettify(s)
  5858. }
  5859. // GoString returns the string representation
  5860. func (s DeleteDeploymentGroupInput) GoString() string {
  5861. return s.String()
  5862. }
  5863. // Validate inspects the fields of the type to determine if they are valid.
  5864. func (s *DeleteDeploymentGroupInput) Validate() error {
  5865. invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"}
  5866. if s.ApplicationName == nil {
  5867. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  5868. }
  5869. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5870. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5871. }
  5872. if s.DeploymentGroupName == nil {
  5873. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  5874. }
  5875. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  5876. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  5877. }
  5878. if invalidParams.Len() > 0 {
  5879. return invalidParams
  5880. }
  5881. return nil
  5882. }
  5883. // SetApplicationName sets the ApplicationName field's value.
  5884. func (s *DeleteDeploymentGroupInput) SetApplicationName(v string) *DeleteDeploymentGroupInput {
  5885. s.ApplicationName = &v
  5886. return s
  5887. }
  5888. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  5889. func (s *DeleteDeploymentGroupInput) SetDeploymentGroupName(v string) *DeleteDeploymentGroupInput {
  5890. s.DeploymentGroupName = &v
  5891. return s
  5892. }
  5893. // Represents the output of a DeleteDeploymentGroup operation.
  5894. type DeleteDeploymentGroupOutput struct {
  5895. _ struct{} `type:"structure"`
  5896. // If the output contains no data, and the corresponding deployment group contained
  5897. // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
  5898. // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances
  5899. // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could
  5900. // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances
  5901. // in the Auto Scaling group.
  5902. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
  5903. }
  5904. // String returns the string representation
  5905. func (s DeleteDeploymentGroupOutput) String() string {
  5906. return awsutil.Prettify(s)
  5907. }
  5908. // GoString returns the string representation
  5909. func (s DeleteDeploymentGroupOutput) GoString() string {
  5910. return s.String()
  5911. }
  5912. // SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value.
  5913. func (s *DeleteDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *DeleteDeploymentGroupOutput {
  5914. s.HooksNotCleanedUp = v
  5915. return s
  5916. }
  5917. // Represents the input of a DeleteGitHubAccount operation.
  5918. type DeleteGitHubAccountTokenInput struct {
  5919. _ struct{} `type:"structure"`
  5920. // The name of the GitHub account connection to delete.
  5921. TokenName *string `locationName:"tokenName" type:"string"`
  5922. }
  5923. // String returns the string representation
  5924. func (s DeleteGitHubAccountTokenInput) String() string {
  5925. return awsutil.Prettify(s)
  5926. }
  5927. // GoString returns the string representation
  5928. func (s DeleteGitHubAccountTokenInput) GoString() string {
  5929. return s.String()
  5930. }
  5931. // SetTokenName sets the TokenName field's value.
  5932. func (s *DeleteGitHubAccountTokenInput) SetTokenName(v string) *DeleteGitHubAccountTokenInput {
  5933. s.TokenName = &v
  5934. return s
  5935. }
  5936. // Represents the output of a DeleteGitHubAccountToken operation.
  5937. type DeleteGitHubAccountTokenOutput struct {
  5938. _ struct{} `type:"structure"`
  5939. // The name of the GitHub account connection that was deleted.
  5940. TokenName *string `locationName:"tokenName" type:"string"`
  5941. }
  5942. // String returns the string representation
  5943. func (s DeleteGitHubAccountTokenOutput) String() string {
  5944. return awsutil.Prettify(s)
  5945. }
  5946. // GoString returns the string representation
  5947. func (s DeleteGitHubAccountTokenOutput) GoString() string {
  5948. return s.String()
  5949. }
  5950. // SetTokenName sets the TokenName field's value.
  5951. func (s *DeleteGitHubAccountTokenOutput) SetTokenName(v string) *DeleteGitHubAccountTokenOutput {
  5952. s.TokenName = &v
  5953. return s
  5954. }
  5955. // Information about a deployment configuration.
  5956. type DeploymentConfigInfo struct {
  5957. _ struct{} `type:"structure"`
  5958. // The destination platform type for the deployment (Lambda or Server).
  5959. ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"`
  5960. // The time at which the deployment configuration was created.
  5961. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  5962. // The deployment configuration ID.
  5963. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
  5964. // The deployment configuration name.
  5965. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  5966. // Information about the number or percentage of minimum healthy instance.
  5967. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
  5968. // The configuration that specifies how the deployment traffic is routed. Only
  5969. // deployments with a Lambda compute platform can specify this.
  5970. TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"`
  5971. }
  5972. // String returns the string representation
  5973. func (s DeploymentConfigInfo) String() string {
  5974. return awsutil.Prettify(s)
  5975. }
  5976. // GoString returns the string representation
  5977. func (s DeploymentConfigInfo) GoString() string {
  5978. return s.String()
  5979. }
  5980. // SetComputePlatform sets the ComputePlatform field's value.
  5981. func (s *DeploymentConfigInfo) SetComputePlatform(v string) *DeploymentConfigInfo {
  5982. s.ComputePlatform = &v
  5983. return s
  5984. }
  5985. // SetCreateTime sets the CreateTime field's value.
  5986. func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo {
  5987. s.CreateTime = &v
  5988. return s
  5989. }
  5990. // SetDeploymentConfigId sets the DeploymentConfigId field's value.
  5991. func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo {
  5992. s.DeploymentConfigId = &v
  5993. return s
  5994. }
  5995. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  5996. func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo {
  5997. s.DeploymentConfigName = &v
  5998. return s
  5999. }
  6000. // SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value.
  6001. func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo {
  6002. s.MinimumHealthyHosts = v
  6003. return s
  6004. }
  6005. // SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value.
  6006. func (s *DeploymentConfigInfo) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *DeploymentConfigInfo {
  6007. s.TrafficRoutingConfig = v
  6008. return s
  6009. }
  6010. // Information about a deployment group.
  6011. type DeploymentGroupInfo struct {
  6012. _ struct{} `type:"structure"`
  6013. // A list of alarms associated with the deployment group.
  6014. AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"`
  6015. // The application name.
  6016. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  6017. // Information about the automatic rollback configuration associated with the
  6018. // deployment group.
  6019. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  6020. // A list of associated Auto Scaling groups.
  6021. AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"`
  6022. // Information about blue/green deployment options for a deployment group.
  6023. BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"`
  6024. // The destination platform type for the deployment group (Lambda or Server).
  6025. ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"`
  6026. // The deployment configuration name.
  6027. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  6028. // The deployment group ID.
  6029. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
  6030. // The deployment group name.
  6031. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  6032. // Information about the type of deployment, either in-place or blue/green,
  6033. // you want to run and whether to route deployment traffic behind a load balancer.
  6034. DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"`
  6035. // The Amazon EC2 tags on which to filter. The deployment group includes EC2
  6036. // instances with any of the specified tags.
  6037. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  6038. // Information about groups of tags applied to an EC2 instance. The deployment
  6039. // group includes only EC2 instances identified by all of the tag groups. Cannot
  6040. // be used in the same call as ec2TagFilters.
  6041. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"`
  6042. // The target Amazon ECS services in the deployment group. This applies only
  6043. // to deployment groups that use the Amazon ECS compute platform. A target Amazon
  6044. // ECS service is specified as an Amazon ECS cluster and service name pair using
  6045. // the format <clustername>:<servicename>.
  6046. EcsServices []*ECSService `locationName:"ecsServices" type:"list"`
  6047. // Information about the most recent attempted deployment to the deployment
  6048. // group.
  6049. LastAttemptedDeployment *LastDeploymentInfo `locationName:"lastAttemptedDeployment" type:"structure"`
  6050. // Information about the most recent successful deployment to the deployment
  6051. // group.
  6052. LastSuccessfulDeployment *LastDeploymentInfo `locationName:"lastSuccessfulDeployment" type:"structure"`
  6053. // Information about the load balancer to use in a deployment.
  6054. LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"`
  6055. // The on-premises instance tags on which to filter. The deployment group includes
  6056. // on-premises instances with any of the specified tags.
  6057. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  6058. // Information about groups of tags applied to an on-premises instance. The
  6059. // deployment group includes only on-premises instances identified by all the
  6060. // tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters.
  6061. OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"`
  6062. // A service role ARN.
  6063. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
  6064. // Information about the deployment group's target revision, including type
  6065. // and location.
  6066. TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"`
  6067. // Information about triggers associated with the deployment group.
  6068. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  6069. }
  6070. // String returns the string representation
  6071. func (s DeploymentGroupInfo) String() string {
  6072. return awsutil.Prettify(s)
  6073. }
  6074. // GoString returns the string representation
  6075. func (s DeploymentGroupInfo) GoString() string {
  6076. return s.String()
  6077. }
  6078. // SetAlarmConfiguration sets the AlarmConfiguration field's value.
  6079. func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo {
  6080. s.AlarmConfiguration = v
  6081. return s
  6082. }
  6083. // SetApplicationName sets the ApplicationName field's value.
  6084. func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo {
  6085. s.ApplicationName = &v
  6086. return s
  6087. }
  6088. // SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
  6089. func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo {
  6090. s.AutoRollbackConfiguration = v
  6091. return s
  6092. }
  6093. // SetAutoScalingGroups sets the AutoScalingGroups field's value.
  6094. func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo {
  6095. s.AutoScalingGroups = v
  6096. return s
  6097. }
  6098. // SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
  6099. func (s *DeploymentGroupInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentGroupInfo {
  6100. s.BlueGreenDeploymentConfiguration = v
  6101. return s
  6102. }
  6103. // SetComputePlatform sets the ComputePlatform field's value.
  6104. func (s *DeploymentGroupInfo) SetComputePlatform(v string) *DeploymentGroupInfo {
  6105. s.ComputePlatform = &v
  6106. return s
  6107. }
  6108. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  6109. func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo {
  6110. s.DeploymentConfigName = &v
  6111. return s
  6112. }
  6113. // SetDeploymentGroupId sets the DeploymentGroupId field's value.
  6114. func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo {
  6115. s.DeploymentGroupId = &v
  6116. return s
  6117. }
  6118. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  6119. func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo {
  6120. s.DeploymentGroupName = &v
  6121. return s
  6122. }
  6123. // SetDeploymentStyle sets the DeploymentStyle field's value.
  6124. func (s *DeploymentGroupInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentGroupInfo {
  6125. s.DeploymentStyle = v
  6126. return s
  6127. }
  6128. // SetEc2TagFilters sets the Ec2TagFilters field's value.
  6129. func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo {
  6130. s.Ec2TagFilters = v
  6131. return s
  6132. }
  6133. // SetEc2TagSet sets the Ec2TagSet field's value.
  6134. func (s *DeploymentGroupInfo) SetEc2TagSet(v *EC2TagSet) *DeploymentGroupInfo {
  6135. s.Ec2TagSet = v
  6136. return s
  6137. }
  6138. // SetEcsServices sets the EcsServices field's value.
  6139. func (s *DeploymentGroupInfo) SetEcsServices(v []*ECSService) *DeploymentGroupInfo {
  6140. s.EcsServices = v
  6141. return s
  6142. }
  6143. // SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value.
  6144. func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo {
  6145. s.LastAttemptedDeployment = v
  6146. return s
  6147. }
  6148. // SetLastSuccessfulDeployment sets the LastSuccessfulDeployment field's value.
  6149. func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo {
  6150. s.LastSuccessfulDeployment = v
  6151. return s
  6152. }
  6153. // SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
  6154. func (s *DeploymentGroupInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentGroupInfo {
  6155. s.LoadBalancerInfo = v
  6156. return s
  6157. }
  6158. // SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value.
  6159. func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo {
  6160. s.OnPremisesInstanceTagFilters = v
  6161. return s
  6162. }
  6163. // SetOnPremisesTagSet sets the OnPremisesTagSet field's value.
  6164. func (s *DeploymentGroupInfo) SetOnPremisesTagSet(v *OnPremisesTagSet) *DeploymentGroupInfo {
  6165. s.OnPremisesTagSet = v
  6166. return s
  6167. }
  6168. // SetServiceRoleArn sets the ServiceRoleArn field's value.
  6169. func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo {
  6170. s.ServiceRoleArn = &v
  6171. return s
  6172. }
  6173. // SetTargetRevision sets the TargetRevision field's value.
  6174. func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo {
  6175. s.TargetRevision = v
  6176. return s
  6177. }
  6178. // SetTriggerConfigurations sets the TriggerConfigurations field's value.
  6179. func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo {
  6180. s.TriggerConfigurations = v
  6181. return s
  6182. }
  6183. // Information about a deployment.
  6184. type DeploymentInfo struct {
  6185. _ struct{} `type:"structure"`
  6186. // Provides information about the results of a deployment, such as whether instances
  6187. // in the original environment in a blue/green deployment were not terminated.
  6188. AdditionalDeploymentStatusInfo *string `locationName:"additionalDeploymentStatusInfo" deprecated:"true" type:"string"`
  6189. // The application name.
  6190. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  6191. // Information about the automatic rollback configuration associated with the
  6192. // deployment.
  6193. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  6194. // Information about blue/green deployment options for this deployment.
  6195. BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"`
  6196. // A timestamp that indicates when the deployment was complete.
  6197. CompleteTime *time.Time `locationName:"completeTime" type:"timestamp"`
  6198. // The destination platform type for the deployment (Lambda or Server).
  6199. ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"`
  6200. // A timestamp that indicates when the deployment was created.
  6201. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  6202. // The means by which the deployment was created:
  6203. //
  6204. // * user: A user created the deployment.
  6205. //
  6206. // * autoscaling: Amazon EC2 Auto Scaling created the deployment.
  6207. //
  6208. // * codeDeployRollback: A rollback process created the deployment.
  6209. Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"`
  6210. // The deployment configuration name.
  6211. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  6212. // The deployment group name.
  6213. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  6214. // The unique ID of a deployment.
  6215. DeploymentId *string `locationName:"deploymentId" type:"string"`
  6216. // A summary of the deployment status of the instances in the deployment.
  6217. DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"`
  6218. // Messages that contain information about the status of a deployment.
  6219. DeploymentStatusMessages []*string `locationName:"deploymentStatusMessages" type:"list"`
  6220. // Information about the type of deployment, either in-place or blue/green,
  6221. // you want to run and whether to route deployment traffic behind a load balancer.
  6222. DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"`
  6223. // A comment about the deployment.
  6224. Description *string `locationName:"description" type:"string"`
  6225. // Information about any error associated with this deployment.
  6226. ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"`
  6227. // Information about how AWS CodeDeploy handles files that already exist in
  6228. // a deployment target location but weren't part of the previous successful
  6229. // deployment.
  6230. //
  6231. // * DISALLOW: The deployment fails. This is also the default behavior if
  6232. // no option is specified.
  6233. //
  6234. // * OVERWRITE: The version of the file from the application revision currently
  6235. // being deployed replaces the version already on the instance.
  6236. //
  6237. // * RETAIN: The version of the file already on the instance is kept and
  6238. // used as part of the new deployment.
  6239. FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"`
  6240. // If true, then if the deployment causes the ApplicationStop deployment lifecycle
  6241. // event to an instance to fail, the deployment to that instance is not considered
  6242. // to have failed at that point and continues on to the BeforeInstall deployment
  6243. // lifecycle event.
  6244. //
  6245. // If false or not specified, then if the deployment causes the ApplicationStop
  6246. // deployment lifecycle event to an instance to fail, the deployment to that
  6247. // instance stops, and the deployment to that instance is considered to have
  6248. // failed.
  6249. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
  6250. // Indicates whether the wait period set for the termination of instances in
  6251. // the original environment has started. Status is 'false' if the KEEP_ALIVE
  6252. // option is specified. Otherwise, 'true' as soon as the termination wait period
  6253. // starts.
  6254. InstanceTerminationWaitTimeStarted *bool `locationName:"instanceTerminationWaitTimeStarted" type:"boolean"`
  6255. // Information about the load balancer used in the deployment.
  6256. LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"`
  6257. // Information about the application revision that was deployed to the deployment
  6258. // group before the most recent successful deployment.
  6259. PreviousRevision *RevisionLocation `locationName:"previousRevision" type:"structure"`
  6260. // Information about the location of stored application artifacts and the service
  6261. // from which to retrieve them.
  6262. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  6263. // Information about a deployment rollback.
  6264. RollbackInfo *RollbackInfo `locationName:"rollbackInfo" type:"structure"`
  6265. // A timestamp that indicates when the deployment was deployed to the deployment
  6266. // group.
  6267. //
  6268. // In some cases, the reported value of the start time might be later than the
  6269. // complete time. This is due to differences in the clock settings of backend
  6270. // servers that participate in the deployment process.
  6271. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  6272. // The current state of the deployment as a whole.
  6273. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"`
  6274. // Information about the instances that belong to the replacement environment
  6275. // in a blue/green deployment.
  6276. TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"`
  6277. // Indicates whether only instances that are not running the latest application
  6278. // revision are to be deployed to.
  6279. UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"`
  6280. }
  6281. // String returns the string representation
  6282. func (s DeploymentInfo) String() string {
  6283. return awsutil.Prettify(s)
  6284. }
  6285. // GoString returns the string representation
  6286. func (s DeploymentInfo) GoString() string {
  6287. return s.String()
  6288. }
  6289. // SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value.
  6290. func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo {
  6291. s.AdditionalDeploymentStatusInfo = &v
  6292. return s
  6293. }
  6294. // SetApplicationName sets the ApplicationName field's value.
  6295. func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo {
  6296. s.ApplicationName = &v
  6297. return s
  6298. }
  6299. // SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
  6300. func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo {
  6301. s.AutoRollbackConfiguration = v
  6302. return s
  6303. }
  6304. // SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
  6305. func (s *DeploymentInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentInfo {
  6306. s.BlueGreenDeploymentConfiguration = v
  6307. return s
  6308. }
  6309. // SetCompleteTime sets the CompleteTime field's value.
  6310. func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo {
  6311. s.CompleteTime = &v
  6312. return s
  6313. }
  6314. // SetComputePlatform sets the ComputePlatform field's value.
  6315. func (s *DeploymentInfo) SetComputePlatform(v string) *DeploymentInfo {
  6316. s.ComputePlatform = &v
  6317. return s
  6318. }
  6319. // SetCreateTime sets the CreateTime field's value.
  6320. func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo {
  6321. s.CreateTime = &v
  6322. return s
  6323. }
  6324. // SetCreator sets the Creator field's value.
  6325. func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo {
  6326. s.Creator = &v
  6327. return s
  6328. }
  6329. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  6330. func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo {
  6331. s.DeploymentConfigName = &v
  6332. return s
  6333. }
  6334. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  6335. func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo {
  6336. s.DeploymentGroupName = &v
  6337. return s
  6338. }
  6339. // SetDeploymentId sets the DeploymentId field's value.
  6340. func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo {
  6341. s.DeploymentId = &v
  6342. return s
  6343. }
  6344. // SetDeploymentOverview sets the DeploymentOverview field's value.
  6345. func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo {
  6346. s.DeploymentOverview = v
  6347. return s
  6348. }
  6349. // SetDeploymentStatusMessages sets the DeploymentStatusMessages field's value.
  6350. func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo {
  6351. s.DeploymentStatusMessages = v
  6352. return s
  6353. }
  6354. // SetDeploymentStyle sets the DeploymentStyle field's value.
  6355. func (s *DeploymentInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentInfo {
  6356. s.DeploymentStyle = v
  6357. return s
  6358. }
  6359. // SetDescription sets the Description field's value.
  6360. func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo {
  6361. s.Description = &v
  6362. return s
  6363. }
  6364. // SetErrorInformation sets the ErrorInformation field's value.
  6365. func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo {
  6366. s.ErrorInformation = v
  6367. return s
  6368. }
  6369. // SetFileExistsBehavior sets the FileExistsBehavior field's value.
  6370. func (s *DeploymentInfo) SetFileExistsBehavior(v string) *DeploymentInfo {
  6371. s.FileExistsBehavior = &v
  6372. return s
  6373. }
  6374. // SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value.
  6375. func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo {
  6376. s.IgnoreApplicationStopFailures = &v
  6377. return s
  6378. }
  6379. // SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value.
  6380. func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo {
  6381. s.InstanceTerminationWaitTimeStarted = &v
  6382. return s
  6383. }
  6384. // SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
  6385. func (s *DeploymentInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentInfo {
  6386. s.LoadBalancerInfo = v
  6387. return s
  6388. }
  6389. // SetPreviousRevision sets the PreviousRevision field's value.
  6390. func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo {
  6391. s.PreviousRevision = v
  6392. return s
  6393. }
  6394. // SetRevision sets the Revision field's value.
  6395. func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo {
  6396. s.Revision = v
  6397. return s
  6398. }
  6399. // SetRollbackInfo sets the RollbackInfo field's value.
  6400. func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo {
  6401. s.RollbackInfo = v
  6402. return s
  6403. }
  6404. // SetStartTime sets the StartTime field's value.
  6405. func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo {
  6406. s.StartTime = &v
  6407. return s
  6408. }
  6409. // SetStatus sets the Status field's value.
  6410. func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo {
  6411. s.Status = &v
  6412. return s
  6413. }
  6414. // SetTargetInstances sets the TargetInstances field's value.
  6415. func (s *DeploymentInfo) SetTargetInstances(v *TargetInstances) *DeploymentInfo {
  6416. s.TargetInstances = v
  6417. return s
  6418. }
  6419. // SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value.
  6420. func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo {
  6421. s.UpdateOutdatedInstancesOnly = &v
  6422. return s
  6423. }
  6424. // Information about the deployment status of the instances in the deployment.
  6425. type DeploymentOverview struct {
  6426. _ struct{} `type:"structure"`
  6427. // The number of instances in the deployment in a failed state.
  6428. Failed *int64 `type:"long"`
  6429. // The number of instances in which the deployment is in progress.
  6430. InProgress *int64 `type:"long"`
  6431. // The number of instances in the deployment in a pending state.
  6432. Pending *int64 `type:"long"`
  6433. // The number of instances in a replacement environment ready to receive traffic
  6434. // in a blue/green deployment.
  6435. Ready *int64 `type:"long"`
  6436. // The number of instances in the deployment in a skipped state.
  6437. Skipped *int64 `type:"long"`
  6438. // The number of instances in the deployment to which revisions have been successfully
  6439. // deployed.
  6440. Succeeded *int64 `type:"long"`
  6441. }
  6442. // String returns the string representation
  6443. func (s DeploymentOverview) String() string {
  6444. return awsutil.Prettify(s)
  6445. }
  6446. // GoString returns the string representation
  6447. func (s DeploymentOverview) GoString() string {
  6448. return s.String()
  6449. }
  6450. // SetFailed sets the Failed field's value.
  6451. func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview {
  6452. s.Failed = &v
  6453. return s
  6454. }
  6455. // SetInProgress sets the InProgress field's value.
  6456. func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview {
  6457. s.InProgress = &v
  6458. return s
  6459. }
  6460. // SetPending sets the Pending field's value.
  6461. func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview {
  6462. s.Pending = &v
  6463. return s
  6464. }
  6465. // SetReady sets the Ready field's value.
  6466. func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview {
  6467. s.Ready = &v
  6468. return s
  6469. }
  6470. // SetSkipped sets the Skipped field's value.
  6471. func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview {
  6472. s.Skipped = &v
  6473. return s
  6474. }
  6475. // SetSucceeded sets the Succeeded field's value.
  6476. func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview {
  6477. s.Succeeded = &v
  6478. return s
  6479. }
  6480. // Information about how traffic is rerouted to instances in a replacement environment
  6481. // in a blue/green deployment.
  6482. type DeploymentReadyOption struct {
  6483. _ struct{} `type:"structure"`
  6484. // Information about when to reroute traffic from an original environment to
  6485. // a replacement environment in a blue/green deployment.
  6486. //
  6487. // * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately
  6488. // after the new application revision is installed on the instances in the
  6489. // replacement environment.
  6490. //
  6491. // * STOP_DEPLOYMENT: Do not register new instances with a load balancer
  6492. // unless traffic rerouting is started using ContinueDeployment. If traffic
  6493. // rerouting is not started before the end of the specified wait period,
  6494. // the deployment status is changed to Stopped.
  6495. ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"`
  6496. // The number of minutes to wait before the status of a blue/green deployment
  6497. // is changed to Stopped if rerouting is not started manually. Applies only
  6498. // to the STOP_DEPLOYMENT option for actionOnTimeout
  6499. WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"`
  6500. }
  6501. // String returns the string representation
  6502. func (s DeploymentReadyOption) String() string {
  6503. return awsutil.Prettify(s)
  6504. }
  6505. // GoString returns the string representation
  6506. func (s DeploymentReadyOption) GoString() string {
  6507. return s.String()
  6508. }
  6509. // SetActionOnTimeout sets the ActionOnTimeout field's value.
  6510. func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption {
  6511. s.ActionOnTimeout = &v
  6512. return s
  6513. }
  6514. // SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value.
  6515. func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption {
  6516. s.WaitTimeInMinutes = &v
  6517. return s
  6518. }
  6519. // Information about the type of deployment, either in-place or blue/green,
  6520. // you want to run and whether to route deployment traffic behind a load balancer.
  6521. type DeploymentStyle struct {
  6522. _ struct{} `type:"structure"`
  6523. // Indicates whether to route deployment traffic behind a load balancer.
  6524. DeploymentOption *string `locationName:"deploymentOption" type:"string" enum:"DeploymentOption"`
  6525. // Indicates whether to run an in-place deployment or a blue/green deployment.
  6526. DeploymentType *string `locationName:"deploymentType" type:"string" enum:"DeploymentType"`
  6527. }
  6528. // String returns the string representation
  6529. func (s DeploymentStyle) String() string {
  6530. return awsutil.Prettify(s)
  6531. }
  6532. // GoString returns the string representation
  6533. func (s DeploymentStyle) GoString() string {
  6534. return s.String()
  6535. }
  6536. // SetDeploymentOption sets the DeploymentOption field's value.
  6537. func (s *DeploymentStyle) SetDeploymentOption(v string) *DeploymentStyle {
  6538. s.DeploymentOption = &v
  6539. return s
  6540. }
  6541. // SetDeploymentType sets the DeploymentType field's value.
  6542. func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle {
  6543. s.DeploymentType = &v
  6544. return s
  6545. }
  6546. // Information about the deployment target.
  6547. type DeploymentTarget struct {
  6548. _ struct{} `type:"structure"`
  6549. // The deployment type that is specific to the deployment's compute platform.
  6550. DeploymentTargetType *string `locationName:"deploymentTargetType" type:"string" enum:"DeploymentTargetType"`
  6551. // Information about the target for a deployment that uses the Amazon ECS compute
  6552. // platform.
  6553. EcsTarget *ECSTarget `locationName:"ecsTarget" type:"structure"`
  6554. // Information about the target for a deployment that uses the EC2/On-premises
  6555. // compute platform.
  6556. InstanceTarget *InstanceTarget `locationName:"instanceTarget" type:"structure"`
  6557. // Information about the target for a deployment that uses the AWS Lambda compute
  6558. // platform.
  6559. LambdaTarget *LambdaTarget `locationName:"lambdaTarget" type:"structure"`
  6560. }
  6561. // String returns the string representation
  6562. func (s DeploymentTarget) String() string {
  6563. return awsutil.Prettify(s)
  6564. }
  6565. // GoString returns the string representation
  6566. func (s DeploymentTarget) GoString() string {
  6567. return s.String()
  6568. }
  6569. // SetDeploymentTargetType sets the DeploymentTargetType field's value.
  6570. func (s *DeploymentTarget) SetDeploymentTargetType(v string) *DeploymentTarget {
  6571. s.DeploymentTargetType = &v
  6572. return s
  6573. }
  6574. // SetEcsTarget sets the EcsTarget field's value.
  6575. func (s *DeploymentTarget) SetEcsTarget(v *ECSTarget) *DeploymentTarget {
  6576. s.EcsTarget = v
  6577. return s
  6578. }
  6579. // SetInstanceTarget sets the InstanceTarget field's value.
  6580. func (s *DeploymentTarget) SetInstanceTarget(v *InstanceTarget) *DeploymentTarget {
  6581. s.InstanceTarget = v
  6582. return s
  6583. }
  6584. // SetLambdaTarget sets the LambdaTarget field's value.
  6585. func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget {
  6586. s.LambdaTarget = v
  6587. return s
  6588. }
  6589. // Represents the input of a DeregisterOnPremisesInstance operation.
  6590. type DeregisterOnPremisesInstanceInput struct {
  6591. _ struct{} `type:"structure"`
  6592. // The name of the on-premises instance to deregister.
  6593. //
  6594. // InstanceName is a required field
  6595. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  6596. }
  6597. // String returns the string representation
  6598. func (s DeregisterOnPremisesInstanceInput) String() string {
  6599. return awsutil.Prettify(s)
  6600. }
  6601. // GoString returns the string representation
  6602. func (s DeregisterOnPremisesInstanceInput) GoString() string {
  6603. return s.String()
  6604. }
  6605. // Validate inspects the fields of the type to determine if they are valid.
  6606. func (s *DeregisterOnPremisesInstanceInput) Validate() error {
  6607. invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"}
  6608. if s.InstanceName == nil {
  6609. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  6610. }
  6611. if invalidParams.Len() > 0 {
  6612. return invalidParams
  6613. }
  6614. return nil
  6615. }
  6616. // SetInstanceName sets the InstanceName field's value.
  6617. func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput {
  6618. s.InstanceName = &v
  6619. return s
  6620. }
  6621. type DeregisterOnPremisesInstanceOutput struct {
  6622. _ struct{} `type:"structure"`
  6623. }
  6624. // String returns the string representation
  6625. func (s DeregisterOnPremisesInstanceOutput) String() string {
  6626. return awsutil.Prettify(s)
  6627. }
  6628. // GoString returns the string representation
  6629. func (s DeregisterOnPremisesInstanceOutput) GoString() string {
  6630. return s.String()
  6631. }
  6632. // Diagnostic information about executable scripts that are part of a deployment.
  6633. type Diagnostics struct {
  6634. _ struct{} `type:"structure"`
  6635. // The associated error code:
  6636. //
  6637. // * Success: The specified script ran.
  6638. //
  6639. // * ScriptMissing: The specified script was not found in the specified location.
  6640. //
  6641. // * ScriptNotExecutable: The specified script is not a recognized executable
  6642. // file type.
  6643. //
  6644. // * ScriptTimedOut: The specified script did not finish running in the specified
  6645. // time period.
  6646. //
  6647. // * ScriptFailed: The specified script failed to run as expected.
  6648. //
  6649. // * UnknownError: The specified script did not run for an unknown reason.
  6650. ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"`
  6651. // The last portion of the diagnostic log.
  6652. //
  6653. // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic
  6654. // log.
  6655. LogTail *string `locationName:"logTail" type:"string"`
  6656. // The message associated with the error.
  6657. Message *string `locationName:"message" type:"string"`
  6658. // The name of the script.
  6659. ScriptName *string `locationName:"scriptName" type:"string"`
  6660. }
  6661. // String returns the string representation
  6662. func (s Diagnostics) String() string {
  6663. return awsutil.Prettify(s)
  6664. }
  6665. // GoString returns the string representation
  6666. func (s Diagnostics) GoString() string {
  6667. return s.String()
  6668. }
  6669. // SetErrorCode sets the ErrorCode field's value.
  6670. func (s *Diagnostics) SetErrorCode(v string) *Diagnostics {
  6671. s.ErrorCode = &v
  6672. return s
  6673. }
  6674. // SetLogTail sets the LogTail field's value.
  6675. func (s *Diagnostics) SetLogTail(v string) *Diagnostics {
  6676. s.LogTail = &v
  6677. return s
  6678. }
  6679. // SetMessage sets the Message field's value.
  6680. func (s *Diagnostics) SetMessage(v string) *Diagnostics {
  6681. s.Message = &v
  6682. return s
  6683. }
  6684. // SetScriptName sets the ScriptName field's value.
  6685. func (s *Diagnostics) SetScriptName(v string) *Diagnostics {
  6686. s.ScriptName = &v
  6687. return s
  6688. }
  6689. // Information about an EC2 tag filter.
  6690. type EC2TagFilter struct {
  6691. _ struct{} `type:"structure"`
  6692. // The tag filter key.
  6693. Key *string `type:"string"`
  6694. // The tag filter type:
  6695. //
  6696. // * KEY_ONLY: Key only.
  6697. //
  6698. // * VALUE_ONLY: Value only.
  6699. //
  6700. // * KEY_AND_VALUE: Key and value.
  6701. Type *string `type:"string" enum:"EC2TagFilterType"`
  6702. // The tag filter value.
  6703. Value *string `type:"string"`
  6704. }
  6705. // String returns the string representation
  6706. func (s EC2TagFilter) String() string {
  6707. return awsutil.Prettify(s)
  6708. }
  6709. // GoString returns the string representation
  6710. func (s EC2TagFilter) GoString() string {
  6711. return s.String()
  6712. }
  6713. // SetKey sets the Key field's value.
  6714. func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter {
  6715. s.Key = &v
  6716. return s
  6717. }
  6718. // SetType sets the Type field's value.
  6719. func (s *EC2TagFilter) SetType(v string) *EC2TagFilter {
  6720. s.Type = &v
  6721. return s
  6722. }
  6723. // SetValue sets the Value field's value.
  6724. func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter {
  6725. s.Value = &v
  6726. return s
  6727. }
  6728. // Information about groups of EC2 instance tags.
  6729. type EC2TagSet struct {
  6730. _ struct{} `type:"structure"`
  6731. // A list that contains other lists of EC2 instance tag groups. For an instance
  6732. // to be included in the deployment group, it must be identified by all of the
  6733. // tag groups in the list.
  6734. Ec2TagSetList [][]*EC2TagFilter `locationName:"ec2TagSetList" type:"list"`
  6735. }
  6736. // String returns the string representation
  6737. func (s EC2TagSet) String() string {
  6738. return awsutil.Prettify(s)
  6739. }
  6740. // GoString returns the string representation
  6741. func (s EC2TagSet) GoString() string {
  6742. return s.String()
  6743. }
  6744. // SetEc2TagSetList sets the Ec2TagSetList field's value.
  6745. func (s *EC2TagSet) SetEc2TagSetList(v [][]*EC2TagFilter) *EC2TagSet {
  6746. s.Ec2TagSetList = v
  6747. return s
  6748. }
  6749. // Contains the service and cluster names used to identify an Amazon ECS deployment's
  6750. // target.
  6751. type ECSService struct {
  6752. _ struct{} `type:"structure"`
  6753. // The name of the cluster that the Amazon ECS service is associated with.
  6754. ClusterName *string `locationName:"clusterName" type:"string"`
  6755. // The name of the target Amazon ECS service.
  6756. ServiceName *string `locationName:"serviceName" type:"string"`
  6757. }
  6758. // String returns the string representation
  6759. func (s ECSService) String() string {
  6760. return awsutil.Prettify(s)
  6761. }
  6762. // GoString returns the string representation
  6763. func (s ECSService) GoString() string {
  6764. return s.String()
  6765. }
  6766. // SetClusterName sets the ClusterName field's value.
  6767. func (s *ECSService) SetClusterName(v string) *ECSService {
  6768. s.ClusterName = &v
  6769. return s
  6770. }
  6771. // SetServiceName sets the ServiceName field's value.
  6772. func (s *ECSService) SetServiceName(v string) *ECSService {
  6773. s.ServiceName = &v
  6774. return s
  6775. }
  6776. // Information about the target of an Amazon ECS deployment.
  6777. type ECSTarget struct {
  6778. _ struct{} `type:"structure"`
  6779. // The unique ID of a deployment.
  6780. DeploymentId *string `locationName:"deploymentId" type:"string"`
  6781. // The date and time when the target Amazon ECS application was updated by a
  6782. // deployment.
  6783. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
  6784. // The lifecycle events of the deployment to this target Amazon ECS application.
  6785. LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
  6786. // The status an Amazon ECS deployment's target ECS application.
  6787. Status *string `locationName:"status" type:"string" enum:"TargetStatus"`
  6788. // The ARN of the target.
  6789. TargetArn *string `locationName:"targetArn" type:"string"`
  6790. // The unique ID of a deployment target that has a type of ecsTarget.
  6791. TargetId *string `locationName:"targetId" type:"string"`
  6792. // The ECSTaskSet objects associated with the ECS target.
  6793. TaskSetsInfo []*ECSTaskSet `locationName:"taskSetsInfo" type:"list"`
  6794. }
  6795. // String returns the string representation
  6796. func (s ECSTarget) String() string {
  6797. return awsutil.Prettify(s)
  6798. }
  6799. // GoString returns the string representation
  6800. func (s ECSTarget) GoString() string {
  6801. return s.String()
  6802. }
  6803. // SetDeploymentId sets the DeploymentId field's value.
  6804. func (s *ECSTarget) SetDeploymentId(v string) *ECSTarget {
  6805. s.DeploymentId = &v
  6806. return s
  6807. }
  6808. // SetLastUpdatedAt sets the LastUpdatedAt field's value.
  6809. func (s *ECSTarget) SetLastUpdatedAt(v time.Time) *ECSTarget {
  6810. s.LastUpdatedAt = &v
  6811. return s
  6812. }
  6813. // SetLifecycleEvents sets the LifecycleEvents field's value.
  6814. func (s *ECSTarget) SetLifecycleEvents(v []*LifecycleEvent) *ECSTarget {
  6815. s.LifecycleEvents = v
  6816. return s
  6817. }
  6818. // SetStatus sets the Status field's value.
  6819. func (s *ECSTarget) SetStatus(v string) *ECSTarget {
  6820. s.Status = &v
  6821. return s
  6822. }
  6823. // SetTargetArn sets the TargetArn field's value.
  6824. func (s *ECSTarget) SetTargetArn(v string) *ECSTarget {
  6825. s.TargetArn = &v
  6826. return s
  6827. }
  6828. // SetTargetId sets the TargetId field's value.
  6829. func (s *ECSTarget) SetTargetId(v string) *ECSTarget {
  6830. s.TargetId = &v
  6831. return s
  6832. }
  6833. // SetTaskSetsInfo sets the TaskSetsInfo field's value.
  6834. func (s *ECSTarget) SetTaskSetsInfo(v []*ECSTaskSet) *ECSTarget {
  6835. s.TaskSetsInfo = v
  6836. return s
  6837. }
  6838. // Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment.
  6839. // An Amazon ECS task set includes details such as the desired number of tasks,
  6840. // how many tasks are running, and whether the task set serves production traffic.
  6841. // An AWS CodeDeploy application that uses the Amazon ECS compute platform deploys
  6842. // a containerized application in an Amazon ECS service as a task set.
  6843. type ECSTaskSet struct {
  6844. _ struct{} `type:"structure"`
  6845. // The number of tasks in a task set. During a deployment that uses the Amazon
  6846. // ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set
  6847. // and uses this value to determine how many tasks to create. After the updated
  6848. // task set is created, CodeDeploy shifts traffic to the new task set.
  6849. DesiredCount *int64 `locationName:"desiredCount" type:"long"`
  6850. // A unique ID of an ECSTaskSet.
  6851. Identifer *string `locationName:"identifer" type:"string"`
  6852. // The number of tasks in the task set that are in the PENDING status during
  6853. // an Amazon ECS deployment. A task in the PENDING state is preparing to enter
  6854. // the RUNNING state. A task set enters the PENDING status when it launches
  6855. // for the first time, or when it is restarted after being in the STOPPED state.
  6856. PendingCount *int64 `locationName:"pendingCount" type:"long"`
  6857. // The number of tasks in the task set that are in the RUNNING status during
  6858. // an Amazon ECS deployment. A task in the RUNNING state is running and ready
  6859. // for use.
  6860. RunningCount *int64 `locationName:"runningCount" type:"long"`
  6861. // The status of the task set. There are three valid task set statuses:
  6862. //
  6863. // * PRIMARY: Indicates the task set is serving production traffic.
  6864. //
  6865. // * ACTIVE: Indicates the task set is not serving production traffic.
  6866. //
  6867. // * DRAINING: Indicates the tasks in the task set are being stopped and
  6868. // their corresponding targets are being deregistered from their target group.
  6869. Status *string `locationName:"status" type:"string"`
  6870. // The target group associated with the task set. The target group is used by
  6871. // AWS CodeDeploy to manage traffic to a task set.
  6872. TargetGroup *TargetGroupInfo `locationName:"targetGroup" type:"structure"`
  6873. // A label that identifies whether the ECS task set is an original target (BLUE)
  6874. // or a replacement target (GREEN).
  6875. TaskSetLabel *string `locationName:"taskSetLabel" type:"string" enum:"TargetLabel"`
  6876. // The percentage of traffic served by this task set.
  6877. TrafficWeight *float64 `locationName:"trafficWeight" type:"double"`
  6878. }
  6879. // String returns the string representation
  6880. func (s ECSTaskSet) String() string {
  6881. return awsutil.Prettify(s)
  6882. }
  6883. // GoString returns the string representation
  6884. func (s ECSTaskSet) GoString() string {
  6885. return s.String()
  6886. }
  6887. // SetDesiredCount sets the DesiredCount field's value.
  6888. func (s *ECSTaskSet) SetDesiredCount(v int64) *ECSTaskSet {
  6889. s.DesiredCount = &v
  6890. return s
  6891. }
  6892. // SetIdentifer sets the Identifer field's value.
  6893. func (s *ECSTaskSet) SetIdentifer(v string) *ECSTaskSet {
  6894. s.Identifer = &v
  6895. return s
  6896. }
  6897. // SetPendingCount sets the PendingCount field's value.
  6898. func (s *ECSTaskSet) SetPendingCount(v int64) *ECSTaskSet {
  6899. s.PendingCount = &v
  6900. return s
  6901. }
  6902. // SetRunningCount sets the RunningCount field's value.
  6903. func (s *ECSTaskSet) SetRunningCount(v int64) *ECSTaskSet {
  6904. s.RunningCount = &v
  6905. return s
  6906. }
  6907. // SetStatus sets the Status field's value.
  6908. func (s *ECSTaskSet) SetStatus(v string) *ECSTaskSet {
  6909. s.Status = &v
  6910. return s
  6911. }
  6912. // SetTargetGroup sets the TargetGroup field's value.
  6913. func (s *ECSTaskSet) SetTargetGroup(v *TargetGroupInfo) *ECSTaskSet {
  6914. s.TargetGroup = v
  6915. return s
  6916. }
  6917. // SetTaskSetLabel sets the TaskSetLabel field's value.
  6918. func (s *ECSTaskSet) SetTaskSetLabel(v string) *ECSTaskSet {
  6919. s.TaskSetLabel = &v
  6920. return s
  6921. }
  6922. // SetTrafficWeight sets the TrafficWeight field's value.
  6923. func (s *ECSTaskSet) SetTrafficWeight(v float64) *ECSTaskSet {
  6924. s.TrafficWeight = &v
  6925. return s
  6926. }
  6927. // Information about a load balancer in Elastic Load Balancing to use in a deployment.
  6928. // Instances are registered directly with a load balancer, and traffic is routed
  6929. // to the load balancer.
  6930. type ELBInfo struct {
  6931. _ struct{} `type:"structure"`
  6932. // For blue/green deployments, the name of the load balancer that is used to
  6933. // route traffic from original instances to replacement instances in a blue/green
  6934. // deployment. For in-place deployments, the name of the load balancer that
  6935. // instances are deregistered from so they are not serving traffic during a
  6936. // deployment, and then re-registered with after the deployment is complete.
  6937. Name *string `locationName:"name" type:"string"`
  6938. }
  6939. // String returns the string representation
  6940. func (s ELBInfo) String() string {
  6941. return awsutil.Prettify(s)
  6942. }
  6943. // GoString returns the string representation
  6944. func (s ELBInfo) GoString() string {
  6945. return s.String()
  6946. }
  6947. // SetName sets the Name field's value.
  6948. func (s *ELBInfo) SetName(v string) *ELBInfo {
  6949. s.Name = &v
  6950. return s
  6951. }
  6952. // Information about a deployment error.
  6953. type ErrorInformation struct {
  6954. _ struct{} `type:"structure"`
  6955. // For more information, see Error Codes for AWS CodeDeploy (http://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html)
  6956. // in the AWS CodeDeploy User Guide (http://docs.aws.amazon.com/codedeploy/latest/userguide).
  6957. //
  6958. // The error code:
  6959. //
  6960. // * APPLICATION_MISSING: The application was missing. This error code is
  6961. // most likely raised if the application is deleted after the deployment
  6962. // is created, but before it is started.
  6963. //
  6964. // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error
  6965. // code is most likely raised if the deployment group is deleted after the
  6966. // deployment is created, but before it is started.
  6967. //
  6968. // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
  6969. // successfully deployed within the instance health constraints specified.
  6970. //
  6971. // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed
  6972. // within the instance health constraints specified.
  6973. //
  6974. // * IAM_ROLE_MISSING: The service role cannot be accessed.
  6975. //
  6976. // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.
  6977. //
  6978. // * INTERNAL_ERROR: There was an internal error.
  6979. //
  6980. // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon
  6981. // EC2.
  6982. //
  6983. // * NO_INSTANCES: No instances were specified, or no instances can be found.
  6984. //
  6985. // * OVER_MAX_INSTANCES: The maximum number of instances was exceeded.
  6986. //
  6987. // * THROTTLED: The operation was throttled because the calling account exceeded
  6988. // the throttling limits of one or more AWS services.
  6989. //
  6990. // * TIMEOUT: The deployment has timed out.
  6991. //
  6992. // * REVISION_MISSING: The revision ID was missing. This error code is most
  6993. // likely raised if the revision is deleted after the deployment is created,
  6994. // but before it is started.
  6995. Code *string `locationName:"code" type:"string" enum:"ErrorCode"`
  6996. // An accompanying error message.
  6997. Message *string `locationName:"message" type:"string"`
  6998. }
  6999. // String returns the string representation
  7000. func (s ErrorInformation) String() string {
  7001. return awsutil.Prettify(s)
  7002. }
  7003. // GoString returns the string representation
  7004. func (s ErrorInformation) GoString() string {
  7005. return s.String()
  7006. }
  7007. // SetCode sets the Code field's value.
  7008. func (s *ErrorInformation) SetCode(v string) *ErrorInformation {
  7009. s.Code = &v
  7010. return s
  7011. }
  7012. // SetMessage sets the Message field's value.
  7013. func (s *ErrorInformation) SetMessage(v string) *ErrorInformation {
  7014. s.Message = &v
  7015. return s
  7016. }
  7017. // Information about an application revision.
  7018. type GenericRevisionInfo struct {
  7019. _ struct{} `type:"structure"`
  7020. // The deployment groups for which this is the current target revision.
  7021. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
  7022. // A comment about the revision.
  7023. Description *string `locationName:"description" type:"string"`
  7024. // When the revision was first used by AWS CodeDeploy.
  7025. FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp"`
  7026. // When the revision was last used by AWS CodeDeploy.
  7027. LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp"`
  7028. // When the revision was registered with AWS CodeDeploy.
  7029. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"`
  7030. }
  7031. // String returns the string representation
  7032. func (s GenericRevisionInfo) String() string {
  7033. return awsutil.Prettify(s)
  7034. }
  7035. // GoString returns the string representation
  7036. func (s GenericRevisionInfo) GoString() string {
  7037. return s.String()
  7038. }
  7039. // SetDeploymentGroups sets the DeploymentGroups field's value.
  7040. func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo {
  7041. s.DeploymentGroups = v
  7042. return s
  7043. }
  7044. // SetDescription sets the Description field's value.
  7045. func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo {
  7046. s.Description = &v
  7047. return s
  7048. }
  7049. // SetFirstUsedTime sets the FirstUsedTime field's value.
  7050. func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo {
  7051. s.FirstUsedTime = &v
  7052. return s
  7053. }
  7054. // SetLastUsedTime sets the LastUsedTime field's value.
  7055. func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo {
  7056. s.LastUsedTime = &v
  7057. return s
  7058. }
  7059. // SetRegisterTime sets the RegisterTime field's value.
  7060. func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo {
  7061. s.RegisterTime = &v
  7062. return s
  7063. }
  7064. // Represents the input of a GetApplication operation.
  7065. type GetApplicationInput struct {
  7066. _ struct{} `type:"structure"`
  7067. // The name of an AWS CodeDeploy application associated with the IAM user or
  7068. // AWS account.
  7069. //
  7070. // ApplicationName is a required field
  7071. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  7072. }
  7073. // String returns the string representation
  7074. func (s GetApplicationInput) String() string {
  7075. return awsutil.Prettify(s)
  7076. }
  7077. // GoString returns the string representation
  7078. func (s GetApplicationInput) GoString() string {
  7079. return s.String()
  7080. }
  7081. // Validate inspects the fields of the type to determine if they are valid.
  7082. func (s *GetApplicationInput) Validate() error {
  7083. invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"}
  7084. if s.ApplicationName == nil {
  7085. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  7086. }
  7087. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  7088. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  7089. }
  7090. if invalidParams.Len() > 0 {
  7091. return invalidParams
  7092. }
  7093. return nil
  7094. }
  7095. // SetApplicationName sets the ApplicationName field's value.
  7096. func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput {
  7097. s.ApplicationName = &v
  7098. return s
  7099. }
  7100. // Represents the output of a GetApplication operation.
  7101. type GetApplicationOutput struct {
  7102. _ struct{} `type:"structure"`
  7103. // Information about the application.
  7104. Application *ApplicationInfo `locationName:"application" type:"structure"`
  7105. }
  7106. // String returns the string representation
  7107. func (s GetApplicationOutput) String() string {
  7108. return awsutil.Prettify(s)
  7109. }
  7110. // GoString returns the string representation
  7111. func (s GetApplicationOutput) GoString() string {
  7112. return s.String()
  7113. }
  7114. // SetApplication sets the Application field's value.
  7115. func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput {
  7116. s.Application = v
  7117. return s
  7118. }
  7119. // Represents the input of a GetApplicationRevision operation.
  7120. type GetApplicationRevisionInput struct {
  7121. _ struct{} `type:"structure"`
  7122. // The name of the application that corresponds to the revision.
  7123. //
  7124. // ApplicationName is a required field
  7125. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  7126. // Information about the application revision to get, including type and location.
  7127. //
  7128. // Revision is a required field
  7129. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
  7130. }
  7131. // String returns the string representation
  7132. func (s GetApplicationRevisionInput) String() string {
  7133. return awsutil.Prettify(s)
  7134. }
  7135. // GoString returns the string representation
  7136. func (s GetApplicationRevisionInput) GoString() string {
  7137. return s.String()
  7138. }
  7139. // Validate inspects the fields of the type to determine if they are valid.
  7140. func (s *GetApplicationRevisionInput) Validate() error {
  7141. invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"}
  7142. if s.ApplicationName == nil {
  7143. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  7144. }
  7145. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  7146. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  7147. }
  7148. if s.Revision == nil {
  7149. invalidParams.Add(request.NewErrParamRequired("Revision"))
  7150. }
  7151. if invalidParams.Len() > 0 {
  7152. return invalidParams
  7153. }
  7154. return nil
  7155. }
  7156. // SetApplicationName sets the ApplicationName field's value.
  7157. func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput {
  7158. s.ApplicationName = &v
  7159. return s
  7160. }
  7161. // SetRevision sets the Revision field's value.
  7162. func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput {
  7163. s.Revision = v
  7164. return s
  7165. }
  7166. // Represents the output of a GetApplicationRevision operation.
  7167. type GetApplicationRevisionOutput struct {
  7168. _ struct{} `type:"structure"`
  7169. // The name of the application that corresponds to the revision.
  7170. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  7171. // Additional information about the revision, including type and location.
  7172. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  7173. // General information about the revision.
  7174. RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"`
  7175. }
  7176. // String returns the string representation
  7177. func (s GetApplicationRevisionOutput) String() string {
  7178. return awsutil.Prettify(s)
  7179. }
  7180. // GoString returns the string representation
  7181. func (s GetApplicationRevisionOutput) GoString() string {
  7182. return s.String()
  7183. }
  7184. // SetApplicationName sets the ApplicationName field's value.
  7185. func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput {
  7186. s.ApplicationName = &v
  7187. return s
  7188. }
  7189. // SetRevision sets the Revision field's value.
  7190. func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput {
  7191. s.Revision = v
  7192. return s
  7193. }
  7194. // SetRevisionInfo sets the RevisionInfo field's value.
  7195. func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput {
  7196. s.RevisionInfo = v
  7197. return s
  7198. }
  7199. // Represents the input of a GetDeploymentConfig operation.
  7200. type GetDeploymentConfigInput struct {
  7201. _ struct{} `type:"structure"`
  7202. // The name of a deployment configuration associated with the IAM user or AWS
  7203. // account.
  7204. //
  7205. // DeploymentConfigName is a required field
  7206. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  7207. }
  7208. // String returns the string representation
  7209. func (s GetDeploymentConfigInput) String() string {
  7210. return awsutil.Prettify(s)
  7211. }
  7212. // GoString returns the string representation
  7213. func (s GetDeploymentConfigInput) GoString() string {
  7214. return s.String()
  7215. }
  7216. // Validate inspects the fields of the type to determine if they are valid.
  7217. func (s *GetDeploymentConfigInput) Validate() error {
  7218. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"}
  7219. if s.DeploymentConfigName == nil {
  7220. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  7221. }
  7222. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  7223. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  7224. }
  7225. if invalidParams.Len() > 0 {
  7226. return invalidParams
  7227. }
  7228. return nil
  7229. }
  7230. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  7231. func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput {
  7232. s.DeploymentConfigName = &v
  7233. return s
  7234. }
  7235. // Represents the output of a GetDeploymentConfig operation.
  7236. type GetDeploymentConfigOutput struct {
  7237. _ struct{} `type:"structure"`
  7238. // Information about the deployment configuration.
  7239. DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"`
  7240. }
  7241. // String returns the string representation
  7242. func (s GetDeploymentConfigOutput) String() string {
  7243. return awsutil.Prettify(s)
  7244. }
  7245. // GoString returns the string representation
  7246. func (s GetDeploymentConfigOutput) GoString() string {
  7247. return s.String()
  7248. }
  7249. // SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value.
  7250. func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput {
  7251. s.DeploymentConfigInfo = v
  7252. return s
  7253. }
  7254. // Represents the input of a GetDeploymentGroup operation.
  7255. type GetDeploymentGroupInput struct {
  7256. _ struct{} `type:"structure"`
  7257. // The name of an AWS CodeDeploy application associated with the IAM user or
  7258. // AWS account.
  7259. //
  7260. // ApplicationName is a required field
  7261. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  7262. // The name of a deployment group for the specified application.
  7263. //
  7264. // DeploymentGroupName is a required field
  7265. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  7266. }
  7267. // String returns the string representation
  7268. func (s GetDeploymentGroupInput) String() string {
  7269. return awsutil.Prettify(s)
  7270. }
  7271. // GoString returns the string representation
  7272. func (s GetDeploymentGroupInput) GoString() string {
  7273. return s.String()
  7274. }
  7275. // Validate inspects the fields of the type to determine if they are valid.
  7276. func (s *GetDeploymentGroupInput) Validate() error {
  7277. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"}
  7278. if s.ApplicationName == nil {
  7279. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  7280. }
  7281. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  7282. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  7283. }
  7284. if s.DeploymentGroupName == nil {
  7285. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  7286. }
  7287. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  7288. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  7289. }
  7290. if invalidParams.Len() > 0 {
  7291. return invalidParams
  7292. }
  7293. return nil
  7294. }
  7295. // SetApplicationName sets the ApplicationName field's value.
  7296. func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput {
  7297. s.ApplicationName = &v
  7298. return s
  7299. }
  7300. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  7301. func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput {
  7302. s.DeploymentGroupName = &v
  7303. return s
  7304. }
  7305. // Represents the output of a GetDeploymentGroup operation.
  7306. type GetDeploymentGroupOutput struct {
  7307. _ struct{} `type:"structure"`
  7308. // Information about the deployment group.
  7309. DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"`
  7310. }
  7311. // String returns the string representation
  7312. func (s GetDeploymentGroupOutput) String() string {
  7313. return awsutil.Prettify(s)
  7314. }
  7315. // GoString returns the string representation
  7316. func (s GetDeploymentGroupOutput) GoString() string {
  7317. return s.String()
  7318. }
  7319. // SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value.
  7320. func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput {
  7321. s.DeploymentGroupInfo = v
  7322. return s
  7323. }
  7324. // Represents the input of a GetDeployment operation.
  7325. type GetDeploymentInput struct {
  7326. _ struct{} `type:"structure"`
  7327. // The unique ID of a deployment associated with the IAM user or AWS account.
  7328. //
  7329. // DeploymentId is a required field
  7330. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  7331. }
  7332. // String returns the string representation
  7333. func (s GetDeploymentInput) String() string {
  7334. return awsutil.Prettify(s)
  7335. }
  7336. // GoString returns the string representation
  7337. func (s GetDeploymentInput) GoString() string {
  7338. return s.String()
  7339. }
  7340. // Validate inspects the fields of the type to determine if they are valid.
  7341. func (s *GetDeploymentInput) Validate() error {
  7342. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"}
  7343. if s.DeploymentId == nil {
  7344. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  7345. }
  7346. if invalidParams.Len() > 0 {
  7347. return invalidParams
  7348. }
  7349. return nil
  7350. }
  7351. // SetDeploymentId sets the DeploymentId field's value.
  7352. func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput {
  7353. s.DeploymentId = &v
  7354. return s
  7355. }
  7356. // Represents the input of a GetDeploymentInstance operation.
  7357. type GetDeploymentInstanceInput struct {
  7358. _ struct{} `type:"structure"`
  7359. // The unique ID of a deployment.
  7360. //
  7361. // DeploymentId is a required field
  7362. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  7363. // The unique ID of an instance in the deployment group.
  7364. //
  7365. // InstanceId is a required field
  7366. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  7367. }
  7368. // String returns the string representation
  7369. func (s GetDeploymentInstanceInput) String() string {
  7370. return awsutil.Prettify(s)
  7371. }
  7372. // GoString returns the string representation
  7373. func (s GetDeploymentInstanceInput) GoString() string {
  7374. return s.String()
  7375. }
  7376. // Validate inspects the fields of the type to determine if they are valid.
  7377. func (s *GetDeploymentInstanceInput) Validate() error {
  7378. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"}
  7379. if s.DeploymentId == nil {
  7380. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  7381. }
  7382. if s.InstanceId == nil {
  7383. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  7384. }
  7385. if invalidParams.Len() > 0 {
  7386. return invalidParams
  7387. }
  7388. return nil
  7389. }
  7390. // SetDeploymentId sets the DeploymentId field's value.
  7391. func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput {
  7392. s.DeploymentId = &v
  7393. return s
  7394. }
  7395. // SetInstanceId sets the InstanceId field's value.
  7396. func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput {
  7397. s.InstanceId = &v
  7398. return s
  7399. }
  7400. // Represents the output of a GetDeploymentInstance operation.
  7401. type GetDeploymentInstanceOutput struct {
  7402. _ struct{} `type:"structure"`
  7403. // Information about the instance.
  7404. InstanceSummary *InstanceSummary `locationName:"instanceSummary" deprecated:"true" type:"structure"`
  7405. }
  7406. // String returns the string representation
  7407. func (s GetDeploymentInstanceOutput) String() string {
  7408. return awsutil.Prettify(s)
  7409. }
  7410. // GoString returns the string representation
  7411. func (s GetDeploymentInstanceOutput) GoString() string {
  7412. return s.String()
  7413. }
  7414. // SetInstanceSummary sets the InstanceSummary field's value.
  7415. func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput {
  7416. s.InstanceSummary = v
  7417. return s
  7418. }
  7419. // Represents the output of a GetDeployment operation.
  7420. type GetDeploymentOutput struct {
  7421. _ struct{} `type:"structure"`
  7422. // Information about the deployment.
  7423. DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"`
  7424. }
  7425. // String returns the string representation
  7426. func (s GetDeploymentOutput) String() string {
  7427. return awsutil.Prettify(s)
  7428. }
  7429. // GoString returns the string representation
  7430. func (s GetDeploymentOutput) GoString() string {
  7431. return s.String()
  7432. }
  7433. // SetDeploymentInfo sets the DeploymentInfo field's value.
  7434. func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput {
  7435. s.DeploymentInfo = v
  7436. return s
  7437. }
  7438. type GetDeploymentTargetInput struct {
  7439. _ struct{} `type:"structure"`
  7440. // The unique ID of a deployment.
  7441. DeploymentId *string `locationName:"deploymentId" type:"string"`
  7442. // The unique ID of a deployment target.
  7443. TargetId *string `locationName:"targetId" type:"string"`
  7444. }
  7445. // String returns the string representation
  7446. func (s GetDeploymentTargetInput) String() string {
  7447. return awsutil.Prettify(s)
  7448. }
  7449. // GoString returns the string representation
  7450. func (s GetDeploymentTargetInput) GoString() string {
  7451. return s.String()
  7452. }
  7453. // SetDeploymentId sets the DeploymentId field's value.
  7454. func (s *GetDeploymentTargetInput) SetDeploymentId(v string) *GetDeploymentTargetInput {
  7455. s.DeploymentId = &v
  7456. return s
  7457. }
  7458. // SetTargetId sets the TargetId field's value.
  7459. func (s *GetDeploymentTargetInput) SetTargetId(v string) *GetDeploymentTargetInput {
  7460. s.TargetId = &v
  7461. return s
  7462. }
  7463. type GetDeploymentTargetOutput struct {
  7464. _ struct{} `type:"structure"`
  7465. // A deployment target that contains information about a deployment such as
  7466. // its status, lifecyle events, and when it was last updated. It also contains
  7467. // metadata about the deployment target. The deployment target metadata depends
  7468. // on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget).
  7469. DeploymentTarget *DeploymentTarget `locationName:"deploymentTarget" type:"structure"`
  7470. }
  7471. // String returns the string representation
  7472. func (s GetDeploymentTargetOutput) String() string {
  7473. return awsutil.Prettify(s)
  7474. }
  7475. // GoString returns the string representation
  7476. func (s GetDeploymentTargetOutput) GoString() string {
  7477. return s.String()
  7478. }
  7479. // SetDeploymentTarget sets the DeploymentTarget field's value.
  7480. func (s *GetDeploymentTargetOutput) SetDeploymentTarget(v *DeploymentTarget) *GetDeploymentTargetOutput {
  7481. s.DeploymentTarget = v
  7482. return s
  7483. }
  7484. // Represents the input of a GetOnPremisesInstance operation.
  7485. type GetOnPremisesInstanceInput struct {
  7486. _ struct{} `type:"structure"`
  7487. // The name of the on-premises instance about which to get information.
  7488. //
  7489. // InstanceName is a required field
  7490. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  7491. }
  7492. // String returns the string representation
  7493. func (s GetOnPremisesInstanceInput) String() string {
  7494. return awsutil.Prettify(s)
  7495. }
  7496. // GoString returns the string representation
  7497. func (s GetOnPremisesInstanceInput) GoString() string {
  7498. return s.String()
  7499. }
  7500. // Validate inspects the fields of the type to determine if they are valid.
  7501. func (s *GetOnPremisesInstanceInput) Validate() error {
  7502. invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"}
  7503. if s.InstanceName == nil {
  7504. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  7505. }
  7506. if invalidParams.Len() > 0 {
  7507. return invalidParams
  7508. }
  7509. return nil
  7510. }
  7511. // SetInstanceName sets the InstanceName field's value.
  7512. func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput {
  7513. s.InstanceName = &v
  7514. return s
  7515. }
  7516. // Represents the output of a GetOnPremisesInstance operation.
  7517. type GetOnPremisesInstanceOutput struct {
  7518. _ struct{} `type:"structure"`
  7519. // Information about the on-premises instance.
  7520. InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"`
  7521. }
  7522. // String returns the string representation
  7523. func (s GetOnPremisesInstanceOutput) String() string {
  7524. return awsutil.Prettify(s)
  7525. }
  7526. // GoString returns the string representation
  7527. func (s GetOnPremisesInstanceOutput) GoString() string {
  7528. return s.String()
  7529. }
  7530. // SetInstanceInfo sets the InstanceInfo field's value.
  7531. func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput {
  7532. s.InstanceInfo = v
  7533. return s
  7534. }
  7535. // Information about the location of application artifacts stored in GitHub.
  7536. type GitHubLocation struct {
  7537. _ struct{} `type:"structure"`
  7538. // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
  7539. // for the application revision.
  7540. CommitId *string `locationName:"commitId" type:"string"`
  7541. // The GitHub account and repository pair that stores a reference to the commit
  7542. // that represents the bundled artifacts for the application revision.
  7543. //
  7544. // Specified as account/repository.
  7545. Repository *string `locationName:"repository" type:"string"`
  7546. }
  7547. // String returns the string representation
  7548. func (s GitHubLocation) String() string {
  7549. return awsutil.Prettify(s)
  7550. }
  7551. // GoString returns the string representation
  7552. func (s GitHubLocation) GoString() string {
  7553. return s.String()
  7554. }
  7555. // SetCommitId sets the CommitId field's value.
  7556. func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation {
  7557. s.CommitId = &v
  7558. return s
  7559. }
  7560. // SetRepository sets the Repository field's value.
  7561. func (s *GitHubLocation) SetRepository(v string) *GitHubLocation {
  7562. s.Repository = &v
  7563. return s
  7564. }
  7565. // Information about the instances that belong to the replacement environment
  7566. // in a blue/green deployment.
  7567. type GreenFleetProvisioningOption struct {
  7568. _ struct{} `type:"structure"`
  7569. // The method used to add instances to a replacement environment.
  7570. //
  7571. // * DISCOVER_EXISTING: Use instances that already exist or will be created
  7572. // manually.
  7573. //
  7574. // * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling
  7575. // group to define and create instances in a new Auto Scaling group.
  7576. Action *string `locationName:"action" type:"string" enum:"GreenFleetProvisioningAction"`
  7577. }
  7578. // String returns the string representation
  7579. func (s GreenFleetProvisioningOption) String() string {
  7580. return awsutil.Prettify(s)
  7581. }
  7582. // GoString returns the string representation
  7583. func (s GreenFleetProvisioningOption) GoString() string {
  7584. return s.String()
  7585. }
  7586. // SetAction sets the Action field's value.
  7587. func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption {
  7588. s.Action = &v
  7589. return s
  7590. }
  7591. // Information about an on-premises instance.
  7592. type InstanceInfo struct {
  7593. _ struct{} `type:"structure"`
  7594. // If the on-premises instance was deregistered, the time at which the on-premises
  7595. // instance was deregistered.
  7596. DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp"`
  7597. // The ARN of the IAM session associated with the on-premises instance.
  7598. IamSessionArn *string `locationName:"iamSessionArn" type:"string"`
  7599. // The IAM user ARN associated with the on-premises instance.
  7600. IamUserArn *string `locationName:"iamUserArn" type:"string"`
  7601. // The ARN of the on-premises instance.
  7602. InstanceArn *string `locationName:"instanceArn" type:"string"`
  7603. // The name of the on-premises instance.
  7604. InstanceName *string `locationName:"instanceName" type:"string"`
  7605. // The time at which the on-premises instance was registered.
  7606. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"`
  7607. // The tags currently associated with the on-premises instance.
  7608. Tags []*Tag `locationName:"tags" type:"list"`
  7609. }
  7610. // String returns the string representation
  7611. func (s InstanceInfo) String() string {
  7612. return awsutil.Prettify(s)
  7613. }
  7614. // GoString returns the string representation
  7615. func (s InstanceInfo) GoString() string {
  7616. return s.String()
  7617. }
  7618. // SetDeregisterTime sets the DeregisterTime field's value.
  7619. func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo {
  7620. s.DeregisterTime = &v
  7621. return s
  7622. }
  7623. // SetIamSessionArn sets the IamSessionArn field's value.
  7624. func (s *InstanceInfo) SetIamSessionArn(v string) *InstanceInfo {
  7625. s.IamSessionArn = &v
  7626. return s
  7627. }
  7628. // SetIamUserArn sets the IamUserArn field's value.
  7629. func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo {
  7630. s.IamUserArn = &v
  7631. return s
  7632. }
  7633. // SetInstanceArn sets the InstanceArn field's value.
  7634. func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo {
  7635. s.InstanceArn = &v
  7636. return s
  7637. }
  7638. // SetInstanceName sets the InstanceName field's value.
  7639. func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo {
  7640. s.InstanceName = &v
  7641. return s
  7642. }
  7643. // SetRegisterTime sets the RegisterTime field's value.
  7644. func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo {
  7645. s.RegisterTime = &v
  7646. return s
  7647. }
  7648. // SetTags sets the Tags field's value.
  7649. func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo {
  7650. s.Tags = v
  7651. return s
  7652. }
  7653. // Information about an instance in a deployment.
  7654. //
  7655. // Deprecated: InstanceSummary is deprecated, use DeploymentTarget instead.
  7656. type InstanceSummary struct {
  7657. _ struct{} `deprecated:"true" type:"structure"`
  7658. // The unique ID of a deployment.
  7659. DeploymentId *string `locationName:"deploymentId" type:"string"`
  7660. // The instance ID.
  7661. InstanceId *string `locationName:"instanceId" type:"string"`
  7662. // Information about which environment an instance belongs to in a blue/green
  7663. // deployment.
  7664. //
  7665. // * BLUE: The instance is part of the original environment.
  7666. //
  7667. // * GREEN: The instance is part of the replacement environment.
  7668. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  7669. // A timestamp that indicaties when the instance information was last updated.
  7670. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
  7671. // A list of lifecycle events for this instance.
  7672. LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
  7673. // The deployment status for this instance:
  7674. //
  7675. // * Pending: The deployment is pending for this instance.
  7676. //
  7677. // * In Progress: The deployment is in progress for this instance.
  7678. //
  7679. // * Succeeded: The deployment has succeeded for this instance.
  7680. //
  7681. // * Failed: The deployment has failed for this instance.
  7682. //
  7683. // * Skipped: The deployment has been skipped for this instance.
  7684. //
  7685. // * Unknown: The deployment status is unknown for this instance.
  7686. Status *string `locationName:"status" deprecated:"true" type:"string" enum:"InstanceStatus"`
  7687. }
  7688. // String returns the string representation
  7689. func (s InstanceSummary) String() string {
  7690. return awsutil.Prettify(s)
  7691. }
  7692. // GoString returns the string representation
  7693. func (s InstanceSummary) GoString() string {
  7694. return s.String()
  7695. }
  7696. // SetDeploymentId sets the DeploymentId field's value.
  7697. func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary {
  7698. s.DeploymentId = &v
  7699. return s
  7700. }
  7701. // SetInstanceId sets the InstanceId field's value.
  7702. func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary {
  7703. s.InstanceId = &v
  7704. return s
  7705. }
  7706. // SetInstanceType sets the InstanceType field's value.
  7707. func (s *InstanceSummary) SetInstanceType(v string) *InstanceSummary {
  7708. s.InstanceType = &v
  7709. return s
  7710. }
  7711. // SetLastUpdatedAt sets the LastUpdatedAt field's value.
  7712. func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary {
  7713. s.LastUpdatedAt = &v
  7714. return s
  7715. }
  7716. // SetLifecycleEvents sets the LifecycleEvents field's value.
  7717. func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary {
  7718. s.LifecycleEvents = v
  7719. return s
  7720. }
  7721. // SetStatus sets the Status field's value.
  7722. func (s *InstanceSummary) SetStatus(v string) *InstanceSummary {
  7723. s.Status = &v
  7724. return s
  7725. }
  7726. // A target Amazon EC2 or on-premises instance during a deployment that uses
  7727. // the EC2/On-premises compute platform.
  7728. type InstanceTarget struct {
  7729. _ struct{} `type:"structure"`
  7730. // The unique ID of a deployment.
  7731. DeploymentId *string `locationName:"deploymentId" type:"string"`
  7732. // A label that identifies whether the instance is an original target (BLUE)
  7733. // or a replacement target (GREEN).
  7734. InstanceLabel *string `locationName:"instanceLabel" type:"string" enum:"TargetLabel"`
  7735. // The date and time when the target instance was updated by a deployment.
  7736. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
  7737. // The lifecycle events of the deployment to this target instance.
  7738. LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
  7739. // The status an EC2/On-premises deployment's target instance.
  7740. Status *string `locationName:"status" type:"string" enum:"TargetStatus"`
  7741. // The ARN of the target.
  7742. TargetArn *string `locationName:"targetArn" type:"string"`
  7743. // The unique ID of a deployment target that has a type of instanceTarget.
  7744. TargetId *string `locationName:"targetId" type:"string"`
  7745. }
  7746. // String returns the string representation
  7747. func (s InstanceTarget) String() string {
  7748. return awsutil.Prettify(s)
  7749. }
  7750. // GoString returns the string representation
  7751. func (s InstanceTarget) GoString() string {
  7752. return s.String()
  7753. }
  7754. // SetDeploymentId sets the DeploymentId field's value.
  7755. func (s *InstanceTarget) SetDeploymentId(v string) *InstanceTarget {
  7756. s.DeploymentId = &v
  7757. return s
  7758. }
  7759. // SetInstanceLabel sets the InstanceLabel field's value.
  7760. func (s *InstanceTarget) SetInstanceLabel(v string) *InstanceTarget {
  7761. s.InstanceLabel = &v
  7762. return s
  7763. }
  7764. // SetLastUpdatedAt sets the LastUpdatedAt field's value.
  7765. func (s *InstanceTarget) SetLastUpdatedAt(v time.Time) *InstanceTarget {
  7766. s.LastUpdatedAt = &v
  7767. return s
  7768. }
  7769. // SetLifecycleEvents sets the LifecycleEvents field's value.
  7770. func (s *InstanceTarget) SetLifecycleEvents(v []*LifecycleEvent) *InstanceTarget {
  7771. s.LifecycleEvents = v
  7772. return s
  7773. }
  7774. // SetStatus sets the Status field's value.
  7775. func (s *InstanceTarget) SetStatus(v string) *InstanceTarget {
  7776. s.Status = &v
  7777. return s
  7778. }
  7779. // SetTargetArn sets the TargetArn field's value.
  7780. func (s *InstanceTarget) SetTargetArn(v string) *InstanceTarget {
  7781. s.TargetArn = &v
  7782. return s
  7783. }
  7784. // SetTargetId sets the TargetId field's value.
  7785. func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget {
  7786. s.TargetId = &v
  7787. return s
  7788. }
  7789. // Information about the target AWS Lambda function during an AWS Lambda deployment.
  7790. type LambdaTarget struct {
  7791. _ struct{} `type:"structure"`
  7792. // The unique ID of a deployment.
  7793. DeploymentId *string `locationName:"deploymentId" type:"string"`
  7794. // The date and time when the target Lambda function was updated by a deployment.
  7795. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
  7796. // The lifecycle events of the deployment to this target Lambda function.
  7797. LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
  7798. // The status an AWS Lambda deployment's target Lambda function.
  7799. Status *string `locationName:"status" type:"string" enum:"TargetStatus"`
  7800. // The ARN of the target.
  7801. TargetArn *string `locationName:"targetArn" type:"string"`
  7802. // The unique ID of a deployment target that has a type of lambdaTarget.
  7803. TargetId *string `locationName:"targetId" type:"string"`
  7804. }
  7805. // String returns the string representation
  7806. func (s LambdaTarget) String() string {
  7807. return awsutil.Prettify(s)
  7808. }
  7809. // GoString returns the string representation
  7810. func (s LambdaTarget) GoString() string {
  7811. return s.String()
  7812. }
  7813. // SetDeploymentId sets the DeploymentId field's value.
  7814. func (s *LambdaTarget) SetDeploymentId(v string) *LambdaTarget {
  7815. s.DeploymentId = &v
  7816. return s
  7817. }
  7818. // SetLastUpdatedAt sets the LastUpdatedAt field's value.
  7819. func (s *LambdaTarget) SetLastUpdatedAt(v time.Time) *LambdaTarget {
  7820. s.LastUpdatedAt = &v
  7821. return s
  7822. }
  7823. // SetLifecycleEvents sets the LifecycleEvents field's value.
  7824. func (s *LambdaTarget) SetLifecycleEvents(v []*LifecycleEvent) *LambdaTarget {
  7825. s.LifecycleEvents = v
  7826. return s
  7827. }
  7828. // SetStatus sets the Status field's value.
  7829. func (s *LambdaTarget) SetStatus(v string) *LambdaTarget {
  7830. s.Status = &v
  7831. return s
  7832. }
  7833. // SetTargetArn sets the TargetArn field's value.
  7834. func (s *LambdaTarget) SetTargetArn(v string) *LambdaTarget {
  7835. s.TargetArn = &v
  7836. return s
  7837. }
  7838. // SetTargetId sets the TargetId field's value.
  7839. func (s *LambdaTarget) SetTargetId(v string) *LambdaTarget {
  7840. s.TargetId = &v
  7841. return s
  7842. }
  7843. // Information about the most recent attempted or successful deployment to a
  7844. // deployment group.
  7845. type LastDeploymentInfo struct {
  7846. _ struct{} `type:"structure"`
  7847. // A timestamp that indicates when the most recent deployment to the deployment
  7848. // group started.
  7849. CreateTime *time.Time `locationName:"createTime" type:"timestamp"`
  7850. // The unique ID of a deployment.
  7851. DeploymentId *string `locationName:"deploymentId" type:"string"`
  7852. // A timestamp that indicates when the most recent deployment to the deployment
  7853. // group was complete.
  7854. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  7855. // The status of the most recent deployment.
  7856. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"`
  7857. }
  7858. // String returns the string representation
  7859. func (s LastDeploymentInfo) String() string {
  7860. return awsutil.Prettify(s)
  7861. }
  7862. // GoString returns the string representation
  7863. func (s LastDeploymentInfo) GoString() string {
  7864. return s.String()
  7865. }
  7866. // SetCreateTime sets the CreateTime field's value.
  7867. func (s *LastDeploymentInfo) SetCreateTime(v time.Time) *LastDeploymentInfo {
  7868. s.CreateTime = &v
  7869. return s
  7870. }
  7871. // SetDeploymentId sets the DeploymentId field's value.
  7872. func (s *LastDeploymentInfo) SetDeploymentId(v string) *LastDeploymentInfo {
  7873. s.DeploymentId = &v
  7874. return s
  7875. }
  7876. // SetEndTime sets the EndTime field's value.
  7877. func (s *LastDeploymentInfo) SetEndTime(v time.Time) *LastDeploymentInfo {
  7878. s.EndTime = &v
  7879. return s
  7880. }
  7881. // SetStatus sets the Status field's value.
  7882. func (s *LastDeploymentInfo) SetStatus(v string) *LastDeploymentInfo {
  7883. s.Status = &v
  7884. return s
  7885. }
  7886. // Information about a deployment lifecycle event.
  7887. type LifecycleEvent struct {
  7888. _ struct{} `type:"structure"`
  7889. // Diagnostic information about the deployment lifecycle event.
  7890. Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"`
  7891. // A timestamp that indicates when the deployment lifecycle event ended.
  7892. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  7893. // The deployment lifecycle event name, such as ApplicationStop, BeforeInstall,
  7894. // AfterInstall, ApplicationStart, or ValidateService.
  7895. LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"`
  7896. // A timestamp that indicates when the deployment lifecycle event started.
  7897. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  7898. // The deployment lifecycle event status:
  7899. //
  7900. // * Pending: The deployment lifecycle event is pending.
  7901. //
  7902. // * InProgress: The deployment lifecycle event is in progress.
  7903. //
  7904. // * Succeeded: The deployment lifecycle event ran successfully.
  7905. //
  7906. // * Failed: The deployment lifecycle event has failed.
  7907. //
  7908. // * Skipped: The deployment lifecycle event has been skipped.
  7909. //
  7910. // * Unknown: The deployment lifecycle event is unknown.
  7911. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"`
  7912. }
  7913. // String returns the string representation
  7914. func (s LifecycleEvent) String() string {
  7915. return awsutil.Prettify(s)
  7916. }
  7917. // GoString returns the string representation
  7918. func (s LifecycleEvent) GoString() string {
  7919. return s.String()
  7920. }
  7921. // SetDiagnostics sets the Diagnostics field's value.
  7922. func (s *LifecycleEvent) SetDiagnostics(v *Diagnostics) *LifecycleEvent {
  7923. s.Diagnostics = v
  7924. return s
  7925. }
  7926. // SetEndTime sets the EndTime field's value.
  7927. func (s *LifecycleEvent) SetEndTime(v time.Time) *LifecycleEvent {
  7928. s.EndTime = &v
  7929. return s
  7930. }
  7931. // SetLifecycleEventName sets the LifecycleEventName field's value.
  7932. func (s *LifecycleEvent) SetLifecycleEventName(v string) *LifecycleEvent {
  7933. s.LifecycleEventName = &v
  7934. return s
  7935. }
  7936. // SetStartTime sets the StartTime field's value.
  7937. func (s *LifecycleEvent) SetStartTime(v time.Time) *LifecycleEvent {
  7938. s.StartTime = &v
  7939. return s
  7940. }
  7941. // SetStatus sets the Status field's value.
  7942. func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent {
  7943. s.Status = &v
  7944. return s
  7945. }
  7946. // Represents the input of a ListApplicationRevisions operation.
  7947. type ListApplicationRevisionsInput struct {
  7948. _ struct{} `type:"structure"`
  7949. // The name of an AWS CodeDeploy application associated with the IAM user or
  7950. // AWS account.
  7951. //
  7952. // ApplicationName is a required field
  7953. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  7954. // Whether to list revisions based on whether the revision is the target revision
  7955. // of an deployment group:
  7956. //
  7957. // * include: List revisions that are target revisions of a deployment group.
  7958. //
  7959. // * exclude: Do not list revisions that are target revisions of a deployment
  7960. // group.
  7961. //
  7962. // * ignore: List all revisions.
  7963. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"`
  7964. // An identifier returned from the previous ListApplicationRevisions call. It
  7965. // can be used to return the next set of applications in the list.
  7966. NextToken *string `locationName:"nextToken" type:"string"`
  7967. // An Amazon S3 bucket name to limit the search for revisions.
  7968. //
  7969. // If set to null, all of the user's buckets are searched.
  7970. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  7971. // A key prefix for the set of Amazon S3 objects to limit the search for revisions.
  7972. S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`
  7973. // The column name to use to sort the list results:
  7974. //
  7975. // * registerTime: Sort by the time the revisions were registered with AWS
  7976. // CodeDeploy.
  7977. //
  7978. // * firstUsedTime: Sort by the time the revisions were first used in a deployment.
  7979. //
  7980. // * lastUsedTime: Sort by the time the revisions were last used in a deployment.
  7981. //
  7982. // If not specified or set to null, the results are returned in an arbitrary
  7983. // order.
  7984. SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"`
  7985. // The order in which to sort the list results:
  7986. //
  7987. // * ascending: ascending order.
  7988. //
  7989. // * descending: descending order.
  7990. //
  7991. // If not specified, the results are sorted in ascending order.
  7992. //
  7993. // If set to null, the results are sorted in an arbitrary order.
  7994. SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"`
  7995. }
  7996. // String returns the string representation
  7997. func (s ListApplicationRevisionsInput) String() string {
  7998. return awsutil.Prettify(s)
  7999. }
  8000. // GoString returns the string representation
  8001. func (s ListApplicationRevisionsInput) GoString() string {
  8002. return s.String()
  8003. }
  8004. // Validate inspects the fields of the type to determine if they are valid.
  8005. func (s *ListApplicationRevisionsInput) Validate() error {
  8006. invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"}
  8007. if s.ApplicationName == nil {
  8008. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  8009. }
  8010. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  8011. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  8012. }
  8013. if invalidParams.Len() > 0 {
  8014. return invalidParams
  8015. }
  8016. return nil
  8017. }
  8018. // SetApplicationName sets the ApplicationName field's value.
  8019. func (s *ListApplicationRevisionsInput) SetApplicationName(v string) *ListApplicationRevisionsInput {
  8020. s.ApplicationName = &v
  8021. return s
  8022. }
  8023. // SetDeployed sets the Deployed field's value.
  8024. func (s *ListApplicationRevisionsInput) SetDeployed(v string) *ListApplicationRevisionsInput {
  8025. s.Deployed = &v
  8026. return s
  8027. }
  8028. // SetNextToken sets the NextToken field's value.
  8029. func (s *ListApplicationRevisionsInput) SetNextToken(v string) *ListApplicationRevisionsInput {
  8030. s.NextToken = &v
  8031. return s
  8032. }
  8033. // SetS3Bucket sets the S3Bucket field's value.
  8034. func (s *ListApplicationRevisionsInput) SetS3Bucket(v string) *ListApplicationRevisionsInput {
  8035. s.S3Bucket = &v
  8036. return s
  8037. }
  8038. // SetS3KeyPrefix sets the S3KeyPrefix field's value.
  8039. func (s *ListApplicationRevisionsInput) SetS3KeyPrefix(v string) *ListApplicationRevisionsInput {
  8040. s.S3KeyPrefix = &v
  8041. return s
  8042. }
  8043. // SetSortBy sets the SortBy field's value.
  8044. func (s *ListApplicationRevisionsInput) SetSortBy(v string) *ListApplicationRevisionsInput {
  8045. s.SortBy = &v
  8046. return s
  8047. }
  8048. // SetSortOrder sets the SortOrder field's value.
  8049. func (s *ListApplicationRevisionsInput) SetSortOrder(v string) *ListApplicationRevisionsInput {
  8050. s.SortOrder = &v
  8051. return s
  8052. }
  8053. // Represents the output of a ListApplicationRevisions operation.
  8054. type ListApplicationRevisionsOutput struct {
  8055. _ struct{} `type:"structure"`
  8056. // If a large amount of information is returned, an identifier is also returned.
  8057. // It can be used in a subsequent list application revisions call to return
  8058. // the next set of application revisions in the list.
  8059. NextToken *string `locationName:"nextToken" type:"string"`
  8060. // A list of locations that contain the matching revisions.
  8061. Revisions []*RevisionLocation `locationName:"revisions" type:"list"`
  8062. }
  8063. // String returns the string representation
  8064. func (s ListApplicationRevisionsOutput) String() string {
  8065. return awsutil.Prettify(s)
  8066. }
  8067. // GoString returns the string representation
  8068. func (s ListApplicationRevisionsOutput) GoString() string {
  8069. return s.String()
  8070. }
  8071. // SetNextToken sets the NextToken field's value.
  8072. func (s *ListApplicationRevisionsOutput) SetNextToken(v string) *ListApplicationRevisionsOutput {
  8073. s.NextToken = &v
  8074. return s
  8075. }
  8076. // SetRevisions sets the Revisions field's value.
  8077. func (s *ListApplicationRevisionsOutput) SetRevisions(v []*RevisionLocation) *ListApplicationRevisionsOutput {
  8078. s.Revisions = v
  8079. return s
  8080. }
  8081. // Represents the input of a ListApplications operation.
  8082. type ListApplicationsInput struct {
  8083. _ struct{} `type:"structure"`
  8084. // An identifier returned from the previous list applications call. It can be
  8085. // used to return the next set of applications in the list.
  8086. NextToken *string `locationName:"nextToken" type:"string"`
  8087. }
  8088. // String returns the string representation
  8089. func (s ListApplicationsInput) String() string {
  8090. return awsutil.Prettify(s)
  8091. }
  8092. // GoString returns the string representation
  8093. func (s ListApplicationsInput) GoString() string {
  8094. return s.String()
  8095. }
  8096. // SetNextToken sets the NextToken field's value.
  8097. func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput {
  8098. s.NextToken = &v
  8099. return s
  8100. }
  8101. // Represents the output of a ListApplications operation.
  8102. type ListApplicationsOutput struct {
  8103. _ struct{} `type:"structure"`
  8104. // A list of application names.
  8105. Applications []*string `locationName:"applications" type:"list"`
  8106. // If a large amount of information is returned, an identifier is also returned.
  8107. // It can be used in a subsequent list applications call to return the next
  8108. // set of applications in the list.
  8109. NextToken *string `locationName:"nextToken" type:"string"`
  8110. }
  8111. // String returns the string representation
  8112. func (s ListApplicationsOutput) String() string {
  8113. return awsutil.Prettify(s)
  8114. }
  8115. // GoString returns the string representation
  8116. func (s ListApplicationsOutput) GoString() string {
  8117. return s.String()
  8118. }
  8119. // SetApplications sets the Applications field's value.
  8120. func (s *ListApplicationsOutput) SetApplications(v []*string) *ListApplicationsOutput {
  8121. s.Applications = v
  8122. return s
  8123. }
  8124. // SetNextToken sets the NextToken field's value.
  8125. func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput {
  8126. s.NextToken = &v
  8127. return s
  8128. }
  8129. // Represents the input of a ListDeploymentConfigs operation.
  8130. type ListDeploymentConfigsInput struct {
  8131. _ struct{} `type:"structure"`
  8132. // An identifier returned from the previous ListDeploymentConfigs call. It can
  8133. // be used to return the next set of deployment configurations in the list.
  8134. NextToken *string `locationName:"nextToken" type:"string"`
  8135. }
  8136. // String returns the string representation
  8137. func (s ListDeploymentConfigsInput) String() string {
  8138. return awsutil.Prettify(s)
  8139. }
  8140. // GoString returns the string representation
  8141. func (s ListDeploymentConfigsInput) GoString() string {
  8142. return s.String()
  8143. }
  8144. // SetNextToken sets the NextToken field's value.
  8145. func (s *ListDeploymentConfigsInput) SetNextToken(v string) *ListDeploymentConfigsInput {
  8146. s.NextToken = &v
  8147. return s
  8148. }
  8149. // Represents the output of a ListDeploymentConfigs operation.
  8150. type ListDeploymentConfigsOutput struct {
  8151. _ struct{} `type:"structure"`
  8152. // A list of deployment configurations, including built-in configurations such
  8153. // as CodeDeployDefault.OneAtATime.
  8154. DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"`
  8155. // If a large amount of information is returned, an identifier is also returned.
  8156. // It can be used in a subsequent list deployment configurations call to return
  8157. // the next set of deployment configurations in the list.
  8158. NextToken *string `locationName:"nextToken" type:"string"`
  8159. }
  8160. // String returns the string representation
  8161. func (s ListDeploymentConfigsOutput) String() string {
  8162. return awsutil.Prettify(s)
  8163. }
  8164. // GoString returns the string representation
  8165. func (s ListDeploymentConfigsOutput) GoString() string {
  8166. return s.String()
  8167. }
  8168. // SetDeploymentConfigsList sets the DeploymentConfigsList field's value.
  8169. func (s *ListDeploymentConfigsOutput) SetDeploymentConfigsList(v []*string) *ListDeploymentConfigsOutput {
  8170. s.DeploymentConfigsList = v
  8171. return s
  8172. }
  8173. // SetNextToken sets the NextToken field's value.
  8174. func (s *ListDeploymentConfigsOutput) SetNextToken(v string) *ListDeploymentConfigsOutput {
  8175. s.NextToken = &v
  8176. return s
  8177. }
  8178. // Represents the input of a ListDeploymentGroups operation.
  8179. type ListDeploymentGroupsInput struct {
  8180. _ struct{} `type:"structure"`
  8181. // The name of an AWS CodeDeploy application associated with the IAM user or
  8182. // AWS account.
  8183. //
  8184. // ApplicationName is a required field
  8185. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  8186. // An identifier returned from the previous list deployment groups call. It
  8187. // can be used to return the next set of deployment groups in the list.
  8188. NextToken *string `locationName:"nextToken" type:"string"`
  8189. }
  8190. // String returns the string representation
  8191. func (s ListDeploymentGroupsInput) String() string {
  8192. return awsutil.Prettify(s)
  8193. }
  8194. // GoString returns the string representation
  8195. func (s ListDeploymentGroupsInput) GoString() string {
  8196. return s.String()
  8197. }
  8198. // Validate inspects the fields of the type to determine if they are valid.
  8199. func (s *ListDeploymentGroupsInput) Validate() error {
  8200. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"}
  8201. if s.ApplicationName == nil {
  8202. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  8203. }
  8204. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  8205. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  8206. }
  8207. if invalidParams.Len() > 0 {
  8208. return invalidParams
  8209. }
  8210. return nil
  8211. }
  8212. // SetApplicationName sets the ApplicationName field's value.
  8213. func (s *ListDeploymentGroupsInput) SetApplicationName(v string) *ListDeploymentGroupsInput {
  8214. s.ApplicationName = &v
  8215. return s
  8216. }
  8217. // SetNextToken sets the NextToken field's value.
  8218. func (s *ListDeploymentGroupsInput) SetNextToken(v string) *ListDeploymentGroupsInput {
  8219. s.NextToken = &v
  8220. return s
  8221. }
  8222. // Represents the output of a ListDeploymentGroups operation.
  8223. type ListDeploymentGroupsOutput struct {
  8224. _ struct{} `type:"structure"`
  8225. // The application name.
  8226. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  8227. // A list of deployment group names.
  8228. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
  8229. // If a large amount of information is returned, an identifier is also returned.
  8230. // It can be used in a subsequent list deployment groups call to return the
  8231. // next set of deployment groups in the list.
  8232. NextToken *string `locationName:"nextToken" type:"string"`
  8233. }
  8234. // String returns the string representation
  8235. func (s ListDeploymentGroupsOutput) String() string {
  8236. return awsutil.Prettify(s)
  8237. }
  8238. // GoString returns the string representation
  8239. func (s ListDeploymentGroupsOutput) GoString() string {
  8240. return s.String()
  8241. }
  8242. // SetApplicationName sets the ApplicationName field's value.
  8243. func (s *ListDeploymentGroupsOutput) SetApplicationName(v string) *ListDeploymentGroupsOutput {
  8244. s.ApplicationName = &v
  8245. return s
  8246. }
  8247. // SetDeploymentGroups sets the DeploymentGroups field's value.
  8248. func (s *ListDeploymentGroupsOutput) SetDeploymentGroups(v []*string) *ListDeploymentGroupsOutput {
  8249. s.DeploymentGroups = v
  8250. return s
  8251. }
  8252. // SetNextToken sets the NextToken field's value.
  8253. func (s *ListDeploymentGroupsOutput) SetNextToken(v string) *ListDeploymentGroupsOutput {
  8254. s.NextToken = &v
  8255. return s
  8256. }
  8257. // Represents the input of a ListDeploymentInstances operation.
  8258. type ListDeploymentInstancesInput struct {
  8259. _ struct{} `type:"structure"`
  8260. // The unique ID of a deployment.
  8261. //
  8262. // DeploymentId is a required field
  8263. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  8264. // A subset of instances to list by status:
  8265. //
  8266. // * Pending: Include those instances with pending deployments.
  8267. //
  8268. // * InProgress: Include those instances where deployments are still in progress.
  8269. //
  8270. // * Succeeded: Include those instances with successful deployments.
  8271. //
  8272. // * Failed: Include those instances with failed deployments.
  8273. //
  8274. // * Skipped: Include those instances with skipped deployments.
  8275. //
  8276. // * Unknown: Include those instances with deployments in an unknown state.
  8277. InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"`
  8278. // The set of instances in a blue/green deployment, either those in the original
  8279. // environment ("BLUE") or those in the replacement environment ("GREEN"), for
  8280. // which you want to view instance information.
  8281. InstanceTypeFilter []*string `locationName:"instanceTypeFilter" type:"list"`
  8282. // An identifier returned from the previous list deployment instances call.
  8283. // It can be used to return the next set of deployment instances in the list.
  8284. NextToken *string `locationName:"nextToken" type:"string"`
  8285. }
  8286. // String returns the string representation
  8287. func (s ListDeploymentInstancesInput) String() string {
  8288. return awsutil.Prettify(s)
  8289. }
  8290. // GoString returns the string representation
  8291. func (s ListDeploymentInstancesInput) GoString() string {
  8292. return s.String()
  8293. }
  8294. // Validate inspects the fields of the type to determine if they are valid.
  8295. func (s *ListDeploymentInstancesInput) Validate() error {
  8296. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"}
  8297. if s.DeploymentId == nil {
  8298. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  8299. }
  8300. if invalidParams.Len() > 0 {
  8301. return invalidParams
  8302. }
  8303. return nil
  8304. }
  8305. // SetDeploymentId sets the DeploymentId field's value.
  8306. func (s *ListDeploymentInstancesInput) SetDeploymentId(v string) *ListDeploymentInstancesInput {
  8307. s.DeploymentId = &v
  8308. return s
  8309. }
  8310. // SetInstanceStatusFilter sets the InstanceStatusFilter field's value.
  8311. func (s *ListDeploymentInstancesInput) SetInstanceStatusFilter(v []*string) *ListDeploymentInstancesInput {
  8312. s.InstanceStatusFilter = v
  8313. return s
  8314. }
  8315. // SetInstanceTypeFilter sets the InstanceTypeFilter field's value.
  8316. func (s *ListDeploymentInstancesInput) SetInstanceTypeFilter(v []*string) *ListDeploymentInstancesInput {
  8317. s.InstanceTypeFilter = v
  8318. return s
  8319. }
  8320. // SetNextToken sets the NextToken field's value.
  8321. func (s *ListDeploymentInstancesInput) SetNextToken(v string) *ListDeploymentInstancesInput {
  8322. s.NextToken = &v
  8323. return s
  8324. }
  8325. // Represents the output of a ListDeploymentInstances operation.
  8326. type ListDeploymentInstancesOutput struct {
  8327. _ struct{} `type:"structure"`
  8328. // A list of instance IDs.
  8329. InstancesList []*string `locationName:"instancesList" type:"list"`
  8330. // If a large amount of information is returned, an identifier is also returned.
  8331. // It can be used in a subsequent list deployment instances call to return the
  8332. // next set of deployment instances in the list.
  8333. NextToken *string `locationName:"nextToken" type:"string"`
  8334. }
  8335. // String returns the string representation
  8336. func (s ListDeploymentInstancesOutput) String() string {
  8337. return awsutil.Prettify(s)
  8338. }
  8339. // GoString returns the string representation
  8340. func (s ListDeploymentInstancesOutput) GoString() string {
  8341. return s.String()
  8342. }
  8343. // SetInstancesList sets the InstancesList field's value.
  8344. func (s *ListDeploymentInstancesOutput) SetInstancesList(v []*string) *ListDeploymentInstancesOutput {
  8345. s.InstancesList = v
  8346. return s
  8347. }
  8348. // SetNextToken sets the NextToken field's value.
  8349. func (s *ListDeploymentInstancesOutput) SetNextToken(v string) *ListDeploymentInstancesOutput {
  8350. s.NextToken = &v
  8351. return s
  8352. }
  8353. type ListDeploymentTargetsInput struct {
  8354. _ struct{} `type:"structure"`
  8355. // The unique ID of a deployment.
  8356. DeploymentId *string `locationName:"deploymentId" type:"string"`
  8357. // A token identifier returned from the previous ListDeploymentTargets call.
  8358. // It can be used to return the next set of deployment targets in the list.
  8359. NextToken *string `locationName:"nextToken" type:"string"`
  8360. // A key used to filter the returned targets.
  8361. TargetFilters map[string][]*string `locationName:"targetFilters" type:"map"`
  8362. }
  8363. // String returns the string representation
  8364. func (s ListDeploymentTargetsInput) String() string {
  8365. return awsutil.Prettify(s)
  8366. }
  8367. // GoString returns the string representation
  8368. func (s ListDeploymentTargetsInput) GoString() string {
  8369. return s.String()
  8370. }
  8371. // SetDeploymentId sets the DeploymentId field's value.
  8372. func (s *ListDeploymentTargetsInput) SetDeploymentId(v string) *ListDeploymentTargetsInput {
  8373. s.DeploymentId = &v
  8374. return s
  8375. }
  8376. // SetNextToken sets the NextToken field's value.
  8377. func (s *ListDeploymentTargetsInput) SetNextToken(v string) *ListDeploymentTargetsInput {
  8378. s.NextToken = &v
  8379. return s
  8380. }
  8381. // SetTargetFilters sets the TargetFilters field's value.
  8382. func (s *ListDeploymentTargetsInput) SetTargetFilters(v map[string][]*string) *ListDeploymentTargetsInput {
  8383. s.TargetFilters = v
  8384. return s
  8385. }
  8386. type ListDeploymentTargetsOutput struct {
  8387. _ struct{} `type:"structure"`
  8388. // If a large amount of information is returned, a token identifier is also
  8389. // returned. It can be used in a subsequent ListDeploymentTargets call to return
  8390. // the next set of deployment targets in the list.
  8391. NextToken *string `locationName:"nextToken" type:"string"`
  8392. // The unique IDs of deployment targets.
  8393. TargetIds []*string `locationName:"targetIds" type:"list"`
  8394. }
  8395. // String returns the string representation
  8396. func (s ListDeploymentTargetsOutput) String() string {
  8397. return awsutil.Prettify(s)
  8398. }
  8399. // GoString returns the string representation
  8400. func (s ListDeploymentTargetsOutput) GoString() string {
  8401. return s.String()
  8402. }
  8403. // SetNextToken sets the NextToken field's value.
  8404. func (s *ListDeploymentTargetsOutput) SetNextToken(v string) *ListDeploymentTargetsOutput {
  8405. s.NextToken = &v
  8406. return s
  8407. }
  8408. // SetTargetIds sets the TargetIds field's value.
  8409. func (s *ListDeploymentTargetsOutput) SetTargetIds(v []*string) *ListDeploymentTargetsOutput {
  8410. s.TargetIds = v
  8411. return s
  8412. }
  8413. // Represents the input of a ListDeployments operation.
  8414. type ListDeploymentsInput struct {
  8415. _ struct{} `type:"structure"`
  8416. // The name of an AWS CodeDeploy application associated with the IAM user or
  8417. // AWS account.
  8418. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  8419. // A time range (start and end) for returning a subset of the list of deployments.
  8420. CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"`
  8421. // The name of a deployment group for the specified application.
  8422. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  8423. // A subset of deployments to list by status:
  8424. //
  8425. // * Created: Include created deployments in the resulting list.
  8426. //
  8427. // * Queued: Include queued deployments in the resulting list.
  8428. //
  8429. // * In Progress: Include in-progress deployments in the resulting list.
  8430. //
  8431. // * Succeeded: Include successful deployments in the resulting list.
  8432. //
  8433. // * Failed: Include failed deployments in the resulting list.
  8434. //
  8435. // * Stopped: Include stopped deployments in the resulting list.
  8436. IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"`
  8437. // An identifier returned from the previous list deployments call. It can be
  8438. // used to return the next set of deployments in the list.
  8439. NextToken *string `locationName:"nextToken" type:"string"`
  8440. }
  8441. // String returns the string representation
  8442. func (s ListDeploymentsInput) String() string {
  8443. return awsutil.Prettify(s)
  8444. }
  8445. // GoString returns the string representation
  8446. func (s ListDeploymentsInput) GoString() string {
  8447. return s.String()
  8448. }
  8449. // Validate inspects the fields of the type to determine if they are valid.
  8450. func (s *ListDeploymentsInput) Validate() error {
  8451. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"}
  8452. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  8453. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  8454. }
  8455. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  8456. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  8457. }
  8458. if invalidParams.Len() > 0 {
  8459. return invalidParams
  8460. }
  8461. return nil
  8462. }
  8463. // SetApplicationName sets the ApplicationName field's value.
  8464. func (s *ListDeploymentsInput) SetApplicationName(v string) *ListDeploymentsInput {
  8465. s.ApplicationName = &v
  8466. return s
  8467. }
  8468. // SetCreateTimeRange sets the CreateTimeRange field's value.
  8469. func (s *ListDeploymentsInput) SetCreateTimeRange(v *TimeRange) *ListDeploymentsInput {
  8470. s.CreateTimeRange = v
  8471. return s
  8472. }
  8473. // SetDeploymentGroupName sets the DeploymentGroupName field's value.
  8474. func (s *ListDeploymentsInput) SetDeploymentGroupName(v string) *ListDeploymentsInput {
  8475. s.DeploymentGroupName = &v
  8476. return s
  8477. }
  8478. // SetIncludeOnlyStatuses sets the IncludeOnlyStatuses field's value.
  8479. func (s *ListDeploymentsInput) SetIncludeOnlyStatuses(v []*string) *ListDeploymentsInput {
  8480. s.IncludeOnlyStatuses = v
  8481. return s
  8482. }
  8483. // SetNextToken sets the NextToken field's value.
  8484. func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput {
  8485. s.NextToken = &v
  8486. return s
  8487. }
  8488. // Represents the output of a ListDeployments operation.
  8489. type ListDeploymentsOutput struct {
  8490. _ struct{} `type:"structure"`
  8491. // A list of deployment IDs.
  8492. Deployments []*string `locationName:"deployments" type:"list"`
  8493. // If a large amount of information is returned, an identifier is also returned.
  8494. // It can be used in a subsequent list deployments call to return the next set
  8495. // of deployments in the list.
  8496. NextToken *string `locationName:"nextToken" type:"string"`
  8497. }
  8498. // String returns the string representation
  8499. func (s ListDeploymentsOutput) String() string {
  8500. return awsutil.Prettify(s)
  8501. }
  8502. // GoString returns the string representation
  8503. func (s ListDeploymentsOutput) GoString() string {
  8504. return s.String()
  8505. }
  8506. // SetDeployments sets the Deployments field's value.
  8507. func (s *ListDeploymentsOutput) SetDeployments(v []*string) *ListDeploymentsOutput {
  8508. s.Deployments = v
  8509. return s
  8510. }
  8511. // SetNextToken sets the NextToken field's value.
  8512. func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput {
  8513. s.NextToken = &v
  8514. return s
  8515. }
  8516. // Represents the input of a ListGitHubAccountTokenNames operation.
  8517. type ListGitHubAccountTokenNamesInput struct {
  8518. _ struct{} `type:"structure"`
  8519. // An identifier returned from the previous ListGitHubAccountTokenNames call.
  8520. // It can be used to return the next set of names in the list.
  8521. NextToken *string `locationName:"nextToken" type:"string"`
  8522. }
  8523. // String returns the string representation
  8524. func (s ListGitHubAccountTokenNamesInput) String() string {
  8525. return awsutil.Prettify(s)
  8526. }
  8527. // GoString returns the string representation
  8528. func (s ListGitHubAccountTokenNamesInput) GoString() string {
  8529. return s.String()
  8530. }
  8531. // SetNextToken sets the NextToken field's value.
  8532. func (s *ListGitHubAccountTokenNamesInput) SetNextToken(v string) *ListGitHubAccountTokenNamesInput {
  8533. s.NextToken = &v
  8534. return s
  8535. }
  8536. // Represents the output of a ListGitHubAccountTokenNames operation.
  8537. type ListGitHubAccountTokenNamesOutput struct {
  8538. _ struct{} `type:"structure"`
  8539. // If a large amount of information is returned, an identifier is also returned.
  8540. // It can be used in a subsequent ListGitHubAccountTokenNames call to return
  8541. // the next set of names in the list.
  8542. NextToken *string `locationName:"nextToken" type:"string"`
  8543. // A list of names of connections to GitHub accounts.
  8544. TokenNameList []*string `locationName:"tokenNameList" type:"list"`
  8545. }
  8546. // String returns the string representation
  8547. func (s ListGitHubAccountTokenNamesOutput) String() string {
  8548. return awsutil.Prettify(s)
  8549. }
  8550. // GoString returns the string representation
  8551. func (s ListGitHubAccountTokenNamesOutput) GoString() string {
  8552. return s.String()
  8553. }
  8554. // SetNextToken sets the NextToken field's value.
  8555. func (s *ListGitHubAccountTokenNamesOutput) SetNextToken(v string) *ListGitHubAccountTokenNamesOutput {
  8556. s.NextToken = &v
  8557. return s
  8558. }
  8559. // SetTokenNameList sets the TokenNameList field's value.
  8560. func (s *ListGitHubAccountTokenNamesOutput) SetTokenNameList(v []*string) *ListGitHubAccountTokenNamesOutput {
  8561. s.TokenNameList = v
  8562. return s
  8563. }
  8564. // Represents the input of a ListOnPremisesInstances operation.
  8565. type ListOnPremisesInstancesInput struct {
  8566. _ struct{} `type:"structure"`
  8567. // An identifier returned from the previous list on-premises instances call.
  8568. // It can be used to return the next set of on-premises instances in the list.
  8569. NextToken *string `locationName:"nextToken" type:"string"`
  8570. // The registration status of the on-premises instances:
  8571. //
  8572. // * Deregistered: Include deregistered on-premises instances in the resulting
  8573. // list.
  8574. //
  8575. // * Registered: Include registered on-premises instances in the resulting
  8576. // list.
  8577. RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"`
  8578. // The on-premises instance tags that are used to restrict the on-premises instance
  8579. // names returned.
  8580. TagFilters []*TagFilter `locationName:"tagFilters" type:"list"`
  8581. }
  8582. // String returns the string representation
  8583. func (s ListOnPremisesInstancesInput) String() string {
  8584. return awsutil.Prettify(s)
  8585. }
  8586. // GoString returns the string representation
  8587. func (s ListOnPremisesInstancesInput) GoString() string {
  8588. return s.String()
  8589. }
  8590. // SetNextToken sets the NextToken field's value.
  8591. func (s *ListOnPremisesInstancesInput) SetNextToken(v string) *ListOnPremisesInstancesInput {
  8592. s.NextToken = &v
  8593. return s
  8594. }
  8595. // SetRegistrationStatus sets the RegistrationStatus field's value.
  8596. func (s *ListOnPremisesInstancesInput) SetRegistrationStatus(v string) *ListOnPremisesInstancesInput {
  8597. s.RegistrationStatus = &v
  8598. return s
  8599. }
  8600. // SetTagFilters sets the TagFilters field's value.
  8601. func (s *ListOnPremisesInstancesInput) SetTagFilters(v []*TagFilter) *ListOnPremisesInstancesInput {
  8602. s.TagFilters = v
  8603. return s
  8604. }
  8605. // Represents the output of the list on-premises instances operation.
  8606. type ListOnPremisesInstancesOutput struct {
  8607. _ struct{} `type:"structure"`
  8608. // The list of matching on-premises instance names.
  8609. InstanceNames []*string `locationName:"instanceNames" type:"list"`
  8610. // If a large amount of information is returned, an identifier is also returned.
  8611. // It can be used in a subsequent list on-premises instances call to return
  8612. // the next set of on-premises instances in the list.
  8613. NextToken *string `locationName:"nextToken" type:"string"`
  8614. }
  8615. // String returns the string representation
  8616. func (s ListOnPremisesInstancesOutput) String() string {
  8617. return awsutil.Prettify(s)
  8618. }
  8619. // GoString returns the string representation
  8620. func (s ListOnPremisesInstancesOutput) GoString() string {
  8621. return s.String()
  8622. }
  8623. // SetInstanceNames sets the InstanceNames field's value.
  8624. func (s *ListOnPremisesInstancesOutput) SetInstanceNames(v []*string) *ListOnPremisesInstancesOutput {
  8625. s.InstanceNames = v
  8626. return s
  8627. }
  8628. // SetNextToken sets the NextToken field's value.
  8629. func (s *ListOnPremisesInstancesOutput) SetNextToken(v string) *ListOnPremisesInstancesOutput {
  8630. s.NextToken = &v
  8631. return s
  8632. }
  8633. // Information about the Elastic Load Balancing load balancer or target group
  8634. // used in a deployment.
  8635. type LoadBalancerInfo struct {
  8636. _ struct{} `type:"structure"`
  8637. // An array that contains information about the load balancer to use for load
  8638. // balancing in a deployment. In Elastic Load Balancing, load balancers are
  8639. // used with Classic Load Balancers.
  8640. //
  8641. // Adding more than one load balancer to the array is not supported.
  8642. ElbInfoList []*ELBInfo `locationName:"elbInfoList" type:"list"`
  8643. // An array that contains information about the target group to use for load
  8644. // balancing in a deployment. In Elastic Load Balancing, target groups are used
  8645. // with Application Load Balancers.
  8646. //
  8647. // Adding more than one target group to the array is not supported.
  8648. TargetGroupInfoList []*TargetGroupInfo `locationName:"targetGroupInfoList" type:"list"`
  8649. // The target group pair information. This is an array of TargeGroupPairInfo
  8650. // objects with a maximum size of one.
  8651. TargetGroupPairInfoList []*TargetGroupPairInfo `locationName:"targetGroupPairInfoList" type:"list"`
  8652. }
  8653. // String returns the string representation
  8654. func (s LoadBalancerInfo) String() string {
  8655. return awsutil.Prettify(s)
  8656. }
  8657. // GoString returns the string representation
  8658. func (s LoadBalancerInfo) GoString() string {
  8659. return s.String()
  8660. }
  8661. // SetElbInfoList sets the ElbInfoList field's value.
  8662. func (s *LoadBalancerInfo) SetElbInfoList(v []*ELBInfo) *LoadBalancerInfo {
  8663. s.ElbInfoList = v
  8664. return s
  8665. }
  8666. // SetTargetGroupInfoList sets the TargetGroupInfoList field's value.
  8667. func (s *LoadBalancerInfo) SetTargetGroupInfoList(v []*TargetGroupInfo) *LoadBalancerInfo {
  8668. s.TargetGroupInfoList = v
  8669. return s
  8670. }
  8671. // SetTargetGroupPairInfoList sets the TargetGroupPairInfoList field's value.
  8672. func (s *LoadBalancerInfo) SetTargetGroupPairInfoList(v []*TargetGroupPairInfo) *LoadBalancerInfo {
  8673. s.TargetGroupPairInfoList = v
  8674. return s
  8675. }
  8676. // Information about minimum healthy instance.
  8677. type MinimumHealthyHosts struct {
  8678. _ struct{} `type:"structure"`
  8679. // The minimum healthy instance type:
  8680. //
  8681. // * HOST_COUNT: The minimum number of healthy instance as an absolute value.
  8682. //
  8683. // * FLEET_PERCENT: The minimum number of healthy instance as a percentage
  8684. // of the total number of instance in the deployment.
  8685. //
  8686. // In an example of nine instance, if a HOST_COUNT of six is specified, deploy
  8687. // to up to three instances at a time. The deployment is successful if six or
  8688. // more instances are deployed to successfully. Otherwise, the deployment fails.
  8689. // If a FLEET_PERCENT of 40 is specified, deploy to up to five instance at a
  8690. // time. The deployment is successful if four or more instance are deployed
  8691. // to successfully. Otherwise, the deployment fails.
  8692. //
  8693. // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
  8694. // returns a minimum healthy instance type of MOST_CONCURRENCY and a value of
  8695. // 1. This means a deployment to only one instance at a time. (You cannot set
  8696. // the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition,
  8697. // with CodeDeployDefault.OneAtATime, AWS CodeDeploy attempts to ensure that
  8698. // all instances but one are kept in a healthy state during the deployment.
  8699. // Although this allows one instance at a time to be taken offline for a new
  8700. // deployment, it also means that if the deployment to the last instance fails,
  8701. // the overall deployment is still successful.
  8702. //
  8703. // For more information, see AWS CodeDeploy Instance Health (http://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html)
  8704. // in the AWS CodeDeploy User Guide.
  8705. Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"`
  8706. // The minimum healthy instance value.
  8707. Value *int64 `locationName:"value" type:"integer"`
  8708. }
  8709. // String returns the string representation
  8710. func (s MinimumHealthyHosts) String() string {
  8711. return awsutil.Prettify(s)
  8712. }
  8713. // GoString returns the string representation
  8714. func (s MinimumHealthyHosts) GoString() string {
  8715. return s.String()
  8716. }
  8717. // SetType sets the Type field's value.
  8718. func (s *MinimumHealthyHosts) SetType(v string) *MinimumHealthyHosts {
  8719. s.Type = &v
  8720. return s
  8721. }
  8722. // SetValue sets the Value field's value.
  8723. func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts {
  8724. s.Value = &v
  8725. return s
  8726. }
  8727. // Information about groups of on-premises instance tags.
  8728. type OnPremisesTagSet struct {
  8729. _ struct{} `type:"structure"`
  8730. // A list that contains other lists of on-premises instance tag groups. For
  8731. // an instance to be included in the deployment group, it must be identified
  8732. // by all of the tag groups in the list.
  8733. OnPremisesTagSetList [][]*TagFilter `locationName:"onPremisesTagSetList" type:"list"`
  8734. }
  8735. // String returns the string representation
  8736. func (s OnPremisesTagSet) String() string {
  8737. return awsutil.Prettify(s)
  8738. }
  8739. // GoString returns the string representation
  8740. func (s OnPremisesTagSet) GoString() string {
  8741. return s.String()
  8742. }
  8743. // SetOnPremisesTagSetList sets the OnPremisesTagSetList field's value.
  8744. func (s *OnPremisesTagSet) SetOnPremisesTagSetList(v [][]*TagFilter) *OnPremisesTagSet {
  8745. s.OnPremisesTagSetList = v
  8746. return s
  8747. }
  8748. type PutLifecycleEventHookExecutionStatusInput struct {
  8749. _ struct{} `type:"structure"`
  8750. // The unique ID of a deployment. Pass this ID to a Lambda function that validates
  8751. // a deployment lifecycle event.
  8752. DeploymentId *string `locationName:"deploymentId" type:"string"`
  8753. // The execution ID of a deployment's lifecycle hook. A deployment lifecycle
  8754. // hook is specified in the hooks section of the AppSpec file.
  8755. LifecycleEventHookExecutionId *string `locationName:"lifecycleEventHookExecutionId" type:"string"`
  8756. // The result of a Lambda function that validates a deployment lifecycle event
  8757. // (Succeeded or Failed).
  8758. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"`
  8759. }
  8760. // String returns the string representation
  8761. func (s PutLifecycleEventHookExecutionStatusInput) String() string {
  8762. return awsutil.Prettify(s)
  8763. }
  8764. // GoString returns the string representation
  8765. func (s PutLifecycleEventHookExecutionStatusInput) GoString() string {
  8766. return s.String()
  8767. }
  8768. // SetDeploymentId sets the DeploymentId field's value.
  8769. func (s *PutLifecycleEventHookExecutionStatusInput) SetDeploymentId(v string) *PutLifecycleEventHookExecutionStatusInput {
  8770. s.DeploymentId = &v
  8771. return s
  8772. }
  8773. // SetLifecycleEventHookExecutionId sets the LifecycleEventHookExecutionId field's value.
  8774. func (s *PutLifecycleEventHookExecutionStatusInput) SetLifecycleEventHookExecutionId(v string) *PutLifecycleEventHookExecutionStatusInput {
  8775. s.LifecycleEventHookExecutionId = &v
  8776. return s
  8777. }
  8778. // SetStatus sets the Status field's value.
  8779. func (s *PutLifecycleEventHookExecutionStatusInput) SetStatus(v string) *PutLifecycleEventHookExecutionStatusInput {
  8780. s.Status = &v
  8781. return s
  8782. }
  8783. type PutLifecycleEventHookExecutionStatusOutput struct {
  8784. _ struct{} `type:"structure"`
  8785. // The execution ID of the lifecycle event hook. A hook is specified in the
  8786. // hooks section of the deployment's AppSpec file.
  8787. LifecycleEventHookExecutionId *string `locationName:"lifecycleEventHookExecutionId" type:"string"`
  8788. }
  8789. // String returns the string representation
  8790. func (s PutLifecycleEventHookExecutionStatusOutput) String() string {
  8791. return awsutil.Prettify(s)
  8792. }
  8793. // GoString returns the string representation
  8794. func (s PutLifecycleEventHookExecutionStatusOutput) GoString() string {
  8795. return s.String()
  8796. }
  8797. // SetLifecycleEventHookExecutionId sets the LifecycleEventHookExecutionId field's value.
  8798. func (s *PutLifecycleEventHookExecutionStatusOutput) SetLifecycleEventHookExecutionId(v string) *PutLifecycleEventHookExecutionStatusOutput {
  8799. s.LifecycleEventHookExecutionId = &v
  8800. return s
  8801. }
  8802. // A revision for an AWS Lambda deployment that is a YAML-formatted or JSON-formatted
  8803. // string. For AWS Lambda deployments, the revision is the same as the AppSpec
  8804. // file.
  8805. //
  8806. // Deprecated: RawString and String revision type are deprecated, use AppSpecContent type instead.
  8807. type RawString struct {
  8808. _ struct{} `deprecated:"true" type:"structure"`
  8809. // The YAML-formatted or JSON-formatted revision string. It includes information
  8810. // about which Lambda function to update and optional Lambda functions that
  8811. // validate deployment lifecycle events.
  8812. Content *string `locationName:"content" type:"string"`
  8813. // The SHA256 hash value of the revision content.
  8814. Sha256 *string `locationName:"sha256" type:"string"`
  8815. }
  8816. // String returns the string representation
  8817. func (s RawString) String() string {
  8818. return awsutil.Prettify(s)
  8819. }
  8820. // GoString returns the string representation
  8821. func (s RawString) GoString() string {
  8822. return s.String()
  8823. }
  8824. // SetContent sets the Content field's value.
  8825. func (s *RawString) SetContent(v string) *RawString {
  8826. s.Content = &v
  8827. return s
  8828. }
  8829. // SetSha256 sets the Sha256 field's value.
  8830. func (s *RawString) SetSha256(v string) *RawString {
  8831. s.Sha256 = &v
  8832. return s
  8833. }
  8834. // Represents the input of a RegisterApplicationRevision operation.
  8835. type RegisterApplicationRevisionInput struct {
  8836. _ struct{} `type:"structure"`
  8837. // The name of an AWS CodeDeploy application associated with the IAM user or
  8838. // AWS account.
  8839. //
  8840. // ApplicationName is a required field
  8841. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  8842. // A comment about the revision.
  8843. Description *string `locationName:"description" type:"string"`
  8844. // Information about the application revision to register, including type and
  8845. // location.
  8846. //
  8847. // Revision is a required field
  8848. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
  8849. }
  8850. // String returns the string representation
  8851. func (s RegisterApplicationRevisionInput) String() string {
  8852. return awsutil.Prettify(s)
  8853. }
  8854. // GoString returns the string representation
  8855. func (s RegisterApplicationRevisionInput) GoString() string {
  8856. return s.String()
  8857. }
  8858. // Validate inspects the fields of the type to determine if they are valid.
  8859. func (s *RegisterApplicationRevisionInput) Validate() error {
  8860. invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"}
  8861. if s.ApplicationName == nil {
  8862. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  8863. }
  8864. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  8865. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  8866. }
  8867. if s.Revision == nil {
  8868. invalidParams.Add(request.NewErrParamRequired("Revision"))
  8869. }
  8870. if invalidParams.Len() > 0 {
  8871. return invalidParams
  8872. }
  8873. return nil
  8874. }
  8875. // SetApplicationName sets the ApplicationName field's value.
  8876. func (s *RegisterApplicationRevisionInput) SetApplicationName(v string) *RegisterApplicationRevisionInput {
  8877. s.ApplicationName = &v
  8878. return s
  8879. }
  8880. // SetDescription sets the Description field's value.
  8881. func (s *RegisterApplicationRevisionInput) SetDescription(v string) *RegisterApplicationRevisionInput {
  8882. s.Description = &v
  8883. return s
  8884. }
  8885. // SetRevision sets the Revision field's value.
  8886. func (s *RegisterApplicationRevisionInput) SetRevision(v *RevisionLocation) *RegisterApplicationRevisionInput {
  8887. s.Revision = v
  8888. return s
  8889. }
  8890. type RegisterApplicationRevisionOutput struct {
  8891. _ struct{} `type:"structure"`
  8892. }
  8893. // String returns the string representation
  8894. func (s RegisterApplicationRevisionOutput) String() string {
  8895. return awsutil.Prettify(s)
  8896. }
  8897. // GoString returns the string representation
  8898. func (s RegisterApplicationRevisionOutput) GoString() string {
  8899. return s.String()
  8900. }
  8901. // Represents the input of the register on-premises instance operation.
  8902. type RegisterOnPremisesInstanceInput struct {
  8903. _ struct{} `type:"structure"`
  8904. // The ARN of the IAM session to associate with the on-premises instance.
  8905. IamSessionArn *string `locationName:"iamSessionArn" type:"string"`
  8906. // The ARN of the IAM user to associate with the on-premises instance.
  8907. IamUserArn *string `locationName:"iamUserArn" type:"string"`
  8908. // The name of the on-premises instance to register.
  8909. //
  8910. // InstanceName is a required field
  8911. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  8912. }
  8913. // String returns the string representation
  8914. func (s RegisterOnPremisesInstanceInput) String() string {
  8915. return awsutil.Prettify(s)
  8916. }
  8917. // GoString returns the string representation
  8918. func (s RegisterOnPremisesInstanceInput) GoString() string {
  8919. return s.String()
  8920. }
  8921. // Validate inspects the fields of the type to determine if they are valid.
  8922. func (s *RegisterOnPremisesInstanceInput) Validate() error {
  8923. invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"}
  8924. if s.InstanceName == nil {
  8925. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  8926. }
  8927. if invalidParams.Len() > 0 {
  8928. return invalidParams
  8929. }
  8930. return nil
  8931. }
  8932. // SetIamSessionArn sets the IamSessionArn field's value.
  8933. func (s *RegisterOnPremisesInstanceInput) SetIamSessionArn(v string) *RegisterOnPremisesInstanceInput {
  8934. s.IamSessionArn = &v
  8935. return s
  8936. }
  8937. // SetIamUserArn sets the IamUserArn field's value.
  8938. func (s *RegisterOnPremisesInstanceInput) SetIamUserArn(v string) *RegisterOnPremisesInstanceInput {
  8939. s.IamUserArn = &v
  8940. return s
  8941. }
  8942. // SetInstanceName sets the InstanceName field's value.
  8943. func (s *RegisterOnPremisesInstanceInput) SetInstanceName(v string) *RegisterOnPremisesInstanceInput {
  8944. s.InstanceName = &v
  8945. return s
  8946. }
  8947. type RegisterOnPremisesInstanceOutput struct {
  8948. _ struct{} `type:"structure"`
  8949. }
  8950. // String returns the string representation
  8951. func (s RegisterOnPremisesInstanceOutput) String() string {
  8952. return awsutil.Prettify(s)
  8953. }
  8954. // GoString returns the string representation
  8955. func (s RegisterOnPremisesInstanceOutput) GoString() string {
  8956. return s.String()
  8957. }
  8958. // Represents the input of a RemoveTagsFromOnPremisesInstances operation.
  8959. type RemoveTagsFromOnPremisesInstancesInput struct {
  8960. _ struct{} `type:"structure"`
  8961. // The names of the on-premises instances from which to remove tags.
  8962. //
  8963. // InstanceNames is a required field
  8964. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  8965. // The tag key-value pairs to remove from the on-premises instances.
  8966. //
  8967. // Tags is a required field
  8968. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  8969. }
  8970. // String returns the string representation
  8971. func (s RemoveTagsFromOnPremisesInstancesInput) String() string {
  8972. return awsutil.Prettify(s)
  8973. }
  8974. // GoString returns the string representation
  8975. func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string {
  8976. return s.String()
  8977. }
  8978. // Validate inspects the fields of the type to determine if they are valid.
  8979. func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error {
  8980. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"}
  8981. if s.InstanceNames == nil {
  8982. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  8983. }
  8984. if s.Tags == nil {
  8985. invalidParams.Add(request.NewErrParamRequired("Tags"))
  8986. }
  8987. if invalidParams.Len() > 0 {
  8988. return invalidParams
  8989. }
  8990. return nil
  8991. }
  8992. // SetInstanceNames sets the InstanceNames field's value.
  8993. func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput {
  8994. s.InstanceNames = v
  8995. return s
  8996. }
  8997. // SetTags sets the Tags field's value.
  8998. func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput {
  8999. s.Tags = v
  9000. return s
  9001. }
  9002. type RemoveTagsFromOnPremisesInstancesOutput struct {
  9003. _ struct{} `type:"structure"`
  9004. }
  9005. // String returns the string representation
  9006. func (s RemoveTagsFromOnPremisesInstancesOutput) String() string {
  9007. return awsutil.Prettify(s)
  9008. }
  9009. // GoString returns the string representation
  9010. func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string {
  9011. return s.String()
  9012. }
  9013. // Information about an application revision.
  9014. type RevisionInfo struct {
  9015. _ struct{} `type:"structure"`
  9016. // Information about an application revision, including usage details and associated
  9017. // deployment groups.
  9018. GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"`
  9019. // Information about the location and type of an application revision.
  9020. RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"`
  9021. }
  9022. // String returns the string representation
  9023. func (s RevisionInfo) String() string {
  9024. return awsutil.Prettify(s)
  9025. }
  9026. // GoString returns the string representation
  9027. func (s RevisionInfo) GoString() string {
  9028. return s.String()
  9029. }
  9030. // SetGenericRevisionInfo sets the GenericRevisionInfo field's value.
  9031. func (s *RevisionInfo) SetGenericRevisionInfo(v *GenericRevisionInfo) *RevisionInfo {
  9032. s.GenericRevisionInfo = v
  9033. return s
  9034. }
  9035. // SetRevisionLocation sets the RevisionLocation field's value.
  9036. func (s *RevisionInfo) SetRevisionLocation(v *RevisionLocation) *RevisionInfo {
  9037. s.RevisionLocation = v
  9038. return s
  9039. }
  9040. // Information about the location of an application revision.
  9041. type RevisionLocation struct {
  9042. _ struct{} `type:"structure"`
  9043. // The content of an AppSpec file for an AWS Lambda or Amazon ECS deployment.
  9044. // The content is formatted as JSON or YAML and stored as a RawString.
  9045. AppSpecContent *AppSpecContent `locationName:"appSpecContent" type:"structure"`
  9046. // Information about the location of application artifacts stored in GitHub.
  9047. GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"`
  9048. // The type of application revision:
  9049. //
  9050. // * S3: An application revision stored in Amazon S3.
  9051. //
  9052. // * GitHub: An application revision stored in GitHub (EC2/On-premises deployments
  9053. // only).
  9054. //
  9055. // * String: A YAML-formatted or JSON-formatted string (AWS Lambda deployments
  9056. // only).
  9057. RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"`
  9058. // Information about the location of a revision stored in Amazon S3.
  9059. S3Location *S3Location `locationName:"s3Location" type:"structure"`
  9060. // Information about the location of an AWS Lambda deployment revision stored
  9061. // as a RawString.
  9062. String_ *RawString `locationName:"string" deprecated:"true" type:"structure"`
  9063. }
  9064. // String returns the string representation
  9065. func (s RevisionLocation) String() string {
  9066. return awsutil.Prettify(s)
  9067. }
  9068. // GoString returns the string representation
  9069. func (s RevisionLocation) GoString() string {
  9070. return s.String()
  9071. }
  9072. // SetAppSpecContent sets the AppSpecContent field's value.
  9073. func (s *RevisionLocation) SetAppSpecContent(v *AppSpecContent) *RevisionLocation {
  9074. s.AppSpecContent = v
  9075. return s
  9076. }
  9077. // SetGitHubLocation sets the GitHubLocation field's value.
  9078. func (s *RevisionLocation) SetGitHubLocation(v *GitHubLocation) *RevisionLocation {
  9079. s.GitHubLocation = v
  9080. return s
  9081. }
  9082. // SetRevisionType sets the RevisionType field's value.
  9083. func (s *RevisionLocation) SetRevisionType(v string) *RevisionLocation {
  9084. s.RevisionType = &v
  9085. return s
  9086. }
  9087. // SetS3Location sets the S3Location field's value.
  9088. func (s *RevisionLocation) SetS3Location(v *S3Location) *RevisionLocation {
  9089. s.S3Location = v
  9090. return s
  9091. }
  9092. // SetString_ sets the String_ field's value.
  9093. func (s *RevisionLocation) SetString_(v *RawString) *RevisionLocation {
  9094. s.String_ = v
  9095. return s
  9096. }
  9097. // Information about a deployment rollback.
  9098. type RollbackInfo struct {
  9099. _ struct{} `type:"structure"`
  9100. // The ID of the deployment rollback.
  9101. RollbackDeploymentId *string `locationName:"rollbackDeploymentId" type:"string"`
  9102. // Information that describes the status of a deployment rollback (for example,
  9103. // whether the deployment can't be rolled back, is in progress, failed, or succeeded).
  9104. RollbackMessage *string `locationName:"rollbackMessage" type:"string"`
  9105. // The deployment ID of the deployment that was underway and triggered a rollback
  9106. // deployment because it failed or was stopped.
  9107. RollbackTriggeringDeploymentId *string `locationName:"rollbackTriggeringDeploymentId" type:"string"`
  9108. }
  9109. // String returns the string representation
  9110. func (s RollbackInfo) String() string {
  9111. return awsutil.Prettify(s)
  9112. }
  9113. // GoString returns the string representation
  9114. func (s RollbackInfo) GoString() string {
  9115. return s.String()
  9116. }
  9117. // SetRollbackDeploymentId sets the RollbackDeploymentId field's value.
  9118. func (s *RollbackInfo) SetRollbackDeploymentId(v string) *RollbackInfo {
  9119. s.RollbackDeploymentId = &v
  9120. return s
  9121. }
  9122. // SetRollbackMessage sets the RollbackMessage field's value.
  9123. func (s *RollbackInfo) SetRollbackMessage(v string) *RollbackInfo {
  9124. s.RollbackMessage = &v
  9125. return s
  9126. }
  9127. // SetRollbackTriggeringDeploymentId sets the RollbackTriggeringDeploymentId field's value.
  9128. func (s *RollbackInfo) SetRollbackTriggeringDeploymentId(v string) *RollbackInfo {
  9129. s.RollbackTriggeringDeploymentId = &v
  9130. return s
  9131. }
  9132. // Information about the location of application artifacts stored in Amazon
  9133. // S3.
  9134. type S3Location struct {
  9135. _ struct{} `type:"structure"`
  9136. // The name of the Amazon S3 bucket where the application revision is stored.
  9137. Bucket *string `locationName:"bucket" type:"string"`
  9138. // The file type of the application revision. Must be one of the following:
  9139. //
  9140. // * tar: A tar archive file.
  9141. //
  9142. // * tgz: A compressed tar archive file.
  9143. //
  9144. // * zip: A zip archive file.
  9145. BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"`
  9146. // The ETag of the Amazon S3 object that represents the bundled artifacts for
  9147. // the application revision.
  9148. //
  9149. // If the ETag is not specified as an input parameter, ETag validation of the
  9150. // object is skipped.
  9151. ETag *string `locationName:"eTag" type:"string"`
  9152. // The name of the Amazon S3 object that represents the bundled artifacts for
  9153. // the application revision.
  9154. Key *string `locationName:"key" type:"string"`
  9155. // A specific version of the Amazon S3 object that represents the bundled artifacts
  9156. // for the application revision.
  9157. //
  9158. // If the version is not specified, the system uses the most recent version
  9159. // by default.
  9160. Version *string `locationName:"version" type:"string"`
  9161. }
  9162. // String returns the string representation
  9163. func (s S3Location) String() string {
  9164. return awsutil.Prettify(s)
  9165. }
  9166. // GoString returns the string representation
  9167. func (s S3Location) GoString() string {
  9168. return s.String()
  9169. }
  9170. // SetBucket sets the Bucket field's value.
  9171. func (s *S3Location) SetBucket(v string) *S3Location {
  9172. s.Bucket = &v
  9173. return s
  9174. }
  9175. // SetBundleType sets the BundleType field's value.
  9176. func (s *S3Location) SetBundleType(v string) *S3Location {
  9177. s.BundleType = &v
  9178. return s
  9179. }
  9180. // SetETag sets the ETag field's value.
  9181. func (s *S3Location) SetETag(v string) *S3Location {
  9182. s.ETag = &v
  9183. return s
  9184. }
  9185. // SetKey sets the Key field's value.
  9186. func (s *S3Location) SetKey(v string) *S3Location {
  9187. s.Key = &v
  9188. return s
  9189. }
  9190. // SetVersion sets the Version field's value.
  9191. func (s *S3Location) SetVersion(v string) *S3Location {
  9192. s.Version = &v
  9193. return s
  9194. }
  9195. type SkipWaitTimeForInstanceTerminationInput struct {
  9196. _ struct{} `type:"structure"`
  9197. // The unique ID of a blue/green deployment for which you want to skip the instance
  9198. // termination wait time.
  9199. DeploymentId *string `locationName:"deploymentId" type:"string"`
  9200. }
  9201. // String returns the string representation
  9202. func (s SkipWaitTimeForInstanceTerminationInput) String() string {
  9203. return awsutil.Prettify(s)
  9204. }
  9205. // GoString returns the string representation
  9206. func (s SkipWaitTimeForInstanceTerminationInput) GoString() string {
  9207. return s.String()
  9208. }
  9209. // SetDeploymentId sets the DeploymentId field's value.
  9210. func (s *SkipWaitTimeForInstanceTerminationInput) SetDeploymentId(v string) *SkipWaitTimeForInstanceTerminationInput {
  9211. s.DeploymentId = &v
  9212. return s
  9213. }
  9214. type SkipWaitTimeForInstanceTerminationOutput struct {
  9215. _ struct{} `type:"structure"`
  9216. }
  9217. // String returns the string representation
  9218. func (s SkipWaitTimeForInstanceTerminationOutput) String() string {
  9219. return awsutil.Prettify(s)
  9220. }
  9221. // GoString returns the string representation
  9222. func (s SkipWaitTimeForInstanceTerminationOutput) GoString() string {
  9223. return s.String()
  9224. }
  9225. // Represents the input of a StopDeployment operation.
  9226. type StopDeploymentInput struct {
  9227. _ struct{} `type:"structure"`
  9228. // Indicates, when a deployment is stopped, whether instances that have been
  9229. // updated should be rolled back to the previous version of the application
  9230. // revision.
  9231. AutoRollbackEnabled *bool `locationName:"autoRollbackEnabled" type:"boolean"`
  9232. // The unique ID of a deployment.
  9233. //
  9234. // DeploymentId is a required field
  9235. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  9236. }
  9237. // String returns the string representation
  9238. func (s StopDeploymentInput) String() string {
  9239. return awsutil.Prettify(s)
  9240. }
  9241. // GoString returns the string representation
  9242. func (s StopDeploymentInput) GoString() string {
  9243. return s.String()
  9244. }
  9245. // Validate inspects the fields of the type to determine if they are valid.
  9246. func (s *StopDeploymentInput) Validate() error {
  9247. invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"}
  9248. if s.DeploymentId == nil {
  9249. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  9250. }
  9251. if invalidParams.Len() > 0 {
  9252. return invalidParams
  9253. }
  9254. return nil
  9255. }
  9256. // SetAutoRollbackEnabled sets the AutoRollbackEnabled field's value.
  9257. func (s *StopDeploymentInput) SetAutoRollbackEnabled(v bool) *StopDeploymentInput {
  9258. s.AutoRollbackEnabled = &v
  9259. return s
  9260. }
  9261. // SetDeploymentId sets the DeploymentId field's value.
  9262. func (s *StopDeploymentInput) SetDeploymentId(v string) *StopDeploymentInput {
  9263. s.DeploymentId = &v
  9264. return s
  9265. }
  9266. // Represents the output of a StopDeployment operation.
  9267. type StopDeploymentOutput struct {
  9268. _ struct{} `type:"structure"`
  9269. // The status of the stop deployment operation:
  9270. //
  9271. // * Pending: The stop operation is pending.
  9272. //
  9273. // * Succeeded: The stop operation was successful.
  9274. Status *string `locationName:"status" type:"string" enum:"StopStatus"`
  9275. // An accompanying status message.
  9276. StatusMessage *string `locationName:"statusMessage" type:"string"`
  9277. }
  9278. // String returns the string representation
  9279. func (s StopDeploymentOutput) String() string {
  9280. return awsutil.Prettify(s)
  9281. }
  9282. // GoString returns the string representation
  9283. func (s StopDeploymentOutput) GoString() string {
  9284. return s.String()
  9285. }
  9286. // SetStatus sets the Status field's value.
  9287. func (s *StopDeploymentOutput) SetStatus(v string) *StopDeploymentOutput {
  9288. s.Status = &v
  9289. return s
  9290. }
  9291. // SetStatusMessage sets the StatusMessage field's value.
  9292. func (s *StopDeploymentOutput) SetStatusMessage(v string) *StopDeploymentOutput {
  9293. s.StatusMessage = &v
  9294. return s
  9295. }
  9296. // Information about a tag.
  9297. type Tag struct {
  9298. _ struct{} `type:"structure"`
  9299. // The tag's key.
  9300. Key *string `type:"string"`
  9301. // The tag's value.
  9302. Value *string `type:"string"`
  9303. }
  9304. // String returns the string representation
  9305. func (s Tag) String() string {
  9306. return awsutil.Prettify(s)
  9307. }
  9308. // GoString returns the string representation
  9309. func (s Tag) GoString() string {
  9310. return s.String()
  9311. }
  9312. // SetKey sets the Key field's value.
  9313. func (s *Tag) SetKey(v string) *Tag {
  9314. s.Key = &v
  9315. return s
  9316. }
  9317. // SetValue sets the Value field's value.
  9318. func (s *Tag) SetValue(v string) *Tag {
  9319. s.Value = &v
  9320. return s
  9321. }
  9322. // Information about an on-premises instance tag filter.
  9323. type TagFilter struct {
  9324. _ struct{} `type:"structure"`
  9325. // The on-premises instance tag filter key.
  9326. Key *string `type:"string"`
  9327. // The on-premises instance tag filter type:
  9328. //
  9329. // * KEY_ONLY: Key only.
  9330. //
  9331. // * VALUE_ONLY: Value only.
  9332. //
  9333. // * KEY_AND_VALUE: Key and value.
  9334. Type *string `type:"string" enum:"TagFilterType"`
  9335. // The on-premises instance tag filter value.
  9336. Value *string `type:"string"`
  9337. }
  9338. // String returns the string representation
  9339. func (s TagFilter) String() string {
  9340. return awsutil.Prettify(s)
  9341. }
  9342. // GoString returns the string representation
  9343. func (s TagFilter) GoString() string {
  9344. return s.String()
  9345. }
  9346. // SetKey sets the Key field's value.
  9347. func (s *TagFilter) SetKey(v string) *TagFilter {
  9348. s.Key = &v
  9349. return s
  9350. }
  9351. // SetType sets the Type field's value.
  9352. func (s *TagFilter) SetType(v string) *TagFilter {
  9353. s.Type = &v
  9354. return s
  9355. }
  9356. // SetValue sets the Value field's value.
  9357. func (s *TagFilter) SetValue(v string) *TagFilter {
  9358. s.Value = &v
  9359. return s
  9360. }
  9361. // Information about a target group in Elastic Load Balancing to use in a deployment.
  9362. // Instances are registered as targets in a target group, and traffic is routed
  9363. // to the target group.
  9364. type TargetGroupInfo struct {
  9365. _ struct{} `type:"structure"`
  9366. // For blue/green deployments, the name of the target group that instances in
  9367. // the original environment are deregistered from, and instances in the replacement
  9368. // environment are registered with. For in-place deployments, the name of the
  9369. // target group that instances are deregistered from, so they are not serving
  9370. // traffic during a deployment, and then re-registered with after the deployment
  9371. // is complete.
  9372. Name *string `locationName:"name" type:"string"`
  9373. }
  9374. // String returns the string representation
  9375. func (s TargetGroupInfo) String() string {
  9376. return awsutil.Prettify(s)
  9377. }
  9378. // GoString returns the string representation
  9379. func (s TargetGroupInfo) GoString() string {
  9380. return s.String()
  9381. }
  9382. // SetName sets the Name field's value.
  9383. func (s *TargetGroupInfo) SetName(v string) *TargetGroupInfo {
  9384. s.Name = &v
  9385. return s
  9386. }
  9387. // Information about two target groups and how traffic is routed during an Amazon
  9388. // ECS deployment. An optional test traffic route can be specified.
  9389. type TargetGroupPairInfo struct {
  9390. _ struct{} `type:"structure"`
  9391. // The path used by a load balancer to route production traffic when an Amazon
  9392. // ECS deployment is complete.
  9393. ProdTrafficRoute *TrafficRoute `locationName:"prodTrafficRoute" type:"structure"`
  9394. // One pair of target groups. One is associated with the original task set.
  9395. // The second is associated with the task set that serves traffic after the
  9396. // deployment is complete.
  9397. TargetGroups []*TargetGroupInfo `locationName:"targetGroups" type:"list"`
  9398. // An optional path used by a load balancer to route test traffic after an Amazon
  9399. // ECS deployment. Validation can occur while test traffic is served during
  9400. // a deployment.
  9401. TestTrafficRoute *TrafficRoute `locationName:"testTrafficRoute" type:"structure"`
  9402. }
  9403. // String returns the string representation
  9404. func (s TargetGroupPairInfo) String() string {
  9405. return awsutil.Prettify(s)
  9406. }
  9407. // GoString returns the string representation
  9408. func (s TargetGroupPairInfo) GoString() string {
  9409. return s.String()
  9410. }
  9411. // SetProdTrafficRoute sets the ProdTrafficRoute field's value.
  9412. func (s *TargetGroupPairInfo) SetProdTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo {
  9413. s.ProdTrafficRoute = v
  9414. return s
  9415. }
  9416. // SetTargetGroups sets the TargetGroups field's value.
  9417. func (s *TargetGroupPairInfo) SetTargetGroups(v []*TargetGroupInfo) *TargetGroupPairInfo {
  9418. s.TargetGroups = v
  9419. return s
  9420. }
  9421. // SetTestTrafficRoute sets the TestTrafficRoute field's value.
  9422. func (s *TargetGroupPairInfo) SetTestTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo {
  9423. s.TestTrafficRoute = v
  9424. return s
  9425. }
  9426. // Information about the instances to be used in the replacement environment
  9427. // in a blue/green deployment.
  9428. type TargetInstances struct {
  9429. _ struct{} `type:"structure"`
  9430. // The names of one or more Auto Scaling groups to identify a replacement environment
  9431. // for a blue/green deployment.
  9432. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  9433. // Information about the groups of EC2 instance tags that an instance must be
  9434. // identified by in order for it to be included in the replacement environment
  9435. // for a blue/green deployment. Cannot be used in the same call as tagFilters.
  9436. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"`
  9437. // The tag filter key, type, and value used to identify Amazon EC2 instances
  9438. // in a replacement environment for a blue/green deployment. Cannot be used
  9439. // in the same call as ec2TagSet.
  9440. TagFilters []*EC2TagFilter `locationName:"tagFilters" type:"list"`
  9441. }
  9442. // String returns the string representation
  9443. func (s TargetInstances) String() string {
  9444. return awsutil.Prettify(s)
  9445. }
  9446. // GoString returns the string representation
  9447. func (s TargetInstances) GoString() string {
  9448. return s.String()
  9449. }
  9450. // SetAutoScalingGroups sets the AutoScalingGroups field's value.
  9451. func (s *TargetInstances) SetAutoScalingGroups(v []*string) *TargetInstances {
  9452. s.AutoScalingGroups = v
  9453. return s
  9454. }
  9455. // SetEc2TagSet sets the Ec2TagSet field's value.
  9456. func (s *TargetInstances) SetEc2TagSet(v *EC2TagSet) *TargetInstances {
  9457. s.Ec2TagSet = v
  9458. return s
  9459. }
  9460. // SetTagFilters sets the TagFilters field's value.
  9461. func (s *TargetInstances) SetTagFilters(v []*EC2TagFilter) *TargetInstances {
  9462. s.TagFilters = v
  9463. return s
  9464. }
  9465. // A configuration that shifts traffic from one version of a Lambda function
  9466. // to another in two increments. The original and target Lambda function versions
  9467. // are specified in the deployment's AppSpec file.
  9468. type TimeBasedCanary struct {
  9469. _ struct{} `type:"structure"`
  9470. // The number of minutes between the first and second traffic shifts of a TimeBasedCanary
  9471. // deployment.
  9472. CanaryInterval *int64 `locationName:"canaryInterval" type:"integer"`
  9473. // The percentage of traffic to shift in the first increment of a TimeBasedCanary
  9474. // deployment.
  9475. CanaryPercentage *int64 `locationName:"canaryPercentage" type:"integer"`
  9476. }
  9477. // String returns the string representation
  9478. func (s TimeBasedCanary) String() string {
  9479. return awsutil.Prettify(s)
  9480. }
  9481. // GoString returns the string representation
  9482. func (s TimeBasedCanary) GoString() string {
  9483. return s.String()
  9484. }
  9485. // SetCanaryInterval sets the CanaryInterval field's value.
  9486. func (s *TimeBasedCanary) SetCanaryInterval(v int64) *TimeBasedCanary {
  9487. s.CanaryInterval = &v
  9488. return s
  9489. }
  9490. // SetCanaryPercentage sets the CanaryPercentage field's value.
  9491. func (s *TimeBasedCanary) SetCanaryPercentage(v int64) *TimeBasedCanary {
  9492. s.CanaryPercentage = &v
  9493. return s
  9494. }
  9495. // A configuration that shifts traffic from one version of a Lambda function
  9496. // to another in equal increments, with an equal number of minutes between each
  9497. // increment. The original and target Lambda function versions are specified
  9498. // in the deployment's AppSpec file.
  9499. type TimeBasedLinear struct {
  9500. _ struct{} `type:"structure"`
  9501. // The number of minutes between each incremental traffic shift of a TimeBasedLinear
  9502. // deployment.
  9503. LinearInterval *int64 `locationName:"linearInterval" type:"integer"`
  9504. // The percentage of traffic that is shifted at the start of each increment
  9505. // of a TimeBasedLinear deployment.
  9506. LinearPercentage *int64 `locationName:"linearPercentage" type:"integer"`
  9507. }
  9508. // String returns the string representation
  9509. func (s TimeBasedLinear) String() string {
  9510. return awsutil.Prettify(s)
  9511. }
  9512. // GoString returns the string representation
  9513. func (s TimeBasedLinear) GoString() string {
  9514. return s.String()
  9515. }
  9516. // SetLinearInterval sets the LinearInterval field's value.
  9517. func (s *TimeBasedLinear) SetLinearInterval(v int64) *TimeBasedLinear {
  9518. s.LinearInterval = &v
  9519. return s
  9520. }
  9521. // SetLinearPercentage sets the LinearPercentage field's value.
  9522. func (s *TimeBasedLinear) SetLinearPercentage(v int64) *TimeBasedLinear {
  9523. s.LinearPercentage = &v
  9524. return s
  9525. }
  9526. // Information about a time range.
  9527. type TimeRange struct {
  9528. _ struct{} `type:"structure"`
  9529. // The end time of the time range.
  9530. //
  9531. // Specify null to leave the end time open-ended.
  9532. End *time.Time `locationName:"end" type:"timestamp"`
  9533. // The start time of the time range.
  9534. //
  9535. // Specify null to leave the start time open-ended.
  9536. Start *time.Time `locationName:"start" type:"timestamp"`
  9537. }
  9538. // String returns the string representation
  9539. func (s TimeRange) String() string {
  9540. return awsutil.Prettify(s)
  9541. }
  9542. // GoString returns the string representation
  9543. func (s TimeRange) GoString() string {
  9544. return s.String()
  9545. }
  9546. // SetEnd sets the End field's value.
  9547. func (s *TimeRange) SetEnd(v time.Time) *TimeRange {
  9548. s.End = &v
  9549. return s
  9550. }
  9551. // SetStart sets the Start field's value.
  9552. func (s *TimeRange) SetStart(v time.Time) *TimeRange {
  9553. s.Start = &v
  9554. return s
  9555. }
  9556. // Information about a listener. The listener contains the path used to route
  9557. // traffic that is received from the load balancer to a target group.
  9558. type TrafficRoute struct {
  9559. _ struct{} `type:"structure"`
  9560. // The ARN of one listener. The listener identifies the route between a target
  9561. // group and a load balancer. This is an array of strings with a maximum size
  9562. // of one.
  9563. ListenerArns []*string `locationName:"listenerArns" type:"list"`
  9564. }
  9565. // String returns the string representation
  9566. func (s TrafficRoute) String() string {
  9567. return awsutil.Prettify(s)
  9568. }
  9569. // GoString returns the string representation
  9570. func (s TrafficRoute) GoString() string {
  9571. return s.String()
  9572. }
  9573. // SetListenerArns sets the ListenerArns field's value.
  9574. func (s *TrafficRoute) SetListenerArns(v []*string) *TrafficRoute {
  9575. s.ListenerArns = v
  9576. return s
  9577. }
  9578. // The configuration that specifies how traffic is shifted from one version
  9579. // of a Lambda function to another version during an AWS Lambda deployment.
  9580. type TrafficRoutingConfig struct {
  9581. _ struct{} `type:"structure"`
  9582. // A configuration that shifts traffic from one version of a Lambda function
  9583. // to another in two increments. The original and target Lambda function versions
  9584. // are specified in the deployment's AppSpec file.
  9585. TimeBasedCanary *TimeBasedCanary `locationName:"timeBasedCanary" type:"structure"`
  9586. // A configuration that shifts traffic from one version of a Lambda function
  9587. // to another in equal increments, with an equal number of minutes between each
  9588. // increment. The original and target Lambda function versions are specified
  9589. // in the deployment's AppSpec file.
  9590. TimeBasedLinear *TimeBasedLinear `locationName:"timeBasedLinear" type:"structure"`
  9591. // The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by
  9592. // a deployment configuration .
  9593. Type *string `locationName:"type" type:"string" enum:"TrafficRoutingType"`
  9594. }
  9595. // String returns the string representation
  9596. func (s TrafficRoutingConfig) String() string {
  9597. return awsutil.Prettify(s)
  9598. }
  9599. // GoString returns the string representation
  9600. func (s TrafficRoutingConfig) GoString() string {
  9601. return s.String()
  9602. }
  9603. // SetTimeBasedCanary sets the TimeBasedCanary field's value.
  9604. func (s *TrafficRoutingConfig) SetTimeBasedCanary(v *TimeBasedCanary) *TrafficRoutingConfig {
  9605. s.TimeBasedCanary = v
  9606. return s
  9607. }
  9608. // SetTimeBasedLinear sets the TimeBasedLinear field's value.
  9609. func (s *TrafficRoutingConfig) SetTimeBasedLinear(v *TimeBasedLinear) *TrafficRoutingConfig {
  9610. s.TimeBasedLinear = v
  9611. return s
  9612. }
  9613. // SetType sets the Type field's value.
  9614. func (s *TrafficRoutingConfig) SetType(v string) *TrafficRoutingConfig {
  9615. s.Type = &v
  9616. return s
  9617. }
  9618. // Information about notification triggers for the deployment group.
  9619. type TriggerConfig struct {
  9620. _ struct{} `type:"structure"`
  9621. // The event type or types for which notifications are triggered.
  9622. TriggerEvents []*string `locationName:"triggerEvents" type:"list"`
  9623. // The name of the notification trigger.
  9624. TriggerName *string `locationName:"triggerName" type:"string"`
  9625. // The ARN of the Amazon Simple Notification Service topic through which notifications
  9626. // about deployment or instance events are sent.
  9627. TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"`
  9628. }
  9629. // String returns the string representation
  9630. func (s TriggerConfig) String() string {
  9631. return awsutil.Prettify(s)
  9632. }
  9633. // GoString returns the string representation
  9634. func (s TriggerConfig) GoString() string {
  9635. return s.String()
  9636. }
  9637. // SetTriggerEvents sets the TriggerEvents field's value.
  9638. func (s *TriggerConfig) SetTriggerEvents(v []*string) *TriggerConfig {
  9639. s.TriggerEvents = v
  9640. return s
  9641. }
  9642. // SetTriggerName sets the TriggerName field's value.
  9643. func (s *TriggerConfig) SetTriggerName(v string) *TriggerConfig {
  9644. s.TriggerName = &v
  9645. return s
  9646. }
  9647. // SetTriggerTargetArn sets the TriggerTargetArn field's value.
  9648. func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig {
  9649. s.TriggerTargetArn = &v
  9650. return s
  9651. }
  9652. // Represents the input of an UpdateApplication operation.
  9653. type UpdateApplicationInput struct {
  9654. _ struct{} `type:"structure"`
  9655. // The current name of the application you want to change.
  9656. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  9657. // The new name to give the application.
  9658. NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"`
  9659. }
  9660. // String returns the string representation
  9661. func (s UpdateApplicationInput) String() string {
  9662. return awsutil.Prettify(s)
  9663. }
  9664. // GoString returns the string representation
  9665. func (s UpdateApplicationInput) GoString() string {
  9666. return s.String()
  9667. }
  9668. // Validate inspects the fields of the type to determine if they are valid.
  9669. func (s *UpdateApplicationInput) Validate() error {
  9670. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  9671. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  9672. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  9673. }
  9674. if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 {
  9675. invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1))
  9676. }
  9677. if invalidParams.Len() > 0 {
  9678. return invalidParams
  9679. }
  9680. return nil
  9681. }
  9682. // SetApplicationName sets the ApplicationName field's value.
  9683. func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput {
  9684. s.ApplicationName = &v
  9685. return s
  9686. }
  9687. // SetNewApplicationName sets the NewApplicationName field's value.
  9688. func (s *UpdateApplicationInput) SetNewApplicationName(v string) *UpdateApplicationInput {
  9689. s.NewApplicationName = &v
  9690. return s
  9691. }
  9692. type UpdateApplicationOutput struct {
  9693. _ struct{} `type:"structure"`
  9694. }
  9695. // String returns the string representation
  9696. func (s UpdateApplicationOutput) String() string {
  9697. return awsutil.Prettify(s)
  9698. }
  9699. // GoString returns the string representation
  9700. func (s UpdateApplicationOutput) GoString() string {
  9701. return s.String()
  9702. }
  9703. // Represents the input of an UpdateDeploymentGroup operation.
  9704. type UpdateDeploymentGroupInput struct {
  9705. _ struct{} `type:"structure"`
  9706. // Information to add or change about Amazon CloudWatch alarms when the deployment
  9707. // group is updated.
  9708. AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"`
  9709. // The application name that corresponds to the deployment group to update.
  9710. //
  9711. // ApplicationName is a required field
  9712. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  9713. // Information for an automatic rollback configuration that is added or changed
  9714. // when a deployment group is updated.
  9715. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  9716. // The replacement list of Auto Scaling groups to be included in the deployment
  9717. // group, if you want to change them. To keep the Auto Scaling groups, enter
  9718. // their names. To remove Auto Scaling groups, do not enter any Auto Scaling
  9719. // group names.
  9720. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  9721. // Information about blue/green deployment options for a deployment group.
  9722. BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"`
  9723. // The current name of the deployment group.
  9724. //
  9725. // CurrentDeploymentGroupName is a required field
  9726. CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"`
  9727. // The replacement deployment configuration name to use, if you want to change
  9728. // it.
  9729. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  9730. // Information about the type of deployment, either in-place or blue/green,
  9731. // you want to run and whether to route deployment traffic behind a load balancer.
  9732. DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"`
  9733. // The replacement set of Amazon EC2 tags on which to filter, if you want to
  9734. // change them. To keep the existing tags, enter their names. To remove tags,
  9735. // do not enter any tag names.
  9736. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  9737. // Information about groups of tags applied to on-premises instances. The deployment
  9738. // group includes only EC2 instances identified by all the tag groups.
  9739. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"`
  9740. // The target Amazon ECS services in the deployment group. This applies only
  9741. // to deployment groups that use the Amazon ECS compute platform. A target Amazon
  9742. // ECS service is specified as an Amazon ECS cluster and service name pair using
  9743. // the format <clustername>:<servicename>.
  9744. EcsServices []*ECSService `locationName:"ecsServices" type:"list"`
  9745. // Information about the load balancer used in a deployment.
  9746. LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"`
  9747. // The new name of the deployment group, if you want to change it.
  9748. NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"`
  9749. // The replacement set of on-premises instance tags on which to filter, if you
  9750. // want to change them. To keep the existing tags, enter their names. To remove
  9751. // tags, do not enter any tag names.
  9752. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  9753. // Information about an on-premises instance tag set. The deployment group includes
  9754. // only on-premises instances identified by all the tag groups.
  9755. OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"`
  9756. // A replacement ARN for the service role, if you want to change it.
  9757. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
  9758. // Information about triggers to change when the deployment group is updated.
  9759. // For examples, see Modify Triggers in an AWS CodeDeploy Deployment Group (http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-edit.html)
  9760. // in the AWS CodeDeploy User Guide.
  9761. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  9762. }
  9763. // String returns the string representation
  9764. func (s UpdateDeploymentGroupInput) String() string {
  9765. return awsutil.Prettify(s)
  9766. }
  9767. // GoString returns the string representation
  9768. func (s UpdateDeploymentGroupInput) GoString() string {
  9769. return s.String()
  9770. }
  9771. // Validate inspects the fields of the type to determine if they are valid.
  9772. func (s *UpdateDeploymentGroupInput) Validate() error {
  9773. invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"}
  9774. if s.ApplicationName == nil {
  9775. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  9776. }
  9777. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  9778. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  9779. }
  9780. if s.CurrentDeploymentGroupName == nil {
  9781. invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName"))
  9782. }
  9783. if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 {
  9784. invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1))
  9785. }
  9786. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  9787. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  9788. }
  9789. if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 {
  9790. invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1))
  9791. }
  9792. if invalidParams.Len() > 0 {
  9793. return invalidParams
  9794. }
  9795. return nil
  9796. }
  9797. // SetAlarmConfiguration sets the AlarmConfiguration field's value.
  9798. func (s *UpdateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *UpdateDeploymentGroupInput {
  9799. s.AlarmConfiguration = v
  9800. return s
  9801. }
  9802. // SetApplicationName sets the ApplicationName field's value.
  9803. func (s *UpdateDeploymentGroupInput) SetApplicationName(v string) *UpdateDeploymentGroupInput {
  9804. s.ApplicationName = &v
  9805. return s
  9806. }
  9807. // SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value.
  9808. func (s *UpdateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *UpdateDeploymentGroupInput {
  9809. s.AutoRollbackConfiguration = v
  9810. return s
  9811. }
  9812. // SetAutoScalingGroups sets the AutoScalingGroups field's value.
  9813. func (s *UpdateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *UpdateDeploymentGroupInput {
  9814. s.AutoScalingGroups = v
  9815. return s
  9816. }
  9817. // SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value.
  9818. func (s *UpdateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *UpdateDeploymentGroupInput {
  9819. s.BlueGreenDeploymentConfiguration = v
  9820. return s
  9821. }
  9822. // SetCurrentDeploymentGroupName sets the CurrentDeploymentGroupName field's value.
  9823. func (s *UpdateDeploymentGroupInput) SetCurrentDeploymentGroupName(v string) *UpdateDeploymentGroupInput {
  9824. s.CurrentDeploymentGroupName = &v
  9825. return s
  9826. }
  9827. // SetDeploymentConfigName sets the DeploymentConfigName field's value.
  9828. func (s *UpdateDeploymentGroupInput) SetDeploymentConfigName(v string) *UpdateDeploymentGroupInput {
  9829. s.DeploymentConfigName = &v
  9830. return s
  9831. }
  9832. // SetDeploymentStyle sets the DeploymentStyle field's value.
  9833. func (s *UpdateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *UpdateDeploymentGroupInput {
  9834. s.DeploymentStyle = v
  9835. return s
  9836. }
  9837. // SetEc2TagFilters sets the Ec2TagFilters field's value.
  9838. func (s *UpdateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *UpdateDeploymentGroupInput {
  9839. s.Ec2TagFilters = v
  9840. return s
  9841. }
  9842. // SetEc2TagSet sets the Ec2TagSet field's value.
  9843. func (s *UpdateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *UpdateDeploymentGroupInput {
  9844. s.Ec2TagSet = v
  9845. return s
  9846. }
  9847. // SetEcsServices sets the EcsServices field's value.
  9848. func (s *UpdateDeploymentGroupInput) SetEcsServices(v []*ECSService) *UpdateDeploymentGroupInput {
  9849. s.EcsServices = v
  9850. return s
  9851. }
  9852. // SetLoadBalancerInfo sets the LoadBalancerInfo field's value.
  9853. func (s *UpdateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *UpdateDeploymentGroupInput {
  9854. s.LoadBalancerInfo = v
  9855. return s
  9856. }
  9857. // SetNewDeploymentGroupName sets the NewDeploymentGroupName field's value.
  9858. func (s *UpdateDeploymentGroupInput) SetNewDeploymentGroupName(v string) *UpdateDeploymentGroupInput {
  9859. s.NewDeploymentGroupName = &v
  9860. return s
  9861. }
  9862. // SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value.
  9863. func (s *UpdateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *UpdateDeploymentGroupInput {
  9864. s.OnPremisesInstanceTagFilters = v
  9865. return s
  9866. }
  9867. // SetOnPremisesTagSet sets the OnPremisesTagSet field's value.
  9868. func (s *UpdateDeploymentGroupInput) SetOnPremisesTagSet(v *OnPremisesTagSet) *UpdateDeploymentGroupInput {
  9869. s.OnPremisesTagSet = v
  9870. return s
  9871. }
  9872. // SetServiceRoleArn sets the ServiceRoleArn field's value.
  9873. func (s *UpdateDeploymentGroupInput) SetServiceRoleArn(v string) *UpdateDeploymentGroupInput {
  9874. s.ServiceRoleArn = &v
  9875. return s
  9876. }
  9877. // SetTriggerConfigurations sets the TriggerConfigurations field's value.
  9878. func (s *UpdateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *UpdateDeploymentGroupInput {
  9879. s.TriggerConfigurations = v
  9880. return s
  9881. }
  9882. // Represents the output of an UpdateDeploymentGroup operation.
  9883. type UpdateDeploymentGroupOutput struct {
  9884. _ struct{} `type:"structure"`
  9885. // If the output contains no data, and the corresponding deployment group contained
  9886. // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
  9887. // corresponding Auto Scaling lifecycle event hooks from the AWS account. If
  9888. // the output contains data, AWS CodeDeploy could not remove some Auto Scaling
  9889. // lifecycle event hooks from the AWS account.
  9890. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
  9891. }
  9892. // String returns the string representation
  9893. func (s UpdateDeploymentGroupOutput) String() string {
  9894. return awsutil.Prettify(s)
  9895. }
  9896. // GoString returns the string representation
  9897. func (s UpdateDeploymentGroupOutput) GoString() string {
  9898. return s.String()
  9899. }
  9900. // SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value.
  9901. func (s *UpdateDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *UpdateDeploymentGroupOutput {
  9902. s.HooksNotCleanedUp = v
  9903. return s
  9904. }
  9905. const (
  9906. // ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value
  9907. ApplicationRevisionSortByRegisterTime = "registerTime"
  9908. // ApplicationRevisionSortByFirstUsedTime is a ApplicationRevisionSortBy enum value
  9909. ApplicationRevisionSortByFirstUsedTime = "firstUsedTime"
  9910. // ApplicationRevisionSortByLastUsedTime is a ApplicationRevisionSortBy enum value
  9911. ApplicationRevisionSortByLastUsedTime = "lastUsedTime"
  9912. )
  9913. const (
  9914. // AutoRollbackEventDeploymentFailure is a AutoRollbackEvent enum value
  9915. AutoRollbackEventDeploymentFailure = "DEPLOYMENT_FAILURE"
  9916. // AutoRollbackEventDeploymentStopOnAlarm is a AutoRollbackEvent enum value
  9917. AutoRollbackEventDeploymentStopOnAlarm = "DEPLOYMENT_STOP_ON_ALARM"
  9918. // AutoRollbackEventDeploymentStopOnRequest is a AutoRollbackEvent enum value
  9919. AutoRollbackEventDeploymentStopOnRequest = "DEPLOYMENT_STOP_ON_REQUEST"
  9920. )
  9921. const (
  9922. // BundleTypeTar is a BundleType enum value
  9923. BundleTypeTar = "tar"
  9924. // BundleTypeTgz is a BundleType enum value
  9925. BundleTypeTgz = "tgz"
  9926. // BundleTypeZip is a BundleType enum value
  9927. BundleTypeZip = "zip"
  9928. // BundleTypeYaml is a BundleType enum value
  9929. BundleTypeYaml = "YAML"
  9930. // BundleTypeJson is a BundleType enum value
  9931. BundleTypeJson = "JSON"
  9932. )
  9933. const (
  9934. // ComputePlatformServer is a ComputePlatform enum value
  9935. ComputePlatformServer = "Server"
  9936. // ComputePlatformLambda is a ComputePlatform enum value
  9937. ComputePlatformLambda = "Lambda"
  9938. // ComputePlatformEcs is a ComputePlatform enum value
  9939. ComputePlatformEcs = "ECS"
  9940. )
  9941. const (
  9942. // DeploymentCreatorUser is a DeploymentCreator enum value
  9943. DeploymentCreatorUser = "user"
  9944. // DeploymentCreatorAutoscaling is a DeploymentCreator enum value
  9945. DeploymentCreatorAutoscaling = "autoscaling"
  9946. // DeploymentCreatorCodeDeployRollback is a DeploymentCreator enum value
  9947. DeploymentCreatorCodeDeployRollback = "codeDeployRollback"
  9948. )
  9949. const (
  9950. // DeploymentOptionWithTrafficControl is a DeploymentOption enum value
  9951. DeploymentOptionWithTrafficControl = "WITH_TRAFFIC_CONTROL"
  9952. // DeploymentOptionWithoutTrafficControl is a DeploymentOption enum value
  9953. DeploymentOptionWithoutTrafficControl = "WITHOUT_TRAFFIC_CONTROL"
  9954. )
  9955. const (
  9956. // DeploymentReadyActionContinueDeployment is a DeploymentReadyAction enum value
  9957. DeploymentReadyActionContinueDeployment = "CONTINUE_DEPLOYMENT"
  9958. // DeploymentReadyActionStopDeployment is a DeploymentReadyAction enum value
  9959. DeploymentReadyActionStopDeployment = "STOP_DEPLOYMENT"
  9960. )
  9961. const (
  9962. // DeploymentStatusCreated is a DeploymentStatus enum value
  9963. DeploymentStatusCreated = "Created"
  9964. // DeploymentStatusQueued is a DeploymentStatus enum value
  9965. DeploymentStatusQueued = "Queued"
  9966. // DeploymentStatusInProgress is a DeploymentStatus enum value
  9967. DeploymentStatusInProgress = "InProgress"
  9968. // DeploymentStatusSucceeded is a DeploymentStatus enum value
  9969. DeploymentStatusSucceeded = "Succeeded"
  9970. // DeploymentStatusFailed is a DeploymentStatus enum value
  9971. DeploymentStatusFailed = "Failed"
  9972. // DeploymentStatusStopped is a DeploymentStatus enum value
  9973. DeploymentStatusStopped = "Stopped"
  9974. // DeploymentStatusReady is a DeploymentStatus enum value
  9975. DeploymentStatusReady = "Ready"
  9976. )
  9977. const (
  9978. // DeploymentTargetTypeInstanceTarget is a DeploymentTargetType enum value
  9979. DeploymentTargetTypeInstanceTarget = "InstanceTarget"
  9980. // DeploymentTargetTypeLambdaTarget is a DeploymentTargetType enum value
  9981. DeploymentTargetTypeLambdaTarget = "LambdaTarget"
  9982. // DeploymentTargetTypeEcstarget is a DeploymentTargetType enum value
  9983. DeploymentTargetTypeEcstarget = "ECSTarget"
  9984. )
  9985. const (
  9986. // DeploymentTypeInPlace is a DeploymentType enum value
  9987. DeploymentTypeInPlace = "IN_PLACE"
  9988. // DeploymentTypeBlueGreen is a DeploymentType enum value
  9989. DeploymentTypeBlueGreen = "BLUE_GREEN"
  9990. )
  9991. const (
  9992. // DeploymentWaitTypeReadyWait is a DeploymentWaitType enum value
  9993. DeploymentWaitTypeReadyWait = "READY_WAIT"
  9994. // DeploymentWaitTypeTerminationWait is a DeploymentWaitType enum value
  9995. DeploymentWaitTypeTerminationWait = "TERMINATION_WAIT"
  9996. )
  9997. const (
  9998. // EC2TagFilterTypeKeyOnly is a EC2TagFilterType enum value
  9999. EC2TagFilterTypeKeyOnly = "KEY_ONLY"
  10000. // EC2TagFilterTypeValueOnly is a EC2TagFilterType enum value
  10001. EC2TagFilterTypeValueOnly = "VALUE_ONLY"
  10002. // EC2TagFilterTypeKeyAndValue is a EC2TagFilterType enum value
  10003. EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
  10004. )
  10005. const (
  10006. // ErrorCodeDeploymentGroupMissing is a ErrorCode enum value
  10007. ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING"
  10008. // ErrorCodeApplicationMissing is a ErrorCode enum value
  10009. ErrorCodeApplicationMissing = "APPLICATION_MISSING"
  10010. // ErrorCodeRevisionMissing is a ErrorCode enum value
  10011. ErrorCodeRevisionMissing = "REVISION_MISSING"
  10012. // ErrorCodeIamRoleMissing is a ErrorCode enum value
  10013. ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING"
  10014. // ErrorCodeIamRolePermissions is a ErrorCode enum value
  10015. ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS"
  10016. // ErrorCodeNoEc2Subscription is a ErrorCode enum value
  10017. ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION"
  10018. // ErrorCodeOverMaxInstances is a ErrorCode enum value
  10019. ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES"
  10020. // ErrorCodeNoInstances is a ErrorCode enum value
  10021. ErrorCodeNoInstances = "NO_INSTANCES"
  10022. // ErrorCodeTimeout is a ErrorCode enum value
  10023. ErrorCodeTimeout = "TIMEOUT"
  10024. // ErrorCodeHealthConstraintsInvalid is a ErrorCode enum value
  10025. ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID"
  10026. // ErrorCodeHealthConstraints is a ErrorCode enum value
  10027. ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS"
  10028. // ErrorCodeInternalError is a ErrorCode enum value
  10029. ErrorCodeInternalError = "INTERNAL_ERROR"
  10030. // ErrorCodeThrottled is a ErrorCode enum value
  10031. ErrorCodeThrottled = "THROTTLED"
  10032. // ErrorCodeAlarmActive is a ErrorCode enum value
  10033. ErrorCodeAlarmActive = "ALARM_ACTIVE"
  10034. // ErrorCodeAgentIssue is a ErrorCode enum value
  10035. ErrorCodeAgentIssue = "AGENT_ISSUE"
  10036. // ErrorCodeAutoScalingIamRolePermissions is a ErrorCode enum value
  10037. ErrorCodeAutoScalingIamRolePermissions = "AUTO_SCALING_IAM_ROLE_PERMISSIONS"
  10038. // ErrorCodeAutoScalingConfiguration is a ErrorCode enum value
  10039. ErrorCodeAutoScalingConfiguration = "AUTO_SCALING_CONFIGURATION"
  10040. // ErrorCodeManualStop is a ErrorCode enum value
  10041. ErrorCodeManualStop = "MANUAL_STOP"
  10042. // ErrorCodeMissingBlueGreenDeploymentConfiguration is a ErrorCode enum value
  10043. ErrorCodeMissingBlueGreenDeploymentConfiguration = "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION"
  10044. // ErrorCodeMissingElbInformation is a ErrorCode enum value
  10045. ErrorCodeMissingElbInformation = "MISSING_ELB_INFORMATION"
  10046. // ErrorCodeMissingGithubToken is a ErrorCode enum value
  10047. ErrorCodeMissingGithubToken = "MISSING_GITHUB_TOKEN"
  10048. // ErrorCodeElasticLoadBalancingInvalid is a ErrorCode enum value
  10049. ErrorCodeElasticLoadBalancingInvalid = "ELASTIC_LOAD_BALANCING_INVALID"
  10050. // ErrorCodeElbInvalidInstance is a ErrorCode enum value
  10051. ErrorCodeElbInvalidInstance = "ELB_INVALID_INSTANCE"
  10052. // ErrorCodeInvalidLambdaConfiguration is a ErrorCode enum value
  10053. ErrorCodeInvalidLambdaConfiguration = "INVALID_LAMBDA_CONFIGURATION"
  10054. // ErrorCodeInvalidLambdaFunction is a ErrorCode enum value
  10055. ErrorCodeInvalidLambdaFunction = "INVALID_LAMBDA_FUNCTION"
  10056. // ErrorCodeHookExecutionFailure is a ErrorCode enum value
  10057. ErrorCodeHookExecutionFailure = "HOOK_EXECUTION_FAILURE"
  10058. // ErrorCodeAutoscalingValidationError is a ErrorCode enum value
  10059. ErrorCodeAutoscalingValidationError = "AUTOSCALING_VALIDATION_ERROR"
  10060. // ErrorCodeInvalidEcsService is a ErrorCode enum value
  10061. ErrorCodeInvalidEcsService = "INVALID_ECS_SERVICE"
  10062. // ErrorCodeEcsUpdateError is a ErrorCode enum value
  10063. ErrorCodeEcsUpdateError = "ECS_UPDATE_ERROR"
  10064. // ErrorCodeInvalidRevision is a ErrorCode enum value
  10065. ErrorCodeInvalidRevision = "INVALID_REVISION"
  10066. )
  10067. const (
  10068. // FileExistsBehaviorDisallow is a FileExistsBehavior enum value
  10069. FileExistsBehaviorDisallow = "DISALLOW"
  10070. // FileExistsBehaviorOverwrite is a FileExistsBehavior enum value
  10071. FileExistsBehaviorOverwrite = "OVERWRITE"
  10072. // FileExistsBehaviorRetain is a FileExistsBehavior enum value
  10073. FileExistsBehaviorRetain = "RETAIN"
  10074. )
  10075. const (
  10076. // GreenFleetProvisioningActionDiscoverExisting is a GreenFleetProvisioningAction enum value
  10077. GreenFleetProvisioningActionDiscoverExisting = "DISCOVER_EXISTING"
  10078. // GreenFleetProvisioningActionCopyAutoScalingGroup is a GreenFleetProvisioningAction enum value
  10079. GreenFleetProvisioningActionCopyAutoScalingGroup = "COPY_AUTO_SCALING_GROUP"
  10080. )
  10081. const (
  10082. // InstanceActionTerminate is a InstanceAction enum value
  10083. InstanceActionTerminate = "TERMINATE"
  10084. // InstanceActionKeepAlive is a InstanceAction enum value
  10085. InstanceActionKeepAlive = "KEEP_ALIVE"
  10086. )
  10087. const (
  10088. // InstanceStatusPending is a InstanceStatus enum value
  10089. InstanceStatusPending = "Pending"
  10090. // InstanceStatusInProgress is a InstanceStatus enum value
  10091. InstanceStatusInProgress = "InProgress"
  10092. // InstanceStatusSucceeded is a InstanceStatus enum value
  10093. InstanceStatusSucceeded = "Succeeded"
  10094. // InstanceStatusFailed is a InstanceStatus enum value
  10095. InstanceStatusFailed = "Failed"
  10096. // InstanceStatusSkipped is a InstanceStatus enum value
  10097. InstanceStatusSkipped = "Skipped"
  10098. // InstanceStatusUnknown is a InstanceStatus enum value
  10099. InstanceStatusUnknown = "Unknown"
  10100. // InstanceStatusReady is a InstanceStatus enum value
  10101. InstanceStatusReady = "Ready"
  10102. )
  10103. const (
  10104. // InstanceTypeBlue is a InstanceType enum value
  10105. InstanceTypeBlue = "Blue"
  10106. // InstanceTypeGreen is a InstanceType enum value
  10107. InstanceTypeGreen = "Green"
  10108. )
  10109. const (
  10110. // LifecycleErrorCodeSuccess is a LifecycleErrorCode enum value
  10111. LifecycleErrorCodeSuccess = "Success"
  10112. // LifecycleErrorCodeScriptMissing is a LifecycleErrorCode enum value
  10113. LifecycleErrorCodeScriptMissing = "ScriptMissing"
  10114. // LifecycleErrorCodeScriptNotExecutable is a LifecycleErrorCode enum value
  10115. LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable"
  10116. // LifecycleErrorCodeScriptTimedOut is a LifecycleErrorCode enum value
  10117. LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut"
  10118. // LifecycleErrorCodeScriptFailed is a LifecycleErrorCode enum value
  10119. LifecycleErrorCodeScriptFailed = "ScriptFailed"
  10120. // LifecycleErrorCodeUnknownError is a LifecycleErrorCode enum value
  10121. LifecycleErrorCodeUnknownError = "UnknownError"
  10122. )
  10123. const (
  10124. // LifecycleEventStatusPending is a LifecycleEventStatus enum value
  10125. LifecycleEventStatusPending = "Pending"
  10126. // LifecycleEventStatusInProgress is a LifecycleEventStatus enum value
  10127. LifecycleEventStatusInProgress = "InProgress"
  10128. // LifecycleEventStatusSucceeded is a LifecycleEventStatus enum value
  10129. LifecycleEventStatusSucceeded = "Succeeded"
  10130. // LifecycleEventStatusFailed is a LifecycleEventStatus enum value
  10131. LifecycleEventStatusFailed = "Failed"
  10132. // LifecycleEventStatusSkipped is a LifecycleEventStatus enum value
  10133. LifecycleEventStatusSkipped = "Skipped"
  10134. // LifecycleEventStatusUnknown is a LifecycleEventStatus enum value
  10135. LifecycleEventStatusUnknown = "Unknown"
  10136. )
  10137. const (
  10138. // ListStateFilterActionInclude is a ListStateFilterAction enum value
  10139. ListStateFilterActionInclude = "include"
  10140. // ListStateFilterActionExclude is a ListStateFilterAction enum value
  10141. ListStateFilterActionExclude = "exclude"
  10142. // ListStateFilterActionIgnore is a ListStateFilterAction enum value
  10143. ListStateFilterActionIgnore = "ignore"
  10144. )
  10145. const (
  10146. // MinimumHealthyHostsTypeHostCount is a MinimumHealthyHostsType enum value
  10147. MinimumHealthyHostsTypeHostCount = "HOST_COUNT"
  10148. // MinimumHealthyHostsTypeFleetPercent is a MinimumHealthyHostsType enum value
  10149. MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT"
  10150. )
  10151. const (
  10152. // RegistrationStatusRegistered is a RegistrationStatus enum value
  10153. RegistrationStatusRegistered = "Registered"
  10154. // RegistrationStatusDeregistered is a RegistrationStatus enum value
  10155. RegistrationStatusDeregistered = "Deregistered"
  10156. )
  10157. const (
  10158. // RevisionLocationTypeS3 is a RevisionLocationType enum value
  10159. RevisionLocationTypeS3 = "S3"
  10160. // RevisionLocationTypeGitHub is a RevisionLocationType enum value
  10161. RevisionLocationTypeGitHub = "GitHub"
  10162. // RevisionLocationTypeString is a RevisionLocationType enum value
  10163. RevisionLocationTypeString = "String"
  10164. // RevisionLocationTypeAppSpecContent is a RevisionLocationType enum value
  10165. RevisionLocationTypeAppSpecContent = "AppSpecContent"
  10166. )
  10167. const (
  10168. // SortOrderAscending is a SortOrder enum value
  10169. SortOrderAscending = "ascending"
  10170. // SortOrderDescending is a SortOrder enum value
  10171. SortOrderDescending = "descending"
  10172. )
  10173. const (
  10174. // StopStatusPending is a StopStatus enum value
  10175. StopStatusPending = "Pending"
  10176. // StopStatusSucceeded is a StopStatus enum value
  10177. StopStatusSucceeded = "Succeeded"
  10178. )
  10179. const (
  10180. // TagFilterTypeKeyOnly is a TagFilterType enum value
  10181. TagFilterTypeKeyOnly = "KEY_ONLY"
  10182. // TagFilterTypeValueOnly is a TagFilterType enum value
  10183. TagFilterTypeValueOnly = "VALUE_ONLY"
  10184. // TagFilterTypeKeyAndValue is a TagFilterType enum value
  10185. TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
  10186. )
  10187. const (
  10188. // TargetFilterNameTargetStatus is a TargetFilterName enum value
  10189. TargetFilterNameTargetStatus = "TargetStatus"
  10190. // TargetFilterNameServerInstanceLabel is a TargetFilterName enum value
  10191. TargetFilterNameServerInstanceLabel = "ServerInstanceLabel"
  10192. )
  10193. const (
  10194. // TargetLabelBlue is a TargetLabel enum value
  10195. TargetLabelBlue = "Blue"
  10196. // TargetLabelGreen is a TargetLabel enum value
  10197. TargetLabelGreen = "Green"
  10198. )
  10199. const (
  10200. // TargetStatusPending is a TargetStatus enum value
  10201. TargetStatusPending = "Pending"
  10202. // TargetStatusInProgress is a TargetStatus enum value
  10203. TargetStatusInProgress = "InProgress"
  10204. // TargetStatusSucceeded is a TargetStatus enum value
  10205. TargetStatusSucceeded = "Succeeded"
  10206. // TargetStatusFailed is a TargetStatus enum value
  10207. TargetStatusFailed = "Failed"
  10208. // TargetStatusSkipped is a TargetStatus enum value
  10209. TargetStatusSkipped = "Skipped"
  10210. // TargetStatusUnknown is a TargetStatus enum value
  10211. TargetStatusUnknown = "Unknown"
  10212. // TargetStatusReady is a TargetStatus enum value
  10213. TargetStatusReady = "Ready"
  10214. )
  10215. const (
  10216. // TrafficRoutingTypeTimeBasedCanary is a TrafficRoutingType enum value
  10217. TrafficRoutingTypeTimeBasedCanary = "TimeBasedCanary"
  10218. // TrafficRoutingTypeTimeBasedLinear is a TrafficRoutingType enum value
  10219. TrafficRoutingTypeTimeBasedLinear = "TimeBasedLinear"
  10220. // TrafficRoutingTypeAllAtOnce is a TrafficRoutingType enum value
  10221. TrafficRoutingTypeAllAtOnce = "AllAtOnce"
  10222. )
  10223. const (
  10224. // TriggerEventTypeDeploymentStart is a TriggerEventType enum value
  10225. TriggerEventTypeDeploymentStart = "DeploymentStart"
  10226. // TriggerEventTypeDeploymentSuccess is a TriggerEventType enum value
  10227. TriggerEventTypeDeploymentSuccess = "DeploymentSuccess"
  10228. // TriggerEventTypeDeploymentFailure is a TriggerEventType enum value
  10229. TriggerEventTypeDeploymentFailure = "DeploymentFailure"
  10230. // TriggerEventTypeDeploymentStop is a TriggerEventType enum value
  10231. TriggerEventTypeDeploymentStop = "DeploymentStop"
  10232. // TriggerEventTypeDeploymentRollback is a TriggerEventType enum value
  10233. TriggerEventTypeDeploymentRollback = "DeploymentRollback"
  10234. // TriggerEventTypeDeploymentReady is a TriggerEventType enum value
  10235. TriggerEventTypeDeploymentReady = "DeploymentReady"
  10236. // TriggerEventTypeInstanceStart is a TriggerEventType enum value
  10237. TriggerEventTypeInstanceStart = "InstanceStart"
  10238. // TriggerEventTypeInstanceSuccess is a TriggerEventType enum value
  10239. TriggerEventTypeInstanceSuccess = "InstanceSuccess"
  10240. // TriggerEventTypeInstanceFailure is a TriggerEventType enum value
  10241. TriggerEventTypeInstanceFailure = "InstanceFailure"
  10242. // TriggerEventTypeInstanceReady is a TriggerEventType enum value
  10243. TriggerEventTypeInstanceReady = "InstanceReady"
  10244. )