api.go 220 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package codedeploy provides a client for AWS CodeDeploy.
  3. package codedeploy
  4. import (
  5. "time"
  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 can be used to capture response data after the request's "Send" method
  15. // is called.
  16. //
  17. // See AddTagsToOnPremisesInstances for usage and error information.
  18. //
  19. // Creating a request object using this method should be used when you want to inject
  20. // custom logic into the request's lifecycle using a custom handler, or if you want to
  21. // access properties on the request object before or after sending the request. If
  22. // you just want the service response, call the AddTagsToOnPremisesInstances method directly
  23. // instead.
  24. //
  25. // Note: You must call the "Send" method on the returned request object in order
  26. // to execute the request.
  27. //
  28. // // Example sending a request using the AddTagsToOnPremisesInstancesRequest method.
  29. // req, resp := client.AddTagsToOnPremisesInstancesRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  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. req = c.newRequest(op, input, output)
  46. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  47. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  48. output = &AddTagsToOnPremisesInstancesOutput{}
  49. req.Data = output
  50. return
  51. }
  52. // AddTagsToOnPremisesInstances API operation for AWS CodeDeploy.
  53. //
  54. // Adds tags to on-premises instances.
  55. //
  56. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  57. // with awserr.Error's Code and Message methods to get detailed information about
  58. // the error.
  59. //
  60. // See the AWS API reference guide for AWS CodeDeploy's
  61. // API operation AddTagsToOnPremisesInstances for usage and error information.
  62. //
  63. // Returned Error Codes:
  64. // * InstanceNameRequiredException
  65. // An on-premises instance name was not specified.
  66. //
  67. // * TagRequiredException
  68. // A tag was not specified.
  69. //
  70. // * InvalidTagException
  71. // The specified tag was specified in an invalid format.
  72. //
  73. // * TagLimitExceededException
  74. // The maximum allowed number of tags was exceeded.
  75. //
  76. // * InstanceLimitExceededException
  77. // The maximum number of allowed on-premises instances in a single call was
  78. // exceeded.
  79. //
  80. // * InstanceNotRegisteredException
  81. // The specified on-premises instance is not registered.
  82. //
  83. func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) {
  84. req, out := c.AddTagsToOnPremisesInstancesRequest(input)
  85. err := req.Send()
  86. return out, err
  87. }
  88. const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions"
  89. // BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the
  90. // client's request for the BatchGetApplicationRevisions operation. The "output" return
  91. // value can be used to capture response data after the request's "Send" method
  92. // is called.
  93. //
  94. // See BatchGetApplicationRevisions for usage and error information.
  95. //
  96. // Creating a request object using this method should be used when you want to inject
  97. // custom logic into the request's lifecycle using a custom handler, or if you want to
  98. // access properties on the request object before or after sending the request. If
  99. // you just want the service response, call the BatchGetApplicationRevisions method directly
  100. // instead.
  101. //
  102. // Note: You must call the "Send" method on the returned request object in order
  103. // to execute the request.
  104. //
  105. // // Example sending a request using the BatchGetApplicationRevisionsRequest method.
  106. // req, resp := client.BatchGetApplicationRevisionsRequest(params)
  107. //
  108. // err := req.Send()
  109. // if err == nil { // resp is now filled
  110. // fmt.Println(resp)
  111. // }
  112. //
  113. func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) {
  114. op := &request.Operation{
  115. Name: opBatchGetApplicationRevisions,
  116. HTTPMethod: "POST",
  117. HTTPPath: "/",
  118. }
  119. if input == nil {
  120. input = &BatchGetApplicationRevisionsInput{}
  121. }
  122. req = c.newRequest(op, input, output)
  123. output = &BatchGetApplicationRevisionsOutput{}
  124. req.Data = output
  125. return
  126. }
  127. // BatchGetApplicationRevisions API operation for AWS CodeDeploy.
  128. //
  129. // Gets information about one or more application revisions.
  130. //
  131. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  132. // with awserr.Error's Code and Message methods to get detailed information about
  133. // the error.
  134. //
  135. // See the AWS API reference guide for AWS CodeDeploy's
  136. // API operation BatchGetApplicationRevisions for usage and error information.
  137. //
  138. // Returned Error Codes:
  139. // * ApplicationDoesNotExistException
  140. // The application does not exist with the applicable IAM user or AWS account.
  141. //
  142. // * ApplicationNameRequiredException
  143. // The minimum number of required application names was not specified.
  144. //
  145. // * InvalidApplicationNameException
  146. // The application name was specified in an invalid format.
  147. //
  148. // * RevisionRequiredException
  149. // The revision ID was not specified.
  150. //
  151. // * InvalidRevisionException
  152. // The revision was specified in an invalid format.
  153. //
  154. // * BatchLimitExceededException
  155. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  156. //
  157. func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) {
  158. req, out := c.BatchGetApplicationRevisionsRequest(input)
  159. err := req.Send()
  160. return out, err
  161. }
  162. const opBatchGetApplications = "BatchGetApplications"
  163. // BatchGetApplicationsRequest generates a "aws/request.Request" representing the
  164. // client's request for the BatchGetApplications operation. The "output" return
  165. // value can be used to capture response data after the request's "Send" method
  166. // is called.
  167. //
  168. // See BatchGetApplications for usage and error information.
  169. //
  170. // Creating a request object using this method should be used when you want to inject
  171. // custom logic into the request's lifecycle using a custom handler, or if you want to
  172. // access properties on the request object before or after sending the request. If
  173. // you just want the service response, call the BatchGetApplications method directly
  174. // instead.
  175. //
  176. // Note: You must call the "Send" method on the returned request object in order
  177. // to execute the request.
  178. //
  179. // // Example sending a request using the BatchGetApplicationsRequest method.
  180. // req, resp := client.BatchGetApplicationsRequest(params)
  181. //
  182. // err := req.Send()
  183. // if err == nil { // resp is now filled
  184. // fmt.Println(resp)
  185. // }
  186. //
  187. func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput) {
  188. op := &request.Operation{
  189. Name: opBatchGetApplications,
  190. HTTPMethod: "POST",
  191. HTTPPath: "/",
  192. }
  193. if input == nil {
  194. input = &BatchGetApplicationsInput{}
  195. }
  196. req = c.newRequest(op, input, output)
  197. output = &BatchGetApplicationsOutput{}
  198. req.Data = output
  199. return
  200. }
  201. // BatchGetApplications API operation for AWS CodeDeploy.
  202. //
  203. // Gets information about one or more applications.
  204. //
  205. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  206. // with awserr.Error's Code and Message methods to get detailed information about
  207. // the error.
  208. //
  209. // See the AWS API reference guide for AWS CodeDeploy's
  210. // API operation BatchGetApplications for usage and error information.
  211. //
  212. // Returned Error Codes:
  213. // * ApplicationNameRequiredException
  214. // The minimum number of required application names was not specified.
  215. //
  216. // * InvalidApplicationNameException
  217. // The application name was specified in an invalid format.
  218. //
  219. // * ApplicationDoesNotExistException
  220. // The application does not exist with the applicable IAM user or AWS account.
  221. //
  222. // * BatchLimitExceededException
  223. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  224. //
  225. func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) {
  226. req, out := c.BatchGetApplicationsRequest(input)
  227. err := req.Send()
  228. return out, err
  229. }
  230. const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups"
  231. // BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the
  232. // client's request for the BatchGetDeploymentGroups operation. The "output" return
  233. // value can be used to capture response data after the request's "Send" method
  234. // is called.
  235. //
  236. // See BatchGetDeploymentGroups for usage and error information.
  237. //
  238. // Creating a request object using this method should be used when you want to inject
  239. // custom logic into the request's lifecycle using a custom handler, or if you want to
  240. // access properties on the request object before or after sending the request. If
  241. // you just want the service response, call the BatchGetDeploymentGroups method directly
  242. // instead.
  243. //
  244. // Note: You must call the "Send" method on the returned request object in order
  245. // to execute the request.
  246. //
  247. // // Example sending a request using the BatchGetDeploymentGroupsRequest method.
  248. // req, resp := client.BatchGetDeploymentGroupsRequest(params)
  249. //
  250. // err := req.Send()
  251. // if err == nil { // resp is now filled
  252. // fmt.Println(resp)
  253. // }
  254. //
  255. func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) {
  256. op := &request.Operation{
  257. Name: opBatchGetDeploymentGroups,
  258. HTTPMethod: "POST",
  259. HTTPPath: "/",
  260. }
  261. if input == nil {
  262. input = &BatchGetDeploymentGroupsInput{}
  263. }
  264. req = c.newRequest(op, input, output)
  265. output = &BatchGetDeploymentGroupsOutput{}
  266. req.Data = output
  267. return
  268. }
  269. // BatchGetDeploymentGroups API operation for AWS CodeDeploy.
  270. //
  271. // Get information about one or more deployment groups.
  272. //
  273. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  274. // with awserr.Error's Code and Message methods to get detailed information about
  275. // the error.
  276. //
  277. // See the AWS API reference guide for AWS CodeDeploy's
  278. // API operation BatchGetDeploymentGroups for usage and error information.
  279. //
  280. // Returned Error Codes:
  281. // * ApplicationNameRequiredException
  282. // The minimum number of required application names was not specified.
  283. //
  284. // * InvalidApplicationNameException
  285. // The application name was specified in an invalid format.
  286. //
  287. // * ApplicationDoesNotExistException
  288. // The application does not exist with the applicable IAM user or AWS account.
  289. //
  290. // * DeploymentGroupNameRequiredException
  291. // The deployment group name was not specified.
  292. //
  293. // * InvalidDeploymentGroupNameException
  294. // The deployment group name was specified in an invalid format.
  295. //
  296. // * BatchLimitExceededException
  297. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  298. //
  299. func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) {
  300. req, out := c.BatchGetDeploymentGroupsRequest(input)
  301. err := req.Send()
  302. return out, err
  303. }
  304. const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances"
  305. // BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the
  306. // client's request for the BatchGetDeploymentInstances operation. The "output" return
  307. // value can be used to capture response data after the request's "Send" method
  308. // is called.
  309. //
  310. // See BatchGetDeploymentInstances for usage and error information.
  311. //
  312. // Creating a request object using this method should be used when you want to inject
  313. // custom logic into the request's lifecycle using a custom handler, or if you want to
  314. // access properties on the request object before or after sending the request. If
  315. // you just want the service response, call the BatchGetDeploymentInstances method directly
  316. // instead.
  317. //
  318. // Note: You must call the "Send" method on the returned request object in order
  319. // to execute the request.
  320. //
  321. // // Example sending a request using the BatchGetDeploymentInstancesRequest method.
  322. // req, resp := client.BatchGetDeploymentInstancesRequest(params)
  323. //
  324. // err := req.Send()
  325. // if err == nil { // resp is now filled
  326. // fmt.Println(resp)
  327. // }
  328. //
  329. func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) {
  330. op := &request.Operation{
  331. Name: opBatchGetDeploymentInstances,
  332. HTTPMethod: "POST",
  333. HTTPPath: "/",
  334. }
  335. if input == nil {
  336. input = &BatchGetDeploymentInstancesInput{}
  337. }
  338. req = c.newRequest(op, input, output)
  339. output = &BatchGetDeploymentInstancesOutput{}
  340. req.Data = output
  341. return
  342. }
  343. // BatchGetDeploymentInstances API operation for AWS CodeDeploy.
  344. //
  345. // Gets information about one or more instance that are part of a deployment
  346. // group.
  347. //
  348. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  349. // with awserr.Error's Code and Message methods to get detailed information about
  350. // the error.
  351. //
  352. // See the AWS API reference guide for AWS CodeDeploy's
  353. // API operation BatchGetDeploymentInstances for usage and error information.
  354. //
  355. // Returned Error Codes:
  356. // * DeploymentIdRequiredException
  357. // At least one deployment ID must be specified.
  358. //
  359. // * DeploymentDoesNotExistException
  360. // The deployment does not exist with the applicable IAM user or AWS account.
  361. //
  362. // * InstanceIdRequiredException
  363. // The instance ID was not specified.
  364. //
  365. // * InvalidDeploymentIdException
  366. // At least one of the deployment IDs was specified in an invalid format.
  367. //
  368. // * InvalidInstanceNameException
  369. // The specified on-premises instance name was specified in an invalid format.
  370. //
  371. // * BatchLimitExceededException
  372. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  373. //
  374. func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) {
  375. req, out := c.BatchGetDeploymentInstancesRequest(input)
  376. err := req.Send()
  377. return out, err
  378. }
  379. const opBatchGetDeployments = "BatchGetDeployments"
  380. // BatchGetDeploymentsRequest generates a "aws/request.Request" representing the
  381. // client's request for the BatchGetDeployments operation. The "output" return
  382. // value can be used to capture response data after the request's "Send" method
  383. // is called.
  384. //
  385. // See BatchGetDeployments for usage and error information.
  386. //
  387. // Creating a request object using this method should be used when you want to inject
  388. // custom logic into the request's lifecycle using a custom handler, or if you want to
  389. // access properties on the request object before or after sending the request. If
  390. // you just want the service response, call the BatchGetDeployments method directly
  391. // instead.
  392. //
  393. // Note: You must call the "Send" method on the returned request object in order
  394. // to execute the request.
  395. //
  396. // // Example sending a request using the BatchGetDeploymentsRequest method.
  397. // req, resp := client.BatchGetDeploymentsRequest(params)
  398. //
  399. // err := req.Send()
  400. // if err == nil { // resp is now filled
  401. // fmt.Println(resp)
  402. // }
  403. //
  404. func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput) {
  405. op := &request.Operation{
  406. Name: opBatchGetDeployments,
  407. HTTPMethod: "POST",
  408. HTTPPath: "/",
  409. }
  410. if input == nil {
  411. input = &BatchGetDeploymentsInput{}
  412. }
  413. req = c.newRequest(op, input, output)
  414. output = &BatchGetDeploymentsOutput{}
  415. req.Data = output
  416. return
  417. }
  418. // BatchGetDeployments API operation for AWS CodeDeploy.
  419. //
  420. // Gets information about one or more deployments.
  421. //
  422. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  423. // with awserr.Error's Code and Message methods to get detailed information about
  424. // the error.
  425. //
  426. // See the AWS API reference guide for AWS CodeDeploy's
  427. // API operation BatchGetDeployments for usage and error information.
  428. //
  429. // Returned Error Codes:
  430. // * DeploymentIdRequiredException
  431. // At least one deployment ID must be specified.
  432. //
  433. // * InvalidDeploymentIdException
  434. // At least one of the deployment IDs was specified in an invalid format.
  435. //
  436. // * BatchLimitExceededException
  437. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  438. //
  439. func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) {
  440. req, out := c.BatchGetDeploymentsRequest(input)
  441. err := req.Send()
  442. return out, err
  443. }
  444. const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances"
  445. // BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  446. // client's request for the BatchGetOnPremisesInstances operation. The "output" return
  447. // value can be used to capture response data after the request's "Send" method
  448. // is called.
  449. //
  450. // See BatchGetOnPremisesInstances for usage and error information.
  451. //
  452. // Creating a request object using this method should be used when you want to inject
  453. // custom logic into the request's lifecycle using a custom handler, or if you want to
  454. // access properties on the request object before or after sending the request. If
  455. // you just want the service response, call the BatchGetOnPremisesInstances method directly
  456. // instead.
  457. //
  458. // Note: You must call the "Send" method on the returned request object in order
  459. // to execute the request.
  460. //
  461. // // Example sending a request using the BatchGetOnPremisesInstancesRequest method.
  462. // req, resp := client.BatchGetOnPremisesInstancesRequest(params)
  463. //
  464. // err := req.Send()
  465. // if err == nil { // resp is now filled
  466. // fmt.Println(resp)
  467. // }
  468. //
  469. func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput) {
  470. op := &request.Operation{
  471. Name: opBatchGetOnPremisesInstances,
  472. HTTPMethod: "POST",
  473. HTTPPath: "/",
  474. }
  475. if input == nil {
  476. input = &BatchGetOnPremisesInstancesInput{}
  477. }
  478. req = c.newRequest(op, input, output)
  479. output = &BatchGetOnPremisesInstancesOutput{}
  480. req.Data = output
  481. return
  482. }
  483. // BatchGetOnPremisesInstances API operation for AWS CodeDeploy.
  484. //
  485. // Gets information about one or more on-premises instances.
  486. //
  487. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  488. // with awserr.Error's Code and Message methods to get detailed information about
  489. // the error.
  490. //
  491. // See the AWS API reference guide for AWS CodeDeploy's
  492. // API operation BatchGetOnPremisesInstances for usage and error information.
  493. //
  494. // Returned Error Codes:
  495. // * InstanceNameRequiredException
  496. // An on-premises instance name was not specified.
  497. //
  498. // * InvalidInstanceNameException
  499. // The specified on-premises instance name was specified in an invalid format.
  500. //
  501. // * BatchLimitExceededException
  502. // The maximum number of names or IDs allowed for this request (100) was exceeded.
  503. //
  504. func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) {
  505. req, out := c.BatchGetOnPremisesInstancesRequest(input)
  506. err := req.Send()
  507. return out, err
  508. }
  509. const opCreateApplication = "CreateApplication"
  510. // CreateApplicationRequest generates a "aws/request.Request" representing the
  511. // client's request for the CreateApplication operation. The "output" return
  512. // value can be used to capture response data after the request's "Send" method
  513. // is called.
  514. //
  515. // See CreateApplication for usage and error information.
  516. //
  517. // Creating a request object using this method should be used when you want to inject
  518. // custom logic into the request's lifecycle using a custom handler, or if you want to
  519. // access properties on the request object before or after sending the request. If
  520. // you just want the service response, call the CreateApplication method directly
  521. // instead.
  522. //
  523. // Note: You must call the "Send" method on the returned request object in order
  524. // to execute the request.
  525. //
  526. // // Example sending a request using the CreateApplicationRequest method.
  527. // req, resp := client.CreateApplicationRequest(params)
  528. //
  529. // err := req.Send()
  530. // if err == nil { // resp is now filled
  531. // fmt.Println(resp)
  532. // }
  533. //
  534. func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
  535. op := &request.Operation{
  536. Name: opCreateApplication,
  537. HTTPMethod: "POST",
  538. HTTPPath: "/",
  539. }
  540. if input == nil {
  541. input = &CreateApplicationInput{}
  542. }
  543. req = c.newRequest(op, input, output)
  544. output = &CreateApplicationOutput{}
  545. req.Data = output
  546. return
  547. }
  548. // CreateApplication API operation for AWS CodeDeploy.
  549. //
  550. // Creates an application.
  551. //
  552. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  553. // with awserr.Error's Code and Message methods to get detailed information about
  554. // the error.
  555. //
  556. // See the AWS API reference guide for AWS CodeDeploy's
  557. // API operation CreateApplication for usage and error information.
  558. //
  559. // Returned Error Codes:
  560. // * ApplicationNameRequiredException
  561. // The minimum number of required application names was not specified.
  562. //
  563. // * InvalidApplicationNameException
  564. // The application name was specified in an invalid format.
  565. //
  566. // * ApplicationAlreadyExistsException
  567. // An application with the specified name already exists with the applicable
  568. // IAM user or AWS account.
  569. //
  570. // * ApplicationLimitExceededException
  571. // More applications were attempted to be created than are allowed.
  572. //
  573. func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
  574. req, out := c.CreateApplicationRequest(input)
  575. err := req.Send()
  576. return out, err
  577. }
  578. const opCreateDeployment = "CreateDeployment"
  579. // CreateDeploymentRequest generates a "aws/request.Request" representing the
  580. // client's request for the CreateDeployment operation. The "output" return
  581. // value can be used to capture response data after the request's "Send" method
  582. // is called.
  583. //
  584. // See CreateDeployment for usage and error information.
  585. //
  586. // Creating a request object using this method should be used when you want to inject
  587. // custom logic into the request's lifecycle using a custom handler, or if you want to
  588. // access properties on the request object before or after sending the request. If
  589. // you just want the service response, call the CreateDeployment method directly
  590. // instead.
  591. //
  592. // Note: You must call the "Send" method on the returned request object in order
  593. // to execute the request.
  594. //
  595. // // Example sending a request using the CreateDeploymentRequest method.
  596. // req, resp := client.CreateDeploymentRequest(params)
  597. //
  598. // err := req.Send()
  599. // if err == nil { // resp is now filled
  600. // fmt.Println(resp)
  601. // }
  602. //
  603. func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
  604. op := &request.Operation{
  605. Name: opCreateDeployment,
  606. HTTPMethod: "POST",
  607. HTTPPath: "/",
  608. }
  609. if input == nil {
  610. input = &CreateDeploymentInput{}
  611. }
  612. req = c.newRequest(op, input, output)
  613. output = &CreateDeploymentOutput{}
  614. req.Data = output
  615. return
  616. }
  617. // CreateDeployment API operation for AWS CodeDeploy.
  618. //
  619. // Deploys an application revision through the specified deployment group.
  620. //
  621. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  622. // with awserr.Error's Code and Message methods to get detailed information about
  623. // the error.
  624. //
  625. // See the AWS API reference guide for AWS CodeDeploy's
  626. // API operation CreateDeployment for usage and error information.
  627. //
  628. // Returned Error Codes:
  629. // * ApplicationNameRequiredException
  630. // The minimum number of required application names was not specified.
  631. //
  632. // * InvalidApplicationNameException
  633. // The application name was specified in an invalid format.
  634. //
  635. // * ApplicationDoesNotExistException
  636. // The application does not exist with the applicable IAM user or AWS account.
  637. //
  638. // * DeploymentGroupNameRequiredException
  639. // The deployment group name was not specified.
  640. //
  641. // * InvalidDeploymentGroupNameException
  642. // The deployment group name was specified in an invalid format.
  643. //
  644. // * DeploymentGroupDoesNotExistException
  645. // The named deployment group does not exist with the applicable IAM user or
  646. // AWS account.
  647. //
  648. // * RevisionRequiredException
  649. // The revision ID was not specified.
  650. //
  651. // * RevisionDoesNotExistException
  652. // The named revision does not exist with the applicable IAM user or AWS account.
  653. //
  654. // * InvalidRevisionException
  655. // The revision was specified in an invalid format.
  656. //
  657. // * InvalidDeploymentConfigNameException
  658. // The deployment configuration name was specified in an invalid format.
  659. //
  660. // * DeploymentConfigDoesNotExistException
  661. // The deployment configuration does not exist with the applicable IAM user
  662. // or AWS account.
  663. //
  664. // * DescriptionTooLongException
  665. // The description is too long.
  666. //
  667. // * DeploymentLimitExceededException
  668. // The number of allowed deployments was exceeded.
  669. //
  670. // * InvalidAutoRollbackConfigException
  671. // The automatic rollback configuration was specified in an invalid format.
  672. // For example, automatic rollback is enabled but an invalid triggering event
  673. // type or no event types were listed.
  674. //
  675. func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
  676. req, out := c.CreateDeploymentRequest(input)
  677. err := req.Send()
  678. return out, err
  679. }
  680. const opCreateDeploymentConfig = "CreateDeploymentConfig"
  681. // CreateDeploymentConfigRequest generates a "aws/request.Request" representing the
  682. // client's request for the CreateDeploymentConfig operation. The "output" return
  683. // value can be used to capture response data after the request's "Send" method
  684. // is called.
  685. //
  686. // See CreateDeploymentConfig for usage and error information.
  687. //
  688. // Creating a request object using this method should be used when you want to inject
  689. // custom logic into the request's lifecycle using a custom handler, or if you want to
  690. // access properties on the request object before or after sending the request. If
  691. // you just want the service response, call the CreateDeploymentConfig method directly
  692. // instead.
  693. //
  694. // Note: You must call the "Send" method on the returned request object in order
  695. // to execute the request.
  696. //
  697. // // Example sending a request using the CreateDeploymentConfigRequest method.
  698. // req, resp := client.CreateDeploymentConfigRequest(params)
  699. //
  700. // err := req.Send()
  701. // if err == nil { // resp is now filled
  702. // fmt.Println(resp)
  703. // }
  704. //
  705. func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput) {
  706. op := &request.Operation{
  707. Name: opCreateDeploymentConfig,
  708. HTTPMethod: "POST",
  709. HTTPPath: "/",
  710. }
  711. if input == nil {
  712. input = &CreateDeploymentConfigInput{}
  713. }
  714. req = c.newRequest(op, input, output)
  715. output = &CreateDeploymentConfigOutput{}
  716. req.Data = output
  717. return
  718. }
  719. // CreateDeploymentConfig API operation for AWS CodeDeploy.
  720. //
  721. // Creates a deployment configuration.
  722. //
  723. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  724. // with awserr.Error's Code and Message methods to get detailed information about
  725. // the error.
  726. //
  727. // See the AWS API reference guide for AWS CodeDeploy's
  728. // API operation CreateDeploymentConfig for usage and error information.
  729. //
  730. // Returned Error Codes:
  731. // * InvalidDeploymentConfigNameException
  732. // The deployment configuration name was specified in an invalid format.
  733. //
  734. // * DeploymentConfigNameRequiredException
  735. // The deployment configuration name was not specified.
  736. //
  737. // * DeploymentConfigAlreadyExistsException
  738. // A deployment configuration with the specified name already exists with the
  739. // applicable IAM user or AWS account.
  740. //
  741. // * InvalidMinimumHealthyHostValueException
  742. // The minimum healthy instance value was specified in an invalid format.
  743. //
  744. // * DeploymentConfigLimitExceededException
  745. // The deployment configurations limit was exceeded.
  746. //
  747. func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) {
  748. req, out := c.CreateDeploymentConfigRequest(input)
  749. err := req.Send()
  750. return out, err
  751. }
  752. const opCreateDeploymentGroup = "CreateDeploymentGroup"
  753. // CreateDeploymentGroupRequest generates a "aws/request.Request" representing the
  754. // client's request for the CreateDeploymentGroup operation. The "output" return
  755. // value can be used to capture response data after the request's "Send" method
  756. // is called.
  757. //
  758. // See CreateDeploymentGroup for usage and error information.
  759. //
  760. // Creating a request object using this method should be used when you want to inject
  761. // custom logic into the request's lifecycle using a custom handler, or if you want to
  762. // access properties on the request object before or after sending the request. If
  763. // you just want the service response, call the CreateDeploymentGroup method directly
  764. // instead.
  765. //
  766. // Note: You must call the "Send" method on the returned request object in order
  767. // to execute the request.
  768. //
  769. // // Example sending a request using the CreateDeploymentGroupRequest method.
  770. // req, resp := client.CreateDeploymentGroupRequest(params)
  771. //
  772. // err := req.Send()
  773. // if err == nil { // resp is now filled
  774. // fmt.Println(resp)
  775. // }
  776. //
  777. func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput) {
  778. op := &request.Operation{
  779. Name: opCreateDeploymentGroup,
  780. HTTPMethod: "POST",
  781. HTTPPath: "/",
  782. }
  783. if input == nil {
  784. input = &CreateDeploymentGroupInput{}
  785. }
  786. req = c.newRequest(op, input, output)
  787. output = &CreateDeploymentGroupOutput{}
  788. req.Data = output
  789. return
  790. }
  791. // CreateDeploymentGroup API operation for AWS CodeDeploy.
  792. //
  793. // Creates a deployment group to which application revisions will be deployed.
  794. //
  795. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  796. // with awserr.Error's Code and Message methods to get detailed information about
  797. // the error.
  798. //
  799. // See the AWS API reference guide for AWS CodeDeploy's
  800. // API operation CreateDeploymentGroup for usage and error information.
  801. //
  802. // Returned Error Codes:
  803. // * ApplicationNameRequiredException
  804. // The minimum number of required application names was not specified.
  805. //
  806. // * InvalidApplicationNameException
  807. // The application name was specified in an invalid format.
  808. //
  809. // * ApplicationDoesNotExistException
  810. // The application does not exist with the applicable IAM user or AWS account.
  811. //
  812. // * DeploymentGroupNameRequiredException
  813. // The deployment group name was not specified.
  814. //
  815. // * InvalidDeploymentGroupNameException
  816. // The deployment group name was specified in an invalid format.
  817. //
  818. // * DeploymentGroupAlreadyExistsException
  819. // A deployment group with the specified name already exists with the applicable
  820. // IAM user or AWS account.
  821. //
  822. // * InvalidEC2TagException
  823. // The tag was specified in an invalid format.
  824. //
  825. // * InvalidTagException
  826. // The specified tag was specified in an invalid format.
  827. //
  828. // * InvalidAutoScalingGroupException
  829. // The Auto Scaling group was specified in an invalid format or does not exist.
  830. //
  831. // * InvalidDeploymentConfigNameException
  832. // The deployment configuration name was specified in an invalid format.
  833. //
  834. // * DeploymentConfigDoesNotExistException
  835. // The deployment configuration does not exist with the applicable IAM user
  836. // or AWS account.
  837. //
  838. // * RoleRequiredException
  839. // The role ID was not specified.
  840. //
  841. // * InvalidRoleException
  842. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  843. // group was specified, the specified service role does not grant the appropriate
  844. // permissions to Auto Scaling.
  845. //
  846. // * DeploymentGroupLimitExceededException
  847. // The deployment groups limit was exceeded.
  848. //
  849. // * LifecycleHookLimitExceededException
  850. // The limit for lifecycle hooks was exceeded.
  851. //
  852. // * InvalidTriggerConfigException
  853. // The trigger was specified in an invalid format.
  854. //
  855. // * TriggerTargetsLimitExceededException
  856. // The maximum allowed number of triggers was exceeded.
  857. //
  858. // * InvalidAlarmConfigException
  859. // The format of the alarm configuration is invalid. Possible causes include:
  860. //
  861. // * The alarm list is null.
  862. //
  863. // * The alarm object is null.
  864. //
  865. // * The alarm name is empty or null or exceeds the 255 character limit.
  866. //
  867. // * Two alarms with the same name have been specified.
  868. //
  869. // * The alarm configuration is enabled but the alarm list is empty.
  870. //
  871. // * AlarmsLimitExceededException
  872. // The maximum number of alarms for a deployment group (10) was exceeded.
  873. //
  874. // * InvalidAutoRollbackConfigException
  875. // The automatic rollback configuration was specified in an invalid format.
  876. // For example, automatic rollback is enabled but an invalid triggering event
  877. // type or no event types were listed.
  878. //
  879. func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) {
  880. req, out := c.CreateDeploymentGroupRequest(input)
  881. err := req.Send()
  882. return out, err
  883. }
  884. const opDeleteApplication = "DeleteApplication"
  885. // DeleteApplicationRequest generates a "aws/request.Request" representing the
  886. // client's request for the DeleteApplication operation. The "output" return
  887. // value can be used to capture response data after the request's "Send" method
  888. // is called.
  889. //
  890. // See DeleteApplication for usage and error information.
  891. //
  892. // Creating a request object using this method should be used when you want to inject
  893. // custom logic into the request's lifecycle using a custom handler, or if you want to
  894. // access properties on the request object before or after sending the request. If
  895. // you just want the service response, call the DeleteApplication method directly
  896. // instead.
  897. //
  898. // Note: You must call the "Send" method on the returned request object in order
  899. // to execute the request.
  900. //
  901. // // Example sending a request using the DeleteApplicationRequest method.
  902. // req, resp := client.DeleteApplicationRequest(params)
  903. //
  904. // err := req.Send()
  905. // if err == nil { // resp is now filled
  906. // fmt.Println(resp)
  907. // }
  908. //
  909. func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
  910. op := &request.Operation{
  911. Name: opDeleteApplication,
  912. HTTPMethod: "POST",
  913. HTTPPath: "/",
  914. }
  915. if input == nil {
  916. input = &DeleteApplicationInput{}
  917. }
  918. req = c.newRequest(op, input, output)
  919. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  920. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  921. output = &DeleteApplicationOutput{}
  922. req.Data = output
  923. return
  924. }
  925. // DeleteApplication API operation for AWS CodeDeploy.
  926. //
  927. // Deletes an application.
  928. //
  929. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  930. // with awserr.Error's Code and Message methods to get detailed information about
  931. // the error.
  932. //
  933. // See the AWS API reference guide for AWS CodeDeploy's
  934. // API operation DeleteApplication for usage and error information.
  935. //
  936. // Returned Error Codes:
  937. // * ApplicationNameRequiredException
  938. // The minimum number of required application names was not specified.
  939. //
  940. // * InvalidApplicationNameException
  941. // The application name was specified in an invalid format.
  942. //
  943. func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
  944. req, out := c.DeleteApplicationRequest(input)
  945. err := req.Send()
  946. return out, err
  947. }
  948. const opDeleteDeploymentConfig = "DeleteDeploymentConfig"
  949. // DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the
  950. // client's request for the DeleteDeploymentConfig operation. The "output" return
  951. // value can be used to capture response data after the request's "Send" method
  952. // is called.
  953. //
  954. // See DeleteDeploymentConfig for usage and error information.
  955. //
  956. // Creating a request object using this method should be used when you want to inject
  957. // custom logic into the request's lifecycle using a custom handler, or if you want to
  958. // access properties on the request object before or after sending the request. If
  959. // you just want the service response, call the DeleteDeploymentConfig method directly
  960. // instead.
  961. //
  962. // Note: You must call the "Send" method on the returned request object in order
  963. // to execute the request.
  964. //
  965. // // Example sending a request using the DeleteDeploymentConfigRequest method.
  966. // req, resp := client.DeleteDeploymentConfigRequest(params)
  967. //
  968. // err := req.Send()
  969. // if err == nil { // resp is now filled
  970. // fmt.Println(resp)
  971. // }
  972. //
  973. func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput) {
  974. op := &request.Operation{
  975. Name: opDeleteDeploymentConfig,
  976. HTTPMethod: "POST",
  977. HTTPPath: "/",
  978. }
  979. if input == nil {
  980. input = &DeleteDeploymentConfigInput{}
  981. }
  982. req = c.newRequest(op, input, output)
  983. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  984. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  985. output = &DeleteDeploymentConfigOutput{}
  986. req.Data = output
  987. return
  988. }
  989. // DeleteDeploymentConfig API operation for AWS CodeDeploy.
  990. //
  991. // Deletes a deployment configuration.
  992. //
  993. // A deployment configuration cannot be deleted if it is currently in use. Predefined
  994. // configurations cannot be deleted.
  995. //
  996. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  997. // with awserr.Error's Code and Message methods to get detailed information about
  998. // the error.
  999. //
  1000. // See the AWS API reference guide for AWS CodeDeploy's
  1001. // API operation DeleteDeploymentConfig for usage and error information.
  1002. //
  1003. // Returned Error Codes:
  1004. // * InvalidDeploymentConfigNameException
  1005. // The deployment configuration name was specified in an invalid format.
  1006. //
  1007. // * DeploymentConfigNameRequiredException
  1008. // The deployment configuration name was not specified.
  1009. //
  1010. // * DeploymentConfigInUseException
  1011. // The deployment configuration is still in use.
  1012. //
  1013. // * InvalidOperationException
  1014. // An invalid operation was detected.
  1015. //
  1016. func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) {
  1017. req, out := c.DeleteDeploymentConfigRequest(input)
  1018. err := req.Send()
  1019. return out, err
  1020. }
  1021. const opDeleteDeploymentGroup = "DeleteDeploymentGroup"
  1022. // DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the
  1023. // client's request for the DeleteDeploymentGroup operation. The "output" return
  1024. // value can be used to capture response data after the request's "Send" method
  1025. // is called.
  1026. //
  1027. // See DeleteDeploymentGroup for usage and error information.
  1028. //
  1029. // Creating a request object using this method should be used when you want to inject
  1030. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1031. // access properties on the request object before or after sending the request. If
  1032. // you just want the service response, call the DeleteDeploymentGroup method directly
  1033. // instead.
  1034. //
  1035. // Note: You must call the "Send" method on the returned request object in order
  1036. // to execute the request.
  1037. //
  1038. // // Example sending a request using the DeleteDeploymentGroupRequest method.
  1039. // req, resp := client.DeleteDeploymentGroupRequest(params)
  1040. //
  1041. // err := req.Send()
  1042. // if err == nil { // resp is now filled
  1043. // fmt.Println(resp)
  1044. // }
  1045. //
  1046. func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput) {
  1047. op := &request.Operation{
  1048. Name: opDeleteDeploymentGroup,
  1049. HTTPMethod: "POST",
  1050. HTTPPath: "/",
  1051. }
  1052. if input == nil {
  1053. input = &DeleteDeploymentGroupInput{}
  1054. }
  1055. req = c.newRequest(op, input, output)
  1056. output = &DeleteDeploymentGroupOutput{}
  1057. req.Data = output
  1058. return
  1059. }
  1060. // DeleteDeploymentGroup API operation for AWS CodeDeploy.
  1061. //
  1062. // Deletes a deployment group.
  1063. //
  1064. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1065. // with awserr.Error's Code and Message methods to get detailed information about
  1066. // the error.
  1067. //
  1068. // See the AWS API reference guide for AWS CodeDeploy's
  1069. // API operation DeleteDeploymentGroup for usage and error information.
  1070. //
  1071. // Returned Error Codes:
  1072. // * ApplicationNameRequiredException
  1073. // The minimum number of required application names was not specified.
  1074. //
  1075. // * InvalidApplicationNameException
  1076. // The application name was specified in an invalid format.
  1077. //
  1078. // * DeploymentGroupNameRequiredException
  1079. // The deployment group name was not specified.
  1080. //
  1081. // * InvalidDeploymentGroupNameException
  1082. // The deployment group name was specified in an invalid format.
  1083. //
  1084. // * InvalidRoleException
  1085. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  1086. // group was specified, the specified service role does not grant the appropriate
  1087. // permissions to Auto Scaling.
  1088. //
  1089. func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) {
  1090. req, out := c.DeleteDeploymentGroupRequest(input)
  1091. err := req.Send()
  1092. return out, err
  1093. }
  1094. const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance"
  1095. // DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  1096. // client's request for the DeregisterOnPremisesInstance operation. The "output" return
  1097. // value can be used to capture response data after the request's "Send" method
  1098. // is called.
  1099. //
  1100. // See DeregisterOnPremisesInstance for usage and error information.
  1101. //
  1102. // Creating a request object using this method should be used when you want to inject
  1103. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1104. // access properties on the request object before or after sending the request. If
  1105. // you just want the service response, call the DeregisterOnPremisesInstance method directly
  1106. // instead.
  1107. //
  1108. // Note: You must call the "Send" method on the returned request object in order
  1109. // to execute the request.
  1110. //
  1111. // // Example sending a request using the DeregisterOnPremisesInstanceRequest method.
  1112. // req, resp := client.DeregisterOnPremisesInstanceRequest(params)
  1113. //
  1114. // err := req.Send()
  1115. // if err == nil { // resp is now filled
  1116. // fmt.Println(resp)
  1117. // }
  1118. //
  1119. func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput) {
  1120. op := &request.Operation{
  1121. Name: opDeregisterOnPremisesInstance,
  1122. HTTPMethod: "POST",
  1123. HTTPPath: "/",
  1124. }
  1125. if input == nil {
  1126. input = &DeregisterOnPremisesInstanceInput{}
  1127. }
  1128. req = c.newRequest(op, input, output)
  1129. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1130. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1131. output = &DeregisterOnPremisesInstanceOutput{}
  1132. req.Data = output
  1133. return
  1134. }
  1135. // DeregisterOnPremisesInstance API operation for AWS CodeDeploy.
  1136. //
  1137. // Deregisters an on-premises instance.
  1138. //
  1139. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1140. // with awserr.Error's Code and Message methods to get detailed information about
  1141. // the error.
  1142. //
  1143. // See the AWS API reference guide for AWS CodeDeploy's
  1144. // API operation DeregisterOnPremisesInstance for usage and error information.
  1145. //
  1146. // Returned Error Codes:
  1147. // * InstanceNameRequiredException
  1148. // An on-premises instance name was not specified.
  1149. //
  1150. // * InvalidInstanceNameException
  1151. // The specified on-premises instance name was specified in an invalid format.
  1152. //
  1153. func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) {
  1154. req, out := c.DeregisterOnPremisesInstanceRequest(input)
  1155. err := req.Send()
  1156. return out, err
  1157. }
  1158. const opGetApplication = "GetApplication"
  1159. // GetApplicationRequest generates a "aws/request.Request" representing the
  1160. // client's request for the GetApplication operation. The "output" return
  1161. // value can be used to capture response data after the request's "Send" method
  1162. // is called.
  1163. //
  1164. // See GetApplication for usage and error information.
  1165. //
  1166. // Creating a request object using this method should be used when you want to inject
  1167. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1168. // access properties on the request object before or after sending the request. If
  1169. // you just want the service response, call the GetApplication method directly
  1170. // instead.
  1171. //
  1172. // Note: You must call the "Send" method on the returned request object in order
  1173. // to execute the request.
  1174. //
  1175. // // Example sending a request using the GetApplicationRequest method.
  1176. // req, resp := client.GetApplicationRequest(params)
  1177. //
  1178. // err := req.Send()
  1179. // if err == nil { // resp is now filled
  1180. // fmt.Println(resp)
  1181. // }
  1182. //
  1183. func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) {
  1184. op := &request.Operation{
  1185. Name: opGetApplication,
  1186. HTTPMethod: "POST",
  1187. HTTPPath: "/",
  1188. }
  1189. if input == nil {
  1190. input = &GetApplicationInput{}
  1191. }
  1192. req = c.newRequest(op, input, output)
  1193. output = &GetApplicationOutput{}
  1194. req.Data = output
  1195. return
  1196. }
  1197. // GetApplication API operation for AWS CodeDeploy.
  1198. //
  1199. // Gets information about an application.
  1200. //
  1201. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1202. // with awserr.Error's Code and Message methods to get detailed information about
  1203. // the error.
  1204. //
  1205. // See the AWS API reference guide for AWS CodeDeploy's
  1206. // API operation GetApplication for usage and error information.
  1207. //
  1208. // Returned Error Codes:
  1209. // * ApplicationNameRequiredException
  1210. // The minimum number of required application names was not specified.
  1211. //
  1212. // * InvalidApplicationNameException
  1213. // The application name was specified in an invalid format.
  1214. //
  1215. // * ApplicationDoesNotExistException
  1216. // The application does not exist with the applicable IAM user or AWS account.
  1217. //
  1218. func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
  1219. req, out := c.GetApplicationRequest(input)
  1220. err := req.Send()
  1221. return out, err
  1222. }
  1223. const opGetApplicationRevision = "GetApplicationRevision"
  1224. // GetApplicationRevisionRequest generates a "aws/request.Request" representing the
  1225. // client's request for the GetApplicationRevision operation. The "output" return
  1226. // value can be used to capture response data after the request's "Send" method
  1227. // is called.
  1228. //
  1229. // See GetApplicationRevision for usage and error information.
  1230. //
  1231. // Creating a request object using this method should be used when you want to inject
  1232. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1233. // access properties on the request object before or after sending the request. If
  1234. // you just want the service response, call the GetApplicationRevision method directly
  1235. // instead.
  1236. //
  1237. // Note: You must call the "Send" method on the returned request object in order
  1238. // to execute the request.
  1239. //
  1240. // // Example sending a request using the GetApplicationRevisionRequest method.
  1241. // req, resp := client.GetApplicationRevisionRequest(params)
  1242. //
  1243. // err := req.Send()
  1244. // if err == nil { // resp is now filled
  1245. // fmt.Println(resp)
  1246. // }
  1247. //
  1248. func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput) {
  1249. op := &request.Operation{
  1250. Name: opGetApplicationRevision,
  1251. HTTPMethod: "POST",
  1252. HTTPPath: "/",
  1253. }
  1254. if input == nil {
  1255. input = &GetApplicationRevisionInput{}
  1256. }
  1257. req = c.newRequest(op, input, output)
  1258. output = &GetApplicationRevisionOutput{}
  1259. req.Data = output
  1260. return
  1261. }
  1262. // GetApplicationRevision API operation for AWS CodeDeploy.
  1263. //
  1264. // Gets information about an application revision.
  1265. //
  1266. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1267. // with awserr.Error's Code and Message methods to get detailed information about
  1268. // the error.
  1269. //
  1270. // See the AWS API reference guide for AWS CodeDeploy's
  1271. // API operation GetApplicationRevision for usage and error information.
  1272. //
  1273. // Returned Error Codes:
  1274. // * ApplicationDoesNotExistException
  1275. // The application does not exist with the applicable IAM user or AWS account.
  1276. //
  1277. // * ApplicationNameRequiredException
  1278. // The minimum number of required application names was not specified.
  1279. //
  1280. // * InvalidApplicationNameException
  1281. // The application name was specified in an invalid format.
  1282. //
  1283. // * RevisionDoesNotExistException
  1284. // The named revision does not exist with the applicable IAM user or AWS account.
  1285. //
  1286. // * RevisionRequiredException
  1287. // The revision ID was not specified.
  1288. //
  1289. // * InvalidRevisionException
  1290. // The revision was specified in an invalid format.
  1291. //
  1292. func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) {
  1293. req, out := c.GetApplicationRevisionRequest(input)
  1294. err := req.Send()
  1295. return out, err
  1296. }
  1297. const opGetDeployment = "GetDeployment"
  1298. // GetDeploymentRequest generates a "aws/request.Request" representing the
  1299. // client's request for the GetDeployment operation. The "output" return
  1300. // value can be used to capture response data after the request's "Send" method
  1301. // is called.
  1302. //
  1303. // See GetDeployment for usage and error information.
  1304. //
  1305. // Creating a request object using this method should be used when you want to inject
  1306. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1307. // access properties on the request object before or after sending the request. If
  1308. // you just want the service response, call the GetDeployment method directly
  1309. // instead.
  1310. //
  1311. // Note: You must call the "Send" method on the returned request object in order
  1312. // to execute the request.
  1313. //
  1314. // // Example sending a request using the GetDeploymentRequest method.
  1315. // req, resp := client.GetDeploymentRequest(params)
  1316. //
  1317. // err := req.Send()
  1318. // if err == nil { // resp is now filled
  1319. // fmt.Println(resp)
  1320. // }
  1321. //
  1322. func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) {
  1323. op := &request.Operation{
  1324. Name: opGetDeployment,
  1325. HTTPMethod: "POST",
  1326. HTTPPath: "/",
  1327. }
  1328. if input == nil {
  1329. input = &GetDeploymentInput{}
  1330. }
  1331. req = c.newRequest(op, input, output)
  1332. output = &GetDeploymentOutput{}
  1333. req.Data = output
  1334. return
  1335. }
  1336. // GetDeployment API operation for AWS CodeDeploy.
  1337. //
  1338. // Gets information about a deployment.
  1339. //
  1340. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1341. // with awserr.Error's Code and Message methods to get detailed information about
  1342. // the error.
  1343. //
  1344. // See the AWS API reference guide for AWS CodeDeploy's
  1345. // API operation GetDeployment for usage and error information.
  1346. //
  1347. // Returned Error Codes:
  1348. // * DeploymentIdRequiredException
  1349. // At least one deployment ID must be specified.
  1350. //
  1351. // * InvalidDeploymentIdException
  1352. // At least one of the deployment IDs was specified in an invalid format.
  1353. //
  1354. // * DeploymentDoesNotExistException
  1355. // The deployment does not exist with the applicable IAM user or AWS account.
  1356. //
  1357. func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) {
  1358. req, out := c.GetDeploymentRequest(input)
  1359. err := req.Send()
  1360. return out, err
  1361. }
  1362. const opGetDeploymentConfig = "GetDeploymentConfig"
  1363. // GetDeploymentConfigRequest generates a "aws/request.Request" representing the
  1364. // client's request for the GetDeploymentConfig operation. The "output" return
  1365. // value can be used to capture response data after the request's "Send" method
  1366. // is called.
  1367. //
  1368. // See GetDeploymentConfig for usage and error information.
  1369. //
  1370. // Creating a request object using this method should be used when you want to inject
  1371. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1372. // access properties on the request object before or after sending the request. If
  1373. // you just want the service response, call the GetDeploymentConfig method directly
  1374. // instead.
  1375. //
  1376. // Note: You must call the "Send" method on the returned request object in order
  1377. // to execute the request.
  1378. //
  1379. // // Example sending a request using the GetDeploymentConfigRequest method.
  1380. // req, resp := client.GetDeploymentConfigRequest(params)
  1381. //
  1382. // err := req.Send()
  1383. // if err == nil { // resp is now filled
  1384. // fmt.Println(resp)
  1385. // }
  1386. //
  1387. func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput) {
  1388. op := &request.Operation{
  1389. Name: opGetDeploymentConfig,
  1390. HTTPMethod: "POST",
  1391. HTTPPath: "/",
  1392. }
  1393. if input == nil {
  1394. input = &GetDeploymentConfigInput{}
  1395. }
  1396. req = c.newRequest(op, input, output)
  1397. output = &GetDeploymentConfigOutput{}
  1398. req.Data = output
  1399. return
  1400. }
  1401. // GetDeploymentConfig API operation for AWS CodeDeploy.
  1402. //
  1403. // Gets information about a deployment configuration.
  1404. //
  1405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1406. // with awserr.Error's Code and Message methods to get detailed information about
  1407. // the error.
  1408. //
  1409. // See the AWS API reference guide for AWS CodeDeploy's
  1410. // API operation GetDeploymentConfig for usage and error information.
  1411. //
  1412. // Returned Error Codes:
  1413. // * InvalidDeploymentConfigNameException
  1414. // The deployment configuration name was specified in an invalid format.
  1415. //
  1416. // * DeploymentConfigNameRequiredException
  1417. // The deployment configuration name was not specified.
  1418. //
  1419. // * DeploymentConfigDoesNotExistException
  1420. // The deployment configuration does not exist with the applicable IAM user
  1421. // or AWS account.
  1422. //
  1423. func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) {
  1424. req, out := c.GetDeploymentConfigRequest(input)
  1425. err := req.Send()
  1426. return out, err
  1427. }
  1428. const opGetDeploymentGroup = "GetDeploymentGroup"
  1429. // GetDeploymentGroupRequest generates a "aws/request.Request" representing the
  1430. // client's request for the GetDeploymentGroup operation. The "output" return
  1431. // value can be used to capture response data after the request's "Send" method
  1432. // is called.
  1433. //
  1434. // See GetDeploymentGroup for usage and error information.
  1435. //
  1436. // Creating a request object using this method should be used when you want to inject
  1437. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1438. // access properties on the request object before or after sending the request. If
  1439. // you just want the service response, call the GetDeploymentGroup method directly
  1440. // instead.
  1441. //
  1442. // Note: You must call the "Send" method on the returned request object in order
  1443. // to execute the request.
  1444. //
  1445. // // Example sending a request using the GetDeploymentGroupRequest method.
  1446. // req, resp := client.GetDeploymentGroupRequest(params)
  1447. //
  1448. // err := req.Send()
  1449. // if err == nil { // resp is now filled
  1450. // fmt.Println(resp)
  1451. // }
  1452. //
  1453. func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput) {
  1454. op := &request.Operation{
  1455. Name: opGetDeploymentGroup,
  1456. HTTPMethod: "POST",
  1457. HTTPPath: "/",
  1458. }
  1459. if input == nil {
  1460. input = &GetDeploymentGroupInput{}
  1461. }
  1462. req = c.newRequest(op, input, output)
  1463. output = &GetDeploymentGroupOutput{}
  1464. req.Data = output
  1465. return
  1466. }
  1467. // GetDeploymentGroup API operation for AWS CodeDeploy.
  1468. //
  1469. // Gets information about a deployment group.
  1470. //
  1471. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1472. // with awserr.Error's Code and Message methods to get detailed information about
  1473. // the error.
  1474. //
  1475. // See the AWS API reference guide for AWS CodeDeploy's
  1476. // API operation GetDeploymentGroup for usage and error information.
  1477. //
  1478. // Returned Error Codes:
  1479. // * ApplicationNameRequiredException
  1480. // The minimum number of required application names was not specified.
  1481. //
  1482. // * InvalidApplicationNameException
  1483. // The application name was specified in an invalid format.
  1484. //
  1485. // * ApplicationDoesNotExistException
  1486. // The application does not exist with the applicable IAM user or AWS account.
  1487. //
  1488. // * DeploymentGroupNameRequiredException
  1489. // The deployment group name was not specified.
  1490. //
  1491. // * InvalidDeploymentGroupNameException
  1492. // The deployment group name was specified in an invalid format.
  1493. //
  1494. // * DeploymentGroupDoesNotExistException
  1495. // The named deployment group does not exist with the applicable IAM user or
  1496. // AWS account.
  1497. //
  1498. func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) {
  1499. req, out := c.GetDeploymentGroupRequest(input)
  1500. err := req.Send()
  1501. return out, err
  1502. }
  1503. const opGetDeploymentInstance = "GetDeploymentInstance"
  1504. // GetDeploymentInstanceRequest generates a "aws/request.Request" representing the
  1505. // client's request for the GetDeploymentInstance operation. The "output" return
  1506. // value can be used to capture response data after the request's "Send" method
  1507. // is called.
  1508. //
  1509. // See GetDeploymentInstance for usage and error information.
  1510. //
  1511. // Creating a request object using this method should be used when you want to inject
  1512. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1513. // access properties on the request object before or after sending the request. If
  1514. // you just want the service response, call the GetDeploymentInstance method directly
  1515. // instead.
  1516. //
  1517. // Note: You must call the "Send" method on the returned request object in order
  1518. // to execute the request.
  1519. //
  1520. // // Example sending a request using the GetDeploymentInstanceRequest method.
  1521. // req, resp := client.GetDeploymentInstanceRequest(params)
  1522. //
  1523. // err := req.Send()
  1524. // if err == nil { // resp is now filled
  1525. // fmt.Println(resp)
  1526. // }
  1527. //
  1528. func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) {
  1529. op := &request.Operation{
  1530. Name: opGetDeploymentInstance,
  1531. HTTPMethod: "POST",
  1532. HTTPPath: "/",
  1533. }
  1534. if input == nil {
  1535. input = &GetDeploymentInstanceInput{}
  1536. }
  1537. req = c.newRequest(op, input, output)
  1538. output = &GetDeploymentInstanceOutput{}
  1539. req.Data = output
  1540. return
  1541. }
  1542. // GetDeploymentInstance API operation for AWS CodeDeploy.
  1543. //
  1544. // Gets information about an instance as part of a deployment.
  1545. //
  1546. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1547. // with awserr.Error's Code and Message methods to get detailed information about
  1548. // the error.
  1549. //
  1550. // See the AWS API reference guide for AWS CodeDeploy's
  1551. // API operation GetDeploymentInstance for usage and error information.
  1552. //
  1553. // Returned Error Codes:
  1554. // * DeploymentIdRequiredException
  1555. // At least one deployment ID must be specified.
  1556. //
  1557. // * DeploymentDoesNotExistException
  1558. // The deployment does not exist with the applicable IAM user or AWS account.
  1559. //
  1560. // * InstanceIdRequiredException
  1561. // The instance ID was not specified.
  1562. //
  1563. // * InvalidDeploymentIdException
  1564. // At least one of the deployment IDs was specified in an invalid format.
  1565. //
  1566. // * InstanceDoesNotExistException
  1567. // The specified instance does not exist in the deployment group.
  1568. //
  1569. // * InvalidInstanceNameException
  1570. // The specified on-premises instance name was specified in an invalid format.
  1571. //
  1572. func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) {
  1573. req, out := c.GetDeploymentInstanceRequest(input)
  1574. err := req.Send()
  1575. return out, err
  1576. }
  1577. const opGetOnPremisesInstance = "GetOnPremisesInstance"
  1578. // GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  1579. // client's request for the GetOnPremisesInstance operation. The "output" return
  1580. // value can be used to capture response data after the request's "Send" method
  1581. // is called.
  1582. //
  1583. // See GetOnPremisesInstance for usage and error information.
  1584. //
  1585. // Creating a request object using this method should be used when you want to inject
  1586. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1587. // access properties on the request object before or after sending the request. If
  1588. // you just want the service response, call the GetOnPremisesInstance method directly
  1589. // instead.
  1590. //
  1591. // Note: You must call the "Send" method on the returned request object in order
  1592. // to execute the request.
  1593. //
  1594. // // Example sending a request using the GetOnPremisesInstanceRequest method.
  1595. // req, resp := client.GetOnPremisesInstanceRequest(params)
  1596. //
  1597. // err := req.Send()
  1598. // if err == nil { // resp is now filled
  1599. // fmt.Println(resp)
  1600. // }
  1601. //
  1602. func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput) {
  1603. op := &request.Operation{
  1604. Name: opGetOnPremisesInstance,
  1605. HTTPMethod: "POST",
  1606. HTTPPath: "/",
  1607. }
  1608. if input == nil {
  1609. input = &GetOnPremisesInstanceInput{}
  1610. }
  1611. req = c.newRequest(op, input, output)
  1612. output = &GetOnPremisesInstanceOutput{}
  1613. req.Data = output
  1614. return
  1615. }
  1616. // GetOnPremisesInstance API operation for AWS CodeDeploy.
  1617. //
  1618. // Gets information about an on-premises instance.
  1619. //
  1620. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1621. // with awserr.Error's Code and Message methods to get detailed information about
  1622. // the error.
  1623. //
  1624. // See the AWS API reference guide for AWS CodeDeploy's
  1625. // API operation GetOnPremisesInstance for usage and error information.
  1626. //
  1627. // Returned Error Codes:
  1628. // * InstanceNameRequiredException
  1629. // An on-premises instance name was not specified.
  1630. //
  1631. // * InstanceNotRegisteredException
  1632. // The specified on-premises instance is not registered.
  1633. //
  1634. // * InvalidInstanceNameException
  1635. // The specified on-premises instance name was specified in an invalid format.
  1636. //
  1637. func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) {
  1638. req, out := c.GetOnPremisesInstanceRequest(input)
  1639. err := req.Send()
  1640. return out, err
  1641. }
  1642. const opListApplicationRevisions = "ListApplicationRevisions"
  1643. // ListApplicationRevisionsRequest generates a "aws/request.Request" representing the
  1644. // client's request for the ListApplicationRevisions operation. The "output" return
  1645. // value can be used to capture response data after the request's "Send" method
  1646. // is called.
  1647. //
  1648. // See ListApplicationRevisions for usage and error information.
  1649. //
  1650. // Creating a request object using this method should be used when you want to inject
  1651. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1652. // access properties on the request object before or after sending the request. If
  1653. // you just want the service response, call the ListApplicationRevisions method directly
  1654. // instead.
  1655. //
  1656. // Note: You must call the "Send" method on the returned request object in order
  1657. // to execute the request.
  1658. //
  1659. // // Example sending a request using the ListApplicationRevisionsRequest method.
  1660. // req, resp := client.ListApplicationRevisionsRequest(params)
  1661. //
  1662. // err := req.Send()
  1663. // if err == nil { // resp is now filled
  1664. // fmt.Println(resp)
  1665. // }
  1666. //
  1667. func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput) {
  1668. op := &request.Operation{
  1669. Name: opListApplicationRevisions,
  1670. HTTPMethod: "POST",
  1671. HTTPPath: "/",
  1672. Paginator: &request.Paginator{
  1673. InputTokens: []string{"nextToken"},
  1674. OutputTokens: []string{"nextToken"},
  1675. LimitToken: "",
  1676. TruncationToken: "",
  1677. },
  1678. }
  1679. if input == nil {
  1680. input = &ListApplicationRevisionsInput{}
  1681. }
  1682. req = c.newRequest(op, input, output)
  1683. output = &ListApplicationRevisionsOutput{}
  1684. req.Data = output
  1685. return
  1686. }
  1687. // ListApplicationRevisions API operation for AWS CodeDeploy.
  1688. //
  1689. // Lists information about revisions for an application.
  1690. //
  1691. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1692. // with awserr.Error's Code and Message methods to get detailed information about
  1693. // the error.
  1694. //
  1695. // See the AWS API reference guide for AWS CodeDeploy's
  1696. // API operation ListApplicationRevisions for usage and error information.
  1697. //
  1698. // Returned Error Codes:
  1699. // * ApplicationDoesNotExistException
  1700. // The application does not exist with the applicable IAM user or AWS account.
  1701. //
  1702. // * ApplicationNameRequiredException
  1703. // The minimum number of required application names was not specified.
  1704. //
  1705. // * InvalidApplicationNameException
  1706. // The application name was specified in an invalid format.
  1707. //
  1708. // * InvalidSortByException
  1709. // The column name to sort by is either not present or was specified in an invalid
  1710. // format.
  1711. //
  1712. // * InvalidSortOrderException
  1713. // The sort order was specified in an invalid format.
  1714. //
  1715. // * InvalidBucketNameFilterException
  1716. // The bucket name either doesn't exist or was specified in an invalid format.
  1717. //
  1718. // * InvalidKeyPrefixFilterException
  1719. // The specified key prefix filter was specified in an invalid format.
  1720. //
  1721. // * BucketNameFilterRequiredException
  1722. // A bucket name is required, but was not provided.
  1723. //
  1724. // * InvalidDeployedStateFilterException
  1725. // The deployed state filter was specified in an invalid format.
  1726. //
  1727. // * InvalidNextTokenException
  1728. // The next token was specified in an invalid format.
  1729. //
  1730. func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) {
  1731. req, out := c.ListApplicationRevisionsRequest(input)
  1732. err := req.Send()
  1733. return out, err
  1734. }
  1735. // ListApplicationRevisionsPages iterates over the pages of a ListApplicationRevisions operation,
  1736. // calling the "fn" function with the response data for each page. To stop
  1737. // iterating, return false from the fn function.
  1738. //
  1739. // See ListApplicationRevisions method for more information on how to use this operation.
  1740. //
  1741. // Note: This operation can generate multiple requests to a service.
  1742. //
  1743. // // Example iterating over at most 3 pages of a ListApplicationRevisions operation.
  1744. // pageNum := 0
  1745. // err := client.ListApplicationRevisionsPages(params,
  1746. // func(page *ListApplicationRevisionsOutput, lastPage bool) bool {
  1747. // pageNum++
  1748. // fmt.Println(page)
  1749. // return pageNum <= 3
  1750. // })
  1751. //
  1752. func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(p *ListApplicationRevisionsOutput, lastPage bool) (shouldContinue bool)) error {
  1753. page, _ := c.ListApplicationRevisionsRequest(input)
  1754. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1755. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1756. return fn(p.(*ListApplicationRevisionsOutput), lastPage)
  1757. })
  1758. }
  1759. const opListApplications = "ListApplications"
  1760. // ListApplicationsRequest generates a "aws/request.Request" representing the
  1761. // client's request for the ListApplications operation. The "output" return
  1762. // value can be used to capture response data after the request's "Send" method
  1763. // is called.
  1764. //
  1765. // See ListApplications for usage and error information.
  1766. //
  1767. // Creating a request object using this method should be used when you want to inject
  1768. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1769. // access properties on the request object before or after sending the request. If
  1770. // you just want the service response, call the ListApplications method directly
  1771. // instead.
  1772. //
  1773. // Note: You must call the "Send" method on the returned request object in order
  1774. // to execute the request.
  1775. //
  1776. // // Example sending a request using the ListApplicationsRequest method.
  1777. // req, resp := client.ListApplicationsRequest(params)
  1778. //
  1779. // err := req.Send()
  1780. // if err == nil { // resp is now filled
  1781. // fmt.Println(resp)
  1782. // }
  1783. //
  1784. func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
  1785. op := &request.Operation{
  1786. Name: opListApplications,
  1787. HTTPMethod: "POST",
  1788. HTTPPath: "/",
  1789. Paginator: &request.Paginator{
  1790. InputTokens: []string{"nextToken"},
  1791. OutputTokens: []string{"nextToken"},
  1792. LimitToken: "",
  1793. TruncationToken: "",
  1794. },
  1795. }
  1796. if input == nil {
  1797. input = &ListApplicationsInput{}
  1798. }
  1799. req = c.newRequest(op, input, output)
  1800. output = &ListApplicationsOutput{}
  1801. req.Data = output
  1802. return
  1803. }
  1804. // ListApplications API operation for AWS CodeDeploy.
  1805. //
  1806. // Lists the applications registered with the applicable IAM user or AWS account.
  1807. //
  1808. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1809. // with awserr.Error's Code and Message methods to get detailed information about
  1810. // the error.
  1811. //
  1812. // See the AWS API reference guide for AWS CodeDeploy's
  1813. // API operation ListApplications for usage and error information.
  1814. //
  1815. // Returned Error Codes:
  1816. // * InvalidNextTokenException
  1817. // The next token was specified in an invalid format.
  1818. //
  1819. func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
  1820. req, out := c.ListApplicationsRequest(input)
  1821. err := req.Send()
  1822. return out, err
  1823. }
  1824. // ListApplicationsPages iterates over the pages of a ListApplications operation,
  1825. // calling the "fn" function with the response data for each page. To stop
  1826. // iterating, return false from the fn function.
  1827. //
  1828. // See ListApplications method for more information on how to use this operation.
  1829. //
  1830. // Note: This operation can generate multiple requests to a service.
  1831. //
  1832. // // Example iterating over at most 3 pages of a ListApplications operation.
  1833. // pageNum := 0
  1834. // err := client.ListApplicationsPages(params,
  1835. // func(page *ListApplicationsOutput, lastPage bool) bool {
  1836. // pageNum++
  1837. // fmt.Println(page)
  1838. // return pageNum <= 3
  1839. // })
  1840. //
  1841. func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(p *ListApplicationsOutput, lastPage bool) (shouldContinue bool)) error {
  1842. page, _ := c.ListApplicationsRequest(input)
  1843. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1844. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1845. return fn(p.(*ListApplicationsOutput), lastPage)
  1846. })
  1847. }
  1848. const opListDeploymentConfigs = "ListDeploymentConfigs"
  1849. // ListDeploymentConfigsRequest generates a "aws/request.Request" representing the
  1850. // client's request for the ListDeploymentConfigs operation. The "output" return
  1851. // value can be used to capture response data after the request's "Send" method
  1852. // is called.
  1853. //
  1854. // See ListDeploymentConfigs for usage and error information.
  1855. //
  1856. // Creating a request object using this method should be used when you want to inject
  1857. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1858. // access properties on the request object before or after sending the request. If
  1859. // you just want the service response, call the ListDeploymentConfigs method directly
  1860. // instead.
  1861. //
  1862. // Note: You must call the "Send" method on the returned request object in order
  1863. // to execute the request.
  1864. //
  1865. // // Example sending a request using the ListDeploymentConfigsRequest method.
  1866. // req, resp := client.ListDeploymentConfigsRequest(params)
  1867. //
  1868. // err := req.Send()
  1869. // if err == nil { // resp is now filled
  1870. // fmt.Println(resp)
  1871. // }
  1872. //
  1873. func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput) {
  1874. op := &request.Operation{
  1875. Name: opListDeploymentConfigs,
  1876. HTTPMethod: "POST",
  1877. HTTPPath: "/",
  1878. Paginator: &request.Paginator{
  1879. InputTokens: []string{"nextToken"},
  1880. OutputTokens: []string{"nextToken"},
  1881. LimitToken: "",
  1882. TruncationToken: "",
  1883. },
  1884. }
  1885. if input == nil {
  1886. input = &ListDeploymentConfigsInput{}
  1887. }
  1888. req = c.newRequest(op, input, output)
  1889. output = &ListDeploymentConfigsOutput{}
  1890. req.Data = output
  1891. return
  1892. }
  1893. // ListDeploymentConfigs API operation for AWS CodeDeploy.
  1894. //
  1895. // Lists the deployment configurations with the applicable IAM user or AWS account.
  1896. //
  1897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1898. // with awserr.Error's Code and Message methods to get detailed information about
  1899. // the error.
  1900. //
  1901. // See the AWS API reference guide for AWS CodeDeploy's
  1902. // API operation ListDeploymentConfigs for usage and error information.
  1903. //
  1904. // Returned Error Codes:
  1905. // * InvalidNextTokenException
  1906. // The next token was specified in an invalid format.
  1907. //
  1908. func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) {
  1909. req, out := c.ListDeploymentConfigsRequest(input)
  1910. err := req.Send()
  1911. return out, err
  1912. }
  1913. // ListDeploymentConfigsPages iterates over the pages of a ListDeploymentConfigs operation,
  1914. // calling the "fn" function with the response data for each page. To stop
  1915. // iterating, return false from the fn function.
  1916. //
  1917. // See ListDeploymentConfigs method for more information on how to use this operation.
  1918. //
  1919. // Note: This operation can generate multiple requests to a service.
  1920. //
  1921. // // Example iterating over at most 3 pages of a ListDeploymentConfigs operation.
  1922. // pageNum := 0
  1923. // err := client.ListDeploymentConfigsPages(params,
  1924. // func(page *ListDeploymentConfigsOutput, lastPage bool) bool {
  1925. // pageNum++
  1926. // fmt.Println(page)
  1927. // return pageNum <= 3
  1928. // })
  1929. //
  1930. func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(p *ListDeploymentConfigsOutput, lastPage bool) (shouldContinue bool)) error {
  1931. page, _ := c.ListDeploymentConfigsRequest(input)
  1932. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1933. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1934. return fn(p.(*ListDeploymentConfigsOutput), lastPage)
  1935. })
  1936. }
  1937. const opListDeploymentGroups = "ListDeploymentGroups"
  1938. // ListDeploymentGroupsRequest generates a "aws/request.Request" representing the
  1939. // client's request for the ListDeploymentGroups operation. The "output" return
  1940. // value can be used to capture response data after the request's "Send" method
  1941. // is called.
  1942. //
  1943. // See ListDeploymentGroups for usage and error information.
  1944. //
  1945. // Creating a request object using this method should be used when you want to inject
  1946. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1947. // access properties on the request object before or after sending the request. If
  1948. // you just want the service response, call the ListDeploymentGroups method directly
  1949. // instead.
  1950. //
  1951. // Note: You must call the "Send" method on the returned request object in order
  1952. // to execute the request.
  1953. //
  1954. // // Example sending a request using the ListDeploymentGroupsRequest method.
  1955. // req, resp := client.ListDeploymentGroupsRequest(params)
  1956. //
  1957. // err := req.Send()
  1958. // if err == nil { // resp is now filled
  1959. // fmt.Println(resp)
  1960. // }
  1961. //
  1962. func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput) {
  1963. op := &request.Operation{
  1964. Name: opListDeploymentGroups,
  1965. HTTPMethod: "POST",
  1966. HTTPPath: "/",
  1967. Paginator: &request.Paginator{
  1968. InputTokens: []string{"nextToken"},
  1969. OutputTokens: []string{"nextToken"},
  1970. LimitToken: "",
  1971. TruncationToken: "",
  1972. },
  1973. }
  1974. if input == nil {
  1975. input = &ListDeploymentGroupsInput{}
  1976. }
  1977. req = c.newRequest(op, input, output)
  1978. output = &ListDeploymentGroupsOutput{}
  1979. req.Data = output
  1980. return
  1981. }
  1982. // ListDeploymentGroups API operation for AWS CodeDeploy.
  1983. //
  1984. // Lists the deployment groups for an application registered with the applicable
  1985. // IAM user or AWS account.
  1986. //
  1987. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1988. // with awserr.Error's Code and Message methods to get detailed information about
  1989. // the error.
  1990. //
  1991. // See the AWS API reference guide for AWS CodeDeploy's
  1992. // API operation ListDeploymentGroups for usage and error information.
  1993. //
  1994. // Returned Error Codes:
  1995. // * ApplicationNameRequiredException
  1996. // The minimum number of required application names was not specified.
  1997. //
  1998. // * InvalidApplicationNameException
  1999. // The application name was specified in an invalid format.
  2000. //
  2001. // * ApplicationDoesNotExistException
  2002. // The application does not exist with the applicable IAM user or AWS account.
  2003. //
  2004. // * InvalidNextTokenException
  2005. // The next token was specified in an invalid format.
  2006. //
  2007. func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) {
  2008. req, out := c.ListDeploymentGroupsRequest(input)
  2009. err := req.Send()
  2010. return out, err
  2011. }
  2012. // ListDeploymentGroupsPages iterates over the pages of a ListDeploymentGroups operation,
  2013. // calling the "fn" function with the response data for each page. To stop
  2014. // iterating, return false from the fn function.
  2015. //
  2016. // See ListDeploymentGroups method for more information on how to use this operation.
  2017. //
  2018. // Note: This operation can generate multiple requests to a service.
  2019. //
  2020. // // Example iterating over at most 3 pages of a ListDeploymentGroups operation.
  2021. // pageNum := 0
  2022. // err := client.ListDeploymentGroupsPages(params,
  2023. // func(page *ListDeploymentGroupsOutput, lastPage bool) bool {
  2024. // pageNum++
  2025. // fmt.Println(page)
  2026. // return pageNum <= 3
  2027. // })
  2028. //
  2029. func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(p *ListDeploymentGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  2030. page, _ := c.ListDeploymentGroupsRequest(input)
  2031. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2032. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2033. return fn(p.(*ListDeploymentGroupsOutput), lastPage)
  2034. })
  2035. }
  2036. const opListDeploymentInstances = "ListDeploymentInstances"
  2037. // ListDeploymentInstancesRequest generates a "aws/request.Request" representing the
  2038. // client's request for the ListDeploymentInstances operation. The "output" return
  2039. // value can be used to capture response data after the request's "Send" method
  2040. // is called.
  2041. //
  2042. // See ListDeploymentInstances for usage and error information.
  2043. //
  2044. // Creating a request object using this method should be used when you want to inject
  2045. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2046. // access properties on the request object before or after sending the request. If
  2047. // you just want the service response, call the ListDeploymentInstances method directly
  2048. // instead.
  2049. //
  2050. // Note: You must call the "Send" method on the returned request object in order
  2051. // to execute the request.
  2052. //
  2053. // // Example sending a request using the ListDeploymentInstancesRequest method.
  2054. // req, resp := client.ListDeploymentInstancesRequest(params)
  2055. //
  2056. // err := req.Send()
  2057. // if err == nil { // resp is now filled
  2058. // fmt.Println(resp)
  2059. // }
  2060. //
  2061. func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) {
  2062. op := &request.Operation{
  2063. Name: opListDeploymentInstances,
  2064. HTTPMethod: "POST",
  2065. HTTPPath: "/",
  2066. Paginator: &request.Paginator{
  2067. InputTokens: []string{"nextToken"},
  2068. OutputTokens: []string{"nextToken"},
  2069. LimitToken: "",
  2070. TruncationToken: "",
  2071. },
  2072. }
  2073. if input == nil {
  2074. input = &ListDeploymentInstancesInput{}
  2075. }
  2076. req = c.newRequest(op, input, output)
  2077. output = &ListDeploymentInstancesOutput{}
  2078. req.Data = output
  2079. return
  2080. }
  2081. // ListDeploymentInstances API operation for AWS CodeDeploy.
  2082. //
  2083. // Lists the instance for a deployment associated with the applicable IAM user
  2084. // or AWS account.
  2085. //
  2086. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2087. // with awserr.Error's Code and Message methods to get detailed information about
  2088. // the error.
  2089. //
  2090. // See the AWS API reference guide for AWS CodeDeploy's
  2091. // API operation ListDeploymentInstances for usage and error information.
  2092. //
  2093. // Returned Error Codes:
  2094. // * DeploymentIdRequiredException
  2095. // At least one deployment ID must be specified.
  2096. //
  2097. // * DeploymentDoesNotExistException
  2098. // The deployment does not exist with the applicable IAM user or AWS account.
  2099. //
  2100. // * DeploymentNotStartedException
  2101. // The specified deployment has not started.
  2102. //
  2103. // * InvalidNextTokenException
  2104. // The next token was specified in an invalid format.
  2105. //
  2106. // * InvalidDeploymentIdException
  2107. // At least one of the deployment IDs was specified in an invalid format.
  2108. //
  2109. // * InvalidInstanceStatusException
  2110. // The specified instance status does not exist.
  2111. //
  2112. func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) {
  2113. req, out := c.ListDeploymentInstancesRequest(input)
  2114. err := req.Send()
  2115. return out, err
  2116. }
  2117. // ListDeploymentInstancesPages iterates over the pages of a ListDeploymentInstances operation,
  2118. // calling the "fn" function with the response data for each page. To stop
  2119. // iterating, return false from the fn function.
  2120. //
  2121. // See ListDeploymentInstances method for more information on how to use this operation.
  2122. //
  2123. // Note: This operation can generate multiple requests to a service.
  2124. //
  2125. // // Example iterating over at most 3 pages of a ListDeploymentInstances operation.
  2126. // pageNum := 0
  2127. // err := client.ListDeploymentInstancesPages(params,
  2128. // func(page *ListDeploymentInstancesOutput, lastPage bool) bool {
  2129. // pageNum++
  2130. // fmt.Println(page)
  2131. // return pageNum <= 3
  2132. // })
  2133. //
  2134. func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(p *ListDeploymentInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  2135. page, _ := c.ListDeploymentInstancesRequest(input)
  2136. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2137. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2138. return fn(p.(*ListDeploymentInstancesOutput), lastPage)
  2139. })
  2140. }
  2141. const opListDeployments = "ListDeployments"
  2142. // ListDeploymentsRequest generates a "aws/request.Request" representing the
  2143. // client's request for the ListDeployments operation. The "output" return
  2144. // value can be used to capture response data after the request's "Send" method
  2145. // is called.
  2146. //
  2147. // See ListDeployments for usage and error information.
  2148. //
  2149. // Creating a request object using this method should be used when you want to inject
  2150. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2151. // access properties on the request object before or after sending the request. If
  2152. // you just want the service response, call the ListDeployments method directly
  2153. // instead.
  2154. //
  2155. // Note: You must call the "Send" method on the returned request object in order
  2156. // to execute the request.
  2157. //
  2158. // // Example sending a request using the ListDeploymentsRequest method.
  2159. // req, resp := client.ListDeploymentsRequest(params)
  2160. //
  2161. // err := req.Send()
  2162. // if err == nil { // resp is now filled
  2163. // fmt.Println(resp)
  2164. // }
  2165. //
  2166. func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) {
  2167. op := &request.Operation{
  2168. Name: opListDeployments,
  2169. HTTPMethod: "POST",
  2170. HTTPPath: "/",
  2171. Paginator: &request.Paginator{
  2172. InputTokens: []string{"nextToken"},
  2173. OutputTokens: []string{"nextToken"},
  2174. LimitToken: "",
  2175. TruncationToken: "",
  2176. },
  2177. }
  2178. if input == nil {
  2179. input = &ListDeploymentsInput{}
  2180. }
  2181. req = c.newRequest(op, input, output)
  2182. output = &ListDeploymentsOutput{}
  2183. req.Data = output
  2184. return
  2185. }
  2186. // ListDeployments API operation for AWS CodeDeploy.
  2187. //
  2188. // Lists the deployments in a deployment group for an application registered
  2189. // with the applicable IAM user or AWS account.
  2190. //
  2191. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2192. // with awserr.Error's Code and Message methods to get detailed information about
  2193. // the error.
  2194. //
  2195. // See the AWS API reference guide for AWS CodeDeploy's
  2196. // API operation ListDeployments for usage and error information.
  2197. //
  2198. // Returned Error Codes:
  2199. // * ApplicationNameRequiredException
  2200. // The minimum number of required application names was not specified.
  2201. //
  2202. // * InvalidApplicationNameException
  2203. // The application name was specified in an invalid format.
  2204. //
  2205. // * ApplicationDoesNotExistException
  2206. // The application does not exist with the applicable IAM user or AWS account.
  2207. //
  2208. // * InvalidDeploymentGroupNameException
  2209. // The deployment group name was specified in an invalid format.
  2210. //
  2211. // * DeploymentGroupDoesNotExistException
  2212. // The named deployment group does not exist with the applicable IAM user or
  2213. // AWS account.
  2214. //
  2215. // * DeploymentGroupNameRequiredException
  2216. // The deployment group name was not specified.
  2217. //
  2218. // * InvalidTimeRangeException
  2219. // The specified time range was specified in an invalid format.
  2220. //
  2221. // * InvalidDeploymentStatusException
  2222. // The specified deployment status doesn't exist or cannot be determined.
  2223. //
  2224. // * InvalidNextTokenException
  2225. // The next token was specified in an invalid format.
  2226. //
  2227. func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) {
  2228. req, out := c.ListDeploymentsRequest(input)
  2229. err := req.Send()
  2230. return out, err
  2231. }
  2232. // ListDeploymentsPages iterates over the pages of a ListDeployments operation,
  2233. // calling the "fn" function with the response data for each page. To stop
  2234. // iterating, return false from the fn function.
  2235. //
  2236. // See ListDeployments method for more information on how to use this operation.
  2237. //
  2238. // Note: This operation can generate multiple requests to a service.
  2239. //
  2240. // // Example iterating over at most 3 pages of a ListDeployments operation.
  2241. // pageNum := 0
  2242. // err := client.ListDeploymentsPages(params,
  2243. // func(page *ListDeploymentsOutput, lastPage bool) bool {
  2244. // pageNum++
  2245. // fmt.Println(page)
  2246. // return pageNum <= 3
  2247. // })
  2248. //
  2249. func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(p *ListDeploymentsOutput, lastPage bool) (shouldContinue bool)) error {
  2250. page, _ := c.ListDeploymentsRequest(input)
  2251. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2252. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2253. return fn(p.(*ListDeploymentsOutput), lastPage)
  2254. })
  2255. }
  2256. const opListOnPremisesInstances = "ListOnPremisesInstances"
  2257. // ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  2258. // client's request for the ListOnPremisesInstances operation. The "output" return
  2259. // value can be used to capture response data after the request's "Send" method
  2260. // is called.
  2261. //
  2262. // See ListOnPremisesInstances for usage and error information.
  2263. //
  2264. // Creating a request object using this method should be used when you want to inject
  2265. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2266. // access properties on the request object before or after sending the request. If
  2267. // you just want the service response, call the ListOnPremisesInstances method directly
  2268. // instead.
  2269. //
  2270. // Note: You must call the "Send" method on the returned request object in order
  2271. // to execute the request.
  2272. //
  2273. // // Example sending a request using the ListOnPremisesInstancesRequest method.
  2274. // req, resp := client.ListOnPremisesInstancesRequest(params)
  2275. //
  2276. // err := req.Send()
  2277. // if err == nil { // resp is now filled
  2278. // fmt.Println(resp)
  2279. // }
  2280. //
  2281. func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput) {
  2282. op := &request.Operation{
  2283. Name: opListOnPremisesInstances,
  2284. HTTPMethod: "POST",
  2285. HTTPPath: "/",
  2286. }
  2287. if input == nil {
  2288. input = &ListOnPremisesInstancesInput{}
  2289. }
  2290. req = c.newRequest(op, input, output)
  2291. output = &ListOnPremisesInstancesOutput{}
  2292. req.Data = output
  2293. return
  2294. }
  2295. // ListOnPremisesInstances API operation for AWS CodeDeploy.
  2296. //
  2297. // Gets a list of names for one or more on-premises instances.
  2298. //
  2299. // Unless otherwise specified, both registered and deregistered on-premises
  2300. // instance names will be listed. To list only registered or deregistered on-premises
  2301. // instance names, use the registration status parameter.
  2302. //
  2303. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2304. // with awserr.Error's Code and Message methods to get detailed information about
  2305. // the error.
  2306. //
  2307. // See the AWS API reference guide for AWS CodeDeploy's
  2308. // API operation ListOnPremisesInstances for usage and error information.
  2309. //
  2310. // Returned Error Codes:
  2311. // * InvalidRegistrationStatusException
  2312. // The registration status was specified in an invalid format.
  2313. //
  2314. // * InvalidTagFilterException
  2315. // The specified tag filter was specified in an invalid format.
  2316. //
  2317. // * InvalidNextTokenException
  2318. // The next token was specified in an invalid format.
  2319. //
  2320. func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) {
  2321. req, out := c.ListOnPremisesInstancesRequest(input)
  2322. err := req.Send()
  2323. return out, err
  2324. }
  2325. const opRegisterApplicationRevision = "RegisterApplicationRevision"
  2326. // RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the
  2327. // client's request for the RegisterApplicationRevision operation. The "output" return
  2328. // value can be used to capture response data after the request's "Send" method
  2329. // is called.
  2330. //
  2331. // See RegisterApplicationRevision for usage and error information.
  2332. //
  2333. // Creating a request object using this method should be used when you want to inject
  2334. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2335. // access properties on the request object before or after sending the request. If
  2336. // you just want the service response, call the RegisterApplicationRevision method directly
  2337. // instead.
  2338. //
  2339. // Note: You must call the "Send" method on the returned request object in order
  2340. // to execute the request.
  2341. //
  2342. // // Example sending a request using the RegisterApplicationRevisionRequest method.
  2343. // req, resp := client.RegisterApplicationRevisionRequest(params)
  2344. //
  2345. // err := req.Send()
  2346. // if err == nil { // resp is now filled
  2347. // fmt.Println(resp)
  2348. // }
  2349. //
  2350. func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput) {
  2351. op := &request.Operation{
  2352. Name: opRegisterApplicationRevision,
  2353. HTTPMethod: "POST",
  2354. HTTPPath: "/",
  2355. }
  2356. if input == nil {
  2357. input = &RegisterApplicationRevisionInput{}
  2358. }
  2359. req = c.newRequest(op, input, output)
  2360. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2361. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2362. output = &RegisterApplicationRevisionOutput{}
  2363. req.Data = output
  2364. return
  2365. }
  2366. // RegisterApplicationRevision API operation for AWS CodeDeploy.
  2367. //
  2368. // Registers with AWS CodeDeploy a revision for the specified application.
  2369. //
  2370. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2371. // with awserr.Error's Code and Message methods to get detailed information about
  2372. // the error.
  2373. //
  2374. // See the AWS API reference guide for AWS CodeDeploy's
  2375. // API operation RegisterApplicationRevision for usage and error information.
  2376. //
  2377. // Returned Error Codes:
  2378. // * ApplicationDoesNotExistException
  2379. // The application does not exist with the applicable IAM user or AWS account.
  2380. //
  2381. // * ApplicationNameRequiredException
  2382. // The minimum number of required application names was not specified.
  2383. //
  2384. // * InvalidApplicationNameException
  2385. // The application name was specified in an invalid format.
  2386. //
  2387. // * DescriptionTooLongException
  2388. // The description is too long.
  2389. //
  2390. // * RevisionRequiredException
  2391. // The revision ID was not specified.
  2392. //
  2393. // * InvalidRevisionException
  2394. // The revision was specified in an invalid format.
  2395. //
  2396. func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) {
  2397. req, out := c.RegisterApplicationRevisionRequest(input)
  2398. err := req.Send()
  2399. return out, err
  2400. }
  2401. const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance"
  2402. // RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  2403. // client's request for the RegisterOnPremisesInstance operation. The "output" return
  2404. // value can be used to capture response data after the request's "Send" method
  2405. // is called.
  2406. //
  2407. // See RegisterOnPremisesInstance for usage and error information.
  2408. //
  2409. // Creating a request object using this method should be used when you want to inject
  2410. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2411. // access properties on the request object before or after sending the request. If
  2412. // you just want the service response, call the RegisterOnPremisesInstance method directly
  2413. // instead.
  2414. //
  2415. // Note: You must call the "Send" method on the returned request object in order
  2416. // to execute the request.
  2417. //
  2418. // // Example sending a request using the RegisterOnPremisesInstanceRequest method.
  2419. // req, resp := client.RegisterOnPremisesInstanceRequest(params)
  2420. //
  2421. // err := req.Send()
  2422. // if err == nil { // resp is now filled
  2423. // fmt.Println(resp)
  2424. // }
  2425. //
  2426. func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput) {
  2427. op := &request.Operation{
  2428. Name: opRegisterOnPremisesInstance,
  2429. HTTPMethod: "POST",
  2430. HTTPPath: "/",
  2431. }
  2432. if input == nil {
  2433. input = &RegisterOnPremisesInstanceInput{}
  2434. }
  2435. req = c.newRequest(op, input, output)
  2436. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2437. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2438. output = &RegisterOnPremisesInstanceOutput{}
  2439. req.Data = output
  2440. return
  2441. }
  2442. // RegisterOnPremisesInstance API operation for AWS CodeDeploy.
  2443. //
  2444. // Registers an on-premises instance.
  2445. //
  2446. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2447. // with awserr.Error's Code and Message methods to get detailed information about
  2448. // the error.
  2449. //
  2450. // See the AWS API reference guide for AWS CodeDeploy's
  2451. // API operation RegisterOnPremisesInstance for usage and error information.
  2452. //
  2453. // Returned Error Codes:
  2454. // * InstanceNameAlreadyRegisteredException
  2455. // The specified on-premises instance name is already registered.
  2456. //
  2457. // * IamUserArnAlreadyRegisteredException
  2458. // The specified IAM user ARN is already registered with an on-premises instance.
  2459. //
  2460. // * InstanceNameRequiredException
  2461. // An on-premises instance name was not specified.
  2462. //
  2463. // * IamUserArnRequiredException
  2464. // An IAM user ARN was not specified.
  2465. //
  2466. // * InvalidInstanceNameException
  2467. // The specified on-premises instance name was specified in an invalid format.
  2468. //
  2469. // * InvalidIamUserArnException
  2470. // The IAM user ARN was specified in an invalid format.
  2471. //
  2472. func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) {
  2473. req, out := c.RegisterOnPremisesInstanceRequest(input)
  2474. err := req.Send()
  2475. return out, err
  2476. }
  2477. const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances"
  2478. // RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  2479. // client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return
  2480. // value can be used to capture response data after the request's "Send" method
  2481. // is called.
  2482. //
  2483. // See RemoveTagsFromOnPremisesInstances for usage and error information.
  2484. //
  2485. // Creating a request object using this method should be used when you want to inject
  2486. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2487. // access properties on the request object before or after sending the request. If
  2488. // you just want the service response, call the RemoveTagsFromOnPremisesInstances method directly
  2489. // instead.
  2490. //
  2491. // Note: You must call the "Send" method on the returned request object in order
  2492. // to execute the request.
  2493. //
  2494. // // Example sending a request using the RemoveTagsFromOnPremisesInstancesRequest method.
  2495. // req, resp := client.RemoveTagsFromOnPremisesInstancesRequest(params)
  2496. //
  2497. // err := req.Send()
  2498. // if err == nil { // resp is now filled
  2499. // fmt.Println(resp)
  2500. // }
  2501. //
  2502. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput) {
  2503. op := &request.Operation{
  2504. Name: opRemoveTagsFromOnPremisesInstances,
  2505. HTTPMethod: "POST",
  2506. HTTPPath: "/",
  2507. }
  2508. if input == nil {
  2509. input = &RemoveTagsFromOnPremisesInstancesInput{}
  2510. }
  2511. req = c.newRequest(op, input, output)
  2512. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2513. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2514. output = &RemoveTagsFromOnPremisesInstancesOutput{}
  2515. req.Data = output
  2516. return
  2517. }
  2518. // RemoveTagsFromOnPremisesInstances API operation for AWS CodeDeploy.
  2519. //
  2520. // Removes one or more tags from one or more on-premises instances.
  2521. //
  2522. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2523. // with awserr.Error's Code and Message methods to get detailed information about
  2524. // the error.
  2525. //
  2526. // See the AWS API reference guide for AWS CodeDeploy's
  2527. // API operation RemoveTagsFromOnPremisesInstances for usage and error information.
  2528. //
  2529. // Returned Error Codes:
  2530. // * InstanceNameRequiredException
  2531. // An on-premises instance name was not specified.
  2532. //
  2533. // * TagRequiredException
  2534. // A tag was not specified.
  2535. //
  2536. // * InvalidTagException
  2537. // The specified tag was specified in an invalid format.
  2538. //
  2539. // * TagLimitExceededException
  2540. // The maximum allowed number of tags was exceeded.
  2541. //
  2542. // * InstanceLimitExceededException
  2543. // The maximum number of allowed on-premises instances in a single call was
  2544. // exceeded.
  2545. //
  2546. // * InstanceNotRegisteredException
  2547. // The specified on-premises instance is not registered.
  2548. //
  2549. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) {
  2550. req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input)
  2551. err := req.Send()
  2552. return out, err
  2553. }
  2554. const opStopDeployment = "StopDeployment"
  2555. // StopDeploymentRequest generates a "aws/request.Request" representing the
  2556. // client's request for the StopDeployment operation. The "output" return
  2557. // value can be used to capture response data after the request's "Send" method
  2558. // is called.
  2559. //
  2560. // See StopDeployment for usage and error information.
  2561. //
  2562. // Creating a request object using this method should be used when you want to inject
  2563. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2564. // access properties on the request object before or after sending the request. If
  2565. // you just want the service response, call the StopDeployment method directly
  2566. // instead.
  2567. //
  2568. // Note: You must call the "Send" method on the returned request object in order
  2569. // to execute the request.
  2570. //
  2571. // // Example sending a request using the StopDeploymentRequest method.
  2572. // req, resp := client.StopDeploymentRequest(params)
  2573. //
  2574. // err := req.Send()
  2575. // if err == nil { // resp is now filled
  2576. // fmt.Println(resp)
  2577. // }
  2578. //
  2579. func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) {
  2580. op := &request.Operation{
  2581. Name: opStopDeployment,
  2582. HTTPMethod: "POST",
  2583. HTTPPath: "/",
  2584. }
  2585. if input == nil {
  2586. input = &StopDeploymentInput{}
  2587. }
  2588. req = c.newRequest(op, input, output)
  2589. output = &StopDeploymentOutput{}
  2590. req.Data = output
  2591. return
  2592. }
  2593. // StopDeployment API operation for AWS CodeDeploy.
  2594. //
  2595. // Attempts to stop an ongoing deployment.
  2596. //
  2597. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2598. // with awserr.Error's Code and Message methods to get detailed information about
  2599. // the error.
  2600. //
  2601. // See the AWS API reference guide for AWS CodeDeploy's
  2602. // API operation StopDeployment for usage and error information.
  2603. //
  2604. // Returned Error Codes:
  2605. // * DeploymentIdRequiredException
  2606. // At least one deployment ID must be specified.
  2607. //
  2608. // * DeploymentDoesNotExistException
  2609. // The deployment does not exist with the applicable IAM user or AWS account.
  2610. //
  2611. // * DeploymentAlreadyCompletedException
  2612. // The deployment is already complete.
  2613. //
  2614. // * InvalidDeploymentIdException
  2615. // At least one of the deployment IDs was specified in an invalid format.
  2616. //
  2617. func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) {
  2618. req, out := c.StopDeploymentRequest(input)
  2619. err := req.Send()
  2620. return out, err
  2621. }
  2622. const opUpdateApplication = "UpdateApplication"
  2623. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  2624. // client's request for the UpdateApplication operation. The "output" return
  2625. // value can be used to capture response data after the request's "Send" method
  2626. // is called.
  2627. //
  2628. // See UpdateApplication for usage and error information.
  2629. //
  2630. // Creating a request object using this method should be used when you want to inject
  2631. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2632. // access properties on the request object before or after sending the request. If
  2633. // you just want the service response, call the UpdateApplication method directly
  2634. // instead.
  2635. //
  2636. // Note: You must call the "Send" method on the returned request object in order
  2637. // to execute the request.
  2638. //
  2639. // // Example sending a request using the UpdateApplicationRequest method.
  2640. // req, resp := client.UpdateApplicationRequest(params)
  2641. //
  2642. // err := req.Send()
  2643. // if err == nil { // resp is now filled
  2644. // fmt.Println(resp)
  2645. // }
  2646. //
  2647. func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
  2648. op := &request.Operation{
  2649. Name: opUpdateApplication,
  2650. HTTPMethod: "POST",
  2651. HTTPPath: "/",
  2652. }
  2653. if input == nil {
  2654. input = &UpdateApplicationInput{}
  2655. }
  2656. req = c.newRequest(op, input, output)
  2657. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2658. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2659. output = &UpdateApplicationOutput{}
  2660. req.Data = output
  2661. return
  2662. }
  2663. // UpdateApplication API operation for AWS CodeDeploy.
  2664. //
  2665. // Changes the name of an application.
  2666. //
  2667. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2668. // with awserr.Error's Code and Message methods to get detailed information about
  2669. // the error.
  2670. //
  2671. // See the AWS API reference guide for AWS CodeDeploy's
  2672. // API operation UpdateApplication for usage and error information.
  2673. //
  2674. // Returned Error Codes:
  2675. // * ApplicationNameRequiredException
  2676. // The minimum number of required application names was not specified.
  2677. //
  2678. // * InvalidApplicationNameException
  2679. // The application name was specified in an invalid format.
  2680. //
  2681. // * ApplicationAlreadyExistsException
  2682. // An application with the specified name already exists with the applicable
  2683. // IAM user or AWS account.
  2684. //
  2685. // * ApplicationDoesNotExistException
  2686. // The application does not exist with the applicable IAM user or AWS account.
  2687. //
  2688. func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
  2689. req, out := c.UpdateApplicationRequest(input)
  2690. err := req.Send()
  2691. return out, err
  2692. }
  2693. const opUpdateDeploymentGroup = "UpdateDeploymentGroup"
  2694. // UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the
  2695. // client's request for the UpdateDeploymentGroup operation. The "output" return
  2696. // value can be used to capture response data after the request's "Send" method
  2697. // is called.
  2698. //
  2699. // See UpdateDeploymentGroup for usage and error information.
  2700. //
  2701. // Creating a request object using this method should be used when you want to inject
  2702. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2703. // access properties on the request object before or after sending the request. If
  2704. // you just want the service response, call the UpdateDeploymentGroup method directly
  2705. // instead.
  2706. //
  2707. // Note: You must call the "Send" method on the returned request object in order
  2708. // to execute the request.
  2709. //
  2710. // // Example sending a request using the UpdateDeploymentGroupRequest method.
  2711. // req, resp := client.UpdateDeploymentGroupRequest(params)
  2712. //
  2713. // err := req.Send()
  2714. // if err == nil { // resp is now filled
  2715. // fmt.Println(resp)
  2716. // }
  2717. //
  2718. func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput) {
  2719. op := &request.Operation{
  2720. Name: opUpdateDeploymentGroup,
  2721. HTTPMethod: "POST",
  2722. HTTPPath: "/",
  2723. }
  2724. if input == nil {
  2725. input = &UpdateDeploymentGroupInput{}
  2726. }
  2727. req = c.newRequest(op, input, output)
  2728. output = &UpdateDeploymentGroupOutput{}
  2729. req.Data = output
  2730. return
  2731. }
  2732. // UpdateDeploymentGroup API operation for AWS CodeDeploy.
  2733. //
  2734. // Changes information about a deployment group.
  2735. //
  2736. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2737. // with awserr.Error's Code and Message methods to get detailed information about
  2738. // the error.
  2739. //
  2740. // See the AWS API reference guide for AWS CodeDeploy's
  2741. // API operation UpdateDeploymentGroup for usage and error information.
  2742. //
  2743. // Returned Error Codes:
  2744. // * ApplicationNameRequiredException
  2745. // The minimum number of required application names was not specified.
  2746. //
  2747. // * InvalidApplicationNameException
  2748. // The application name was specified in an invalid format.
  2749. //
  2750. // * ApplicationDoesNotExistException
  2751. // The application does not exist with the applicable IAM user or AWS account.
  2752. //
  2753. // * InvalidDeploymentGroupNameException
  2754. // The deployment group name was specified in an invalid format.
  2755. //
  2756. // * DeploymentGroupAlreadyExistsException
  2757. // A deployment group with the specified name already exists with the applicable
  2758. // IAM user or AWS account.
  2759. //
  2760. // * DeploymentGroupNameRequiredException
  2761. // The deployment group name was not specified.
  2762. //
  2763. // * DeploymentGroupDoesNotExistException
  2764. // The named deployment group does not exist with the applicable IAM user or
  2765. // AWS account.
  2766. //
  2767. // * InvalidEC2TagException
  2768. // The tag was specified in an invalid format.
  2769. //
  2770. // * InvalidTagException
  2771. // The specified tag was specified in an invalid format.
  2772. //
  2773. // * InvalidAutoScalingGroupException
  2774. // The Auto Scaling group was specified in an invalid format or does not exist.
  2775. //
  2776. // * InvalidDeploymentConfigNameException
  2777. // The deployment configuration name was specified in an invalid format.
  2778. //
  2779. // * DeploymentConfigDoesNotExistException
  2780. // The deployment configuration does not exist with the applicable IAM user
  2781. // or AWS account.
  2782. //
  2783. // * InvalidRoleException
  2784. // The service role ARN was specified in an invalid format. Or, if an Auto Scaling
  2785. // group was specified, the specified service role does not grant the appropriate
  2786. // permissions to Auto Scaling.
  2787. //
  2788. // * LifecycleHookLimitExceededException
  2789. // The limit for lifecycle hooks was exceeded.
  2790. //
  2791. // * InvalidTriggerConfigException
  2792. // The trigger was specified in an invalid format.
  2793. //
  2794. // * TriggerTargetsLimitExceededException
  2795. // The maximum allowed number of triggers was exceeded.
  2796. //
  2797. // * InvalidAlarmConfigException
  2798. // The format of the alarm configuration is invalid. Possible causes include:
  2799. //
  2800. // * The alarm list is null.
  2801. //
  2802. // * The alarm object is null.
  2803. //
  2804. // * The alarm name is empty or null or exceeds the 255 character limit.
  2805. //
  2806. // * Two alarms with the same name have been specified.
  2807. //
  2808. // * The alarm configuration is enabled but the alarm list is empty.
  2809. //
  2810. // * AlarmsLimitExceededException
  2811. // The maximum number of alarms for a deployment group (10) was exceeded.
  2812. //
  2813. // * InvalidAutoRollbackConfigException
  2814. // The automatic rollback configuration was specified in an invalid format.
  2815. // For example, automatic rollback is enabled but an invalid triggering event
  2816. // type or no event types were listed.
  2817. //
  2818. func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) {
  2819. req, out := c.UpdateDeploymentGroupRequest(input)
  2820. err := req.Send()
  2821. return out, err
  2822. }
  2823. // Represents the input of, and adds tags to, an on-premises instance operation.
  2824. type AddTagsToOnPremisesInstancesInput struct {
  2825. _ struct{} `type:"structure"`
  2826. // The names of the on-premises instances to which to add tags.
  2827. //
  2828. // InstanceNames is a required field
  2829. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  2830. // The tag key-value pairs to add to the on-premises instances.
  2831. //
  2832. // Keys and values are both required. Keys cannot be null or empty strings.
  2833. // Value-only tags are not allowed.
  2834. //
  2835. // Tags is a required field
  2836. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  2837. }
  2838. // String returns the string representation
  2839. func (s AddTagsToOnPremisesInstancesInput) String() string {
  2840. return awsutil.Prettify(s)
  2841. }
  2842. // GoString returns the string representation
  2843. func (s AddTagsToOnPremisesInstancesInput) GoString() string {
  2844. return s.String()
  2845. }
  2846. // Validate inspects the fields of the type to determine if they are valid.
  2847. func (s *AddTagsToOnPremisesInstancesInput) Validate() error {
  2848. invalidParams := request.ErrInvalidParams{Context: "AddTagsToOnPremisesInstancesInput"}
  2849. if s.InstanceNames == nil {
  2850. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  2851. }
  2852. if s.Tags == nil {
  2853. invalidParams.Add(request.NewErrParamRequired("Tags"))
  2854. }
  2855. if invalidParams.Len() > 0 {
  2856. return invalidParams
  2857. }
  2858. return nil
  2859. }
  2860. type AddTagsToOnPremisesInstancesOutput struct {
  2861. _ struct{} `type:"structure"`
  2862. }
  2863. // String returns the string representation
  2864. func (s AddTagsToOnPremisesInstancesOutput) String() string {
  2865. return awsutil.Prettify(s)
  2866. }
  2867. // GoString returns the string representation
  2868. func (s AddTagsToOnPremisesInstancesOutput) GoString() string {
  2869. return s.String()
  2870. }
  2871. // Information about an alarm.
  2872. type Alarm struct {
  2873. _ struct{} `type:"structure"`
  2874. // The name of the alarm. Maximum length is 255 characters. Each alarm name
  2875. // can be used only once in a list of alarms.
  2876. Name *string `locationName:"name" type:"string"`
  2877. }
  2878. // String returns the string representation
  2879. func (s Alarm) String() string {
  2880. return awsutil.Prettify(s)
  2881. }
  2882. // GoString returns the string representation
  2883. func (s Alarm) GoString() string {
  2884. return s.String()
  2885. }
  2886. // Information about alarms associated with the deployment group.
  2887. type AlarmConfiguration struct {
  2888. _ struct{} `type:"structure"`
  2889. // A list of alarms configured for the deployment group. A maximum of 10 alarms
  2890. // can be added to a deployment group.
  2891. Alarms []*Alarm `locationName:"alarms" type:"list"`
  2892. // Indicates whether the alarm configuration is enabled.
  2893. Enabled *bool `locationName:"enabled" type:"boolean"`
  2894. // Indicates whether a deployment should continue if information about the current
  2895. // state of alarms cannot be retrieved from Amazon CloudWatch. The default value
  2896. // is false.
  2897. //
  2898. // * true: The deployment will proceed even if alarm status information can't
  2899. // be retrieved from Amazon CloudWatch.
  2900. //
  2901. // * false: The deployment will stop if alarm status information can't be
  2902. // retrieved from Amazon CloudWatch.
  2903. IgnorePollAlarmFailure *bool `locationName:"ignorePollAlarmFailure" type:"boolean"`
  2904. }
  2905. // String returns the string representation
  2906. func (s AlarmConfiguration) String() string {
  2907. return awsutil.Prettify(s)
  2908. }
  2909. // GoString returns the string representation
  2910. func (s AlarmConfiguration) GoString() string {
  2911. return s.String()
  2912. }
  2913. // Information about an application.
  2914. type ApplicationInfo struct {
  2915. _ struct{} `type:"structure"`
  2916. // The application ID.
  2917. ApplicationId *string `locationName:"applicationId" type:"string"`
  2918. // The application name.
  2919. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  2920. // The time at which the application was created.
  2921. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
  2922. // True if the user has authenticated with GitHub for the specified application;
  2923. // otherwise, false.
  2924. LinkedToGitHub *bool `locationName:"linkedToGitHub" type:"boolean"`
  2925. }
  2926. // String returns the string representation
  2927. func (s ApplicationInfo) String() string {
  2928. return awsutil.Prettify(s)
  2929. }
  2930. // GoString returns the string representation
  2931. func (s ApplicationInfo) GoString() string {
  2932. return s.String()
  2933. }
  2934. // Information about a configuration for automatically rolling back to a previous
  2935. // version of an application revision when a deployment doesn't complete successfully.
  2936. type AutoRollbackConfiguration struct {
  2937. _ struct{} `type:"structure"`
  2938. // Indicates whether a defined automatic rollback configuration is currently
  2939. // enabled.
  2940. Enabled *bool `locationName:"enabled" type:"boolean"`
  2941. // The event type or types that trigger a rollback.
  2942. Events []*string `locationName:"events" type:"list"`
  2943. }
  2944. // String returns the string representation
  2945. func (s AutoRollbackConfiguration) String() string {
  2946. return awsutil.Prettify(s)
  2947. }
  2948. // GoString returns the string representation
  2949. func (s AutoRollbackConfiguration) GoString() string {
  2950. return s.String()
  2951. }
  2952. // Information about an Auto Scaling group.
  2953. type AutoScalingGroup struct {
  2954. _ struct{} `type:"structure"`
  2955. // An Auto Scaling lifecycle event hook name.
  2956. Hook *string `locationName:"hook" type:"string"`
  2957. // The Auto Scaling group name.
  2958. Name *string `locationName:"name" type:"string"`
  2959. }
  2960. // String returns the string representation
  2961. func (s AutoScalingGroup) String() string {
  2962. return awsutil.Prettify(s)
  2963. }
  2964. // GoString returns the string representation
  2965. func (s AutoScalingGroup) GoString() string {
  2966. return s.String()
  2967. }
  2968. // Represents the input of a batch get application revisions operation.
  2969. type BatchGetApplicationRevisionsInput struct {
  2970. _ struct{} `type:"structure"`
  2971. // The name of an AWS CodeDeploy application about which to get revision information.
  2972. //
  2973. // ApplicationName is a required field
  2974. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2975. // Information to get about the application revisions, including type and location.
  2976. //
  2977. // Revisions is a required field
  2978. Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"`
  2979. }
  2980. // String returns the string representation
  2981. func (s BatchGetApplicationRevisionsInput) String() string {
  2982. return awsutil.Prettify(s)
  2983. }
  2984. // GoString returns the string representation
  2985. func (s BatchGetApplicationRevisionsInput) GoString() string {
  2986. return s.String()
  2987. }
  2988. // Validate inspects the fields of the type to determine if they are valid.
  2989. func (s *BatchGetApplicationRevisionsInput) Validate() error {
  2990. invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationRevisionsInput"}
  2991. if s.ApplicationName == nil {
  2992. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2993. }
  2994. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2995. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2996. }
  2997. if s.Revisions == nil {
  2998. invalidParams.Add(request.NewErrParamRequired("Revisions"))
  2999. }
  3000. if invalidParams.Len() > 0 {
  3001. return invalidParams
  3002. }
  3003. return nil
  3004. }
  3005. // Represents the output of a batch get application revisions operation.
  3006. type BatchGetApplicationRevisionsOutput struct {
  3007. _ struct{} `type:"structure"`
  3008. // The name of the application that corresponds to the revisions.
  3009. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  3010. // Information about errors that may have occurred during the API call.
  3011. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  3012. // Additional information about the revisions, including the type and location.
  3013. Revisions []*RevisionInfo `locationName:"revisions" type:"list"`
  3014. }
  3015. // String returns the string representation
  3016. func (s BatchGetApplicationRevisionsOutput) String() string {
  3017. return awsutil.Prettify(s)
  3018. }
  3019. // GoString returns the string representation
  3020. func (s BatchGetApplicationRevisionsOutput) GoString() string {
  3021. return s.String()
  3022. }
  3023. // Represents the input of a batch get applications operation.
  3024. type BatchGetApplicationsInput struct {
  3025. _ struct{} `type:"structure"`
  3026. // A list of application names separated by spaces.
  3027. ApplicationNames []*string `locationName:"applicationNames" type:"list"`
  3028. }
  3029. // String returns the string representation
  3030. func (s BatchGetApplicationsInput) String() string {
  3031. return awsutil.Prettify(s)
  3032. }
  3033. // GoString returns the string representation
  3034. func (s BatchGetApplicationsInput) GoString() string {
  3035. return s.String()
  3036. }
  3037. // Represents the output of a batch get applications operation.
  3038. type BatchGetApplicationsOutput struct {
  3039. _ struct{} `type:"structure"`
  3040. // Information about the applications.
  3041. ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"`
  3042. }
  3043. // String returns the string representation
  3044. func (s BatchGetApplicationsOutput) String() string {
  3045. return awsutil.Prettify(s)
  3046. }
  3047. // GoString returns the string representation
  3048. func (s BatchGetApplicationsOutput) GoString() string {
  3049. return s.String()
  3050. }
  3051. // Represents the input of a batch get deployment groups operation.
  3052. type BatchGetDeploymentGroupsInput struct {
  3053. _ struct{} `type:"structure"`
  3054. // The name of an AWS CodeDeploy application associated with the applicable
  3055. // IAM user or AWS account.
  3056. //
  3057. // ApplicationName is a required field
  3058. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3059. // The deployment groups' names.
  3060. //
  3061. // DeploymentGroupNames is a required field
  3062. DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"`
  3063. }
  3064. // String returns the string representation
  3065. func (s BatchGetDeploymentGroupsInput) String() string {
  3066. return awsutil.Prettify(s)
  3067. }
  3068. // GoString returns the string representation
  3069. func (s BatchGetDeploymentGroupsInput) GoString() string {
  3070. return s.String()
  3071. }
  3072. // Validate inspects the fields of the type to determine if they are valid.
  3073. func (s *BatchGetDeploymentGroupsInput) Validate() error {
  3074. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentGroupsInput"}
  3075. if s.ApplicationName == nil {
  3076. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3077. }
  3078. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3079. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3080. }
  3081. if s.DeploymentGroupNames == nil {
  3082. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupNames"))
  3083. }
  3084. if invalidParams.Len() > 0 {
  3085. return invalidParams
  3086. }
  3087. return nil
  3088. }
  3089. // Represents the output of a batch get deployment groups operation.
  3090. type BatchGetDeploymentGroupsOutput struct {
  3091. _ struct{} `type:"structure"`
  3092. // Information about the deployment groups.
  3093. DeploymentGroupsInfo []*DeploymentGroupInfo `locationName:"deploymentGroupsInfo" type:"list"`
  3094. // Information about errors that may have occurred during the API call.
  3095. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  3096. }
  3097. // String returns the string representation
  3098. func (s BatchGetDeploymentGroupsOutput) String() string {
  3099. return awsutil.Prettify(s)
  3100. }
  3101. // GoString returns the string representation
  3102. func (s BatchGetDeploymentGroupsOutput) GoString() string {
  3103. return s.String()
  3104. }
  3105. // Represents the input of a batch get deployment instances operation.
  3106. type BatchGetDeploymentInstancesInput struct {
  3107. _ struct{} `type:"structure"`
  3108. // The unique ID of a deployment.
  3109. //
  3110. // DeploymentId is a required field
  3111. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  3112. // The unique IDs of instances in the deployment group.
  3113. //
  3114. // InstanceIds is a required field
  3115. InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"`
  3116. }
  3117. // String returns the string representation
  3118. func (s BatchGetDeploymentInstancesInput) String() string {
  3119. return awsutil.Prettify(s)
  3120. }
  3121. // GoString returns the string representation
  3122. func (s BatchGetDeploymentInstancesInput) GoString() string {
  3123. return s.String()
  3124. }
  3125. // Validate inspects the fields of the type to determine if they are valid.
  3126. func (s *BatchGetDeploymentInstancesInput) Validate() error {
  3127. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentInstancesInput"}
  3128. if s.DeploymentId == nil {
  3129. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  3130. }
  3131. if s.InstanceIds == nil {
  3132. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  3133. }
  3134. if invalidParams.Len() > 0 {
  3135. return invalidParams
  3136. }
  3137. return nil
  3138. }
  3139. // Represents the output of a batch get deployment instance operation.
  3140. type BatchGetDeploymentInstancesOutput struct {
  3141. _ struct{} `type:"structure"`
  3142. // Information about errors that may have occurred during the API call.
  3143. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  3144. // Information about the instance.
  3145. InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"`
  3146. }
  3147. // String returns the string representation
  3148. func (s BatchGetDeploymentInstancesOutput) String() string {
  3149. return awsutil.Prettify(s)
  3150. }
  3151. // GoString returns the string representation
  3152. func (s BatchGetDeploymentInstancesOutput) GoString() string {
  3153. return s.String()
  3154. }
  3155. // Represents the input of a batch get deployments operation.
  3156. type BatchGetDeploymentsInput struct {
  3157. _ struct{} `type:"structure"`
  3158. // A list of deployment IDs, separated by spaces.
  3159. DeploymentIds []*string `locationName:"deploymentIds" type:"list"`
  3160. }
  3161. // String returns the string representation
  3162. func (s BatchGetDeploymentsInput) String() string {
  3163. return awsutil.Prettify(s)
  3164. }
  3165. // GoString returns the string representation
  3166. func (s BatchGetDeploymentsInput) GoString() string {
  3167. return s.String()
  3168. }
  3169. // Represents the output of a batch get deployments operation.
  3170. type BatchGetDeploymentsOutput struct {
  3171. _ struct{} `type:"structure"`
  3172. // Information about the deployments.
  3173. DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"`
  3174. }
  3175. // String returns the string representation
  3176. func (s BatchGetDeploymentsOutput) String() string {
  3177. return awsutil.Prettify(s)
  3178. }
  3179. // GoString returns the string representation
  3180. func (s BatchGetDeploymentsOutput) GoString() string {
  3181. return s.String()
  3182. }
  3183. // Represents the input of a batch get on-premises instances operation.
  3184. type BatchGetOnPremisesInstancesInput struct {
  3185. _ struct{} `type:"structure"`
  3186. // The names of the on-premises instances about which to get information.
  3187. InstanceNames []*string `locationName:"instanceNames" type:"list"`
  3188. }
  3189. // String returns the string representation
  3190. func (s BatchGetOnPremisesInstancesInput) String() string {
  3191. return awsutil.Prettify(s)
  3192. }
  3193. // GoString returns the string representation
  3194. func (s BatchGetOnPremisesInstancesInput) GoString() string {
  3195. return s.String()
  3196. }
  3197. // Represents the output of a batch get on-premises instances operation.
  3198. type BatchGetOnPremisesInstancesOutput struct {
  3199. _ struct{} `type:"structure"`
  3200. // Information about the on-premises instances.
  3201. InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"`
  3202. }
  3203. // String returns the string representation
  3204. func (s BatchGetOnPremisesInstancesOutput) String() string {
  3205. return awsutil.Prettify(s)
  3206. }
  3207. // GoString returns the string representation
  3208. func (s BatchGetOnPremisesInstancesOutput) GoString() string {
  3209. return s.String()
  3210. }
  3211. // Represents the input of a create application operation.
  3212. type CreateApplicationInput struct {
  3213. _ struct{} `type:"structure"`
  3214. // The name of the application. This name must be unique with the applicable
  3215. // IAM user or AWS account.
  3216. //
  3217. // ApplicationName is a required field
  3218. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3219. }
  3220. // String returns the string representation
  3221. func (s CreateApplicationInput) String() string {
  3222. return awsutil.Prettify(s)
  3223. }
  3224. // GoString returns the string representation
  3225. func (s CreateApplicationInput) GoString() string {
  3226. return s.String()
  3227. }
  3228. // Validate inspects the fields of the type to determine if they are valid.
  3229. func (s *CreateApplicationInput) Validate() error {
  3230. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  3231. if s.ApplicationName == nil {
  3232. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3233. }
  3234. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3235. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3236. }
  3237. if invalidParams.Len() > 0 {
  3238. return invalidParams
  3239. }
  3240. return nil
  3241. }
  3242. // Represents the output of a create application operation.
  3243. type CreateApplicationOutput struct {
  3244. _ struct{} `type:"structure"`
  3245. // A unique application ID.
  3246. ApplicationId *string `locationName:"applicationId" type:"string"`
  3247. }
  3248. // String returns the string representation
  3249. func (s CreateApplicationOutput) String() string {
  3250. return awsutil.Prettify(s)
  3251. }
  3252. // GoString returns the string representation
  3253. func (s CreateApplicationOutput) GoString() string {
  3254. return s.String()
  3255. }
  3256. // Represents the input of a create deployment configuration operation.
  3257. type CreateDeploymentConfigInput struct {
  3258. _ struct{} `type:"structure"`
  3259. // The name of the deployment configuration to create.
  3260. //
  3261. // DeploymentConfigName is a required field
  3262. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  3263. // The minimum number of healthy instances that should be available at any time
  3264. // during the deployment. There are two parameters expected in the input: type
  3265. // and value.
  3266. //
  3267. // The type parameter takes either of the following values:
  3268. //
  3269. // * HOST_COUNT: The value parameter represents the minimum number of healthy
  3270. // instances as an absolute value.
  3271. //
  3272. // * FLEET_PERCENT: The value parameter represents the minimum number of
  3273. // healthy instances as a percentage of the total number of instances in
  3274. // the deployment. If you specify FLEET_PERCENT, at the start of the deployment,
  3275. // AWS CodeDeploy converts the percentage to the equivalent number of instance
  3276. // and rounds up fractional instances.
  3277. //
  3278. // The value parameter takes an integer.
  3279. //
  3280. // For example, to set a minimum of 95% healthy instance, specify a type of
  3281. // FLEET_PERCENT and a value of 95.
  3282. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
  3283. }
  3284. // String returns the string representation
  3285. func (s CreateDeploymentConfigInput) String() string {
  3286. return awsutil.Prettify(s)
  3287. }
  3288. // GoString returns the string representation
  3289. func (s CreateDeploymentConfigInput) GoString() string {
  3290. return s.String()
  3291. }
  3292. // Validate inspects the fields of the type to determine if they are valid.
  3293. func (s *CreateDeploymentConfigInput) Validate() error {
  3294. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentConfigInput"}
  3295. if s.DeploymentConfigName == nil {
  3296. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  3297. }
  3298. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  3299. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  3300. }
  3301. if invalidParams.Len() > 0 {
  3302. return invalidParams
  3303. }
  3304. return nil
  3305. }
  3306. // Represents the output of a create deployment configuration operation.
  3307. type CreateDeploymentConfigOutput struct {
  3308. _ struct{} `type:"structure"`
  3309. // A unique deployment configuration ID.
  3310. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
  3311. }
  3312. // String returns the string representation
  3313. func (s CreateDeploymentConfigOutput) String() string {
  3314. return awsutil.Prettify(s)
  3315. }
  3316. // GoString returns the string representation
  3317. func (s CreateDeploymentConfigOutput) GoString() string {
  3318. return s.String()
  3319. }
  3320. // Represents the input of a create deployment group operation.
  3321. type CreateDeploymentGroupInput struct {
  3322. _ struct{} `type:"structure"`
  3323. // Information to add about Amazon CloudWatch alarms when the deployment group
  3324. // is created.
  3325. AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"`
  3326. // The name of an AWS CodeDeploy application associated with the applicable
  3327. // IAM user or AWS account.
  3328. //
  3329. // ApplicationName is a required field
  3330. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3331. // Configuration information for an automatic rollback that is added when a
  3332. // deployment group is created.
  3333. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  3334. // A list of associated Auto Scaling groups.
  3335. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  3336. // If specified, the deployment configuration name can be either one of the
  3337. // predefined configurations provided with AWS CodeDeploy or a custom deployment
  3338. // configuration that you create by calling the create deployment configuration
  3339. // operation.
  3340. //
  3341. // CodeDeployDefault.OneAtATime is the default deployment configuration. It
  3342. // is used if a configuration isn't specified for the deployment or the deployment
  3343. // group.
  3344. //
  3345. // The predefined deployment configurations include the following:
  3346. //
  3347. // * CodeDeployDefault.AllAtOnce attempts to deploy an application revision
  3348. // to as many instances as possible at once. The status of the overall deployment
  3349. // will be displayed as Succeeded if the application revision is deployed
  3350. // to one or more of the instances. The status of the overall deployment
  3351. // will be displayed as Failed if the application revision is not deployed
  3352. // to any of the instances. Using an example of nine instances, CodeDeployDefault.AllAtOnce
  3353. // will attempt to deploy to all nine instances at once. The overall deployment
  3354. // will succeed if deployment to even a single instance is successful; it
  3355. // will fail only if deployments to all nine instances fail.
  3356. //
  3357. // * CodeDeployDefault.HalfAtATime deploys to up to half of the instances
  3358. // at a time (with fractions rounded down). The overall deployment succeeds
  3359. // if the application revision is deployed to at least half of the instances
  3360. // (with fractions rounded up); otherwise, the deployment fails. In the example
  3361. // of nine instances, it will deploy to up to four instances at a time. The
  3362. // overall deployment succeeds if deployment to five or more instances succeed;
  3363. // otherwise, the deployment fails. The deployment may be successfully deployed
  3364. // to some instances even if the overall deployment fails.
  3365. //
  3366. // * CodeDeployDefault.OneAtATime deploys the application revision to only
  3367. // one instance at a time.
  3368. //
  3369. // For deployment groups that contain more than one instance:
  3370. //
  3371. // The overall deployment succeeds if the application revision is deployed to
  3372. // all of the instances. The exception to this rule is if deployment to the
  3373. // last instance fails, the overall deployment still succeeds. This is because
  3374. // AWS CodeDeploy allows only one instance at a time to be taken offline
  3375. // with the CodeDeployDefault.OneAtATime configuration.
  3376. //
  3377. // The overall deployment fails as soon as the application revision fails to
  3378. // be deployed to any but the last instance. The deployment may be successfully
  3379. // deployed to some instances even if the overall deployment fails.
  3380. //
  3381. // In an example using nine instances, it will deploy to one instance at a time.
  3382. // The overall deployment succeeds if deployment to the first eight instances
  3383. // is successful; the overall deployment fails if deployment to any of the
  3384. // first eight instances fails.
  3385. //
  3386. // For deployment groups that contain only one instance, the overall deployment
  3387. // is successful only if deployment to the single instance is successful
  3388. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  3389. // The name of a new deployment group for the specified application.
  3390. //
  3391. // DeploymentGroupName is a required field
  3392. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  3393. // The Amazon EC2 tags on which to filter.
  3394. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  3395. // The on-premises instance tags on which to filter.
  3396. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  3397. // A service role ARN that allows AWS CodeDeploy to act on the user's behalf
  3398. // when interacting with AWS services.
  3399. //
  3400. // ServiceRoleArn is a required field
  3401. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"`
  3402. // Information about triggers to create when the deployment group is created.
  3403. // For examples, see Create a Trigger for an AWS CodeDeploy Event (http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html)
  3404. // in the AWS CodeDeploy User Guide.
  3405. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  3406. }
  3407. // String returns the string representation
  3408. func (s CreateDeploymentGroupInput) String() string {
  3409. return awsutil.Prettify(s)
  3410. }
  3411. // GoString returns the string representation
  3412. func (s CreateDeploymentGroupInput) GoString() string {
  3413. return s.String()
  3414. }
  3415. // Validate inspects the fields of the type to determine if they are valid.
  3416. func (s *CreateDeploymentGroupInput) Validate() error {
  3417. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"}
  3418. if s.ApplicationName == nil {
  3419. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3420. }
  3421. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3422. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3423. }
  3424. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  3425. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  3426. }
  3427. if s.DeploymentGroupName == nil {
  3428. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  3429. }
  3430. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  3431. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  3432. }
  3433. if s.ServiceRoleArn == nil {
  3434. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  3435. }
  3436. if invalidParams.Len() > 0 {
  3437. return invalidParams
  3438. }
  3439. return nil
  3440. }
  3441. // Represents the output of a create deployment group operation.
  3442. type CreateDeploymentGroupOutput struct {
  3443. _ struct{} `type:"structure"`
  3444. // A unique deployment group ID.
  3445. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
  3446. }
  3447. // String returns the string representation
  3448. func (s CreateDeploymentGroupOutput) String() string {
  3449. return awsutil.Prettify(s)
  3450. }
  3451. // GoString returns the string representation
  3452. func (s CreateDeploymentGroupOutput) GoString() string {
  3453. return s.String()
  3454. }
  3455. // Represents the input of a create deployment operation.
  3456. type CreateDeploymentInput struct {
  3457. _ struct{} `type:"structure"`
  3458. // The name of an AWS CodeDeploy application associated with the applicable
  3459. // IAM user or AWS account.
  3460. //
  3461. // ApplicationName is a required field
  3462. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3463. // Configuration information for an automatic rollback that is added when a
  3464. // deployment is created.
  3465. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  3466. // The name of a deployment configuration associated with the applicable IAM
  3467. // user or AWS account.
  3468. //
  3469. // If not specified, the value configured in the deployment group will be used
  3470. // as the default. If the deployment group does not have a deployment configuration
  3471. // associated with it, then CodeDeployDefault.OneAtATime will be used by default.
  3472. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  3473. // The name of the deployment group.
  3474. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  3475. // A comment about the deployment.
  3476. Description *string `locationName:"description" type:"string"`
  3477. // If set to true, then if the deployment causes the ApplicationStop deployment
  3478. // lifecycle event to an instance to fail, the deployment to that instance will
  3479. // not be considered to have failed at that point and will continue on to the
  3480. // BeforeInstall deployment lifecycle event.
  3481. //
  3482. // If set to false or not specified, then if the deployment causes the ApplicationStop
  3483. // deployment lifecycle event to fail to an instance, the deployment to that
  3484. // instance will stop, and the deployment to that instance will be considered
  3485. // to have failed.
  3486. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
  3487. // The type and location of the revision to deploy.
  3488. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  3489. // Indicates whether to deploy to all instances or only to instances that are
  3490. // not running the latest application revision.
  3491. UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"`
  3492. }
  3493. // String returns the string representation
  3494. func (s CreateDeploymentInput) String() string {
  3495. return awsutil.Prettify(s)
  3496. }
  3497. // GoString returns the string representation
  3498. func (s CreateDeploymentInput) GoString() string {
  3499. return s.String()
  3500. }
  3501. // Validate inspects the fields of the type to determine if they are valid.
  3502. func (s *CreateDeploymentInput) Validate() error {
  3503. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
  3504. if s.ApplicationName == nil {
  3505. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3506. }
  3507. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3508. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3509. }
  3510. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  3511. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  3512. }
  3513. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  3514. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  3515. }
  3516. if invalidParams.Len() > 0 {
  3517. return invalidParams
  3518. }
  3519. return nil
  3520. }
  3521. // Represents the output of a create deployment operation.
  3522. type CreateDeploymentOutput struct {
  3523. _ struct{} `type:"structure"`
  3524. // A unique deployment ID.
  3525. DeploymentId *string `locationName:"deploymentId" type:"string"`
  3526. }
  3527. // String returns the string representation
  3528. func (s CreateDeploymentOutput) String() string {
  3529. return awsutil.Prettify(s)
  3530. }
  3531. // GoString returns the string representation
  3532. func (s CreateDeploymentOutput) GoString() string {
  3533. return s.String()
  3534. }
  3535. // Represents the input of a delete application operation.
  3536. type DeleteApplicationInput struct {
  3537. _ struct{} `type:"structure"`
  3538. // The name of an AWS CodeDeploy application associated with the applicable
  3539. // IAM user or AWS account.
  3540. //
  3541. // ApplicationName is a required field
  3542. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3543. }
  3544. // String returns the string representation
  3545. func (s DeleteApplicationInput) String() string {
  3546. return awsutil.Prettify(s)
  3547. }
  3548. // GoString returns the string representation
  3549. func (s DeleteApplicationInput) GoString() string {
  3550. return s.String()
  3551. }
  3552. // Validate inspects the fields of the type to determine if they are valid.
  3553. func (s *DeleteApplicationInput) Validate() error {
  3554. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
  3555. if s.ApplicationName == nil {
  3556. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3557. }
  3558. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3559. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3560. }
  3561. if invalidParams.Len() > 0 {
  3562. return invalidParams
  3563. }
  3564. return nil
  3565. }
  3566. type DeleteApplicationOutput struct {
  3567. _ struct{} `type:"structure"`
  3568. }
  3569. // String returns the string representation
  3570. func (s DeleteApplicationOutput) String() string {
  3571. return awsutil.Prettify(s)
  3572. }
  3573. // GoString returns the string representation
  3574. func (s DeleteApplicationOutput) GoString() string {
  3575. return s.String()
  3576. }
  3577. // Represents the input of a delete deployment configuration operation.
  3578. type DeleteDeploymentConfigInput struct {
  3579. _ struct{} `type:"structure"`
  3580. // The name of a deployment configuration associated with the applicable IAM
  3581. // user or AWS account.
  3582. //
  3583. // DeploymentConfigName is a required field
  3584. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  3585. }
  3586. // String returns the string representation
  3587. func (s DeleteDeploymentConfigInput) String() string {
  3588. return awsutil.Prettify(s)
  3589. }
  3590. // GoString returns the string representation
  3591. func (s DeleteDeploymentConfigInput) GoString() string {
  3592. return s.String()
  3593. }
  3594. // Validate inspects the fields of the type to determine if they are valid.
  3595. func (s *DeleteDeploymentConfigInput) Validate() error {
  3596. invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"}
  3597. if s.DeploymentConfigName == nil {
  3598. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  3599. }
  3600. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  3601. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  3602. }
  3603. if invalidParams.Len() > 0 {
  3604. return invalidParams
  3605. }
  3606. return nil
  3607. }
  3608. type DeleteDeploymentConfigOutput struct {
  3609. _ struct{} `type:"structure"`
  3610. }
  3611. // String returns the string representation
  3612. func (s DeleteDeploymentConfigOutput) String() string {
  3613. return awsutil.Prettify(s)
  3614. }
  3615. // GoString returns the string representation
  3616. func (s DeleteDeploymentConfigOutput) GoString() string {
  3617. return s.String()
  3618. }
  3619. // Represents the input of a delete deployment group operation.
  3620. type DeleteDeploymentGroupInput struct {
  3621. _ struct{} `type:"structure"`
  3622. // The name of an AWS CodeDeploy application associated with the applicable
  3623. // IAM user or AWS account.
  3624. //
  3625. // ApplicationName is a required field
  3626. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3627. // The name of an existing deployment group for the specified application.
  3628. //
  3629. // DeploymentGroupName is a required field
  3630. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  3631. }
  3632. // String returns the string representation
  3633. func (s DeleteDeploymentGroupInput) String() string {
  3634. return awsutil.Prettify(s)
  3635. }
  3636. // GoString returns the string representation
  3637. func (s DeleteDeploymentGroupInput) GoString() string {
  3638. return s.String()
  3639. }
  3640. // Validate inspects the fields of the type to determine if they are valid.
  3641. func (s *DeleteDeploymentGroupInput) Validate() error {
  3642. invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"}
  3643. if s.ApplicationName == nil {
  3644. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3645. }
  3646. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3647. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3648. }
  3649. if s.DeploymentGroupName == nil {
  3650. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  3651. }
  3652. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  3653. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  3654. }
  3655. if invalidParams.Len() > 0 {
  3656. return invalidParams
  3657. }
  3658. return nil
  3659. }
  3660. // Represents the output of a delete deployment group operation.
  3661. type DeleteDeploymentGroupOutput struct {
  3662. _ struct{} `type:"structure"`
  3663. // If the output contains no data, and the corresponding deployment group contained
  3664. // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
  3665. // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances
  3666. // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could
  3667. // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances
  3668. // in the Auto Scaling group.
  3669. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
  3670. }
  3671. // String returns the string representation
  3672. func (s DeleteDeploymentGroupOutput) String() string {
  3673. return awsutil.Prettify(s)
  3674. }
  3675. // GoString returns the string representation
  3676. func (s DeleteDeploymentGroupOutput) GoString() string {
  3677. return s.String()
  3678. }
  3679. // Information about a deployment configuration.
  3680. type DeploymentConfigInfo struct {
  3681. _ struct{} `type:"structure"`
  3682. // The time at which the deployment configuration was created.
  3683. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
  3684. // The deployment configuration ID.
  3685. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
  3686. // The deployment configuration name.
  3687. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  3688. // Information about the number or percentage of minimum healthy instance.
  3689. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
  3690. }
  3691. // String returns the string representation
  3692. func (s DeploymentConfigInfo) String() string {
  3693. return awsutil.Prettify(s)
  3694. }
  3695. // GoString returns the string representation
  3696. func (s DeploymentConfigInfo) GoString() string {
  3697. return s.String()
  3698. }
  3699. // Information about a deployment group.
  3700. type DeploymentGroupInfo struct {
  3701. _ struct{} `type:"structure"`
  3702. // A list of alarms associated with the deployment group.
  3703. AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"`
  3704. // The application name.
  3705. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  3706. // Information about the automatic rollback configuration associated with the
  3707. // deployment group.
  3708. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  3709. // A list of associated Auto Scaling groups.
  3710. AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"`
  3711. // The deployment configuration name.
  3712. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  3713. // The deployment group ID.
  3714. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
  3715. // The deployment group name.
  3716. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  3717. // The Amazon EC2 tags on which to filter.
  3718. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  3719. // The on-premises instance tags on which to filter.
  3720. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  3721. // A service role ARN.
  3722. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
  3723. // Information about the deployment group's target revision, including type
  3724. // and location.
  3725. TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"`
  3726. // Information about triggers associated with the deployment group.
  3727. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  3728. }
  3729. // String returns the string representation
  3730. func (s DeploymentGroupInfo) String() string {
  3731. return awsutil.Prettify(s)
  3732. }
  3733. // GoString returns the string representation
  3734. func (s DeploymentGroupInfo) GoString() string {
  3735. return s.String()
  3736. }
  3737. // Information about a deployment.
  3738. type DeploymentInfo struct {
  3739. _ struct{} `type:"structure"`
  3740. // The application name.
  3741. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  3742. // Information about the automatic rollback configuration associated with the
  3743. // deployment.
  3744. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  3745. // A timestamp indicating when the deployment was complete.
  3746. CompleteTime *time.Time `locationName:"completeTime" type:"timestamp" timestampFormat:"unix"`
  3747. // A timestamp indicating when the deployment was created.
  3748. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
  3749. // The means by which the deployment was created:
  3750. //
  3751. // * user: A user created the deployment.
  3752. //
  3753. // * autoscaling: Auto Scaling created the deployment.
  3754. //
  3755. // * codeDeployRollback: A rollback process created the deployment.
  3756. Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"`
  3757. // The deployment configuration name.
  3758. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  3759. // The deployment group name.
  3760. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  3761. // The deployment ID.
  3762. DeploymentId *string `locationName:"deploymentId" type:"string"`
  3763. // A summary of the deployment status of the instances in the deployment.
  3764. DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"`
  3765. // A comment about the deployment.
  3766. Description *string `locationName:"description" type:"string"`
  3767. // Information about any error associated with this deployment.
  3768. ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"`
  3769. // If true, then if the deployment causes the ApplicationStop deployment lifecycle
  3770. // event to an instance to fail, the deployment to that instance will not be
  3771. // considered to have failed at that point and will continue on to the BeforeInstall
  3772. // deployment lifecycle event.
  3773. //
  3774. // If false or not specified, then if the deployment causes the ApplicationStop
  3775. // deployment lifecycle event to an instance to fail, the deployment to that
  3776. // instance will stop, and the deployment to that instance will be considered
  3777. // to have failed.
  3778. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
  3779. // Information about the location of stored application artifacts and the service
  3780. // from which to retrieve them.
  3781. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  3782. // Information about a deployment rollback.
  3783. RollbackInfo *RollbackInfo `locationName:"rollbackInfo" type:"structure"`
  3784. // A timestamp indicating when the deployment was deployed to the deployment
  3785. // group.
  3786. //
  3787. // In some cases, the reported value of the start time may be later than the
  3788. // complete time. This is due to differences in the clock settings of back-end
  3789. // servers that participate in the deployment process.
  3790. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
  3791. // The current state of the deployment as a whole.
  3792. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"`
  3793. // Indicates whether only instances that are not running the latest application
  3794. // revision are to be deployed to.
  3795. UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"`
  3796. }
  3797. // String returns the string representation
  3798. func (s DeploymentInfo) String() string {
  3799. return awsutil.Prettify(s)
  3800. }
  3801. // GoString returns the string representation
  3802. func (s DeploymentInfo) GoString() string {
  3803. return s.String()
  3804. }
  3805. // Information about the deployment status of the instances in the deployment.
  3806. type DeploymentOverview struct {
  3807. _ struct{} `type:"structure"`
  3808. // The number of instances in the deployment in a failed state.
  3809. Failed *int64 `type:"long"`
  3810. // The number of instances in which the deployment is in progress.
  3811. InProgress *int64 `type:"long"`
  3812. // The number of instances in the deployment in a pending state.
  3813. Pending *int64 `type:"long"`
  3814. // The number of instances in the deployment in a skipped state.
  3815. Skipped *int64 `type:"long"`
  3816. // The number of instances in the deployment to which revisions have been successfully
  3817. // deployed.
  3818. Succeeded *int64 `type:"long"`
  3819. }
  3820. // String returns the string representation
  3821. func (s DeploymentOverview) String() string {
  3822. return awsutil.Prettify(s)
  3823. }
  3824. // GoString returns the string representation
  3825. func (s DeploymentOverview) GoString() string {
  3826. return s.String()
  3827. }
  3828. // Represents the input of a deregister on-premises instance operation.
  3829. type DeregisterOnPremisesInstanceInput struct {
  3830. _ struct{} `type:"structure"`
  3831. // The name of the on-premises instance to deregister.
  3832. //
  3833. // InstanceName is a required field
  3834. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  3835. }
  3836. // String returns the string representation
  3837. func (s DeregisterOnPremisesInstanceInput) String() string {
  3838. return awsutil.Prettify(s)
  3839. }
  3840. // GoString returns the string representation
  3841. func (s DeregisterOnPremisesInstanceInput) GoString() string {
  3842. return s.String()
  3843. }
  3844. // Validate inspects the fields of the type to determine if they are valid.
  3845. func (s *DeregisterOnPremisesInstanceInput) Validate() error {
  3846. invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"}
  3847. if s.InstanceName == nil {
  3848. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  3849. }
  3850. if invalidParams.Len() > 0 {
  3851. return invalidParams
  3852. }
  3853. return nil
  3854. }
  3855. type DeregisterOnPremisesInstanceOutput struct {
  3856. _ struct{} `type:"structure"`
  3857. }
  3858. // String returns the string representation
  3859. func (s DeregisterOnPremisesInstanceOutput) String() string {
  3860. return awsutil.Prettify(s)
  3861. }
  3862. // GoString returns the string representation
  3863. func (s DeregisterOnPremisesInstanceOutput) GoString() string {
  3864. return s.String()
  3865. }
  3866. // Diagnostic information about executable scripts that are part of a deployment.
  3867. type Diagnostics struct {
  3868. _ struct{} `type:"structure"`
  3869. // The associated error code:
  3870. //
  3871. // * Success: The specified script ran.
  3872. //
  3873. // * ScriptMissing: The specified script was not found in the specified location.
  3874. //
  3875. // * ScriptNotExecutable: The specified script is not a recognized executable
  3876. // file type.
  3877. //
  3878. // * ScriptTimedOut: The specified script did not finish running in the specified
  3879. // time period.
  3880. //
  3881. // * ScriptFailed: The specified script failed to run as expected.
  3882. //
  3883. // * UnknownError: The specified script did not run for an unknown reason.
  3884. ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"`
  3885. // The last portion of the diagnostic log.
  3886. //
  3887. // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic
  3888. // log.
  3889. LogTail *string `locationName:"logTail" type:"string"`
  3890. // The message associated with the error.
  3891. Message *string `locationName:"message" type:"string"`
  3892. // The name of the script.
  3893. ScriptName *string `locationName:"scriptName" type:"string"`
  3894. }
  3895. // String returns the string representation
  3896. func (s Diagnostics) String() string {
  3897. return awsutil.Prettify(s)
  3898. }
  3899. // GoString returns the string representation
  3900. func (s Diagnostics) GoString() string {
  3901. return s.String()
  3902. }
  3903. // Information about a tag filter.
  3904. type EC2TagFilter struct {
  3905. _ struct{} `type:"structure"`
  3906. // The tag filter key.
  3907. Key *string `type:"string"`
  3908. // The tag filter type:
  3909. //
  3910. // * KEY_ONLY: Key only.
  3911. //
  3912. // * VALUE_ONLY: Value only.
  3913. //
  3914. // * KEY_AND_VALUE: Key and value.
  3915. Type *string `type:"string" enum:"EC2TagFilterType"`
  3916. // The tag filter value.
  3917. Value *string `type:"string"`
  3918. }
  3919. // String returns the string representation
  3920. func (s EC2TagFilter) String() string {
  3921. return awsutil.Prettify(s)
  3922. }
  3923. // GoString returns the string representation
  3924. func (s EC2TagFilter) GoString() string {
  3925. return s.String()
  3926. }
  3927. // Information about a deployment error.
  3928. type ErrorInformation struct {
  3929. _ struct{} `type:"structure"`
  3930. // The error code:
  3931. //
  3932. // * APPLICATION_MISSING: The application was missing. This error code will
  3933. // most likely be raised if the application is deleted after the deployment
  3934. // is created but before it is started.
  3935. //
  3936. // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error
  3937. // code will most likely be raised if the deployment group is deleted after
  3938. // the deployment is created but before it is started.
  3939. //
  3940. // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be
  3941. // successfully deployed within the instance health constraints specified.
  3942. //
  3943. // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed
  3944. // within the instance health constraints specified.
  3945. //
  3946. // * IAM_ROLE_MISSING: The service role cannot be accessed.
  3947. //
  3948. // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.
  3949. //
  3950. // * INTERNAL_ERROR: There was an internal error.
  3951. //
  3952. // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon
  3953. // EC2 service.
  3954. //
  3955. // * NO_INSTANCES: No instance were specified, or no instance can be found.
  3956. //
  3957. // * OVER_MAX_INSTANCES: The maximum number of instance was exceeded.
  3958. //
  3959. // * THROTTLED: The operation was throttled because the calling account exceeded
  3960. // the throttling limits of one or more AWS services.
  3961. //
  3962. // * TIMEOUT: The deployment has timed out.
  3963. //
  3964. // * REVISION_MISSING: The revision ID was missing. This error code will
  3965. // most likely be raised if the revision is deleted after the deployment
  3966. // is created but before it is started.
  3967. Code *string `locationName:"code" type:"string" enum:"ErrorCode"`
  3968. // An accompanying error message.
  3969. Message *string `locationName:"message" type:"string"`
  3970. }
  3971. // String returns the string representation
  3972. func (s ErrorInformation) String() string {
  3973. return awsutil.Prettify(s)
  3974. }
  3975. // GoString returns the string representation
  3976. func (s ErrorInformation) GoString() string {
  3977. return s.String()
  3978. }
  3979. // Information about an application revision.
  3980. type GenericRevisionInfo struct {
  3981. _ struct{} `type:"structure"`
  3982. // The deployment groups for which this is the current target revision.
  3983. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
  3984. // A comment about the revision.
  3985. Description *string `locationName:"description" type:"string"`
  3986. // When the revision was first used by AWS CodeDeploy.
  3987. FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp" timestampFormat:"unix"`
  3988. // When the revision was last used by AWS CodeDeploy.
  3989. LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp" timestampFormat:"unix"`
  3990. // When the revision was registered with AWS CodeDeploy.
  3991. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
  3992. }
  3993. // String returns the string representation
  3994. func (s GenericRevisionInfo) String() string {
  3995. return awsutil.Prettify(s)
  3996. }
  3997. // GoString returns the string representation
  3998. func (s GenericRevisionInfo) GoString() string {
  3999. return s.String()
  4000. }
  4001. // Represents the input of a get application operation.
  4002. type GetApplicationInput struct {
  4003. _ struct{} `type:"structure"`
  4004. // The name of an AWS CodeDeploy application associated with the applicable
  4005. // IAM user or AWS account.
  4006. //
  4007. // ApplicationName is a required field
  4008. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4009. }
  4010. // String returns the string representation
  4011. func (s GetApplicationInput) String() string {
  4012. return awsutil.Prettify(s)
  4013. }
  4014. // GoString returns the string representation
  4015. func (s GetApplicationInput) GoString() string {
  4016. return s.String()
  4017. }
  4018. // Validate inspects the fields of the type to determine if they are valid.
  4019. func (s *GetApplicationInput) Validate() error {
  4020. invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"}
  4021. if s.ApplicationName == nil {
  4022. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4023. }
  4024. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4025. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4026. }
  4027. if invalidParams.Len() > 0 {
  4028. return invalidParams
  4029. }
  4030. return nil
  4031. }
  4032. // Represents the output of a get application operation.
  4033. type GetApplicationOutput struct {
  4034. _ struct{} `type:"structure"`
  4035. // Information about the application.
  4036. Application *ApplicationInfo `locationName:"application" type:"structure"`
  4037. }
  4038. // String returns the string representation
  4039. func (s GetApplicationOutput) String() string {
  4040. return awsutil.Prettify(s)
  4041. }
  4042. // GoString returns the string representation
  4043. func (s GetApplicationOutput) GoString() string {
  4044. return s.String()
  4045. }
  4046. // Represents the input of a get application revision operation.
  4047. type GetApplicationRevisionInput struct {
  4048. _ struct{} `type:"structure"`
  4049. // The name of the application that corresponds to the revision.
  4050. //
  4051. // ApplicationName is a required field
  4052. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4053. // Information about the application revision to get, including type and location.
  4054. //
  4055. // Revision is a required field
  4056. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
  4057. }
  4058. // String returns the string representation
  4059. func (s GetApplicationRevisionInput) String() string {
  4060. return awsutil.Prettify(s)
  4061. }
  4062. // GoString returns the string representation
  4063. func (s GetApplicationRevisionInput) GoString() string {
  4064. return s.String()
  4065. }
  4066. // Validate inspects the fields of the type to determine if they are valid.
  4067. func (s *GetApplicationRevisionInput) Validate() error {
  4068. invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"}
  4069. if s.ApplicationName == nil {
  4070. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4071. }
  4072. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4073. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4074. }
  4075. if s.Revision == nil {
  4076. invalidParams.Add(request.NewErrParamRequired("Revision"))
  4077. }
  4078. if invalidParams.Len() > 0 {
  4079. return invalidParams
  4080. }
  4081. return nil
  4082. }
  4083. // Represents the output of a get application revision operation.
  4084. type GetApplicationRevisionOutput struct {
  4085. _ struct{} `type:"structure"`
  4086. // The name of the application that corresponds to the revision.
  4087. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  4088. // Additional information about the revision, including type and location.
  4089. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  4090. // General information about the revision.
  4091. RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"`
  4092. }
  4093. // String returns the string representation
  4094. func (s GetApplicationRevisionOutput) String() string {
  4095. return awsutil.Prettify(s)
  4096. }
  4097. // GoString returns the string representation
  4098. func (s GetApplicationRevisionOutput) GoString() string {
  4099. return s.String()
  4100. }
  4101. // Represents the input of a get deployment configuration operation.
  4102. type GetDeploymentConfigInput struct {
  4103. _ struct{} `type:"structure"`
  4104. // The name of a deployment configuration associated with the applicable IAM
  4105. // user or AWS account.
  4106. //
  4107. // DeploymentConfigName is a required field
  4108. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  4109. }
  4110. // String returns the string representation
  4111. func (s GetDeploymentConfigInput) String() string {
  4112. return awsutil.Prettify(s)
  4113. }
  4114. // GoString returns the string representation
  4115. func (s GetDeploymentConfigInput) GoString() string {
  4116. return s.String()
  4117. }
  4118. // Validate inspects the fields of the type to determine if they are valid.
  4119. func (s *GetDeploymentConfigInput) Validate() error {
  4120. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"}
  4121. if s.DeploymentConfigName == nil {
  4122. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  4123. }
  4124. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  4125. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  4126. }
  4127. if invalidParams.Len() > 0 {
  4128. return invalidParams
  4129. }
  4130. return nil
  4131. }
  4132. // Represents the output of a get deployment configuration operation.
  4133. type GetDeploymentConfigOutput struct {
  4134. _ struct{} `type:"structure"`
  4135. // Information about the deployment configuration.
  4136. DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"`
  4137. }
  4138. // String returns the string representation
  4139. func (s GetDeploymentConfigOutput) String() string {
  4140. return awsutil.Prettify(s)
  4141. }
  4142. // GoString returns the string representation
  4143. func (s GetDeploymentConfigOutput) GoString() string {
  4144. return s.String()
  4145. }
  4146. // Represents the input of a get deployment group operation.
  4147. type GetDeploymentGroupInput struct {
  4148. _ struct{} `type:"structure"`
  4149. // The name of an AWS CodeDeploy application associated with the applicable
  4150. // IAM user or AWS account.
  4151. //
  4152. // ApplicationName is a required field
  4153. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4154. // The name of an existing deployment group for the specified application.
  4155. //
  4156. // DeploymentGroupName is a required field
  4157. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  4158. }
  4159. // String returns the string representation
  4160. func (s GetDeploymentGroupInput) String() string {
  4161. return awsutil.Prettify(s)
  4162. }
  4163. // GoString returns the string representation
  4164. func (s GetDeploymentGroupInput) GoString() string {
  4165. return s.String()
  4166. }
  4167. // Validate inspects the fields of the type to determine if they are valid.
  4168. func (s *GetDeploymentGroupInput) Validate() error {
  4169. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"}
  4170. if s.ApplicationName == nil {
  4171. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4172. }
  4173. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4174. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4175. }
  4176. if s.DeploymentGroupName == nil {
  4177. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  4178. }
  4179. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  4180. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  4181. }
  4182. if invalidParams.Len() > 0 {
  4183. return invalidParams
  4184. }
  4185. return nil
  4186. }
  4187. // Represents the output of a get deployment group operation.
  4188. type GetDeploymentGroupOutput struct {
  4189. _ struct{} `type:"structure"`
  4190. // Information about the deployment group.
  4191. DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"`
  4192. }
  4193. // String returns the string representation
  4194. func (s GetDeploymentGroupOutput) String() string {
  4195. return awsutil.Prettify(s)
  4196. }
  4197. // GoString returns the string representation
  4198. func (s GetDeploymentGroupOutput) GoString() string {
  4199. return s.String()
  4200. }
  4201. // Represents the input of a get deployment operation.
  4202. type GetDeploymentInput struct {
  4203. _ struct{} `type:"structure"`
  4204. // A deployment ID associated with the applicable IAM user or AWS account.
  4205. //
  4206. // DeploymentId is a required field
  4207. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  4208. }
  4209. // String returns the string representation
  4210. func (s GetDeploymentInput) String() string {
  4211. return awsutil.Prettify(s)
  4212. }
  4213. // GoString returns the string representation
  4214. func (s GetDeploymentInput) GoString() string {
  4215. return s.String()
  4216. }
  4217. // Validate inspects the fields of the type to determine if they are valid.
  4218. func (s *GetDeploymentInput) Validate() error {
  4219. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"}
  4220. if s.DeploymentId == nil {
  4221. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  4222. }
  4223. if invalidParams.Len() > 0 {
  4224. return invalidParams
  4225. }
  4226. return nil
  4227. }
  4228. // Represents the input of a get deployment instance operation.
  4229. type GetDeploymentInstanceInput struct {
  4230. _ struct{} `type:"structure"`
  4231. // The unique ID of a deployment.
  4232. //
  4233. // DeploymentId is a required field
  4234. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  4235. // The unique ID of an instance in the deployment group.
  4236. //
  4237. // InstanceId is a required field
  4238. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  4239. }
  4240. // String returns the string representation
  4241. func (s GetDeploymentInstanceInput) String() string {
  4242. return awsutil.Prettify(s)
  4243. }
  4244. // GoString returns the string representation
  4245. func (s GetDeploymentInstanceInput) GoString() string {
  4246. return s.String()
  4247. }
  4248. // Validate inspects the fields of the type to determine if they are valid.
  4249. func (s *GetDeploymentInstanceInput) Validate() error {
  4250. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"}
  4251. if s.DeploymentId == nil {
  4252. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  4253. }
  4254. if s.InstanceId == nil {
  4255. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  4256. }
  4257. if invalidParams.Len() > 0 {
  4258. return invalidParams
  4259. }
  4260. return nil
  4261. }
  4262. // Represents the output of a get deployment instance operation.
  4263. type GetDeploymentInstanceOutput struct {
  4264. _ struct{} `type:"structure"`
  4265. // Information about the instance.
  4266. InstanceSummary *InstanceSummary `locationName:"instanceSummary" type:"structure"`
  4267. }
  4268. // String returns the string representation
  4269. func (s GetDeploymentInstanceOutput) String() string {
  4270. return awsutil.Prettify(s)
  4271. }
  4272. // GoString returns the string representation
  4273. func (s GetDeploymentInstanceOutput) GoString() string {
  4274. return s.String()
  4275. }
  4276. // Represents the output of a get deployment operation.
  4277. type GetDeploymentOutput struct {
  4278. _ struct{} `type:"structure"`
  4279. // Information about the deployment.
  4280. DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"`
  4281. }
  4282. // String returns the string representation
  4283. func (s GetDeploymentOutput) String() string {
  4284. return awsutil.Prettify(s)
  4285. }
  4286. // GoString returns the string representation
  4287. func (s GetDeploymentOutput) GoString() string {
  4288. return s.String()
  4289. }
  4290. // Represents the input of a get on-premises instance operation.
  4291. type GetOnPremisesInstanceInput struct {
  4292. _ struct{} `type:"structure"`
  4293. // The name of the on-premises instance about which to get information.
  4294. //
  4295. // InstanceName is a required field
  4296. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  4297. }
  4298. // String returns the string representation
  4299. func (s GetOnPremisesInstanceInput) String() string {
  4300. return awsutil.Prettify(s)
  4301. }
  4302. // GoString returns the string representation
  4303. func (s GetOnPremisesInstanceInput) GoString() string {
  4304. return s.String()
  4305. }
  4306. // Validate inspects the fields of the type to determine if they are valid.
  4307. func (s *GetOnPremisesInstanceInput) Validate() error {
  4308. invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"}
  4309. if s.InstanceName == nil {
  4310. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  4311. }
  4312. if invalidParams.Len() > 0 {
  4313. return invalidParams
  4314. }
  4315. return nil
  4316. }
  4317. // Represents the output of a get on-premises instance operation.
  4318. type GetOnPremisesInstanceOutput struct {
  4319. _ struct{} `type:"structure"`
  4320. // Information about the on-premises instance.
  4321. InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"`
  4322. }
  4323. // String returns the string representation
  4324. func (s GetOnPremisesInstanceOutput) String() string {
  4325. return awsutil.Prettify(s)
  4326. }
  4327. // GoString returns the string representation
  4328. func (s GetOnPremisesInstanceOutput) GoString() string {
  4329. return s.String()
  4330. }
  4331. // Information about the location of application artifacts stored in GitHub.
  4332. type GitHubLocation struct {
  4333. _ struct{} `type:"structure"`
  4334. // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
  4335. // for the application revision.
  4336. CommitId *string `locationName:"commitId" type:"string"`
  4337. // The GitHub account and repository pair that stores a reference to the commit
  4338. // that represents the bundled artifacts for the application revision.
  4339. //
  4340. // Specified as account/repository.
  4341. Repository *string `locationName:"repository" type:"string"`
  4342. }
  4343. // String returns the string representation
  4344. func (s GitHubLocation) String() string {
  4345. return awsutil.Prettify(s)
  4346. }
  4347. // GoString returns the string representation
  4348. func (s GitHubLocation) GoString() string {
  4349. return s.String()
  4350. }
  4351. // Information about an on-premises instance.
  4352. type InstanceInfo struct {
  4353. _ struct{} `type:"structure"`
  4354. // If the on-premises instance was deregistered, the time at which the on-premises
  4355. // instance was deregistered.
  4356. DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"`
  4357. // The IAM user ARN associated with the on-premises instance.
  4358. IamUserArn *string `locationName:"iamUserArn" type:"string"`
  4359. // The ARN of the on-premises instance.
  4360. InstanceArn *string `locationName:"instanceArn" type:"string"`
  4361. // The name of the on-premises instance.
  4362. InstanceName *string `locationName:"instanceName" type:"string"`
  4363. // The time at which the on-premises instance was registered.
  4364. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
  4365. // The tags currently associated with the on-premises instance.
  4366. Tags []*Tag `locationName:"tags" type:"list"`
  4367. }
  4368. // String returns the string representation
  4369. func (s InstanceInfo) String() string {
  4370. return awsutil.Prettify(s)
  4371. }
  4372. // GoString returns the string representation
  4373. func (s InstanceInfo) GoString() string {
  4374. return s.String()
  4375. }
  4376. // Information about an instance in a deployment.
  4377. type InstanceSummary struct {
  4378. _ struct{} `type:"structure"`
  4379. // The deployment ID.
  4380. DeploymentId *string `locationName:"deploymentId" type:"string"`
  4381. // The instance ID.
  4382. InstanceId *string `locationName:"instanceId" type:"string"`
  4383. // A timestamp indicating when the instance information was last updated.
  4384. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
  4385. // A list of lifecycle events for this instance.
  4386. LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
  4387. // The deployment status for this instance:
  4388. //
  4389. // * Pending: The deployment is pending for this instance.
  4390. //
  4391. // * In Progress: The deployment is in progress for this instance.
  4392. //
  4393. // * Succeeded: The deployment has succeeded for this instance.
  4394. //
  4395. // * Failed: The deployment has failed for this instance.
  4396. //
  4397. // * Skipped: The deployment has been skipped for this instance.
  4398. //
  4399. // * Unknown: The deployment status is unknown for this instance.
  4400. Status *string `locationName:"status" type:"string" enum:"InstanceStatus"`
  4401. }
  4402. // String returns the string representation
  4403. func (s InstanceSummary) String() string {
  4404. return awsutil.Prettify(s)
  4405. }
  4406. // GoString returns the string representation
  4407. func (s InstanceSummary) GoString() string {
  4408. return s.String()
  4409. }
  4410. // Information about a deployment lifecycle event.
  4411. type LifecycleEvent struct {
  4412. _ struct{} `type:"structure"`
  4413. // Diagnostic information about the deployment lifecycle event.
  4414. Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"`
  4415. // A timestamp indicating when the deployment lifecycle event ended.
  4416. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
  4417. // The deployment lifecycle event name, such as ApplicationStop, BeforeInstall,
  4418. // AfterInstall, ApplicationStart, or ValidateService.
  4419. LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"`
  4420. // A timestamp indicating when the deployment lifecycle event started.
  4421. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
  4422. // The deployment lifecycle event status:
  4423. //
  4424. // * Pending: The deployment lifecycle event is pending.
  4425. //
  4426. // * InProgress: The deployment lifecycle event is in progress.
  4427. //
  4428. // * Succeeded: The deployment lifecycle event ran successfully.
  4429. //
  4430. // * Failed: The deployment lifecycle event has failed.
  4431. //
  4432. // * Skipped: The deployment lifecycle event has been skipped.
  4433. //
  4434. // * Unknown: The deployment lifecycle event is unknown.
  4435. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"`
  4436. }
  4437. // String returns the string representation
  4438. func (s LifecycleEvent) String() string {
  4439. return awsutil.Prettify(s)
  4440. }
  4441. // GoString returns the string representation
  4442. func (s LifecycleEvent) GoString() string {
  4443. return s.String()
  4444. }
  4445. // Represents the input of a list application revisions operation.
  4446. type ListApplicationRevisionsInput struct {
  4447. _ struct{} `type:"structure"`
  4448. // The name of an AWS CodeDeploy application associated with the applicable
  4449. // IAM user or AWS account.
  4450. //
  4451. // ApplicationName is a required field
  4452. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4453. // Whether to list revisions based on whether the revision is the target revision
  4454. // of an deployment group:
  4455. //
  4456. // * include: List revisions that are target revisions of a deployment group.
  4457. //
  4458. // * exclude: Do not list revisions that are target revisions of a deployment
  4459. // group.
  4460. //
  4461. // * ignore: List all revisions.
  4462. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"`
  4463. // An identifier returned from the previous list application revisions call.
  4464. // It can be used to return the next set of applications in the list.
  4465. NextToken *string `locationName:"nextToken" type:"string"`
  4466. // An Amazon S3 bucket name to limit the search for revisions.
  4467. //
  4468. // If set to null, all of the user's buckets will be searched.
  4469. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  4470. // A key prefix for the set of Amazon S3 objects to limit the search for revisions.
  4471. S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`
  4472. // The column name to use to sort the list results:
  4473. //
  4474. // * registerTime: Sort by the time the revisions were registered with AWS
  4475. // CodeDeploy.
  4476. //
  4477. // * firstUsedTime: Sort by the time the revisions were first used in a deployment.
  4478. //
  4479. // * lastUsedTime: Sort by the time the revisions were last used in a deployment.
  4480. //
  4481. // If not specified or set to null, the results will be returned in an arbitrary
  4482. // order.
  4483. SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"`
  4484. // The order in which to sort the list results:
  4485. //
  4486. // * ascending: ascending order.
  4487. //
  4488. // * descending: descending order.
  4489. //
  4490. // If not specified, the results will be sorted in ascending order.
  4491. //
  4492. // If set to null, the results will be sorted in an arbitrary order.
  4493. SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"`
  4494. }
  4495. // String returns the string representation
  4496. func (s ListApplicationRevisionsInput) String() string {
  4497. return awsutil.Prettify(s)
  4498. }
  4499. // GoString returns the string representation
  4500. func (s ListApplicationRevisionsInput) GoString() string {
  4501. return s.String()
  4502. }
  4503. // Validate inspects the fields of the type to determine if they are valid.
  4504. func (s *ListApplicationRevisionsInput) Validate() error {
  4505. invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"}
  4506. if s.ApplicationName == nil {
  4507. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4508. }
  4509. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4510. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4511. }
  4512. if invalidParams.Len() > 0 {
  4513. return invalidParams
  4514. }
  4515. return nil
  4516. }
  4517. // Represents the output of a list application revisions operation.
  4518. type ListApplicationRevisionsOutput struct {
  4519. _ struct{} `type:"structure"`
  4520. // If a large amount of information is returned, an identifier will also be
  4521. // returned. It can be used in a subsequent list application revisions call
  4522. // to return the next set of application revisions in the list.
  4523. NextToken *string `locationName:"nextToken" type:"string"`
  4524. // A list of locations that contain the matching revisions.
  4525. Revisions []*RevisionLocation `locationName:"revisions" type:"list"`
  4526. }
  4527. // String returns the string representation
  4528. func (s ListApplicationRevisionsOutput) String() string {
  4529. return awsutil.Prettify(s)
  4530. }
  4531. // GoString returns the string representation
  4532. func (s ListApplicationRevisionsOutput) GoString() string {
  4533. return s.String()
  4534. }
  4535. // Represents the input of a list applications operation.
  4536. type ListApplicationsInput struct {
  4537. _ struct{} `type:"structure"`
  4538. // An identifier returned from the previous list applications call. It can be
  4539. // used to return the next set of applications in the list.
  4540. NextToken *string `locationName:"nextToken" type:"string"`
  4541. }
  4542. // String returns the string representation
  4543. func (s ListApplicationsInput) String() string {
  4544. return awsutil.Prettify(s)
  4545. }
  4546. // GoString returns the string representation
  4547. func (s ListApplicationsInput) GoString() string {
  4548. return s.String()
  4549. }
  4550. // Represents the output of a list applications operation.
  4551. type ListApplicationsOutput struct {
  4552. _ struct{} `type:"structure"`
  4553. // A list of application names.
  4554. Applications []*string `locationName:"applications" type:"list"`
  4555. // If a large amount of information is returned, an identifier is also returned.
  4556. // It can be used in a subsequent list applications call to return the next
  4557. // set of applications, will also be returned. in the list.
  4558. NextToken *string `locationName:"nextToken" type:"string"`
  4559. }
  4560. // String returns the string representation
  4561. func (s ListApplicationsOutput) String() string {
  4562. return awsutil.Prettify(s)
  4563. }
  4564. // GoString returns the string representation
  4565. func (s ListApplicationsOutput) GoString() string {
  4566. return s.String()
  4567. }
  4568. // Represents the input of a list deployment configurations operation.
  4569. type ListDeploymentConfigsInput struct {
  4570. _ struct{} `type:"structure"`
  4571. // An identifier returned from the previous list deployment configurations call.
  4572. // It can be used to return the next set of deployment configurations in the
  4573. // list.
  4574. NextToken *string `locationName:"nextToken" type:"string"`
  4575. }
  4576. // String returns the string representation
  4577. func (s ListDeploymentConfigsInput) String() string {
  4578. return awsutil.Prettify(s)
  4579. }
  4580. // GoString returns the string representation
  4581. func (s ListDeploymentConfigsInput) GoString() string {
  4582. return s.String()
  4583. }
  4584. // Represents the output of a list deployment configurations operation.
  4585. type ListDeploymentConfigsOutput struct {
  4586. _ struct{} `type:"structure"`
  4587. // A list of deployment configurations, including built-in configurations such
  4588. // as CodeDeployDefault.OneAtATime.
  4589. DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"`
  4590. // If a large amount of information is returned, an identifier is also returned.
  4591. // It can be used in a subsequent list deployment configurations call to return
  4592. // the next set of deployment configurations in the list.
  4593. NextToken *string `locationName:"nextToken" type:"string"`
  4594. }
  4595. // String returns the string representation
  4596. func (s ListDeploymentConfigsOutput) String() string {
  4597. return awsutil.Prettify(s)
  4598. }
  4599. // GoString returns the string representation
  4600. func (s ListDeploymentConfigsOutput) GoString() string {
  4601. return s.String()
  4602. }
  4603. // Represents the input of a list deployment groups operation.
  4604. type ListDeploymentGroupsInput struct {
  4605. _ struct{} `type:"structure"`
  4606. // The name of an AWS CodeDeploy application associated with the applicable
  4607. // IAM user or AWS account.
  4608. //
  4609. // ApplicationName is a required field
  4610. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4611. // An identifier returned from the previous list deployment groups call. It
  4612. // can be used to return the next set of deployment groups in the list.
  4613. NextToken *string `locationName:"nextToken" type:"string"`
  4614. }
  4615. // String returns the string representation
  4616. func (s ListDeploymentGroupsInput) String() string {
  4617. return awsutil.Prettify(s)
  4618. }
  4619. // GoString returns the string representation
  4620. func (s ListDeploymentGroupsInput) GoString() string {
  4621. return s.String()
  4622. }
  4623. // Validate inspects the fields of the type to determine if they are valid.
  4624. func (s *ListDeploymentGroupsInput) Validate() error {
  4625. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"}
  4626. if s.ApplicationName == nil {
  4627. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4628. }
  4629. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4630. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4631. }
  4632. if invalidParams.Len() > 0 {
  4633. return invalidParams
  4634. }
  4635. return nil
  4636. }
  4637. // Represents the output of a list deployment groups operation.
  4638. type ListDeploymentGroupsOutput struct {
  4639. _ struct{} `type:"structure"`
  4640. // The application name.
  4641. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  4642. // A list of corresponding deployment group names.
  4643. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
  4644. // If a large amount of information is returned, an identifier is also returned.
  4645. // It can be used in a subsequent list deployment groups call to return the
  4646. // next set of deployment groups in the list.
  4647. NextToken *string `locationName:"nextToken" type:"string"`
  4648. }
  4649. // String returns the string representation
  4650. func (s ListDeploymentGroupsOutput) String() string {
  4651. return awsutil.Prettify(s)
  4652. }
  4653. // GoString returns the string representation
  4654. func (s ListDeploymentGroupsOutput) GoString() string {
  4655. return s.String()
  4656. }
  4657. // Represents the input of a list deployment instances operation.
  4658. type ListDeploymentInstancesInput struct {
  4659. _ struct{} `type:"structure"`
  4660. // The unique ID of a deployment.
  4661. //
  4662. // DeploymentId is a required field
  4663. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  4664. // A subset of instances to list by status:
  4665. //
  4666. // * Pending: Include those instance with pending deployments.
  4667. //
  4668. // * InProgress: Include those instance where deployments are still in progress.
  4669. //
  4670. // * Succeeded: Include those instances with successful deployments.
  4671. //
  4672. // * Failed: Include those instance with failed deployments.
  4673. //
  4674. // * Skipped: Include those instance with skipped deployments.
  4675. //
  4676. // * Unknown: Include those instance with deployments in an unknown state.
  4677. InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"`
  4678. // An identifier returned from the previous list deployment instances call.
  4679. // It can be used to return the next set of deployment instances in the list.
  4680. NextToken *string `locationName:"nextToken" type:"string"`
  4681. }
  4682. // String returns the string representation
  4683. func (s ListDeploymentInstancesInput) String() string {
  4684. return awsutil.Prettify(s)
  4685. }
  4686. // GoString returns the string representation
  4687. func (s ListDeploymentInstancesInput) GoString() string {
  4688. return s.String()
  4689. }
  4690. // Validate inspects the fields of the type to determine if they are valid.
  4691. func (s *ListDeploymentInstancesInput) Validate() error {
  4692. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"}
  4693. if s.DeploymentId == nil {
  4694. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  4695. }
  4696. if invalidParams.Len() > 0 {
  4697. return invalidParams
  4698. }
  4699. return nil
  4700. }
  4701. // Represents the output of a list deployment instances operation.
  4702. type ListDeploymentInstancesOutput struct {
  4703. _ struct{} `type:"structure"`
  4704. // A list of instance IDs.
  4705. InstancesList []*string `locationName:"instancesList" type:"list"`
  4706. // If a large amount of information is returned, an identifier is also returned.
  4707. // It can be used in a subsequent list deployment instances call to return the
  4708. // next set of deployment instances in the list.
  4709. NextToken *string `locationName:"nextToken" type:"string"`
  4710. }
  4711. // String returns the string representation
  4712. func (s ListDeploymentInstancesOutput) String() string {
  4713. return awsutil.Prettify(s)
  4714. }
  4715. // GoString returns the string representation
  4716. func (s ListDeploymentInstancesOutput) GoString() string {
  4717. return s.String()
  4718. }
  4719. // Represents the input of a list deployments operation.
  4720. type ListDeploymentsInput struct {
  4721. _ struct{} `type:"structure"`
  4722. // The name of an AWS CodeDeploy application associated with the applicable
  4723. // IAM user or AWS account.
  4724. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  4725. // A time range (start and end) for returning a subset of the list of deployments.
  4726. CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"`
  4727. // The name of an existing deployment group for the specified application.
  4728. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  4729. // A subset of deployments to list by status:
  4730. //
  4731. // * Created: Include created deployments in the resulting list.
  4732. //
  4733. // * Queued: Include queued deployments in the resulting list.
  4734. //
  4735. // * In Progress: Include in-progress deployments in the resulting list.
  4736. //
  4737. // * Succeeded: Include successful deployments in the resulting list.
  4738. //
  4739. // * Failed: Include failed deployments in the resulting list.
  4740. //
  4741. // * Stopped: Include stopped deployments in the resulting list.
  4742. IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"`
  4743. // An identifier returned from the previous list deployments call. It can be
  4744. // used to return the next set of deployments in the list.
  4745. NextToken *string `locationName:"nextToken" type:"string"`
  4746. }
  4747. // String returns the string representation
  4748. func (s ListDeploymentsInput) String() string {
  4749. return awsutil.Prettify(s)
  4750. }
  4751. // GoString returns the string representation
  4752. func (s ListDeploymentsInput) GoString() string {
  4753. return s.String()
  4754. }
  4755. // Validate inspects the fields of the type to determine if they are valid.
  4756. func (s *ListDeploymentsInput) Validate() error {
  4757. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"}
  4758. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4759. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4760. }
  4761. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  4762. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  4763. }
  4764. if invalidParams.Len() > 0 {
  4765. return invalidParams
  4766. }
  4767. return nil
  4768. }
  4769. // Represents the output of a list deployments operation.
  4770. type ListDeploymentsOutput struct {
  4771. _ struct{} `type:"structure"`
  4772. // A list of deployment IDs.
  4773. Deployments []*string `locationName:"deployments" type:"list"`
  4774. // If a large amount of information is returned, an identifier is also returned.
  4775. // It can be used in a subsequent list deployments call to return the next set
  4776. // of deployments in the list.
  4777. NextToken *string `locationName:"nextToken" type:"string"`
  4778. }
  4779. // String returns the string representation
  4780. func (s ListDeploymentsOutput) String() string {
  4781. return awsutil.Prettify(s)
  4782. }
  4783. // GoString returns the string representation
  4784. func (s ListDeploymentsOutput) GoString() string {
  4785. return s.String()
  4786. }
  4787. // Represents the input of a list on-premises instances operation.
  4788. type ListOnPremisesInstancesInput struct {
  4789. _ struct{} `type:"structure"`
  4790. // An identifier returned from the previous list on-premises instances call.
  4791. // It can be used to return the next set of on-premises instances in the list.
  4792. NextToken *string `locationName:"nextToken" type:"string"`
  4793. // The registration status of the on-premises instances:
  4794. //
  4795. // * Deregistered: Include deregistered on-premises instances in the resulting
  4796. // list.
  4797. //
  4798. // * Registered: Include registered on-premises instances in the resulting
  4799. // list.
  4800. RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"`
  4801. // The on-premises instance tags that will be used to restrict the corresponding
  4802. // on-premises instance names returned.
  4803. TagFilters []*TagFilter `locationName:"tagFilters" type:"list"`
  4804. }
  4805. // String returns the string representation
  4806. func (s ListOnPremisesInstancesInput) String() string {
  4807. return awsutil.Prettify(s)
  4808. }
  4809. // GoString returns the string representation
  4810. func (s ListOnPremisesInstancesInput) GoString() string {
  4811. return s.String()
  4812. }
  4813. // Represents the output of list on-premises instances operation.
  4814. type ListOnPremisesInstancesOutput struct {
  4815. _ struct{} `type:"structure"`
  4816. // The list of matching on-premises instance names.
  4817. InstanceNames []*string `locationName:"instanceNames" type:"list"`
  4818. // If a large amount of information is returned, an identifier is also returned.
  4819. // It can be used in a subsequent list on-premises instances call to return
  4820. // the next set of on-premises instances in the list.
  4821. NextToken *string `locationName:"nextToken" type:"string"`
  4822. }
  4823. // String returns the string representation
  4824. func (s ListOnPremisesInstancesOutput) String() string {
  4825. return awsutil.Prettify(s)
  4826. }
  4827. // GoString returns the string representation
  4828. func (s ListOnPremisesInstancesOutput) GoString() string {
  4829. return s.String()
  4830. }
  4831. // Information about minimum healthy instance.
  4832. type MinimumHealthyHosts struct {
  4833. _ struct{} `type:"structure"`
  4834. // The minimum healthy instance type:
  4835. //
  4836. // * HOST_COUNT: The minimum number of healthy instance as an absolute value.
  4837. //
  4838. // * FLEET_PERCENT: The minimum number of healthy instance as a percentage
  4839. // of the total number of instance in the deployment.
  4840. //
  4841. // In an example of nine instance, if a HOST_COUNT of six is specified, deploy
  4842. // to up to three instances at a time. The deployment will be successful if
  4843. // six or more instances are deployed to successfully; otherwise, the deployment
  4844. // fails. If a FLEET_PERCENT of 40 is specified, deploy to up to five instance
  4845. // at a time. The deployment will be successful if four or more instance are
  4846. // deployed to successfully; otherwise, the deployment fails.
  4847. //
  4848. // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
  4849. // will return a minimum healthy instance type of MOST_CONCURRENCY and a value
  4850. // of 1. This means a deployment to only one instance at a time. (You cannot
  4851. // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In
  4852. // addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure
  4853. // that all instances but one are kept in a healthy state during the deployment.
  4854. // Although this allows one instance at a time to be taken offline for a new
  4855. // deployment, it also means that if the deployment to the last instance fails,
  4856. // the overall deployment still succeeds.
  4857. Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"`
  4858. // The minimum healthy instance value.
  4859. Value *int64 `locationName:"value" type:"integer"`
  4860. }
  4861. // String returns the string representation
  4862. func (s MinimumHealthyHosts) String() string {
  4863. return awsutil.Prettify(s)
  4864. }
  4865. // GoString returns the string representation
  4866. func (s MinimumHealthyHosts) GoString() string {
  4867. return s.String()
  4868. }
  4869. // Represents the input of a register application revision operation.
  4870. type RegisterApplicationRevisionInput struct {
  4871. _ struct{} `type:"structure"`
  4872. // The name of an AWS CodeDeploy application associated with the applicable
  4873. // IAM user or AWS account.
  4874. //
  4875. // ApplicationName is a required field
  4876. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  4877. // A comment about the revision.
  4878. Description *string `locationName:"description" type:"string"`
  4879. // Information about the application revision to register, including type and
  4880. // location.
  4881. //
  4882. // Revision is a required field
  4883. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
  4884. }
  4885. // String returns the string representation
  4886. func (s RegisterApplicationRevisionInput) String() string {
  4887. return awsutil.Prettify(s)
  4888. }
  4889. // GoString returns the string representation
  4890. func (s RegisterApplicationRevisionInput) GoString() string {
  4891. return s.String()
  4892. }
  4893. // Validate inspects the fields of the type to determine if they are valid.
  4894. func (s *RegisterApplicationRevisionInput) Validate() error {
  4895. invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"}
  4896. if s.ApplicationName == nil {
  4897. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4898. }
  4899. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4900. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4901. }
  4902. if s.Revision == nil {
  4903. invalidParams.Add(request.NewErrParamRequired("Revision"))
  4904. }
  4905. if invalidParams.Len() > 0 {
  4906. return invalidParams
  4907. }
  4908. return nil
  4909. }
  4910. type RegisterApplicationRevisionOutput struct {
  4911. _ struct{} `type:"structure"`
  4912. }
  4913. // String returns the string representation
  4914. func (s RegisterApplicationRevisionOutput) String() string {
  4915. return awsutil.Prettify(s)
  4916. }
  4917. // GoString returns the string representation
  4918. func (s RegisterApplicationRevisionOutput) GoString() string {
  4919. return s.String()
  4920. }
  4921. // Represents the input of the register on-premises instance operation.
  4922. type RegisterOnPremisesInstanceInput struct {
  4923. _ struct{} `type:"structure"`
  4924. // The ARN of the IAM user to associate with the on-premises instance.
  4925. //
  4926. // IamUserArn is a required field
  4927. IamUserArn *string `locationName:"iamUserArn" type:"string" required:"true"`
  4928. // The name of the on-premises instance to register.
  4929. //
  4930. // InstanceName is a required field
  4931. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  4932. }
  4933. // String returns the string representation
  4934. func (s RegisterOnPremisesInstanceInput) String() string {
  4935. return awsutil.Prettify(s)
  4936. }
  4937. // GoString returns the string representation
  4938. func (s RegisterOnPremisesInstanceInput) GoString() string {
  4939. return s.String()
  4940. }
  4941. // Validate inspects the fields of the type to determine if they are valid.
  4942. func (s *RegisterOnPremisesInstanceInput) Validate() error {
  4943. invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"}
  4944. if s.IamUserArn == nil {
  4945. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  4946. }
  4947. if s.InstanceName == nil {
  4948. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  4949. }
  4950. if invalidParams.Len() > 0 {
  4951. return invalidParams
  4952. }
  4953. return nil
  4954. }
  4955. type RegisterOnPremisesInstanceOutput struct {
  4956. _ struct{} `type:"structure"`
  4957. }
  4958. // String returns the string representation
  4959. func (s RegisterOnPremisesInstanceOutput) String() string {
  4960. return awsutil.Prettify(s)
  4961. }
  4962. // GoString returns the string representation
  4963. func (s RegisterOnPremisesInstanceOutput) GoString() string {
  4964. return s.String()
  4965. }
  4966. // Represents the input of a remove tags from on-premises instances operation.
  4967. type RemoveTagsFromOnPremisesInstancesInput struct {
  4968. _ struct{} `type:"structure"`
  4969. // The names of the on-premises instances from which to remove tags.
  4970. //
  4971. // InstanceNames is a required field
  4972. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  4973. // The tag key-value pairs to remove from the on-premises instances.
  4974. //
  4975. // Tags is a required field
  4976. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  4977. }
  4978. // String returns the string representation
  4979. func (s RemoveTagsFromOnPremisesInstancesInput) String() string {
  4980. return awsutil.Prettify(s)
  4981. }
  4982. // GoString returns the string representation
  4983. func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string {
  4984. return s.String()
  4985. }
  4986. // Validate inspects the fields of the type to determine if they are valid.
  4987. func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error {
  4988. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"}
  4989. if s.InstanceNames == nil {
  4990. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  4991. }
  4992. if s.Tags == nil {
  4993. invalidParams.Add(request.NewErrParamRequired("Tags"))
  4994. }
  4995. if invalidParams.Len() > 0 {
  4996. return invalidParams
  4997. }
  4998. return nil
  4999. }
  5000. type RemoveTagsFromOnPremisesInstancesOutput struct {
  5001. _ struct{} `type:"structure"`
  5002. }
  5003. // String returns the string representation
  5004. func (s RemoveTagsFromOnPremisesInstancesOutput) String() string {
  5005. return awsutil.Prettify(s)
  5006. }
  5007. // GoString returns the string representation
  5008. func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string {
  5009. return s.String()
  5010. }
  5011. // Information about an application revision.
  5012. type RevisionInfo struct {
  5013. _ struct{} `type:"structure"`
  5014. // Information about an application revision.
  5015. GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"`
  5016. // Information about the location of an application revision.
  5017. RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"`
  5018. }
  5019. // String returns the string representation
  5020. func (s RevisionInfo) String() string {
  5021. return awsutil.Prettify(s)
  5022. }
  5023. // GoString returns the string representation
  5024. func (s RevisionInfo) GoString() string {
  5025. return s.String()
  5026. }
  5027. // Information about the location of an application revision.
  5028. type RevisionLocation struct {
  5029. _ struct{} `type:"structure"`
  5030. // Information about the location of application artifacts stored in GitHub.
  5031. GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"`
  5032. // The type of application revision:
  5033. //
  5034. // * S3: An application revision stored in Amazon S3.
  5035. //
  5036. // * GitHub: An application revision stored in GitHub.
  5037. RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"`
  5038. // Information about the location of application artifacts stored in Amazon
  5039. // S3.
  5040. S3Location *S3Location `locationName:"s3Location" type:"structure"`
  5041. }
  5042. // String returns the string representation
  5043. func (s RevisionLocation) String() string {
  5044. return awsutil.Prettify(s)
  5045. }
  5046. // GoString returns the string representation
  5047. func (s RevisionLocation) GoString() string {
  5048. return s.String()
  5049. }
  5050. // Information about a deployment rollback.
  5051. type RollbackInfo struct {
  5052. _ struct{} `type:"structure"`
  5053. // The ID of the deployment rollback.
  5054. RollbackDeploymentId *string `locationName:"rollbackDeploymentId" type:"string"`
  5055. // Information describing the status of a deployment rollback; for example,
  5056. // whether the deployment can't be rolled back, is in progress, failed, or succeeded.
  5057. RollbackMessage *string `locationName:"rollbackMessage" type:"string"`
  5058. // The deployment ID of the deployment that was underway and triggered a rollback
  5059. // deployment because it failed or was stopped.
  5060. RollbackTriggeringDeploymentId *string `locationName:"rollbackTriggeringDeploymentId" type:"string"`
  5061. }
  5062. // String returns the string representation
  5063. func (s RollbackInfo) String() string {
  5064. return awsutil.Prettify(s)
  5065. }
  5066. // GoString returns the string representation
  5067. func (s RollbackInfo) GoString() string {
  5068. return s.String()
  5069. }
  5070. // Information about the location of application artifacts stored in Amazon
  5071. // S3.
  5072. type S3Location struct {
  5073. _ struct{} `type:"structure"`
  5074. // The name of the Amazon S3 bucket where the application revision is stored.
  5075. Bucket *string `locationName:"bucket" type:"string"`
  5076. // The file type of the application revision. Must be one of the following:
  5077. //
  5078. // * tar: A tar archive file.
  5079. //
  5080. // * tgz: A compressed tar archive file.
  5081. //
  5082. // * zip: A zip archive file.
  5083. BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"`
  5084. // The ETag of the Amazon S3 object that represents the bundled artifacts for
  5085. // the application revision.
  5086. //
  5087. // If the ETag is not specified as an input parameter, ETag validation of the
  5088. // object will be skipped.
  5089. ETag *string `locationName:"eTag" type:"string"`
  5090. // The name of the Amazon S3 object that represents the bundled artifacts for
  5091. // the application revision.
  5092. Key *string `locationName:"key" type:"string"`
  5093. // A specific version of the Amazon S3 object that represents the bundled artifacts
  5094. // for the application revision.
  5095. //
  5096. // If the version is not specified, the system will use the most recent version
  5097. // by default.
  5098. Version *string `locationName:"version" type:"string"`
  5099. }
  5100. // String returns the string representation
  5101. func (s S3Location) String() string {
  5102. return awsutil.Prettify(s)
  5103. }
  5104. // GoString returns the string representation
  5105. func (s S3Location) GoString() string {
  5106. return s.String()
  5107. }
  5108. // Represents the input of a stop deployment operation.
  5109. type StopDeploymentInput struct {
  5110. _ struct{} `type:"structure"`
  5111. // Indicates, when a deployment is stopped, whether instances that have been
  5112. // updated should be rolled back to the previous version of the application
  5113. // revision.
  5114. AutoRollbackEnabled *bool `locationName:"autoRollbackEnabled" type:"boolean"`
  5115. // The unique ID of a deployment.
  5116. //
  5117. // DeploymentId is a required field
  5118. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  5119. }
  5120. // String returns the string representation
  5121. func (s StopDeploymentInput) String() string {
  5122. return awsutil.Prettify(s)
  5123. }
  5124. // GoString returns the string representation
  5125. func (s StopDeploymentInput) GoString() string {
  5126. return s.String()
  5127. }
  5128. // Validate inspects the fields of the type to determine if they are valid.
  5129. func (s *StopDeploymentInput) Validate() error {
  5130. invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"}
  5131. if s.DeploymentId == nil {
  5132. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  5133. }
  5134. if invalidParams.Len() > 0 {
  5135. return invalidParams
  5136. }
  5137. return nil
  5138. }
  5139. // Represents the output of a stop deployment operation.
  5140. type StopDeploymentOutput struct {
  5141. _ struct{} `type:"structure"`
  5142. // The status of the stop deployment operation:
  5143. //
  5144. // * Pending: The stop operation is pending.
  5145. //
  5146. // * Succeeded: The stop operation was successful.
  5147. Status *string `locationName:"status" type:"string" enum:"StopStatus"`
  5148. // An accompanying status message.
  5149. StatusMessage *string `locationName:"statusMessage" type:"string"`
  5150. }
  5151. // String returns the string representation
  5152. func (s StopDeploymentOutput) String() string {
  5153. return awsutil.Prettify(s)
  5154. }
  5155. // GoString returns the string representation
  5156. func (s StopDeploymentOutput) GoString() string {
  5157. return s.String()
  5158. }
  5159. // Information about a tag.
  5160. type Tag struct {
  5161. _ struct{} `type:"structure"`
  5162. // The tag's key.
  5163. Key *string `type:"string"`
  5164. // The tag's value.
  5165. Value *string `type:"string"`
  5166. }
  5167. // String returns the string representation
  5168. func (s Tag) String() string {
  5169. return awsutil.Prettify(s)
  5170. }
  5171. // GoString returns the string representation
  5172. func (s Tag) GoString() string {
  5173. return s.String()
  5174. }
  5175. // Information about an on-premises instance tag filter.
  5176. type TagFilter struct {
  5177. _ struct{} `type:"structure"`
  5178. // The on-premises instance tag filter key.
  5179. Key *string `type:"string"`
  5180. // The on-premises instance tag filter type:
  5181. //
  5182. // * KEY_ONLY: Key only.
  5183. //
  5184. // * VALUE_ONLY: Value only.
  5185. //
  5186. // * KEY_AND_VALUE: Key and value.
  5187. Type *string `type:"string" enum:"TagFilterType"`
  5188. // The on-premises instance tag filter value.
  5189. Value *string `type:"string"`
  5190. }
  5191. // String returns the string representation
  5192. func (s TagFilter) String() string {
  5193. return awsutil.Prettify(s)
  5194. }
  5195. // GoString returns the string representation
  5196. func (s TagFilter) GoString() string {
  5197. return s.String()
  5198. }
  5199. // Information about a time range.
  5200. type TimeRange struct {
  5201. _ struct{} `type:"structure"`
  5202. // The end time of the time range.
  5203. //
  5204. // Specify null to leave the end time open-ended.
  5205. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"`
  5206. // The start time of the time range.
  5207. //
  5208. // Specify null to leave the start time open-ended.
  5209. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"`
  5210. }
  5211. // String returns the string representation
  5212. func (s TimeRange) String() string {
  5213. return awsutil.Prettify(s)
  5214. }
  5215. // GoString returns the string representation
  5216. func (s TimeRange) GoString() string {
  5217. return s.String()
  5218. }
  5219. // Information about notification triggers for the deployment group.
  5220. type TriggerConfig struct {
  5221. _ struct{} `type:"structure"`
  5222. // The event type or types for which notifications are triggered.
  5223. TriggerEvents []*string `locationName:"triggerEvents" type:"list"`
  5224. // The name of the notification trigger.
  5225. TriggerName *string `locationName:"triggerName" type:"string"`
  5226. // The ARN of the Amazon Simple Notification Service topic through which notifications
  5227. // about deployment or instance events are sent.
  5228. TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"`
  5229. }
  5230. // String returns the string representation
  5231. func (s TriggerConfig) String() string {
  5232. return awsutil.Prettify(s)
  5233. }
  5234. // GoString returns the string representation
  5235. func (s TriggerConfig) GoString() string {
  5236. return s.String()
  5237. }
  5238. // Represents the input of an update application operation.
  5239. type UpdateApplicationInput struct {
  5240. _ struct{} `type:"structure"`
  5241. // The current name of the application you want to change.
  5242. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  5243. // The new name to give the application.
  5244. NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"`
  5245. }
  5246. // String returns the string representation
  5247. func (s UpdateApplicationInput) String() string {
  5248. return awsutil.Prettify(s)
  5249. }
  5250. // GoString returns the string representation
  5251. func (s UpdateApplicationInput) GoString() string {
  5252. return s.String()
  5253. }
  5254. // Validate inspects the fields of the type to determine if they are valid.
  5255. func (s *UpdateApplicationInput) Validate() error {
  5256. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  5257. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5258. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5259. }
  5260. if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 {
  5261. invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1))
  5262. }
  5263. if invalidParams.Len() > 0 {
  5264. return invalidParams
  5265. }
  5266. return nil
  5267. }
  5268. type UpdateApplicationOutput struct {
  5269. _ struct{} `type:"structure"`
  5270. }
  5271. // String returns the string representation
  5272. func (s UpdateApplicationOutput) String() string {
  5273. return awsutil.Prettify(s)
  5274. }
  5275. // GoString returns the string representation
  5276. func (s UpdateApplicationOutput) GoString() string {
  5277. return s.String()
  5278. }
  5279. // Represents the input of an update deployment group operation.
  5280. type UpdateDeploymentGroupInput struct {
  5281. _ struct{} `type:"structure"`
  5282. // Information to add or change about Amazon CloudWatch alarms when the deployment
  5283. // group is updated.
  5284. AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"`
  5285. // The application name corresponding to the deployment group to update.
  5286. //
  5287. // ApplicationName is a required field
  5288. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  5289. // Information for an automatic rollback configuration that is added or changed
  5290. // when a deployment group is updated.
  5291. AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"`
  5292. // The replacement list of Auto Scaling groups to be included in the deployment
  5293. // group, if you want to change them. To keep the Auto Scaling groups, enter
  5294. // their names. To remove Auto Scaling groups, do not enter any Auto Scaling
  5295. // group names.
  5296. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  5297. // The current name of the deployment group.
  5298. //
  5299. // CurrentDeploymentGroupName is a required field
  5300. CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"`
  5301. // The replacement deployment configuration name to use, if you want to change
  5302. // it.
  5303. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  5304. // The replacement set of Amazon EC2 tags on which to filter, if you want to
  5305. // change them. To keep the existing tags, enter their names. To remove tags,
  5306. // do not enter any tag names.
  5307. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  5308. // The new name of the deployment group, if you want to change it.
  5309. NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"`
  5310. // The replacement set of on-premises instance tags on which to filter, if you
  5311. // want to change them. To keep the existing tags, enter their names. To remove
  5312. // tags, do not enter any tag names.
  5313. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  5314. // A replacement ARN for the service role, if you want to change it.
  5315. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
  5316. // Information about triggers to change when the deployment group is updated.
  5317. // For examples, see Modify Triggers in an AWS CodeDeploy Deployment Group (http://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-edit.html)
  5318. // in the AWS CodeDeploy User Guide.
  5319. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  5320. }
  5321. // String returns the string representation
  5322. func (s UpdateDeploymentGroupInput) String() string {
  5323. return awsutil.Prettify(s)
  5324. }
  5325. // GoString returns the string representation
  5326. func (s UpdateDeploymentGroupInput) GoString() string {
  5327. return s.String()
  5328. }
  5329. // Validate inspects the fields of the type to determine if they are valid.
  5330. func (s *UpdateDeploymentGroupInput) Validate() error {
  5331. invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"}
  5332. if s.ApplicationName == nil {
  5333. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  5334. }
  5335. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  5336. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  5337. }
  5338. if s.CurrentDeploymentGroupName == nil {
  5339. invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName"))
  5340. }
  5341. if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 {
  5342. invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1))
  5343. }
  5344. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  5345. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  5346. }
  5347. if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 {
  5348. invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1))
  5349. }
  5350. if invalidParams.Len() > 0 {
  5351. return invalidParams
  5352. }
  5353. return nil
  5354. }
  5355. // Represents the output of an update deployment group operation.
  5356. type UpdateDeploymentGroupOutput struct {
  5357. _ struct{} `type:"structure"`
  5358. // If the output contains no data, and the corresponding deployment group contained
  5359. // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
  5360. // corresponding Auto Scaling lifecycle event hooks from the AWS account. If
  5361. // the output contains data, AWS CodeDeploy could not remove some Auto Scaling
  5362. // lifecycle event hooks from the AWS account.
  5363. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
  5364. }
  5365. // String returns the string representation
  5366. func (s UpdateDeploymentGroupOutput) String() string {
  5367. return awsutil.Prettify(s)
  5368. }
  5369. // GoString returns the string representation
  5370. func (s UpdateDeploymentGroupOutput) GoString() string {
  5371. return s.String()
  5372. }
  5373. const (
  5374. // ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value
  5375. ApplicationRevisionSortByRegisterTime = "registerTime"
  5376. // ApplicationRevisionSortByFirstUsedTime is a ApplicationRevisionSortBy enum value
  5377. ApplicationRevisionSortByFirstUsedTime = "firstUsedTime"
  5378. // ApplicationRevisionSortByLastUsedTime is a ApplicationRevisionSortBy enum value
  5379. ApplicationRevisionSortByLastUsedTime = "lastUsedTime"
  5380. )
  5381. const (
  5382. // AutoRollbackEventDeploymentFailure is a AutoRollbackEvent enum value
  5383. AutoRollbackEventDeploymentFailure = "DEPLOYMENT_FAILURE"
  5384. // AutoRollbackEventDeploymentStopOnAlarm is a AutoRollbackEvent enum value
  5385. AutoRollbackEventDeploymentStopOnAlarm = "DEPLOYMENT_STOP_ON_ALARM"
  5386. // AutoRollbackEventDeploymentStopOnRequest is a AutoRollbackEvent enum value
  5387. AutoRollbackEventDeploymentStopOnRequest = "DEPLOYMENT_STOP_ON_REQUEST"
  5388. )
  5389. const (
  5390. // BundleTypeTar is a BundleType enum value
  5391. BundleTypeTar = "tar"
  5392. // BundleTypeTgz is a BundleType enum value
  5393. BundleTypeTgz = "tgz"
  5394. // BundleTypeZip is a BundleType enum value
  5395. BundleTypeZip = "zip"
  5396. )
  5397. const (
  5398. // DeploymentCreatorUser is a DeploymentCreator enum value
  5399. DeploymentCreatorUser = "user"
  5400. // DeploymentCreatorAutoscaling is a DeploymentCreator enum value
  5401. DeploymentCreatorAutoscaling = "autoscaling"
  5402. // DeploymentCreatorCodeDeployRollback is a DeploymentCreator enum value
  5403. DeploymentCreatorCodeDeployRollback = "codeDeployRollback"
  5404. )
  5405. const (
  5406. // DeploymentStatusCreated is a DeploymentStatus enum value
  5407. DeploymentStatusCreated = "Created"
  5408. // DeploymentStatusQueued is a DeploymentStatus enum value
  5409. DeploymentStatusQueued = "Queued"
  5410. // DeploymentStatusInProgress is a DeploymentStatus enum value
  5411. DeploymentStatusInProgress = "InProgress"
  5412. // DeploymentStatusSucceeded is a DeploymentStatus enum value
  5413. DeploymentStatusSucceeded = "Succeeded"
  5414. // DeploymentStatusFailed is a DeploymentStatus enum value
  5415. DeploymentStatusFailed = "Failed"
  5416. // DeploymentStatusStopped is a DeploymentStatus enum value
  5417. DeploymentStatusStopped = "Stopped"
  5418. )
  5419. const (
  5420. // EC2TagFilterTypeKeyOnly is a EC2TagFilterType enum value
  5421. EC2TagFilterTypeKeyOnly = "KEY_ONLY"
  5422. // EC2TagFilterTypeValueOnly is a EC2TagFilterType enum value
  5423. EC2TagFilterTypeValueOnly = "VALUE_ONLY"
  5424. // EC2TagFilterTypeKeyAndValue is a EC2TagFilterType enum value
  5425. EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
  5426. )
  5427. const (
  5428. // ErrorCodeDeploymentGroupMissing is a ErrorCode enum value
  5429. ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING"
  5430. // ErrorCodeApplicationMissing is a ErrorCode enum value
  5431. ErrorCodeApplicationMissing = "APPLICATION_MISSING"
  5432. // ErrorCodeRevisionMissing is a ErrorCode enum value
  5433. ErrorCodeRevisionMissing = "REVISION_MISSING"
  5434. // ErrorCodeIamRoleMissing is a ErrorCode enum value
  5435. ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING"
  5436. // ErrorCodeIamRolePermissions is a ErrorCode enum value
  5437. ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS"
  5438. // ErrorCodeNoEc2Subscription is a ErrorCode enum value
  5439. ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION"
  5440. // ErrorCodeOverMaxInstances is a ErrorCode enum value
  5441. ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES"
  5442. // ErrorCodeNoInstances is a ErrorCode enum value
  5443. ErrorCodeNoInstances = "NO_INSTANCES"
  5444. // ErrorCodeTimeout is a ErrorCode enum value
  5445. ErrorCodeTimeout = "TIMEOUT"
  5446. // ErrorCodeHealthConstraintsInvalid is a ErrorCode enum value
  5447. ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID"
  5448. // ErrorCodeHealthConstraints is a ErrorCode enum value
  5449. ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS"
  5450. // ErrorCodeInternalError is a ErrorCode enum value
  5451. ErrorCodeInternalError = "INTERNAL_ERROR"
  5452. // ErrorCodeThrottled is a ErrorCode enum value
  5453. ErrorCodeThrottled = "THROTTLED"
  5454. // ErrorCodeAlarmActive is a ErrorCode enum value
  5455. ErrorCodeAlarmActive = "ALARM_ACTIVE"
  5456. // ErrorCodeAgentIssue is a ErrorCode enum value
  5457. ErrorCodeAgentIssue = "AGENT_ISSUE"
  5458. // ErrorCodeAutoScalingIamRolePermissions is a ErrorCode enum value
  5459. ErrorCodeAutoScalingIamRolePermissions = "AUTO_SCALING_IAM_ROLE_PERMISSIONS"
  5460. // ErrorCodeAutoScalingConfiguration is a ErrorCode enum value
  5461. ErrorCodeAutoScalingConfiguration = "AUTO_SCALING_CONFIGURATION"
  5462. // ErrorCodeManualStop is a ErrorCode enum value
  5463. ErrorCodeManualStop = "MANUAL_STOP"
  5464. )
  5465. const (
  5466. // InstanceStatusPending is a InstanceStatus enum value
  5467. InstanceStatusPending = "Pending"
  5468. // InstanceStatusInProgress is a InstanceStatus enum value
  5469. InstanceStatusInProgress = "InProgress"
  5470. // InstanceStatusSucceeded is a InstanceStatus enum value
  5471. InstanceStatusSucceeded = "Succeeded"
  5472. // InstanceStatusFailed is a InstanceStatus enum value
  5473. InstanceStatusFailed = "Failed"
  5474. // InstanceStatusSkipped is a InstanceStatus enum value
  5475. InstanceStatusSkipped = "Skipped"
  5476. // InstanceStatusUnknown is a InstanceStatus enum value
  5477. InstanceStatusUnknown = "Unknown"
  5478. )
  5479. const (
  5480. // LifecycleErrorCodeSuccess is a LifecycleErrorCode enum value
  5481. LifecycleErrorCodeSuccess = "Success"
  5482. // LifecycleErrorCodeScriptMissing is a LifecycleErrorCode enum value
  5483. LifecycleErrorCodeScriptMissing = "ScriptMissing"
  5484. // LifecycleErrorCodeScriptNotExecutable is a LifecycleErrorCode enum value
  5485. LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable"
  5486. // LifecycleErrorCodeScriptTimedOut is a LifecycleErrorCode enum value
  5487. LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut"
  5488. // LifecycleErrorCodeScriptFailed is a LifecycleErrorCode enum value
  5489. LifecycleErrorCodeScriptFailed = "ScriptFailed"
  5490. // LifecycleErrorCodeUnknownError is a LifecycleErrorCode enum value
  5491. LifecycleErrorCodeUnknownError = "UnknownError"
  5492. )
  5493. const (
  5494. // LifecycleEventStatusPending is a LifecycleEventStatus enum value
  5495. LifecycleEventStatusPending = "Pending"
  5496. // LifecycleEventStatusInProgress is a LifecycleEventStatus enum value
  5497. LifecycleEventStatusInProgress = "InProgress"
  5498. // LifecycleEventStatusSucceeded is a LifecycleEventStatus enum value
  5499. LifecycleEventStatusSucceeded = "Succeeded"
  5500. // LifecycleEventStatusFailed is a LifecycleEventStatus enum value
  5501. LifecycleEventStatusFailed = "Failed"
  5502. // LifecycleEventStatusSkipped is a LifecycleEventStatus enum value
  5503. LifecycleEventStatusSkipped = "Skipped"
  5504. // LifecycleEventStatusUnknown is a LifecycleEventStatus enum value
  5505. LifecycleEventStatusUnknown = "Unknown"
  5506. )
  5507. const (
  5508. // ListStateFilterActionInclude is a ListStateFilterAction enum value
  5509. ListStateFilterActionInclude = "include"
  5510. // ListStateFilterActionExclude is a ListStateFilterAction enum value
  5511. ListStateFilterActionExclude = "exclude"
  5512. // ListStateFilterActionIgnore is a ListStateFilterAction enum value
  5513. ListStateFilterActionIgnore = "ignore"
  5514. )
  5515. const (
  5516. // MinimumHealthyHostsTypeHostCount is a MinimumHealthyHostsType enum value
  5517. MinimumHealthyHostsTypeHostCount = "HOST_COUNT"
  5518. // MinimumHealthyHostsTypeFleetPercent is a MinimumHealthyHostsType enum value
  5519. MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT"
  5520. )
  5521. const (
  5522. // RegistrationStatusRegistered is a RegistrationStatus enum value
  5523. RegistrationStatusRegistered = "Registered"
  5524. // RegistrationStatusDeregistered is a RegistrationStatus enum value
  5525. RegistrationStatusDeregistered = "Deregistered"
  5526. )
  5527. const (
  5528. // RevisionLocationTypeS3 is a RevisionLocationType enum value
  5529. RevisionLocationTypeS3 = "S3"
  5530. // RevisionLocationTypeGitHub is a RevisionLocationType enum value
  5531. RevisionLocationTypeGitHub = "GitHub"
  5532. )
  5533. const (
  5534. // SortOrderAscending is a SortOrder enum value
  5535. SortOrderAscending = "ascending"
  5536. // SortOrderDescending is a SortOrder enum value
  5537. SortOrderDescending = "descending"
  5538. )
  5539. const (
  5540. // StopStatusPending is a StopStatus enum value
  5541. StopStatusPending = "Pending"
  5542. // StopStatusSucceeded is a StopStatus enum value
  5543. StopStatusSucceeded = "Succeeded"
  5544. )
  5545. const (
  5546. // TagFilterTypeKeyOnly is a TagFilterType enum value
  5547. TagFilterTypeKeyOnly = "KEY_ONLY"
  5548. // TagFilterTypeValueOnly is a TagFilterType enum value
  5549. TagFilterTypeValueOnly = "VALUE_ONLY"
  5550. // TagFilterTypeKeyAndValue is a TagFilterType enum value
  5551. TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
  5552. )
  5553. const (
  5554. // TriggerEventTypeDeploymentStart is a TriggerEventType enum value
  5555. TriggerEventTypeDeploymentStart = "DeploymentStart"
  5556. // TriggerEventTypeDeploymentSuccess is a TriggerEventType enum value
  5557. TriggerEventTypeDeploymentSuccess = "DeploymentSuccess"
  5558. // TriggerEventTypeDeploymentFailure is a TriggerEventType enum value
  5559. TriggerEventTypeDeploymentFailure = "DeploymentFailure"
  5560. // TriggerEventTypeDeploymentStop is a TriggerEventType enum value
  5561. TriggerEventTypeDeploymentStop = "DeploymentStop"
  5562. // TriggerEventTypeDeploymentRollback is a TriggerEventType enum value
  5563. TriggerEventTypeDeploymentRollback = "DeploymentRollback"
  5564. // TriggerEventTypeInstanceStart is a TriggerEventType enum value
  5565. TriggerEventTypeInstanceStart = "InstanceStart"
  5566. // TriggerEventTypeInstanceSuccess is a TriggerEventType enum value
  5567. TriggerEventTypeInstanceSuccess = "InstanceSuccess"
  5568. // TriggerEventTypeInstanceFailure is a TriggerEventType enum value
  5569. TriggerEventTypeInstanceFailure = "InstanceFailure"
  5570. )