| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package codedeploy provides a client for AWS CodeDeploy.
- package codedeploy
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances"
- // AddTagsToOnPremisesInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the AddTagsToOnPremisesInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddTagsToOnPremisesInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddTagsToOnPremisesInstancesRequest method.
- // req, resp := client.AddTagsToOnPremisesInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremisesInstancesInput) (req *request.Request, output *AddTagsToOnPremisesInstancesOutput) {
- op := &request.Operation{
- Name: opAddTagsToOnPremisesInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsToOnPremisesInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &AddTagsToOnPremisesInstancesOutput{}
- req.Data = output
- return
- }
- // Adds tags to on-premises instances.
- func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) {
- req, out := c.AddTagsToOnPremisesInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions"
- // BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetApplicationRevisions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the BatchGetApplicationRevisions method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the BatchGetApplicationRevisionsRequest method.
- // req, resp := client.BatchGetApplicationRevisionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) {
- op := &request.Operation{
- Name: opBatchGetApplicationRevisions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetApplicationRevisionsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BatchGetApplicationRevisionsOutput{}
- req.Data = output
- return
- }
- // Gets information about one or more application revisions.
- func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) {
- req, out := c.BatchGetApplicationRevisionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opBatchGetApplications = "BatchGetApplications"
- // BatchGetApplicationsRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetApplications operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the BatchGetApplications method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the BatchGetApplicationsRequest method.
- // req, resp := client.BatchGetApplicationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput) {
- op := &request.Operation{
- Name: opBatchGetApplications,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetApplicationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BatchGetApplicationsOutput{}
- req.Data = output
- return
- }
- // Gets information about one or more applications.
- func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) {
- req, out := c.BatchGetApplicationsRequest(input)
- err := req.Send()
- return out, err
- }
- const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups"
- // BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetDeploymentGroups operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the BatchGetDeploymentGroups method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the BatchGetDeploymentGroupsRequest method.
- // req, resp := client.BatchGetDeploymentGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) {
- op := &request.Operation{
- Name: opBatchGetDeploymentGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetDeploymentGroupsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BatchGetDeploymentGroupsOutput{}
- req.Data = output
- return
- }
- // Get information about one or more deployment groups.
- func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) {
- req, out := c.BatchGetDeploymentGroupsRequest(input)
- err := req.Send()
- return out, err
- }
- const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances"
- // BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetDeploymentInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the BatchGetDeploymentInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the BatchGetDeploymentInstancesRequest method.
- // req, resp := client.BatchGetDeploymentInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) {
- op := &request.Operation{
- Name: opBatchGetDeploymentInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetDeploymentInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BatchGetDeploymentInstancesOutput{}
- req.Data = output
- return
- }
- // Gets information about one or more instance that are part of a deployment
- // group.
- func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) {
- req, out := c.BatchGetDeploymentInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- const opBatchGetDeployments = "BatchGetDeployments"
- // BatchGetDeploymentsRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetDeployments operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the BatchGetDeployments method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the BatchGetDeploymentsRequest method.
- // req, resp := client.BatchGetDeploymentsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput) {
- op := &request.Operation{
- Name: opBatchGetDeployments,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetDeploymentsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BatchGetDeploymentsOutput{}
- req.Data = output
- return
- }
- // Gets information about one or more deployments.
- func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) {
- req, out := c.BatchGetDeploymentsRequest(input)
- err := req.Send()
- return out, err
- }
- const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances"
- // BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the BatchGetOnPremisesInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the BatchGetOnPremisesInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the BatchGetOnPremisesInstancesRequest method.
- // req, resp := client.BatchGetOnPremisesInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput) {
- op := &request.Operation{
- Name: opBatchGetOnPremisesInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchGetOnPremisesInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BatchGetOnPremisesInstancesOutput{}
- req.Data = output
- return
- }
- // Gets information about one or more on-premises instances.
- func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) {
- req, out := c.BatchGetOnPremisesInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateApplication = "CreateApplication"
- // CreateApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the CreateApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateApplication method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateApplicationRequest method.
- // req, resp := client.CreateApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
- op := &request.Operation{
- Name: opCreateApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateApplicationOutput{}
- req.Data = output
- return
- }
- // Creates an application.
- func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
- req, out := c.CreateApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDeployment = "CreateDeployment"
- // CreateDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateDeploymentRequest method.
- // req, resp := client.CreateDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
- op := &request.Operation{
- Name: opCreateDeployment,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateDeploymentOutput{}
- req.Data = output
- return
- }
- // Deploys an application revision through the specified deployment group.
- func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
- req, out := c.CreateDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDeploymentConfig = "CreateDeploymentConfig"
- // CreateDeploymentConfigRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDeploymentConfig operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateDeploymentConfig method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateDeploymentConfigRequest method.
- // req, resp := client.CreateDeploymentConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput) {
- op := &request.Operation{
- Name: opCreateDeploymentConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDeploymentConfigInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateDeploymentConfigOutput{}
- req.Data = output
- return
- }
- // Creates a deployment configuration.
- func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) {
- req, out := c.CreateDeploymentConfigRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDeploymentGroup = "CreateDeploymentGroup"
- // CreateDeploymentGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDeploymentGroup operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateDeploymentGroup method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateDeploymentGroupRequest method.
- // req, resp := client.CreateDeploymentGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput) {
- op := &request.Operation{
- Name: opCreateDeploymentGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDeploymentGroupInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateDeploymentGroupOutput{}
- req.Data = output
- return
- }
- // Creates a deployment group to which application revisions will be deployed.
- func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) {
- req, out := c.CreateDeploymentGroupRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteApplication = "DeleteApplication"
- // DeleteApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteApplication method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteApplicationRequest method.
- // req, resp := client.DeleteApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
- op := &request.Operation{
- Name: opDeleteApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteApplicationOutput{}
- req.Data = output
- return
- }
- // Deletes an application.
- func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
- req, out := c.DeleteApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDeploymentConfig = "DeleteDeploymentConfig"
- // DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDeploymentConfig operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteDeploymentConfig method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteDeploymentConfigRequest method.
- // req, resp := client.DeleteDeploymentConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput) {
- op := &request.Operation{
- Name: opDeleteDeploymentConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteDeploymentConfigInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeleteDeploymentConfigOutput{}
- req.Data = output
- return
- }
- // Deletes a deployment configuration.
- //
- // A deployment configuration cannot be deleted if it is currently in use.
- // Predefined configurations cannot be deleted.
- func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) {
- req, out := c.DeleteDeploymentConfigRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDeploymentGroup = "DeleteDeploymentGroup"
- // DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDeploymentGroup operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteDeploymentGroup method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteDeploymentGroupRequest method.
- // req, resp := client.DeleteDeploymentGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput) {
- op := &request.Operation{
- Name: opDeleteDeploymentGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteDeploymentGroupInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteDeploymentGroupOutput{}
- req.Data = output
- return
- }
- // Deletes a deployment group.
- func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) {
- req, out := c.DeleteDeploymentGroupRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance"
- // DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the DeregisterOnPremisesInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeregisterOnPremisesInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeregisterOnPremisesInstanceRequest method.
- // req, resp := client.DeregisterOnPremisesInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput) {
- op := &request.Operation{
- Name: opDeregisterOnPremisesInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeregisterOnPremisesInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &DeregisterOnPremisesInstanceOutput{}
- req.Data = output
- return
- }
- // Deregisters an on-premises instance.
- func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) {
- req, out := c.DeregisterOnPremisesInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetApplication = "GetApplication"
- // GetApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the GetApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetApplication method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetApplicationRequest method.
- // req, resp := client.GetApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) {
- op := &request.Operation{
- Name: opGetApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetApplicationOutput{}
- req.Data = output
- return
- }
- // Gets information about an application.
- func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
- req, out := c.GetApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetApplicationRevision = "GetApplicationRevision"
- // GetApplicationRevisionRequest generates a "aws/request.Request" representing the
- // client's request for the GetApplicationRevision operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetApplicationRevision method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetApplicationRevisionRequest method.
- // req, resp := client.GetApplicationRevisionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput) {
- op := &request.Operation{
- Name: opGetApplicationRevision,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetApplicationRevisionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetApplicationRevisionOutput{}
- req.Data = output
- return
- }
- // Gets information about an application revision.
- func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) {
- req, out := c.GetApplicationRevisionRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDeployment = "GetDeployment"
- // GetDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the GetDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDeploymentRequest method.
- // req, resp := client.GetDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) {
- op := &request.Operation{
- Name: opGetDeployment,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDeploymentOutput{}
- req.Data = output
- return
- }
- // Gets information about a deployment.
- func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) {
- req, out := c.GetDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDeploymentConfig = "GetDeploymentConfig"
- // GetDeploymentConfigRequest generates a "aws/request.Request" representing the
- // client's request for the GetDeploymentConfig operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDeploymentConfig method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDeploymentConfigRequest method.
- // req, resp := client.GetDeploymentConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput) {
- op := &request.Operation{
- Name: opGetDeploymentConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDeploymentConfigInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDeploymentConfigOutput{}
- req.Data = output
- return
- }
- // Gets information about a deployment configuration.
- func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) {
- req, out := c.GetDeploymentConfigRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDeploymentGroup = "GetDeploymentGroup"
- // GetDeploymentGroupRequest generates a "aws/request.Request" representing the
- // client's request for the GetDeploymentGroup operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDeploymentGroup method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDeploymentGroupRequest method.
- // req, resp := client.GetDeploymentGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput) {
- op := &request.Operation{
- Name: opGetDeploymentGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDeploymentGroupInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDeploymentGroupOutput{}
- req.Data = output
- return
- }
- // Gets information about a deployment group.
- func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) {
- req, out := c.GetDeploymentGroupRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetDeploymentInstance = "GetDeploymentInstance"
- // GetDeploymentInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the GetDeploymentInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDeploymentInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDeploymentInstanceRequest method.
- // req, resp := client.GetDeploymentInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) {
- op := &request.Operation{
- Name: opGetDeploymentInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDeploymentInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDeploymentInstanceOutput{}
- req.Data = output
- return
- }
- // Gets information about an instance as part of a deployment.
- func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) {
- req, out := c.GetDeploymentInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetOnPremisesInstance = "GetOnPremisesInstance"
- // GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the GetOnPremisesInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetOnPremisesInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetOnPremisesInstanceRequest method.
- // req, resp := client.GetOnPremisesInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput) {
- op := &request.Operation{
- Name: opGetOnPremisesInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetOnPremisesInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetOnPremisesInstanceOutput{}
- req.Data = output
- return
- }
- // Gets information about an on-premises instance.
- func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) {
- req, out := c.GetOnPremisesInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opListApplicationRevisions = "ListApplicationRevisions"
- // ListApplicationRevisionsRequest generates a "aws/request.Request" representing the
- // client's request for the ListApplicationRevisions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListApplicationRevisions method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListApplicationRevisionsRequest method.
- // req, resp := client.ListApplicationRevisionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput) {
- op := &request.Operation{
- Name: opListApplicationRevisions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListApplicationRevisionsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListApplicationRevisionsOutput{}
- req.Data = output
- return
- }
- // Lists information about revisions for an application.
- func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) {
- req, out := c.ListApplicationRevisionsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListApplicationRevisionsPages iterates over the pages of a ListApplicationRevisions operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListApplicationRevisions method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListApplicationRevisions operation.
- // pageNum := 0
- // err := client.ListApplicationRevisionsPages(params,
- // func(page *ListApplicationRevisionsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(p *ListApplicationRevisionsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListApplicationRevisionsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListApplicationRevisionsOutput), lastPage)
- })
- }
- const opListApplications = "ListApplications"
- // ListApplicationsRequest generates a "aws/request.Request" representing the
- // client's request for the ListApplications operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListApplications method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListApplicationsRequest method.
- // req, resp := client.ListApplicationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
- op := &request.Operation{
- Name: opListApplications,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListApplicationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListApplicationsOutput{}
- req.Data = output
- return
- }
- // Lists the applications registered with the applicable IAM user or AWS account.
- func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
- req, out := c.ListApplicationsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListApplicationsPages iterates over the pages of a ListApplications operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListApplications method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListApplications operation.
- // pageNum := 0
- // err := client.ListApplicationsPages(params,
- // func(page *ListApplicationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(p *ListApplicationsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListApplicationsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListApplicationsOutput), lastPage)
- })
- }
- const opListDeploymentConfigs = "ListDeploymentConfigs"
- // ListDeploymentConfigsRequest generates a "aws/request.Request" representing the
- // client's request for the ListDeploymentConfigs operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListDeploymentConfigs method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListDeploymentConfigsRequest method.
- // req, resp := client.ListDeploymentConfigsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput) {
- op := &request.Operation{
- Name: opListDeploymentConfigs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDeploymentConfigsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDeploymentConfigsOutput{}
- req.Data = output
- return
- }
- // Lists the deployment configurations with the applicable IAM user or AWS account.
- func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) {
- req, out := c.ListDeploymentConfigsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListDeploymentConfigsPages iterates over the pages of a ListDeploymentConfigs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDeploymentConfigs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDeploymentConfigs operation.
- // pageNum := 0
- // err := client.ListDeploymentConfigsPages(params,
- // func(page *ListDeploymentConfigsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(p *ListDeploymentConfigsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListDeploymentConfigsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListDeploymentConfigsOutput), lastPage)
- })
- }
- const opListDeploymentGroups = "ListDeploymentGroups"
- // ListDeploymentGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the ListDeploymentGroups operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListDeploymentGroups method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListDeploymentGroupsRequest method.
- // req, resp := client.ListDeploymentGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput) {
- op := &request.Operation{
- Name: opListDeploymentGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDeploymentGroupsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDeploymentGroupsOutput{}
- req.Data = output
- return
- }
- // Lists the deployment groups for an application registered with the applicable
- // IAM user or AWS account.
- func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) {
- req, out := c.ListDeploymentGroupsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListDeploymentGroupsPages iterates over the pages of a ListDeploymentGroups operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDeploymentGroups method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDeploymentGroups operation.
- // pageNum := 0
- // err := client.ListDeploymentGroupsPages(params,
- // func(page *ListDeploymentGroupsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(p *ListDeploymentGroupsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListDeploymentGroupsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListDeploymentGroupsOutput), lastPage)
- })
- }
- const opListDeploymentInstances = "ListDeploymentInstances"
- // ListDeploymentInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the ListDeploymentInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListDeploymentInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListDeploymentInstancesRequest method.
- // req, resp := client.ListDeploymentInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) {
- op := &request.Operation{
- Name: opListDeploymentInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDeploymentInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDeploymentInstancesOutput{}
- req.Data = output
- return
- }
- // Lists the instance for a deployment associated with the applicable IAM user
- // or AWS account.
- func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) {
- req, out := c.ListDeploymentInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- // ListDeploymentInstancesPages iterates over the pages of a ListDeploymentInstances operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDeploymentInstances method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDeploymentInstances operation.
- // pageNum := 0
- // err := client.ListDeploymentInstancesPages(params,
- // func(page *ListDeploymentInstancesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(p *ListDeploymentInstancesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListDeploymentInstancesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListDeploymentInstancesOutput), lastPage)
- })
- }
- const opListDeployments = "ListDeployments"
- // ListDeploymentsRequest generates a "aws/request.Request" representing the
- // client's request for the ListDeployments operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListDeployments method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListDeploymentsRequest method.
- // req, resp := client.ListDeploymentsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) {
- op := &request.Operation{
- Name: opListDeployments,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDeploymentsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDeploymentsOutput{}
- req.Data = output
- return
- }
- // Lists the deployments in a deployment group for an application registered
- // with the applicable IAM user or AWS account.
- func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) {
- req, out := c.ListDeploymentsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListDeploymentsPages iterates over the pages of a ListDeployments operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDeployments method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDeployments operation.
- // pageNum := 0
- // err := client.ListDeploymentsPages(params,
- // func(page *ListDeploymentsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(p *ListDeploymentsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListDeploymentsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListDeploymentsOutput), lastPage)
- })
- }
- const opListOnPremisesInstances = "ListOnPremisesInstances"
- // ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the ListOnPremisesInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListOnPremisesInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListOnPremisesInstancesRequest method.
- // req, resp := client.ListOnPremisesInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput) {
- op := &request.Operation{
- Name: opListOnPremisesInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListOnPremisesInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListOnPremisesInstancesOutput{}
- req.Data = output
- return
- }
- // Gets a list of names for one or more on-premises instances.
- //
- // Unless otherwise specified, both registered and deregistered on-premises
- // instance names will be listed. To list only registered or deregistered on-premises
- // instance names, use the registration status parameter.
- func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) {
- req, out := c.ListOnPremisesInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- const opRegisterApplicationRevision = "RegisterApplicationRevision"
- // RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterApplicationRevision operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RegisterApplicationRevision method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RegisterApplicationRevisionRequest method.
- // req, resp := client.RegisterApplicationRevisionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput) {
- op := &request.Operation{
- Name: opRegisterApplicationRevision,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RegisterApplicationRevisionInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &RegisterApplicationRevisionOutput{}
- req.Data = output
- return
- }
- // Registers with AWS CodeDeploy a revision for the specified application.
- func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) {
- req, out := c.RegisterApplicationRevisionRequest(input)
- err := req.Send()
- return out, err
- }
- const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance"
- // RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterOnPremisesInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RegisterOnPremisesInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RegisterOnPremisesInstanceRequest method.
- // req, resp := client.RegisterOnPremisesInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput) {
- op := &request.Operation{
- Name: opRegisterOnPremisesInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RegisterOnPremisesInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &RegisterOnPremisesInstanceOutput{}
- req.Data = output
- return
- }
- // Registers an on-premises instance.
- func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) {
- req, out := c.RegisterOnPremisesInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances"
- // RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RemoveTagsFromOnPremisesInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RemoveTagsFromOnPremisesInstancesRequest method.
- // req, resp := client.RemoveTagsFromOnPremisesInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput) {
- op := &request.Operation{
- Name: opRemoveTagsFromOnPremisesInstances,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsFromOnPremisesInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &RemoveTagsFromOnPremisesInstancesOutput{}
- req.Data = output
- return
- }
- // Removes one or more tags from one or more on-premises instances.
- func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) {
- req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- const opStopDeployment = "StopDeployment"
- // StopDeploymentRequest generates a "aws/request.Request" representing the
- // client's request for the StopDeployment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the StopDeployment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the StopDeploymentRequest method.
- // req, resp := client.StopDeploymentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) {
- op := &request.Operation{
- Name: opStopDeployment,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopDeploymentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &StopDeploymentOutput{}
- req.Data = output
- return
- }
- // Attempts to stop an ongoing deployment.
- func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) {
- req, out := c.StopDeploymentRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateApplication = "UpdateApplication"
- // UpdateApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateApplication method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateApplicationRequest method.
- // req, resp := client.UpdateApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
- op := &request.Operation{
- Name: opUpdateApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
- req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
- output = &UpdateApplicationOutput{}
- req.Data = output
- return
- }
- // Changes the name of an application.
- func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
- req, out := c.UpdateApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateDeploymentGroup = "UpdateDeploymentGroup"
- // UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDeploymentGroup operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateDeploymentGroup method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateDeploymentGroupRequest method.
- // req, resp := client.UpdateDeploymentGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput) {
- op := &request.Operation{
- Name: opUpdateDeploymentGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateDeploymentGroupInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateDeploymentGroupOutput{}
- req.Data = output
- return
- }
- // Changes information about a deployment group.
- func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) {
- req, out := c.UpdateDeploymentGroupRequest(input)
- err := req.Send()
- return out, err
- }
- // Represents the input of, and adds tags to, an on-premises instance operation.
- type AddTagsToOnPremisesInstancesInput struct {
- _ struct{} `type:"structure"`
- // The names of the on-premises instances to which to add tags.
- InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
- // The tag key-value pairs to add to the on-premises instances.
- //
- // Keys and values are both required. Keys cannot be null or empty strings.
- // Value-only tags are not allowed.
- Tags []*Tag `locationName:"tags" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsToOnPremisesInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToOnPremisesInstancesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsToOnPremisesInstancesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsToOnPremisesInstancesInput"}
- if s.InstanceNames == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddTagsToOnPremisesInstancesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddTagsToOnPremisesInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToOnPremisesInstancesOutput) GoString() string {
- return s.String()
- }
- // Information about an application.
- type ApplicationInfo struct {
- _ struct{} `type:"structure"`
- // The application ID.
- ApplicationId *string `locationName:"applicationId" type:"string"`
- // The application name.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // The time at which the application was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
- // True if the user has authenticated with GitHub for the specified application;
- // otherwise, false.
- LinkedToGitHub *bool `locationName:"linkedToGitHub" type:"boolean"`
- }
- // String returns the string representation
- func (s ApplicationInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplicationInfo) GoString() string {
- return s.String()
- }
- // Information about an Auto Scaling group.
- type AutoScalingGroup struct {
- _ struct{} `type:"structure"`
- // An Auto Scaling lifecycle event hook name.
- Hook *string `locationName:"hook" type:"string"`
- // The Auto Scaling group name.
- Name *string `locationName:"name" type:"string"`
- }
- // String returns the string representation
- func (s AutoScalingGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AutoScalingGroup) GoString() string {
- return s.String()
- }
- // Represents the input of a batch get application revisions operation.
- type BatchGetApplicationRevisionsInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application about which to get revision information.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // Information to get about the application revisions, including type and location.
- Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchGetApplicationRevisionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetApplicationRevisionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchGetApplicationRevisionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationRevisionsInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.Revisions == nil {
- invalidParams.Add(request.NewErrParamRequired("Revisions"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a batch get application revisions operation.
- type BatchGetApplicationRevisionsOutput struct {
- _ struct{} `type:"structure"`
- // The name of the application that corresponds to the revisions.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // Information about errors that may have occurred during the API call.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- // Additional information about the revisions, including the type and location.
- Revisions []*RevisionInfo `locationName:"revisions" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetApplicationRevisionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetApplicationRevisionsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a batch get applications operation.
- type BatchGetApplicationsInput struct {
- _ struct{} `type:"structure"`
- // A list of application names separated by spaces.
- ApplicationNames []*string `locationName:"applicationNames" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetApplicationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetApplicationsInput) GoString() string {
- return s.String()
- }
- // Represents the output of a batch get applications operation.
- type BatchGetApplicationsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the applications.
- ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetApplicationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetApplicationsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a batch get deployment groups operation.
- type BatchGetDeploymentGroupsInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // The deployment groups' names.
- DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchGetDeploymentGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetDeploymentGroupsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchGetDeploymentGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentGroupsInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.DeploymentGroupNames == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentGroupNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a batch get deployment groups operation.
- type BatchGetDeploymentGroupsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the deployment groups.
- DeploymentGroupsInfo []*DeploymentGroupInfo `locationName:"deploymentGroupsInfo" type:"list"`
- // Information about errors that may have occurred during the API call.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- }
- // String returns the string representation
- func (s BatchGetDeploymentGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetDeploymentGroupsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a batch get deployment instances operation.
- type BatchGetDeploymentInstancesInput struct {
- _ struct{} `type:"structure"`
- // The unique ID of a deployment.
- DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
- // The unique IDs of instances in the deployment group.
- InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchGetDeploymentInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetDeploymentInstancesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchGetDeploymentInstancesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentInstancesInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if s.InstanceIds == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a batch get deployment instance operation.
- type BatchGetDeploymentInstancesOutput struct {
- _ struct{} `type:"structure"`
- // Information about errors that may have occurred during the API call.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- // Information about the instance.
- InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetDeploymentInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetDeploymentInstancesOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a batch get deployments operation.
- type BatchGetDeploymentsInput struct {
- _ struct{} `type:"structure"`
- // A list of deployment IDs, separated by spaces.
- DeploymentIds []*string `locationName:"deploymentIds" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetDeploymentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetDeploymentsInput) GoString() string {
- return s.String()
- }
- // Represents the output of a batch get deployments operation.
- type BatchGetDeploymentsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the deployments.
- DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetDeploymentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetDeploymentsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a batch get on-premises instances operation.
- type BatchGetOnPremisesInstancesInput struct {
- _ struct{} `type:"structure"`
- // The names of the on-premises instances about which to get information.
- InstanceNames []*string `locationName:"instanceNames" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetOnPremisesInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetOnPremisesInstancesInput) GoString() string {
- return s.String()
- }
- // Represents the output of a batch get on-premises instances operation.
- type BatchGetOnPremisesInstancesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the on-premises instances.
- InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"`
- }
- // String returns the string representation
- func (s BatchGetOnPremisesInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchGetOnPremisesInstancesOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a create application operation.
- type CreateApplicationInput struct {
- _ struct{} `type:"structure"`
- // The name of the application. This name must be unique with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a create application operation.
- type CreateApplicationOutput struct {
- _ struct{} `type:"structure"`
- // A unique application ID.
- ApplicationId *string `locationName:"applicationId" type:"string"`
- }
- // String returns the string representation
- func (s CreateApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateApplicationOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a create deployment configuration operation.
- type CreateDeploymentConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the deployment configuration to create.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
- // The minimum number of healthy instances that should be available at any time
- // during the deployment. There are two parameters expected in the input: type
- // and value.
- //
- // The type parameter takes either of the following values:
- //
- // HOST_COUNT: The value parameter represents the minimum number of healthy
- // instances as an absolute value. FLEET_PERCENT: The value parameter represents
- // the minimum number of healthy instances as a percentage of the total number
- // of instances in the deployment. If you specify FLEET_PERCENT, at the start
- // of the deployment, AWS CodeDeploy converts the percentage to the equivalent
- // number of instance and rounds up fractional instances. The value parameter
- // takes an integer.
- //
- // For example, to set a minimum of 95% healthy instance, specify a type of
- // FLEET_PERCENT and a value of 95.
- MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
- }
- // String returns the string representation
- func (s CreateDeploymentConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDeploymentConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentConfigInput"}
- if s.DeploymentConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
- }
- if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a create deployment configuration operation.
- type CreateDeploymentConfigOutput struct {
- _ struct{} `type:"structure"`
- // A unique deployment configuration ID.
- DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
- }
- // String returns the string representation
- func (s CreateDeploymentConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentConfigOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a create deployment group operation.
- type CreateDeploymentGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // A list of associated Auto Scaling groups.
- AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
- // If specified, the deployment configuration name can be either one of the
- // predefined configurations provided with AWS CodeDeploy or a custom deployment
- // configuration that you create by calling the create deployment configuration
- // operation.
- //
- // CodeDeployDefault.OneAtATime is the default deployment configuration. It
- // is used if a configuration isn't specified for the deployment or the deployment
- // group.
- //
- // The predefined deployment configurations include the following:
- //
- // CodeDeployDefault.AllAtOnce attempts to deploy an application revision
- // to as many instance as possible at once. The status of the overall deployment
- // will be displayed as Succeeded if the application revision is deployed to
- // one or more of the instances. The status of the overall deployment will be
- // displayed as Failed if the application revision is not deployed to any of
- // the instances. Using an example of nine instance, CodeDeployDefault.AllAtOnce
- // will attempt to deploy to all nine instance at once. The overall deployment
- // will succeed if deployment to even a single instance is successful; it will
- // fail only if deployments to all nine instance fail.
- //
- // CodeDeployDefault.HalfAtATime deploys to up to half of the instances at
- // a time (with fractions rounded down). The overall deployment succeeds if
- // the application revision is deployed to at least half of the instances (with
- // fractions rounded up); otherwise, the deployment fails. In the example of
- // nine instances, it will deploy to up to four instance at a time. The overall
- // deployment succeeds if deployment to five or more instances succeed; otherwise,
- // the deployment fails. The deployment may be successfully deployed to some
- // instances even if the overall deployment fails.
- //
- // CodeDeployDefault.OneAtATime deploys the application revision to only
- // one instance at a time.
- //
- // For deployment groups that contain more than one instance:
- //
- // The overall deployment succeeds if the application revision is deployed
- // to all of the instances. The exception to this rule is if deployment to the
- // last instance fails, the overall deployment still succeeds. This is because
- // AWS CodeDeploy allows only one instance at a time to be taken offline with
- // the CodeDeployDefault.OneAtATime configuration.
- //
- // The overall deployment fails as soon as the application revision fails
- // to be deployed to any but the last instance. The deployment may be successfully
- // deployed to some instances even if the overall deployment fails.
- //
- // In an example using nine instance, it will deploy to one instance at a
- // time. The overall deployment succeeds if deployment to the first eight instance
- // is successful; the overall deployment fails if deployment to any of the first
- // eight instance fails.
- //
- // For deployment groups that contain only one instance, the overall deployment
- // is successful only if deployment to the single instance is successful
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
- // The name of a new deployment group for the specified application.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
- // The Amazon EC2 tags on which to filter.
- Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
- // The on-premises instance tags on which to filter.
- OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
- // A service role ARN that allows AWS CodeDeploy to act on the user's behalf
- // when interacting with AWS services.
- ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"`
- // Information about triggers to create when the deployment group is created.
- TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s CreateDeploymentGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDeploymentGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
- }
- if s.DeploymentGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
- }
- if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
- }
- if s.ServiceRoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a create deployment group operation.
- type CreateDeploymentGroupOutput struct {
- _ struct{} `type:"structure"`
- // A unique deployment group ID.
- DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
- }
- // String returns the string representation
- func (s CreateDeploymentGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentGroupOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a create deployment operation.
- type CreateDeploymentInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // The name of a deployment configuration associated with the applicable IAM
- // user or AWS account.
- //
- // If not specified, the value configured in the deployment group will be used
- // as the default. If the deployment group does not have a deployment configuration
- // associated with it, then CodeDeployDefault.OneAtATime will be used by default.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
- // The name of the deployment group.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
- // A comment about the deployment.
- Description *string `locationName:"description" type:"string"`
- // If set to true, then if the deployment causes the ApplicationStop deployment
- // lifecycle event to an instance to fail, the deployment to that instance will
- // not be considered to have failed at that point and will continue on to the
- // BeforeInstall deployment lifecycle event.
- //
- // If set to false or not specified, then if the deployment causes the ApplicationStop
- // deployment lifecycle event to fail to an instance, the deployment to that
- // instance will stop, and the deployment to that instance will be considered
- // to have failed.
- IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
- // The type and location of the revision to deploy.
- Revision *RevisionLocation `locationName:"revision" type:"structure"`
- }
- // String returns the string representation
- func (s CreateDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
- }
- if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a create deployment operation.
- type CreateDeploymentOutput struct {
- _ struct{} `type:"structure"`
- // A unique deployment ID.
- DeploymentId *string `locationName:"deploymentId" type:"string"`
- }
- // String returns the string representation
- func (s CreateDeploymentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDeploymentOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a delete application operation.
- type DeleteApplicationInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteApplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a delete deployment configuration operation.
- type DeleteDeploymentConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of a deployment configuration associated with the applicable IAM
- // user or AWS account.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDeploymentConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDeploymentConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDeploymentConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"}
- if s.DeploymentConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
- }
- if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteDeploymentConfigOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDeploymentConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDeploymentConfigOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a delete deployment group operation.
- type DeleteDeploymentGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // The name of an existing deployment group for the specified application.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDeploymentGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDeploymentGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDeploymentGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.DeploymentGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
- }
- if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a delete deployment group operation.
- type DeleteDeploymentGroupOutput struct {
- _ struct{} `type:"structure"`
- // If the output contains no data, and the corresponding deployment group contained
- // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
- // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances
- // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could
- // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances
- // in the Auto Scaling group.
- HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
- }
- // String returns the string representation
- func (s DeleteDeploymentGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDeploymentGroupOutput) GoString() string {
- return s.String()
- }
- // Information about a deployment configuration.
- type DeploymentConfigInfo struct {
- _ struct{} `type:"structure"`
- // The time at which the deployment configuration was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
- // The deployment configuration ID.
- DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
- // The deployment configuration name.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
- // Information about the number or percentage of minimum healthy instance.
- MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
- }
- // String returns the string representation
- func (s DeploymentConfigInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeploymentConfigInfo) GoString() string {
- return s.String()
- }
- // Information about a deployment group.
- type DeploymentGroupInfo struct {
- _ struct{} `type:"structure"`
- // The application name.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // A list of associated Auto Scaling groups.
- AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"`
- // The deployment configuration name.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
- // The deployment group ID.
- DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
- // The deployment group name.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
- // The Amazon EC2 tags on which to filter.
- Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
- // The on-premises instance tags on which to filter.
- OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
- // A service role ARN.
- ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
- // Information about the deployment group's target revision, including type
- // and location.
- TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"`
- // A list of associated triggers.
- TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s DeploymentGroupInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeploymentGroupInfo) GoString() string {
- return s.String()
- }
- // Information about a deployment.
- type DeploymentInfo struct {
- _ struct{} `type:"structure"`
- // The application name.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // A timestamp indicating when the deployment was complete.
- CompleteTime *time.Time `locationName:"completeTime" type:"timestamp" timestampFormat:"unix"`
- // A timestamp indicating when the deployment was created.
- CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
- // The means by which the deployment was created:
- //
- // user: A user created the deployment. autoscaling: Auto Scaling created
- // the deployment.
- Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"`
- // The deployment configuration name.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
- // The deployment group name.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
- // The deployment ID.
- DeploymentId *string `locationName:"deploymentId" type:"string"`
- // A summary of the deployment status of the instances in the deployment.
- DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"`
- // A comment about the deployment.
- Description *string `locationName:"description" type:"string"`
- // Information about any error associated with this deployment.
- ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"`
- // If true, then if the deployment causes the ApplicationStop deployment lifecycle
- // event to an instance to fail, the deployment to that instance will not be
- // considered to have failed at that point and will continue on to the BeforeInstall
- // deployment lifecycle event.
- //
- // If false or not specified, then if the deployment causes the ApplicationStop
- // deployment lifecycle event to an instance to fail, the deployment to that
- // instance will stop, and the deployment to that instance will be considered
- // to have failed.
- IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
- // Information about the location of stored application artifacts and the service
- // from which to retrieve them.
- Revision *RevisionLocation `locationName:"revision" type:"structure"`
- // A timestamp indicating when the deployment was deployed to the deployment
- // group.
- //
- // In some cases, the reported value of the start time may be later than the
- // complete time. This is due to differences in the clock settings of back-end
- // servers that participate in the deployment process.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
- // The current state of the deployment as a whole.
- Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"`
- }
- // String returns the string representation
- func (s DeploymentInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeploymentInfo) GoString() string {
- return s.String()
- }
- // Information about the deployment status of the instances in the deployment.
- type DeploymentOverview struct {
- _ struct{} `type:"structure"`
- // The number of instances in the deployment in a failed state.
- Failed *int64 `type:"long"`
- // The number of instances in which the deployment is in progress.
- InProgress *int64 `type:"long"`
- // The number of instances in the deployment in a pending state.
- Pending *int64 `type:"long"`
- // The number of instances in the deployment in a skipped state.
- Skipped *int64 `type:"long"`
- // The number of instances in the deployment to which revisions have been successfully
- // deployed.
- Succeeded *int64 `type:"long"`
- }
- // String returns the string representation
- func (s DeploymentOverview) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeploymentOverview) GoString() string {
- return s.String()
- }
- // Represents the input of a deregister on-premises instance operation.
- type DeregisterOnPremisesInstanceInput struct {
- _ struct{} `type:"structure"`
- // The name of the on-premises instance to deregister.
- InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeregisterOnPremisesInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterOnPremisesInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeregisterOnPremisesInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"}
- if s.InstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeregisterOnPremisesInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeregisterOnPremisesInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterOnPremisesInstanceOutput) GoString() string {
- return s.String()
- }
- // Diagnostic information about executable scripts that are part of a deployment.
- type Diagnostics struct {
- _ struct{} `type:"structure"`
- // The associated error code:
- //
- // Success: The specified script ran. ScriptMissing: The specified script
- // was not found in the specified location. ScriptNotExecutable: The specified
- // script is not a recognized executable file type. ScriptTimedOut: The specified
- // script did not finish running in the specified time period. ScriptFailed:
- // The specified script failed to run as expected. UnknownError: The specified
- // script did not run for an unknown reason.
- ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"`
- // The last portion of the diagnostic log.
- //
- // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic
- // log.
- LogTail *string `locationName:"logTail" type:"string"`
- // The message associated with the error.
- Message *string `locationName:"message" type:"string"`
- // The name of the script.
- ScriptName *string `locationName:"scriptName" type:"string"`
- }
- // String returns the string representation
- func (s Diagnostics) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Diagnostics) GoString() string {
- return s.String()
- }
- // Information about a tag filter.
- type EC2TagFilter struct {
- _ struct{} `type:"structure"`
- // The tag filter key.
- Key *string `type:"string"`
- // The tag filter type:
- //
- // KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.
- Type *string `type:"string" enum:"EC2TagFilterType"`
- // The tag filter value.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s EC2TagFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EC2TagFilter) GoString() string {
- return s.String()
- }
- // Information about a deployment error.
- type ErrorInformation struct {
- _ struct{} `type:"structure"`
- // The error code:
- //
- // APPLICATION_MISSING: The application was missing. This error code will
- // most likely be raised if the application is deleted after the deployment
- // is created but before it is started. DEPLOYMENT_GROUP_MISSING: The deployment
- // group was missing. This error code will most likely be raised if the deployment
- // group is deleted after the deployment is created but before it is started.
- // HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully
- // deployed within the instance health constraints specified. HEALTH_CONSTRAINTS_INVALID:
- // The revision cannot be successfully deployed within the instance health constraints
- // specified. IAM_ROLE_MISSING: The service role cannot be accessed. IAM_ROLE_PERMISSIONS:
- // The service role does not have the correct permissions. INTERNAL_ERROR: There
- // was an internal error. NO_EC2_SUBSCRIPTION: The calling account is not subscribed
- // to the Amazon EC2 service. NO_INSTANCES: No instance were specified, or no
- // instance can be found. OVER_MAX_INSTANCES: The maximum number of instance
- // was exceeded. THROTTLED: The operation was throttled because the calling
- // account exceeded the throttling limits of one or more AWS services. TIMEOUT:
- // The deployment has timed out. REVISION_MISSING: The revision ID was missing.
- // This error code will most likely be raised if the revision is deleted after
- // the deployment is created but before it is started.
- Code *string `locationName:"code" type:"string" enum:"ErrorCode"`
- // An accompanying error message.
- Message *string `locationName:"message" type:"string"`
- }
- // String returns the string representation
- func (s ErrorInformation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ErrorInformation) GoString() string {
- return s.String()
- }
- // Information about an application revision.
- type GenericRevisionInfo struct {
- _ struct{} `type:"structure"`
- // The deployment groups for which this is the current target revision.
- DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
- // A comment about the revision.
- Description *string `locationName:"description" type:"string"`
- // When the revision was first used by AWS CodeDeploy.
- FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp" timestampFormat:"unix"`
- // When the revision was last used by AWS CodeDeploy.
- LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp" timestampFormat:"unix"`
- // When the revision was registered with AWS CodeDeploy.
- RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
- }
- // String returns the string representation
- func (s GenericRevisionInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GenericRevisionInfo) GoString() string {
- return s.String()
- }
- // Represents the input of a get application operation.
- type GetApplicationInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get application operation.
- type GetApplicationOutput struct {
- _ struct{} `type:"structure"`
- // Information about the application.
- Application *ApplicationInfo `locationName:"application" type:"structure"`
- }
- // String returns the string representation
- func (s GetApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApplicationOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get application revision operation.
- type GetApplicationRevisionInput struct {
- _ struct{} `type:"structure"`
- // The name of the application that corresponds to the revision.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // Information about the application revision to get, including type and location.
- Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetApplicationRevisionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApplicationRevisionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetApplicationRevisionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.Revision == nil {
- invalidParams.Add(request.NewErrParamRequired("Revision"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get application revision operation.
- type GetApplicationRevisionOutput struct {
- _ struct{} `type:"structure"`
- // The name of the application that corresponds to the revision.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // Additional information about the revision, including type and location.
- Revision *RevisionLocation `locationName:"revision" type:"structure"`
- // General information about the revision.
- RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"`
- }
- // String returns the string representation
- func (s GetApplicationRevisionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetApplicationRevisionOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get deployment configuration operation.
- type GetDeploymentConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of a deployment configuration associated with the applicable IAM
- // user or AWS account.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeploymentConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeploymentConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"}
- if s.DeploymentConfigName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
- }
- if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get deployment configuration operation.
- type GetDeploymentConfigOutput struct {
- _ struct{} `type:"structure"`
- // Information about the deployment configuration.
- DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"`
- }
- // String returns the string representation
- func (s GetDeploymentConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentConfigOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get deployment group operation.
- type GetDeploymentGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // The name of an existing deployment group for the specified application.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeploymentGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeploymentGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.DeploymentGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
- }
- if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get deployment group operation.
- type GetDeploymentGroupOutput struct {
- _ struct{} `type:"structure"`
- // Information about the deployment group.
- DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"`
- }
- // String returns the string representation
- func (s GetDeploymentGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentGroupOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get deployment operation.
- type GetDeploymentInput struct {
- _ struct{} `type:"structure"`
- // A deployment ID associated with the applicable IAM user or AWS account.
- DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the input of a get deployment instance operation.
- type GetDeploymentInstanceInput struct {
- _ struct{} `type:"structure"`
- // The unique ID of a deployment.
- DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
- // The unique ID of an instance in the deployment group.
- InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDeploymentInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDeploymentInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get deployment instance operation.
- type GetDeploymentInstanceOutput struct {
- _ struct{} `type:"structure"`
- // Information about the instance.
- InstanceSummary *InstanceSummary `locationName:"instanceSummary" type:"structure"`
- }
- // String returns the string representation
- func (s GetDeploymentInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentInstanceOutput) GoString() string {
- return s.String()
- }
- // Represents the output of a get deployment operation.
- type GetDeploymentOutput struct {
- _ struct{} `type:"structure"`
- // Information about the deployment.
- DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"`
- }
- // String returns the string representation
- func (s GetDeploymentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDeploymentOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a get on-premises instance operation.
- type GetOnPremisesInstanceInput struct {
- _ struct{} `type:"structure"`
- // The name of the on-premises instance about which to get information.
- InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetOnPremisesInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetOnPremisesInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetOnPremisesInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"}
- if s.InstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a get on-premises instance operation.
- type GetOnPremisesInstanceOutput struct {
- _ struct{} `type:"structure"`
- // Information about the on-premises instance.
- InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"`
- }
- // String returns the string representation
- func (s GetOnPremisesInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetOnPremisesInstanceOutput) GoString() string {
- return s.String()
- }
- // Information about the location of application artifacts stored in GitHub.
- type GitHubLocation struct {
- _ struct{} `type:"structure"`
- // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
- // for the application revision.
- CommitId *string `locationName:"commitId" type:"string"`
- // The GitHub account and repository pair that stores a reference to the commit
- // that represents the bundled artifacts for the application revision.
- //
- // Specified as account/repository.
- Repository *string `locationName:"repository" type:"string"`
- }
- // String returns the string representation
- func (s GitHubLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GitHubLocation) GoString() string {
- return s.String()
- }
- // Information about an on-premises instance.
- type InstanceInfo struct {
- _ struct{} `type:"structure"`
- // If the on-premises instance was deregistered, the time at which the on-premises
- // instance was deregistered.
- DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"`
- // The IAM user ARN associated with the on-premises instance.
- IamUserArn *string `locationName:"iamUserArn" type:"string"`
- // The ARN of the on-premises instance.
- InstanceArn *string `locationName:"instanceArn" type:"string"`
- // The name of the on-premises instance.
- InstanceName *string `locationName:"instanceName" type:"string"`
- // The time at which the on-premises instance was registered.
- RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
- // The tags currently associated with the on-premises instance.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s InstanceInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceInfo) GoString() string {
- return s.String()
- }
- // Information about an instance in a deployment.
- type InstanceSummary struct {
- _ struct{} `type:"structure"`
- // The deployment ID.
- DeploymentId *string `locationName:"deploymentId" type:"string"`
- // The instance ID.
- InstanceId *string `locationName:"instanceId" type:"string"`
- // A timestamp indicating when the instance information was last updated.
- LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
- // A list of lifecycle events for this instance.
- LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
- // The deployment status for this instance:
- //
- // Pending: The deployment is pending for this instance. In Progress: The
- // deployment is in progress for this instance. Succeeded: The deployment has
- // succeeded for this instance. Failed: The deployment has failed for this instance.
- // Skipped: The deployment has been skipped for this instance. Unknown: The
- // deployment status is unknown for this instance.
- Status *string `locationName:"status" type:"string" enum:"InstanceStatus"`
- }
- // String returns the string representation
- func (s InstanceSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceSummary) GoString() string {
- return s.String()
- }
- // Information about a deployment lifecycle event.
- type LifecycleEvent struct {
- _ struct{} `type:"structure"`
- // Diagnostic information about the deployment lifecycle event.
- Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"`
- // A timestamp indicating when the deployment lifecycle event ended.
- EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
- // The deployment lifecycle event name, such as ApplicationStop, BeforeInstall,
- // AfterInstall, ApplicationStart, or ValidateService.
- LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"`
- // A timestamp indicating when the deployment lifecycle event started.
- StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
- // The deployment lifecycle event status:
- //
- // Pending: The deployment lifecycle event is pending. InProgress: The deployment
- // lifecycle event is in progress. Succeeded: The deployment lifecycle event
- // ran successfully. Failed: The deployment lifecycle event has failed. Skipped:
- // The deployment lifecycle event has been skipped. Unknown: The deployment
- // lifecycle event is unknown.
- Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"`
- }
- // String returns the string representation
- func (s LifecycleEvent) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LifecycleEvent) GoString() string {
- return s.String()
- }
- // Represents the input of a list application revisions operation.
- type ListApplicationRevisionsInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // Whether to list revisions based on whether the revision is the target revision
- // of an deployment group:
- //
- // include: List revisions that are target revisions of a deployment group.
- // exclude: Do not list revisions that are target revisions of a deployment
- // group. ignore: List all revisions.
- Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"`
- // An identifier returned from the previous list application revisions call.
- // It can be used to return the next set of applications in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // An Amazon S3 bucket name to limit the search for revisions.
- //
- // If set to null, all of the user's buckets will be searched.
- S3Bucket *string `locationName:"s3Bucket" type:"string"`
- // A key prefix for the set of Amazon S3 objects to limit the search for revisions.
- S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`
- // The column name to use to sort the list results:
- //
- // registerTime: Sort by the time the revisions were registered with AWS CodeDeploy.
- // firstUsedTime: Sort by the time the revisions were first used in a deployment.
- // lastUsedTime: Sort by the time the revisions were last used in a deployment.
- // If not specified or set to null, the results will be returned in an arbitrary
- // order.
- SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"`
- // The order in which to sort the list results:
- //
- // ascending: ascending order. descending: descending order. If not specified,
- // the results will be sorted in ascending order.
- //
- // If set to null, the results will be sorted in an arbitrary order.
- SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"`
- }
- // String returns the string representation
- func (s ListApplicationRevisionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApplicationRevisionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListApplicationRevisionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a list application revisions operation.
- type ListApplicationRevisionsOutput struct {
- _ struct{} `type:"structure"`
- // If a large amount of information is returned, an identifier will also be
- // returned. It can be used in a subsequent list application revisions call
- // to return the next set of application revisions in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A list of locations that contain the matching revisions.
- Revisions []*RevisionLocation `locationName:"revisions" type:"list"`
- }
- // String returns the string representation
- func (s ListApplicationRevisionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApplicationRevisionsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list applications operation.
- type ListApplicationsInput struct {
- _ struct{} `type:"structure"`
- // An identifier returned from the previous list applications call. It can be
- // used to return the next set of applications in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListApplicationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApplicationsInput) GoString() string {
- return s.String()
- }
- // Represents the output of a list applications operation.
- type ListApplicationsOutput struct {
- _ struct{} `type:"structure"`
- // A list of application names.
- Applications []*string `locationName:"applications" type:"list"`
- // If a large amount of information is returned, an identifier is also returned.
- // It can be used in a subsequent list applications call to return the next
- // set of applications, will also be returned. in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListApplicationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApplicationsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list deployment configurations operation.
- type ListDeploymentConfigsInput struct {
- _ struct{} `type:"structure"`
- // An identifier returned from the previous list deployment configurations call.
- // It can be used to return the next set of deployment configurations in the
- // list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentConfigsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentConfigsInput) GoString() string {
- return s.String()
- }
- // Represents the output of a list deployment configurations operation.
- type ListDeploymentConfigsOutput struct {
- _ struct{} `type:"structure"`
- // A list of deployment configurations, including built-in configurations such
- // as CodeDeployDefault.OneAtATime.
- DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"`
- // If a large amount of information is returned, an identifier is also returned.
- // It can be used in a subsequent list deployment configurations call to return
- // the next set of deployment configurations in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentConfigsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentConfigsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list deployment groups operation.
- type ListDeploymentGroupsInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // An identifier returned from the previous list deployment groups call. It
- // can be used to return the next set of deployment groups in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentGroupsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDeploymentGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a list deployment groups operation.
- type ListDeploymentGroupsOutput struct {
- _ struct{} `type:"structure"`
- // The application name.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // A list of corresponding deployment group names.
- DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
- // If a large amount of information is returned, an identifier is also returned.
- // It can be used in a subsequent list deployment groups call to return the
- // next set of deployment groups in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentGroupsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list deployment instances operation.
- type ListDeploymentInstancesInput struct {
- _ struct{} `type:"structure"`
- // The unique ID of a deployment.
- DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
- // A subset of instances to list by status:
- //
- // Pending: Include those instance with pending deployments. InProgress: Include
- // those instance where deployments are still in progress. Succeeded: Include
- // those instances with successful deployments. Failed: Include those instance
- // with failed deployments. Skipped: Include those instance with skipped deployments.
- // Unknown: Include those instance with deployments in an unknown state.
- InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"`
- // An identifier returned from the previous list deployment instances call.
- // It can be used to return the next set of deployment instances in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentInstancesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDeploymentInstancesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a list deployment instances operation.
- type ListDeploymentInstancesOutput struct {
- _ struct{} `type:"structure"`
- // A list of instance IDs.
- InstancesList []*string `locationName:"instancesList" type:"list"`
- // If a large amount of information is returned, an identifier is also returned.
- // It can be used in a subsequent list deployment instances call to return the
- // next set of deployment instances in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentInstancesOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list deployments operation.
- type ListDeploymentsInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // A time range (start and end) for returning a subset of the list of deployments.
- CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"`
- // The name of an existing deployment group for the specified application.
- DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
- // A subset of deployments to list by status:
- //
- // Created: Include created deployments in the resulting list. Queued: Include
- // queued deployments in the resulting list. In Progress: Include in-progress
- // deployments in the resulting list. Succeeded: Include successful deployments
- // in the resulting list. Failed: Include failed deployments in the resulting
- // list. Stopped: Include stopped deployments in the resulting list.
- IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"`
- // An identifier returned from the previous list deployments call. It can be
- // used to return the next set of deployments in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDeploymentsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"}
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a list deployments operation.
- type ListDeploymentsOutput struct {
- _ struct{} `type:"structure"`
- // A list of deployment IDs.
- Deployments []*string `locationName:"deployments" type:"list"`
- // If a large amount of information is returned, an identifier is also returned.
- // It can be used in a subsequent list deployments call to return the next set
- // of deployments in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListDeploymentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDeploymentsOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a list on-premises instances operation.
- //
- // .
- type ListOnPremisesInstancesInput struct {
- _ struct{} `type:"structure"`
- // An identifier returned from the previous list on-premises instances call.
- // It can be used to return the next set of on-premises instances in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The registration status of the on-premises instances:
- //
- // Deregistered: Include deregistered on-premises instances in the resulting
- // list. Registered: Include registered on-premises instances in the resulting
- // list.
- RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"`
- // The on-premises instance tags that will be used to restrict the corresponding
- // on-premises instance names returned.
- TagFilters []*TagFilter `locationName:"tagFilters" type:"list"`
- }
- // String returns the string representation
- func (s ListOnPremisesInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListOnPremisesInstancesInput) GoString() string {
- return s.String()
- }
- // Represents the output of list on-premises instances operation.
- type ListOnPremisesInstancesOutput struct {
- _ struct{} `type:"structure"`
- // The list of matching on-premises instance names.
- InstanceNames []*string `locationName:"instanceNames" type:"list"`
- // If a large amount of information is returned, an identifier is also returned.
- // It can be used in a subsequent list on-premises instances call to return
- // the next set of on-premises instances in the list.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListOnPremisesInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListOnPremisesInstancesOutput) GoString() string {
- return s.String()
- }
- // Information about minimum healthy instance.
- type MinimumHealthyHosts struct {
- _ struct{} `type:"structure"`
- // The minimum healthy instance type:
- //
- // HOST_COUNT: The minimum number of healthy instance as an absolute value.
- // FLEET_PERCENT: The minimum number of healthy instance as a percentage of
- // the total number of instance in the deployment. In an example of nine instance,
- // if a HOST_COUNT of six is specified, deploy to up to three instances at a
- // time. The deployment will be successful if six or more instances are deployed
- // to successfully; otherwise, the deployment fails. If a FLEET_PERCENT of 40
- // is specified, deploy to up to five instance at a time. The deployment will
- // be successful if four or more instance are deployed to successfully; otherwise,
- // the deployment fails.
- //
- // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
- // will return a minimum healthy instance type of MOST_CONCURRENCY and a value
- // of 1. This means a deployment to only one instance at a time. (You cannot
- // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In
- // addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure
- // that all instances but one are kept in a healthy state during the deployment.
- // Although this allows one instance at a time to be taken offline for a new
- // deployment, it also means that if the deployment to the last instance fails,
- // the overall deployment still succeeds.
- Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"`
- // The minimum healthy instance value.
- Value *int64 `locationName:"value" type:"integer"`
- }
- // String returns the string representation
- func (s MinimumHealthyHosts) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MinimumHealthyHosts) GoString() string {
- return s.String()
- }
- // Represents the input of a register application revision operation.
- type RegisterApplicationRevisionInput struct {
- _ struct{} `type:"structure"`
- // The name of an AWS CodeDeploy application associated with the applicable
- // IAM user or AWS account.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // A comment about the revision.
- Description *string `locationName:"description" type:"string"`
- // Information about the application revision to register, including type and
- // location.
- Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s RegisterApplicationRevisionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterApplicationRevisionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterApplicationRevisionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.Revision == nil {
- invalidParams.Add(request.NewErrParamRequired("Revision"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type RegisterApplicationRevisionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RegisterApplicationRevisionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterApplicationRevisionOutput) GoString() string {
- return s.String()
- }
- // Represents the input of the register on-premises instance operation.
- type RegisterOnPremisesInstanceInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the IAM user to associate with the on-premises instance.
- IamUserArn *string `locationName:"iamUserArn" type:"string" required:"true"`
- // The name of the on-premises instance to register.
- InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RegisterOnPremisesInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterOnPremisesInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterOnPremisesInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"}
- if s.IamUserArn == nil {
- invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
- }
- if s.InstanceName == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type RegisterOnPremisesInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RegisterOnPremisesInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterOnPremisesInstanceOutput) GoString() string {
- return s.String()
- }
- // Represents the input of a remove tags from on-premises instances operation.
- type RemoveTagsFromOnPremisesInstancesInput struct {
- _ struct{} `type:"structure"`
- // The names of the on-premises instances from which to remove tags.
- InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
- // The tag key-value pairs to remove from the on-premises instances.
- Tags []*Tag `locationName:"tags" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsFromOnPremisesInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"}
- if s.InstanceNames == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type RemoveTagsFromOnPremisesInstancesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveTagsFromOnPremisesInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string {
- return s.String()
- }
- // Information about an application revision.
- type RevisionInfo struct {
- _ struct{} `type:"structure"`
- // Information about an application revision.
- GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"`
- // Information about the location of an application revision.
- RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"`
- }
- // String returns the string representation
- func (s RevisionInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevisionInfo) GoString() string {
- return s.String()
- }
- // Information about the location of an application revision.
- type RevisionLocation struct {
- _ struct{} `type:"structure"`
- // Information about the location of application artifacts stored in GitHub.
- GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"`
- // The type of application revision:
- //
- // S3: An application revision stored in Amazon S3. GitHub: An application
- // revision stored in GitHub.
- RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"`
- // Information about the location of application artifacts stored in Amazon
- // S3.
- S3Location *S3Location `locationName:"s3Location" type:"structure"`
- }
- // String returns the string representation
- func (s RevisionLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevisionLocation) GoString() string {
- return s.String()
- }
- // Information about the location of application artifacts stored in Amazon
- // S3.
- type S3Location struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon S3 bucket where the application revision is stored.
- Bucket *string `locationName:"bucket" type:"string"`
- // The file type of the application revision. Must be one of the following:
- //
- // tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip
- // archive file.
- BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"`
- // The ETag of the Amazon S3 object that represents the bundled artifacts for
- // the application revision.
- //
- // If the ETag is not specified as an input parameter, ETag validation of the
- // object will be skipped.
- ETag *string `locationName:"eTag" type:"string"`
- // The name of the Amazon S3 object that represents the bundled artifacts for
- // the application revision.
- Key *string `locationName:"key" type:"string"`
- // A specific version of the Amazon S3 object that represents the bundled artifacts
- // for the application revision.
- //
- // If the version is not specified, the system will use the most recent version
- // by default.
- Version *string `locationName:"version" type:"string"`
- }
- // String returns the string representation
- func (s S3Location) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3Location) GoString() string {
- return s.String()
- }
- // Represents the input of a stop deployment operation.
- type StopDeploymentInput struct {
- _ struct{} `type:"structure"`
- // The unique ID of a deployment.
- DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopDeploymentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopDeploymentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopDeploymentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"}
- if s.DeploymentId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of a stop deployment operation.
- type StopDeploymentOutput struct {
- _ struct{} `type:"structure"`
- // The status of the stop deployment operation:
- //
- // Pending: The stop operation is pending. Succeeded: The stop operation was
- // successful.
- Status *string `locationName:"status" type:"string" enum:"StopStatus"`
- // An accompanying status message.
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- }
- // String returns the string representation
- func (s StopDeploymentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopDeploymentOutput) GoString() string {
- return s.String()
- }
- // Information about a tag.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The tag's key.
- Key *string `type:"string"`
- // The tag's value.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Information about an on-premises instance tag filter.
- type TagFilter struct {
- _ struct{} `type:"structure"`
- // The on-premises instance tag filter key.
- Key *string `type:"string"`
- // The on-premises instance tag filter type:
- //
- // KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.
- Type *string `type:"string" enum:"TagFilterType"`
- // The on-premises instance tag filter value.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s TagFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagFilter) GoString() string {
- return s.String()
- }
- // Information about a time range.
- type TimeRange struct {
- _ struct{} `type:"structure"`
- // The end time of the time range.
- //
- // Specify null to leave the end time open-ended.
- End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"`
- // The start time of the time range.
- //
- // Specify null to leave the start time open-ended.
- Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"`
- }
- // String returns the string representation
- func (s TimeRange) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TimeRange) GoString() string {
- return s.String()
- }
- // Information about notification triggers for the deployment group.
- type TriggerConfig struct {
- _ struct{} `type:"structure"`
- // The event type or types for which notifications are triggered.
- //
- // The following event type values are supported:
- //
- // DEPLOYMENT_START DEPLOYMENT_SUCCESS DEPLOYMENT_FAILURE DEPLOYMENT_STOP
- // INSTANCE_START INSTANCE_SUCCESS INSTANCE_FAILURE
- TriggerEvents []*string `locationName:"triggerEvents" type:"list"`
- // The name of the notification trigger.
- TriggerName *string `locationName:"triggerName" type:"string"`
- // The ARN of the Amazon Simple Notification Service topic through which notifications
- // about deployment or instance events are sent.
- TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"`
- }
- // String returns the string representation
- func (s TriggerConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TriggerConfig) GoString() string {
- return s.String()
- }
- // Represents the input of an update application operation.
- type UpdateApplicationInput struct {
- _ struct{} `type:"structure"`
- // The current name of the application you want to change.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
- // The new name to give the application.
- NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s UpdateApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type UpdateApplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateApplicationOutput) GoString() string {
- return s.String()
- }
- // Represents the input of an update deployment group operation.
- type UpdateDeploymentGroupInput struct {
- _ struct{} `type:"structure"`
- // The application name corresponding to the deployment group to update.
- ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
- // The replacement list of Auto Scaling groups to be included in the deployment
- // group, if you want to change them. To keep the Auto Scaling groups, enter
- // their names. To remove Auto Scaling groups, do not enter any Auto Scaling
- // group names.
- AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
- // The current name of the deployment group.
- CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"`
- // The replacement deployment configuration name to use, if you want to change
- // it.
- DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
- // The replacement set of Amazon EC2 tags on which to filter, if you want to
- // change them. To keep the existing tags, enter their names. To remove tags,
- // do not enter any tag names.
- Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
- // The new name of the deployment group, if you want to change it.
- NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"`
- // The replacement set of on-premises instance tags on which to filter, if you
- // want to change them. To keep the existing tags, enter their names. To remove
- // tags, do not enter any tag names.
- OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
- // A replacement ARN for the service role, if you want to change it.
- ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
- // Information about triggers to change when the deployment group is updated.
- TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s UpdateDeploymentGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDeploymentGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDeploymentGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CurrentDeploymentGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName"))
- }
- if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1))
- }
- if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
- }
- if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Represents the output of an update deployment group operation.
- type UpdateDeploymentGroupOutput struct {
- _ struct{} `type:"structure"`
- // If the output contains no data, and the corresponding deployment group contained
- // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
- // corresponding Auto Scaling lifecycle event hooks from the AWS account. If
- // the output contains data, AWS CodeDeploy could not remove some Auto Scaling
- // lifecycle event hooks from the AWS account.
- HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
- }
- // String returns the string representation
- func (s UpdateDeploymentGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDeploymentGroupOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum ApplicationRevisionSortBy
- ApplicationRevisionSortByRegisterTime = "registerTime"
- // @enum ApplicationRevisionSortBy
- ApplicationRevisionSortByFirstUsedTime = "firstUsedTime"
- // @enum ApplicationRevisionSortBy
- ApplicationRevisionSortByLastUsedTime = "lastUsedTime"
- )
- const (
- // @enum BundleType
- BundleTypeTar = "tar"
- // @enum BundleType
- BundleTypeTgz = "tgz"
- // @enum BundleType
- BundleTypeZip = "zip"
- )
- const (
- // @enum DeploymentCreator
- DeploymentCreatorUser = "user"
- // @enum DeploymentCreator
- DeploymentCreatorAutoscaling = "autoscaling"
- )
- const (
- // @enum DeploymentStatus
- DeploymentStatusCreated = "Created"
- // @enum DeploymentStatus
- DeploymentStatusQueued = "Queued"
- // @enum DeploymentStatus
- DeploymentStatusInProgress = "InProgress"
- // @enum DeploymentStatus
- DeploymentStatusSucceeded = "Succeeded"
- // @enum DeploymentStatus
- DeploymentStatusFailed = "Failed"
- // @enum DeploymentStatus
- DeploymentStatusStopped = "Stopped"
- )
- const (
- // @enum EC2TagFilterType
- EC2TagFilterTypeKeyOnly = "KEY_ONLY"
- // @enum EC2TagFilterType
- EC2TagFilterTypeValueOnly = "VALUE_ONLY"
- // @enum EC2TagFilterType
- EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
- )
- const (
- // @enum ErrorCode
- ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING"
- // @enum ErrorCode
- ErrorCodeApplicationMissing = "APPLICATION_MISSING"
- // @enum ErrorCode
- ErrorCodeRevisionMissing = "REVISION_MISSING"
- // @enum ErrorCode
- ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING"
- // @enum ErrorCode
- ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS"
- // @enum ErrorCode
- ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION"
- // @enum ErrorCode
- ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES"
- // @enum ErrorCode
- ErrorCodeNoInstances = "NO_INSTANCES"
- // @enum ErrorCode
- ErrorCodeTimeout = "TIMEOUT"
- // @enum ErrorCode
- ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID"
- // @enum ErrorCode
- ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS"
- // @enum ErrorCode
- ErrorCodeInternalError = "INTERNAL_ERROR"
- // @enum ErrorCode
- ErrorCodeThrottled = "THROTTLED"
- )
- const (
- // @enum InstanceStatus
- InstanceStatusPending = "Pending"
- // @enum InstanceStatus
- InstanceStatusInProgress = "InProgress"
- // @enum InstanceStatus
- InstanceStatusSucceeded = "Succeeded"
- // @enum InstanceStatus
- InstanceStatusFailed = "Failed"
- // @enum InstanceStatus
- InstanceStatusSkipped = "Skipped"
- // @enum InstanceStatus
- InstanceStatusUnknown = "Unknown"
- )
- const (
- // @enum LifecycleErrorCode
- LifecycleErrorCodeSuccess = "Success"
- // @enum LifecycleErrorCode
- LifecycleErrorCodeScriptMissing = "ScriptMissing"
- // @enum LifecycleErrorCode
- LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable"
- // @enum LifecycleErrorCode
- LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut"
- // @enum LifecycleErrorCode
- LifecycleErrorCodeScriptFailed = "ScriptFailed"
- // @enum LifecycleErrorCode
- LifecycleErrorCodeUnknownError = "UnknownError"
- )
- const (
- // @enum LifecycleEventStatus
- LifecycleEventStatusPending = "Pending"
- // @enum LifecycleEventStatus
- LifecycleEventStatusInProgress = "InProgress"
- // @enum LifecycleEventStatus
- LifecycleEventStatusSucceeded = "Succeeded"
- // @enum LifecycleEventStatus
- LifecycleEventStatusFailed = "Failed"
- // @enum LifecycleEventStatus
- LifecycleEventStatusSkipped = "Skipped"
- // @enum LifecycleEventStatus
- LifecycleEventStatusUnknown = "Unknown"
- )
- const (
- // @enum ListStateFilterAction
- ListStateFilterActionInclude = "include"
- // @enum ListStateFilterAction
- ListStateFilterActionExclude = "exclude"
- // @enum ListStateFilterAction
- ListStateFilterActionIgnore = "ignore"
- )
- const (
- // @enum MinimumHealthyHostsType
- MinimumHealthyHostsTypeHostCount = "HOST_COUNT"
- // @enum MinimumHealthyHostsType
- MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT"
- )
- const (
- // @enum RegistrationStatus
- RegistrationStatusRegistered = "Registered"
- // @enum RegistrationStatus
- RegistrationStatusDeregistered = "Deregistered"
- )
- const (
- // @enum RevisionLocationType
- RevisionLocationTypeS3 = "S3"
- // @enum RevisionLocationType
- RevisionLocationTypeGitHub = "GitHub"
- )
- const (
- // @enum SortOrder
- SortOrderAscending = "ascending"
- // @enum SortOrder
- SortOrderDescending = "descending"
- )
- const (
- // @enum StopStatus
- StopStatusPending = "Pending"
- // @enum StopStatus
- StopStatusSucceeded = "Succeeded"
- )
- const (
- // @enum TagFilterType
- TagFilterTypeKeyOnly = "KEY_ONLY"
- // @enum TagFilterType
- TagFilterTypeValueOnly = "VALUE_ONLY"
- // @enum TagFilterType
- TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
- )
- const (
- // @enum TriggerEventType
- TriggerEventTypeDeploymentStart = "DeploymentStart"
- // @enum TriggerEventType
- TriggerEventTypeDeploymentSuccess = "DeploymentSuccess"
- // @enum TriggerEventType
- TriggerEventTypeDeploymentFailure = "DeploymentFailure"
- // @enum TriggerEventType
- TriggerEventTypeDeploymentStop = "DeploymentStop"
- // @enum TriggerEventType
- TriggerEventTypeInstanceStart = "InstanceStart"
- // @enum TriggerEventType
- TriggerEventTypeInstanceSuccess = "InstanceSuccess"
- // @enum TriggerEventType
- TriggerEventTypeInstanceFailure = "InstanceFailure"
- )
|