api.go 169 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package codedeploy provides a client for AWS CodeDeploy.
  3. package codedeploy
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  10. )
  11. const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances"
  12. // AddTagsToOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  13. // client's request for the AddTagsToOnPremisesInstances operation. The "output" return
  14. // value can be used to capture response data after the request's "Send" method
  15. // is called.
  16. //
  17. // Creating a request object using this method should be used when you want to inject
  18. // custom logic into the request's lifecycle using a custom handler, or if you want to
  19. // access properties on the request object before or after sending the request. If
  20. // you just want the service response, call the AddTagsToOnPremisesInstances method directly
  21. // instead.
  22. //
  23. // Note: You must call the "Send" method on the returned request object in order
  24. // to execute the request.
  25. //
  26. // // Example sending a request using the AddTagsToOnPremisesInstancesRequest method.
  27. // req, resp := client.AddTagsToOnPremisesInstancesRequest(params)
  28. //
  29. // err := req.Send()
  30. // if err == nil { // resp is now filled
  31. // fmt.Println(resp)
  32. // }
  33. //
  34. func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremisesInstancesInput) (req *request.Request, output *AddTagsToOnPremisesInstancesOutput) {
  35. op := &request.Operation{
  36. Name: opAddTagsToOnPremisesInstances,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/",
  39. }
  40. if input == nil {
  41. input = &AddTagsToOnPremisesInstancesInput{}
  42. }
  43. req = c.newRequest(op, input, output)
  44. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  45. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  46. output = &AddTagsToOnPremisesInstancesOutput{}
  47. req.Data = output
  48. return
  49. }
  50. // Adds tags to on-premises instances.
  51. func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) {
  52. req, out := c.AddTagsToOnPremisesInstancesRequest(input)
  53. err := req.Send()
  54. return out, err
  55. }
  56. const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions"
  57. // BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the
  58. // client's request for the BatchGetApplicationRevisions operation. The "output" return
  59. // value can be used to capture response data after the request's "Send" method
  60. // is called.
  61. //
  62. // Creating a request object using this method should be used when you want to inject
  63. // custom logic into the request's lifecycle using a custom handler, or if you want to
  64. // access properties on the request object before or after sending the request. If
  65. // you just want the service response, call the BatchGetApplicationRevisions method directly
  66. // instead.
  67. //
  68. // Note: You must call the "Send" method on the returned request object in order
  69. // to execute the request.
  70. //
  71. // // Example sending a request using the BatchGetApplicationRevisionsRequest method.
  72. // req, resp := client.BatchGetApplicationRevisionsRequest(params)
  73. //
  74. // err := req.Send()
  75. // if err == nil { // resp is now filled
  76. // fmt.Println(resp)
  77. // }
  78. //
  79. func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) {
  80. op := &request.Operation{
  81. Name: opBatchGetApplicationRevisions,
  82. HTTPMethod: "POST",
  83. HTTPPath: "/",
  84. }
  85. if input == nil {
  86. input = &BatchGetApplicationRevisionsInput{}
  87. }
  88. req = c.newRequest(op, input, output)
  89. output = &BatchGetApplicationRevisionsOutput{}
  90. req.Data = output
  91. return
  92. }
  93. // Gets information about one or more application revisions.
  94. func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) {
  95. req, out := c.BatchGetApplicationRevisionsRequest(input)
  96. err := req.Send()
  97. return out, err
  98. }
  99. const opBatchGetApplications = "BatchGetApplications"
  100. // BatchGetApplicationsRequest generates a "aws/request.Request" representing the
  101. // client's request for the BatchGetApplications operation. The "output" return
  102. // value can be used to capture response data after the request's "Send" method
  103. // is called.
  104. //
  105. // Creating a request object using this method should be used when you want to inject
  106. // custom logic into the request's lifecycle using a custom handler, or if you want to
  107. // access properties on the request object before or after sending the request. If
  108. // you just want the service response, call the BatchGetApplications method directly
  109. // instead.
  110. //
  111. // Note: You must call the "Send" method on the returned request object in order
  112. // to execute the request.
  113. //
  114. // // Example sending a request using the BatchGetApplicationsRequest method.
  115. // req, resp := client.BatchGetApplicationsRequest(params)
  116. //
  117. // err := req.Send()
  118. // if err == nil { // resp is now filled
  119. // fmt.Println(resp)
  120. // }
  121. //
  122. func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput) {
  123. op := &request.Operation{
  124. Name: opBatchGetApplications,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/",
  127. }
  128. if input == nil {
  129. input = &BatchGetApplicationsInput{}
  130. }
  131. req = c.newRequest(op, input, output)
  132. output = &BatchGetApplicationsOutput{}
  133. req.Data = output
  134. return
  135. }
  136. // Gets information about one or more applications.
  137. func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) {
  138. req, out := c.BatchGetApplicationsRequest(input)
  139. err := req.Send()
  140. return out, err
  141. }
  142. const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups"
  143. // BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the
  144. // client's request for the BatchGetDeploymentGroups operation. The "output" return
  145. // value can be used to capture response data after the request's "Send" method
  146. // is called.
  147. //
  148. // Creating a request object using this method should be used when you want to inject
  149. // custom logic into the request's lifecycle using a custom handler, or if you want to
  150. // access properties on the request object before or after sending the request. If
  151. // you just want the service response, call the BatchGetDeploymentGroups method directly
  152. // instead.
  153. //
  154. // Note: You must call the "Send" method on the returned request object in order
  155. // to execute the request.
  156. //
  157. // // Example sending a request using the BatchGetDeploymentGroupsRequest method.
  158. // req, resp := client.BatchGetDeploymentGroupsRequest(params)
  159. //
  160. // err := req.Send()
  161. // if err == nil { // resp is now filled
  162. // fmt.Println(resp)
  163. // }
  164. //
  165. func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) {
  166. op := &request.Operation{
  167. Name: opBatchGetDeploymentGroups,
  168. HTTPMethod: "POST",
  169. HTTPPath: "/",
  170. }
  171. if input == nil {
  172. input = &BatchGetDeploymentGroupsInput{}
  173. }
  174. req = c.newRequest(op, input, output)
  175. output = &BatchGetDeploymentGroupsOutput{}
  176. req.Data = output
  177. return
  178. }
  179. // Get information about one or more deployment groups.
  180. func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) {
  181. req, out := c.BatchGetDeploymentGroupsRequest(input)
  182. err := req.Send()
  183. return out, err
  184. }
  185. const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances"
  186. // BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the
  187. // client's request for the BatchGetDeploymentInstances operation. The "output" return
  188. // value can be used to capture response data after the request's "Send" method
  189. // is called.
  190. //
  191. // Creating a request object using this method should be used when you want to inject
  192. // custom logic into the request's lifecycle using a custom handler, or if you want to
  193. // access properties on the request object before or after sending the request. If
  194. // you just want the service response, call the BatchGetDeploymentInstances method directly
  195. // instead.
  196. //
  197. // Note: You must call the "Send" method on the returned request object in order
  198. // to execute the request.
  199. //
  200. // // Example sending a request using the BatchGetDeploymentInstancesRequest method.
  201. // req, resp := client.BatchGetDeploymentInstancesRequest(params)
  202. //
  203. // err := req.Send()
  204. // if err == nil { // resp is now filled
  205. // fmt.Println(resp)
  206. // }
  207. //
  208. func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) {
  209. op := &request.Operation{
  210. Name: opBatchGetDeploymentInstances,
  211. HTTPMethod: "POST",
  212. HTTPPath: "/",
  213. }
  214. if input == nil {
  215. input = &BatchGetDeploymentInstancesInput{}
  216. }
  217. req = c.newRequest(op, input, output)
  218. output = &BatchGetDeploymentInstancesOutput{}
  219. req.Data = output
  220. return
  221. }
  222. // Gets information about one or more instance that are part of a deployment
  223. // group.
  224. func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) {
  225. req, out := c.BatchGetDeploymentInstancesRequest(input)
  226. err := req.Send()
  227. return out, err
  228. }
  229. const opBatchGetDeployments = "BatchGetDeployments"
  230. // BatchGetDeploymentsRequest generates a "aws/request.Request" representing the
  231. // client's request for the BatchGetDeployments operation. The "output" return
  232. // value can be used to capture response data after the request's "Send" method
  233. // is called.
  234. //
  235. // Creating a request object using this method should be used when you want to inject
  236. // custom logic into the request's lifecycle using a custom handler, or if you want to
  237. // access properties on the request object before or after sending the request. If
  238. // you just want the service response, call the BatchGetDeployments method directly
  239. // instead.
  240. //
  241. // Note: You must call the "Send" method on the returned request object in order
  242. // to execute the request.
  243. //
  244. // // Example sending a request using the BatchGetDeploymentsRequest method.
  245. // req, resp := client.BatchGetDeploymentsRequest(params)
  246. //
  247. // err := req.Send()
  248. // if err == nil { // resp is now filled
  249. // fmt.Println(resp)
  250. // }
  251. //
  252. func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput) {
  253. op := &request.Operation{
  254. Name: opBatchGetDeployments,
  255. HTTPMethod: "POST",
  256. HTTPPath: "/",
  257. }
  258. if input == nil {
  259. input = &BatchGetDeploymentsInput{}
  260. }
  261. req = c.newRequest(op, input, output)
  262. output = &BatchGetDeploymentsOutput{}
  263. req.Data = output
  264. return
  265. }
  266. // Gets information about one or more deployments.
  267. func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) {
  268. req, out := c.BatchGetDeploymentsRequest(input)
  269. err := req.Send()
  270. return out, err
  271. }
  272. const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances"
  273. // BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  274. // client's request for the BatchGetOnPremisesInstances operation. The "output" return
  275. // value can be used to capture response data after the request's "Send" method
  276. // is called.
  277. //
  278. // Creating a request object using this method should be used when you want to inject
  279. // custom logic into the request's lifecycle using a custom handler, or if you want to
  280. // access properties on the request object before or after sending the request. If
  281. // you just want the service response, call the BatchGetOnPremisesInstances method directly
  282. // instead.
  283. //
  284. // Note: You must call the "Send" method on the returned request object in order
  285. // to execute the request.
  286. //
  287. // // Example sending a request using the BatchGetOnPremisesInstancesRequest method.
  288. // req, resp := client.BatchGetOnPremisesInstancesRequest(params)
  289. //
  290. // err := req.Send()
  291. // if err == nil { // resp is now filled
  292. // fmt.Println(resp)
  293. // }
  294. //
  295. func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput) {
  296. op := &request.Operation{
  297. Name: opBatchGetOnPremisesInstances,
  298. HTTPMethod: "POST",
  299. HTTPPath: "/",
  300. }
  301. if input == nil {
  302. input = &BatchGetOnPremisesInstancesInput{}
  303. }
  304. req = c.newRequest(op, input, output)
  305. output = &BatchGetOnPremisesInstancesOutput{}
  306. req.Data = output
  307. return
  308. }
  309. // Gets information about one or more on-premises instances.
  310. func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) {
  311. req, out := c.BatchGetOnPremisesInstancesRequest(input)
  312. err := req.Send()
  313. return out, err
  314. }
  315. const opCreateApplication = "CreateApplication"
  316. // CreateApplicationRequest generates a "aws/request.Request" representing the
  317. // client's request for the CreateApplication operation. The "output" return
  318. // value can be used to capture response data after the request's "Send" method
  319. // is called.
  320. //
  321. // Creating a request object using this method should be used when you want to inject
  322. // custom logic into the request's lifecycle using a custom handler, or if you want to
  323. // access properties on the request object before or after sending the request. If
  324. // you just want the service response, call the CreateApplication method directly
  325. // instead.
  326. //
  327. // Note: You must call the "Send" method on the returned request object in order
  328. // to execute the request.
  329. //
  330. // // Example sending a request using the CreateApplicationRequest method.
  331. // req, resp := client.CreateApplicationRequest(params)
  332. //
  333. // err := req.Send()
  334. // if err == nil { // resp is now filled
  335. // fmt.Println(resp)
  336. // }
  337. //
  338. func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
  339. op := &request.Operation{
  340. Name: opCreateApplication,
  341. HTTPMethod: "POST",
  342. HTTPPath: "/",
  343. }
  344. if input == nil {
  345. input = &CreateApplicationInput{}
  346. }
  347. req = c.newRequest(op, input, output)
  348. output = &CreateApplicationOutput{}
  349. req.Data = output
  350. return
  351. }
  352. // Creates an application.
  353. func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
  354. req, out := c.CreateApplicationRequest(input)
  355. err := req.Send()
  356. return out, err
  357. }
  358. const opCreateDeployment = "CreateDeployment"
  359. // CreateDeploymentRequest generates a "aws/request.Request" representing the
  360. // client's request for the CreateDeployment operation. The "output" return
  361. // value can be used to capture response data after the request's "Send" method
  362. // is called.
  363. //
  364. // Creating a request object using this method should be used when you want to inject
  365. // custom logic into the request's lifecycle using a custom handler, or if you want to
  366. // access properties on the request object before or after sending the request. If
  367. // you just want the service response, call the CreateDeployment method directly
  368. // instead.
  369. //
  370. // Note: You must call the "Send" method on the returned request object in order
  371. // to execute the request.
  372. //
  373. // // Example sending a request using the CreateDeploymentRequest method.
  374. // req, resp := client.CreateDeploymentRequest(params)
  375. //
  376. // err := req.Send()
  377. // if err == nil { // resp is now filled
  378. // fmt.Println(resp)
  379. // }
  380. //
  381. func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
  382. op := &request.Operation{
  383. Name: opCreateDeployment,
  384. HTTPMethod: "POST",
  385. HTTPPath: "/",
  386. }
  387. if input == nil {
  388. input = &CreateDeploymentInput{}
  389. }
  390. req = c.newRequest(op, input, output)
  391. output = &CreateDeploymentOutput{}
  392. req.Data = output
  393. return
  394. }
  395. // Deploys an application revision through the specified deployment group.
  396. func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
  397. req, out := c.CreateDeploymentRequest(input)
  398. err := req.Send()
  399. return out, err
  400. }
  401. const opCreateDeploymentConfig = "CreateDeploymentConfig"
  402. // CreateDeploymentConfigRequest generates a "aws/request.Request" representing the
  403. // client's request for the CreateDeploymentConfig operation. The "output" return
  404. // value can be used to capture response data after the request's "Send" method
  405. // is called.
  406. //
  407. // Creating a request object using this method should be used when you want to inject
  408. // custom logic into the request's lifecycle using a custom handler, or if you want to
  409. // access properties on the request object before or after sending the request. If
  410. // you just want the service response, call the CreateDeploymentConfig method directly
  411. // instead.
  412. //
  413. // Note: You must call the "Send" method on the returned request object in order
  414. // to execute the request.
  415. //
  416. // // Example sending a request using the CreateDeploymentConfigRequest method.
  417. // req, resp := client.CreateDeploymentConfigRequest(params)
  418. //
  419. // err := req.Send()
  420. // if err == nil { // resp is now filled
  421. // fmt.Println(resp)
  422. // }
  423. //
  424. func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput) {
  425. op := &request.Operation{
  426. Name: opCreateDeploymentConfig,
  427. HTTPMethod: "POST",
  428. HTTPPath: "/",
  429. }
  430. if input == nil {
  431. input = &CreateDeploymentConfigInput{}
  432. }
  433. req = c.newRequest(op, input, output)
  434. output = &CreateDeploymentConfigOutput{}
  435. req.Data = output
  436. return
  437. }
  438. // Creates a deployment configuration.
  439. func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) {
  440. req, out := c.CreateDeploymentConfigRequest(input)
  441. err := req.Send()
  442. return out, err
  443. }
  444. const opCreateDeploymentGroup = "CreateDeploymentGroup"
  445. // CreateDeploymentGroupRequest generates a "aws/request.Request" representing the
  446. // client's request for the CreateDeploymentGroup operation. The "output" return
  447. // value can be used to capture response data after the request's "Send" method
  448. // is called.
  449. //
  450. // Creating a request object using this method should be used when you want to inject
  451. // custom logic into the request's lifecycle using a custom handler, or if you want to
  452. // access properties on the request object before or after sending the request. If
  453. // you just want the service response, call the CreateDeploymentGroup method directly
  454. // instead.
  455. //
  456. // Note: You must call the "Send" method on the returned request object in order
  457. // to execute the request.
  458. //
  459. // // Example sending a request using the CreateDeploymentGroupRequest method.
  460. // req, resp := client.CreateDeploymentGroupRequest(params)
  461. //
  462. // err := req.Send()
  463. // if err == nil { // resp is now filled
  464. // fmt.Println(resp)
  465. // }
  466. //
  467. func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput) {
  468. op := &request.Operation{
  469. Name: opCreateDeploymentGroup,
  470. HTTPMethod: "POST",
  471. HTTPPath: "/",
  472. }
  473. if input == nil {
  474. input = &CreateDeploymentGroupInput{}
  475. }
  476. req = c.newRequest(op, input, output)
  477. output = &CreateDeploymentGroupOutput{}
  478. req.Data = output
  479. return
  480. }
  481. // Creates a deployment group to which application revisions will be deployed.
  482. func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) {
  483. req, out := c.CreateDeploymentGroupRequest(input)
  484. err := req.Send()
  485. return out, err
  486. }
  487. const opDeleteApplication = "DeleteApplication"
  488. // DeleteApplicationRequest generates a "aws/request.Request" representing the
  489. // client's request for the DeleteApplication operation. The "output" return
  490. // value can be used to capture response data after the request's "Send" method
  491. // is called.
  492. //
  493. // Creating a request object using this method should be used when you want to inject
  494. // custom logic into the request's lifecycle using a custom handler, or if you want to
  495. // access properties on the request object before or after sending the request. If
  496. // you just want the service response, call the DeleteApplication method directly
  497. // instead.
  498. //
  499. // Note: You must call the "Send" method on the returned request object in order
  500. // to execute the request.
  501. //
  502. // // Example sending a request using the DeleteApplicationRequest method.
  503. // req, resp := client.DeleteApplicationRequest(params)
  504. //
  505. // err := req.Send()
  506. // if err == nil { // resp is now filled
  507. // fmt.Println(resp)
  508. // }
  509. //
  510. func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
  511. op := &request.Operation{
  512. Name: opDeleteApplication,
  513. HTTPMethod: "POST",
  514. HTTPPath: "/",
  515. }
  516. if input == nil {
  517. input = &DeleteApplicationInput{}
  518. }
  519. req = c.newRequest(op, input, output)
  520. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  521. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  522. output = &DeleteApplicationOutput{}
  523. req.Data = output
  524. return
  525. }
  526. // Deletes an application.
  527. func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
  528. req, out := c.DeleteApplicationRequest(input)
  529. err := req.Send()
  530. return out, err
  531. }
  532. const opDeleteDeploymentConfig = "DeleteDeploymentConfig"
  533. // DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the
  534. // client's request for the DeleteDeploymentConfig operation. The "output" return
  535. // value can be used to capture response data after the request's "Send" method
  536. // is called.
  537. //
  538. // Creating a request object using this method should be used when you want to inject
  539. // custom logic into the request's lifecycle using a custom handler, or if you want to
  540. // access properties on the request object before or after sending the request. If
  541. // you just want the service response, call the DeleteDeploymentConfig method directly
  542. // instead.
  543. //
  544. // Note: You must call the "Send" method on the returned request object in order
  545. // to execute the request.
  546. //
  547. // // Example sending a request using the DeleteDeploymentConfigRequest method.
  548. // req, resp := client.DeleteDeploymentConfigRequest(params)
  549. //
  550. // err := req.Send()
  551. // if err == nil { // resp is now filled
  552. // fmt.Println(resp)
  553. // }
  554. //
  555. func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput) {
  556. op := &request.Operation{
  557. Name: opDeleteDeploymentConfig,
  558. HTTPMethod: "POST",
  559. HTTPPath: "/",
  560. }
  561. if input == nil {
  562. input = &DeleteDeploymentConfigInput{}
  563. }
  564. req = c.newRequest(op, input, output)
  565. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  566. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  567. output = &DeleteDeploymentConfigOutput{}
  568. req.Data = output
  569. return
  570. }
  571. // Deletes a deployment configuration.
  572. //
  573. // A deployment configuration cannot be deleted if it is currently in use.
  574. // Predefined configurations cannot be deleted.
  575. func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) {
  576. req, out := c.DeleteDeploymentConfigRequest(input)
  577. err := req.Send()
  578. return out, err
  579. }
  580. const opDeleteDeploymentGroup = "DeleteDeploymentGroup"
  581. // DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the
  582. // client's request for the DeleteDeploymentGroup operation. The "output" return
  583. // value can be used to capture response data after the request's "Send" method
  584. // is called.
  585. //
  586. // Creating a request object using this method should be used when you want to inject
  587. // custom logic into the request's lifecycle using a custom handler, or if you want to
  588. // access properties on the request object before or after sending the request. If
  589. // you just want the service response, call the DeleteDeploymentGroup method directly
  590. // instead.
  591. //
  592. // Note: You must call the "Send" method on the returned request object in order
  593. // to execute the request.
  594. //
  595. // // Example sending a request using the DeleteDeploymentGroupRequest method.
  596. // req, resp := client.DeleteDeploymentGroupRequest(params)
  597. //
  598. // err := req.Send()
  599. // if err == nil { // resp is now filled
  600. // fmt.Println(resp)
  601. // }
  602. //
  603. func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput) {
  604. op := &request.Operation{
  605. Name: opDeleteDeploymentGroup,
  606. HTTPMethod: "POST",
  607. HTTPPath: "/",
  608. }
  609. if input == nil {
  610. input = &DeleteDeploymentGroupInput{}
  611. }
  612. req = c.newRequest(op, input, output)
  613. output = &DeleteDeploymentGroupOutput{}
  614. req.Data = output
  615. return
  616. }
  617. // Deletes a deployment group.
  618. func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) {
  619. req, out := c.DeleteDeploymentGroupRequest(input)
  620. err := req.Send()
  621. return out, err
  622. }
  623. const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance"
  624. // DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  625. // client's request for the DeregisterOnPremisesInstance operation. The "output" return
  626. // value can be used to capture response data after the request's "Send" method
  627. // is called.
  628. //
  629. // Creating a request object using this method should be used when you want to inject
  630. // custom logic into the request's lifecycle using a custom handler, or if you want to
  631. // access properties on the request object before or after sending the request. If
  632. // you just want the service response, call the DeregisterOnPremisesInstance method directly
  633. // instead.
  634. //
  635. // Note: You must call the "Send" method on the returned request object in order
  636. // to execute the request.
  637. //
  638. // // Example sending a request using the DeregisterOnPremisesInstanceRequest method.
  639. // req, resp := client.DeregisterOnPremisesInstanceRequest(params)
  640. //
  641. // err := req.Send()
  642. // if err == nil { // resp is now filled
  643. // fmt.Println(resp)
  644. // }
  645. //
  646. func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput) {
  647. op := &request.Operation{
  648. Name: opDeregisterOnPremisesInstance,
  649. HTTPMethod: "POST",
  650. HTTPPath: "/",
  651. }
  652. if input == nil {
  653. input = &DeregisterOnPremisesInstanceInput{}
  654. }
  655. req = c.newRequest(op, input, output)
  656. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  657. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  658. output = &DeregisterOnPremisesInstanceOutput{}
  659. req.Data = output
  660. return
  661. }
  662. // Deregisters an on-premises instance.
  663. func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) {
  664. req, out := c.DeregisterOnPremisesInstanceRequest(input)
  665. err := req.Send()
  666. return out, err
  667. }
  668. const opGetApplication = "GetApplication"
  669. // GetApplicationRequest generates a "aws/request.Request" representing the
  670. // client's request for the GetApplication operation. The "output" return
  671. // value can be used to capture response data after the request's "Send" method
  672. // is called.
  673. //
  674. // Creating a request object using this method should be used when you want to inject
  675. // custom logic into the request's lifecycle using a custom handler, or if you want to
  676. // access properties on the request object before or after sending the request. If
  677. // you just want the service response, call the GetApplication method directly
  678. // instead.
  679. //
  680. // Note: You must call the "Send" method on the returned request object in order
  681. // to execute the request.
  682. //
  683. // // Example sending a request using the GetApplicationRequest method.
  684. // req, resp := client.GetApplicationRequest(params)
  685. //
  686. // err := req.Send()
  687. // if err == nil { // resp is now filled
  688. // fmt.Println(resp)
  689. // }
  690. //
  691. func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) {
  692. op := &request.Operation{
  693. Name: opGetApplication,
  694. HTTPMethod: "POST",
  695. HTTPPath: "/",
  696. }
  697. if input == nil {
  698. input = &GetApplicationInput{}
  699. }
  700. req = c.newRequest(op, input, output)
  701. output = &GetApplicationOutput{}
  702. req.Data = output
  703. return
  704. }
  705. // Gets information about an application.
  706. func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
  707. req, out := c.GetApplicationRequest(input)
  708. err := req.Send()
  709. return out, err
  710. }
  711. const opGetApplicationRevision = "GetApplicationRevision"
  712. // GetApplicationRevisionRequest generates a "aws/request.Request" representing the
  713. // client's request for the GetApplicationRevision operation. The "output" return
  714. // value can be used to capture response data after the request's "Send" method
  715. // is called.
  716. //
  717. // Creating a request object using this method should be used when you want to inject
  718. // custom logic into the request's lifecycle using a custom handler, or if you want to
  719. // access properties on the request object before or after sending the request. If
  720. // you just want the service response, call the GetApplicationRevision method directly
  721. // instead.
  722. //
  723. // Note: You must call the "Send" method on the returned request object in order
  724. // to execute the request.
  725. //
  726. // // Example sending a request using the GetApplicationRevisionRequest method.
  727. // req, resp := client.GetApplicationRevisionRequest(params)
  728. //
  729. // err := req.Send()
  730. // if err == nil { // resp is now filled
  731. // fmt.Println(resp)
  732. // }
  733. //
  734. func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput) {
  735. op := &request.Operation{
  736. Name: opGetApplicationRevision,
  737. HTTPMethod: "POST",
  738. HTTPPath: "/",
  739. }
  740. if input == nil {
  741. input = &GetApplicationRevisionInput{}
  742. }
  743. req = c.newRequest(op, input, output)
  744. output = &GetApplicationRevisionOutput{}
  745. req.Data = output
  746. return
  747. }
  748. // Gets information about an application revision.
  749. func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) {
  750. req, out := c.GetApplicationRevisionRequest(input)
  751. err := req.Send()
  752. return out, err
  753. }
  754. const opGetDeployment = "GetDeployment"
  755. // GetDeploymentRequest generates a "aws/request.Request" representing the
  756. // client's request for the GetDeployment operation. The "output" return
  757. // value can be used to capture response data after the request's "Send" method
  758. // is called.
  759. //
  760. // Creating a request object using this method should be used when you want to inject
  761. // custom logic into the request's lifecycle using a custom handler, or if you want to
  762. // access properties on the request object before or after sending the request. If
  763. // you just want the service response, call the GetDeployment method directly
  764. // instead.
  765. //
  766. // Note: You must call the "Send" method on the returned request object in order
  767. // to execute the request.
  768. //
  769. // // Example sending a request using the GetDeploymentRequest method.
  770. // req, resp := client.GetDeploymentRequest(params)
  771. //
  772. // err := req.Send()
  773. // if err == nil { // resp is now filled
  774. // fmt.Println(resp)
  775. // }
  776. //
  777. func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) {
  778. op := &request.Operation{
  779. Name: opGetDeployment,
  780. HTTPMethod: "POST",
  781. HTTPPath: "/",
  782. }
  783. if input == nil {
  784. input = &GetDeploymentInput{}
  785. }
  786. req = c.newRequest(op, input, output)
  787. output = &GetDeploymentOutput{}
  788. req.Data = output
  789. return
  790. }
  791. // Gets information about a deployment.
  792. func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) {
  793. req, out := c.GetDeploymentRequest(input)
  794. err := req.Send()
  795. return out, err
  796. }
  797. const opGetDeploymentConfig = "GetDeploymentConfig"
  798. // GetDeploymentConfigRequest generates a "aws/request.Request" representing the
  799. // client's request for the GetDeploymentConfig operation. The "output" return
  800. // value can be used to capture response data after the request's "Send" method
  801. // is called.
  802. //
  803. // Creating a request object using this method should be used when you want to inject
  804. // custom logic into the request's lifecycle using a custom handler, or if you want to
  805. // access properties on the request object before or after sending the request. If
  806. // you just want the service response, call the GetDeploymentConfig method directly
  807. // instead.
  808. //
  809. // Note: You must call the "Send" method on the returned request object in order
  810. // to execute the request.
  811. //
  812. // // Example sending a request using the GetDeploymentConfigRequest method.
  813. // req, resp := client.GetDeploymentConfigRequest(params)
  814. //
  815. // err := req.Send()
  816. // if err == nil { // resp is now filled
  817. // fmt.Println(resp)
  818. // }
  819. //
  820. func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput) {
  821. op := &request.Operation{
  822. Name: opGetDeploymentConfig,
  823. HTTPMethod: "POST",
  824. HTTPPath: "/",
  825. }
  826. if input == nil {
  827. input = &GetDeploymentConfigInput{}
  828. }
  829. req = c.newRequest(op, input, output)
  830. output = &GetDeploymentConfigOutput{}
  831. req.Data = output
  832. return
  833. }
  834. // Gets information about a deployment configuration.
  835. func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) {
  836. req, out := c.GetDeploymentConfigRequest(input)
  837. err := req.Send()
  838. return out, err
  839. }
  840. const opGetDeploymentGroup = "GetDeploymentGroup"
  841. // GetDeploymentGroupRequest generates a "aws/request.Request" representing the
  842. // client's request for the GetDeploymentGroup operation. The "output" return
  843. // value can be used to capture response data after the request's "Send" method
  844. // is called.
  845. //
  846. // Creating a request object using this method should be used when you want to inject
  847. // custom logic into the request's lifecycle using a custom handler, or if you want to
  848. // access properties on the request object before or after sending the request. If
  849. // you just want the service response, call the GetDeploymentGroup method directly
  850. // instead.
  851. //
  852. // Note: You must call the "Send" method on the returned request object in order
  853. // to execute the request.
  854. //
  855. // // Example sending a request using the GetDeploymentGroupRequest method.
  856. // req, resp := client.GetDeploymentGroupRequest(params)
  857. //
  858. // err := req.Send()
  859. // if err == nil { // resp is now filled
  860. // fmt.Println(resp)
  861. // }
  862. //
  863. func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput) {
  864. op := &request.Operation{
  865. Name: opGetDeploymentGroup,
  866. HTTPMethod: "POST",
  867. HTTPPath: "/",
  868. }
  869. if input == nil {
  870. input = &GetDeploymentGroupInput{}
  871. }
  872. req = c.newRequest(op, input, output)
  873. output = &GetDeploymentGroupOutput{}
  874. req.Data = output
  875. return
  876. }
  877. // Gets information about a deployment group.
  878. func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) {
  879. req, out := c.GetDeploymentGroupRequest(input)
  880. err := req.Send()
  881. return out, err
  882. }
  883. const opGetDeploymentInstance = "GetDeploymentInstance"
  884. // GetDeploymentInstanceRequest generates a "aws/request.Request" representing the
  885. // client's request for the GetDeploymentInstance operation. The "output" return
  886. // value can be used to capture response data after the request's "Send" method
  887. // is called.
  888. //
  889. // Creating a request object using this method should be used when you want to inject
  890. // custom logic into the request's lifecycle using a custom handler, or if you want to
  891. // access properties on the request object before or after sending the request. If
  892. // you just want the service response, call the GetDeploymentInstance method directly
  893. // instead.
  894. //
  895. // Note: You must call the "Send" method on the returned request object in order
  896. // to execute the request.
  897. //
  898. // // Example sending a request using the GetDeploymentInstanceRequest method.
  899. // req, resp := client.GetDeploymentInstanceRequest(params)
  900. //
  901. // err := req.Send()
  902. // if err == nil { // resp is now filled
  903. // fmt.Println(resp)
  904. // }
  905. //
  906. func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) {
  907. op := &request.Operation{
  908. Name: opGetDeploymentInstance,
  909. HTTPMethod: "POST",
  910. HTTPPath: "/",
  911. }
  912. if input == nil {
  913. input = &GetDeploymentInstanceInput{}
  914. }
  915. req = c.newRequest(op, input, output)
  916. output = &GetDeploymentInstanceOutput{}
  917. req.Data = output
  918. return
  919. }
  920. // Gets information about an instance as part of a deployment.
  921. func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) {
  922. req, out := c.GetDeploymentInstanceRequest(input)
  923. err := req.Send()
  924. return out, err
  925. }
  926. const opGetOnPremisesInstance = "GetOnPremisesInstance"
  927. // GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  928. // client's request for the GetOnPremisesInstance operation. The "output" return
  929. // value can be used to capture response data after the request's "Send" method
  930. // is called.
  931. //
  932. // Creating a request object using this method should be used when you want to inject
  933. // custom logic into the request's lifecycle using a custom handler, or if you want to
  934. // access properties on the request object before or after sending the request. If
  935. // you just want the service response, call the GetOnPremisesInstance method directly
  936. // instead.
  937. //
  938. // Note: You must call the "Send" method on the returned request object in order
  939. // to execute the request.
  940. //
  941. // // Example sending a request using the GetOnPremisesInstanceRequest method.
  942. // req, resp := client.GetOnPremisesInstanceRequest(params)
  943. //
  944. // err := req.Send()
  945. // if err == nil { // resp is now filled
  946. // fmt.Println(resp)
  947. // }
  948. //
  949. func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput) {
  950. op := &request.Operation{
  951. Name: opGetOnPremisesInstance,
  952. HTTPMethod: "POST",
  953. HTTPPath: "/",
  954. }
  955. if input == nil {
  956. input = &GetOnPremisesInstanceInput{}
  957. }
  958. req = c.newRequest(op, input, output)
  959. output = &GetOnPremisesInstanceOutput{}
  960. req.Data = output
  961. return
  962. }
  963. // Gets information about an on-premises instance.
  964. func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) {
  965. req, out := c.GetOnPremisesInstanceRequest(input)
  966. err := req.Send()
  967. return out, err
  968. }
  969. const opListApplicationRevisions = "ListApplicationRevisions"
  970. // ListApplicationRevisionsRequest generates a "aws/request.Request" representing the
  971. // client's request for the ListApplicationRevisions operation. The "output" return
  972. // value can be used to capture response data after the request's "Send" method
  973. // is called.
  974. //
  975. // Creating a request object using this method should be used when you want to inject
  976. // custom logic into the request's lifecycle using a custom handler, or if you want to
  977. // access properties on the request object before or after sending the request. If
  978. // you just want the service response, call the ListApplicationRevisions method directly
  979. // instead.
  980. //
  981. // Note: You must call the "Send" method on the returned request object in order
  982. // to execute the request.
  983. //
  984. // // Example sending a request using the ListApplicationRevisionsRequest method.
  985. // req, resp := client.ListApplicationRevisionsRequest(params)
  986. //
  987. // err := req.Send()
  988. // if err == nil { // resp is now filled
  989. // fmt.Println(resp)
  990. // }
  991. //
  992. func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput) {
  993. op := &request.Operation{
  994. Name: opListApplicationRevisions,
  995. HTTPMethod: "POST",
  996. HTTPPath: "/",
  997. Paginator: &request.Paginator{
  998. InputTokens: []string{"nextToken"},
  999. OutputTokens: []string{"nextToken"},
  1000. LimitToken: "",
  1001. TruncationToken: "",
  1002. },
  1003. }
  1004. if input == nil {
  1005. input = &ListApplicationRevisionsInput{}
  1006. }
  1007. req = c.newRequest(op, input, output)
  1008. output = &ListApplicationRevisionsOutput{}
  1009. req.Data = output
  1010. return
  1011. }
  1012. // Lists information about revisions for an application.
  1013. func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) {
  1014. req, out := c.ListApplicationRevisionsRequest(input)
  1015. err := req.Send()
  1016. return out, err
  1017. }
  1018. // ListApplicationRevisionsPages iterates over the pages of a ListApplicationRevisions operation,
  1019. // calling the "fn" function with the response data for each page. To stop
  1020. // iterating, return false from the fn function.
  1021. //
  1022. // See ListApplicationRevisions method for more information on how to use this operation.
  1023. //
  1024. // Note: This operation can generate multiple requests to a service.
  1025. //
  1026. // // Example iterating over at most 3 pages of a ListApplicationRevisions operation.
  1027. // pageNum := 0
  1028. // err := client.ListApplicationRevisionsPages(params,
  1029. // func(page *ListApplicationRevisionsOutput, lastPage bool) bool {
  1030. // pageNum++
  1031. // fmt.Println(page)
  1032. // return pageNum <= 3
  1033. // })
  1034. //
  1035. func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(p *ListApplicationRevisionsOutput, lastPage bool) (shouldContinue bool)) error {
  1036. page, _ := c.ListApplicationRevisionsRequest(input)
  1037. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1038. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1039. return fn(p.(*ListApplicationRevisionsOutput), lastPage)
  1040. })
  1041. }
  1042. const opListApplications = "ListApplications"
  1043. // ListApplicationsRequest generates a "aws/request.Request" representing the
  1044. // client's request for the ListApplications operation. The "output" return
  1045. // value can be used to capture response data after the request's "Send" method
  1046. // is called.
  1047. //
  1048. // Creating a request object using this method should be used when you want to inject
  1049. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1050. // access properties on the request object before or after sending the request. If
  1051. // you just want the service response, call the ListApplications method directly
  1052. // instead.
  1053. //
  1054. // Note: You must call the "Send" method on the returned request object in order
  1055. // to execute the request.
  1056. //
  1057. // // Example sending a request using the ListApplicationsRequest method.
  1058. // req, resp := client.ListApplicationsRequest(params)
  1059. //
  1060. // err := req.Send()
  1061. // if err == nil { // resp is now filled
  1062. // fmt.Println(resp)
  1063. // }
  1064. //
  1065. func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
  1066. op := &request.Operation{
  1067. Name: opListApplications,
  1068. HTTPMethod: "POST",
  1069. HTTPPath: "/",
  1070. Paginator: &request.Paginator{
  1071. InputTokens: []string{"nextToken"},
  1072. OutputTokens: []string{"nextToken"},
  1073. LimitToken: "",
  1074. TruncationToken: "",
  1075. },
  1076. }
  1077. if input == nil {
  1078. input = &ListApplicationsInput{}
  1079. }
  1080. req = c.newRequest(op, input, output)
  1081. output = &ListApplicationsOutput{}
  1082. req.Data = output
  1083. return
  1084. }
  1085. // Lists the applications registered with the applicable IAM user or AWS account.
  1086. func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
  1087. req, out := c.ListApplicationsRequest(input)
  1088. err := req.Send()
  1089. return out, err
  1090. }
  1091. // ListApplicationsPages iterates over the pages of a ListApplications operation,
  1092. // calling the "fn" function with the response data for each page. To stop
  1093. // iterating, return false from the fn function.
  1094. //
  1095. // See ListApplications method for more information on how to use this operation.
  1096. //
  1097. // Note: This operation can generate multiple requests to a service.
  1098. //
  1099. // // Example iterating over at most 3 pages of a ListApplications operation.
  1100. // pageNum := 0
  1101. // err := client.ListApplicationsPages(params,
  1102. // func(page *ListApplicationsOutput, lastPage bool) bool {
  1103. // pageNum++
  1104. // fmt.Println(page)
  1105. // return pageNum <= 3
  1106. // })
  1107. //
  1108. func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(p *ListApplicationsOutput, lastPage bool) (shouldContinue bool)) error {
  1109. page, _ := c.ListApplicationsRequest(input)
  1110. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1111. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1112. return fn(p.(*ListApplicationsOutput), lastPage)
  1113. })
  1114. }
  1115. const opListDeploymentConfigs = "ListDeploymentConfigs"
  1116. // ListDeploymentConfigsRequest generates a "aws/request.Request" representing the
  1117. // client's request for the ListDeploymentConfigs operation. The "output" return
  1118. // value can be used to capture response data after the request's "Send" method
  1119. // is called.
  1120. //
  1121. // Creating a request object using this method should be used when you want to inject
  1122. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1123. // access properties on the request object before or after sending the request. If
  1124. // you just want the service response, call the ListDeploymentConfigs method directly
  1125. // instead.
  1126. //
  1127. // Note: You must call the "Send" method on the returned request object in order
  1128. // to execute the request.
  1129. //
  1130. // // Example sending a request using the ListDeploymentConfigsRequest method.
  1131. // req, resp := client.ListDeploymentConfigsRequest(params)
  1132. //
  1133. // err := req.Send()
  1134. // if err == nil { // resp is now filled
  1135. // fmt.Println(resp)
  1136. // }
  1137. //
  1138. func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput) {
  1139. op := &request.Operation{
  1140. Name: opListDeploymentConfigs,
  1141. HTTPMethod: "POST",
  1142. HTTPPath: "/",
  1143. Paginator: &request.Paginator{
  1144. InputTokens: []string{"nextToken"},
  1145. OutputTokens: []string{"nextToken"},
  1146. LimitToken: "",
  1147. TruncationToken: "",
  1148. },
  1149. }
  1150. if input == nil {
  1151. input = &ListDeploymentConfigsInput{}
  1152. }
  1153. req = c.newRequest(op, input, output)
  1154. output = &ListDeploymentConfigsOutput{}
  1155. req.Data = output
  1156. return
  1157. }
  1158. // Lists the deployment configurations with the applicable IAM user or AWS account.
  1159. func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) {
  1160. req, out := c.ListDeploymentConfigsRequest(input)
  1161. err := req.Send()
  1162. return out, err
  1163. }
  1164. // ListDeploymentConfigsPages iterates over the pages of a ListDeploymentConfigs operation,
  1165. // calling the "fn" function with the response data for each page. To stop
  1166. // iterating, return false from the fn function.
  1167. //
  1168. // See ListDeploymentConfigs method for more information on how to use this operation.
  1169. //
  1170. // Note: This operation can generate multiple requests to a service.
  1171. //
  1172. // // Example iterating over at most 3 pages of a ListDeploymentConfigs operation.
  1173. // pageNum := 0
  1174. // err := client.ListDeploymentConfigsPages(params,
  1175. // func(page *ListDeploymentConfigsOutput, lastPage bool) bool {
  1176. // pageNum++
  1177. // fmt.Println(page)
  1178. // return pageNum <= 3
  1179. // })
  1180. //
  1181. func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(p *ListDeploymentConfigsOutput, lastPage bool) (shouldContinue bool)) error {
  1182. page, _ := c.ListDeploymentConfigsRequest(input)
  1183. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1184. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1185. return fn(p.(*ListDeploymentConfigsOutput), lastPage)
  1186. })
  1187. }
  1188. const opListDeploymentGroups = "ListDeploymentGroups"
  1189. // ListDeploymentGroupsRequest generates a "aws/request.Request" representing the
  1190. // client's request for the ListDeploymentGroups operation. The "output" return
  1191. // value can be used to capture response data after the request's "Send" method
  1192. // is called.
  1193. //
  1194. // Creating a request object using this method should be used when you want to inject
  1195. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1196. // access properties on the request object before or after sending the request. If
  1197. // you just want the service response, call the ListDeploymentGroups method directly
  1198. // instead.
  1199. //
  1200. // Note: You must call the "Send" method on the returned request object in order
  1201. // to execute the request.
  1202. //
  1203. // // Example sending a request using the ListDeploymentGroupsRequest method.
  1204. // req, resp := client.ListDeploymentGroupsRequest(params)
  1205. //
  1206. // err := req.Send()
  1207. // if err == nil { // resp is now filled
  1208. // fmt.Println(resp)
  1209. // }
  1210. //
  1211. func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput) {
  1212. op := &request.Operation{
  1213. Name: opListDeploymentGroups,
  1214. HTTPMethod: "POST",
  1215. HTTPPath: "/",
  1216. Paginator: &request.Paginator{
  1217. InputTokens: []string{"nextToken"},
  1218. OutputTokens: []string{"nextToken"},
  1219. LimitToken: "",
  1220. TruncationToken: "",
  1221. },
  1222. }
  1223. if input == nil {
  1224. input = &ListDeploymentGroupsInput{}
  1225. }
  1226. req = c.newRequest(op, input, output)
  1227. output = &ListDeploymentGroupsOutput{}
  1228. req.Data = output
  1229. return
  1230. }
  1231. // Lists the deployment groups for an application registered with the applicable
  1232. // IAM user or AWS account.
  1233. func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) {
  1234. req, out := c.ListDeploymentGroupsRequest(input)
  1235. err := req.Send()
  1236. return out, err
  1237. }
  1238. // ListDeploymentGroupsPages iterates over the pages of a ListDeploymentGroups operation,
  1239. // calling the "fn" function with the response data for each page. To stop
  1240. // iterating, return false from the fn function.
  1241. //
  1242. // See ListDeploymentGroups method for more information on how to use this operation.
  1243. //
  1244. // Note: This operation can generate multiple requests to a service.
  1245. //
  1246. // // Example iterating over at most 3 pages of a ListDeploymentGroups operation.
  1247. // pageNum := 0
  1248. // err := client.ListDeploymentGroupsPages(params,
  1249. // func(page *ListDeploymentGroupsOutput, lastPage bool) bool {
  1250. // pageNum++
  1251. // fmt.Println(page)
  1252. // return pageNum <= 3
  1253. // })
  1254. //
  1255. func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(p *ListDeploymentGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  1256. page, _ := c.ListDeploymentGroupsRequest(input)
  1257. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1258. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1259. return fn(p.(*ListDeploymentGroupsOutput), lastPage)
  1260. })
  1261. }
  1262. const opListDeploymentInstances = "ListDeploymentInstances"
  1263. // ListDeploymentInstancesRequest generates a "aws/request.Request" representing the
  1264. // client's request for the ListDeploymentInstances operation. The "output" return
  1265. // value can be used to capture response data after the request's "Send" method
  1266. // is called.
  1267. //
  1268. // Creating a request object using this method should be used when you want to inject
  1269. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1270. // access properties on the request object before or after sending the request. If
  1271. // you just want the service response, call the ListDeploymentInstances method directly
  1272. // instead.
  1273. //
  1274. // Note: You must call the "Send" method on the returned request object in order
  1275. // to execute the request.
  1276. //
  1277. // // Example sending a request using the ListDeploymentInstancesRequest method.
  1278. // req, resp := client.ListDeploymentInstancesRequest(params)
  1279. //
  1280. // err := req.Send()
  1281. // if err == nil { // resp is now filled
  1282. // fmt.Println(resp)
  1283. // }
  1284. //
  1285. func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) {
  1286. op := &request.Operation{
  1287. Name: opListDeploymentInstances,
  1288. HTTPMethod: "POST",
  1289. HTTPPath: "/",
  1290. Paginator: &request.Paginator{
  1291. InputTokens: []string{"nextToken"},
  1292. OutputTokens: []string{"nextToken"},
  1293. LimitToken: "",
  1294. TruncationToken: "",
  1295. },
  1296. }
  1297. if input == nil {
  1298. input = &ListDeploymentInstancesInput{}
  1299. }
  1300. req = c.newRequest(op, input, output)
  1301. output = &ListDeploymentInstancesOutput{}
  1302. req.Data = output
  1303. return
  1304. }
  1305. // Lists the instance for a deployment associated with the applicable IAM user
  1306. // or AWS account.
  1307. func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) {
  1308. req, out := c.ListDeploymentInstancesRequest(input)
  1309. err := req.Send()
  1310. return out, err
  1311. }
  1312. // ListDeploymentInstancesPages iterates over the pages of a ListDeploymentInstances operation,
  1313. // calling the "fn" function with the response data for each page. To stop
  1314. // iterating, return false from the fn function.
  1315. //
  1316. // See ListDeploymentInstances method for more information on how to use this operation.
  1317. //
  1318. // Note: This operation can generate multiple requests to a service.
  1319. //
  1320. // // Example iterating over at most 3 pages of a ListDeploymentInstances operation.
  1321. // pageNum := 0
  1322. // err := client.ListDeploymentInstancesPages(params,
  1323. // func(page *ListDeploymentInstancesOutput, lastPage bool) bool {
  1324. // pageNum++
  1325. // fmt.Println(page)
  1326. // return pageNum <= 3
  1327. // })
  1328. //
  1329. func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(p *ListDeploymentInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  1330. page, _ := c.ListDeploymentInstancesRequest(input)
  1331. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1332. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1333. return fn(p.(*ListDeploymentInstancesOutput), lastPage)
  1334. })
  1335. }
  1336. const opListDeployments = "ListDeployments"
  1337. // ListDeploymentsRequest generates a "aws/request.Request" representing the
  1338. // client's request for the ListDeployments operation. The "output" return
  1339. // value can be used to capture response data after the request's "Send" method
  1340. // is called.
  1341. //
  1342. // Creating a request object using this method should be used when you want to inject
  1343. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1344. // access properties on the request object before or after sending the request. If
  1345. // you just want the service response, call the ListDeployments method directly
  1346. // instead.
  1347. //
  1348. // Note: You must call the "Send" method on the returned request object in order
  1349. // to execute the request.
  1350. //
  1351. // // Example sending a request using the ListDeploymentsRequest method.
  1352. // req, resp := client.ListDeploymentsRequest(params)
  1353. //
  1354. // err := req.Send()
  1355. // if err == nil { // resp is now filled
  1356. // fmt.Println(resp)
  1357. // }
  1358. //
  1359. func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) {
  1360. op := &request.Operation{
  1361. Name: opListDeployments,
  1362. HTTPMethod: "POST",
  1363. HTTPPath: "/",
  1364. Paginator: &request.Paginator{
  1365. InputTokens: []string{"nextToken"},
  1366. OutputTokens: []string{"nextToken"},
  1367. LimitToken: "",
  1368. TruncationToken: "",
  1369. },
  1370. }
  1371. if input == nil {
  1372. input = &ListDeploymentsInput{}
  1373. }
  1374. req = c.newRequest(op, input, output)
  1375. output = &ListDeploymentsOutput{}
  1376. req.Data = output
  1377. return
  1378. }
  1379. // Lists the deployments in a deployment group for an application registered
  1380. // with the applicable IAM user or AWS account.
  1381. func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) {
  1382. req, out := c.ListDeploymentsRequest(input)
  1383. err := req.Send()
  1384. return out, err
  1385. }
  1386. // ListDeploymentsPages iterates over the pages of a ListDeployments operation,
  1387. // calling the "fn" function with the response data for each page. To stop
  1388. // iterating, return false from the fn function.
  1389. //
  1390. // See ListDeployments method for more information on how to use this operation.
  1391. //
  1392. // Note: This operation can generate multiple requests to a service.
  1393. //
  1394. // // Example iterating over at most 3 pages of a ListDeployments operation.
  1395. // pageNum := 0
  1396. // err := client.ListDeploymentsPages(params,
  1397. // func(page *ListDeploymentsOutput, lastPage bool) bool {
  1398. // pageNum++
  1399. // fmt.Println(page)
  1400. // return pageNum <= 3
  1401. // })
  1402. //
  1403. func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(p *ListDeploymentsOutput, lastPage bool) (shouldContinue bool)) error {
  1404. page, _ := c.ListDeploymentsRequest(input)
  1405. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1406. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1407. return fn(p.(*ListDeploymentsOutput), lastPage)
  1408. })
  1409. }
  1410. const opListOnPremisesInstances = "ListOnPremisesInstances"
  1411. // ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  1412. // client's request for the ListOnPremisesInstances operation. The "output" return
  1413. // value can be used to capture response data after the request's "Send" method
  1414. // is called.
  1415. //
  1416. // Creating a request object using this method should be used when you want to inject
  1417. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1418. // access properties on the request object before or after sending the request. If
  1419. // you just want the service response, call the ListOnPremisesInstances method directly
  1420. // instead.
  1421. //
  1422. // Note: You must call the "Send" method on the returned request object in order
  1423. // to execute the request.
  1424. //
  1425. // // Example sending a request using the ListOnPremisesInstancesRequest method.
  1426. // req, resp := client.ListOnPremisesInstancesRequest(params)
  1427. //
  1428. // err := req.Send()
  1429. // if err == nil { // resp is now filled
  1430. // fmt.Println(resp)
  1431. // }
  1432. //
  1433. func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput) {
  1434. op := &request.Operation{
  1435. Name: opListOnPremisesInstances,
  1436. HTTPMethod: "POST",
  1437. HTTPPath: "/",
  1438. }
  1439. if input == nil {
  1440. input = &ListOnPremisesInstancesInput{}
  1441. }
  1442. req = c.newRequest(op, input, output)
  1443. output = &ListOnPremisesInstancesOutput{}
  1444. req.Data = output
  1445. return
  1446. }
  1447. // Gets a list of names for one or more on-premises instances.
  1448. //
  1449. // Unless otherwise specified, both registered and deregistered on-premises
  1450. // instance names will be listed. To list only registered or deregistered on-premises
  1451. // instance names, use the registration status parameter.
  1452. func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) {
  1453. req, out := c.ListOnPremisesInstancesRequest(input)
  1454. err := req.Send()
  1455. return out, err
  1456. }
  1457. const opRegisterApplicationRevision = "RegisterApplicationRevision"
  1458. // RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the
  1459. // client's request for the RegisterApplicationRevision operation. The "output" return
  1460. // value can be used to capture response data after the request's "Send" method
  1461. // is called.
  1462. //
  1463. // Creating a request object using this method should be used when you want to inject
  1464. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1465. // access properties on the request object before or after sending the request. If
  1466. // you just want the service response, call the RegisterApplicationRevision method directly
  1467. // instead.
  1468. //
  1469. // Note: You must call the "Send" method on the returned request object in order
  1470. // to execute the request.
  1471. //
  1472. // // Example sending a request using the RegisterApplicationRevisionRequest method.
  1473. // req, resp := client.RegisterApplicationRevisionRequest(params)
  1474. //
  1475. // err := req.Send()
  1476. // if err == nil { // resp is now filled
  1477. // fmt.Println(resp)
  1478. // }
  1479. //
  1480. func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput) {
  1481. op := &request.Operation{
  1482. Name: opRegisterApplicationRevision,
  1483. HTTPMethod: "POST",
  1484. HTTPPath: "/",
  1485. }
  1486. if input == nil {
  1487. input = &RegisterApplicationRevisionInput{}
  1488. }
  1489. req = c.newRequest(op, input, output)
  1490. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1491. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1492. output = &RegisterApplicationRevisionOutput{}
  1493. req.Data = output
  1494. return
  1495. }
  1496. // Registers with AWS CodeDeploy a revision for the specified application.
  1497. func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) {
  1498. req, out := c.RegisterApplicationRevisionRequest(input)
  1499. err := req.Send()
  1500. return out, err
  1501. }
  1502. const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance"
  1503. // RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the
  1504. // client's request for the RegisterOnPremisesInstance operation. The "output" return
  1505. // value can be used to capture response data after the request's "Send" method
  1506. // is called.
  1507. //
  1508. // Creating a request object using this method should be used when you want to inject
  1509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1510. // access properties on the request object before or after sending the request. If
  1511. // you just want the service response, call the RegisterOnPremisesInstance method directly
  1512. // instead.
  1513. //
  1514. // Note: You must call the "Send" method on the returned request object in order
  1515. // to execute the request.
  1516. //
  1517. // // Example sending a request using the RegisterOnPremisesInstanceRequest method.
  1518. // req, resp := client.RegisterOnPremisesInstanceRequest(params)
  1519. //
  1520. // err := req.Send()
  1521. // if err == nil { // resp is now filled
  1522. // fmt.Println(resp)
  1523. // }
  1524. //
  1525. func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput) {
  1526. op := &request.Operation{
  1527. Name: opRegisterOnPremisesInstance,
  1528. HTTPMethod: "POST",
  1529. HTTPPath: "/",
  1530. }
  1531. if input == nil {
  1532. input = &RegisterOnPremisesInstanceInput{}
  1533. }
  1534. req = c.newRequest(op, input, output)
  1535. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1536. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1537. output = &RegisterOnPremisesInstanceOutput{}
  1538. req.Data = output
  1539. return
  1540. }
  1541. // Registers an on-premises instance.
  1542. func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) {
  1543. req, out := c.RegisterOnPremisesInstanceRequest(input)
  1544. err := req.Send()
  1545. return out, err
  1546. }
  1547. const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances"
  1548. // RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the
  1549. // client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return
  1550. // value can be used to capture response data after the request's "Send" method
  1551. // is called.
  1552. //
  1553. // Creating a request object using this method should be used when you want to inject
  1554. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1555. // access properties on the request object before or after sending the request. If
  1556. // you just want the service response, call the RemoveTagsFromOnPremisesInstances method directly
  1557. // instead.
  1558. //
  1559. // Note: You must call the "Send" method on the returned request object in order
  1560. // to execute the request.
  1561. //
  1562. // // Example sending a request using the RemoveTagsFromOnPremisesInstancesRequest method.
  1563. // req, resp := client.RemoveTagsFromOnPremisesInstancesRequest(params)
  1564. //
  1565. // err := req.Send()
  1566. // if err == nil { // resp is now filled
  1567. // fmt.Println(resp)
  1568. // }
  1569. //
  1570. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput) {
  1571. op := &request.Operation{
  1572. Name: opRemoveTagsFromOnPremisesInstances,
  1573. HTTPMethod: "POST",
  1574. HTTPPath: "/",
  1575. }
  1576. if input == nil {
  1577. input = &RemoveTagsFromOnPremisesInstancesInput{}
  1578. }
  1579. req = c.newRequest(op, input, output)
  1580. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1581. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1582. output = &RemoveTagsFromOnPremisesInstancesOutput{}
  1583. req.Data = output
  1584. return
  1585. }
  1586. // Removes one or more tags from one or more on-premises instances.
  1587. func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) {
  1588. req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input)
  1589. err := req.Send()
  1590. return out, err
  1591. }
  1592. const opStopDeployment = "StopDeployment"
  1593. // StopDeploymentRequest generates a "aws/request.Request" representing the
  1594. // client's request for the StopDeployment operation. The "output" return
  1595. // value can be used to capture response data after the request's "Send" method
  1596. // is called.
  1597. //
  1598. // Creating a request object using this method should be used when you want to inject
  1599. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1600. // access properties on the request object before or after sending the request. If
  1601. // you just want the service response, call the StopDeployment method directly
  1602. // instead.
  1603. //
  1604. // Note: You must call the "Send" method on the returned request object in order
  1605. // to execute the request.
  1606. //
  1607. // // Example sending a request using the StopDeploymentRequest method.
  1608. // req, resp := client.StopDeploymentRequest(params)
  1609. //
  1610. // err := req.Send()
  1611. // if err == nil { // resp is now filled
  1612. // fmt.Println(resp)
  1613. // }
  1614. //
  1615. func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) {
  1616. op := &request.Operation{
  1617. Name: opStopDeployment,
  1618. HTTPMethod: "POST",
  1619. HTTPPath: "/",
  1620. }
  1621. if input == nil {
  1622. input = &StopDeploymentInput{}
  1623. }
  1624. req = c.newRequest(op, input, output)
  1625. output = &StopDeploymentOutput{}
  1626. req.Data = output
  1627. return
  1628. }
  1629. // Attempts to stop an ongoing deployment.
  1630. func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) {
  1631. req, out := c.StopDeploymentRequest(input)
  1632. err := req.Send()
  1633. return out, err
  1634. }
  1635. const opUpdateApplication = "UpdateApplication"
  1636. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  1637. // client's request for the UpdateApplication operation. The "output" return
  1638. // value can be used to capture response data after the request's "Send" method
  1639. // is called.
  1640. //
  1641. // Creating a request object using this method should be used when you want to inject
  1642. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1643. // access properties on the request object before or after sending the request. If
  1644. // you just want the service response, call the UpdateApplication method directly
  1645. // instead.
  1646. //
  1647. // Note: You must call the "Send" method on the returned request object in order
  1648. // to execute the request.
  1649. //
  1650. // // Example sending a request using the UpdateApplicationRequest method.
  1651. // req, resp := client.UpdateApplicationRequest(params)
  1652. //
  1653. // err := req.Send()
  1654. // if err == nil { // resp is now filled
  1655. // fmt.Println(resp)
  1656. // }
  1657. //
  1658. func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
  1659. op := &request.Operation{
  1660. Name: opUpdateApplication,
  1661. HTTPMethod: "POST",
  1662. HTTPPath: "/",
  1663. }
  1664. if input == nil {
  1665. input = &UpdateApplicationInput{}
  1666. }
  1667. req = c.newRequest(op, input, output)
  1668. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1669. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1670. output = &UpdateApplicationOutput{}
  1671. req.Data = output
  1672. return
  1673. }
  1674. // Changes the name of an application.
  1675. func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
  1676. req, out := c.UpdateApplicationRequest(input)
  1677. err := req.Send()
  1678. return out, err
  1679. }
  1680. const opUpdateDeploymentGroup = "UpdateDeploymentGroup"
  1681. // UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the
  1682. // client's request for the UpdateDeploymentGroup operation. The "output" return
  1683. // value can be used to capture response data after the request's "Send" method
  1684. // is called.
  1685. //
  1686. // Creating a request object using this method should be used when you want to inject
  1687. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1688. // access properties on the request object before or after sending the request. If
  1689. // you just want the service response, call the UpdateDeploymentGroup method directly
  1690. // instead.
  1691. //
  1692. // Note: You must call the "Send" method on the returned request object in order
  1693. // to execute the request.
  1694. //
  1695. // // Example sending a request using the UpdateDeploymentGroupRequest method.
  1696. // req, resp := client.UpdateDeploymentGroupRequest(params)
  1697. //
  1698. // err := req.Send()
  1699. // if err == nil { // resp is now filled
  1700. // fmt.Println(resp)
  1701. // }
  1702. //
  1703. func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput) {
  1704. op := &request.Operation{
  1705. Name: opUpdateDeploymentGroup,
  1706. HTTPMethod: "POST",
  1707. HTTPPath: "/",
  1708. }
  1709. if input == nil {
  1710. input = &UpdateDeploymentGroupInput{}
  1711. }
  1712. req = c.newRequest(op, input, output)
  1713. output = &UpdateDeploymentGroupOutput{}
  1714. req.Data = output
  1715. return
  1716. }
  1717. // Changes information about a deployment group.
  1718. func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) {
  1719. req, out := c.UpdateDeploymentGroupRequest(input)
  1720. err := req.Send()
  1721. return out, err
  1722. }
  1723. // Represents the input of, and adds tags to, an on-premises instance operation.
  1724. type AddTagsToOnPremisesInstancesInput struct {
  1725. _ struct{} `type:"structure"`
  1726. // The names of the on-premises instances to which to add tags.
  1727. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  1728. // The tag key-value pairs to add to the on-premises instances.
  1729. //
  1730. // Keys and values are both required. Keys cannot be null or empty strings.
  1731. // Value-only tags are not allowed.
  1732. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  1733. }
  1734. // String returns the string representation
  1735. func (s AddTagsToOnPremisesInstancesInput) String() string {
  1736. return awsutil.Prettify(s)
  1737. }
  1738. // GoString returns the string representation
  1739. func (s AddTagsToOnPremisesInstancesInput) GoString() string {
  1740. return s.String()
  1741. }
  1742. // Validate inspects the fields of the type to determine if they are valid.
  1743. func (s *AddTagsToOnPremisesInstancesInput) Validate() error {
  1744. invalidParams := request.ErrInvalidParams{Context: "AddTagsToOnPremisesInstancesInput"}
  1745. if s.InstanceNames == nil {
  1746. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  1747. }
  1748. if s.Tags == nil {
  1749. invalidParams.Add(request.NewErrParamRequired("Tags"))
  1750. }
  1751. if invalidParams.Len() > 0 {
  1752. return invalidParams
  1753. }
  1754. return nil
  1755. }
  1756. type AddTagsToOnPremisesInstancesOutput struct {
  1757. _ struct{} `type:"structure"`
  1758. }
  1759. // String returns the string representation
  1760. func (s AddTagsToOnPremisesInstancesOutput) String() string {
  1761. return awsutil.Prettify(s)
  1762. }
  1763. // GoString returns the string representation
  1764. func (s AddTagsToOnPremisesInstancesOutput) GoString() string {
  1765. return s.String()
  1766. }
  1767. // Information about an application.
  1768. type ApplicationInfo struct {
  1769. _ struct{} `type:"structure"`
  1770. // The application ID.
  1771. ApplicationId *string `locationName:"applicationId" type:"string"`
  1772. // The application name.
  1773. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  1774. // The time at which the application was created.
  1775. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
  1776. // True if the user has authenticated with GitHub for the specified application;
  1777. // otherwise, false.
  1778. LinkedToGitHub *bool `locationName:"linkedToGitHub" type:"boolean"`
  1779. }
  1780. // String returns the string representation
  1781. func (s ApplicationInfo) String() string {
  1782. return awsutil.Prettify(s)
  1783. }
  1784. // GoString returns the string representation
  1785. func (s ApplicationInfo) GoString() string {
  1786. return s.String()
  1787. }
  1788. // Information about an Auto Scaling group.
  1789. type AutoScalingGroup struct {
  1790. _ struct{} `type:"structure"`
  1791. // An Auto Scaling lifecycle event hook name.
  1792. Hook *string `locationName:"hook" type:"string"`
  1793. // The Auto Scaling group name.
  1794. Name *string `locationName:"name" type:"string"`
  1795. }
  1796. // String returns the string representation
  1797. func (s AutoScalingGroup) String() string {
  1798. return awsutil.Prettify(s)
  1799. }
  1800. // GoString returns the string representation
  1801. func (s AutoScalingGroup) GoString() string {
  1802. return s.String()
  1803. }
  1804. // Represents the input of a batch get application revisions operation.
  1805. type BatchGetApplicationRevisionsInput struct {
  1806. _ struct{} `type:"structure"`
  1807. // The name of an AWS CodeDeploy application about which to get revision information.
  1808. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  1809. // Information to get about the application revisions, including type and location.
  1810. Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"`
  1811. }
  1812. // String returns the string representation
  1813. func (s BatchGetApplicationRevisionsInput) String() string {
  1814. return awsutil.Prettify(s)
  1815. }
  1816. // GoString returns the string representation
  1817. func (s BatchGetApplicationRevisionsInput) GoString() string {
  1818. return s.String()
  1819. }
  1820. // Validate inspects the fields of the type to determine if they are valid.
  1821. func (s *BatchGetApplicationRevisionsInput) Validate() error {
  1822. invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationRevisionsInput"}
  1823. if s.ApplicationName == nil {
  1824. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1825. }
  1826. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1827. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1828. }
  1829. if s.Revisions == nil {
  1830. invalidParams.Add(request.NewErrParamRequired("Revisions"))
  1831. }
  1832. if invalidParams.Len() > 0 {
  1833. return invalidParams
  1834. }
  1835. return nil
  1836. }
  1837. // Represents the output of a batch get application revisions operation.
  1838. type BatchGetApplicationRevisionsOutput struct {
  1839. _ struct{} `type:"structure"`
  1840. // The name of the application that corresponds to the revisions.
  1841. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  1842. // Information about errors that may have occurred during the API call.
  1843. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  1844. // Additional information about the revisions, including the type and location.
  1845. Revisions []*RevisionInfo `locationName:"revisions" type:"list"`
  1846. }
  1847. // String returns the string representation
  1848. func (s BatchGetApplicationRevisionsOutput) String() string {
  1849. return awsutil.Prettify(s)
  1850. }
  1851. // GoString returns the string representation
  1852. func (s BatchGetApplicationRevisionsOutput) GoString() string {
  1853. return s.String()
  1854. }
  1855. // Represents the input of a batch get applications operation.
  1856. type BatchGetApplicationsInput struct {
  1857. _ struct{} `type:"structure"`
  1858. // A list of application names separated by spaces.
  1859. ApplicationNames []*string `locationName:"applicationNames" type:"list"`
  1860. }
  1861. // String returns the string representation
  1862. func (s BatchGetApplicationsInput) String() string {
  1863. return awsutil.Prettify(s)
  1864. }
  1865. // GoString returns the string representation
  1866. func (s BatchGetApplicationsInput) GoString() string {
  1867. return s.String()
  1868. }
  1869. // Represents the output of a batch get applications operation.
  1870. type BatchGetApplicationsOutput struct {
  1871. _ struct{} `type:"structure"`
  1872. // Information about the applications.
  1873. ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"`
  1874. }
  1875. // String returns the string representation
  1876. func (s BatchGetApplicationsOutput) String() string {
  1877. return awsutil.Prettify(s)
  1878. }
  1879. // GoString returns the string representation
  1880. func (s BatchGetApplicationsOutput) GoString() string {
  1881. return s.String()
  1882. }
  1883. // Represents the input of a batch get deployment groups operation.
  1884. type BatchGetDeploymentGroupsInput struct {
  1885. _ struct{} `type:"structure"`
  1886. // The name of an AWS CodeDeploy application associated with the applicable
  1887. // IAM user or AWS account.
  1888. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  1889. // The deployment groups' names.
  1890. DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"`
  1891. }
  1892. // String returns the string representation
  1893. func (s BatchGetDeploymentGroupsInput) String() string {
  1894. return awsutil.Prettify(s)
  1895. }
  1896. // GoString returns the string representation
  1897. func (s BatchGetDeploymentGroupsInput) GoString() string {
  1898. return s.String()
  1899. }
  1900. // Validate inspects the fields of the type to determine if they are valid.
  1901. func (s *BatchGetDeploymentGroupsInput) Validate() error {
  1902. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentGroupsInput"}
  1903. if s.ApplicationName == nil {
  1904. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1905. }
  1906. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1907. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1908. }
  1909. if s.DeploymentGroupNames == nil {
  1910. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupNames"))
  1911. }
  1912. if invalidParams.Len() > 0 {
  1913. return invalidParams
  1914. }
  1915. return nil
  1916. }
  1917. // Represents the output of a batch get deployment groups operation.
  1918. type BatchGetDeploymentGroupsOutput struct {
  1919. _ struct{} `type:"structure"`
  1920. // Information about the deployment groups.
  1921. DeploymentGroupsInfo []*DeploymentGroupInfo `locationName:"deploymentGroupsInfo" type:"list"`
  1922. // Information about errors that may have occurred during the API call.
  1923. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  1924. }
  1925. // String returns the string representation
  1926. func (s BatchGetDeploymentGroupsOutput) String() string {
  1927. return awsutil.Prettify(s)
  1928. }
  1929. // GoString returns the string representation
  1930. func (s BatchGetDeploymentGroupsOutput) GoString() string {
  1931. return s.String()
  1932. }
  1933. // Represents the input of a batch get deployment instances operation.
  1934. type BatchGetDeploymentInstancesInput struct {
  1935. _ struct{} `type:"structure"`
  1936. // The unique ID of a deployment.
  1937. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  1938. // The unique IDs of instances in the deployment group.
  1939. InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"`
  1940. }
  1941. // String returns the string representation
  1942. func (s BatchGetDeploymentInstancesInput) String() string {
  1943. return awsutil.Prettify(s)
  1944. }
  1945. // GoString returns the string representation
  1946. func (s BatchGetDeploymentInstancesInput) GoString() string {
  1947. return s.String()
  1948. }
  1949. // Validate inspects the fields of the type to determine if they are valid.
  1950. func (s *BatchGetDeploymentInstancesInput) Validate() error {
  1951. invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentInstancesInput"}
  1952. if s.DeploymentId == nil {
  1953. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  1954. }
  1955. if s.InstanceIds == nil {
  1956. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  1957. }
  1958. if invalidParams.Len() > 0 {
  1959. return invalidParams
  1960. }
  1961. return nil
  1962. }
  1963. // Represents the output of a batch get deployment instance operation.
  1964. type BatchGetDeploymentInstancesOutput struct {
  1965. _ struct{} `type:"structure"`
  1966. // Information about errors that may have occurred during the API call.
  1967. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  1968. // Information about the instance.
  1969. InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"`
  1970. }
  1971. // String returns the string representation
  1972. func (s BatchGetDeploymentInstancesOutput) String() string {
  1973. return awsutil.Prettify(s)
  1974. }
  1975. // GoString returns the string representation
  1976. func (s BatchGetDeploymentInstancesOutput) GoString() string {
  1977. return s.String()
  1978. }
  1979. // Represents the input of a batch get deployments operation.
  1980. type BatchGetDeploymentsInput struct {
  1981. _ struct{} `type:"structure"`
  1982. // A list of deployment IDs, separated by spaces.
  1983. DeploymentIds []*string `locationName:"deploymentIds" type:"list"`
  1984. }
  1985. // String returns the string representation
  1986. func (s BatchGetDeploymentsInput) String() string {
  1987. return awsutil.Prettify(s)
  1988. }
  1989. // GoString returns the string representation
  1990. func (s BatchGetDeploymentsInput) GoString() string {
  1991. return s.String()
  1992. }
  1993. // Represents the output of a batch get deployments operation.
  1994. type BatchGetDeploymentsOutput struct {
  1995. _ struct{} `type:"structure"`
  1996. // Information about the deployments.
  1997. DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"`
  1998. }
  1999. // String returns the string representation
  2000. func (s BatchGetDeploymentsOutput) String() string {
  2001. return awsutil.Prettify(s)
  2002. }
  2003. // GoString returns the string representation
  2004. func (s BatchGetDeploymentsOutput) GoString() string {
  2005. return s.String()
  2006. }
  2007. // Represents the input of a batch get on-premises instances operation.
  2008. type BatchGetOnPremisesInstancesInput struct {
  2009. _ struct{} `type:"structure"`
  2010. // The names of the on-premises instances about which to get information.
  2011. InstanceNames []*string `locationName:"instanceNames" type:"list"`
  2012. }
  2013. // String returns the string representation
  2014. func (s BatchGetOnPremisesInstancesInput) String() string {
  2015. return awsutil.Prettify(s)
  2016. }
  2017. // GoString returns the string representation
  2018. func (s BatchGetOnPremisesInstancesInput) GoString() string {
  2019. return s.String()
  2020. }
  2021. // Represents the output of a batch get on-premises instances operation.
  2022. type BatchGetOnPremisesInstancesOutput struct {
  2023. _ struct{} `type:"structure"`
  2024. // Information about the on-premises instances.
  2025. InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"`
  2026. }
  2027. // String returns the string representation
  2028. func (s BatchGetOnPremisesInstancesOutput) String() string {
  2029. return awsutil.Prettify(s)
  2030. }
  2031. // GoString returns the string representation
  2032. func (s BatchGetOnPremisesInstancesOutput) GoString() string {
  2033. return s.String()
  2034. }
  2035. // Represents the input of a create application operation.
  2036. type CreateApplicationInput struct {
  2037. _ struct{} `type:"structure"`
  2038. // The name of the application. This name must be unique with the applicable
  2039. // IAM user or AWS account.
  2040. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2041. }
  2042. // String returns the string representation
  2043. func (s CreateApplicationInput) String() string {
  2044. return awsutil.Prettify(s)
  2045. }
  2046. // GoString returns the string representation
  2047. func (s CreateApplicationInput) GoString() string {
  2048. return s.String()
  2049. }
  2050. // Validate inspects the fields of the type to determine if they are valid.
  2051. func (s *CreateApplicationInput) Validate() error {
  2052. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  2053. if s.ApplicationName == nil {
  2054. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2055. }
  2056. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2057. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2058. }
  2059. if invalidParams.Len() > 0 {
  2060. return invalidParams
  2061. }
  2062. return nil
  2063. }
  2064. // Represents the output of a create application operation.
  2065. type CreateApplicationOutput struct {
  2066. _ struct{} `type:"structure"`
  2067. // A unique application ID.
  2068. ApplicationId *string `locationName:"applicationId" type:"string"`
  2069. }
  2070. // String returns the string representation
  2071. func (s CreateApplicationOutput) String() string {
  2072. return awsutil.Prettify(s)
  2073. }
  2074. // GoString returns the string representation
  2075. func (s CreateApplicationOutput) GoString() string {
  2076. return s.String()
  2077. }
  2078. // Represents the input of a create deployment configuration operation.
  2079. type CreateDeploymentConfigInput struct {
  2080. _ struct{} `type:"structure"`
  2081. // The name of the deployment configuration to create.
  2082. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  2083. // The minimum number of healthy instances that should be available at any time
  2084. // during the deployment. There are two parameters expected in the input: type
  2085. // and value.
  2086. //
  2087. // The type parameter takes either of the following values:
  2088. //
  2089. // HOST_COUNT: The value parameter represents the minimum number of healthy
  2090. // instances as an absolute value. FLEET_PERCENT: The value parameter represents
  2091. // the minimum number of healthy instances as a percentage of the total number
  2092. // of instances in the deployment. If you specify FLEET_PERCENT, at the start
  2093. // of the deployment, AWS CodeDeploy converts the percentage to the equivalent
  2094. // number of instance and rounds up fractional instances. The value parameter
  2095. // takes an integer.
  2096. //
  2097. // For example, to set a minimum of 95% healthy instance, specify a type of
  2098. // FLEET_PERCENT and a value of 95.
  2099. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
  2100. }
  2101. // String returns the string representation
  2102. func (s CreateDeploymentConfigInput) String() string {
  2103. return awsutil.Prettify(s)
  2104. }
  2105. // GoString returns the string representation
  2106. func (s CreateDeploymentConfigInput) GoString() string {
  2107. return s.String()
  2108. }
  2109. // Validate inspects the fields of the type to determine if they are valid.
  2110. func (s *CreateDeploymentConfigInput) Validate() error {
  2111. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentConfigInput"}
  2112. if s.DeploymentConfigName == nil {
  2113. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  2114. }
  2115. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  2116. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  2117. }
  2118. if invalidParams.Len() > 0 {
  2119. return invalidParams
  2120. }
  2121. return nil
  2122. }
  2123. // Represents the output of a create deployment configuration operation.
  2124. type CreateDeploymentConfigOutput struct {
  2125. _ struct{} `type:"structure"`
  2126. // A unique deployment configuration ID.
  2127. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
  2128. }
  2129. // String returns the string representation
  2130. func (s CreateDeploymentConfigOutput) String() string {
  2131. return awsutil.Prettify(s)
  2132. }
  2133. // GoString returns the string representation
  2134. func (s CreateDeploymentConfigOutput) GoString() string {
  2135. return s.String()
  2136. }
  2137. // Represents the input of a create deployment group operation.
  2138. type CreateDeploymentGroupInput struct {
  2139. _ struct{} `type:"structure"`
  2140. // The name of an AWS CodeDeploy application associated with the applicable
  2141. // IAM user or AWS account.
  2142. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2143. // A list of associated Auto Scaling groups.
  2144. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  2145. // If specified, the deployment configuration name can be either one of the
  2146. // predefined configurations provided with AWS CodeDeploy or a custom deployment
  2147. // configuration that you create by calling the create deployment configuration
  2148. // operation.
  2149. //
  2150. // CodeDeployDefault.OneAtATime is the default deployment configuration. It
  2151. // is used if a configuration isn't specified for the deployment or the deployment
  2152. // group.
  2153. //
  2154. // The predefined deployment configurations include the following:
  2155. //
  2156. // CodeDeployDefault.AllAtOnce attempts to deploy an application revision
  2157. // to as many instance as possible at once. The status of the overall deployment
  2158. // will be displayed as Succeeded if the application revision is deployed to
  2159. // one or more of the instances. The status of the overall deployment will be
  2160. // displayed as Failed if the application revision is not deployed to any of
  2161. // the instances. Using an example of nine instance, CodeDeployDefault.AllAtOnce
  2162. // will attempt to deploy to all nine instance at once. The overall deployment
  2163. // will succeed if deployment to even a single instance is successful; it will
  2164. // fail only if deployments to all nine instance fail.
  2165. //
  2166. // CodeDeployDefault.HalfAtATime deploys to up to half of the instances at
  2167. // a time (with fractions rounded down). The overall deployment succeeds if
  2168. // the application revision is deployed to at least half of the instances (with
  2169. // fractions rounded up); otherwise, the deployment fails. In the example of
  2170. // nine instances, it will deploy to up to four instance at a time. The overall
  2171. // deployment succeeds if deployment to five or more instances succeed; otherwise,
  2172. // the deployment fails. The deployment may be successfully deployed to some
  2173. // instances even if the overall deployment fails.
  2174. //
  2175. // CodeDeployDefault.OneAtATime deploys the application revision to only
  2176. // one instance at a time.
  2177. //
  2178. // For deployment groups that contain more than one instance:
  2179. //
  2180. // The overall deployment succeeds if the application revision is deployed
  2181. // to all of the instances. The exception to this rule is if deployment to the
  2182. // last instance fails, the overall deployment still succeeds. This is because
  2183. // AWS CodeDeploy allows only one instance at a time to be taken offline with
  2184. // the CodeDeployDefault.OneAtATime configuration.
  2185. //
  2186. // The overall deployment fails as soon as the application revision fails
  2187. // to be deployed to any but the last instance. The deployment may be successfully
  2188. // deployed to some instances even if the overall deployment fails.
  2189. //
  2190. // In an example using nine instance, it will deploy to one instance at a
  2191. // time. The overall deployment succeeds if deployment to the first eight instance
  2192. // is successful; the overall deployment fails if deployment to any of the first
  2193. // eight instance fails.
  2194. //
  2195. // For deployment groups that contain only one instance, the overall deployment
  2196. // is successful only if deployment to the single instance is successful
  2197. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  2198. // The name of a new deployment group for the specified application.
  2199. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  2200. // The Amazon EC2 tags on which to filter.
  2201. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  2202. // The on-premises instance tags on which to filter.
  2203. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  2204. // A service role ARN that allows AWS CodeDeploy to act on the user's behalf
  2205. // when interacting with AWS services.
  2206. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"`
  2207. // Information about triggers to create when the deployment group is created.
  2208. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  2209. }
  2210. // String returns the string representation
  2211. func (s CreateDeploymentGroupInput) String() string {
  2212. return awsutil.Prettify(s)
  2213. }
  2214. // GoString returns the string representation
  2215. func (s CreateDeploymentGroupInput) GoString() string {
  2216. return s.String()
  2217. }
  2218. // Validate inspects the fields of the type to determine if they are valid.
  2219. func (s *CreateDeploymentGroupInput) Validate() error {
  2220. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"}
  2221. if s.ApplicationName == nil {
  2222. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2223. }
  2224. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2225. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2226. }
  2227. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  2228. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  2229. }
  2230. if s.DeploymentGroupName == nil {
  2231. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  2232. }
  2233. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  2234. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  2235. }
  2236. if s.ServiceRoleArn == nil {
  2237. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  2238. }
  2239. if invalidParams.Len() > 0 {
  2240. return invalidParams
  2241. }
  2242. return nil
  2243. }
  2244. // Represents the output of a create deployment group operation.
  2245. type CreateDeploymentGroupOutput struct {
  2246. _ struct{} `type:"structure"`
  2247. // A unique deployment group ID.
  2248. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
  2249. }
  2250. // String returns the string representation
  2251. func (s CreateDeploymentGroupOutput) String() string {
  2252. return awsutil.Prettify(s)
  2253. }
  2254. // GoString returns the string representation
  2255. func (s CreateDeploymentGroupOutput) GoString() string {
  2256. return s.String()
  2257. }
  2258. // Represents the input of a create deployment operation.
  2259. type CreateDeploymentInput struct {
  2260. _ struct{} `type:"structure"`
  2261. // The name of an AWS CodeDeploy application associated with the applicable
  2262. // IAM user or AWS account.
  2263. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2264. // The name of a deployment configuration associated with the applicable IAM
  2265. // user or AWS account.
  2266. //
  2267. // If not specified, the value configured in the deployment group will be used
  2268. // as the default. If the deployment group does not have a deployment configuration
  2269. // associated with it, then CodeDeployDefault.OneAtATime will be used by default.
  2270. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  2271. // The name of the deployment group.
  2272. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  2273. // A comment about the deployment.
  2274. Description *string `locationName:"description" type:"string"`
  2275. // If set to true, then if the deployment causes the ApplicationStop deployment
  2276. // lifecycle event to an instance to fail, the deployment to that instance will
  2277. // not be considered to have failed at that point and will continue on to the
  2278. // BeforeInstall deployment lifecycle event.
  2279. //
  2280. // If set to false or not specified, then if the deployment causes the ApplicationStop
  2281. // deployment lifecycle event to fail to an instance, the deployment to that
  2282. // instance will stop, and the deployment to that instance will be considered
  2283. // to have failed.
  2284. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
  2285. // The type and location of the revision to deploy.
  2286. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  2287. }
  2288. // String returns the string representation
  2289. func (s CreateDeploymentInput) String() string {
  2290. return awsutil.Prettify(s)
  2291. }
  2292. // GoString returns the string representation
  2293. func (s CreateDeploymentInput) GoString() string {
  2294. return s.String()
  2295. }
  2296. // Validate inspects the fields of the type to determine if they are valid.
  2297. func (s *CreateDeploymentInput) Validate() error {
  2298. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
  2299. if s.ApplicationName == nil {
  2300. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2301. }
  2302. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2303. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2304. }
  2305. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  2306. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  2307. }
  2308. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  2309. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  2310. }
  2311. if invalidParams.Len() > 0 {
  2312. return invalidParams
  2313. }
  2314. return nil
  2315. }
  2316. // Represents the output of a create deployment operation.
  2317. type CreateDeploymentOutput struct {
  2318. _ struct{} `type:"structure"`
  2319. // A unique deployment ID.
  2320. DeploymentId *string `locationName:"deploymentId" type:"string"`
  2321. }
  2322. // String returns the string representation
  2323. func (s CreateDeploymentOutput) String() string {
  2324. return awsutil.Prettify(s)
  2325. }
  2326. // GoString returns the string representation
  2327. func (s CreateDeploymentOutput) GoString() string {
  2328. return s.String()
  2329. }
  2330. // Represents the input of a delete application operation.
  2331. type DeleteApplicationInput struct {
  2332. _ struct{} `type:"structure"`
  2333. // The name of an AWS CodeDeploy application associated with the applicable
  2334. // IAM user or AWS account.
  2335. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2336. }
  2337. // String returns the string representation
  2338. func (s DeleteApplicationInput) String() string {
  2339. return awsutil.Prettify(s)
  2340. }
  2341. // GoString returns the string representation
  2342. func (s DeleteApplicationInput) GoString() string {
  2343. return s.String()
  2344. }
  2345. // Validate inspects the fields of the type to determine if they are valid.
  2346. func (s *DeleteApplicationInput) Validate() error {
  2347. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
  2348. if s.ApplicationName == nil {
  2349. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2350. }
  2351. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2352. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2353. }
  2354. if invalidParams.Len() > 0 {
  2355. return invalidParams
  2356. }
  2357. return nil
  2358. }
  2359. type DeleteApplicationOutput struct {
  2360. _ struct{} `type:"structure"`
  2361. }
  2362. // String returns the string representation
  2363. func (s DeleteApplicationOutput) String() string {
  2364. return awsutil.Prettify(s)
  2365. }
  2366. // GoString returns the string representation
  2367. func (s DeleteApplicationOutput) GoString() string {
  2368. return s.String()
  2369. }
  2370. // Represents the input of a delete deployment configuration operation.
  2371. type DeleteDeploymentConfigInput struct {
  2372. _ struct{} `type:"structure"`
  2373. // The name of a deployment configuration associated with the applicable IAM
  2374. // user or AWS account.
  2375. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  2376. }
  2377. // String returns the string representation
  2378. func (s DeleteDeploymentConfigInput) String() string {
  2379. return awsutil.Prettify(s)
  2380. }
  2381. // GoString returns the string representation
  2382. func (s DeleteDeploymentConfigInput) GoString() string {
  2383. return s.String()
  2384. }
  2385. // Validate inspects the fields of the type to determine if they are valid.
  2386. func (s *DeleteDeploymentConfigInput) Validate() error {
  2387. invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"}
  2388. if s.DeploymentConfigName == nil {
  2389. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  2390. }
  2391. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  2392. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  2393. }
  2394. if invalidParams.Len() > 0 {
  2395. return invalidParams
  2396. }
  2397. return nil
  2398. }
  2399. type DeleteDeploymentConfigOutput struct {
  2400. _ struct{} `type:"structure"`
  2401. }
  2402. // String returns the string representation
  2403. func (s DeleteDeploymentConfigOutput) String() string {
  2404. return awsutil.Prettify(s)
  2405. }
  2406. // GoString returns the string representation
  2407. func (s DeleteDeploymentConfigOutput) GoString() string {
  2408. return s.String()
  2409. }
  2410. // Represents the input of a delete deployment group operation.
  2411. type DeleteDeploymentGroupInput struct {
  2412. _ struct{} `type:"structure"`
  2413. // The name of an AWS CodeDeploy application associated with the applicable
  2414. // IAM user or AWS account.
  2415. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2416. // The name of an existing deployment group for the specified application.
  2417. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  2418. }
  2419. // String returns the string representation
  2420. func (s DeleteDeploymentGroupInput) String() string {
  2421. return awsutil.Prettify(s)
  2422. }
  2423. // GoString returns the string representation
  2424. func (s DeleteDeploymentGroupInput) GoString() string {
  2425. return s.String()
  2426. }
  2427. // Validate inspects the fields of the type to determine if they are valid.
  2428. func (s *DeleteDeploymentGroupInput) Validate() error {
  2429. invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"}
  2430. if s.ApplicationName == nil {
  2431. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2432. }
  2433. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2434. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2435. }
  2436. if s.DeploymentGroupName == nil {
  2437. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  2438. }
  2439. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  2440. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  2441. }
  2442. if invalidParams.Len() > 0 {
  2443. return invalidParams
  2444. }
  2445. return nil
  2446. }
  2447. // Represents the output of a delete deployment group operation.
  2448. type DeleteDeploymentGroupOutput struct {
  2449. _ struct{} `type:"structure"`
  2450. // If the output contains no data, and the corresponding deployment group contained
  2451. // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
  2452. // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances
  2453. // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could
  2454. // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances
  2455. // in the Auto Scaling group.
  2456. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
  2457. }
  2458. // String returns the string representation
  2459. func (s DeleteDeploymentGroupOutput) String() string {
  2460. return awsutil.Prettify(s)
  2461. }
  2462. // GoString returns the string representation
  2463. func (s DeleteDeploymentGroupOutput) GoString() string {
  2464. return s.String()
  2465. }
  2466. // Information about a deployment configuration.
  2467. type DeploymentConfigInfo struct {
  2468. _ struct{} `type:"structure"`
  2469. // The time at which the deployment configuration was created.
  2470. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
  2471. // The deployment configuration ID.
  2472. DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"`
  2473. // The deployment configuration name.
  2474. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  2475. // Information about the number or percentage of minimum healthy instance.
  2476. MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"`
  2477. }
  2478. // String returns the string representation
  2479. func (s DeploymentConfigInfo) String() string {
  2480. return awsutil.Prettify(s)
  2481. }
  2482. // GoString returns the string representation
  2483. func (s DeploymentConfigInfo) GoString() string {
  2484. return s.String()
  2485. }
  2486. // Information about a deployment group.
  2487. type DeploymentGroupInfo struct {
  2488. _ struct{} `type:"structure"`
  2489. // The application name.
  2490. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  2491. // A list of associated Auto Scaling groups.
  2492. AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"`
  2493. // The deployment configuration name.
  2494. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  2495. // The deployment group ID.
  2496. DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"`
  2497. // The deployment group name.
  2498. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  2499. // The Amazon EC2 tags on which to filter.
  2500. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  2501. // The on-premises instance tags on which to filter.
  2502. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  2503. // A service role ARN.
  2504. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
  2505. // Information about the deployment group's target revision, including type
  2506. // and location.
  2507. TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"`
  2508. // A list of associated triggers.
  2509. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  2510. }
  2511. // String returns the string representation
  2512. func (s DeploymentGroupInfo) String() string {
  2513. return awsutil.Prettify(s)
  2514. }
  2515. // GoString returns the string representation
  2516. func (s DeploymentGroupInfo) GoString() string {
  2517. return s.String()
  2518. }
  2519. // Information about a deployment.
  2520. type DeploymentInfo struct {
  2521. _ struct{} `type:"structure"`
  2522. // The application name.
  2523. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  2524. // A timestamp indicating when the deployment was complete.
  2525. CompleteTime *time.Time `locationName:"completeTime" type:"timestamp" timestampFormat:"unix"`
  2526. // A timestamp indicating when the deployment was created.
  2527. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"unix"`
  2528. // The means by which the deployment was created:
  2529. //
  2530. // user: A user created the deployment. autoscaling: Auto Scaling created
  2531. // the deployment.
  2532. Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"`
  2533. // The deployment configuration name.
  2534. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  2535. // The deployment group name.
  2536. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  2537. // The deployment ID.
  2538. DeploymentId *string `locationName:"deploymentId" type:"string"`
  2539. // A summary of the deployment status of the instances in the deployment.
  2540. DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"`
  2541. // A comment about the deployment.
  2542. Description *string `locationName:"description" type:"string"`
  2543. // Information about any error associated with this deployment.
  2544. ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"`
  2545. // If true, then if the deployment causes the ApplicationStop deployment lifecycle
  2546. // event to an instance to fail, the deployment to that instance will not be
  2547. // considered to have failed at that point and will continue on to the BeforeInstall
  2548. // deployment lifecycle event.
  2549. //
  2550. // If false or not specified, then if the deployment causes the ApplicationStop
  2551. // deployment lifecycle event to an instance to fail, the deployment to that
  2552. // instance will stop, and the deployment to that instance will be considered
  2553. // to have failed.
  2554. IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"`
  2555. // Information about the location of stored application artifacts and the service
  2556. // from which to retrieve them.
  2557. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  2558. // A timestamp indicating when the deployment was deployed to the deployment
  2559. // group.
  2560. //
  2561. // In some cases, the reported value of the start time may be later than the
  2562. // complete time. This is due to differences in the clock settings of back-end
  2563. // servers that participate in the deployment process.
  2564. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
  2565. // The current state of the deployment as a whole.
  2566. Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"`
  2567. }
  2568. // String returns the string representation
  2569. func (s DeploymentInfo) String() string {
  2570. return awsutil.Prettify(s)
  2571. }
  2572. // GoString returns the string representation
  2573. func (s DeploymentInfo) GoString() string {
  2574. return s.String()
  2575. }
  2576. // Information about the deployment status of the instances in the deployment.
  2577. type DeploymentOverview struct {
  2578. _ struct{} `type:"structure"`
  2579. // The number of instances in the deployment in a failed state.
  2580. Failed *int64 `type:"long"`
  2581. // The number of instances in which the deployment is in progress.
  2582. InProgress *int64 `type:"long"`
  2583. // The number of instances in the deployment in a pending state.
  2584. Pending *int64 `type:"long"`
  2585. // The number of instances in the deployment in a skipped state.
  2586. Skipped *int64 `type:"long"`
  2587. // The number of instances in the deployment to which revisions have been successfully
  2588. // deployed.
  2589. Succeeded *int64 `type:"long"`
  2590. }
  2591. // String returns the string representation
  2592. func (s DeploymentOverview) String() string {
  2593. return awsutil.Prettify(s)
  2594. }
  2595. // GoString returns the string representation
  2596. func (s DeploymentOverview) GoString() string {
  2597. return s.String()
  2598. }
  2599. // Represents the input of a deregister on-premises instance operation.
  2600. type DeregisterOnPremisesInstanceInput struct {
  2601. _ struct{} `type:"structure"`
  2602. // The name of the on-premises instance to deregister.
  2603. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  2604. }
  2605. // String returns the string representation
  2606. func (s DeregisterOnPremisesInstanceInput) String() string {
  2607. return awsutil.Prettify(s)
  2608. }
  2609. // GoString returns the string representation
  2610. func (s DeregisterOnPremisesInstanceInput) GoString() string {
  2611. return s.String()
  2612. }
  2613. // Validate inspects the fields of the type to determine if they are valid.
  2614. func (s *DeregisterOnPremisesInstanceInput) Validate() error {
  2615. invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"}
  2616. if s.InstanceName == nil {
  2617. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  2618. }
  2619. if invalidParams.Len() > 0 {
  2620. return invalidParams
  2621. }
  2622. return nil
  2623. }
  2624. type DeregisterOnPremisesInstanceOutput struct {
  2625. _ struct{} `type:"structure"`
  2626. }
  2627. // String returns the string representation
  2628. func (s DeregisterOnPremisesInstanceOutput) String() string {
  2629. return awsutil.Prettify(s)
  2630. }
  2631. // GoString returns the string representation
  2632. func (s DeregisterOnPremisesInstanceOutput) GoString() string {
  2633. return s.String()
  2634. }
  2635. // Diagnostic information about executable scripts that are part of a deployment.
  2636. type Diagnostics struct {
  2637. _ struct{} `type:"structure"`
  2638. // The associated error code:
  2639. //
  2640. // Success: The specified script ran. ScriptMissing: The specified script
  2641. // was not found in the specified location. ScriptNotExecutable: The specified
  2642. // script is not a recognized executable file type. ScriptTimedOut: The specified
  2643. // script did not finish running in the specified time period. ScriptFailed:
  2644. // The specified script failed to run as expected. UnknownError: The specified
  2645. // script did not run for an unknown reason.
  2646. ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"`
  2647. // The last portion of the diagnostic log.
  2648. //
  2649. // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic
  2650. // log.
  2651. LogTail *string `locationName:"logTail" type:"string"`
  2652. // The message associated with the error.
  2653. Message *string `locationName:"message" type:"string"`
  2654. // The name of the script.
  2655. ScriptName *string `locationName:"scriptName" type:"string"`
  2656. }
  2657. // String returns the string representation
  2658. func (s Diagnostics) String() string {
  2659. return awsutil.Prettify(s)
  2660. }
  2661. // GoString returns the string representation
  2662. func (s Diagnostics) GoString() string {
  2663. return s.String()
  2664. }
  2665. // Information about a tag filter.
  2666. type EC2TagFilter struct {
  2667. _ struct{} `type:"structure"`
  2668. // The tag filter key.
  2669. Key *string `type:"string"`
  2670. // The tag filter type:
  2671. //
  2672. // KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.
  2673. Type *string `type:"string" enum:"EC2TagFilterType"`
  2674. // The tag filter value.
  2675. Value *string `type:"string"`
  2676. }
  2677. // String returns the string representation
  2678. func (s EC2TagFilter) String() string {
  2679. return awsutil.Prettify(s)
  2680. }
  2681. // GoString returns the string representation
  2682. func (s EC2TagFilter) GoString() string {
  2683. return s.String()
  2684. }
  2685. // Information about a deployment error.
  2686. type ErrorInformation struct {
  2687. _ struct{} `type:"structure"`
  2688. // The error code:
  2689. //
  2690. // APPLICATION_MISSING: The application was missing. This error code will
  2691. // most likely be raised if the application is deleted after the deployment
  2692. // is created but before it is started. DEPLOYMENT_GROUP_MISSING: The deployment
  2693. // group was missing. This error code will most likely be raised if the deployment
  2694. // group is deleted after the deployment is created but before it is started.
  2695. // HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully
  2696. // deployed within the instance health constraints specified. HEALTH_CONSTRAINTS_INVALID:
  2697. // The revision cannot be successfully deployed within the instance health constraints
  2698. // specified. IAM_ROLE_MISSING: The service role cannot be accessed. IAM_ROLE_PERMISSIONS:
  2699. // The service role does not have the correct permissions. INTERNAL_ERROR: There
  2700. // was an internal error. NO_EC2_SUBSCRIPTION: The calling account is not subscribed
  2701. // to the Amazon EC2 service. NO_INSTANCES: No instance were specified, or no
  2702. // instance can be found. OVER_MAX_INSTANCES: The maximum number of instance
  2703. // was exceeded. THROTTLED: The operation was throttled because the calling
  2704. // account exceeded the throttling limits of one or more AWS services. TIMEOUT:
  2705. // The deployment has timed out. REVISION_MISSING: The revision ID was missing.
  2706. // This error code will most likely be raised if the revision is deleted after
  2707. // the deployment is created but before it is started.
  2708. Code *string `locationName:"code" type:"string" enum:"ErrorCode"`
  2709. // An accompanying error message.
  2710. Message *string `locationName:"message" type:"string"`
  2711. }
  2712. // String returns the string representation
  2713. func (s ErrorInformation) String() string {
  2714. return awsutil.Prettify(s)
  2715. }
  2716. // GoString returns the string representation
  2717. func (s ErrorInformation) GoString() string {
  2718. return s.String()
  2719. }
  2720. // Information about an application revision.
  2721. type GenericRevisionInfo struct {
  2722. _ struct{} `type:"structure"`
  2723. // The deployment groups for which this is the current target revision.
  2724. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
  2725. // A comment about the revision.
  2726. Description *string `locationName:"description" type:"string"`
  2727. // When the revision was first used by AWS CodeDeploy.
  2728. FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp" timestampFormat:"unix"`
  2729. // When the revision was last used by AWS CodeDeploy.
  2730. LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp" timestampFormat:"unix"`
  2731. // When the revision was registered with AWS CodeDeploy.
  2732. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
  2733. }
  2734. // String returns the string representation
  2735. func (s GenericRevisionInfo) String() string {
  2736. return awsutil.Prettify(s)
  2737. }
  2738. // GoString returns the string representation
  2739. func (s GenericRevisionInfo) GoString() string {
  2740. return s.String()
  2741. }
  2742. // Represents the input of a get application operation.
  2743. type GetApplicationInput struct {
  2744. _ struct{} `type:"structure"`
  2745. // The name of an AWS CodeDeploy application associated with the applicable
  2746. // IAM user or AWS account.
  2747. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2748. }
  2749. // String returns the string representation
  2750. func (s GetApplicationInput) String() string {
  2751. return awsutil.Prettify(s)
  2752. }
  2753. // GoString returns the string representation
  2754. func (s GetApplicationInput) GoString() string {
  2755. return s.String()
  2756. }
  2757. // Validate inspects the fields of the type to determine if they are valid.
  2758. func (s *GetApplicationInput) Validate() error {
  2759. invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"}
  2760. if s.ApplicationName == nil {
  2761. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2762. }
  2763. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2764. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2765. }
  2766. if invalidParams.Len() > 0 {
  2767. return invalidParams
  2768. }
  2769. return nil
  2770. }
  2771. // Represents the output of a get application operation.
  2772. type GetApplicationOutput struct {
  2773. _ struct{} `type:"structure"`
  2774. // Information about the application.
  2775. Application *ApplicationInfo `locationName:"application" type:"structure"`
  2776. }
  2777. // String returns the string representation
  2778. func (s GetApplicationOutput) String() string {
  2779. return awsutil.Prettify(s)
  2780. }
  2781. // GoString returns the string representation
  2782. func (s GetApplicationOutput) GoString() string {
  2783. return s.String()
  2784. }
  2785. // Represents the input of a get application revision operation.
  2786. type GetApplicationRevisionInput struct {
  2787. _ struct{} `type:"structure"`
  2788. // The name of the application that corresponds to the revision.
  2789. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2790. // Information about the application revision to get, including type and location.
  2791. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
  2792. }
  2793. // String returns the string representation
  2794. func (s GetApplicationRevisionInput) String() string {
  2795. return awsutil.Prettify(s)
  2796. }
  2797. // GoString returns the string representation
  2798. func (s GetApplicationRevisionInput) GoString() string {
  2799. return s.String()
  2800. }
  2801. // Validate inspects the fields of the type to determine if they are valid.
  2802. func (s *GetApplicationRevisionInput) Validate() error {
  2803. invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"}
  2804. if s.ApplicationName == nil {
  2805. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2806. }
  2807. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2808. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2809. }
  2810. if s.Revision == nil {
  2811. invalidParams.Add(request.NewErrParamRequired("Revision"))
  2812. }
  2813. if invalidParams.Len() > 0 {
  2814. return invalidParams
  2815. }
  2816. return nil
  2817. }
  2818. // Represents the output of a get application revision operation.
  2819. type GetApplicationRevisionOutput struct {
  2820. _ struct{} `type:"structure"`
  2821. // The name of the application that corresponds to the revision.
  2822. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  2823. // Additional information about the revision, including type and location.
  2824. Revision *RevisionLocation `locationName:"revision" type:"structure"`
  2825. // General information about the revision.
  2826. RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"`
  2827. }
  2828. // String returns the string representation
  2829. func (s GetApplicationRevisionOutput) String() string {
  2830. return awsutil.Prettify(s)
  2831. }
  2832. // GoString returns the string representation
  2833. func (s GetApplicationRevisionOutput) GoString() string {
  2834. return s.String()
  2835. }
  2836. // Represents the input of a get deployment configuration operation.
  2837. type GetDeploymentConfigInput struct {
  2838. _ struct{} `type:"structure"`
  2839. // The name of a deployment configuration associated with the applicable IAM
  2840. // user or AWS account.
  2841. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"`
  2842. }
  2843. // String returns the string representation
  2844. func (s GetDeploymentConfigInput) String() string {
  2845. return awsutil.Prettify(s)
  2846. }
  2847. // GoString returns the string representation
  2848. func (s GetDeploymentConfigInput) GoString() string {
  2849. return s.String()
  2850. }
  2851. // Validate inspects the fields of the type to determine if they are valid.
  2852. func (s *GetDeploymentConfigInput) Validate() error {
  2853. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"}
  2854. if s.DeploymentConfigName == nil {
  2855. invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName"))
  2856. }
  2857. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  2858. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  2859. }
  2860. if invalidParams.Len() > 0 {
  2861. return invalidParams
  2862. }
  2863. return nil
  2864. }
  2865. // Represents the output of a get deployment configuration operation.
  2866. type GetDeploymentConfigOutput struct {
  2867. _ struct{} `type:"structure"`
  2868. // Information about the deployment configuration.
  2869. DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"`
  2870. }
  2871. // String returns the string representation
  2872. func (s GetDeploymentConfigOutput) String() string {
  2873. return awsutil.Prettify(s)
  2874. }
  2875. // GoString returns the string representation
  2876. func (s GetDeploymentConfigOutput) GoString() string {
  2877. return s.String()
  2878. }
  2879. // Represents the input of a get deployment group operation.
  2880. type GetDeploymentGroupInput struct {
  2881. _ struct{} `type:"structure"`
  2882. // The name of an AWS CodeDeploy application associated with the applicable
  2883. // IAM user or AWS account.
  2884. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  2885. // The name of an existing deployment group for the specified application.
  2886. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"`
  2887. }
  2888. // String returns the string representation
  2889. func (s GetDeploymentGroupInput) String() string {
  2890. return awsutil.Prettify(s)
  2891. }
  2892. // GoString returns the string representation
  2893. func (s GetDeploymentGroupInput) GoString() string {
  2894. return s.String()
  2895. }
  2896. // Validate inspects the fields of the type to determine if they are valid.
  2897. func (s *GetDeploymentGroupInput) Validate() error {
  2898. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"}
  2899. if s.ApplicationName == nil {
  2900. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2901. }
  2902. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2903. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2904. }
  2905. if s.DeploymentGroupName == nil {
  2906. invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName"))
  2907. }
  2908. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  2909. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  2910. }
  2911. if invalidParams.Len() > 0 {
  2912. return invalidParams
  2913. }
  2914. return nil
  2915. }
  2916. // Represents the output of a get deployment group operation.
  2917. type GetDeploymentGroupOutput struct {
  2918. _ struct{} `type:"structure"`
  2919. // Information about the deployment group.
  2920. DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"`
  2921. }
  2922. // String returns the string representation
  2923. func (s GetDeploymentGroupOutput) String() string {
  2924. return awsutil.Prettify(s)
  2925. }
  2926. // GoString returns the string representation
  2927. func (s GetDeploymentGroupOutput) GoString() string {
  2928. return s.String()
  2929. }
  2930. // Represents the input of a get deployment operation.
  2931. type GetDeploymentInput struct {
  2932. _ struct{} `type:"structure"`
  2933. // A deployment ID associated with the applicable IAM user or AWS account.
  2934. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  2935. }
  2936. // String returns the string representation
  2937. func (s GetDeploymentInput) String() string {
  2938. return awsutil.Prettify(s)
  2939. }
  2940. // GoString returns the string representation
  2941. func (s GetDeploymentInput) GoString() string {
  2942. return s.String()
  2943. }
  2944. // Validate inspects the fields of the type to determine if they are valid.
  2945. func (s *GetDeploymentInput) Validate() error {
  2946. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"}
  2947. if s.DeploymentId == nil {
  2948. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  2949. }
  2950. if invalidParams.Len() > 0 {
  2951. return invalidParams
  2952. }
  2953. return nil
  2954. }
  2955. // Represents the input of a get deployment instance operation.
  2956. type GetDeploymentInstanceInput struct {
  2957. _ struct{} `type:"structure"`
  2958. // The unique ID of a deployment.
  2959. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  2960. // The unique ID of an instance in the deployment group.
  2961. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  2962. }
  2963. // String returns the string representation
  2964. func (s GetDeploymentInstanceInput) String() string {
  2965. return awsutil.Prettify(s)
  2966. }
  2967. // GoString returns the string representation
  2968. func (s GetDeploymentInstanceInput) GoString() string {
  2969. return s.String()
  2970. }
  2971. // Validate inspects the fields of the type to determine if they are valid.
  2972. func (s *GetDeploymentInstanceInput) Validate() error {
  2973. invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"}
  2974. if s.DeploymentId == nil {
  2975. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  2976. }
  2977. if s.InstanceId == nil {
  2978. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  2979. }
  2980. if invalidParams.Len() > 0 {
  2981. return invalidParams
  2982. }
  2983. return nil
  2984. }
  2985. // Represents the output of a get deployment instance operation.
  2986. type GetDeploymentInstanceOutput struct {
  2987. _ struct{} `type:"structure"`
  2988. // Information about the instance.
  2989. InstanceSummary *InstanceSummary `locationName:"instanceSummary" type:"structure"`
  2990. }
  2991. // String returns the string representation
  2992. func (s GetDeploymentInstanceOutput) String() string {
  2993. return awsutil.Prettify(s)
  2994. }
  2995. // GoString returns the string representation
  2996. func (s GetDeploymentInstanceOutput) GoString() string {
  2997. return s.String()
  2998. }
  2999. // Represents the output of a get deployment operation.
  3000. type GetDeploymentOutput struct {
  3001. _ struct{} `type:"structure"`
  3002. // Information about the deployment.
  3003. DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"`
  3004. }
  3005. // String returns the string representation
  3006. func (s GetDeploymentOutput) String() string {
  3007. return awsutil.Prettify(s)
  3008. }
  3009. // GoString returns the string representation
  3010. func (s GetDeploymentOutput) GoString() string {
  3011. return s.String()
  3012. }
  3013. // Represents the input of a get on-premises instance operation.
  3014. type GetOnPremisesInstanceInput struct {
  3015. _ struct{} `type:"structure"`
  3016. // The name of the on-premises instance about which to get information.
  3017. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  3018. }
  3019. // String returns the string representation
  3020. func (s GetOnPremisesInstanceInput) String() string {
  3021. return awsutil.Prettify(s)
  3022. }
  3023. // GoString returns the string representation
  3024. func (s GetOnPremisesInstanceInput) GoString() string {
  3025. return s.String()
  3026. }
  3027. // Validate inspects the fields of the type to determine if they are valid.
  3028. func (s *GetOnPremisesInstanceInput) Validate() error {
  3029. invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"}
  3030. if s.InstanceName == nil {
  3031. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  3032. }
  3033. if invalidParams.Len() > 0 {
  3034. return invalidParams
  3035. }
  3036. return nil
  3037. }
  3038. // Represents the output of a get on-premises instance operation.
  3039. type GetOnPremisesInstanceOutput struct {
  3040. _ struct{} `type:"structure"`
  3041. // Information about the on-premises instance.
  3042. InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"`
  3043. }
  3044. // String returns the string representation
  3045. func (s GetOnPremisesInstanceOutput) String() string {
  3046. return awsutil.Prettify(s)
  3047. }
  3048. // GoString returns the string representation
  3049. func (s GetOnPremisesInstanceOutput) GoString() string {
  3050. return s.String()
  3051. }
  3052. // Information about the location of application artifacts stored in GitHub.
  3053. type GitHubLocation struct {
  3054. _ struct{} `type:"structure"`
  3055. // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts
  3056. // for the application revision.
  3057. CommitId *string `locationName:"commitId" type:"string"`
  3058. // The GitHub account and repository pair that stores a reference to the commit
  3059. // that represents the bundled artifacts for the application revision.
  3060. //
  3061. // Specified as account/repository.
  3062. Repository *string `locationName:"repository" type:"string"`
  3063. }
  3064. // String returns the string representation
  3065. func (s GitHubLocation) String() string {
  3066. return awsutil.Prettify(s)
  3067. }
  3068. // GoString returns the string representation
  3069. func (s GitHubLocation) GoString() string {
  3070. return s.String()
  3071. }
  3072. // Information about an on-premises instance.
  3073. type InstanceInfo struct {
  3074. _ struct{} `type:"structure"`
  3075. // If the on-premises instance was deregistered, the time at which the on-premises
  3076. // instance was deregistered.
  3077. DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp" timestampFormat:"unix"`
  3078. // The IAM user ARN associated with the on-premises instance.
  3079. IamUserArn *string `locationName:"iamUserArn" type:"string"`
  3080. // The ARN of the on-premises instance.
  3081. InstanceArn *string `locationName:"instanceArn" type:"string"`
  3082. // The name of the on-premises instance.
  3083. InstanceName *string `locationName:"instanceName" type:"string"`
  3084. // The time at which the on-premises instance was registered.
  3085. RegisterTime *time.Time `locationName:"registerTime" type:"timestamp" timestampFormat:"unix"`
  3086. // The tags currently associated with the on-premises instance.
  3087. Tags []*Tag `locationName:"tags" type:"list"`
  3088. }
  3089. // String returns the string representation
  3090. func (s InstanceInfo) String() string {
  3091. return awsutil.Prettify(s)
  3092. }
  3093. // GoString returns the string representation
  3094. func (s InstanceInfo) GoString() string {
  3095. return s.String()
  3096. }
  3097. // Information about an instance in a deployment.
  3098. type InstanceSummary struct {
  3099. _ struct{} `type:"structure"`
  3100. // The deployment ID.
  3101. DeploymentId *string `locationName:"deploymentId" type:"string"`
  3102. // The instance ID.
  3103. InstanceId *string `locationName:"instanceId" type:"string"`
  3104. // A timestamp indicating when the instance information was last updated.
  3105. LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp" timestampFormat:"unix"`
  3106. // A list of lifecycle events for this instance.
  3107. LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"`
  3108. // The deployment status for this instance:
  3109. //
  3110. // Pending: The deployment is pending for this instance. In Progress: The
  3111. // deployment is in progress for this instance. Succeeded: The deployment has
  3112. // succeeded for this instance. Failed: The deployment has failed for this instance.
  3113. // Skipped: The deployment has been skipped for this instance. Unknown: The
  3114. // deployment status is unknown for this instance.
  3115. Status *string `locationName:"status" type:"string" enum:"InstanceStatus"`
  3116. }
  3117. // String returns the string representation
  3118. func (s InstanceSummary) String() string {
  3119. return awsutil.Prettify(s)
  3120. }
  3121. // GoString returns the string representation
  3122. func (s InstanceSummary) GoString() string {
  3123. return s.String()
  3124. }
  3125. // Information about a deployment lifecycle event.
  3126. type LifecycleEvent struct {
  3127. _ struct{} `type:"structure"`
  3128. // Diagnostic information about the deployment lifecycle event.
  3129. Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"`
  3130. // A timestamp indicating when the deployment lifecycle event ended.
  3131. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`
  3132. // The deployment lifecycle event name, such as ApplicationStop, BeforeInstall,
  3133. // AfterInstall, ApplicationStart, or ValidateService.
  3134. LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"`
  3135. // A timestamp indicating when the deployment lifecycle event started.
  3136. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
  3137. // The deployment lifecycle event status:
  3138. //
  3139. // Pending: The deployment lifecycle event is pending. InProgress: The deployment
  3140. // lifecycle event is in progress. Succeeded: The deployment lifecycle event
  3141. // ran successfully. Failed: The deployment lifecycle event has failed. Skipped:
  3142. // The deployment lifecycle event has been skipped. Unknown: The deployment
  3143. // lifecycle event is unknown.
  3144. Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"`
  3145. }
  3146. // String returns the string representation
  3147. func (s LifecycleEvent) String() string {
  3148. return awsutil.Prettify(s)
  3149. }
  3150. // GoString returns the string representation
  3151. func (s LifecycleEvent) GoString() string {
  3152. return s.String()
  3153. }
  3154. // Represents the input of a list application revisions operation.
  3155. type ListApplicationRevisionsInput struct {
  3156. _ struct{} `type:"structure"`
  3157. // The name of an AWS CodeDeploy application associated with the applicable
  3158. // IAM user or AWS account.
  3159. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3160. // Whether to list revisions based on whether the revision is the target revision
  3161. // of an deployment group:
  3162. //
  3163. // include: List revisions that are target revisions of a deployment group.
  3164. // exclude: Do not list revisions that are target revisions of a deployment
  3165. // group. ignore: List all revisions.
  3166. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"`
  3167. // An identifier returned from the previous list application revisions call.
  3168. // It can be used to return the next set of applications in the list.
  3169. NextToken *string `locationName:"nextToken" type:"string"`
  3170. // An Amazon S3 bucket name to limit the search for revisions.
  3171. //
  3172. // If set to null, all of the user's buckets will be searched.
  3173. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  3174. // A key prefix for the set of Amazon S3 objects to limit the search for revisions.
  3175. S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`
  3176. // The column name to use to sort the list results:
  3177. //
  3178. // registerTime: Sort by the time the revisions were registered with AWS CodeDeploy.
  3179. // firstUsedTime: Sort by the time the revisions were first used in a deployment.
  3180. // lastUsedTime: Sort by the time the revisions were last used in a deployment.
  3181. // If not specified or set to null, the results will be returned in an arbitrary
  3182. // order.
  3183. SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"`
  3184. // The order in which to sort the list results:
  3185. //
  3186. // ascending: ascending order. descending: descending order. If not specified,
  3187. // the results will be sorted in ascending order.
  3188. //
  3189. // If set to null, the results will be sorted in an arbitrary order.
  3190. SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"`
  3191. }
  3192. // String returns the string representation
  3193. func (s ListApplicationRevisionsInput) String() string {
  3194. return awsutil.Prettify(s)
  3195. }
  3196. // GoString returns the string representation
  3197. func (s ListApplicationRevisionsInput) GoString() string {
  3198. return s.String()
  3199. }
  3200. // Validate inspects the fields of the type to determine if they are valid.
  3201. func (s *ListApplicationRevisionsInput) Validate() error {
  3202. invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"}
  3203. if s.ApplicationName == nil {
  3204. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3205. }
  3206. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3207. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3208. }
  3209. if invalidParams.Len() > 0 {
  3210. return invalidParams
  3211. }
  3212. return nil
  3213. }
  3214. // Represents the output of a list application revisions operation.
  3215. type ListApplicationRevisionsOutput struct {
  3216. _ struct{} `type:"structure"`
  3217. // If a large amount of information is returned, an identifier will also be
  3218. // returned. It can be used in a subsequent list application revisions call
  3219. // to return the next set of application revisions in the list.
  3220. NextToken *string `locationName:"nextToken" type:"string"`
  3221. // A list of locations that contain the matching revisions.
  3222. Revisions []*RevisionLocation `locationName:"revisions" type:"list"`
  3223. }
  3224. // String returns the string representation
  3225. func (s ListApplicationRevisionsOutput) String() string {
  3226. return awsutil.Prettify(s)
  3227. }
  3228. // GoString returns the string representation
  3229. func (s ListApplicationRevisionsOutput) GoString() string {
  3230. return s.String()
  3231. }
  3232. // Represents the input of a list applications operation.
  3233. type ListApplicationsInput struct {
  3234. _ struct{} `type:"structure"`
  3235. // An identifier returned from the previous list applications call. It can be
  3236. // used to return the next set of applications in the list.
  3237. NextToken *string `locationName:"nextToken" type:"string"`
  3238. }
  3239. // String returns the string representation
  3240. func (s ListApplicationsInput) String() string {
  3241. return awsutil.Prettify(s)
  3242. }
  3243. // GoString returns the string representation
  3244. func (s ListApplicationsInput) GoString() string {
  3245. return s.String()
  3246. }
  3247. // Represents the output of a list applications operation.
  3248. type ListApplicationsOutput struct {
  3249. _ struct{} `type:"structure"`
  3250. // A list of application names.
  3251. Applications []*string `locationName:"applications" type:"list"`
  3252. // If a large amount of information is returned, an identifier is also returned.
  3253. // It can be used in a subsequent list applications call to return the next
  3254. // set of applications, will also be returned. in the list.
  3255. NextToken *string `locationName:"nextToken" type:"string"`
  3256. }
  3257. // String returns the string representation
  3258. func (s ListApplicationsOutput) String() string {
  3259. return awsutil.Prettify(s)
  3260. }
  3261. // GoString returns the string representation
  3262. func (s ListApplicationsOutput) GoString() string {
  3263. return s.String()
  3264. }
  3265. // Represents the input of a list deployment configurations operation.
  3266. type ListDeploymentConfigsInput struct {
  3267. _ struct{} `type:"structure"`
  3268. // An identifier returned from the previous list deployment configurations call.
  3269. // It can be used to return the next set of deployment configurations in the
  3270. // list.
  3271. NextToken *string `locationName:"nextToken" type:"string"`
  3272. }
  3273. // String returns the string representation
  3274. func (s ListDeploymentConfigsInput) String() string {
  3275. return awsutil.Prettify(s)
  3276. }
  3277. // GoString returns the string representation
  3278. func (s ListDeploymentConfigsInput) GoString() string {
  3279. return s.String()
  3280. }
  3281. // Represents the output of a list deployment configurations operation.
  3282. type ListDeploymentConfigsOutput struct {
  3283. _ struct{} `type:"structure"`
  3284. // A list of deployment configurations, including built-in configurations such
  3285. // as CodeDeployDefault.OneAtATime.
  3286. DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"`
  3287. // If a large amount of information is returned, an identifier is also returned.
  3288. // It can be used in a subsequent list deployment configurations call to return
  3289. // the next set of deployment configurations in the list.
  3290. NextToken *string `locationName:"nextToken" type:"string"`
  3291. }
  3292. // String returns the string representation
  3293. func (s ListDeploymentConfigsOutput) String() string {
  3294. return awsutil.Prettify(s)
  3295. }
  3296. // GoString returns the string representation
  3297. func (s ListDeploymentConfigsOutput) GoString() string {
  3298. return s.String()
  3299. }
  3300. // Represents the input of a list deployment groups operation.
  3301. type ListDeploymentGroupsInput struct {
  3302. _ struct{} `type:"structure"`
  3303. // The name of an AWS CodeDeploy application associated with the applicable
  3304. // IAM user or AWS account.
  3305. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3306. // An identifier returned from the previous list deployment groups call. It
  3307. // can be used to return the next set of deployment groups in the list.
  3308. NextToken *string `locationName:"nextToken" type:"string"`
  3309. }
  3310. // String returns the string representation
  3311. func (s ListDeploymentGroupsInput) String() string {
  3312. return awsutil.Prettify(s)
  3313. }
  3314. // GoString returns the string representation
  3315. func (s ListDeploymentGroupsInput) GoString() string {
  3316. return s.String()
  3317. }
  3318. // Validate inspects the fields of the type to determine if they are valid.
  3319. func (s *ListDeploymentGroupsInput) Validate() error {
  3320. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"}
  3321. if s.ApplicationName == nil {
  3322. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3323. }
  3324. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3325. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3326. }
  3327. if invalidParams.Len() > 0 {
  3328. return invalidParams
  3329. }
  3330. return nil
  3331. }
  3332. // Represents the output of a list deployment groups operation.
  3333. type ListDeploymentGroupsOutput struct {
  3334. _ struct{} `type:"structure"`
  3335. // The application name.
  3336. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  3337. // A list of corresponding deployment group names.
  3338. DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"`
  3339. // If a large amount of information is returned, an identifier is also returned.
  3340. // It can be used in a subsequent list deployment groups call to return the
  3341. // next set of deployment groups in the list.
  3342. NextToken *string `locationName:"nextToken" type:"string"`
  3343. }
  3344. // String returns the string representation
  3345. func (s ListDeploymentGroupsOutput) String() string {
  3346. return awsutil.Prettify(s)
  3347. }
  3348. // GoString returns the string representation
  3349. func (s ListDeploymentGroupsOutput) GoString() string {
  3350. return s.String()
  3351. }
  3352. // Represents the input of a list deployment instances operation.
  3353. type ListDeploymentInstancesInput struct {
  3354. _ struct{} `type:"structure"`
  3355. // The unique ID of a deployment.
  3356. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  3357. // A subset of instances to list by status:
  3358. //
  3359. // Pending: Include those instance with pending deployments. InProgress: Include
  3360. // those instance where deployments are still in progress. Succeeded: Include
  3361. // those instances with successful deployments. Failed: Include those instance
  3362. // with failed deployments. Skipped: Include those instance with skipped deployments.
  3363. // Unknown: Include those instance with deployments in an unknown state.
  3364. InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"`
  3365. // An identifier returned from the previous list deployment instances call.
  3366. // It can be used to return the next set of deployment instances in the list.
  3367. NextToken *string `locationName:"nextToken" type:"string"`
  3368. }
  3369. // String returns the string representation
  3370. func (s ListDeploymentInstancesInput) String() string {
  3371. return awsutil.Prettify(s)
  3372. }
  3373. // GoString returns the string representation
  3374. func (s ListDeploymentInstancesInput) GoString() string {
  3375. return s.String()
  3376. }
  3377. // Validate inspects the fields of the type to determine if they are valid.
  3378. func (s *ListDeploymentInstancesInput) Validate() error {
  3379. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"}
  3380. if s.DeploymentId == nil {
  3381. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  3382. }
  3383. if invalidParams.Len() > 0 {
  3384. return invalidParams
  3385. }
  3386. return nil
  3387. }
  3388. // Represents the output of a list deployment instances operation.
  3389. type ListDeploymentInstancesOutput struct {
  3390. _ struct{} `type:"structure"`
  3391. // A list of instance IDs.
  3392. InstancesList []*string `locationName:"instancesList" type:"list"`
  3393. // If a large amount of information is returned, an identifier is also returned.
  3394. // It can be used in a subsequent list deployment instances call to return the
  3395. // next set of deployment instances in the list.
  3396. NextToken *string `locationName:"nextToken" type:"string"`
  3397. }
  3398. // String returns the string representation
  3399. func (s ListDeploymentInstancesOutput) String() string {
  3400. return awsutil.Prettify(s)
  3401. }
  3402. // GoString returns the string representation
  3403. func (s ListDeploymentInstancesOutput) GoString() string {
  3404. return s.String()
  3405. }
  3406. // Represents the input of a list deployments operation.
  3407. type ListDeploymentsInput struct {
  3408. _ struct{} `type:"structure"`
  3409. // The name of an AWS CodeDeploy application associated with the applicable
  3410. // IAM user or AWS account.
  3411. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  3412. // A time range (start and end) for returning a subset of the list of deployments.
  3413. CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"`
  3414. // The name of an existing deployment group for the specified application.
  3415. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"`
  3416. // A subset of deployments to list by status:
  3417. //
  3418. // Created: Include created deployments in the resulting list. Queued: Include
  3419. // queued deployments in the resulting list. In Progress: Include in-progress
  3420. // deployments in the resulting list. Succeeded: Include successful deployments
  3421. // in the resulting list. Failed: Include failed deployments in the resulting
  3422. // list. Stopped: Include stopped deployments in the resulting list.
  3423. IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"`
  3424. // An identifier returned from the previous list deployments call. It can be
  3425. // used to return the next set of deployments in the list.
  3426. NextToken *string `locationName:"nextToken" type:"string"`
  3427. }
  3428. // String returns the string representation
  3429. func (s ListDeploymentsInput) String() string {
  3430. return awsutil.Prettify(s)
  3431. }
  3432. // GoString returns the string representation
  3433. func (s ListDeploymentsInput) GoString() string {
  3434. return s.String()
  3435. }
  3436. // Validate inspects the fields of the type to determine if they are valid.
  3437. func (s *ListDeploymentsInput) Validate() error {
  3438. invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"}
  3439. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3440. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3441. }
  3442. if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 {
  3443. invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1))
  3444. }
  3445. if invalidParams.Len() > 0 {
  3446. return invalidParams
  3447. }
  3448. return nil
  3449. }
  3450. // Represents the output of a list deployments operation.
  3451. type ListDeploymentsOutput struct {
  3452. _ struct{} `type:"structure"`
  3453. // A list of deployment IDs.
  3454. Deployments []*string `locationName:"deployments" type:"list"`
  3455. // If a large amount of information is returned, an identifier is also returned.
  3456. // It can be used in a subsequent list deployments call to return the next set
  3457. // of deployments in the list.
  3458. NextToken *string `locationName:"nextToken" type:"string"`
  3459. }
  3460. // String returns the string representation
  3461. func (s ListDeploymentsOutput) String() string {
  3462. return awsutil.Prettify(s)
  3463. }
  3464. // GoString returns the string representation
  3465. func (s ListDeploymentsOutput) GoString() string {
  3466. return s.String()
  3467. }
  3468. // Represents the input of a list on-premises instances operation.
  3469. //
  3470. // .
  3471. type ListOnPremisesInstancesInput struct {
  3472. _ struct{} `type:"structure"`
  3473. // An identifier returned from the previous list on-premises instances call.
  3474. // It can be used to return the next set of on-premises instances in the list.
  3475. NextToken *string `locationName:"nextToken" type:"string"`
  3476. // The registration status of the on-premises instances:
  3477. //
  3478. // Deregistered: Include deregistered on-premises instances in the resulting
  3479. // list. Registered: Include registered on-premises instances in the resulting
  3480. // list.
  3481. RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"`
  3482. // The on-premises instance tags that will be used to restrict the corresponding
  3483. // on-premises instance names returned.
  3484. TagFilters []*TagFilter `locationName:"tagFilters" type:"list"`
  3485. }
  3486. // String returns the string representation
  3487. func (s ListOnPremisesInstancesInput) String() string {
  3488. return awsutil.Prettify(s)
  3489. }
  3490. // GoString returns the string representation
  3491. func (s ListOnPremisesInstancesInput) GoString() string {
  3492. return s.String()
  3493. }
  3494. // Represents the output of list on-premises instances operation.
  3495. type ListOnPremisesInstancesOutput struct {
  3496. _ struct{} `type:"structure"`
  3497. // The list of matching on-premises instance names.
  3498. InstanceNames []*string `locationName:"instanceNames" type:"list"`
  3499. // If a large amount of information is returned, an identifier is also returned.
  3500. // It can be used in a subsequent list on-premises instances call to return
  3501. // the next set of on-premises instances in the list.
  3502. NextToken *string `locationName:"nextToken" type:"string"`
  3503. }
  3504. // String returns the string representation
  3505. func (s ListOnPremisesInstancesOutput) String() string {
  3506. return awsutil.Prettify(s)
  3507. }
  3508. // GoString returns the string representation
  3509. func (s ListOnPremisesInstancesOutput) GoString() string {
  3510. return s.String()
  3511. }
  3512. // Information about minimum healthy instance.
  3513. type MinimumHealthyHosts struct {
  3514. _ struct{} `type:"structure"`
  3515. // The minimum healthy instance type:
  3516. //
  3517. // HOST_COUNT: The minimum number of healthy instance as an absolute value.
  3518. // FLEET_PERCENT: The minimum number of healthy instance as a percentage of
  3519. // the total number of instance in the deployment. In an example of nine instance,
  3520. // if a HOST_COUNT of six is specified, deploy to up to three instances at a
  3521. // time. The deployment will be successful if six or more instances are deployed
  3522. // to successfully; otherwise, the deployment fails. If a FLEET_PERCENT of 40
  3523. // is specified, deploy to up to five instance at a time. The deployment will
  3524. // be successful if four or more instance are deployed to successfully; otherwise,
  3525. // the deployment fails.
  3526. //
  3527. // In a call to the get deployment configuration operation, CodeDeployDefault.OneAtATime
  3528. // will return a minimum healthy instance type of MOST_CONCURRENCY and a value
  3529. // of 1. This means a deployment to only one instance at a time. (You cannot
  3530. // set the type to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In
  3531. // addition, with CodeDeployDefault.OneAtATime, AWS CodeDeploy will try to ensure
  3532. // that all instances but one are kept in a healthy state during the deployment.
  3533. // Although this allows one instance at a time to be taken offline for a new
  3534. // deployment, it also means that if the deployment to the last instance fails,
  3535. // the overall deployment still succeeds.
  3536. Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"`
  3537. // The minimum healthy instance value.
  3538. Value *int64 `locationName:"value" type:"integer"`
  3539. }
  3540. // String returns the string representation
  3541. func (s MinimumHealthyHosts) String() string {
  3542. return awsutil.Prettify(s)
  3543. }
  3544. // GoString returns the string representation
  3545. func (s MinimumHealthyHosts) GoString() string {
  3546. return s.String()
  3547. }
  3548. // Represents the input of a register application revision operation.
  3549. type RegisterApplicationRevisionInput struct {
  3550. _ struct{} `type:"structure"`
  3551. // The name of an AWS CodeDeploy application associated with the applicable
  3552. // IAM user or AWS account.
  3553. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3554. // A comment about the revision.
  3555. Description *string `locationName:"description" type:"string"`
  3556. // Information about the application revision to register, including type and
  3557. // location.
  3558. Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"`
  3559. }
  3560. // String returns the string representation
  3561. func (s RegisterApplicationRevisionInput) String() string {
  3562. return awsutil.Prettify(s)
  3563. }
  3564. // GoString returns the string representation
  3565. func (s RegisterApplicationRevisionInput) GoString() string {
  3566. return s.String()
  3567. }
  3568. // Validate inspects the fields of the type to determine if they are valid.
  3569. func (s *RegisterApplicationRevisionInput) Validate() error {
  3570. invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"}
  3571. if s.ApplicationName == nil {
  3572. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3573. }
  3574. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3575. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3576. }
  3577. if s.Revision == nil {
  3578. invalidParams.Add(request.NewErrParamRequired("Revision"))
  3579. }
  3580. if invalidParams.Len() > 0 {
  3581. return invalidParams
  3582. }
  3583. return nil
  3584. }
  3585. type RegisterApplicationRevisionOutput struct {
  3586. _ struct{} `type:"structure"`
  3587. }
  3588. // String returns the string representation
  3589. func (s RegisterApplicationRevisionOutput) String() string {
  3590. return awsutil.Prettify(s)
  3591. }
  3592. // GoString returns the string representation
  3593. func (s RegisterApplicationRevisionOutput) GoString() string {
  3594. return s.String()
  3595. }
  3596. // Represents the input of the register on-premises instance operation.
  3597. type RegisterOnPremisesInstanceInput struct {
  3598. _ struct{} `type:"structure"`
  3599. // The ARN of the IAM user to associate with the on-premises instance.
  3600. IamUserArn *string `locationName:"iamUserArn" type:"string" required:"true"`
  3601. // The name of the on-premises instance to register.
  3602. InstanceName *string `locationName:"instanceName" type:"string" required:"true"`
  3603. }
  3604. // String returns the string representation
  3605. func (s RegisterOnPremisesInstanceInput) String() string {
  3606. return awsutil.Prettify(s)
  3607. }
  3608. // GoString returns the string representation
  3609. func (s RegisterOnPremisesInstanceInput) GoString() string {
  3610. return s.String()
  3611. }
  3612. // Validate inspects the fields of the type to determine if they are valid.
  3613. func (s *RegisterOnPremisesInstanceInput) Validate() error {
  3614. invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"}
  3615. if s.IamUserArn == nil {
  3616. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  3617. }
  3618. if s.InstanceName == nil {
  3619. invalidParams.Add(request.NewErrParamRequired("InstanceName"))
  3620. }
  3621. if invalidParams.Len() > 0 {
  3622. return invalidParams
  3623. }
  3624. return nil
  3625. }
  3626. type RegisterOnPremisesInstanceOutput struct {
  3627. _ struct{} `type:"structure"`
  3628. }
  3629. // String returns the string representation
  3630. func (s RegisterOnPremisesInstanceOutput) String() string {
  3631. return awsutil.Prettify(s)
  3632. }
  3633. // GoString returns the string representation
  3634. func (s RegisterOnPremisesInstanceOutput) GoString() string {
  3635. return s.String()
  3636. }
  3637. // Represents the input of a remove tags from on-premises instances operation.
  3638. type RemoveTagsFromOnPremisesInstancesInput struct {
  3639. _ struct{} `type:"structure"`
  3640. // The names of the on-premises instances from which to remove tags.
  3641. InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"`
  3642. // The tag key-value pairs to remove from the on-premises instances.
  3643. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  3644. }
  3645. // String returns the string representation
  3646. func (s RemoveTagsFromOnPremisesInstancesInput) String() string {
  3647. return awsutil.Prettify(s)
  3648. }
  3649. // GoString returns the string representation
  3650. func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string {
  3651. return s.String()
  3652. }
  3653. // Validate inspects the fields of the type to determine if they are valid.
  3654. func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error {
  3655. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"}
  3656. if s.InstanceNames == nil {
  3657. invalidParams.Add(request.NewErrParamRequired("InstanceNames"))
  3658. }
  3659. if s.Tags == nil {
  3660. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3661. }
  3662. if invalidParams.Len() > 0 {
  3663. return invalidParams
  3664. }
  3665. return nil
  3666. }
  3667. type RemoveTagsFromOnPremisesInstancesOutput struct {
  3668. _ struct{} `type:"structure"`
  3669. }
  3670. // String returns the string representation
  3671. func (s RemoveTagsFromOnPremisesInstancesOutput) String() string {
  3672. return awsutil.Prettify(s)
  3673. }
  3674. // GoString returns the string representation
  3675. func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string {
  3676. return s.String()
  3677. }
  3678. // Information about an application revision.
  3679. type RevisionInfo struct {
  3680. _ struct{} `type:"structure"`
  3681. // Information about an application revision.
  3682. GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"`
  3683. // Information about the location of an application revision.
  3684. RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"`
  3685. }
  3686. // String returns the string representation
  3687. func (s RevisionInfo) String() string {
  3688. return awsutil.Prettify(s)
  3689. }
  3690. // GoString returns the string representation
  3691. func (s RevisionInfo) GoString() string {
  3692. return s.String()
  3693. }
  3694. // Information about the location of an application revision.
  3695. type RevisionLocation struct {
  3696. _ struct{} `type:"structure"`
  3697. // Information about the location of application artifacts stored in GitHub.
  3698. GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"`
  3699. // The type of application revision:
  3700. //
  3701. // S3: An application revision stored in Amazon S3. GitHub: An application
  3702. // revision stored in GitHub.
  3703. RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"`
  3704. // Information about the location of application artifacts stored in Amazon
  3705. // S3.
  3706. S3Location *S3Location `locationName:"s3Location" type:"structure"`
  3707. }
  3708. // String returns the string representation
  3709. func (s RevisionLocation) String() string {
  3710. return awsutil.Prettify(s)
  3711. }
  3712. // GoString returns the string representation
  3713. func (s RevisionLocation) GoString() string {
  3714. return s.String()
  3715. }
  3716. // Information about the location of application artifacts stored in Amazon
  3717. // S3.
  3718. type S3Location struct {
  3719. _ struct{} `type:"structure"`
  3720. // The name of the Amazon S3 bucket where the application revision is stored.
  3721. Bucket *string `locationName:"bucket" type:"string"`
  3722. // The file type of the application revision. Must be one of the following:
  3723. //
  3724. // tar: A tar archive file. tgz: A compressed tar archive file. zip: A zip
  3725. // archive file.
  3726. BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"`
  3727. // The ETag of the Amazon S3 object that represents the bundled artifacts for
  3728. // the application revision.
  3729. //
  3730. // If the ETag is not specified as an input parameter, ETag validation of the
  3731. // object will be skipped.
  3732. ETag *string `locationName:"eTag" type:"string"`
  3733. // The name of the Amazon S3 object that represents the bundled artifacts for
  3734. // the application revision.
  3735. Key *string `locationName:"key" type:"string"`
  3736. // A specific version of the Amazon S3 object that represents the bundled artifacts
  3737. // for the application revision.
  3738. //
  3739. // If the version is not specified, the system will use the most recent version
  3740. // by default.
  3741. Version *string `locationName:"version" type:"string"`
  3742. }
  3743. // String returns the string representation
  3744. func (s S3Location) String() string {
  3745. return awsutil.Prettify(s)
  3746. }
  3747. // GoString returns the string representation
  3748. func (s S3Location) GoString() string {
  3749. return s.String()
  3750. }
  3751. // Represents the input of a stop deployment operation.
  3752. type StopDeploymentInput struct {
  3753. _ struct{} `type:"structure"`
  3754. // The unique ID of a deployment.
  3755. DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"`
  3756. }
  3757. // String returns the string representation
  3758. func (s StopDeploymentInput) String() string {
  3759. return awsutil.Prettify(s)
  3760. }
  3761. // GoString returns the string representation
  3762. func (s StopDeploymentInput) GoString() string {
  3763. return s.String()
  3764. }
  3765. // Validate inspects the fields of the type to determine if they are valid.
  3766. func (s *StopDeploymentInput) Validate() error {
  3767. invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"}
  3768. if s.DeploymentId == nil {
  3769. invalidParams.Add(request.NewErrParamRequired("DeploymentId"))
  3770. }
  3771. if invalidParams.Len() > 0 {
  3772. return invalidParams
  3773. }
  3774. return nil
  3775. }
  3776. // Represents the output of a stop deployment operation.
  3777. type StopDeploymentOutput struct {
  3778. _ struct{} `type:"structure"`
  3779. // The status of the stop deployment operation:
  3780. //
  3781. // Pending: The stop operation is pending. Succeeded: The stop operation was
  3782. // successful.
  3783. Status *string `locationName:"status" type:"string" enum:"StopStatus"`
  3784. // An accompanying status message.
  3785. StatusMessage *string `locationName:"statusMessage" type:"string"`
  3786. }
  3787. // String returns the string representation
  3788. func (s StopDeploymentOutput) String() string {
  3789. return awsutil.Prettify(s)
  3790. }
  3791. // GoString returns the string representation
  3792. func (s StopDeploymentOutput) GoString() string {
  3793. return s.String()
  3794. }
  3795. // Information about a tag.
  3796. type Tag struct {
  3797. _ struct{} `type:"structure"`
  3798. // The tag's key.
  3799. Key *string `type:"string"`
  3800. // The tag's value.
  3801. Value *string `type:"string"`
  3802. }
  3803. // String returns the string representation
  3804. func (s Tag) String() string {
  3805. return awsutil.Prettify(s)
  3806. }
  3807. // GoString returns the string representation
  3808. func (s Tag) GoString() string {
  3809. return s.String()
  3810. }
  3811. // Information about an on-premises instance tag filter.
  3812. type TagFilter struct {
  3813. _ struct{} `type:"structure"`
  3814. // The on-premises instance tag filter key.
  3815. Key *string `type:"string"`
  3816. // The on-premises instance tag filter type:
  3817. //
  3818. // KEY_ONLY: Key only. VALUE_ONLY: Value only. KEY_AND_VALUE: Key and value.
  3819. Type *string `type:"string" enum:"TagFilterType"`
  3820. // The on-premises instance tag filter value.
  3821. Value *string `type:"string"`
  3822. }
  3823. // String returns the string representation
  3824. func (s TagFilter) String() string {
  3825. return awsutil.Prettify(s)
  3826. }
  3827. // GoString returns the string representation
  3828. func (s TagFilter) GoString() string {
  3829. return s.String()
  3830. }
  3831. // Information about a time range.
  3832. type TimeRange struct {
  3833. _ struct{} `type:"structure"`
  3834. // The end time of the time range.
  3835. //
  3836. // Specify null to leave the end time open-ended.
  3837. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"unix"`
  3838. // The start time of the time range.
  3839. //
  3840. // Specify null to leave the start time open-ended.
  3841. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"unix"`
  3842. }
  3843. // String returns the string representation
  3844. func (s TimeRange) String() string {
  3845. return awsutil.Prettify(s)
  3846. }
  3847. // GoString returns the string representation
  3848. func (s TimeRange) GoString() string {
  3849. return s.String()
  3850. }
  3851. // Information about notification triggers for the deployment group.
  3852. type TriggerConfig struct {
  3853. _ struct{} `type:"structure"`
  3854. // The event type or types for which notifications are triggered.
  3855. //
  3856. // The following event type values are supported:
  3857. //
  3858. // DEPLOYMENT_START DEPLOYMENT_SUCCESS DEPLOYMENT_FAILURE DEPLOYMENT_STOP
  3859. // INSTANCE_START INSTANCE_SUCCESS INSTANCE_FAILURE
  3860. TriggerEvents []*string `locationName:"triggerEvents" type:"list"`
  3861. // The name of the notification trigger.
  3862. TriggerName *string `locationName:"triggerName" type:"string"`
  3863. // The ARN of the Amazon Simple Notification Service topic through which notifications
  3864. // about deployment or instance events are sent.
  3865. TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"`
  3866. }
  3867. // String returns the string representation
  3868. func (s TriggerConfig) String() string {
  3869. return awsutil.Prettify(s)
  3870. }
  3871. // GoString returns the string representation
  3872. func (s TriggerConfig) GoString() string {
  3873. return s.String()
  3874. }
  3875. // Represents the input of an update application operation.
  3876. type UpdateApplicationInput struct {
  3877. _ struct{} `type:"structure"`
  3878. // The current name of the application you want to change.
  3879. ApplicationName *string `locationName:"applicationName" min:"1" type:"string"`
  3880. // The new name to give the application.
  3881. NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"`
  3882. }
  3883. // String returns the string representation
  3884. func (s UpdateApplicationInput) String() string {
  3885. return awsutil.Prettify(s)
  3886. }
  3887. // GoString returns the string representation
  3888. func (s UpdateApplicationInput) GoString() string {
  3889. return s.String()
  3890. }
  3891. // Validate inspects the fields of the type to determine if they are valid.
  3892. func (s *UpdateApplicationInput) Validate() error {
  3893. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  3894. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3895. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3896. }
  3897. if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 {
  3898. invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1))
  3899. }
  3900. if invalidParams.Len() > 0 {
  3901. return invalidParams
  3902. }
  3903. return nil
  3904. }
  3905. type UpdateApplicationOutput struct {
  3906. _ struct{} `type:"structure"`
  3907. }
  3908. // String returns the string representation
  3909. func (s UpdateApplicationOutput) String() string {
  3910. return awsutil.Prettify(s)
  3911. }
  3912. // GoString returns the string representation
  3913. func (s UpdateApplicationOutput) GoString() string {
  3914. return s.String()
  3915. }
  3916. // Represents the input of an update deployment group operation.
  3917. type UpdateDeploymentGroupInput struct {
  3918. _ struct{} `type:"structure"`
  3919. // The application name corresponding to the deployment group to update.
  3920. ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"`
  3921. // The replacement list of Auto Scaling groups to be included in the deployment
  3922. // group, if you want to change them. To keep the Auto Scaling groups, enter
  3923. // their names. To remove Auto Scaling groups, do not enter any Auto Scaling
  3924. // group names.
  3925. AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"`
  3926. // The current name of the deployment group.
  3927. CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"`
  3928. // The replacement deployment configuration name to use, if you want to change
  3929. // it.
  3930. DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"`
  3931. // The replacement set of Amazon EC2 tags on which to filter, if you want to
  3932. // change them. To keep the existing tags, enter their names. To remove tags,
  3933. // do not enter any tag names.
  3934. Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"`
  3935. // The new name of the deployment group, if you want to change it.
  3936. NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"`
  3937. // The replacement set of on-premises instance tags on which to filter, if you
  3938. // want to change them. To keep the existing tags, enter their names. To remove
  3939. // tags, do not enter any tag names.
  3940. OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"`
  3941. // A replacement ARN for the service role, if you want to change it.
  3942. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"`
  3943. // Information about triggers to change when the deployment group is updated.
  3944. TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"`
  3945. }
  3946. // String returns the string representation
  3947. func (s UpdateDeploymentGroupInput) String() string {
  3948. return awsutil.Prettify(s)
  3949. }
  3950. // GoString returns the string representation
  3951. func (s UpdateDeploymentGroupInput) GoString() string {
  3952. return s.String()
  3953. }
  3954. // Validate inspects the fields of the type to determine if they are valid.
  3955. func (s *UpdateDeploymentGroupInput) Validate() error {
  3956. invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"}
  3957. if s.ApplicationName == nil {
  3958. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  3959. }
  3960. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3961. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3962. }
  3963. if s.CurrentDeploymentGroupName == nil {
  3964. invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName"))
  3965. }
  3966. if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 {
  3967. invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1))
  3968. }
  3969. if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 {
  3970. invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1))
  3971. }
  3972. if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 {
  3973. invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1))
  3974. }
  3975. if invalidParams.Len() > 0 {
  3976. return invalidParams
  3977. }
  3978. return nil
  3979. }
  3980. // Represents the output of an update deployment group operation.
  3981. type UpdateDeploymentGroupOutput struct {
  3982. _ struct{} `type:"structure"`
  3983. // If the output contains no data, and the corresponding deployment group contained
  3984. // at least one Auto Scaling group, AWS CodeDeploy successfully removed all
  3985. // corresponding Auto Scaling lifecycle event hooks from the AWS account. If
  3986. // the output contains data, AWS CodeDeploy could not remove some Auto Scaling
  3987. // lifecycle event hooks from the AWS account.
  3988. HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"`
  3989. }
  3990. // String returns the string representation
  3991. func (s UpdateDeploymentGroupOutput) String() string {
  3992. return awsutil.Prettify(s)
  3993. }
  3994. // GoString returns the string representation
  3995. func (s UpdateDeploymentGroupOutput) GoString() string {
  3996. return s.String()
  3997. }
  3998. const (
  3999. // @enum ApplicationRevisionSortBy
  4000. ApplicationRevisionSortByRegisterTime = "registerTime"
  4001. // @enum ApplicationRevisionSortBy
  4002. ApplicationRevisionSortByFirstUsedTime = "firstUsedTime"
  4003. // @enum ApplicationRevisionSortBy
  4004. ApplicationRevisionSortByLastUsedTime = "lastUsedTime"
  4005. )
  4006. const (
  4007. // @enum BundleType
  4008. BundleTypeTar = "tar"
  4009. // @enum BundleType
  4010. BundleTypeTgz = "tgz"
  4011. // @enum BundleType
  4012. BundleTypeZip = "zip"
  4013. )
  4014. const (
  4015. // @enum DeploymentCreator
  4016. DeploymentCreatorUser = "user"
  4017. // @enum DeploymentCreator
  4018. DeploymentCreatorAutoscaling = "autoscaling"
  4019. )
  4020. const (
  4021. // @enum DeploymentStatus
  4022. DeploymentStatusCreated = "Created"
  4023. // @enum DeploymentStatus
  4024. DeploymentStatusQueued = "Queued"
  4025. // @enum DeploymentStatus
  4026. DeploymentStatusInProgress = "InProgress"
  4027. // @enum DeploymentStatus
  4028. DeploymentStatusSucceeded = "Succeeded"
  4029. // @enum DeploymentStatus
  4030. DeploymentStatusFailed = "Failed"
  4031. // @enum DeploymentStatus
  4032. DeploymentStatusStopped = "Stopped"
  4033. )
  4034. const (
  4035. // @enum EC2TagFilterType
  4036. EC2TagFilterTypeKeyOnly = "KEY_ONLY"
  4037. // @enum EC2TagFilterType
  4038. EC2TagFilterTypeValueOnly = "VALUE_ONLY"
  4039. // @enum EC2TagFilterType
  4040. EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
  4041. )
  4042. const (
  4043. // @enum ErrorCode
  4044. ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING"
  4045. // @enum ErrorCode
  4046. ErrorCodeApplicationMissing = "APPLICATION_MISSING"
  4047. // @enum ErrorCode
  4048. ErrorCodeRevisionMissing = "REVISION_MISSING"
  4049. // @enum ErrorCode
  4050. ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING"
  4051. // @enum ErrorCode
  4052. ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS"
  4053. // @enum ErrorCode
  4054. ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION"
  4055. // @enum ErrorCode
  4056. ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES"
  4057. // @enum ErrorCode
  4058. ErrorCodeNoInstances = "NO_INSTANCES"
  4059. // @enum ErrorCode
  4060. ErrorCodeTimeout = "TIMEOUT"
  4061. // @enum ErrorCode
  4062. ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID"
  4063. // @enum ErrorCode
  4064. ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS"
  4065. // @enum ErrorCode
  4066. ErrorCodeInternalError = "INTERNAL_ERROR"
  4067. // @enum ErrorCode
  4068. ErrorCodeThrottled = "THROTTLED"
  4069. )
  4070. const (
  4071. // @enum InstanceStatus
  4072. InstanceStatusPending = "Pending"
  4073. // @enum InstanceStatus
  4074. InstanceStatusInProgress = "InProgress"
  4075. // @enum InstanceStatus
  4076. InstanceStatusSucceeded = "Succeeded"
  4077. // @enum InstanceStatus
  4078. InstanceStatusFailed = "Failed"
  4079. // @enum InstanceStatus
  4080. InstanceStatusSkipped = "Skipped"
  4081. // @enum InstanceStatus
  4082. InstanceStatusUnknown = "Unknown"
  4083. )
  4084. const (
  4085. // @enum LifecycleErrorCode
  4086. LifecycleErrorCodeSuccess = "Success"
  4087. // @enum LifecycleErrorCode
  4088. LifecycleErrorCodeScriptMissing = "ScriptMissing"
  4089. // @enum LifecycleErrorCode
  4090. LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable"
  4091. // @enum LifecycleErrorCode
  4092. LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut"
  4093. // @enum LifecycleErrorCode
  4094. LifecycleErrorCodeScriptFailed = "ScriptFailed"
  4095. // @enum LifecycleErrorCode
  4096. LifecycleErrorCodeUnknownError = "UnknownError"
  4097. )
  4098. const (
  4099. // @enum LifecycleEventStatus
  4100. LifecycleEventStatusPending = "Pending"
  4101. // @enum LifecycleEventStatus
  4102. LifecycleEventStatusInProgress = "InProgress"
  4103. // @enum LifecycleEventStatus
  4104. LifecycleEventStatusSucceeded = "Succeeded"
  4105. // @enum LifecycleEventStatus
  4106. LifecycleEventStatusFailed = "Failed"
  4107. // @enum LifecycleEventStatus
  4108. LifecycleEventStatusSkipped = "Skipped"
  4109. // @enum LifecycleEventStatus
  4110. LifecycleEventStatusUnknown = "Unknown"
  4111. )
  4112. const (
  4113. // @enum ListStateFilterAction
  4114. ListStateFilterActionInclude = "include"
  4115. // @enum ListStateFilterAction
  4116. ListStateFilterActionExclude = "exclude"
  4117. // @enum ListStateFilterAction
  4118. ListStateFilterActionIgnore = "ignore"
  4119. )
  4120. const (
  4121. // @enum MinimumHealthyHostsType
  4122. MinimumHealthyHostsTypeHostCount = "HOST_COUNT"
  4123. // @enum MinimumHealthyHostsType
  4124. MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT"
  4125. )
  4126. const (
  4127. // @enum RegistrationStatus
  4128. RegistrationStatusRegistered = "Registered"
  4129. // @enum RegistrationStatus
  4130. RegistrationStatusDeregistered = "Deregistered"
  4131. )
  4132. const (
  4133. // @enum RevisionLocationType
  4134. RevisionLocationTypeS3 = "S3"
  4135. // @enum RevisionLocationType
  4136. RevisionLocationTypeGitHub = "GitHub"
  4137. )
  4138. const (
  4139. // @enum SortOrder
  4140. SortOrderAscending = "ascending"
  4141. // @enum SortOrder
  4142. SortOrderDescending = "descending"
  4143. )
  4144. const (
  4145. // @enum StopStatus
  4146. StopStatusPending = "Pending"
  4147. // @enum StopStatus
  4148. StopStatusSucceeded = "Succeeded"
  4149. )
  4150. const (
  4151. // @enum TagFilterType
  4152. TagFilterTypeKeyOnly = "KEY_ONLY"
  4153. // @enum TagFilterType
  4154. TagFilterTypeValueOnly = "VALUE_ONLY"
  4155. // @enum TagFilterType
  4156. TagFilterTypeKeyAndValue = "KEY_AND_VALUE"
  4157. )
  4158. const (
  4159. // @enum TriggerEventType
  4160. TriggerEventTypeDeploymentStart = "DeploymentStart"
  4161. // @enum TriggerEventType
  4162. TriggerEventTypeDeploymentSuccess = "DeploymentSuccess"
  4163. // @enum TriggerEventType
  4164. TriggerEventTypeDeploymentFailure = "DeploymentFailure"
  4165. // @enum TriggerEventType
  4166. TriggerEventTypeDeploymentStop = "DeploymentStop"
  4167. // @enum TriggerEventType
  4168. TriggerEventTypeInstanceStart = "InstanceStart"
  4169. // @enum TriggerEventType
  4170. TriggerEventTypeInstanceSuccess = "InstanceSuccess"
  4171. // @enum TriggerEventType
  4172. TriggerEventTypeInstanceFailure = "InstanceFailure"
  4173. )