api.go 265 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package autoscaling provides a client for Auto Scaling.
  3. package autoscaling
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/query"
  11. )
  12. const opAttachInstances = "AttachInstances"
  13. // AttachInstancesRequest generates a "aws/request.Request" representing the
  14. // client's request for the AttachInstances operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the AttachInstances method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the AttachInstancesRequest method.
  28. // req, resp := client.AttachInstancesRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *AutoScaling) AttachInstancesRequest(input *AttachInstancesInput) (req *request.Request, output *AttachInstancesOutput) {
  36. op := &request.Operation{
  37. Name: opAttachInstances,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AttachInstancesInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  46. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  47. output = &AttachInstancesOutput{}
  48. req.Data = output
  49. return
  50. }
  51. // Attaches one or more EC2 instances to the specified Auto Scaling group.
  52. //
  53. // When you attach instances, Auto Scaling increases the desired capacity of
  54. // the group by the number of instances being attached. If the number of instances
  55. // being attached plus the desired capacity of the group exceeds the maximum
  56. // size of the group, the operation fails.
  57. //
  58. // If there is a Classic load balancer attached to your Auto Scaling group,
  59. // the instances are also registered with the load balancer. If there are target
  60. // groups attached to your Auto Scaling group, the instances are also registered
  61. // with the target groups.
  62. //
  63. // For more information, see Attach EC2 Instances to Your Auto Scaling Group
  64. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-instance-asg.html)
  65. // in the Auto Scaling User Guide.
  66. func (c *AutoScaling) AttachInstances(input *AttachInstancesInput) (*AttachInstancesOutput, error) {
  67. req, out := c.AttachInstancesRequest(input)
  68. err := req.Send()
  69. return out, err
  70. }
  71. const opAttachLoadBalancerTargetGroups = "AttachLoadBalancerTargetGroups"
  72. // AttachLoadBalancerTargetGroupsRequest generates a "aws/request.Request" representing the
  73. // client's request for the AttachLoadBalancerTargetGroups operation. The "output" return
  74. // value can be used to capture response data after the request's "Send" method
  75. // is called.
  76. //
  77. // Creating a request object using this method should be used when you want to inject
  78. // custom logic into the request's lifecycle using a custom handler, or if you want to
  79. // access properties on the request object before or after sending the request. If
  80. // you just want the service response, call the AttachLoadBalancerTargetGroups method directly
  81. // instead.
  82. //
  83. // Note: You must call the "Send" method on the returned request object in order
  84. // to execute the request.
  85. //
  86. // // Example sending a request using the AttachLoadBalancerTargetGroupsRequest method.
  87. // req, resp := client.AttachLoadBalancerTargetGroupsRequest(params)
  88. //
  89. // err := req.Send()
  90. // if err == nil { // resp is now filled
  91. // fmt.Println(resp)
  92. // }
  93. //
  94. func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBalancerTargetGroupsInput) (req *request.Request, output *AttachLoadBalancerTargetGroupsOutput) {
  95. op := &request.Operation{
  96. Name: opAttachLoadBalancerTargetGroups,
  97. HTTPMethod: "POST",
  98. HTTPPath: "/",
  99. }
  100. if input == nil {
  101. input = &AttachLoadBalancerTargetGroupsInput{}
  102. }
  103. req = c.newRequest(op, input, output)
  104. output = &AttachLoadBalancerTargetGroupsOutput{}
  105. req.Data = output
  106. return
  107. }
  108. // Attaches one or more target groups to the specified Auto Scaling group.
  109. //
  110. // To describe the target groups for an Auto Scaling group, use DescribeLoadBalancerTargetGroups.
  111. // To detach the target group from the Auto Scaling group, use DetachLoadBalancerTargetGroups.
  112. //
  113. // For more information, see Attach a Load Balancer to Your Auto Scaling Group
  114. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html)
  115. // in the Auto Scaling User Guide.
  116. func (c *AutoScaling) AttachLoadBalancerTargetGroups(input *AttachLoadBalancerTargetGroupsInput) (*AttachLoadBalancerTargetGroupsOutput, error) {
  117. req, out := c.AttachLoadBalancerTargetGroupsRequest(input)
  118. err := req.Send()
  119. return out, err
  120. }
  121. const opAttachLoadBalancers = "AttachLoadBalancers"
  122. // AttachLoadBalancersRequest generates a "aws/request.Request" representing the
  123. // client's request for the AttachLoadBalancers operation. The "output" return
  124. // value can be used to capture response data after the request's "Send" method
  125. // is called.
  126. //
  127. // Creating a request object using this method should be used when you want to inject
  128. // custom logic into the request's lifecycle using a custom handler, or if you want to
  129. // access properties on the request object before or after sending the request. If
  130. // you just want the service response, call the AttachLoadBalancers method directly
  131. // instead.
  132. //
  133. // Note: You must call the "Send" method on the returned request object in order
  134. // to execute the request.
  135. //
  136. // // Example sending a request using the AttachLoadBalancersRequest method.
  137. // req, resp := client.AttachLoadBalancersRequest(params)
  138. //
  139. // err := req.Send()
  140. // if err == nil { // resp is now filled
  141. // fmt.Println(resp)
  142. // }
  143. //
  144. func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput) (req *request.Request, output *AttachLoadBalancersOutput) {
  145. op := &request.Operation{
  146. Name: opAttachLoadBalancers,
  147. HTTPMethod: "POST",
  148. HTTPPath: "/",
  149. }
  150. if input == nil {
  151. input = &AttachLoadBalancersInput{}
  152. }
  153. req = c.newRequest(op, input, output)
  154. output = &AttachLoadBalancersOutput{}
  155. req.Data = output
  156. return
  157. }
  158. // Attaches one or more Classic load balancers to the specified Auto Scaling
  159. // group.
  160. //
  161. // To attach an Application load balancer instead, see AttachLoadBalancerTargetGroups.
  162. //
  163. // To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers.
  164. // To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
  165. //
  166. // For more information, see Attach a Load Balancer to Your Auto Scaling Group
  167. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/attach-load-balancer-asg.html)
  168. // in the Auto Scaling User Guide.
  169. func (c *AutoScaling) AttachLoadBalancers(input *AttachLoadBalancersInput) (*AttachLoadBalancersOutput, error) {
  170. req, out := c.AttachLoadBalancersRequest(input)
  171. err := req.Send()
  172. return out, err
  173. }
  174. const opCompleteLifecycleAction = "CompleteLifecycleAction"
  175. // CompleteLifecycleActionRequest generates a "aws/request.Request" representing the
  176. // client's request for the CompleteLifecycleAction operation. The "output" return
  177. // value can be used to capture response data after the request's "Send" method
  178. // is called.
  179. //
  180. // Creating a request object using this method should be used when you want to inject
  181. // custom logic into the request's lifecycle using a custom handler, or if you want to
  182. // access properties on the request object before or after sending the request. If
  183. // you just want the service response, call the CompleteLifecycleAction method directly
  184. // instead.
  185. //
  186. // Note: You must call the "Send" method on the returned request object in order
  187. // to execute the request.
  188. //
  189. // // Example sending a request using the CompleteLifecycleActionRequest method.
  190. // req, resp := client.CompleteLifecycleActionRequest(params)
  191. //
  192. // err := req.Send()
  193. // if err == nil { // resp is now filled
  194. // fmt.Println(resp)
  195. // }
  196. //
  197. func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleActionInput) (req *request.Request, output *CompleteLifecycleActionOutput) {
  198. op := &request.Operation{
  199. Name: opCompleteLifecycleAction,
  200. HTTPMethod: "POST",
  201. HTTPPath: "/",
  202. }
  203. if input == nil {
  204. input = &CompleteLifecycleActionInput{}
  205. }
  206. req = c.newRequest(op, input, output)
  207. output = &CompleteLifecycleActionOutput{}
  208. req.Data = output
  209. return
  210. }
  211. // Completes the lifecycle action for the specified token or instance with the
  212. // specified result.
  213. //
  214. // This step is a part of the procedure for adding a lifecycle hook to an Auto
  215. // Scaling group:
  216. //
  217. // (Optional) Create a Lambda function and a rule that allows CloudWatch
  218. // Events to invoke your Lambda function when Auto Scaling launches or terminates
  219. // instances.
  220. //
  221. // (Optional) Create a notification target and an IAM role. The target can
  222. // be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto
  223. // Scaling to publish lifecycle notifications to the target.
  224. //
  225. // Create the lifecycle hook. Specify whether the hook is used when the instances
  226. // launch or terminate.
  227. //
  228. // If you need more time, record the lifecycle action heartbeat to keep the
  229. // instance in a pending state.
  230. //
  231. // If you finish before the timeout period ends, complete the lifecycle
  232. // action.
  233. //
  234. // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  235. // in the Auto Scaling User Guide.
  236. func (c *AutoScaling) CompleteLifecycleAction(input *CompleteLifecycleActionInput) (*CompleteLifecycleActionOutput, error) {
  237. req, out := c.CompleteLifecycleActionRequest(input)
  238. err := req.Send()
  239. return out, err
  240. }
  241. const opCreateAutoScalingGroup = "CreateAutoScalingGroup"
  242. // CreateAutoScalingGroupRequest generates a "aws/request.Request" representing the
  243. // client's request for the CreateAutoScalingGroup operation. The "output" return
  244. // value can be used to capture response data after the request's "Send" method
  245. // is called.
  246. //
  247. // Creating a request object using this method should be used when you want to inject
  248. // custom logic into the request's lifecycle using a custom handler, or if you want to
  249. // access properties on the request object before or after sending the request. If
  250. // you just want the service response, call the CreateAutoScalingGroup method directly
  251. // instead.
  252. //
  253. // Note: You must call the "Send" method on the returned request object in order
  254. // to execute the request.
  255. //
  256. // // Example sending a request using the CreateAutoScalingGroupRequest method.
  257. // req, resp := client.CreateAutoScalingGroupRequest(params)
  258. //
  259. // err := req.Send()
  260. // if err == nil { // resp is now filled
  261. // fmt.Println(resp)
  262. // }
  263. //
  264. func (c *AutoScaling) CreateAutoScalingGroupRequest(input *CreateAutoScalingGroupInput) (req *request.Request, output *CreateAutoScalingGroupOutput) {
  265. op := &request.Operation{
  266. Name: opCreateAutoScalingGroup,
  267. HTTPMethod: "POST",
  268. HTTPPath: "/",
  269. }
  270. if input == nil {
  271. input = &CreateAutoScalingGroupInput{}
  272. }
  273. req = c.newRequest(op, input, output)
  274. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  275. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  276. output = &CreateAutoScalingGroupOutput{}
  277. req.Data = output
  278. return
  279. }
  280. // Creates an Auto Scaling group with the specified name and attributes.
  281. //
  282. // If you exceed your maximum limit of Auto Scaling groups, which by default
  283. // is 20 per region, the call fails. For information about viewing and updating
  284. // this limit, see DescribeAccountLimits.
  285. //
  286. // For more information, see Auto Scaling Groups (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroup.html)
  287. // in the Auto Scaling User Guide.
  288. func (c *AutoScaling) CreateAutoScalingGroup(input *CreateAutoScalingGroupInput) (*CreateAutoScalingGroupOutput, error) {
  289. req, out := c.CreateAutoScalingGroupRequest(input)
  290. err := req.Send()
  291. return out, err
  292. }
  293. const opCreateLaunchConfiguration = "CreateLaunchConfiguration"
  294. // CreateLaunchConfigurationRequest generates a "aws/request.Request" representing the
  295. // client's request for the CreateLaunchConfiguration operation. The "output" return
  296. // value can be used to capture response data after the request's "Send" method
  297. // is called.
  298. //
  299. // Creating a request object using this method should be used when you want to inject
  300. // custom logic into the request's lifecycle using a custom handler, or if you want to
  301. // access properties on the request object before or after sending the request. If
  302. // you just want the service response, call the CreateLaunchConfiguration method directly
  303. // instead.
  304. //
  305. // Note: You must call the "Send" method on the returned request object in order
  306. // to execute the request.
  307. //
  308. // // Example sending a request using the CreateLaunchConfigurationRequest method.
  309. // req, resp := client.CreateLaunchConfigurationRequest(params)
  310. //
  311. // err := req.Send()
  312. // if err == nil { // resp is now filled
  313. // fmt.Println(resp)
  314. // }
  315. //
  316. func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfigurationInput) (req *request.Request, output *CreateLaunchConfigurationOutput) {
  317. op := &request.Operation{
  318. Name: opCreateLaunchConfiguration,
  319. HTTPMethod: "POST",
  320. HTTPPath: "/",
  321. }
  322. if input == nil {
  323. input = &CreateLaunchConfigurationInput{}
  324. }
  325. req = c.newRequest(op, input, output)
  326. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  327. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  328. output = &CreateLaunchConfigurationOutput{}
  329. req.Data = output
  330. return
  331. }
  332. // Creates a launch configuration.
  333. //
  334. // If you exceed your maximum limit of launch configurations, which by default
  335. // is 100 per region, the call fails. For information about viewing and updating
  336. // this limit, see DescribeAccountLimits.
  337. //
  338. // For more information, see Launch Configurations (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/LaunchConfiguration.html)
  339. // in the Auto Scaling User Guide.
  340. func (c *AutoScaling) CreateLaunchConfiguration(input *CreateLaunchConfigurationInput) (*CreateLaunchConfigurationOutput, error) {
  341. req, out := c.CreateLaunchConfigurationRequest(input)
  342. err := req.Send()
  343. return out, err
  344. }
  345. const opCreateOrUpdateTags = "CreateOrUpdateTags"
  346. // CreateOrUpdateTagsRequest generates a "aws/request.Request" representing the
  347. // client's request for the CreateOrUpdateTags operation. The "output" return
  348. // value can be used to capture response data after the request's "Send" method
  349. // is called.
  350. //
  351. // Creating a request object using this method should be used when you want to inject
  352. // custom logic into the request's lifecycle using a custom handler, or if you want to
  353. // access properties on the request object before or after sending the request. If
  354. // you just want the service response, call the CreateOrUpdateTags method directly
  355. // instead.
  356. //
  357. // Note: You must call the "Send" method on the returned request object in order
  358. // to execute the request.
  359. //
  360. // // Example sending a request using the CreateOrUpdateTagsRequest method.
  361. // req, resp := client.CreateOrUpdateTagsRequest(params)
  362. //
  363. // err := req.Send()
  364. // if err == nil { // resp is now filled
  365. // fmt.Println(resp)
  366. // }
  367. //
  368. func (c *AutoScaling) CreateOrUpdateTagsRequest(input *CreateOrUpdateTagsInput) (req *request.Request, output *CreateOrUpdateTagsOutput) {
  369. op := &request.Operation{
  370. Name: opCreateOrUpdateTags,
  371. HTTPMethod: "POST",
  372. HTTPPath: "/",
  373. }
  374. if input == nil {
  375. input = &CreateOrUpdateTagsInput{}
  376. }
  377. req = c.newRequest(op, input, output)
  378. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  379. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  380. output = &CreateOrUpdateTagsOutput{}
  381. req.Data = output
  382. return
  383. }
  384. // Creates or updates tags for the specified Auto Scaling group.
  385. //
  386. // When you specify a tag with a key that already exists, the operation overwrites
  387. // the previous tag definition, and you do not get an error message.
  388. //
  389. // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html)
  390. // in the Auto Scaling User Guide.
  391. func (c *AutoScaling) CreateOrUpdateTags(input *CreateOrUpdateTagsInput) (*CreateOrUpdateTagsOutput, error) {
  392. req, out := c.CreateOrUpdateTagsRequest(input)
  393. err := req.Send()
  394. return out, err
  395. }
  396. const opDeleteAutoScalingGroup = "DeleteAutoScalingGroup"
  397. // DeleteAutoScalingGroupRequest generates a "aws/request.Request" representing the
  398. // client's request for the DeleteAutoScalingGroup operation. The "output" return
  399. // value can be used to capture response data after the request's "Send" method
  400. // is called.
  401. //
  402. // Creating a request object using this method should be used when you want to inject
  403. // custom logic into the request's lifecycle using a custom handler, or if you want to
  404. // access properties on the request object before or after sending the request. If
  405. // you just want the service response, call the DeleteAutoScalingGroup method directly
  406. // instead.
  407. //
  408. // Note: You must call the "Send" method on the returned request object in order
  409. // to execute the request.
  410. //
  411. // // Example sending a request using the DeleteAutoScalingGroupRequest method.
  412. // req, resp := client.DeleteAutoScalingGroupRequest(params)
  413. //
  414. // err := req.Send()
  415. // if err == nil { // resp is now filled
  416. // fmt.Println(resp)
  417. // }
  418. //
  419. func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGroupInput) (req *request.Request, output *DeleteAutoScalingGroupOutput) {
  420. op := &request.Operation{
  421. Name: opDeleteAutoScalingGroup,
  422. HTTPMethod: "POST",
  423. HTTPPath: "/",
  424. }
  425. if input == nil {
  426. input = &DeleteAutoScalingGroupInput{}
  427. }
  428. req = c.newRequest(op, input, output)
  429. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  430. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  431. output = &DeleteAutoScalingGroupOutput{}
  432. req.Data = output
  433. return
  434. }
  435. // Deletes the specified Auto Scaling group.
  436. //
  437. // If the group has instances or scaling activities in progress, you must specify
  438. // the option to force the deletion in order for it to succeed.
  439. //
  440. // If the group has policies, deleting the group deletes the policies, the
  441. // underlying alarm actions, and any alarm that no longer has an associated
  442. // action.
  443. //
  444. // To remove instances from the Auto Scaling group before deleting it, call
  445. // DetachInstances with the list of instances and the option to decrement the
  446. // desired capacity so that Auto Scaling does not launch replacement instances.
  447. //
  448. // To terminate all instances before deleting the Auto Scaling group, call
  449. // UpdateAutoScalingGroup and set the minimum size and desired capacity of the
  450. // Auto Scaling group to zero.
  451. func (c *AutoScaling) DeleteAutoScalingGroup(input *DeleteAutoScalingGroupInput) (*DeleteAutoScalingGroupOutput, error) {
  452. req, out := c.DeleteAutoScalingGroupRequest(input)
  453. err := req.Send()
  454. return out, err
  455. }
  456. const opDeleteLaunchConfiguration = "DeleteLaunchConfiguration"
  457. // DeleteLaunchConfigurationRequest generates a "aws/request.Request" representing the
  458. // client's request for the DeleteLaunchConfiguration operation. The "output" return
  459. // value can be used to capture response data after the request's "Send" method
  460. // is called.
  461. //
  462. // Creating a request object using this method should be used when you want to inject
  463. // custom logic into the request's lifecycle using a custom handler, or if you want to
  464. // access properties on the request object before or after sending the request. If
  465. // you just want the service response, call the DeleteLaunchConfiguration method directly
  466. // instead.
  467. //
  468. // Note: You must call the "Send" method on the returned request object in order
  469. // to execute the request.
  470. //
  471. // // Example sending a request using the DeleteLaunchConfigurationRequest method.
  472. // req, resp := client.DeleteLaunchConfigurationRequest(params)
  473. //
  474. // err := req.Send()
  475. // if err == nil { // resp is now filled
  476. // fmt.Println(resp)
  477. // }
  478. //
  479. func (c *AutoScaling) DeleteLaunchConfigurationRequest(input *DeleteLaunchConfigurationInput) (req *request.Request, output *DeleteLaunchConfigurationOutput) {
  480. op := &request.Operation{
  481. Name: opDeleteLaunchConfiguration,
  482. HTTPMethod: "POST",
  483. HTTPPath: "/",
  484. }
  485. if input == nil {
  486. input = &DeleteLaunchConfigurationInput{}
  487. }
  488. req = c.newRequest(op, input, output)
  489. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  490. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  491. output = &DeleteLaunchConfigurationOutput{}
  492. req.Data = output
  493. return
  494. }
  495. // Deletes the specified launch configuration.
  496. //
  497. // The launch configuration must not be attached to an Auto Scaling group.
  498. // When this call completes, the launch configuration is no longer available
  499. // for use.
  500. func (c *AutoScaling) DeleteLaunchConfiguration(input *DeleteLaunchConfigurationInput) (*DeleteLaunchConfigurationOutput, error) {
  501. req, out := c.DeleteLaunchConfigurationRequest(input)
  502. err := req.Send()
  503. return out, err
  504. }
  505. const opDeleteLifecycleHook = "DeleteLifecycleHook"
  506. // DeleteLifecycleHookRequest generates a "aws/request.Request" representing the
  507. // client's request for the DeleteLifecycleHook operation. The "output" return
  508. // value can be used to capture response data after the request's "Send" method
  509. // is called.
  510. //
  511. // Creating a request object using this method should be used when you want to inject
  512. // custom logic into the request's lifecycle using a custom handler, or if you want to
  513. // access properties on the request object before or after sending the request. If
  514. // you just want the service response, call the DeleteLifecycleHook method directly
  515. // instead.
  516. //
  517. // Note: You must call the "Send" method on the returned request object in order
  518. // to execute the request.
  519. //
  520. // // Example sending a request using the DeleteLifecycleHookRequest method.
  521. // req, resp := client.DeleteLifecycleHookRequest(params)
  522. //
  523. // err := req.Send()
  524. // if err == nil { // resp is now filled
  525. // fmt.Println(resp)
  526. // }
  527. //
  528. func (c *AutoScaling) DeleteLifecycleHookRequest(input *DeleteLifecycleHookInput) (req *request.Request, output *DeleteLifecycleHookOutput) {
  529. op := &request.Operation{
  530. Name: opDeleteLifecycleHook,
  531. HTTPMethod: "POST",
  532. HTTPPath: "/",
  533. }
  534. if input == nil {
  535. input = &DeleteLifecycleHookInput{}
  536. }
  537. req = c.newRequest(op, input, output)
  538. output = &DeleteLifecycleHookOutput{}
  539. req.Data = output
  540. return
  541. }
  542. // Deletes the specified lifecycle hook.
  543. //
  544. // If there are any outstanding lifecycle actions, they are completed first
  545. // (ABANDON for launching instances, CONTINUE for terminating instances).
  546. func (c *AutoScaling) DeleteLifecycleHook(input *DeleteLifecycleHookInput) (*DeleteLifecycleHookOutput, error) {
  547. req, out := c.DeleteLifecycleHookRequest(input)
  548. err := req.Send()
  549. return out, err
  550. }
  551. const opDeleteNotificationConfiguration = "DeleteNotificationConfiguration"
  552. // DeleteNotificationConfigurationRequest generates a "aws/request.Request" representing the
  553. // client's request for the DeleteNotificationConfiguration operation. The "output" return
  554. // value can be used to capture response data after the request's "Send" method
  555. // is called.
  556. //
  557. // Creating a request object using this method should be used when you want to inject
  558. // custom logic into the request's lifecycle using a custom handler, or if you want to
  559. // access properties on the request object before or after sending the request. If
  560. // you just want the service response, call the DeleteNotificationConfiguration method directly
  561. // instead.
  562. //
  563. // Note: You must call the "Send" method on the returned request object in order
  564. // to execute the request.
  565. //
  566. // // Example sending a request using the DeleteNotificationConfigurationRequest method.
  567. // req, resp := client.DeleteNotificationConfigurationRequest(params)
  568. //
  569. // err := req.Send()
  570. // if err == nil { // resp is now filled
  571. // fmt.Println(resp)
  572. // }
  573. //
  574. func (c *AutoScaling) DeleteNotificationConfigurationRequest(input *DeleteNotificationConfigurationInput) (req *request.Request, output *DeleteNotificationConfigurationOutput) {
  575. op := &request.Operation{
  576. Name: opDeleteNotificationConfiguration,
  577. HTTPMethod: "POST",
  578. HTTPPath: "/",
  579. }
  580. if input == nil {
  581. input = &DeleteNotificationConfigurationInput{}
  582. }
  583. req = c.newRequest(op, input, output)
  584. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  585. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  586. output = &DeleteNotificationConfigurationOutput{}
  587. req.Data = output
  588. return
  589. }
  590. // Deletes the specified notification.
  591. func (c *AutoScaling) DeleteNotificationConfiguration(input *DeleteNotificationConfigurationInput) (*DeleteNotificationConfigurationOutput, error) {
  592. req, out := c.DeleteNotificationConfigurationRequest(input)
  593. err := req.Send()
  594. return out, err
  595. }
  596. const opDeletePolicy = "DeletePolicy"
  597. // DeletePolicyRequest generates a "aws/request.Request" representing the
  598. // client's request for the DeletePolicy operation. The "output" return
  599. // value can be used to capture response data after the request's "Send" method
  600. // is called.
  601. //
  602. // Creating a request object using this method should be used when you want to inject
  603. // custom logic into the request's lifecycle using a custom handler, or if you want to
  604. // access properties on the request object before or after sending the request. If
  605. // you just want the service response, call the DeletePolicy method directly
  606. // instead.
  607. //
  608. // Note: You must call the "Send" method on the returned request object in order
  609. // to execute the request.
  610. //
  611. // // Example sending a request using the DeletePolicyRequest method.
  612. // req, resp := client.DeletePolicyRequest(params)
  613. //
  614. // err := req.Send()
  615. // if err == nil { // resp is now filled
  616. // fmt.Println(resp)
  617. // }
  618. //
  619. func (c *AutoScaling) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Request, output *DeletePolicyOutput) {
  620. op := &request.Operation{
  621. Name: opDeletePolicy,
  622. HTTPMethod: "POST",
  623. HTTPPath: "/",
  624. }
  625. if input == nil {
  626. input = &DeletePolicyInput{}
  627. }
  628. req = c.newRequest(op, input, output)
  629. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  630. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  631. output = &DeletePolicyOutput{}
  632. req.Data = output
  633. return
  634. }
  635. // Deletes the specified Auto Scaling policy.
  636. //
  637. // Deleting a policy deletes the underlying alarm action, but does not delete
  638. // the alarm, even if it no longer has an associated action.
  639. func (c *AutoScaling) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) {
  640. req, out := c.DeletePolicyRequest(input)
  641. err := req.Send()
  642. return out, err
  643. }
  644. const opDeleteScheduledAction = "DeleteScheduledAction"
  645. // DeleteScheduledActionRequest generates a "aws/request.Request" representing the
  646. // client's request for the DeleteScheduledAction operation. The "output" return
  647. // value can be used to capture response data after the request's "Send" method
  648. // is called.
  649. //
  650. // Creating a request object using this method should be used when you want to inject
  651. // custom logic into the request's lifecycle using a custom handler, or if you want to
  652. // access properties on the request object before or after sending the request. If
  653. // you just want the service response, call the DeleteScheduledAction method directly
  654. // instead.
  655. //
  656. // Note: You must call the "Send" method on the returned request object in order
  657. // to execute the request.
  658. //
  659. // // Example sending a request using the DeleteScheduledActionRequest method.
  660. // req, resp := client.DeleteScheduledActionRequest(params)
  661. //
  662. // err := req.Send()
  663. // if err == nil { // resp is now filled
  664. // fmt.Println(resp)
  665. // }
  666. //
  667. func (c *AutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) (req *request.Request, output *DeleteScheduledActionOutput) {
  668. op := &request.Operation{
  669. Name: opDeleteScheduledAction,
  670. HTTPMethod: "POST",
  671. HTTPPath: "/",
  672. }
  673. if input == nil {
  674. input = &DeleteScheduledActionInput{}
  675. }
  676. req = c.newRequest(op, input, output)
  677. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  678. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  679. output = &DeleteScheduledActionOutput{}
  680. req.Data = output
  681. return
  682. }
  683. // Deletes the specified scheduled action.
  684. func (c *AutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) {
  685. req, out := c.DeleteScheduledActionRequest(input)
  686. err := req.Send()
  687. return out, err
  688. }
  689. const opDeleteTags = "DeleteTags"
  690. // DeleteTagsRequest generates a "aws/request.Request" representing the
  691. // client's request for the DeleteTags operation. The "output" return
  692. // value can be used to capture response data after the request's "Send" method
  693. // is called.
  694. //
  695. // Creating a request object using this method should be used when you want to inject
  696. // custom logic into the request's lifecycle using a custom handler, or if you want to
  697. // access properties on the request object before or after sending the request. If
  698. // you just want the service response, call the DeleteTags method directly
  699. // instead.
  700. //
  701. // Note: You must call the "Send" method on the returned request object in order
  702. // to execute the request.
  703. //
  704. // // Example sending a request using the DeleteTagsRequest method.
  705. // req, resp := client.DeleteTagsRequest(params)
  706. //
  707. // err := req.Send()
  708. // if err == nil { // resp is now filled
  709. // fmt.Println(resp)
  710. // }
  711. //
  712. func (c *AutoScaling) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  713. op := &request.Operation{
  714. Name: opDeleteTags,
  715. HTTPMethod: "POST",
  716. HTTPPath: "/",
  717. }
  718. if input == nil {
  719. input = &DeleteTagsInput{}
  720. }
  721. req = c.newRequest(op, input, output)
  722. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  723. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  724. output = &DeleteTagsOutput{}
  725. req.Data = output
  726. return
  727. }
  728. // Deletes the specified tags.
  729. func (c *AutoScaling) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  730. req, out := c.DeleteTagsRequest(input)
  731. err := req.Send()
  732. return out, err
  733. }
  734. const opDescribeAccountLimits = "DescribeAccountLimits"
  735. // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the
  736. // client's request for the DescribeAccountLimits operation. The "output" return
  737. // value can be used to capture response data after the request's "Send" method
  738. // is called.
  739. //
  740. // Creating a request object using this method should be used when you want to inject
  741. // custom logic into the request's lifecycle using a custom handler, or if you want to
  742. // access properties on the request object before or after sending the request. If
  743. // you just want the service response, call the DescribeAccountLimits method directly
  744. // instead.
  745. //
  746. // Note: You must call the "Send" method on the returned request object in order
  747. // to execute the request.
  748. //
  749. // // Example sending a request using the DescribeAccountLimitsRequest method.
  750. // req, resp := client.DescribeAccountLimitsRequest(params)
  751. //
  752. // err := req.Send()
  753. // if err == nil { // resp is now filled
  754. // fmt.Println(resp)
  755. // }
  756. //
  757. func (c *AutoScaling) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
  758. op := &request.Operation{
  759. Name: opDescribeAccountLimits,
  760. HTTPMethod: "POST",
  761. HTTPPath: "/",
  762. }
  763. if input == nil {
  764. input = &DescribeAccountLimitsInput{}
  765. }
  766. req = c.newRequest(op, input, output)
  767. output = &DescribeAccountLimitsOutput{}
  768. req.Data = output
  769. return
  770. }
  771. // Describes the current Auto Scaling resource limits for your AWS account.
  772. //
  773. // For information about requesting an increase in these limits, see AWS Service
  774. // Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)
  775. // in the Amazon Web Services General Reference.
  776. func (c *AutoScaling) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
  777. req, out := c.DescribeAccountLimitsRequest(input)
  778. err := req.Send()
  779. return out, err
  780. }
  781. const opDescribeAdjustmentTypes = "DescribeAdjustmentTypes"
  782. // DescribeAdjustmentTypesRequest generates a "aws/request.Request" representing the
  783. // client's request for the DescribeAdjustmentTypes operation. The "output" return
  784. // value can be used to capture response data after the request's "Send" method
  785. // is called.
  786. //
  787. // Creating a request object using this method should be used when you want to inject
  788. // custom logic into the request's lifecycle using a custom handler, or if you want to
  789. // access properties on the request object before or after sending the request. If
  790. // you just want the service response, call the DescribeAdjustmentTypes method directly
  791. // instead.
  792. //
  793. // Note: You must call the "Send" method on the returned request object in order
  794. // to execute the request.
  795. //
  796. // // Example sending a request using the DescribeAdjustmentTypesRequest method.
  797. // req, resp := client.DescribeAdjustmentTypesRequest(params)
  798. //
  799. // err := req.Send()
  800. // if err == nil { // resp is now filled
  801. // fmt.Println(resp)
  802. // }
  803. //
  804. func (c *AutoScaling) DescribeAdjustmentTypesRequest(input *DescribeAdjustmentTypesInput) (req *request.Request, output *DescribeAdjustmentTypesOutput) {
  805. op := &request.Operation{
  806. Name: opDescribeAdjustmentTypes,
  807. HTTPMethod: "POST",
  808. HTTPPath: "/",
  809. }
  810. if input == nil {
  811. input = &DescribeAdjustmentTypesInput{}
  812. }
  813. req = c.newRequest(op, input, output)
  814. output = &DescribeAdjustmentTypesOutput{}
  815. req.Data = output
  816. return
  817. }
  818. // Describes the policy adjustment types for use with PutScalingPolicy.
  819. func (c *AutoScaling) DescribeAdjustmentTypes(input *DescribeAdjustmentTypesInput) (*DescribeAdjustmentTypesOutput, error) {
  820. req, out := c.DescribeAdjustmentTypesRequest(input)
  821. err := req.Send()
  822. return out, err
  823. }
  824. const opDescribeAutoScalingGroups = "DescribeAutoScalingGroups"
  825. // DescribeAutoScalingGroupsRequest generates a "aws/request.Request" representing the
  826. // client's request for the DescribeAutoScalingGroups operation. The "output" return
  827. // value can be used to capture response data after the request's "Send" method
  828. // is called.
  829. //
  830. // Creating a request object using this method should be used when you want to inject
  831. // custom logic into the request's lifecycle using a custom handler, or if you want to
  832. // access properties on the request object before or after sending the request. If
  833. // you just want the service response, call the DescribeAutoScalingGroups method directly
  834. // instead.
  835. //
  836. // Note: You must call the "Send" method on the returned request object in order
  837. // to execute the request.
  838. //
  839. // // Example sending a request using the DescribeAutoScalingGroupsRequest method.
  840. // req, resp := client.DescribeAutoScalingGroupsRequest(params)
  841. //
  842. // err := req.Send()
  843. // if err == nil { // resp is now filled
  844. // fmt.Println(resp)
  845. // }
  846. //
  847. func (c *AutoScaling) DescribeAutoScalingGroupsRequest(input *DescribeAutoScalingGroupsInput) (req *request.Request, output *DescribeAutoScalingGroupsOutput) {
  848. op := &request.Operation{
  849. Name: opDescribeAutoScalingGroups,
  850. HTTPMethod: "POST",
  851. HTTPPath: "/",
  852. Paginator: &request.Paginator{
  853. InputTokens: []string{"NextToken"},
  854. OutputTokens: []string{"NextToken"},
  855. LimitToken: "MaxRecords",
  856. TruncationToken: "",
  857. },
  858. }
  859. if input == nil {
  860. input = &DescribeAutoScalingGroupsInput{}
  861. }
  862. req = c.newRequest(op, input, output)
  863. output = &DescribeAutoScalingGroupsOutput{}
  864. req.Data = output
  865. return
  866. }
  867. // Describes one or more Auto Scaling groups.
  868. func (c *AutoScaling) DescribeAutoScalingGroups(input *DescribeAutoScalingGroupsInput) (*DescribeAutoScalingGroupsOutput, error) {
  869. req, out := c.DescribeAutoScalingGroupsRequest(input)
  870. err := req.Send()
  871. return out, err
  872. }
  873. // DescribeAutoScalingGroupsPages iterates over the pages of a DescribeAutoScalingGroups operation,
  874. // calling the "fn" function with the response data for each page. To stop
  875. // iterating, return false from the fn function.
  876. //
  877. // See DescribeAutoScalingGroups method for more information on how to use this operation.
  878. //
  879. // Note: This operation can generate multiple requests to a service.
  880. //
  881. // // Example iterating over at most 3 pages of a DescribeAutoScalingGroups operation.
  882. // pageNum := 0
  883. // err := client.DescribeAutoScalingGroupsPages(params,
  884. // func(page *DescribeAutoScalingGroupsOutput, lastPage bool) bool {
  885. // pageNum++
  886. // fmt.Println(page)
  887. // return pageNum <= 3
  888. // })
  889. //
  890. func (c *AutoScaling) DescribeAutoScalingGroupsPages(input *DescribeAutoScalingGroupsInput, fn func(p *DescribeAutoScalingGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  891. page, _ := c.DescribeAutoScalingGroupsRequest(input)
  892. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  893. return page.EachPage(func(p interface{}, lastPage bool) bool {
  894. return fn(p.(*DescribeAutoScalingGroupsOutput), lastPage)
  895. })
  896. }
  897. const opDescribeAutoScalingInstances = "DescribeAutoScalingInstances"
  898. // DescribeAutoScalingInstancesRequest generates a "aws/request.Request" representing the
  899. // client's request for the DescribeAutoScalingInstances operation. The "output" return
  900. // value can be used to capture response data after the request's "Send" method
  901. // is called.
  902. //
  903. // Creating a request object using this method should be used when you want to inject
  904. // custom logic into the request's lifecycle using a custom handler, or if you want to
  905. // access properties on the request object before or after sending the request. If
  906. // you just want the service response, call the DescribeAutoScalingInstances method directly
  907. // instead.
  908. //
  909. // Note: You must call the "Send" method on the returned request object in order
  910. // to execute the request.
  911. //
  912. // // Example sending a request using the DescribeAutoScalingInstancesRequest method.
  913. // req, resp := client.DescribeAutoScalingInstancesRequest(params)
  914. //
  915. // err := req.Send()
  916. // if err == nil { // resp is now filled
  917. // fmt.Println(resp)
  918. // }
  919. //
  920. func (c *AutoScaling) DescribeAutoScalingInstancesRequest(input *DescribeAutoScalingInstancesInput) (req *request.Request, output *DescribeAutoScalingInstancesOutput) {
  921. op := &request.Operation{
  922. Name: opDescribeAutoScalingInstances,
  923. HTTPMethod: "POST",
  924. HTTPPath: "/",
  925. Paginator: &request.Paginator{
  926. InputTokens: []string{"NextToken"},
  927. OutputTokens: []string{"NextToken"},
  928. LimitToken: "MaxRecords",
  929. TruncationToken: "",
  930. },
  931. }
  932. if input == nil {
  933. input = &DescribeAutoScalingInstancesInput{}
  934. }
  935. req = c.newRequest(op, input, output)
  936. output = &DescribeAutoScalingInstancesOutput{}
  937. req.Data = output
  938. return
  939. }
  940. // Describes one or more Auto Scaling instances.
  941. func (c *AutoScaling) DescribeAutoScalingInstances(input *DescribeAutoScalingInstancesInput) (*DescribeAutoScalingInstancesOutput, error) {
  942. req, out := c.DescribeAutoScalingInstancesRequest(input)
  943. err := req.Send()
  944. return out, err
  945. }
  946. // DescribeAutoScalingInstancesPages iterates over the pages of a DescribeAutoScalingInstances operation,
  947. // calling the "fn" function with the response data for each page. To stop
  948. // iterating, return false from the fn function.
  949. //
  950. // See DescribeAutoScalingInstances method for more information on how to use this operation.
  951. //
  952. // Note: This operation can generate multiple requests to a service.
  953. //
  954. // // Example iterating over at most 3 pages of a DescribeAutoScalingInstances operation.
  955. // pageNum := 0
  956. // err := client.DescribeAutoScalingInstancesPages(params,
  957. // func(page *DescribeAutoScalingInstancesOutput, lastPage bool) bool {
  958. // pageNum++
  959. // fmt.Println(page)
  960. // return pageNum <= 3
  961. // })
  962. //
  963. func (c *AutoScaling) DescribeAutoScalingInstancesPages(input *DescribeAutoScalingInstancesInput, fn func(p *DescribeAutoScalingInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  964. page, _ := c.DescribeAutoScalingInstancesRequest(input)
  965. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  966. return page.EachPage(func(p interface{}, lastPage bool) bool {
  967. return fn(p.(*DescribeAutoScalingInstancesOutput), lastPage)
  968. })
  969. }
  970. const opDescribeAutoScalingNotificationTypes = "DescribeAutoScalingNotificationTypes"
  971. // DescribeAutoScalingNotificationTypesRequest generates a "aws/request.Request" representing the
  972. // client's request for the DescribeAutoScalingNotificationTypes operation. The "output" return
  973. // value can be used to capture response data after the request's "Send" method
  974. // is called.
  975. //
  976. // Creating a request object using this method should be used when you want to inject
  977. // custom logic into the request's lifecycle using a custom handler, or if you want to
  978. // access properties on the request object before or after sending the request. If
  979. // you just want the service response, call the DescribeAutoScalingNotificationTypes method directly
  980. // instead.
  981. //
  982. // Note: You must call the "Send" method on the returned request object in order
  983. // to execute the request.
  984. //
  985. // // Example sending a request using the DescribeAutoScalingNotificationTypesRequest method.
  986. // req, resp := client.DescribeAutoScalingNotificationTypesRequest(params)
  987. //
  988. // err := req.Send()
  989. // if err == nil { // resp is now filled
  990. // fmt.Println(resp)
  991. // }
  992. //
  993. func (c *AutoScaling) DescribeAutoScalingNotificationTypesRequest(input *DescribeAutoScalingNotificationTypesInput) (req *request.Request, output *DescribeAutoScalingNotificationTypesOutput) {
  994. op := &request.Operation{
  995. Name: opDescribeAutoScalingNotificationTypes,
  996. HTTPMethod: "POST",
  997. HTTPPath: "/",
  998. }
  999. if input == nil {
  1000. input = &DescribeAutoScalingNotificationTypesInput{}
  1001. }
  1002. req = c.newRequest(op, input, output)
  1003. output = &DescribeAutoScalingNotificationTypesOutput{}
  1004. req.Data = output
  1005. return
  1006. }
  1007. // Describes the notification types that are supported by Auto Scaling.
  1008. func (c *AutoScaling) DescribeAutoScalingNotificationTypes(input *DescribeAutoScalingNotificationTypesInput) (*DescribeAutoScalingNotificationTypesOutput, error) {
  1009. req, out := c.DescribeAutoScalingNotificationTypesRequest(input)
  1010. err := req.Send()
  1011. return out, err
  1012. }
  1013. const opDescribeLaunchConfigurations = "DescribeLaunchConfigurations"
  1014. // DescribeLaunchConfigurationsRequest generates a "aws/request.Request" representing the
  1015. // client's request for the DescribeLaunchConfigurations operation. The "output" return
  1016. // value can be used to capture response data after the request's "Send" method
  1017. // is called.
  1018. //
  1019. // Creating a request object using this method should be used when you want to inject
  1020. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1021. // access properties on the request object before or after sending the request. If
  1022. // you just want the service response, call the DescribeLaunchConfigurations method directly
  1023. // instead.
  1024. //
  1025. // Note: You must call the "Send" method on the returned request object in order
  1026. // to execute the request.
  1027. //
  1028. // // Example sending a request using the DescribeLaunchConfigurationsRequest method.
  1029. // req, resp := client.DescribeLaunchConfigurationsRequest(params)
  1030. //
  1031. // err := req.Send()
  1032. // if err == nil { // resp is now filled
  1033. // fmt.Println(resp)
  1034. // }
  1035. //
  1036. func (c *AutoScaling) DescribeLaunchConfigurationsRequest(input *DescribeLaunchConfigurationsInput) (req *request.Request, output *DescribeLaunchConfigurationsOutput) {
  1037. op := &request.Operation{
  1038. Name: opDescribeLaunchConfigurations,
  1039. HTTPMethod: "POST",
  1040. HTTPPath: "/",
  1041. Paginator: &request.Paginator{
  1042. InputTokens: []string{"NextToken"},
  1043. OutputTokens: []string{"NextToken"},
  1044. LimitToken: "MaxRecords",
  1045. TruncationToken: "",
  1046. },
  1047. }
  1048. if input == nil {
  1049. input = &DescribeLaunchConfigurationsInput{}
  1050. }
  1051. req = c.newRequest(op, input, output)
  1052. output = &DescribeLaunchConfigurationsOutput{}
  1053. req.Data = output
  1054. return
  1055. }
  1056. // Describes one or more launch configurations.
  1057. func (c *AutoScaling) DescribeLaunchConfigurations(input *DescribeLaunchConfigurationsInput) (*DescribeLaunchConfigurationsOutput, error) {
  1058. req, out := c.DescribeLaunchConfigurationsRequest(input)
  1059. err := req.Send()
  1060. return out, err
  1061. }
  1062. // DescribeLaunchConfigurationsPages iterates over the pages of a DescribeLaunchConfigurations operation,
  1063. // calling the "fn" function with the response data for each page. To stop
  1064. // iterating, return false from the fn function.
  1065. //
  1066. // See DescribeLaunchConfigurations method for more information on how to use this operation.
  1067. //
  1068. // Note: This operation can generate multiple requests to a service.
  1069. //
  1070. // // Example iterating over at most 3 pages of a DescribeLaunchConfigurations operation.
  1071. // pageNum := 0
  1072. // err := client.DescribeLaunchConfigurationsPages(params,
  1073. // func(page *DescribeLaunchConfigurationsOutput, lastPage bool) bool {
  1074. // pageNum++
  1075. // fmt.Println(page)
  1076. // return pageNum <= 3
  1077. // })
  1078. //
  1079. func (c *AutoScaling) DescribeLaunchConfigurationsPages(input *DescribeLaunchConfigurationsInput, fn func(p *DescribeLaunchConfigurationsOutput, lastPage bool) (shouldContinue bool)) error {
  1080. page, _ := c.DescribeLaunchConfigurationsRequest(input)
  1081. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1082. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1083. return fn(p.(*DescribeLaunchConfigurationsOutput), lastPage)
  1084. })
  1085. }
  1086. const opDescribeLifecycleHookTypes = "DescribeLifecycleHookTypes"
  1087. // DescribeLifecycleHookTypesRequest generates a "aws/request.Request" representing the
  1088. // client's request for the DescribeLifecycleHookTypes operation. The "output" return
  1089. // value can be used to capture response data after the request's "Send" method
  1090. // is called.
  1091. //
  1092. // Creating a request object using this method should be used when you want to inject
  1093. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1094. // access properties on the request object before or after sending the request. If
  1095. // you just want the service response, call the DescribeLifecycleHookTypes method directly
  1096. // instead.
  1097. //
  1098. // Note: You must call the "Send" method on the returned request object in order
  1099. // to execute the request.
  1100. //
  1101. // // Example sending a request using the DescribeLifecycleHookTypesRequest method.
  1102. // req, resp := client.DescribeLifecycleHookTypesRequest(params)
  1103. //
  1104. // err := req.Send()
  1105. // if err == nil { // resp is now filled
  1106. // fmt.Println(resp)
  1107. // }
  1108. //
  1109. func (c *AutoScaling) DescribeLifecycleHookTypesRequest(input *DescribeLifecycleHookTypesInput) (req *request.Request, output *DescribeLifecycleHookTypesOutput) {
  1110. op := &request.Operation{
  1111. Name: opDescribeLifecycleHookTypes,
  1112. HTTPMethod: "POST",
  1113. HTTPPath: "/",
  1114. }
  1115. if input == nil {
  1116. input = &DescribeLifecycleHookTypesInput{}
  1117. }
  1118. req = c.newRequest(op, input, output)
  1119. output = &DescribeLifecycleHookTypesOutput{}
  1120. req.Data = output
  1121. return
  1122. }
  1123. // Describes the available types of lifecycle hooks.
  1124. func (c *AutoScaling) DescribeLifecycleHookTypes(input *DescribeLifecycleHookTypesInput) (*DescribeLifecycleHookTypesOutput, error) {
  1125. req, out := c.DescribeLifecycleHookTypesRequest(input)
  1126. err := req.Send()
  1127. return out, err
  1128. }
  1129. const opDescribeLifecycleHooks = "DescribeLifecycleHooks"
  1130. // DescribeLifecycleHooksRequest generates a "aws/request.Request" representing the
  1131. // client's request for the DescribeLifecycleHooks operation. The "output" return
  1132. // value can be used to capture response data after the request's "Send" method
  1133. // is called.
  1134. //
  1135. // Creating a request object using this method should be used when you want to inject
  1136. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1137. // access properties on the request object before or after sending the request. If
  1138. // you just want the service response, call the DescribeLifecycleHooks method directly
  1139. // instead.
  1140. //
  1141. // Note: You must call the "Send" method on the returned request object in order
  1142. // to execute the request.
  1143. //
  1144. // // Example sending a request using the DescribeLifecycleHooksRequest method.
  1145. // req, resp := client.DescribeLifecycleHooksRequest(params)
  1146. //
  1147. // err := req.Send()
  1148. // if err == nil { // resp is now filled
  1149. // fmt.Println(resp)
  1150. // }
  1151. //
  1152. func (c *AutoScaling) DescribeLifecycleHooksRequest(input *DescribeLifecycleHooksInput) (req *request.Request, output *DescribeLifecycleHooksOutput) {
  1153. op := &request.Operation{
  1154. Name: opDescribeLifecycleHooks,
  1155. HTTPMethod: "POST",
  1156. HTTPPath: "/",
  1157. }
  1158. if input == nil {
  1159. input = &DescribeLifecycleHooksInput{}
  1160. }
  1161. req = c.newRequest(op, input, output)
  1162. output = &DescribeLifecycleHooksOutput{}
  1163. req.Data = output
  1164. return
  1165. }
  1166. // Describes the lifecycle hooks for the specified Auto Scaling group.
  1167. func (c *AutoScaling) DescribeLifecycleHooks(input *DescribeLifecycleHooksInput) (*DescribeLifecycleHooksOutput, error) {
  1168. req, out := c.DescribeLifecycleHooksRequest(input)
  1169. err := req.Send()
  1170. return out, err
  1171. }
  1172. const opDescribeLoadBalancerTargetGroups = "DescribeLoadBalancerTargetGroups"
  1173. // DescribeLoadBalancerTargetGroupsRequest generates a "aws/request.Request" representing the
  1174. // client's request for the DescribeLoadBalancerTargetGroups operation. The "output" return
  1175. // value can be used to capture response data after the request's "Send" method
  1176. // is called.
  1177. //
  1178. // Creating a request object using this method should be used when you want to inject
  1179. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1180. // access properties on the request object before or after sending the request. If
  1181. // you just want the service response, call the DescribeLoadBalancerTargetGroups method directly
  1182. // instead.
  1183. //
  1184. // Note: You must call the "Send" method on the returned request object in order
  1185. // to execute the request.
  1186. //
  1187. // // Example sending a request using the DescribeLoadBalancerTargetGroupsRequest method.
  1188. // req, resp := client.DescribeLoadBalancerTargetGroupsRequest(params)
  1189. //
  1190. // err := req.Send()
  1191. // if err == nil { // resp is now filled
  1192. // fmt.Println(resp)
  1193. // }
  1194. //
  1195. func (c *AutoScaling) DescribeLoadBalancerTargetGroupsRequest(input *DescribeLoadBalancerTargetGroupsInput) (req *request.Request, output *DescribeLoadBalancerTargetGroupsOutput) {
  1196. op := &request.Operation{
  1197. Name: opDescribeLoadBalancerTargetGroups,
  1198. HTTPMethod: "POST",
  1199. HTTPPath: "/",
  1200. }
  1201. if input == nil {
  1202. input = &DescribeLoadBalancerTargetGroupsInput{}
  1203. }
  1204. req = c.newRequest(op, input, output)
  1205. output = &DescribeLoadBalancerTargetGroupsOutput{}
  1206. req.Data = output
  1207. return
  1208. }
  1209. // Describes the target groups for the specified Auto Scaling group.
  1210. func (c *AutoScaling) DescribeLoadBalancerTargetGroups(input *DescribeLoadBalancerTargetGroupsInput) (*DescribeLoadBalancerTargetGroupsOutput, error) {
  1211. req, out := c.DescribeLoadBalancerTargetGroupsRequest(input)
  1212. err := req.Send()
  1213. return out, err
  1214. }
  1215. const opDescribeLoadBalancers = "DescribeLoadBalancers"
  1216. // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
  1217. // client's request for the DescribeLoadBalancers operation. The "output" return
  1218. // value can be used to capture response data after the request's "Send" method
  1219. // is called.
  1220. //
  1221. // Creating a request object using this method should be used when you want to inject
  1222. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1223. // access properties on the request object before or after sending the request. If
  1224. // you just want the service response, call the DescribeLoadBalancers method directly
  1225. // instead.
  1226. //
  1227. // Note: You must call the "Send" method on the returned request object in order
  1228. // to execute the request.
  1229. //
  1230. // // Example sending a request using the DescribeLoadBalancersRequest method.
  1231. // req, resp := client.DescribeLoadBalancersRequest(params)
  1232. //
  1233. // err := req.Send()
  1234. // if err == nil { // resp is now filled
  1235. // fmt.Println(resp)
  1236. // }
  1237. //
  1238. func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
  1239. op := &request.Operation{
  1240. Name: opDescribeLoadBalancers,
  1241. HTTPMethod: "POST",
  1242. HTTPPath: "/",
  1243. }
  1244. if input == nil {
  1245. input = &DescribeLoadBalancersInput{}
  1246. }
  1247. req = c.newRequest(op, input, output)
  1248. output = &DescribeLoadBalancersOutput{}
  1249. req.Data = output
  1250. return
  1251. }
  1252. // Describes the load balancers for the specified Auto Scaling group.
  1253. //
  1254. // Note that this operation describes only Classic load balancers. If you have
  1255. // Application load balancers, use DescribeLoadBalancerTargetGroups instead.
  1256. func (c *AutoScaling) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
  1257. req, out := c.DescribeLoadBalancersRequest(input)
  1258. err := req.Send()
  1259. return out, err
  1260. }
  1261. const opDescribeMetricCollectionTypes = "DescribeMetricCollectionTypes"
  1262. // DescribeMetricCollectionTypesRequest generates a "aws/request.Request" representing the
  1263. // client's request for the DescribeMetricCollectionTypes operation. The "output" return
  1264. // value can be used to capture response data after the request's "Send" method
  1265. // is called.
  1266. //
  1267. // Creating a request object using this method should be used when you want to inject
  1268. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1269. // access properties on the request object before or after sending the request. If
  1270. // you just want the service response, call the DescribeMetricCollectionTypes method directly
  1271. // instead.
  1272. //
  1273. // Note: You must call the "Send" method on the returned request object in order
  1274. // to execute the request.
  1275. //
  1276. // // Example sending a request using the DescribeMetricCollectionTypesRequest method.
  1277. // req, resp := client.DescribeMetricCollectionTypesRequest(params)
  1278. //
  1279. // err := req.Send()
  1280. // if err == nil { // resp is now filled
  1281. // fmt.Println(resp)
  1282. // }
  1283. //
  1284. func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetricCollectionTypesInput) (req *request.Request, output *DescribeMetricCollectionTypesOutput) {
  1285. op := &request.Operation{
  1286. Name: opDescribeMetricCollectionTypes,
  1287. HTTPMethod: "POST",
  1288. HTTPPath: "/",
  1289. }
  1290. if input == nil {
  1291. input = &DescribeMetricCollectionTypesInput{}
  1292. }
  1293. req = c.newRequest(op, input, output)
  1294. output = &DescribeMetricCollectionTypesOutput{}
  1295. req.Data = output
  1296. return
  1297. }
  1298. // Describes the available CloudWatch metrics for Auto Scaling.
  1299. //
  1300. // Note that the GroupStandbyInstances metric is not returned by default. You
  1301. // must explicitly request this metric when calling EnableMetricsCollection.
  1302. func (c *AutoScaling) DescribeMetricCollectionTypes(input *DescribeMetricCollectionTypesInput) (*DescribeMetricCollectionTypesOutput, error) {
  1303. req, out := c.DescribeMetricCollectionTypesRequest(input)
  1304. err := req.Send()
  1305. return out, err
  1306. }
  1307. const opDescribeNotificationConfigurations = "DescribeNotificationConfigurations"
  1308. // DescribeNotificationConfigurationsRequest generates a "aws/request.Request" representing the
  1309. // client's request for the DescribeNotificationConfigurations operation. The "output" return
  1310. // value can be used to capture response data after the request's "Send" method
  1311. // is called.
  1312. //
  1313. // Creating a request object using this method should be used when you want to inject
  1314. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1315. // access properties on the request object before or after sending the request. If
  1316. // you just want the service response, call the DescribeNotificationConfigurations method directly
  1317. // instead.
  1318. //
  1319. // Note: You must call the "Send" method on the returned request object in order
  1320. // to execute the request.
  1321. //
  1322. // // Example sending a request using the DescribeNotificationConfigurationsRequest method.
  1323. // req, resp := client.DescribeNotificationConfigurationsRequest(params)
  1324. //
  1325. // err := req.Send()
  1326. // if err == nil { // resp is now filled
  1327. // fmt.Println(resp)
  1328. // }
  1329. //
  1330. func (c *AutoScaling) DescribeNotificationConfigurationsRequest(input *DescribeNotificationConfigurationsInput) (req *request.Request, output *DescribeNotificationConfigurationsOutput) {
  1331. op := &request.Operation{
  1332. Name: opDescribeNotificationConfigurations,
  1333. HTTPMethod: "POST",
  1334. HTTPPath: "/",
  1335. Paginator: &request.Paginator{
  1336. InputTokens: []string{"NextToken"},
  1337. OutputTokens: []string{"NextToken"},
  1338. LimitToken: "MaxRecords",
  1339. TruncationToken: "",
  1340. },
  1341. }
  1342. if input == nil {
  1343. input = &DescribeNotificationConfigurationsInput{}
  1344. }
  1345. req = c.newRequest(op, input, output)
  1346. output = &DescribeNotificationConfigurationsOutput{}
  1347. req.Data = output
  1348. return
  1349. }
  1350. // Describes the notification actions associated with the specified Auto Scaling
  1351. // group.
  1352. func (c *AutoScaling) DescribeNotificationConfigurations(input *DescribeNotificationConfigurationsInput) (*DescribeNotificationConfigurationsOutput, error) {
  1353. req, out := c.DescribeNotificationConfigurationsRequest(input)
  1354. err := req.Send()
  1355. return out, err
  1356. }
  1357. // DescribeNotificationConfigurationsPages iterates over the pages of a DescribeNotificationConfigurations operation,
  1358. // calling the "fn" function with the response data for each page. To stop
  1359. // iterating, return false from the fn function.
  1360. //
  1361. // See DescribeNotificationConfigurations method for more information on how to use this operation.
  1362. //
  1363. // Note: This operation can generate multiple requests to a service.
  1364. //
  1365. // // Example iterating over at most 3 pages of a DescribeNotificationConfigurations operation.
  1366. // pageNum := 0
  1367. // err := client.DescribeNotificationConfigurationsPages(params,
  1368. // func(page *DescribeNotificationConfigurationsOutput, lastPage bool) bool {
  1369. // pageNum++
  1370. // fmt.Println(page)
  1371. // return pageNum <= 3
  1372. // })
  1373. //
  1374. func (c *AutoScaling) DescribeNotificationConfigurationsPages(input *DescribeNotificationConfigurationsInput, fn func(p *DescribeNotificationConfigurationsOutput, lastPage bool) (shouldContinue bool)) error {
  1375. page, _ := c.DescribeNotificationConfigurationsRequest(input)
  1376. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1377. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1378. return fn(p.(*DescribeNotificationConfigurationsOutput), lastPage)
  1379. })
  1380. }
  1381. const opDescribePolicies = "DescribePolicies"
  1382. // DescribePoliciesRequest generates a "aws/request.Request" representing the
  1383. // client's request for the DescribePolicies operation. The "output" return
  1384. // value can be used to capture response data after the request's "Send" method
  1385. // is called.
  1386. //
  1387. // Creating a request object using this method should be used when you want to inject
  1388. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1389. // access properties on the request object before or after sending the request. If
  1390. // you just want the service response, call the DescribePolicies method directly
  1391. // instead.
  1392. //
  1393. // Note: You must call the "Send" method on the returned request object in order
  1394. // to execute the request.
  1395. //
  1396. // // Example sending a request using the DescribePoliciesRequest method.
  1397. // req, resp := client.DescribePoliciesRequest(params)
  1398. //
  1399. // err := req.Send()
  1400. // if err == nil { // resp is now filled
  1401. // fmt.Println(resp)
  1402. // }
  1403. //
  1404. func (c *AutoScaling) DescribePoliciesRequest(input *DescribePoliciesInput) (req *request.Request, output *DescribePoliciesOutput) {
  1405. op := &request.Operation{
  1406. Name: opDescribePolicies,
  1407. HTTPMethod: "POST",
  1408. HTTPPath: "/",
  1409. Paginator: &request.Paginator{
  1410. InputTokens: []string{"NextToken"},
  1411. OutputTokens: []string{"NextToken"},
  1412. LimitToken: "MaxRecords",
  1413. TruncationToken: "",
  1414. },
  1415. }
  1416. if input == nil {
  1417. input = &DescribePoliciesInput{}
  1418. }
  1419. req = c.newRequest(op, input, output)
  1420. output = &DescribePoliciesOutput{}
  1421. req.Data = output
  1422. return
  1423. }
  1424. // Describes the policies for the specified Auto Scaling group.
  1425. func (c *AutoScaling) DescribePolicies(input *DescribePoliciesInput) (*DescribePoliciesOutput, error) {
  1426. req, out := c.DescribePoliciesRequest(input)
  1427. err := req.Send()
  1428. return out, err
  1429. }
  1430. // DescribePoliciesPages iterates over the pages of a DescribePolicies operation,
  1431. // calling the "fn" function with the response data for each page. To stop
  1432. // iterating, return false from the fn function.
  1433. //
  1434. // See DescribePolicies method for more information on how to use this operation.
  1435. //
  1436. // Note: This operation can generate multiple requests to a service.
  1437. //
  1438. // // Example iterating over at most 3 pages of a DescribePolicies operation.
  1439. // pageNum := 0
  1440. // err := client.DescribePoliciesPages(params,
  1441. // func(page *DescribePoliciesOutput, lastPage bool) bool {
  1442. // pageNum++
  1443. // fmt.Println(page)
  1444. // return pageNum <= 3
  1445. // })
  1446. //
  1447. func (c *AutoScaling) DescribePoliciesPages(input *DescribePoliciesInput, fn func(p *DescribePoliciesOutput, lastPage bool) (shouldContinue bool)) error {
  1448. page, _ := c.DescribePoliciesRequest(input)
  1449. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1450. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1451. return fn(p.(*DescribePoliciesOutput), lastPage)
  1452. })
  1453. }
  1454. const opDescribeScalingActivities = "DescribeScalingActivities"
  1455. // DescribeScalingActivitiesRequest generates a "aws/request.Request" representing the
  1456. // client's request for the DescribeScalingActivities operation. The "output" return
  1457. // value can be used to capture response data after the request's "Send" method
  1458. // is called.
  1459. //
  1460. // Creating a request object using this method should be used when you want to inject
  1461. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1462. // access properties on the request object before or after sending the request. If
  1463. // you just want the service response, call the DescribeScalingActivities method directly
  1464. // instead.
  1465. //
  1466. // Note: You must call the "Send" method on the returned request object in order
  1467. // to execute the request.
  1468. //
  1469. // // Example sending a request using the DescribeScalingActivitiesRequest method.
  1470. // req, resp := client.DescribeScalingActivitiesRequest(params)
  1471. //
  1472. // err := req.Send()
  1473. // if err == nil { // resp is now filled
  1474. // fmt.Println(resp)
  1475. // }
  1476. //
  1477. func (c *AutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *request.Request, output *DescribeScalingActivitiesOutput) {
  1478. op := &request.Operation{
  1479. Name: opDescribeScalingActivities,
  1480. HTTPMethod: "POST",
  1481. HTTPPath: "/",
  1482. Paginator: &request.Paginator{
  1483. InputTokens: []string{"NextToken"},
  1484. OutputTokens: []string{"NextToken"},
  1485. LimitToken: "MaxRecords",
  1486. TruncationToken: "",
  1487. },
  1488. }
  1489. if input == nil {
  1490. input = &DescribeScalingActivitiesInput{}
  1491. }
  1492. req = c.newRequest(op, input, output)
  1493. output = &DescribeScalingActivitiesOutput{}
  1494. req.Data = output
  1495. return
  1496. }
  1497. // Describes one or more scaling activities for the specified Auto Scaling group.
  1498. func (c *AutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) {
  1499. req, out := c.DescribeScalingActivitiesRequest(input)
  1500. err := req.Send()
  1501. return out, err
  1502. }
  1503. // DescribeScalingActivitiesPages iterates over the pages of a DescribeScalingActivities operation,
  1504. // calling the "fn" function with the response data for each page. To stop
  1505. // iterating, return false from the fn function.
  1506. //
  1507. // See DescribeScalingActivities method for more information on how to use this operation.
  1508. //
  1509. // Note: This operation can generate multiple requests to a service.
  1510. //
  1511. // // Example iterating over at most 3 pages of a DescribeScalingActivities operation.
  1512. // pageNum := 0
  1513. // err := client.DescribeScalingActivitiesPages(params,
  1514. // func(page *DescribeScalingActivitiesOutput, lastPage bool) bool {
  1515. // pageNum++
  1516. // fmt.Println(page)
  1517. // return pageNum <= 3
  1518. // })
  1519. //
  1520. func (c *AutoScaling) DescribeScalingActivitiesPages(input *DescribeScalingActivitiesInput, fn func(p *DescribeScalingActivitiesOutput, lastPage bool) (shouldContinue bool)) error {
  1521. page, _ := c.DescribeScalingActivitiesRequest(input)
  1522. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1523. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1524. return fn(p.(*DescribeScalingActivitiesOutput), lastPage)
  1525. })
  1526. }
  1527. const opDescribeScalingProcessTypes = "DescribeScalingProcessTypes"
  1528. // DescribeScalingProcessTypesRequest generates a "aws/request.Request" representing the
  1529. // client's request for the DescribeScalingProcessTypes operation. The "output" return
  1530. // value can be used to capture response data after the request's "Send" method
  1531. // is called.
  1532. //
  1533. // Creating a request object using this method should be used when you want to inject
  1534. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1535. // access properties on the request object before or after sending the request. If
  1536. // you just want the service response, call the DescribeScalingProcessTypes method directly
  1537. // instead.
  1538. //
  1539. // Note: You must call the "Send" method on the returned request object in order
  1540. // to execute the request.
  1541. //
  1542. // // Example sending a request using the DescribeScalingProcessTypesRequest method.
  1543. // req, resp := client.DescribeScalingProcessTypesRequest(params)
  1544. //
  1545. // err := req.Send()
  1546. // if err == nil { // resp is now filled
  1547. // fmt.Println(resp)
  1548. // }
  1549. //
  1550. func (c *AutoScaling) DescribeScalingProcessTypesRequest(input *DescribeScalingProcessTypesInput) (req *request.Request, output *DescribeScalingProcessTypesOutput) {
  1551. op := &request.Operation{
  1552. Name: opDescribeScalingProcessTypes,
  1553. HTTPMethod: "POST",
  1554. HTTPPath: "/",
  1555. }
  1556. if input == nil {
  1557. input = &DescribeScalingProcessTypesInput{}
  1558. }
  1559. req = c.newRequest(op, input, output)
  1560. output = &DescribeScalingProcessTypesOutput{}
  1561. req.Data = output
  1562. return
  1563. }
  1564. // Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.
  1565. func (c *AutoScaling) DescribeScalingProcessTypes(input *DescribeScalingProcessTypesInput) (*DescribeScalingProcessTypesOutput, error) {
  1566. req, out := c.DescribeScalingProcessTypesRequest(input)
  1567. err := req.Send()
  1568. return out, err
  1569. }
  1570. const opDescribeScheduledActions = "DescribeScheduledActions"
  1571. // DescribeScheduledActionsRequest generates a "aws/request.Request" representing the
  1572. // client's request for the DescribeScheduledActions operation. The "output" return
  1573. // value can be used to capture response data after the request's "Send" method
  1574. // is called.
  1575. //
  1576. // Creating a request object using this method should be used when you want to inject
  1577. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1578. // access properties on the request object before or after sending the request. If
  1579. // you just want the service response, call the DescribeScheduledActions method directly
  1580. // instead.
  1581. //
  1582. // Note: You must call the "Send" method on the returned request object in order
  1583. // to execute the request.
  1584. //
  1585. // // Example sending a request using the DescribeScheduledActionsRequest method.
  1586. // req, resp := client.DescribeScheduledActionsRequest(params)
  1587. //
  1588. // err := req.Send()
  1589. // if err == nil { // resp is now filled
  1590. // fmt.Println(resp)
  1591. // }
  1592. //
  1593. func (c *AutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) (req *request.Request, output *DescribeScheduledActionsOutput) {
  1594. op := &request.Operation{
  1595. Name: opDescribeScheduledActions,
  1596. HTTPMethod: "POST",
  1597. HTTPPath: "/",
  1598. Paginator: &request.Paginator{
  1599. InputTokens: []string{"NextToken"},
  1600. OutputTokens: []string{"NextToken"},
  1601. LimitToken: "MaxRecords",
  1602. TruncationToken: "",
  1603. },
  1604. }
  1605. if input == nil {
  1606. input = &DescribeScheduledActionsInput{}
  1607. }
  1608. req = c.newRequest(op, input, output)
  1609. output = &DescribeScheduledActionsOutput{}
  1610. req.Data = output
  1611. return
  1612. }
  1613. // Describes the actions scheduled for your Auto Scaling group that haven't
  1614. // run. To describe the actions that have already run, use DescribeScalingActivities.
  1615. func (c *AutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsInput) (*DescribeScheduledActionsOutput, error) {
  1616. req, out := c.DescribeScheduledActionsRequest(input)
  1617. err := req.Send()
  1618. return out, err
  1619. }
  1620. // DescribeScheduledActionsPages iterates over the pages of a DescribeScheduledActions operation,
  1621. // calling the "fn" function with the response data for each page. To stop
  1622. // iterating, return false from the fn function.
  1623. //
  1624. // See DescribeScheduledActions method for more information on how to use this operation.
  1625. //
  1626. // Note: This operation can generate multiple requests to a service.
  1627. //
  1628. // // Example iterating over at most 3 pages of a DescribeScheduledActions operation.
  1629. // pageNum := 0
  1630. // err := client.DescribeScheduledActionsPages(params,
  1631. // func(page *DescribeScheduledActionsOutput, lastPage bool) bool {
  1632. // pageNum++
  1633. // fmt.Println(page)
  1634. // return pageNum <= 3
  1635. // })
  1636. //
  1637. func (c *AutoScaling) DescribeScheduledActionsPages(input *DescribeScheduledActionsInput, fn func(p *DescribeScheduledActionsOutput, lastPage bool) (shouldContinue bool)) error {
  1638. page, _ := c.DescribeScheduledActionsRequest(input)
  1639. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1640. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1641. return fn(p.(*DescribeScheduledActionsOutput), lastPage)
  1642. })
  1643. }
  1644. const opDescribeTags = "DescribeTags"
  1645. // DescribeTagsRequest generates a "aws/request.Request" representing the
  1646. // client's request for the DescribeTags operation. The "output" return
  1647. // value can be used to capture response data after the request's "Send" method
  1648. // is called.
  1649. //
  1650. // Creating a request object using this method should be used when you want to inject
  1651. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1652. // access properties on the request object before or after sending the request. If
  1653. // you just want the service response, call the DescribeTags method directly
  1654. // instead.
  1655. //
  1656. // Note: You must call the "Send" method on the returned request object in order
  1657. // to execute the request.
  1658. //
  1659. // // Example sending a request using the DescribeTagsRequest method.
  1660. // req, resp := client.DescribeTagsRequest(params)
  1661. //
  1662. // err := req.Send()
  1663. // if err == nil { // resp is now filled
  1664. // fmt.Println(resp)
  1665. // }
  1666. //
  1667. func (c *AutoScaling) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1668. op := &request.Operation{
  1669. Name: opDescribeTags,
  1670. HTTPMethod: "POST",
  1671. HTTPPath: "/",
  1672. Paginator: &request.Paginator{
  1673. InputTokens: []string{"NextToken"},
  1674. OutputTokens: []string{"NextToken"},
  1675. LimitToken: "MaxRecords",
  1676. TruncationToken: "",
  1677. },
  1678. }
  1679. if input == nil {
  1680. input = &DescribeTagsInput{}
  1681. }
  1682. req = c.newRequest(op, input, output)
  1683. output = &DescribeTagsOutput{}
  1684. req.Data = output
  1685. return
  1686. }
  1687. // Describes the specified tags.
  1688. //
  1689. // You can use filters to limit the results. For example, you can query for
  1690. // the tags for a specific Auto Scaling group. You can specify multiple values
  1691. // for a filter. A tag must match at least one of the specified values for it
  1692. // to be included in the results.
  1693. //
  1694. // You can also specify multiple filters. The result includes information for
  1695. // a particular tag only if it matches all the filters. If there's no match,
  1696. // no special message is returned.
  1697. func (c *AutoScaling) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1698. req, out := c.DescribeTagsRequest(input)
  1699. err := req.Send()
  1700. return out, err
  1701. }
  1702. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  1703. // calling the "fn" function with the response data for each page. To stop
  1704. // iterating, return false from the fn function.
  1705. //
  1706. // See DescribeTags method for more information on how to use this operation.
  1707. //
  1708. // Note: This operation can generate multiple requests to a service.
  1709. //
  1710. // // Example iterating over at most 3 pages of a DescribeTags operation.
  1711. // pageNum := 0
  1712. // err := client.DescribeTagsPages(params,
  1713. // func(page *DescribeTagsOutput, lastPage bool) bool {
  1714. // pageNum++
  1715. // fmt.Println(page)
  1716. // return pageNum <= 3
  1717. // })
  1718. //
  1719. func (c *AutoScaling) DescribeTagsPages(input *DescribeTagsInput, fn func(p *DescribeTagsOutput, lastPage bool) (shouldContinue bool)) error {
  1720. page, _ := c.DescribeTagsRequest(input)
  1721. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1722. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1723. return fn(p.(*DescribeTagsOutput), lastPage)
  1724. })
  1725. }
  1726. const opDescribeTerminationPolicyTypes = "DescribeTerminationPolicyTypes"
  1727. // DescribeTerminationPolicyTypesRequest generates a "aws/request.Request" representing the
  1728. // client's request for the DescribeTerminationPolicyTypes operation. The "output" return
  1729. // value can be used to capture response data after the request's "Send" method
  1730. // is called.
  1731. //
  1732. // Creating a request object using this method should be used when you want to inject
  1733. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1734. // access properties on the request object before or after sending the request. If
  1735. // you just want the service response, call the DescribeTerminationPolicyTypes method directly
  1736. // instead.
  1737. //
  1738. // Note: You must call the "Send" method on the returned request object in order
  1739. // to execute the request.
  1740. //
  1741. // // Example sending a request using the DescribeTerminationPolicyTypesRequest method.
  1742. // req, resp := client.DescribeTerminationPolicyTypesRequest(params)
  1743. //
  1744. // err := req.Send()
  1745. // if err == nil { // resp is now filled
  1746. // fmt.Println(resp)
  1747. // }
  1748. //
  1749. func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTerminationPolicyTypesInput) (req *request.Request, output *DescribeTerminationPolicyTypesOutput) {
  1750. op := &request.Operation{
  1751. Name: opDescribeTerminationPolicyTypes,
  1752. HTTPMethod: "POST",
  1753. HTTPPath: "/",
  1754. }
  1755. if input == nil {
  1756. input = &DescribeTerminationPolicyTypesInput{}
  1757. }
  1758. req = c.newRequest(op, input, output)
  1759. output = &DescribeTerminationPolicyTypesOutput{}
  1760. req.Data = output
  1761. return
  1762. }
  1763. // Describes the termination policies supported by Auto Scaling.
  1764. func (c *AutoScaling) DescribeTerminationPolicyTypes(input *DescribeTerminationPolicyTypesInput) (*DescribeTerminationPolicyTypesOutput, error) {
  1765. req, out := c.DescribeTerminationPolicyTypesRequest(input)
  1766. err := req.Send()
  1767. return out, err
  1768. }
  1769. const opDetachInstances = "DetachInstances"
  1770. // DetachInstancesRequest generates a "aws/request.Request" representing the
  1771. // client's request for the DetachInstances operation. The "output" return
  1772. // value can be used to capture response data after the request's "Send" method
  1773. // is called.
  1774. //
  1775. // Creating a request object using this method should be used when you want to inject
  1776. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1777. // access properties on the request object before or after sending the request. If
  1778. // you just want the service response, call the DetachInstances method directly
  1779. // instead.
  1780. //
  1781. // Note: You must call the "Send" method on the returned request object in order
  1782. // to execute the request.
  1783. //
  1784. // // Example sending a request using the DetachInstancesRequest method.
  1785. // req, resp := client.DetachInstancesRequest(params)
  1786. //
  1787. // err := req.Send()
  1788. // if err == nil { // resp is now filled
  1789. // fmt.Println(resp)
  1790. // }
  1791. //
  1792. func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req *request.Request, output *DetachInstancesOutput) {
  1793. op := &request.Operation{
  1794. Name: opDetachInstances,
  1795. HTTPMethod: "POST",
  1796. HTTPPath: "/",
  1797. }
  1798. if input == nil {
  1799. input = &DetachInstancesInput{}
  1800. }
  1801. req = c.newRequest(op, input, output)
  1802. output = &DetachInstancesOutput{}
  1803. req.Data = output
  1804. return
  1805. }
  1806. // Removes one or more instances from the specified Auto Scaling group.
  1807. //
  1808. // After the instances are detached, you can manage them independently from
  1809. // the rest of the Auto Scaling group.
  1810. //
  1811. // If you do not specify the option to decrement the desired capacity, Auto
  1812. // Scaling launches instances to replace the ones that are detached.
  1813. //
  1814. // If there is a Classic load balancer attached to the Auto Scaling group,
  1815. // the instances are deregistered from the load balancer. If there are target
  1816. // groups attached to the Auto Scaling group, the instances are deregistered
  1817. // from the target groups.
  1818. //
  1819. // For more information, see Detach EC2 Instances from Your Auto Scaling Group
  1820. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/detach-instance-asg.html)
  1821. // in the Auto Scaling User Guide.
  1822. func (c *AutoScaling) DetachInstances(input *DetachInstancesInput) (*DetachInstancesOutput, error) {
  1823. req, out := c.DetachInstancesRequest(input)
  1824. err := req.Send()
  1825. return out, err
  1826. }
  1827. const opDetachLoadBalancerTargetGroups = "DetachLoadBalancerTargetGroups"
  1828. // DetachLoadBalancerTargetGroupsRequest generates a "aws/request.Request" representing the
  1829. // client's request for the DetachLoadBalancerTargetGroups operation. The "output" return
  1830. // value can be used to capture response data after the request's "Send" method
  1831. // is called.
  1832. //
  1833. // Creating a request object using this method should be used when you want to inject
  1834. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1835. // access properties on the request object before or after sending the request. If
  1836. // you just want the service response, call the DetachLoadBalancerTargetGroups method directly
  1837. // instead.
  1838. //
  1839. // Note: You must call the "Send" method on the returned request object in order
  1840. // to execute the request.
  1841. //
  1842. // // Example sending a request using the DetachLoadBalancerTargetGroupsRequest method.
  1843. // req, resp := client.DetachLoadBalancerTargetGroupsRequest(params)
  1844. //
  1845. // err := req.Send()
  1846. // if err == nil { // resp is now filled
  1847. // fmt.Println(resp)
  1848. // }
  1849. //
  1850. func (c *AutoScaling) DetachLoadBalancerTargetGroupsRequest(input *DetachLoadBalancerTargetGroupsInput) (req *request.Request, output *DetachLoadBalancerTargetGroupsOutput) {
  1851. op := &request.Operation{
  1852. Name: opDetachLoadBalancerTargetGroups,
  1853. HTTPMethod: "POST",
  1854. HTTPPath: "/",
  1855. }
  1856. if input == nil {
  1857. input = &DetachLoadBalancerTargetGroupsInput{}
  1858. }
  1859. req = c.newRequest(op, input, output)
  1860. output = &DetachLoadBalancerTargetGroupsOutput{}
  1861. req.Data = output
  1862. return
  1863. }
  1864. // Detaches one or more target groups from the specified Auto Scaling group.
  1865. func (c *AutoScaling) DetachLoadBalancerTargetGroups(input *DetachLoadBalancerTargetGroupsInput) (*DetachLoadBalancerTargetGroupsOutput, error) {
  1866. req, out := c.DetachLoadBalancerTargetGroupsRequest(input)
  1867. err := req.Send()
  1868. return out, err
  1869. }
  1870. const opDetachLoadBalancers = "DetachLoadBalancers"
  1871. // DetachLoadBalancersRequest generates a "aws/request.Request" representing the
  1872. // client's request for the DetachLoadBalancers operation. The "output" return
  1873. // value can be used to capture response data after the request's "Send" method
  1874. // is called.
  1875. //
  1876. // Creating a request object using this method should be used when you want to inject
  1877. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1878. // access properties on the request object before or after sending the request. If
  1879. // you just want the service response, call the DetachLoadBalancers method directly
  1880. // instead.
  1881. //
  1882. // Note: You must call the "Send" method on the returned request object in order
  1883. // to execute the request.
  1884. //
  1885. // // Example sending a request using the DetachLoadBalancersRequest method.
  1886. // req, resp := client.DetachLoadBalancersRequest(params)
  1887. //
  1888. // err := req.Send()
  1889. // if err == nil { // resp is now filled
  1890. // fmt.Println(resp)
  1891. // }
  1892. //
  1893. func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput) (req *request.Request, output *DetachLoadBalancersOutput) {
  1894. op := &request.Operation{
  1895. Name: opDetachLoadBalancers,
  1896. HTTPMethod: "POST",
  1897. HTTPPath: "/",
  1898. }
  1899. if input == nil {
  1900. input = &DetachLoadBalancersInput{}
  1901. }
  1902. req = c.newRequest(op, input, output)
  1903. output = &DetachLoadBalancersOutput{}
  1904. req.Data = output
  1905. return
  1906. }
  1907. // Detaches one or more Classic load balancers from the specified Auto Scaling
  1908. // group.
  1909. //
  1910. // Note that this operation detaches only Classic load balancers. If you have
  1911. // Application load balancers, use DetachLoadBalancerTargetGroups instead.
  1912. //
  1913. // When you detach a load balancer, it enters the Removing state while deregistering
  1914. // the instances in the group. When all instances are deregistered, then you
  1915. // can no longer describe the load balancer using DescribeLoadBalancers. Note
  1916. // that the instances remain running.
  1917. func (c *AutoScaling) DetachLoadBalancers(input *DetachLoadBalancersInput) (*DetachLoadBalancersOutput, error) {
  1918. req, out := c.DetachLoadBalancersRequest(input)
  1919. err := req.Send()
  1920. return out, err
  1921. }
  1922. const opDisableMetricsCollection = "DisableMetricsCollection"
  1923. // DisableMetricsCollectionRequest generates a "aws/request.Request" representing the
  1924. // client's request for the DisableMetricsCollection operation. The "output" return
  1925. // value can be used to capture response data after the request's "Send" method
  1926. // is called.
  1927. //
  1928. // Creating a request object using this method should be used when you want to inject
  1929. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1930. // access properties on the request object before or after sending the request. If
  1931. // you just want the service response, call the DisableMetricsCollection method directly
  1932. // instead.
  1933. //
  1934. // Note: You must call the "Send" method on the returned request object in order
  1935. // to execute the request.
  1936. //
  1937. // // Example sending a request using the DisableMetricsCollectionRequest method.
  1938. // req, resp := client.DisableMetricsCollectionRequest(params)
  1939. //
  1940. // err := req.Send()
  1941. // if err == nil { // resp is now filled
  1942. // fmt.Println(resp)
  1943. // }
  1944. //
  1945. func (c *AutoScaling) DisableMetricsCollectionRequest(input *DisableMetricsCollectionInput) (req *request.Request, output *DisableMetricsCollectionOutput) {
  1946. op := &request.Operation{
  1947. Name: opDisableMetricsCollection,
  1948. HTTPMethod: "POST",
  1949. HTTPPath: "/",
  1950. }
  1951. if input == nil {
  1952. input = &DisableMetricsCollectionInput{}
  1953. }
  1954. req = c.newRequest(op, input, output)
  1955. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1956. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1957. output = &DisableMetricsCollectionOutput{}
  1958. req.Data = output
  1959. return
  1960. }
  1961. // Disables monitoring of the specified metrics for the specified Auto Scaling
  1962. // group.
  1963. func (c *AutoScaling) DisableMetricsCollection(input *DisableMetricsCollectionInput) (*DisableMetricsCollectionOutput, error) {
  1964. req, out := c.DisableMetricsCollectionRequest(input)
  1965. err := req.Send()
  1966. return out, err
  1967. }
  1968. const opEnableMetricsCollection = "EnableMetricsCollection"
  1969. // EnableMetricsCollectionRequest generates a "aws/request.Request" representing the
  1970. // client's request for the EnableMetricsCollection operation. The "output" return
  1971. // value can be used to capture response data after the request's "Send" method
  1972. // is called.
  1973. //
  1974. // Creating a request object using this method should be used when you want to inject
  1975. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1976. // access properties on the request object before or after sending the request. If
  1977. // you just want the service response, call the EnableMetricsCollection method directly
  1978. // instead.
  1979. //
  1980. // Note: You must call the "Send" method on the returned request object in order
  1981. // to execute the request.
  1982. //
  1983. // // Example sending a request using the EnableMetricsCollectionRequest method.
  1984. // req, resp := client.EnableMetricsCollectionRequest(params)
  1985. //
  1986. // err := req.Send()
  1987. // if err == nil { // resp is now filled
  1988. // fmt.Println(resp)
  1989. // }
  1990. //
  1991. func (c *AutoScaling) EnableMetricsCollectionRequest(input *EnableMetricsCollectionInput) (req *request.Request, output *EnableMetricsCollectionOutput) {
  1992. op := &request.Operation{
  1993. Name: opEnableMetricsCollection,
  1994. HTTPMethod: "POST",
  1995. HTTPPath: "/",
  1996. }
  1997. if input == nil {
  1998. input = &EnableMetricsCollectionInput{}
  1999. }
  2000. req = c.newRequest(op, input, output)
  2001. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2002. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2003. output = &EnableMetricsCollectionOutput{}
  2004. req.Data = output
  2005. return
  2006. }
  2007. // Enables monitoring of the specified metrics for the specified Auto Scaling
  2008. // group.
  2009. //
  2010. // You can only enable metrics collection if InstanceMonitoring in the launch
  2011. // configuration for the group is set to True.
  2012. func (c *AutoScaling) EnableMetricsCollection(input *EnableMetricsCollectionInput) (*EnableMetricsCollectionOutput, error) {
  2013. req, out := c.EnableMetricsCollectionRequest(input)
  2014. err := req.Send()
  2015. return out, err
  2016. }
  2017. const opEnterStandby = "EnterStandby"
  2018. // EnterStandbyRequest generates a "aws/request.Request" representing the
  2019. // client's request for the EnterStandby operation. The "output" return
  2020. // value can be used to capture response data after the request's "Send" method
  2021. // is called.
  2022. //
  2023. // Creating a request object using this method should be used when you want to inject
  2024. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2025. // access properties on the request object before or after sending the request. If
  2026. // you just want the service response, call the EnterStandby method directly
  2027. // instead.
  2028. //
  2029. // Note: You must call the "Send" method on the returned request object in order
  2030. // to execute the request.
  2031. //
  2032. // // Example sending a request using the EnterStandbyRequest method.
  2033. // req, resp := client.EnterStandbyRequest(params)
  2034. //
  2035. // err := req.Send()
  2036. // if err == nil { // resp is now filled
  2037. // fmt.Println(resp)
  2038. // }
  2039. //
  2040. func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *request.Request, output *EnterStandbyOutput) {
  2041. op := &request.Operation{
  2042. Name: opEnterStandby,
  2043. HTTPMethod: "POST",
  2044. HTTPPath: "/",
  2045. }
  2046. if input == nil {
  2047. input = &EnterStandbyInput{}
  2048. }
  2049. req = c.newRequest(op, input, output)
  2050. output = &EnterStandbyOutput{}
  2051. req.Data = output
  2052. return
  2053. }
  2054. // Moves the specified instances into Standby mode.
  2055. //
  2056. // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  2057. // in the Auto Scaling User Guide.
  2058. func (c *AutoScaling) EnterStandby(input *EnterStandbyInput) (*EnterStandbyOutput, error) {
  2059. req, out := c.EnterStandbyRequest(input)
  2060. err := req.Send()
  2061. return out, err
  2062. }
  2063. const opExecutePolicy = "ExecutePolicy"
  2064. // ExecutePolicyRequest generates a "aws/request.Request" representing the
  2065. // client's request for the ExecutePolicy operation. The "output" return
  2066. // value can be used to capture response data after the request's "Send" method
  2067. // is called.
  2068. //
  2069. // Creating a request object using this method should be used when you want to inject
  2070. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2071. // access properties on the request object before or after sending the request. If
  2072. // you just want the service response, call the ExecutePolicy method directly
  2073. // instead.
  2074. //
  2075. // Note: You must call the "Send" method on the returned request object in order
  2076. // to execute the request.
  2077. //
  2078. // // Example sending a request using the ExecutePolicyRequest method.
  2079. // req, resp := client.ExecutePolicyRequest(params)
  2080. //
  2081. // err := req.Send()
  2082. // if err == nil { // resp is now filled
  2083. // fmt.Println(resp)
  2084. // }
  2085. //
  2086. func (c *AutoScaling) ExecutePolicyRequest(input *ExecutePolicyInput) (req *request.Request, output *ExecutePolicyOutput) {
  2087. op := &request.Operation{
  2088. Name: opExecutePolicy,
  2089. HTTPMethod: "POST",
  2090. HTTPPath: "/",
  2091. }
  2092. if input == nil {
  2093. input = &ExecutePolicyInput{}
  2094. }
  2095. req = c.newRequest(op, input, output)
  2096. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2097. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2098. output = &ExecutePolicyOutput{}
  2099. req.Data = output
  2100. return
  2101. }
  2102. // Executes the specified policy.
  2103. func (c *AutoScaling) ExecutePolicy(input *ExecutePolicyInput) (*ExecutePolicyOutput, error) {
  2104. req, out := c.ExecutePolicyRequest(input)
  2105. err := req.Send()
  2106. return out, err
  2107. }
  2108. const opExitStandby = "ExitStandby"
  2109. // ExitStandbyRequest generates a "aws/request.Request" representing the
  2110. // client's request for the ExitStandby operation. The "output" return
  2111. // value can be used to capture response data after the request's "Send" method
  2112. // is called.
  2113. //
  2114. // Creating a request object using this method should be used when you want to inject
  2115. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2116. // access properties on the request object before or after sending the request. If
  2117. // you just want the service response, call the ExitStandby method directly
  2118. // instead.
  2119. //
  2120. // Note: You must call the "Send" method on the returned request object in order
  2121. // to execute the request.
  2122. //
  2123. // // Example sending a request using the ExitStandbyRequest method.
  2124. // req, resp := client.ExitStandbyRequest(params)
  2125. //
  2126. // err := req.Send()
  2127. // if err == nil { // resp is now filled
  2128. // fmt.Println(resp)
  2129. // }
  2130. //
  2131. func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request.Request, output *ExitStandbyOutput) {
  2132. op := &request.Operation{
  2133. Name: opExitStandby,
  2134. HTTPMethod: "POST",
  2135. HTTPPath: "/",
  2136. }
  2137. if input == nil {
  2138. input = &ExitStandbyInput{}
  2139. }
  2140. req = c.newRequest(op, input, output)
  2141. output = &ExitStandbyOutput{}
  2142. req.Data = output
  2143. return
  2144. }
  2145. // Moves the specified instances out of Standby mode.
  2146. //
  2147. // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  2148. // in the Auto Scaling User Guide.
  2149. func (c *AutoScaling) ExitStandby(input *ExitStandbyInput) (*ExitStandbyOutput, error) {
  2150. req, out := c.ExitStandbyRequest(input)
  2151. err := req.Send()
  2152. return out, err
  2153. }
  2154. const opPutLifecycleHook = "PutLifecycleHook"
  2155. // PutLifecycleHookRequest generates a "aws/request.Request" representing the
  2156. // client's request for the PutLifecycleHook operation. The "output" return
  2157. // value can be used to capture response data after the request's "Send" method
  2158. // is called.
  2159. //
  2160. // Creating a request object using this method should be used when you want to inject
  2161. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2162. // access properties on the request object before or after sending the request. If
  2163. // you just want the service response, call the PutLifecycleHook method directly
  2164. // instead.
  2165. //
  2166. // Note: You must call the "Send" method on the returned request object in order
  2167. // to execute the request.
  2168. //
  2169. // // Example sending a request using the PutLifecycleHookRequest method.
  2170. // req, resp := client.PutLifecycleHookRequest(params)
  2171. //
  2172. // err := req.Send()
  2173. // if err == nil { // resp is now filled
  2174. // fmt.Println(resp)
  2175. // }
  2176. //
  2177. func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req *request.Request, output *PutLifecycleHookOutput) {
  2178. op := &request.Operation{
  2179. Name: opPutLifecycleHook,
  2180. HTTPMethod: "POST",
  2181. HTTPPath: "/",
  2182. }
  2183. if input == nil {
  2184. input = &PutLifecycleHookInput{}
  2185. }
  2186. req = c.newRequest(op, input, output)
  2187. output = &PutLifecycleHookOutput{}
  2188. req.Data = output
  2189. return
  2190. }
  2191. // Creates or updates a lifecycle hook for the specified Auto Scaling Group.
  2192. //
  2193. // A lifecycle hook tells Auto Scaling that you want to perform an action on
  2194. // an instance that is not actively in service; for example, either when the
  2195. // instance launches or before the instance terminates.
  2196. //
  2197. // This step is a part of the procedure for adding a lifecycle hook to an Auto
  2198. // Scaling group:
  2199. //
  2200. // (Optional) Create a Lambda function and a rule that allows CloudWatch
  2201. // Events to invoke your Lambda function when Auto Scaling launches or terminates
  2202. // instances.
  2203. //
  2204. // (Optional) Create a notification target and an IAM role. The target can
  2205. // be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto
  2206. // Scaling to publish lifecycle notifications to the target.
  2207. //
  2208. // Create the lifecycle hook. Specify whether the hook is used when the
  2209. // instances launch or terminate.
  2210. //
  2211. // If you need more time, record the lifecycle action heartbeat to keep the
  2212. // instance in a pending state.
  2213. //
  2214. // If you finish before the timeout period ends, complete the lifecycle action.
  2215. //
  2216. // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  2217. // in the Auto Scaling User Guide.
  2218. //
  2219. // If you exceed your maximum limit of lifecycle hooks, which by default is
  2220. // 50 per Auto Scaling group, the call fails. For information about updating
  2221. // this limit, see AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)
  2222. // in the Amazon Web Services General Reference.
  2223. func (c *AutoScaling) PutLifecycleHook(input *PutLifecycleHookInput) (*PutLifecycleHookOutput, error) {
  2224. req, out := c.PutLifecycleHookRequest(input)
  2225. err := req.Send()
  2226. return out, err
  2227. }
  2228. const opPutNotificationConfiguration = "PutNotificationConfiguration"
  2229. // PutNotificationConfigurationRequest generates a "aws/request.Request" representing the
  2230. // client's request for the PutNotificationConfiguration operation. The "output" return
  2231. // value can be used to capture response data after the request's "Send" method
  2232. // is called.
  2233. //
  2234. // Creating a request object using this method should be used when you want to inject
  2235. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2236. // access properties on the request object before or after sending the request. If
  2237. // you just want the service response, call the PutNotificationConfiguration method directly
  2238. // instead.
  2239. //
  2240. // Note: You must call the "Send" method on the returned request object in order
  2241. // to execute the request.
  2242. //
  2243. // // Example sending a request using the PutNotificationConfigurationRequest method.
  2244. // req, resp := client.PutNotificationConfigurationRequest(params)
  2245. //
  2246. // err := req.Send()
  2247. // if err == nil { // resp is now filled
  2248. // fmt.Println(resp)
  2249. // }
  2250. //
  2251. func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotificationConfigurationInput) (req *request.Request, output *PutNotificationConfigurationOutput) {
  2252. op := &request.Operation{
  2253. Name: opPutNotificationConfiguration,
  2254. HTTPMethod: "POST",
  2255. HTTPPath: "/",
  2256. }
  2257. if input == nil {
  2258. input = &PutNotificationConfigurationInput{}
  2259. }
  2260. req = c.newRequest(op, input, output)
  2261. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2262. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2263. output = &PutNotificationConfigurationOutput{}
  2264. req.Data = output
  2265. return
  2266. }
  2267. // Configures an Auto Scaling group to send notifications when specified events
  2268. // take place. Subscribers to the specified topic can have messages delivered
  2269. // to an endpoint such as a web server or an email address.
  2270. //
  2271. // This configuration overwrites any existing configuration.
  2272. //
  2273. // For more information see Getting SNS Notifications When Your Auto Scaling
  2274. // Group Scales (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASGettingNotifications.html)
  2275. // in the Auto Scaling User Guide.
  2276. func (c *AutoScaling) PutNotificationConfiguration(input *PutNotificationConfigurationInput) (*PutNotificationConfigurationOutput, error) {
  2277. req, out := c.PutNotificationConfigurationRequest(input)
  2278. err := req.Send()
  2279. return out, err
  2280. }
  2281. const opPutScalingPolicy = "PutScalingPolicy"
  2282. // PutScalingPolicyRequest generates a "aws/request.Request" representing the
  2283. // client's request for the PutScalingPolicy operation. The "output" return
  2284. // value can be used to capture response data after the request's "Send" method
  2285. // is called.
  2286. //
  2287. // Creating a request object using this method should be used when you want to inject
  2288. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2289. // access properties on the request object before or after sending the request. If
  2290. // you just want the service response, call the PutScalingPolicy method directly
  2291. // instead.
  2292. //
  2293. // Note: You must call the "Send" method on the returned request object in order
  2294. // to execute the request.
  2295. //
  2296. // // Example sending a request using the PutScalingPolicyRequest method.
  2297. // req, resp := client.PutScalingPolicyRequest(params)
  2298. //
  2299. // err := req.Send()
  2300. // if err == nil { // resp is now filled
  2301. // fmt.Println(resp)
  2302. // }
  2303. //
  2304. func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) {
  2305. op := &request.Operation{
  2306. Name: opPutScalingPolicy,
  2307. HTTPMethod: "POST",
  2308. HTTPPath: "/",
  2309. }
  2310. if input == nil {
  2311. input = &PutScalingPolicyInput{}
  2312. }
  2313. req = c.newRequest(op, input, output)
  2314. output = &PutScalingPolicyOutput{}
  2315. req.Data = output
  2316. return
  2317. }
  2318. // Creates or updates a policy for an Auto Scaling group. To update an existing
  2319. // policy, use the existing policy name and set the parameters you want to change.
  2320. // Any existing parameter not changed in an update to an existing policy is
  2321. // not changed in this update request.
  2322. //
  2323. // If you exceed your maximum limit of step adjustments, which by default is
  2324. // 20 per region, the call fails. For information about updating this limit,
  2325. // see AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)
  2326. // in the Amazon Web Services General Reference.
  2327. func (c *AutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) {
  2328. req, out := c.PutScalingPolicyRequest(input)
  2329. err := req.Send()
  2330. return out, err
  2331. }
  2332. const opPutScheduledUpdateGroupAction = "PutScheduledUpdateGroupAction"
  2333. // PutScheduledUpdateGroupActionRequest generates a "aws/request.Request" representing the
  2334. // client's request for the PutScheduledUpdateGroupAction operation. The "output" return
  2335. // value can be used to capture response data after the request's "Send" method
  2336. // is called.
  2337. //
  2338. // Creating a request object using this method should be used when you want to inject
  2339. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2340. // access properties on the request object before or after sending the request. If
  2341. // you just want the service response, call the PutScheduledUpdateGroupAction method directly
  2342. // instead.
  2343. //
  2344. // Note: You must call the "Send" method on the returned request object in order
  2345. // to execute the request.
  2346. //
  2347. // // Example sending a request using the PutScheduledUpdateGroupActionRequest method.
  2348. // req, resp := client.PutScheduledUpdateGroupActionRequest(params)
  2349. //
  2350. // err := req.Send()
  2351. // if err == nil { // resp is now filled
  2352. // fmt.Println(resp)
  2353. // }
  2354. //
  2355. func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUpdateGroupActionInput) (req *request.Request, output *PutScheduledUpdateGroupActionOutput) {
  2356. op := &request.Operation{
  2357. Name: opPutScheduledUpdateGroupAction,
  2358. HTTPMethod: "POST",
  2359. HTTPPath: "/",
  2360. }
  2361. if input == nil {
  2362. input = &PutScheduledUpdateGroupActionInput{}
  2363. }
  2364. req = c.newRequest(op, input, output)
  2365. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2366. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2367. output = &PutScheduledUpdateGroupActionOutput{}
  2368. req.Data = output
  2369. return
  2370. }
  2371. // Creates or updates a scheduled scaling action for an Auto Scaling group.
  2372. // When updating a scheduled scaling action, if you leave a parameter unspecified,
  2373. // the corresponding value remains unchanged in the affected Auto Scaling group.
  2374. //
  2375. // For more information, see Scheduled Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/schedule_time.html)
  2376. // in the Auto Scaling User Guide.
  2377. func (c *AutoScaling) PutScheduledUpdateGroupAction(input *PutScheduledUpdateGroupActionInput) (*PutScheduledUpdateGroupActionOutput, error) {
  2378. req, out := c.PutScheduledUpdateGroupActionRequest(input)
  2379. err := req.Send()
  2380. return out, err
  2381. }
  2382. const opRecordLifecycleActionHeartbeat = "RecordLifecycleActionHeartbeat"
  2383. // RecordLifecycleActionHeartbeatRequest generates a "aws/request.Request" representing the
  2384. // client's request for the RecordLifecycleActionHeartbeat operation. The "output" return
  2385. // value can be used to capture response data after the request's "Send" method
  2386. // is called.
  2387. //
  2388. // Creating a request object using this method should be used when you want to inject
  2389. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2390. // access properties on the request object before or after sending the request. If
  2391. // you just want the service response, call the RecordLifecycleActionHeartbeat method directly
  2392. // instead.
  2393. //
  2394. // Note: You must call the "Send" method on the returned request object in order
  2395. // to execute the request.
  2396. //
  2397. // // Example sending a request using the RecordLifecycleActionHeartbeatRequest method.
  2398. // req, resp := client.RecordLifecycleActionHeartbeatRequest(params)
  2399. //
  2400. // err := req.Send()
  2401. // if err == nil { // resp is now filled
  2402. // fmt.Println(resp)
  2403. // }
  2404. //
  2405. func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecycleActionHeartbeatInput) (req *request.Request, output *RecordLifecycleActionHeartbeatOutput) {
  2406. op := &request.Operation{
  2407. Name: opRecordLifecycleActionHeartbeat,
  2408. HTTPMethod: "POST",
  2409. HTTPPath: "/",
  2410. }
  2411. if input == nil {
  2412. input = &RecordLifecycleActionHeartbeatInput{}
  2413. }
  2414. req = c.newRequest(op, input, output)
  2415. output = &RecordLifecycleActionHeartbeatOutput{}
  2416. req.Data = output
  2417. return
  2418. }
  2419. // Records a heartbeat for the lifecycle action associated with the specified
  2420. // token or instance. This extends the timeout by the length of time defined
  2421. // using PutLifecycleHook.
  2422. //
  2423. // This step is a part of the procedure for adding a lifecycle hook to an Auto
  2424. // Scaling group:
  2425. //
  2426. // (Optional) Create a Lambda function and a rule that allows CloudWatch
  2427. // Events to invoke your Lambda function when Auto Scaling launches or terminates
  2428. // instances.
  2429. //
  2430. // (Optional) Create a notification target and an IAM role. The target can
  2431. // be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto
  2432. // Scaling to publish lifecycle notifications to the target.
  2433. //
  2434. // Create the lifecycle hook. Specify whether the hook is used when the instances
  2435. // launch or terminate.
  2436. //
  2437. // If you need more time, record the lifecycle action heartbeat to keep
  2438. // the instance in a pending state.
  2439. //
  2440. // If you finish before the timeout period ends, complete the lifecycle action.
  2441. //
  2442. // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  2443. // in the Auto Scaling User Guide.
  2444. func (c *AutoScaling) RecordLifecycleActionHeartbeat(input *RecordLifecycleActionHeartbeatInput) (*RecordLifecycleActionHeartbeatOutput, error) {
  2445. req, out := c.RecordLifecycleActionHeartbeatRequest(input)
  2446. err := req.Send()
  2447. return out, err
  2448. }
  2449. const opResumeProcesses = "ResumeProcesses"
  2450. // ResumeProcessesRequest generates a "aws/request.Request" representing the
  2451. // client's request for the ResumeProcesses operation. The "output" return
  2452. // value can be used to capture response data after the request's "Send" method
  2453. // is called.
  2454. //
  2455. // Creating a request object using this method should be used when you want to inject
  2456. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2457. // access properties on the request object before or after sending the request. If
  2458. // you just want the service response, call the ResumeProcesses method directly
  2459. // instead.
  2460. //
  2461. // Note: You must call the "Send" method on the returned request object in order
  2462. // to execute the request.
  2463. //
  2464. // // Example sending a request using the ResumeProcessesRequest method.
  2465. // req, resp := client.ResumeProcessesRequest(params)
  2466. //
  2467. // err := req.Send()
  2468. // if err == nil { // resp is now filled
  2469. // fmt.Println(resp)
  2470. // }
  2471. //
  2472. func (c *AutoScaling) ResumeProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *ResumeProcessesOutput) {
  2473. op := &request.Operation{
  2474. Name: opResumeProcesses,
  2475. HTTPMethod: "POST",
  2476. HTTPPath: "/",
  2477. }
  2478. if input == nil {
  2479. input = &ScalingProcessQuery{}
  2480. }
  2481. req = c.newRequest(op, input, output)
  2482. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2483. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2484. output = &ResumeProcessesOutput{}
  2485. req.Data = output
  2486. return
  2487. }
  2488. // Resumes the specified suspended Auto Scaling processes, or all suspended
  2489. // process, for the specified Auto Scaling group.
  2490. //
  2491. // For more information, see Suspending and Resuming Auto Scaling Processes
  2492. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html)
  2493. // in the Auto Scaling User Guide.
  2494. func (c *AutoScaling) ResumeProcesses(input *ScalingProcessQuery) (*ResumeProcessesOutput, error) {
  2495. req, out := c.ResumeProcessesRequest(input)
  2496. err := req.Send()
  2497. return out, err
  2498. }
  2499. const opSetDesiredCapacity = "SetDesiredCapacity"
  2500. // SetDesiredCapacityRequest generates a "aws/request.Request" representing the
  2501. // client's request for the SetDesiredCapacity operation. The "output" return
  2502. // value can be used to capture response data after the request's "Send" method
  2503. // is called.
  2504. //
  2505. // Creating a request object using this method should be used when you want to inject
  2506. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2507. // access properties on the request object before or after sending the request. If
  2508. // you just want the service response, call the SetDesiredCapacity method directly
  2509. // instead.
  2510. //
  2511. // Note: You must call the "Send" method on the returned request object in order
  2512. // to execute the request.
  2513. //
  2514. // // Example sending a request using the SetDesiredCapacityRequest method.
  2515. // req, resp := client.SetDesiredCapacityRequest(params)
  2516. //
  2517. // err := req.Send()
  2518. // if err == nil { // resp is now filled
  2519. // fmt.Println(resp)
  2520. // }
  2521. //
  2522. func (c *AutoScaling) SetDesiredCapacityRequest(input *SetDesiredCapacityInput) (req *request.Request, output *SetDesiredCapacityOutput) {
  2523. op := &request.Operation{
  2524. Name: opSetDesiredCapacity,
  2525. HTTPMethod: "POST",
  2526. HTTPPath: "/",
  2527. }
  2528. if input == nil {
  2529. input = &SetDesiredCapacityInput{}
  2530. }
  2531. req = c.newRequest(op, input, output)
  2532. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2533. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2534. output = &SetDesiredCapacityOutput{}
  2535. req.Data = output
  2536. return
  2537. }
  2538. // Sets the size of the specified Auto Scaling group.
  2539. //
  2540. // For more information about desired capacity, see What Is Auto Scaling? (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/WhatIsAutoScaling.html)
  2541. // in the Auto Scaling User Guide.
  2542. func (c *AutoScaling) SetDesiredCapacity(input *SetDesiredCapacityInput) (*SetDesiredCapacityOutput, error) {
  2543. req, out := c.SetDesiredCapacityRequest(input)
  2544. err := req.Send()
  2545. return out, err
  2546. }
  2547. const opSetInstanceHealth = "SetInstanceHealth"
  2548. // SetInstanceHealthRequest generates a "aws/request.Request" representing the
  2549. // client's request for the SetInstanceHealth operation. The "output" return
  2550. // value can be used to capture response data after the request's "Send" method
  2551. // is called.
  2552. //
  2553. // Creating a request object using this method should be used when you want to inject
  2554. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2555. // access properties on the request object before or after sending the request. If
  2556. // you just want the service response, call the SetInstanceHealth method directly
  2557. // instead.
  2558. //
  2559. // Note: You must call the "Send" method on the returned request object in order
  2560. // to execute the request.
  2561. //
  2562. // // Example sending a request using the SetInstanceHealthRequest method.
  2563. // req, resp := client.SetInstanceHealthRequest(params)
  2564. //
  2565. // err := req.Send()
  2566. // if err == nil { // resp is now filled
  2567. // fmt.Println(resp)
  2568. // }
  2569. //
  2570. func (c *AutoScaling) SetInstanceHealthRequest(input *SetInstanceHealthInput) (req *request.Request, output *SetInstanceHealthOutput) {
  2571. op := &request.Operation{
  2572. Name: opSetInstanceHealth,
  2573. HTTPMethod: "POST",
  2574. HTTPPath: "/",
  2575. }
  2576. if input == nil {
  2577. input = &SetInstanceHealthInput{}
  2578. }
  2579. req = c.newRequest(op, input, output)
  2580. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2581. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2582. output = &SetInstanceHealthOutput{}
  2583. req.Data = output
  2584. return
  2585. }
  2586. // Sets the health status of the specified instance.
  2587. //
  2588. // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
  2589. // in the Auto Scaling User Guide.
  2590. func (c *AutoScaling) SetInstanceHealth(input *SetInstanceHealthInput) (*SetInstanceHealthOutput, error) {
  2591. req, out := c.SetInstanceHealthRequest(input)
  2592. err := req.Send()
  2593. return out, err
  2594. }
  2595. const opSetInstanceProtection = "SetInstanceProtection"
  2596. // SetInstanceProtectionRequest generates a "aws/request.Request" representing the
  2597. // client's request for the SetInstanceProtection operation. The "output" return
  2598. // value can be used to capture response data after the request's "Send" method
  2599. // is called.
  2600. //
  2601. // Creating a request object using this method should be used when you want to inject
  2602. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2603. // access properties on the request object before or after sending the request. If
  2604. // you just want the service response, call the SetInstanceProtection method directly
  2605. // instead.
  2606. //
  2607. // Note: You must call the "Send" method on the returned request object in order
  2608. // to execute the request.
  2609. //
  2610. // // Example sending a request using the SetInstanceProtectionRequest method.
  2611. // req, resp := client.SetInstanceProtectionRequest(params)
  2612. //
  2613. // err := req.Send()
  2614. // if err == nil { // resp is now filled
  2615. // fmt.Println(resp)
  2616. // }
  2617. //
  2618. func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionInput) (req *request.Request, output *SetInstanceProtectionOutput) {
  2619. op := &request.Operation{
  2620. Name: opSetInstanceProtection,
  2621. HTTPMethod: "POST",
  2622. HTTPPath: "/",
  2623. }
  2624. if input == nil {
  2625. input = &SetInstanceProtectionInput{}
  2626. }
  2627. req = c.newRequest(op, input, output)
  2628. output = &SetInstanceProtectionOutput{}
  2629. req.Data = output
  2630. return
  2631. }
  2632. // Updates the instance protection settings of the specified instances.
  2633. //
  2634. // For more information, see Instance Protection (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html#instance-protection)
  2635. // in the Auto Scaling User Guide.
  2636. func (c *AutoScaling) SetInstanceProtection(input *SetInstanceProtectionInput) (*SetInstanceProtectionOutput, error) {
  2637. req, out := c.SetInstanceProtectionRequest(input)
  2638. err := req.Send()
  2639. return out, err
  2640. }
  2641. const opSuspendProcesses = "SuspendProcesses"
  2642. // SuspendProcessesRequest generates a "aws/request.Request" representing the
  2643. // client's request for the SuspendProcesses operation. The "output" return
  2644. // value can be used to capture response data after the request's "Send" method
  2645. // is called.
  2646. //
  2647. // Creating a request object using this method should be used when you want to inject
  2648. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2649. // access properties on the request object before or after sending the request. If
  2650. // you just want the service response, call the SuspendProcesses method directly
  2651. // instead.
  2652. //
  2653. // Note: You must call the "Send" method on the returned request object in order
  2654. // to execute the request.
  2655. //
  2656. // // Example sending a request using the SuspendProcessesRequest method.
  2657. // req, resp := client.SuspendProcessesRequest(params)
  2658. //
  2659. // err := req.Send()
  2660. // if err == nil { // resp is now filled
  2661. // fmt.Println(resp)
  2662. // }
  2663. //
  2664. func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req *request.Request, output *SuspendProcessesOutput) {
  2665. op := &request.Operation{
  2666. Name: opSuspendProcesses,
  2667. HTTPMethod: "POST",
  2668. HTTPPath: "/",
  2669. }
  2670. if input == nil {
  2671. input = &ScalingProcessQuery{}
  2672. }
  2673. req = c.newRequest(op, input, output)
  2674. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2675. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2676. output = &SuspendProcessesOutput{}
  2677. req.Data = output
  2678. return
  2679. }
  2680. // Suspends the specified Auto Scaling processes, or all processes, for the
  2681. // specified Auto Scaling group.
  2682. //
  2683. // Note that if you suspend either the Launch or Terminate process types, it
  2684. // can prevent other process types from functioning properly.
  2685. //
  2686. // To resume processes that have been suspended, use ResumeProcesses.
  2687. //
  2688. // For more information, see Suspending and Resuming Auto Scaling Processes
  2689. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html)
  2690. // in the Auto Scaling User Guide.
  2691. func (c *AutoScaling) SuspendProcesses(input *ScalingProcessQuery) (*SuspendProcessesOutput, error) {
  2692. req, out := c.SuspendProcessesRequest(input)
  2693. err := req.Send()
  2694. return out, err
  2695. }
  2696. const opTerminateInstanceInAutoScalingGroup = "TerminateInstanceInAutoScalingGroup"
  2697. // TerminateInstanceInAutoScalingGroupRequest generates a "aws/request.Request" representing the
  2698. // client's request for the TerminateInstanceInAutoScalingGroup operation. The "output" return
  2699. // value can be used to capture response data after the request's "Send" method
  2700. // is called.
  2701. //
  2702. // Creating a request object using this method should be used when you want to inject
  2703. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2704. // access properties on the request object before or after sending the request. If
  2705. // you just want the service response, call the TerminateInstanceInAutoScalingGroup method directly
  2706. // instead.
  2707. //
  2708. // Note: You must call the "Send" method on the returned request object in order
  2709. // to execute the request.
  2710. //
  2711. // // Example sending a request using the TerminateInstanceInAutoScalingGroupRequest method.
  2712. // req, resp := client.TerminateInstanceInAutoScalingGroupRequest(params)
  2713. //
  2714. // err := req.Send()
  2715. // if err == nil { // resp is now filled
  2716. // fmt.Println(resp)
  2717. // }
  2718. //
  2719. func (c *AutoScaling) TerminateInstanceInAutoScalingGroupRequest(input *TerminateInstanceInAutoScalingGroupInput) (req *request.Request, output *TerminateInstanceInAutoScalingGroupOutput) {
  2720. op := &request.Operation{
  2721. Name: opTerminateInstanceInAutoScalingGroup,
  2722. HTTPMethod: "POST",
  2723. HTTPPath: "/",
  2724. }
  2725. if input == nil {
  2726. input = &TerminateInstanceInAutoScalingGroupInput{}
  2727. }
  2728. req = c.newRequest(op, input, output)
  2729. output = &TerminateInstanceInAutoScalingGroupOutput{}
  2730. req.Data = output
  2731. return
  2732. }
  2733. // Terminates the specified instance and optionally adjusts the desired group
  2734. // size.
  2735. //
  2736. // This call simply makes a termination request. The instance is not terminated
  2737. // immediately.
  2738. func (c *AutoScaling) TerminateInstanceInAutoScalingGroup(input *TerminateInstanceInAutoScalingGroupInput) (*TerminateInstanceInAutoScalingGroupOutput, error) {
  2739. req, out := c.TerminateInstanceInAutoScalingGroupRequest(input)
  2740. err := req.Send()
  2741. return out, err
  2742. }
  2743. const opUpdateAutoScalingGroup = "UpdateAutoScalingGroup"
  2744. // UpdateAutoScalingGroupRequest generates a "aws/request.Request" representing the
  2745. // client's request for the UpdateAutoScalingGroup operation. The "output" return
  2746. // value can be used to capture response data after the request's "Send" method
  2747. // is called.
  2748. //
  2749. // Creating a request object using this method should be used when you want to inject
  2750. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2751. // access properties on the request object before or after sending the request. If
  2752. // you just want the service response, call the UpdateAutoScalingGroup method directly
  2753. // instead.
  2754. //
  2755. // Note: You must call the "Send" method on the returned request object in order
  2756. // to execute the request.
  2757. //
  2758. // // Example sending a request using the UpdateAutoScalingGroupRequest method.
  2759. // req, resp := client.UpdateAutoScalingGroupRequest(params)
  2760. //
  2761. // err := req.Send()
  2762. // if err == nil { // resp is now filled
  2763. // fmt.Println(resp)
  2764. // }
  2765. //
  2766. func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGroupInput) (req *request.Request, output *UpdateAutoScalingGroupOutput) {
  2767. op := &request.Operation{
  2768. Name: opUpdateAutoScalingGroup,
  2769. HTTPMethod: "POST",
  2770. HTTPPath: "/",
  2771. }
  2772. if input == nil {
  2773. input = &UpdateAutoScalingGroupInput{}
  2774. }
  2775. req = c.newRequest(op, input, output)
  2776. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2777. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2778. output = &UpdateAutoScalingGroupOutput{}
  2779. req.Data = output
  2780. return
  2781. }
  2782. // Updates the configuration for the specified Auto Scaling group.
  2783. //
  2784. // To update an Auto Scaling group with a launch configuration with InstanceMonitoring
  2785. // set to False, you must first disable the collection of group metrics. Otherwise,
  2786. // you will get an error. If you have previously enabled the collection of group
  2787. // metrics, you can disable it using DisableMetricsCollection.
  2788. //
  2789. // The new settings are registered upon the completion of this call. Any launch
  2790. // configuration settings take effect on any triggers after this call returns.
  2791. // Scaling activities that are currently in progress aren't affected.
  2792. //
  2793. // Note the following:
  2794. //
  2795. // If you specify a new value for MinSize without specifying a value for
  2796. // DesiredCapacity, and the new MinSize is larger than the current size of the
  2797. // group, we implicitly call SetDesiredCapacity to set the size of the group
  2798. // to the new value of MinSize.
  2799. //
  2800. // If you specify a new value for MaxSize without specifying a value for
  2801. // DesiredCapacity, and the new MaxSize is smaller than the current size of
  2802. // the group, we implicitly call SetDesiredCapacity to set the size of the group
  2803. // to the new value of MaxSize.
  2804. //
  2805. // All other optional parameters are left unchanged if not specified.
  2806. func (c *AutoScaling) UpdateAutoScalingGroup(input *UpdateAutoScalingGroupInput) (*UpdateAutoScalingGroupOutput, error) {
  2807. req, out := c.UpdateAutoScalingGroupRequest(input)
  2808. err := req.Send()
  2809. return out, err
  2810. }
  2811. // Describes scaling activity, which is a long-running process that represents
  2812. // a change to your Auto Scaling group, such as changing its size or replacing
  2813. // an instance.
  2814. type Activity struct {
  2815. _ struct{} `type:"structure"`
  2816. // The ID of the activity.
  2817. ActivityId *string `type:"string" required:"true"`
  2818. // The name of the Auto Scaling group.
  2819. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  2820. // The reason the activity began.
  2821. Cause *string `min:"1" type:"string" required:"true"`
  2822. // A friendly, more verbose description of the activity.
  2823. Description *string `type:"string"`
  2824. // The details about the activity.
  2825. Details *string `type:"string"`
  2826. // The end time of the activity.
  2827. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2828. // A value between 0 and 100 that indicates the progress of the activity.
  2829. Progress *int64 `type:"integer"`
  2830. // The start time of the activity.
  2831. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2832. // The current status of the activity.
  2833. StatusCode *string `type:"string" required:"true" enum:"ScalingActivityStatusCode"`
  2834. // A friendly, more verbose description of the activity status.
  2835. StatusMessage *string `min:"1" type:"string"`
  2836. }
  2837. // String returns the string representation
  2838. func (s Activity) String() string {
  2839. return awsutil.Prettify(s)
  2840. }
  2841. // GoString returns the string representation
  2842. func (s Activity) GoString() string {
  2843. return s.String()
  2844. }
  2845. // Describes a policy adjustment type.
  2846. //
  2847. // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html)
  2848. // in the Auto Scaling User Guide.
  2849. type AdjustmentType struct {
  2850. _ struct{} `type:"structure"`
  2851. // The policy adjustment type. The valid values are ChangeInCapacity, ExactCapacity,
  2852. // and PercentChangeInCapacity.
  2853. AdjustmentType *string `min:"1" type:"string"`
  2854. }
  2855. // String returns the string representation
  2856. func (s AdjustmentType) String() string {
  2857. return awsutil.Prettify(s)
  2858. }
  2859. // GoString returns the string representation
  2860. func (s AdjustmentType) GoString() string {
  2861. return s.String()
  2862. }
  2863. // Describes an alarm.
  2864. type Alarm struct {
  2865. _ struct{} `type:"structure"`
  2866. // The Amazon Resource Name (ARN) of the alarm.
  2867. AlarmARN *string `min:"1" type:"string"`
  2868. // The name of the alarm.
  2869. AlarmName *string `min:"1" type:"string"`
  2870. }
  2871. // String returns the string representation
  2872. func (s Alarm) String() string {
  2873. return awsutil.Prettify(s)
  2874. }
  2875. // GoString returns the string representation
  2876. func (s Alarm) GoString() string {
  2877. return s.String()
  2878. }
  2879. // Contains the parameters for AttachInstances.
  2880. type AttachInstancesInput struct {
  2881. _ struct{} `type:"structure"`
  2882. // The name of the group.
  2883. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  2884. // One or more instance IDs.
  2885. InstanceIds []*string `type:"list"`
  2886. }
  2887. // String returns the string representation
  2888. func (s AttachInstancesInput) String() string {
  2889. return awsutil.Prettify(s)
  2890. }
  2891. // GoString returns the string representation
  2892. func (s AttachInstancesInput) GoString() string {
  2893. return s.String()
  2894. }
  2895. // Validate inspects the fields of the type to determine if they are valid.
  2896. func (s *AttachInstancesInput) Validate() error {
  2897. invalidParams := request.ErrInvalidParams{Context: "AttachInstancesInput"}
  2898. if s.AutoScalingGroupName == nil {
  2899. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  2900. }
  2901. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  2902. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  2903. }
  2904. if invalidParams.Len() > 0 {
  2905. return invalidParams
  2906. }
  2907. return nil
  2908. }
  2909. type AttachInstancesOutput struct {
  2910. _ struct{} `type:"structure"`
  2911. }
  2912. // String returns the string representation
  2913. func (s AttachInstancesOutput) String() string {
  2914. return awsutil.Prettify(s)
  2915. }
  2916. // GoString returns the string representation
  2917. func (s AttachInstancesOutput) GoString() string {
  2918. return s.String()
  2919. }
  2920. // Contains the parameters for AttachLoadBalancerTargetGroups.
  2921. type AttachLoadBalancerTargetGroupsInput struct {
  2922. _ struct{} `type:"structure"`
  2923. // The name of the Auto Scaling group.
  2924. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  2925. // The Amazon Resource Names (ARN) of the target groups.
  2926. TargetGroupARNs []*string `type:"list" required:"true"`
  2927. }
  2928. // String returns the string representation
  2929. func (s AttachLoadBalancerTargetGroupsInput) String() string {
  2930. return awsutil.Prettify(s)
  2931. }
  2932. // GoString returns the string representation
  2933. func (s AttachLoadBalancerTargetGroupsInput) GoString() string {
  2934. return s.String()
  2935. }
  2936. // Validate inspects the fields of the type to determine if they are valid.
  2937. func (s *AttachLoadBalancerTargetGroupsInput) Validate() error {
  2938. invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerTargetGroupsInput"}
  2939. if s.AutoScalingGroupName == nil {
  2940. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  2941. }
  2942. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  2943. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  2944. }
  2945. if s.TargetGroupARNs == nil {
  2946. invalidParams.Add(request.NewErrParamRequired("TargetGroupARNs"))
  2947. }
  2948. if invalidParams.Len() > 0 {
  2949. return invalidParams
  2950. }
  2951. return nil
  2952. }
  2953. type AttachLoadBalancerTargetGroupsOutput struct {
  2954. _ struct{} `type:"structure"`
  2955. }
  2956. // String returns the string representation
  2957. func (s AttachLoadBalancerTargetGroupsOutput) String() string {
  2958. return awsutil.Prettify(s)
  2959. }
  2960. // GoString returns the string representation
  2961. func (s AttachLoadBalancerTargetGroupsOutput) GoString() string {
  2962. return s.String()
  2963. }
  2964. // Contains the parameters for AttachLoadBalancers.
  2965. type AttachLoadBalancersInput struct {
  2966. _ struct{} `type:"structure"`
  2967. // The name of the group.
  2968. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  2969. // One or more load balancer names.
  2970. LoadBalancerNames []*string `type:"list" required:"true"`
  2971. }
  2972. // String returns the string representation
  2973. func (s AttachLoadBalancersInput) String() string {
  2974. return awsutil.Prettify(s)
  2975. }
  2976. // GoString returns the string representation
  2977. func (s AttachLoadBalancersInput) GoString() string {
  2978. return s.String()
  2979. }
  2980. // Validate inspects the fields of the type to determine if they are valid.
  2981. func (s *AttachLoadBalancersInput) Validate() error {
  2982. invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancersInput"}
  2983. if s.AutoScalingGroupName == nil {
  2984. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  2985. }
  2986. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  2987. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  2988. }
  2989. if s.LoadBalancerNames == nil {
  2990. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  2991. }
  2992. if invalidParams.Len() > 0 {
  2993. return invalidParams
  2994. }
  2995. return nil
  2996. }
  2997. // Contains the output of AttachLoadBalancers.
  2998. type AttachLoadBalancersOutput struct {
  2999. _ struct{} `type:"structure"`
  3000. }
  3001. // String returns the string representation
  3002. func (s AttachLoadBalancersOutput) String() string {
  3003. return awsutil.Prettify(s)
  3004. }
  3005. // GoString returns the string representation
  3006. func (s AttachLoadBalancersOutput) GoString() string {
  3007. return s.String()
  3008. }
  3009. // Describes a block device mapping.
  3010. type BlockDeviceMapping struct {
  3011. _ struct{} `type:"structure"`
  3012. // The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
  3013. DeviceName *string `min:"1" type:"string" required:"true"`
  3014. // The information about the Amazon EBS volume.
  3015. Ebs *Ebs `type:"structure"`
  3016. // Suppresses a device mapping.
  3017. //
  3018. // If this parameter is true for the root device, the instance might fail the
  3019. // EC2 health check. Auto Scaling launches a replacement instance if the instance
  3020. // fails the health check.
  3021. NoDevice *bool `type:"boolean"`
  3022. // The name of the virtual device (for example, ephemeral0).
  3023. VirtualName *string `min:"1" type:"string"`
  3024. }
  3025. // String returns the string representation
  3026. func (s BlockDeviceMapping) String() string {
  3027. return awsutil.Prettify(s)
  3028. }
  3029. // GoString returns the string representation
  3030. func (s BlockDeviceMapping) GoString() string {
  3031. return s.String()
  3032. }
  3033. // Validate inspects the fields of the type to determine if they are valid.
  3034. func (s *BlockDeviceMapping) Validate() error {
  3035. invalidParams := request.ErrInvalidParams{Context: "BlockDeviceMapping"}
  3036. if s.DeviceName == nil {
  3037. invalidParams.Add(request.NewErrParamRequired("DeviceName"))
  3038. }
  3039. if s.DeviceName != nil && len(*s.DeviceName) < 1 {
  3040. invalidParams.Add(request.NewErrParamMinLen("DeviceName", 1))
  3041. }
  3042. if s.VirtualName != nil && len(*s.VirtualName) < 1 {
  3043. invalidParams.Add(request.NewErrParamMinLen("VirtualName", 1))
  3044. }
  3045. if s.Ebs != nil {
  3046. if err := s.Ebs.Validate(); err != nil {
  3047. invalidParams.AddNested("Ebs", err.(request.ErrInvalidParams))
  3048. }
  3049. }
  3050. if invalidParams.Len() > 0 {
  3051. return invalidParams
  3052. }
  3053. return nil
  3054. }
  3055. // Contains the parameters for CompleteLifecycleAction.
  3056. type CompleteLifecycleActionInput struct {
  3057. _ struct{} `type:"structure"`
  3058. // The name of the group for the lifecycle hook.
  3059. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  3060. // The ID of the instance.
  3061. InstanceId *string `min:"1" type:"string"`
  3062. // The action for the group to take. This parameter can be either CONTINUE or
  3063. // ABANDON.
  3064. LifecycleActionResult *string `type:"string" required:"true"`
  3065. // A universally unique identifier (UUID) that identifies a specific lifecycle
  3066. // action associated with an instance. Auto Scaling sends this token to the
  3067. // notification target you specified when you created the lifecycle hook.
  3068. LifecycleActionToken *string `min:"36" type:"string"`
  3069. // The name of the lifecycle hook.
  3070. LifecycleHookName *string `min:"1" type:"string" required:"true"`
  3071. }
  3072. // String returns the string representation
  3073. func (s CompleteLifecycleActionInput) String() string {
  3074. return awsutil.Prettify(s)
  3075. }
  3076. // GoString returns the string representation
  3077. func (s CompleteLifecycleActionInput) GoString() string {
  3078. return s.String()
  3079. }
  3080. // Validate inspects the fields of the type to determine if they are valid.
  3081. func (s *CompleteLifecycleActionInput) Validate() error {
  3082. invalidParams := request.ErrInvalidParams{Context: "CompleteLifecycleActionInput"}
  3083. if s.AutoScalingGroupName == nil {
  3084. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  3085. }
  3086. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3087. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3088. }
  3089. if s.InstanceId != nil && len(*s.InstanceId) < 1 {
  3090. invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1))
  3091. }
  3092. if s.LifecycleActionResult == nil {
  3093. invalidParams.Add(request.NewErrParamRequired("LifecycleActionResult"))
  3094. }
  3095. if s.LifecycleActionToken != nil && len(*s.LifecycleActionToken) < 36 {
  3096. invalidParams.Add(request.NewErrParamMinLen("LifecycleActionToken", 36))
  3097. }
  3098. if s.LifecycleHookName == nil {
  3099. invalidParams.Add(request.NewErrParamRequired("LifecycleHookName"))
  3100. }
  3101. if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 {
  3102. invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1))
  3103. }
  3104. if invalidParams.Len() > 0 {
  3105. return invalidParams
  3106. }
  3107. return nil
  3108. }
  3109. // Contains the output of CompleteLifecycleAction.
  3110. type CompleteLifecycleActionOutput struct {
  3111. _ struct{} `type:"structure"`
  3112. }
  3113. // String returns the string representation
  3114. func (s CompleteLifecycleActionOutput) String() string {
  3115. return awsutil.Prettify(s)
  3116. }
  3117. // GoString returns the string representation
  3118. func (s CompleteLifecycleActionOutput) GoString() string {
  3119. return s.String()
  3120. }
  3121. // Contains the parameters for CreateAutoScalingGroup.
  3122. type CreateAutoScalingGroupInput struct {
  3123. _ struct{} `type:"structure"`
  3124. // The name of the group. This name must be unique within the scope of your
  3125. // AWS account.
  3126. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  3127. // One or more Availability Zones for the group. This parameter is optional
  3128. // if you specify one or more subnets.
  3129. AvailabilityZones []*string `min:"1" type:"list"`
  3130. // The amount of time, in seconds, after a scaling activity completes before
  3131. // another scaling activity can start. The default is 300.
  3132. //
  3133. // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
  3134. // in the Auto Scaling User Guide.
  3135. DefaultCooldown *int64 `type:"integer"`
  3136. // The number of EC2 instances that should be running in the group. This number
  3137. // must be greater than or equal to the minimum size of the group and less than
  3138. // or equal to the maximum size of the group.
  3139. DesiredCapacity *int64 `type:"integer"`
  3140. // The amount of time, in seconds, that Auto Scaling waits before checking the
  3141. // health status of an EC2 instance that has come into service. During this
  3142. // time, any health check failures for the instance are ignored. The default
  3143. // is 0.
  3144. //
  3145. // This parameter is required if you are adding an ELB health check.
  3146. //
  3147. // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
  3148. // in the Auto Scaling User Guide.
  3149. HealthCheckGracePeriod *int64 `type:"integer"`
  3150. // The service to use for the health checks. The valid values are EC2 and ELB.
  3151. //
  3152. // By default, health checks use Amazon EC2 instance status checks to determine
  3153. // the health of an instance. For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
  3154. // in the Auto Scaling User Guide.
  3155. HealthCheckType *string `min:"1" type:"string"`
  3156. // The ID of the instance used to create a launch configuration for the group.
  3157. // Alternatively, specify a launch configuration instead of an EC2 instance.
  3158. //
  3159. // When you specify an ID of an instance, Auto Scaling creates a new launch
  3160. // configuration and associates it with the group. This launch configuration
  3161. // derives its attributes from the specified instance, with the exception of
  3162. // the block device mapping.
  3163. //
  3164. // For more information, see Create an Auto Scaling Group Using an EC2 Instance
  3165. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-asg-from-instance.html)
  3166. // in the Auto Scaling User Guide.
  3167. InstanceId *string `min:"1" type:"string"`
  3168. // The name of the launch configuration. Alternatively, specify an EC2 instance
  3169. // instead of a launch configuration.
  3170. LaunchConfigurationName *string `min:"1" type:"string"`
  3171. // One or more Classic load balancers. To specify an Application load balancer,
  3172. // use TargetGroupARNs instead.
  3173. //
  3174. // For more information, see Using a Load Balancer With an Auto Scaling Group
  3175. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html)
  3176. // in the Auto Scaling User Guide.
  3177. LoadBalancerNames []*string `type:"list"`
  3178. // The maximum size of the group.
  3179. MaxSize *int64 `type:"integer" required:"true"`
  3180. // The minimum size of the group.
  3181. MinSize *int64 `type:"integer" required:"true"`
  3182. // Indicates whether newly launched instances are protected from termination
  3183. // by Auto Scaling when scaling in.
  3184. NewInstancesProtectedFromScaleIn *bool `type:"boolean"`
  3185. // The name of the placement group into which you'll launch your instances,
  3186. // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  3187. // in the Amazon Elastic Compute Cloud User Guide.
  3188. PlacementGroup *string `min:"1" type:"string"`
  3189. // One or more tags.
  3190. //
  3191. // For more information, see Tagging Auto Scaling Groups and Instances (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html)
  3192. // in the Auto Scaling User Guide.
  3193. Tags []*Tag `type:"list"`
  3194. // The Amazon Resource Names (ARN) of the target groups.
  3195. TargetGroupARNs []*string `type:"list"`
  3196. // One or more termination policies used to select the instance to terminate.
  3197. // These policies are executed in the order that they are listed.
  3198. //
  3199. // For more information, see Controlling Which Instances Auto Scaling Terminates
  3200. // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html)
  3201. // in the Auto Scaling User Guide.
  3202. TerminationPolicies []*string `type:"list"`
  3203. // A comma-separated list of subnet identifiers for your virtual private cloud
  3204. // (VPC).
  3205. //
  3206. // If you specify subnets and Availability Zones with this call, ensure that
  3207. // the subnets' Availability Zones match the Availability Zones specified.
  3208. //
  3209. // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
  3210. // in the Auto Scaling User Guide.
  3211. VPCZoneIdentifier *string `min:"1" type:"string"`
  3212. }
  3213. // String returns the string representation
  3214. func (s CreateAutoScalingGroupInput) String() string {
  3215. return awsutil.Prettify(s)
  3216. }
  3217. // GoString returns the string representation
  3218. func (s CreateAutoScalingGroupInput) GoString() string {
  3219. return s.String()
  3220. }
  3221. // Validate inspects the fields of the type to determine if they are valid.
  3222. func (s *CreateAutoScalingGroupInput) Validate() error {
  3223. invalidParams := request.ErrInvalidParams{Context: "CreateAutoScalingGroupInput"}
  3224. if s.AutoScalingGroupName == nil {
  3225. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  3226. }
  3227. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3228. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3229. }
  3230. if s.AvailabilityZones != nil && len(s.AvailabilityZones) < 1 {
  3231. invalidParams.Add(request.NewErrParamMinLen("AvailabilityZones", 1))
  3232. }
  3233. if s.HealthCheckType != nil && len(*s.HealthCheckType) < 1 {
  3234. invalidParams.Add(request.NewErrParamMinLen("HealthCheckType", 1))
  3235. }
  3236. if s.InstanceId != nil && len(*s.InstanceId) < 1 {
  3237. invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1))
  3238. }
  3239. if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 {
  3240. invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1))
  3241. }
  3242. if s.MaxSize == nil {
  3243. invalidParams.Add(request.NewErrParamRequired("MaxSize"))
  3244. }
  3245. if s.MinSize == nil {
  3246. invalidParams.Add(request.NewErrParamRequired("MinSize"))
  3247. }
  3248. if s.PlacementGroup != nil && len(*s.PlacementGroup) < 1 {
  3249. invalidParams.Add(request.NewErrParamMinLen("PlacementGroup", 1))
  3250. }
  3251. if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 {
  3252. invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1))
  3253. }
  3254. if s.Tags != nil {
  3255. for i, v := range s.Tags {
  3256. if v == nil {
  3257. continue
  3258. }
  3259. if err := v.Validate(); err != nil {
  3260. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3261. }
  3262. }
  3263. }
  3264. if invalidParams.Len() > 0 {
  3265. return invalidParams
  3266. }
  3267. return nil
  3268. }
  3269. type CreateAutoScalingGroupOutput struct {
  3270. _ struct{} `type:"structure"`
  3271. }
  3272. // String returns the string representation
  3273. func (s CreateAutoScalingGroupOutput) String() string {
  3274. return awsutil.Prettify(s)
  3275. }
  3276. // GoString returns the string representation
  3277. func (s CreateAutoScalingGroupOutput) GoString() string {
  3278. return s.String()
  3279. }
  3280. // Contains the parameters for CreateLaunchConfiguration.
  3281. type CreateLaunchConfigurationInput struct {
  3282. _ struct{} `type:"structure"`
  3283. // Used for groups that launch instances into a virtual private cloud (VPC).
  3284. // Specifies whether to assign a public IP address to each instance. For more
  3285. // information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
  3286. // in the Auto Scaling User Guide.
  3287. //
  3288. // If you specify this parameter, be sure to specify at least one subnet when
  3289. // you create your group.
  3290. //
  3291. // Default: If the instance is launched into a default subnet, the default
  3292. // is true. If the instance is launched into a nondefault subnet, the default
  3293. // is false. For more information, see Supported Platforms (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html)
  3294. // in the Amazon Elastic Compute Cloud User Guide.
  3295. AssociatePublicIpAddress *bool `type:"boolean"`
  3296. // One or more mappings that specify how block devices are exposed to the instance.
  3297. // For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html)
  3298. // in the Amazon Elastic Compute Cloud User Guide.
  3299. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  3300. // The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
  3301. // This parameter is supported only if you are launching EC2-Classic instances.
  3302. // For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  3303. // in the Amazon Elastic Compute Cloud User Guide.
  3304. ClassicLinkVPCId *string `min:"1" type:"string"`
  3305. // The IDs of one or more security groups for the specified ClassicLink-enabled
  3306. // VPC. This parameter is required if you specify a ClassicLink-enabled VPC,
  3307. // and is not supported otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  3308. // in the Amazon Elastic Compute Cloud User Guide.
  3309. ClassicLinkVPCSecurityGroups []*string `type:"list"`
  3310. // Indicates whether the instance is optimized for Amazon EBS I/O. By default,
  3311. // the instance is not optimized for EBS I/O. The optimization provides dedicated
  3312. // throughput to Amazon EBS and an optimized configuration stack to provide
  3313. // optimal I/O performance. This optimization is not available with all instance
  3314. // types. Additional usage charges apply. For more information, see Amazon EBS-Optimized
  3315. // Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html)
  3316. // in the Amazon Elastic Compute Cloud User Guide.
  3317. EbsOptimized *bool `type:"boolean"`
  3318. // The name or the Amazon Resource Name (ARN) of the instance profile associated
  3319. // with the IAM role for the instance.
  3320. //
  3321. // EC2 instances launched with an IAM role will automatically have AWS security
  3322. // credentials available. You can use IAM roles with Auto Scaling to automatically
  3323. // enable applications running on your EC2 instances to securely access other
  3324. // AWS resources. For more information, see Launch Auto Scaling Instances with
  3325. // an IAM Role (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-iam-role.html)
  3326. // in the Auto Scaling User Guide.
  3327. IamInstanceProfile *string `min:"1" type:"string"`
  3328. // The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
  3329. // For more information, see Finding an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html)
  3330. // in the Amazon Elastic Compute Cloud User Guide.
  3331. ImageId *string `min:"1" type:"string"`
  3332. // The ID of the instance to use to create the launch configuration.
  3333. //
  3334. // The new launch configuration derives attributes from the instance, with
  3335. // the exception of the block device mapping.
  3336. //
  3337. // To create a launch configuration with a block device mapping or override
  3338. // any other instance attributes, specify them as part of the same request.
  3339. //
  3340. // For more information, see Create a Launch Configuration Using an EC2 Instance
  3341. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-lc-with-instanceID.html)
  3342. // in the Auto Scaling User Guide.
  3343. InstanceId *string `min:"1" type:"string"`
  3344. // Enables detailed monitoring if it is disabled. Detailed monitoring is enabled
  3345. // by default.
  3346. //
  3347. // When detailed monitoring is enabled, Amazon CloudWatch generates metrics
  3348. // every minute and your account is charged a fee. When you disable detailed
  3349. // monitoring, by specifying False, CloudWatch generates metrics every 5 minutes.
  3350. // For more information, see Monitoring Your Auto Scaling Instances and Groups
  3351. // (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-instance-monitoring.html)
  3352. // in the Auto Scaling User Guide.
  3353. InstanceMonitoring *InstanceMonitoring `type:"structure"`
  3354. // The instance type of the EC2 instance. For information about available instance
  3355. // types, see Available Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes)
  3356. // in the Amazon Elastic Compute Cloud User Guide.
  3357. InstanceType *string `min:"1" type:"string"`
  3358. // The ID of the kernel associated with the AMI.
  3359. KernelId *string `min:"1" type:"string"`
  3360. // The name of the key pair. For more information, see Amazon EC2 Key Pairs
  3361. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in
  3362. // the Amazon Elastic Compute Cloud User Guide.
  3363. KeyName *string `min:"1" type:"string"`
  3364. // The name of the launch configuration. This name must be unique within the
  3365. // scope of your AWS account.
  3366. LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
  3367. // The tenancy of the instance. An instance with a tenancy of dedicated runs
  3368. // on single-tenant hardware and can only be launched into a VPC.
  3369. //
  3370. // You must set the value of this parameter to dedicated if want to launch
  3371. // Dedicated Instances into a shared tenancy VPC (VPC with instance placement
  3372. // tenancy attribute set to default).
  3373. //
  3374. // If you specify this parameter, be sure to specify at least one subnet when
  3375. // you create your group.
  3376. //
  3377. // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
  3378. // in the Auto Scaling User Guide.
  3379. //
  3380. // Valid values: default | dedicated
  3381. PlacementTenancy *string `min:"1" type:"string"`
  3382. // The ID of the RAM disk associated with the AMI.
  3383. RamdiskId *string `min:"1" type:"string"`
  3384. // One or more security groups with which to associate the instances.
  3385. //
  3386. // If your instances are launched in EC2-Classic, you can either specify security
  3387. // group names or the security group IDs. For more information about security
  3388. // groups for EC2-Classic, see Amazon EC2 Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  3389. // in the Amazon Elastic Compute Cloud User Guide.
  3390. //
  3391. // If your instances are launched into a VPC, specify security group IDs. For
  3392. // more information, see Security Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  3393. // in the Amazon Virtual Private Cloud User Guide.
  3394. SecurityGroups []*string `type:"list"`
  3395. // The maximum hourly price to be paid for any Spot Instance launched to fulfill
  3396. // the request. Spot Instances are launched when the price you specify exceeds
  3397. // the current Spot market price. For more information, see Launching Spot Instances
  3398. // in Your Auto Scaling Group (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US-SpotInstances.html)
  3399. // in the Auto Scaling User Guide.
  3400. SpotPrice *string `min:"1" type:"string"`
  3401. // The user data to make available to the launched EC2 instances. For more information,
  3402. // see Instance Metadata and User Data (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html)
  3403. // in the Amazon Elastic Compute Cloud User Guide.
  3404. UserData *string `type:"string"`
  3405. }
  3406. // String returns the string representation
  3407. func (s CreateLaunchConfigurationInput) String() string {
  3408. return awsutil.Prettify(s)
  3409. }
  3410. // GoString returns the string representation
  3411. func (s CreateLaunchConfigurationInput) GoString() string {
  3412. return s.String()
  3413. }
  3414. // Validate inspects the fields of the type to determine if they are valid.
  3415. func (s *CreateLaunchConfigurationInput) Validate() error {
  3416. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchConfigurationInput"}
  3417. if s.ClassicLinkVPCId != nil && len(*s.ClassicLinkVPCId) < 1 {
  3418. invalidParams.Add(request.NewErrParamMinLen("ClassicLinkVPCId", 1))
  3419. }
  3420. if s.IamInstanceProfile != nil && len(*s.IamInstanceProfile) < 1 {
  3421. invalidParams.Add(request.NewErrParamMinLen("IamInstanceProfile", 1))
  3422. }
  3423. if s.ImageId != nil && len(*s.ImageId) < 1 {
  3424. invalidParams.Add(request.NewErrParamMinLen("ImageId", 1))
  3425. }
  3426. if s.InstanceId != nil && len(*s.InstanceId) < 1 {
  3427. invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1))
  3428. }
  3429. if s.InstanceType != nil && len(*s.InstanceType) < 1 {
  3430. invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
  3431. }
  3432. if s.KernelId != nil && len(*s.KernelId) < 1 {
  3433. invalidParams.Add(request.NewErrParamMinLen("KernelId", 1))
  3434. }
  3435. if s.KeyName != nil && len(*s.KeyName) < 1 {
  3436. invalidParams.Add(request.NewErrParamMinLen("KeyName", 1))
  3437. }
  3438. if s.LaunchConfigurationName == nil {
  3439. invalidParams.Add(request.NewErrParamRequired("LaunchConfigurationName"))
  3440. }
  3441. if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 {
  3442. invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1))
  3443. }
  3444. if s.PlacementTenancy != nil && len(*s.PlacementTenancy) < 1 {
  3445. invalidParams.Add(request.NewErrParamMinLen("PlacementTenancy", 1))
  3446. }
  3447. if s.RamdiskId != nil && len(*s.RamdiskId) < 1 {
  3448. invalidParams.Add(request.NewErrParamMinLen("RamdiskId", 1))
  3449. }
  3450. if s.SpotPrice != nil && len(*s.SpotPrice) < 1 {
  3451. invalidParams.Add(request.NewErrParamMinLen("SpotPrice", 1))
  3452. }
  3453. if s.BlockDeviceMappings != nil {
  3454. for i, v := range s.BlockDeviceMappings {
  3455. if v == nil {
  3456. continue
  3457. }
  3458. if err := v.Validate(); err != nil {
  3459. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BlockDeviceMappings", i), err.(request.ErrInvalidParams))
  3460. }
  3461. }
  3462. }
  3463. if invalidParams.Len() > 0 {
  3464. return invalidParams
  3465. }
  3466. return nil
  3467. }
  3468. type CreateLaunchConfigurationOutput struct {
  3469. _ struct{} `type:"structure"`
  3470. }
  3471. // String returns the string representation
  3472. func (s CreateLaunchConfigurationOutput) String() string {
  3473. return awsutil.Prettify(s)
  3474. }
  3475. // GoString returns the string representation
  3476. func (s CreateLaunchConfigurationOutput) GoString() string {
  3477. return s.String()
  3478. }
  3479. // Contains the parameters for CreateOrUpdateTags.
  3480. type CreateOrUpdateTagsInput struct {
  3481. _ struct{} `type:"structure"`
  3482. // One or more tags.
  3483. Tags []*Tag `type:"list" required:"true"`
  3484. }
  3485. // String returns the string representation
  3486. func (s CreateOrUpdateTagsInput) String() string {
  3487. return awsutil.Prettify(s)
  3488. }
  3489. // GoString returns the string representation
  3490. func (s CreateOrUpdateTagsInput) GoString() string {
  3491. return s.String()
  3492. }
  3493. // Validate inspects the fields of the type to determine if they are valid.
  3494. func (s *CreateOrUpdateTagsInput) Validate() error {
  3495. invalidParams := request.ErrInvalidParams{Context: "CreateOrUpdateTagsInput"}
  3496. if s.Tags == nil {
  3497. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3498. }
  3499. if s.Tags != nil {
  3500. for i, v := range s.Tags {
  3501. if v == nil {
  3502. continue
  3503. }
  3504. if err := v.Validate(); err != nil {
  3505. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3506. }
  3507. }
  3508. }
  3509. if invalidParams.Len() > 0 {
  3510. return invalidParams
  3511. }
  3512. return nil
  3513. }
  3514. type CreateOrUpdateTagsOutput struct {
  3515. _ struct{} `type:"structure"`
  3516. }
  3517. // String returns the string representation
  3518. func (s CreateOrUpdateTagsOutput) String() string {
  3519. return awsutil.Prettify(s)
  3520. }
  3521. // GoString returns the string representation
  3522. func (s CreateOrUpdateTagsOutput) GoString() string {
  3523. return s.String()
  3524. }
  3525. // Contains the parameters for DeleteAutoScalingGroup.
  3526. type DeleteAutoScalingGroupInput struct {
  3527. _ struct{} `type:"structure"`
  3528. // The name of the group to delete.
  3529. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  3530. // Specifies that the group will be deleted along with all instances associated
  3531. // with the group, without waiting for all instances to be terminated. This
  3532. // parameter also deletes any lifecycle actions associated with the group.
  3533. ForceDelete *bool `type:"boolean"`
  3534. }
  3535. // String returns the string representation
  3536. func (s DeleteAutoScalingGroupInput) String() string {
  3537. return awsutil.Prettify(s)
  3538. }
  3539. // GoString returns the string representation
  3540. func (s DeleteAutoScalingGroupInput) GoString() string {
  3541. return s.String()
  3542. }
  3543. // Validate inspects the fields of the type to determine if they are valid.
  3544. func (s *DeleteAutoScalingGroupInput) Validate() error {
  3545. invalidParams := request.ErrInvalidParams{Context: "DeleteAutoScalingGroupInput"}
  3546. if s.AutoScalingGroupName == nil {
  3547. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  3548. }
  3549. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3550. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3551. }
  3552. if invalidParams.Len() > 0 {
  3553. return invalidParams
  3554. }
  3555. return nil
  3556. }
  3557. type DeleteAutoScalingGroupOutput struct {
  3558. _ struct{} `type:"structure"`
  3559. }
  3560. // String returns the string representation
  3561. func (s DeleteAutoScalingGroupOutput) String() string {
  3562. return awsutil.Prettify(s)
  3563. }
  3564. // GoString returns the string representation
  3565. func (s DeleteAutoScalingGroupOutput) GoString() string {
  3566. return s.String()
  3567. }
  3568. // Contains the parameters for DeleteLaunchConfiguration.
  3569. type DeleteLaunchConfigurationInput struct {
  3570. _ struct{} `type:"structure"`
  3571. // The name of the launch configuration.
  3572. LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
  3573. }
  3574. // String returns the string representation
  3575. func (s DeleteLaunchConfigurationInput) String() string {
  3576. return awsutil.Prettify(s)
  3577. }
  3578. // GoString returns the string representation
  3579. func (s DeleteLaunchConfigurationInput) GoString() string {
  3580. return s.String()
  3581. }
  3582. // Validate inspects the fields of the type to determine if they are valid.
  3583. func (s *DeleteLaunchConfigurationInput) Validate() error {
  3584. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchConfigurationInput"}
  3585. if s.LaunchConfigurationName == nil {
  3586. invalidParams.Add(request.NewErrParamRequired("LaunchConfigurationName"))
  3587. }
  3588. if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 {
  3589. invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1))
  3590. }
  3591. if invalidParams.Len() > 0 {
  3592. return invalidParams
  3593. }
  3594. return nil
  3595. }
  3596. type DeleteLaunchConfigurationOutput struct {
  3597. _ struct{} `type:"structure"`
  3598. }
  3599. // String returns the string representation
  3600. func (s DeleteLaunchConfigurationOutput) String() string {
  3601. return awsutil.Prettify(s)
  3602. }
  3603. // GoString returns the string representation
  3604. func (s DeleteLaunchConfigurationOutput) GoString() string {
  3605. return s.String()
  3606. }
  3607. // Contains the parameters for DeleteLifecycleHook.
  3608. type DeleteLifecycleHookInput struct {
  3609. _ struct{} `type:"structure"`
  3610. // The name of the Auto Scaling group for the lifecycle hook.
  3611. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  3612. // The name of the lifecycle hook.
  3613. LifecycleHookName *string `min:"1" type:"string" required:"true"`
  3614. }
  3615. // String returns the string representation
  3616. func (s DeleteLifecycleHookInput) String() string {
  3617. return awsutil.Prettify(s)
  3618. }
  3619. // GoString returns the string representation
  3620. func (s DeleteLifecycleHookInput) GoString() string {
  3621. return s.String()
  3622. }
  3623. // Validate inspects the fields of the type to determine if they are valid.
  3624. func (s *DeleteLifecycleHookInput) Validate() error {
  3625. invalidParams := request.ErrInvalidParams{Context: "DeleteLifecycleHookInput"}
  3626. if s.AutoScalingGroupName == nil {
  3627. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  3628. }
  3629. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3630. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3631. }
  3632. if s.LifecycleHookName == nil {
  3633. invalidParams.Add(request.NewErrParamRequired("LifecycleHookName"))
  3634. }
  3635. if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 {
  3636. invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1))
  3637. }
  3638. if invalidParams.Len() > 0 {
  3639. return invalidParams
  3640. }
  3641. return nil
  3642. }
  3643. // Contains the output of DeleteLifecycleHook.
  3644. type DeleteLifecycleHookOutput struct {
  3645. _ struct{} `type:"structure"`
  3646. }
  3647. // String returns the string representation
  3648. func (s DeleteLifecycleHookOutput) String() string {
  3649. return awsutil.Prettify(s)
  3650. }
  3651. // GoString returns the string representation
  3652. func (s DeleteLifecycleHookOutput) GoString() string {
  3653. return s.String()
  3654. }
  3655. // Contains the parameters for DeleteNotificationConfiguration.
  3656. type DeleteNotificationConfigurationInput struct {
  3657. _ struct{} `type:"structure"`
  3658. // The name of the Auto Scaling group.
  3659. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  3660. // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
  3661. // (SNS) topic.
  3662. TopicARN *string `min:"1" type:"string" required:"true"`
  3663. }
  3664. // String returns the string representation
  3665. func (s DeleteNotificationConfigurationInput) String() string {
  3666. return awsutil.Prettify(s)
  3667. }
  3668. // GoString returns the string representation
  3669. func (s DeleteNotificationConfigurationInput) GoString() string {
  3670. return s.String()
  3671. }
  3672. // Validate inspects the fields of the type to determine if they are valid.
  3673. func (s *DeleteNotificationConfigurationInput) Validate() error {
  3674. invalidParams := request.ErrInvalidParams{Context: "DeleteNotificationConfigurationInput"}
  3675. if s.AutoScalingGroupName == nil {
  3676. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  3677. }
  3678. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3679. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3680. }
  3681. if s.TopicARN == nil {
  3682. invalidParams.Add(request.NewErrParamRequired("TopicARN"))
  3683. }
  3684. if s.TopicARN != nil && len(*s.TopicARN) < 1 {
  3685. invalidParams.Add(request.NewErrParamMinLen("TopicARN", 1))
  3686. }
  3687. if invalidParams.Len() > 0 {
  3688. return invalidParams
  3689. }
  3690. return nil
  3691. }
  3692. type DeleteNotificationConfigurationOutput struct {
  3693. _ struct{} `type:"structure"`
  3694. }
  3695. // String returns the string representation
  3696. func (s DeleteNotificationConfigurationOutput) String() string {
  3697. return awsutil.Prettify(s)
  3698. }
  3699. // GoString returns the string representation
  3700. func (s DeleteNotificationConfigurationOutput) GoString() string {
  3701. return s.String()
  3702. }
  3703. // Contains the parameters for DeletePolicy.
  3704. type DeletePolicyInput struct {
  3705. _ struct{} `type:"structure"`
  3706. // The name of the Auto Scaling group.
  3707. AutoScalingGroupName *string `min:"1" type:"string"`
  3708. // The name or Amazon Resource Name (ARN) of the policy.
  3709. PolicyName *string `min:"1" type:"string" required:"true"`
  3710. }
  3711. // String returns the string representation
  3712. func (s DeletePolicyInput) String() string {
  3713. return awsutil.Prettify(s)
  3714. }
  3715. // GoString returns the string representation
  3716. func (s DeletePolicyInput) GoString() string {
  3717. return s.String()
  3718. }
  3719. // Validate inspects the fields of the type to determine if they are valid.
  3720. func (s *DeletePolicyInput) Validate() error {
  3721. invalidParams := request.ErrInvalidParams{Context: "DeletePolicyInput"}
  3722. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3723. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3724. }
  3725. if s.PolicyName == nil {
  3726. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3727. }
  3728. if s.PolicyName != nil && len(*s.PolicyName) < 1 {
  3729. invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
  3730. }
  3731. if invalidParams.Len() > 0 {
  3732. return invalidParams
  3733. }
  3734. return nil
  3735. }
  3736. type DeletePolicyOutput struct {
  3737. _ struct{} `type:"structure"`
  3738. }
  3739. // String returns the string representation
  3740. func (s DeletePolicyOutput) String() string {
  3741. return awsutil.Prettify(s)
  3742. }
  3743. // GoString returns the string representation
  3744. func (s DeletePolicyOutput) GoString() string {
  3745. return s.String()
  3746. }
  3747. // Contains the parameters for DeleteScheduledAction.
  3748. type DeleteScheduledActionInput struct {
  3749. _ struct{} `type:"structure"`
  3750. // The name of the Auto Scaling group.
  3751. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  3752. // The name of the action to delete.
  3753. ScheduledActionName *string `min:"1" type:"string" required:"true"`
  3754. }
  3755. // String returns the string representation
  3756. func (s DeleteScheduledActionInput) String() string {
  3757. return awsutil.Prettify(s)
  3758. }
  3759. // GoString returns the string representation
  3760. func (s DeleteScheduledActionInput) GoString() string {
  3761. return s.String()
  3762. }
  3763. // Validate inspects the fields of the type to determine if they are valid.
  3764. func (s *DeleteScheduledActionInput) Validate() error {
  3765. invalidParams := request.ErrInvalidParams{Context: "DeleteScheduledActionInput"}
  3766. if s.AutoScalingGroupName == nil {
  3767. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  3768. }
  3769. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  3770. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  3771. }
  3772. if s.ScheduledActionName == nil {
  3773. invalidParams.Add(request.NewErrParamRequired("ScheduledActionName"))
  3774. }
  3775. if s.ScheduledActionName != nil && len(*s.ScheduledActionName) < 1 {
  3776. invalidParams.Add(request.NewErrParamMinLen("ScheduledActionName", 1))
  3777. }
  3778. if invalidParams.Len() > 0 {
  3779. return invalidParams
  3780. }
  3781. return nil
  3782. }
  3783. type DeleteScheduledActionOutput struct {
  3784. _ struct{} `type:"structure"`
  3785. }
  3786. // String returns the string representation
  3787. func (s DeleteScheduledActionOutput) String() string {
  3788. return awsutil.Prettify(s)
  3789. }
  3790. // GoString returns the string representation
  3791. func (s DeleteScheduledActionOutput) GoString() string {
  3792. return s.String()
  3793. }
  3794. // Contains the parameters for DeleteTags.
  3795. type DeleteTagsInput struct {
  3796. _ struct{} `type:"structure"`
  3797. // One or more tags.
  3798. Tags []*Tag `type:"list" required:"true"`
  3799. }
  3800. // String returns the string representation
  3801. func (s DeleteTagsInput) String() string {
  3802. return awsutil.Prettify(s)
  3803. }
  3804. // GoString returns the string representation
  3805. func (s DeleteTagsInput) GoString() string {
  3806. return s.String()
  3807. }
  3808. // Validate inspects the fields of the type to determine if they are valid.
  3809. func (s *DeleteTagsInput) Validate() error {
  3810. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  3811. if s.Tags == nil {
  3812. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3813. }
  3814. if s.Tags != nil {
  3815. for i, v := range s.Tags {
  3816. if v == nil {
  3817. continue
  3818. }
  3819. if err := v.Validate(); err != nil {
  3820. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3821. }
  3822. }
  3823. }
  3824. if invalidParams.Len() > 0 {
  3825. return invalidParams
  3826. }
  3827. return nil
  3828. }
  3829. type DeleteTagsOutput struct {
  3830. _ struct{} `type:"structure"`
  3831. }
  3832. // String returns the string representation
  3833. func (s DeleteTagsOutput) String() string {
  3834. return awsutil.Prettify(s)
  3835. }
  3836. // GoString returns the string representation
  3837. func (s DeleteTagsOutput) GoString() string {
  3838. return s.String()
  3839. }
  3840. type DescribeAccountLimitsInput struct {
  3841. _ struct{} `type:"structure"`
  3842. }
  3843. // String returns the string representation
  3844. func (s DescribeAccountLimitsInput) String() string {
  3845. return awsutil.Prettify(s)
  3846. }
  3847. // GoString returns the string representation
  3848. func (s DescribeAccountLimitsInput) GoString() string {
  3849. return s.String()
  3850. }
  3851. // Contains the parameters for DescribeAccountLimits.
  3852. type DescribeAccountLimitsOutput struct {
  3853. _ struct{} `type:"structure"`
  3854. // The maximum number of groups allowed for your AWS account. The default limit
  3855. // is 20 per region.
  3856. MaxNumberOfAutoScalingGroups *int64 `type:"integer"`
  3857. // The maximum number of launch configurations allowed for your AWS account.
  3858. // The default limit is 100 per region.
  3859. MaxNumberOfLaunchConfigurations *int64 `type:"integer"`
  3860. // The current number of groups for your AWS account.
  3861. NumberOfAutoScalingGroups *int64 `type:"integer"`
  3862. // The current number of launch configurations for your AWS account.
  3863. NumberOfLaunchConfigurations *int64 `type:"integer"`
  3864. }
  3865. // String returns the string representation
  3866. func (s DescribeAccountLimitsOutput) String() string {
  3867. return awsutil.Prettify(s)
  3868. }
  3869. // GoString returns the string representation
  3870. func (s DescribeAccountLimitsOutput) GoString() string {
  3871. return s.String()
  3872. }
  3873. type DescribeAdjustmentTypesInput struct {
  3874. _ struct{} `type:"structure"`
  3875. }
  3876. // String returns the string representation
  3877. func (s DescribeAdjustmentTypesInput) String() string {
  3878. return awsutil.Prettify(s)
  3879. }
  3880. // GoString returns the string representation
  3881. func (s DescribeAdjustmentTypesInput) GoString() string {
  3882. return s.String()
  3883. }
  3884. // Contains the parameters for DescribeAdjustmentTypes.
  3885. type DescribeAdjustmentTypesOutput struct {
  3886. _ struct{} `type:"structure"`
  3887. // The policy adjustment types.
  3888. AdjustmentTypes []*AdjustmentType `type:"list"`
  3889. }
  3890. // String returns the string representation
  3891. func (s DescribeAdjustmentTypesOutput) String() string {
  3892. return awsutil.Prettify(s)
  3893. }
  3894. // GoString returns the string representation
  3895. func (s DescribeAdjustmentTypesOutput) GoString() string {
  3896. return s.String()
  3897. }
  3898. // Contains the parameters for DescribeAutoScalingGroups.
  3899. type DescribeAutoScalingGroupsInput struct {
  3900. _ struct{} `type:"structure"`
  3901. // The group names. If you omit this parameter, all Auto Scaling groups are
  3902. // described.
  3903. AutoScalingGroupNames []*string `type:"list"`
  3904. // The maximum number of items to return with this call.
  3905. MaxRecords *int64 `type:"integer"`
  3906. // The token for the next set of items to return. (You received this token from
  3907. // a previous call.)
  3908. NextToken *string `type:"string"`
  3909. }
  3910. // String returns the string representation
  3911. func (s DescribeAutoScalingGroupsInput) String() string {
  3912. return awsutil.Prettify(s)
  3913. }
  3914. // GoString returns the string representation
  3915. func (s DescribeAutoScalingGroupsInput) GoString() string {
  3916. return s.String()
  3917. }
  3918. // Contains the output for DescribeAutoScalingGroups.
  3919. type DescribeAutoScalingGroupsOutput struct {
  3920. _ struct{} `type:"structure"`
  3921. // The groups.
  3922. AutoScalingGroups []*Group `type:"list" required:"true"`
  3923. // The token to use when requesting the next set of items. If there are no additional
  3924. // items to return, the string is empty.
  3925. NextToken *string `type:"string"`
  3926. }
  3927. // String returns the string representation
  3928. func (s DescribeAutoScalingGroupsOutput) String() string {
  3929. return awsutil.Prettify(s)
  3930. }
  3931. // GoString returns the string representation
  3932. func (s DescribeAutoScalingGroupsOutput) GoString() string {
  3933. return s.String()
  3934. }
  3935. // Contains the parameters for DescribeAutoScalingInstances.
  3936. type DescribeAutoScalingInstancesInput struct {
  3937. _ struct{} `type:"structure"`
  3938. // The instances to describe; up to 50 instance IDs. If you omit this parameter,
  3939. // all Auto Scaling instances are described. If you specify an ID that does
  3940. // not exist, it is ignored with no error.
  3941. InstanceIds []*string `type:"list"`
  3942. // The maximum number of items to return with this call.
  3943. MaxRecords *int64 `type:"integer"`
  3944. // The token for the next set of items to return. (You received this token from
  3945. // a previous call.)
  3946. NextToken *string `type:"string"`
  3947. }
  3948. // String returns the string representation
  3949. func (s DescribeAutoScalingInstancesInput) String() string {
  3950. return awsutil.Prettify(s)
  3951. }
  3952. // GoString returns the string representation
  3953. func (s DescribeAutoScalingInstancesInput) GoString() string {
  3954. return s.String()
  3955. }
  3956. // Contains the output of DescribeAutoScalingInstances.
  3957. type DescribeAutoScalingInstancesOutput struct {
  3958. _ struct{} `type:"structure"`
  3959. // The instances.
  3960. AutoScalingInstances []*InstanceDetails `type:"list"`
  3961. // The token to use when requesting the next set of items. If there are no additional
  3962. // items to return, the string is empty.
  3963. NextToken *string `type:"string"`
  3964. }
  3965. // String returns the string representation
  3966. func (s DescribeAutoScalingInstancesOutput) String() string {
  3967. return awsutil.Prettify(s)
  3968. }
  3969. // GoString returns the string representation
  3970. func (s DescribeAutoScalingInstancesOutput) GoString() string {
  3971. return s.String()
  3972. }
  3973. type DescribeAutoScalingNotificationTypesInput struct {
  3974. _ struct{} `type:"structure"`
  3975. }
  3976. // String returns the string representation
  3977. func (s DescribeAutoScalingNotificationTypesInput) String() string {
  3978. return awsutil.Prettify(s)
  3979. }
  3980. // GoString returns the string representation
  3981. func (s DescribeAutoScalingNotificationTypesInput) GoString() string {
  3982. return s.String()
  3983. }
  3984. // Contains the output of DescribeAutoScalingNotificationTypes.
  3985. type DescribeAutoScalingNotificationTypesOutput struct {
  3986. _ struct{} `type:"structure"`
  3987. // The notification types.
  3988. AutoScalingNotificationTypes []*string `type:"list"`
  3989. }
  3990. // String returns the string representation
  3991. func (s DescribeAutoScalingNotificationTypesOutput) String() string {
  3992. return awsutil.Prettify(s)
  3993. }
  3994. // GoString returns the string representation
  3995. func (s DescribeAutoScalingNotificationTypesOutput) GoString() string {
  3996. return s.String()
  3997. }
  3998. // Contains the parameters for DescribeLaunchConfigurations.
  3999. type DescribeLaunchConfigurationsInput struct {
  4000. _ struct{} `type:"structure"`
  4001. // The launch configuration names. If you omit this parameter, all launch configurations
  4002. // are described.
  4003. LaunchConfigurationNames []*string `type:"list"`
  4004. // The maximum number of items to return with this call. The default is 100.
  4005. MaxRecords *int64 `type:"integer"`
  4006. // The token for the next set of items to return. (You received this token from
  4007. // a previous call.)
  4008. NextToken *string `type:"string"`
  4009. }
  4010. // String returns the string representation
  4011. func (s DescribeLaunchConfigurationsInput) String() string {
  4012. return awsutil.Prettify(s)
  4013. }
  4014. // GoString returns the string representation
  4015. func (s DescribeLaunchConfigurationsInput) GoString() string {
  4016. return s.String()
  4017. }
  4018. // Contains the output of DescribeLaunchConfigurations.
  4019. type DescribeLaunchConfigurationsOutput struct {
  4020. _ struct{} `type:"structure"`
  4021. // The launch configurations.
  4022. LaunchConfigurations []*LaunchConfiguration `type:"list" required:"true"`
  4023. // The token to use when requesting the next set of items. If there are no additional
  4024. // items to return, the string is empty.
  4025. NextToken *string `type:"string"`
  4026. }
  4027. // String returns the string representation
  4028. func (s DescribeLaunchConfigurationsOutput) String() string {
  4029. return awsutil.Prettify(s)
  4030. }
  4031. // GoString returns the string representation
  4032. func (s DescribeLaunchConfigurationsOutput) GoString() string {
  4033. return s.String()
  4034. }
  4035. type DescribeLifecycleHookTypesInput struct {
  4036. _ struct{} `type:"structure"`
  4037. }
  4038. // String returns the string representation
  4039. func (s DescribeLifecycleHookTypesInput) String() string {
  4040. return awsutil.Prettify(s)
  4041. }
  4042. // GoString returns the string representation
  4043. func (s DescribeLifecycleHookTypesInput) GoString() string {
  4044. return s.String()
  4045. }
  4046. // Contains the output of DescribeLifecycleHookTypes.
  4047. type DescribeLifecycleHookTypesOutput struct {
  4048. _ struct{} `type:"structure"`
  4049. // The lifecycle hook types.
  4050. LifecycleHookTypes []*string `type:"list"`
  4051. }
  4052. // String returns the string representation
  4053. func (s DescribeLifecycleHookTypesOutput) String() string {
  4054. return awsutil.Prettify(s)
  4055. }
  4056. // GoString returns the string representation
  4057. func (s DescribeLifecycleHookTypesOutput) GoString() string {
  4058. return s.String()
  4059. }
  4060. // Contains the parameters for DescribeLifecycleHooks.
  4061. type DescribeLifecycleHooksInput struct {
  4062. _ struct{} `type:"structure"`
  4063. // The name of the group.
  4064. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4065. // The names of one or more lifecycle hooks. If you omit this parameter, all
  4066. // lifecycle hooks are described.
  4067. LifecycleHookNames []*string `type:"list"`
  4068. }
  4069. // String returns the string representation
  4070. func (s DescribeLifecycleHooksInput) String() string {
  4071. return awsutil.Prettify(s)
  4072. }
  4073. // GoString returns the string representation
  4074. func (s DescribeLifecycleHooksInput) GoString() string {
  4075. return s.String()
  4076. }
  4077. // Validate inspects the fields of the type to determine if they are valid.
  4078. func (s *DescribeLifecycleHooksInput) Validate() error {
  4079. invalidParams := request.ErrInvalidParams{Context: "DescribeLifecycleHooksInput"}
  4080. if s.AutoScalingGroupName == nil {
  4081. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4082. }
  4083. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4084. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4085. }
  4086. if invalidParams.Len() > 0 {
  4087. return invalidParams
  4088. }
  4089. return nil
  4090. }
  4091. // Contains the output of DescribeLifecycleHooks.
  4092. type DescribeLifecycleHooksOutput struct {
  4093. _ struct{} `type:"structure"`
  4094. // The lifecycle hooks for the specified group.
  4095. LifecycleHooks []*LifecycleHook `type:"list"`
  4096. }
  4097. // String returns the string representation
  4098. func (s DescribeLifecycleHooksOutput) String() string {
  4099. return awsutil.Prettify(s)
  4100. }
  4101. // GoString returns the string representation
  4102. func (s DescribeLifecycleHooksOutput) GoString() string {
  4103. return s.String()
  4104. }
  4105. // Contains the parameters for DescribeLoadBalancerTargetGroups.
  4106. type DescribeLoadBalancerTargetGroupsInput struct {
  4107. _ struct{} `type:"structure"`
  4108. // The name of the Auto Scaling group.
  4109. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4110. // The maximum number of items to return with this call.
  4111. MaxRecords *int64 `type:"integer"`
  4112. // The token for the next set of items to return. (You received this token from
  4113. // a previous call.)
  4114. NextToken *string `type:"string"`
  4115. }
  4116. // String returns the string representation
  4117. func (s DescribeLoadBalancerTargetGroupsInput) String() string {
  4118. return awsutil.Prettify(s)
  4119. }
  4120. // GoString returns the string representation
  4121. func (s DescribeLoadBalancerTargetGroupsInput) GoString() string {
  4122. return s.String()
  4123. }
  4124. // Validate inspects the fields of the type to determine if they are valid.
  4125. func (s *DescribeLoadBalancerTargetGroupsInput) Validate() error {
  4126. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerTargetGroupsInput"}
  4127. if s.AutoScalingGroupName == nil {
  4128. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4129. }
  4130. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4131. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4132. }
  4133. if invalidParams.Len() > 0 {
  4134. return invalidParams
  4135. }
  4136. return nil
  4137. }
  4138. // Contains the output of DescribeLoadBalancerTargetGroups.
  4139. type DescribeLoadBalancerTargetGroupsOutput struct {
  4140. _ struct{} `type:"structure"`
  4141. // Information about the target groups.
  4142. LoadBalancerTargetGroups []*LoadBalancerTargetGroupState `type:"list"`
  4143. // The token to use when requesting the next set of items. If there are no additional
  4144. // items to return, the string is empty.
  4145. NextToken *string `type:"string"`
  4146. }
  4147. // String returns the string representation
  4148. func (s DescribeLoadBalancerTargetGroupsOutput) String() string {
  4149. return awsutil.Prettify(s)
  4150. }
  4151. // GoString returns the string representation
  4152. func (s DescribeLoadBalancerTargetGroupsOutput) GoString() string {
  4153. return s.String()
  4154. }
  4155. // Contains the parameters for DescribeLoadBalancers.
  4156. type DescribeLoadBalancersInput struct {
  4157. _ struct{} `type:"structure"`
  4158. // The name of the group.
  4159. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4160. // The maximum number of items to return with this call.
  4161. MaxRecords *int64 `type:"integer"`
  4162. // The token for the next set of items to return. (You received this token from
  4163. // a previous call.)
  4164. NextToken *string `type:"string"`
  4165. }
  4166. // String returns the string representation
  4167. func (s DescribeLoadBalancersInput) String() string {
  4168. return awsutil.Prettify(s)
  4169. }
  4170. // GoString returns the string representation
  4171. func (s DescribeLoadBalancersInput) GoString() string {
  4172. return s.String()
  4173. }
  4174. // Validate inspects the fields of the type to determine if they are valid.
  4175. func (s *DescribeLoadBalancersInput) Validate() error {
  4176. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"}
  4177. if s.AutoScalingGroupName == nil {
  4178. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4179. }
  4180. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4181. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4182. }
  4183. if invalidParams.Len() > 0 {
  4184. return invalidParams
  4185. }
  4186. return nil
  4187. }
  4188. // Contains the output of DescribeLoadBalancers.
  4189. type DescribeLoadBalancersOutput struct {
  4190. _ struct{} `type:"structure"`
  4191. // The load balancers.
  4192. LoadBalancers []*LoadBalancerState `type:"list"`
  4193. // The token to use when requesting the next set of items. If there are no additional
  4194. // items to return, the string is empty.
  4195. NextToken *string `type:"string"`
  4196. }
  4197. // String returns the string representation
  4198. func (s DescribeLoadBalancersOutput) String() string {
  4199. return awsutil.Prettify(s)
  4200. }
  4201. // GoString returns the string representation
  4202. func (s DescribeLoadBalancersOutput) GoString() string {
  4203. return s.String()
  4204. }
  4205. type DescribeMetricCollectionTypesInput struct {
  4206. _ struct{} `type:"structure"`
  4207. }
  4208. // String returns the string representation
  4209. func (s DescribeMetricCollectionTypesInput) String() string {
  4210. return awsutil.Prettify(s)
  4211. }
  4212. // GoString returns the string representation
  4213. func (s DescribeMetricCollectionTypesInput) GoString() string {
  4214. return s.String()
  4215. }
  4216. // Contains the output of DescribeMetricsCollectionTypes.
  4217. type DescribeMetricCollectionTypesOutput struct {
  4218. _ struct{} `type:"structure"`
  4219. // The granularities for the metrics.
  4220. Granularities []*MetricGranularityType `type:"list"`
  4221. // One or more metrics.
  4222. Metrics []*MetricCollectionType `type:"list"`
  4223. }
  4224. // String returns the string representation
  4225. func (s DescribeMetricCollectionTypesOutput) String() string {
  4226. return awsutil.Prettify(s)
  4227. }
  4228. // GoString returns the string representation
  4229. func (s DescribeMetricCollectionTypesOutput) GoString() string {
  4230. return s.String()
  4231. }
  4232. // Contains the parameters for DescribeNotificationConfigurations.
  4233. type DescribeNotificationConfigurationsInput struct {
  4234. _ struct{} `type:"structure"`
  4235. // The name of the group.
  4236. AutoScalingGroupNames []*string `type:"list"`
  4237. // The maximum number of items to return with this call.
  4238. MaxRecords *int64 `type:"integer"`
  4239. // The token for the next set of items to return. (You received this token from
  4240. // a previous call.)
  4241. NextToken *string `type:"string"`
  4242. }
  4243. // String returns the string representation
  4244. func (s DescribeNotificationConfigurationsInput) String() string {
  4245. return awsutil.Prettify(s)
  4246. }
  4247. // GoString returns the string representation
  4248. func (s DescribeNotificationConfigurationsInput) GoString() string {
  4249. return s.String()
  4250. }
  4251. // Contains the output from DescribeNotificationConfigurations.
  4252. type DescribeNotificationConfigurationsOutput struct {
  4253. _ struct{} `type:"structure"`
  4254. // The token to use when requesting the next set of items. If there are no additional
  4255. // items to return, the string is empty.
  4256. NextToken *string `type:"string"`
  4257. // The notification configurations.
  4258. NotificationConfigurations []*NotificationConfiguration `type:"list" required:"true"`
  4259. }
  4260. // String returns the string representation
  4261. func (s DescribeNotificationConfigurationsOutput) String() string {
  4262. return awsutil.Prettify(s)
  4263. }
  4264. // GoString returns the string representation
  4265. func (s DescribeNotificationConfigurationsOutput) GoString() string {
  4266. return s.String()
  4267. }
  4268. // Contains the parameters for DescribePolicies.
  4269. type DescribePoliciesInput struct {
  4270. _ struct{} `type:"structure"`
  4271. // The name of the group.
  4272. AutoScalingGroupName *string `min:"1" type:"string"`
  4273. // The maximum number of items to be returned with each call.
  4274. MaxRecords *int64 `type:"integer"`
  4275. // The token for the next set of items to return. (You received this token from
  4276. // a previous call.)
  4277. NextToken *string `type:"string"`
  4278. // One or more policy names or policy ARNs to be described. If you omit this
  4279. // parameter, all policy names are described. If an group name is provided,
  4280. // the results are limited to that group. This list is limited to 50 items.
  4281. // If you specify an unknown policy name, it is ignored with no error.
  4282. PolicyNames []*string `type:"list"`
  4283. // One or more policy types. Valid values are SimpleScaling and StepScaling.
  4284. PolicyTypes []*string `type:"list"`
  4285. }
  4286. // String returns the string representation
  4287. func (s DescribePoliciesInput) String() string {
  4288. return awsutil.Prettify(s)
  4289. }
  4290. // GoString returns the string representation
  4291. func (s DescribePoliciesInput) GoString() string {
  4292. return s.String()
  4293. }
  4294. // Validate inspects the fields of the type to determine if they are valid.
  4295. func (s *DescribePoliciesInput) Validate() error {
  4296. invalidParams := request.ErrInvalidParams{Context: "DescribePoliciesInput"}
  4297. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4298. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4299. }
  4300. if invalidParams.Len() > 0 {
  4301. return invalidParams
  4302. }
  4303. return nil
  4304. }
  4305. // Contains the output of DescribePolicies.
  4306. type DescribePoliciesOutput struct {
  4307. _ struct{} `type:"structure"`
  4308. // The token to use when requesting the next set of items. If there are no additional
  4309. // items to return, the string is empty.
  4310. NextToken *string `type:"string"`
  4311. // The scaling policies.
  4312. ScalingPolicies []*ScalingPolicy `type:"list"`
  4313. }
  4314. // String returns the string representation
  4315. func (s DescribePoliciesOutput) String() string {
  4316. return awsutil.Prettify(s)
  4317. }
  4318. // GoString returns the string representation
  4319. func (s DescribePoliciesOutput) GoString() string {
  4320. return s.String()
  4321. }
  4322. // Contains the parameters for DescribeScalingActivities.
  4323. type DescribeScalingActivitiesInput struct {
  4324. _ struct{} `type:"structure"`
  4325. // The activity IDs of the desired scaling activities. If you omit this parameter,
  4326. // all activities for the past six weeks are described. If you specify an Auto
  4327. // Scaling group, the results are limited to that group. The list of requested
  4328. // activities cannot contain more than 50 items. If unknown activities are requested,
  4329. // they are ignored with no error.
  4330. ActivityIds []*string `type:"list"`
  4331. // The name of the group.
  4332. AutoScalingGroupName *string `min:"1" type:"string"`
  4333. // The maximum number of items to return with this call.
  4334. MaxRecords *int64 `type:"integer"`
  4335. // The token for the next set of items to return. (You received this token from
  4336. // a previous call.)
  4337. NextToken *string `type:"string"`
  4338. }
  4339. // String returns the string representation
  4340. func (s DescribeScalingActivitiesInput) String() string {
  4341. return awsutil.Prettify(s)
  4342. }
  4343. // GoString returns the string representation
  4344. func (s DescribeScalingActivitiesInput) GoString() string {
  4345. return s.String()
  4346. }
  4347. // Validate inspects the fields of the type to determine if they are valid.
  4348. func (s *DescribeScalingActivitiesInput) Validate() error {
  4349. invalidParams := request.ErrInvalidParams{Context: "DescribeScalingActivitiesInput"}
  4350. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4351. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4352. }
  4353. if invalidParams.Len() > 0 {
  4354. return invalidParams
  4355. }
  4356. return nil
  4357. }
  4358. // Contains the output of DescribeScalingActivities.
  4359. type DescribeScalingActivitiesOutput struct {
  4360. _ struct{} `type:"structure"`
  4361. // The scaling activities. Activities are sorted by start time. Activities still
  4362. // in progress are described first.
  4363. Activities []*Activity `type:"list" required:"true"`
  4364. // The token to use when requesting the next set of items. If there are no additional
  4365. // items to return, the string is empty.
  4366. NextToken *string `type:"string"`
  4367. }
  4368. // String returns the string representation
  4369. func (s DescribeScalingActivitiesOutput) String() string {
  4370. return awsutil.Prettify(s)
  4371. }
  4372. // GoString returns the string representation
  4373. func (s DescribeScalingActivitiesOutput) GoString() string {
  4374. return s.String()
  4375. }
  4376. type DescribeScalingProcessTypesInput struct {
  4377. _ struct{} `type:"structure"`
  4378. }
  4379. // String returns the string representation
  4380. func (s DescribeScalingProcessTypesInput) String() string {
  4381. return awsutil.Prettify(s)
  4382. }
  4383. // GoString returns the string representation
  4384. func (s DescribeScalingProcessTypesInput) GoString() string {
  4385. return s.String()
  4386. }
  4387. // Contains the output of DescribeScalingProcessTypes.
  4388. type DescribeScalingProcessTypesOutput struct {
  4389. _ struct{} `type:"structure"`
  4390. // The names of the process types.
  4391. Processes []*ProcessType `type:"list"`
  4392. }
  4393. // String returns the string representation
  4394. func (s DescribeScalingProcessTypesOutput) String() string {
  4395. return awsutil.Prettify(s)
  4396. }
  4397. // GoString returns the string representation
  4398. func (s DescribeScalingProcessTypesOutput) GoString() string {
  4399. return s.String()
  4400. }
  4401. // Contains the parameters for DescribeScheduledActions.
  4402. type DescribeScheduledActionsInput struct {
  4403. _ struct{} `type:"structure"`
  4404. // The name of the group.
  4405. AutoScalingGroupName *string `min:"1" type:"string"`
  4406. // The latest scheduled start time to return. If scheduled action names are
  4407. // provided, this parameter is ignored.
  4408. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4409. // The maximum number of items to return with this call.
  4410. MaxRecords *int64 `type:"integer"`
  4411. // The token for the next set of items to return. (You received this token from
  4412. // a previous call.)
  4413. NextToken *string `type:"string"`
  4414. // Describes one or more scheduled actions. If you omit this parameter, all
  4415. // scheduled actions are described. If you specify an unknown scheduled action,
  4416. // it is ignored with no error.
  4417. //
  4418. // You can describe up to a maximum of 50 instances with a single call. If
  4419. // there are more items to return, the call returns a token. To get the next
  4420. // set of items, repeat the call with the returned token.
  4421. ScheduledActionNames []*string `type:"list"`
  4422. // The earliest scheduled start time to return. If scheduled action names are
  4423. // provided, this parameter is ignored.
  4424. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4425. }
  4426. // String returns the string representation
  4427. func (s DescribeScheduledActionsInput) String() string {
  4428. return awsutil.Prettify(s)
  4429. }
  4430. // GoString returns the string representation
  4431. func (s DescribeScheduledActionsInput) GoString() string {
  4432. return s.String()
  4433. }
  4434. // Validate inspects the fields of the type to determine if they are valid.
  4435. func (s *DescribeScheduledActionsInput) Validate() error {
  4436. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledActionsInput"}
  4437. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4438. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4439. }
  4440. if invalidParams.Len() > 0 {
  4441. return invalidParams
  4442. }
  4443. return nil
  4444. }
  4445. // Contains the output of DescribeScheduledActions.
  4446. type DescribeScheduledActionsOutput struct {
  4447. _ struct{} `type:"structure"`
  4448. // The token to use when requesting the next set of items. If there are no additional
  4449. // items to return, the string is empty.
  4450. NextToken *string `type:"string"`
  4451. // The scheduled actions.
  4452. ScheduledUpdateGroupActions []*ScheduledUpdateGroupAction `type:"list"`
  4453. }
  4454. // String returns the string representation
  4455. func (s DescribeScheduledActionsOutput) String() string {
  4456. return awsutil.Prettify(s)
  4457. }
  4458. // GoString returns the string representation
  4459. func (s DescribeScheduledActionsOutput) GoString() string {
  4460. return s.String()
  4461. }
  4462. // Contains the parameters for DescribeTags.
  4463. type DescribeTagsInput struct {
  4464. _ struct{} `type:"structure"`
  4465. // A filter used to scope the tags to return.
  4466. Filters []*Filter `type:"list"`
  4467. // The maximum number of items to return with this call.
  4468. MaxRecords *int64 `type:"integer"`
  4469. // The token for the next set of items to return. (You received this token from
  4470. // a previous call.)
  4471. NextToken *string `type:"string"`
  4472. }
  4473. // String returns the string representation
  4474. func (s DescribeTagsInput) String() string {
  4475. return awsutil.Prettify(s)
  4476. }
  4477. // GoString returns the string representation
  4478. func (s DescribeTagsInput) GoString() string {
  4479. return s.String()
  4480. }
  4481. // Contains the output of DescribeTags.
  4482. type DescribeTagsOutput struct {
  4483. _ struct{} `type:"structure"`
  4484. // The token to use when requesting the next set of items. If there are no additional
  4485. // items to return, the string is empty.
  4486. NextToken *string `type:"string"`
  4487. // One or more tags.
  4488. Tags []*TagDescription `type:"list"`
  4489. }
  4490. // String returns the string representation
  4491. func (s DescribeTagsOutput) String() string {
  4492. return awsutil.Prettify(s)
  4493. }
  4494. // GoString returns the string representation
  4495. func (s DescribeTagsOutput) GoString() string {
  4496. return s.String()
  4497. }
  4498. type DescribeTerminationPolicyTypesInput struct {
  4499. _ struct{} `type:"structure"`
  4500. }
  4501. // String returns the string representation
  4502. func (s DescribeTerminationPolicyTypesInput) String() string {
  4503. return awsutil.Prettify(s)
  4504. }
  4505. // GoString returns the string representation
  4506. func (s DescribeTerminationPolicyTypesInput) GoString() string {
  4507. return s.String()
  4508. }
  4509. // Contains the output of DescribeTerminationPolicyTypes.
  4510. type DescribeTerminationPolicyTypesOutput struct {
  4511. _ struct{} `type:"structure"`
  4512. // The termination policies supported by Auto Scaling (OldestInstance, OldestLaunchConfiguration,
  4513. // NewestInstance, ClosestToNextInstanceHour, and Default).
  4514. TerminationPolicyTypes []*string `type:"list"`
  4515. }
  4516. // String returns the string representation
  4517. func (s DescribeTerminationPolicyTypesOutput) String() string {
  4518. return awsutil.Prettify(s)
  4519. }
  4520. // GoString returns the string representation
  4521. func (s DescribeTerminationPolicyTypesOutput) GoString() string {
  4522. return s.String()
  4523. }
  4524. // Contains the parameters for DetachInstances.
  4525. type DetachInstancesInput struct {
  4526. _ struct{} `type:"structure"`
  4527. // The name of the group.
  4528. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4529. // One or more instance IDs.
  4530. InstanceIds []*string `type:"list"`
  4531. // If True, the Auto Scaling group decrements the desired capacity value by
  4532. // the number of instances detached.
  4533. ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"`
  4534. }
  4535. // String returns the string representation
  4536. func (s DetachInstancesInput) String() string {
  4537. return awsutil.Prettify(s)
  4538. }
  4539. // GoString returns the string representation
  4540. func (s DetachInstancesInput) GoString() string {
  4541. return s.String()
  4542. }
  4543. // Validate inspects the fields of the type to determine if they are valid.
  4544. func (s *DetachInstancesInput) Validate() error {
  4545. invalidParams := request.ErrInvalidParams{Context: "DetachInstancesInput"}
  4546. if s.AutoScalingGroupName == nil {
  4547. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4548. }
  4549. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4550. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4551. }
  4552. if s.ShouldDecrementDesiredCapacity == nil {
  4553. invalidParams.Add(request.NewErrParamRequired("ShouldDecrementDesiredCapacity"))
  4554. }
  4555. if invalidParams.Len() > 0 {
  4556. return invalidParams
  4557. }
  4558. return nil
  4559. }
  4560. // Contains the output of DetachInstances.
  4561. type DetachInstancesOutput struct {
  4562. _ struct{} `type:"structure"`
  4563. // The activities related to detaching the instances from the Auto Scaling group.
  4564. Activities []*Activity `type:"list"`
  4565. }
  4566. // String returns the string representation
  4567. func (s DetachInstancesOutput) String() string {
  4568. return awsutil.Prettify(s)
  4569. }
  4570. // GoString returns the string representation
  4571. func (s DetachInstancesOutput) GoString() string {
  4572. return s.String()
  4573. }
  4574. type DetachLoadBalancerTargetGroupsInput struct {
  4575. _ struct{} `type:"structure"`
  4576. // The name of the Auto Scaling group.
  4577. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4578. // The Amazon Resource Names (ARN) of the target groups.
  4579. TargetGroupARNs []*string `type:"list" required:"true"`
  4580. }
  4581. // String returns the string representation
  4582. func (s DetachLoadBalancerTargetGroupsInput) String() string {
  4583. return awsutil.Prettify(s)
  4584. }
  4585. // GoString returns the string representation
  4586. func (s DetachLoadBalancerTargetGroupsInput) GoString() string {
  4587. return s.String()
  4588. }
  4589. // Validate inspects the fields of the type to determine if they are valid.
  4590. func (s *DetachLoadBalancerTargetGroupsInput) Validate() error {
  4591. invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancerTargetGroupsInput"}
  4592. if s.AutoScalingGroupName == nil {
  4593. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4594. }
  4595. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4596. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4597. }
  4598. if s.TargetGroupARNs == nil {
  4599. invalidParams.Add(request.NewErrParamRequired("TargetGroupARNs"))
  4600. }
  4601. if invalidParams.Len() > 0 {
  4602. return invalidParams
  4603. }
  4604. return nil
  4605. }
  4606. type DetachLoadBalancerTargetGroupsOutput struct {
  4607. _ struct{} `type:"structure"`
  4608. }
  4609. // String returns the string representation
  4610. func (s DetachLoadBalancerTargetGroupsOutput) String() string {
  4611. return awsutil.Prettify(s)
  4612. }
  4613. // GoString returns the string representation
  4614. func (s DetachLoadBalancerTargetGroupsOutput) GoString() string {
  4615. return s.String()
  4616. }
  4617. // Contains the parameters for DetachLoadBalancers.
  4618. type DetachLoadBalancersInput struct {
  4619. _ struct{} `type:"structure"`
  4620. // The name of the Auto Scaling group.
  4621. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4622. // One or more load balancer names.
  4623. LoadBalancerNames []*string `type:"list" required:"true"`
  4624. }
  4625. // String returns the string representation
  4626. func (s DetachLoadBalancersInput) String() string {
  4627. return awsutil.Prettify(s)
  4628. }
  4629. // GoString returns the string representation
  4630. func (s DetachLoadBalancersInput) GoString() string {
  4631. return s.String()
  4632. }
  4633. // Validate inspects the fields of the type to determine if they are valid.
  4634. func (s *DetachLoadBalancersInput) Validate() error {
  4635. invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancersInput"}
  4636. if s.AutoScalingGroupName == nil {
  4637. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4638. }
  4639. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4640. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4641. }
  4642. if s.LoadBalancerNames == nil {
  4643. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  4644. }
  4645. if invalidParams.Len() > 0 {
  4646. return invalidParams
  4647. }
  4648. return nil
  4649. }
  4650. // Contains the output for DetachLoadBalancers.
  4651. type DetachLoadBalancersOutput struct {
  4652. _ struct{} `type:"structure"`
  4653. }
  4654. // String returns the string representation
  4655. func (s DetachLoadBalancersOutput) String() string {
  4656. return awsutil.Prettify(s)
  4657. }
  4658. // GoString returns the string representation
  4659. func (s DetachLoadBalancersOutput) GoString() string {
  4660. return s.String()
  4661. }
  4662. // Contains the parameters for DisableMetricsCollection.
  4663. type DisableMetricsCollectionInput struct {
  4664. _ struct{} `type:"structure"`
  4665. // The name or Amazon Resource Name (ARN) of the group.
  4666. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4667. // One or more of the following metrics. If you omit this parameter, all metrics
  4668. // are disabled.
  4669. //
  4670. // GroupMinSize
  4671. //
  4672. // GroupMaxSize
  4673. //
  4674. // GroupDesiredCapacity
  4675. //
  4676. // GroupInServiceInstances
  4677. //
  4678. // GroupPendingInstances
  4679. //
  4680. // GroupStandbyInstances
  4681. //
  4682. // GroupTerminatingInstances
  4683. //
  4684. // GroupTotalInstances
  4685. Metrics []*string `type:"list"`
  4686. }
  4687. // String returns the string representation
  4688. func (s DisableMetricsCollectionInput) String() string {
  4689. return awsutil.Prettify(s)
  4690. }
  4691. // GoString returns the string representation
  4692. func (s DisableMetricsCollectionInput) GoString() string {
  4693. return s.String()
  4694. }
  4695. // Validate inspects the fields of the type to determine if they are valid.
  4696. func (s *DisableMetricsCollectionInput) Validate() error {
  4697. invalidParams := request.ErrInvalidParams{Context: "DisableMetricsCollectionInput"}
  4698. if s.AutoScalingGroupName == nil {
  4699. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4700. }
  4701. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4702. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4703. }
  4704. if invalidParams.Len() > 0 {
  4705. return invalidParams
  4706. }
  4707. return nil
  4708. }
  4709. type DisableMetricsCollectionOutput struct {
  4710. _ struct{} `type:"structure"`
  4711. }
  4712. // String returns the string representation
  4713. func (s DisableMetricsCollectionOutput) String() string {
  4714. return awsutil.Prettify(s)
  4715. }
  4716. // GoString returns the string representation
  4717. func (s DisableMetricsCollectionOutput) GoString() string {
  4718. return s.String()
  4719. }
  4720. // Describes an Amazon EBS volume.
  4721. type Ebs struct {
  4722. _ struct{} `type:"structure"`
  4723. // Indicates whether the volume is deleted on instance termination.
  4724. //
  4725. // Default: true
  4726. DeleteOnTermination *bool `type:"boolean"`
  4727. // Indicates whether the volume should be encrypted. Encrypted EBS volumes must
  4728. // be attached to instances that support Amazon EBS encryption. Volumes that
  4729. // are created from encrypted snapshots are automatically encrypted. There is
  4730. // no way to create an encrypted volume from an unencrypted snapshot or an unencrypted
  4731. // volume from an encrypted snapshot. For more information, see Amazon EBS Encryption
  4732. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  4733. // the Amazon Elastic Compute Cloud User Guide.
  4734. Encrypted *bool `type:"boolean"`
  4735. // The number of I/O operations per second (IOPS) to provision for the volume.
  4736. //
  4737. // Constraint: Required when the volume type is io1.
  4738. Iops *int64 `min:"100" type:"integer"`
  4739. // The ID of the snapshot.
  4740. SnapshotId *string `min:"1" type:"string"`
  4741. // The volume size, in GiB. For standard volumes, specify a value from 1 to
  4742. // 1,024. For io1 volumes, specify a value from 4 to 16,384. For gp2 volumes,
  4743. // specify a value from 1 to 16,384. If you specify a snapshot, the volume size
  4744. // must be equal to or larger than the snapshot size.
  4745. //
  4746. // Default: If you create a volume from a snapshot and you don't specify a
  4747. // volume size, the default is the snapshot size.
  4748. VolumeSize *int64 `min:"1" type:"integer"`
  4749. // The volume type. For more information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  4750. // in the Amazon Elastic Compute Cloud User Guide.
  4751. //
  4752. // Valid values: standard | io1 | gp2
  4753. //
  4754. // Default: standard
  4755. VolumeType *string `min:"1" type:"string"`
  4756. }
  4757. // String returns the string representation
  4758. func (s Ebs) String() string {
  4759. return awsutil.Prettify(s)
  4760. }
  4761. // GoString returns the string representation
  4762. func (s Ebs) GoString() string {
  4763. return s.String()
  4764. }
  4765. // Validate inspects the fields of the type to determine if they are valid.
  4766. func (s *Ebs) Validate() error {
  4767. invalidParams := request.ErrInvalidParams{Context: "Ebs"}
  4768. if s.Iops != nil && *s.Iops < 100 {
  4769. invalidParams.Add(request.NewErrParamMinValue("Iops", 100))
  4770. }
  4771. if s.SnapshotId != nil && len(*s.SnapshotId) < 1 {
  4772. invalidParams.Add(request.NewErrParamMinLen("SnapshotId", 1))
  4773. }
  4774. if s.VolumeSize != nil && *s.VolumeSize < 1 {
  4775. invalidParams.Add(request.NewErrParamMinValue("VolumeSize", 1))
  4776. }
  4777. if s.VolumeType != nil && len(*s.VolumeType) < 1 {
  4778. invalidParams.Add(request.NewErrParamMinLen("VolumeType", 1))
  4779. }
  4780. if invalidParams.Len() > 0 {
  4781. return invalidParams
  4782. }
  4783. return nil
  4784. }
  4785. // Contains the parameters for EnableMetricsCollection.
  4786. type EnableMetricsCollectionInput struct {
  4787. _ struct{} `type:"structure"`
  4788. // The name or ARN of the Auto Scaling group.
  4789. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4790. // The granularity to associate with the metrics to collect. The only valid
  4791. // value is 1Minute.
  4792. Granularity *string `min:"1" type:"string" required:"true"`
  4793. // One or more of the following metrics. If you omit this parameter, all metrics
  4794. // are enabled.
  4795. //
  4796. // GroupMinSize
  4797. //
  4798. // GroupMaxSize
  4799. //
  4800. // GroupDesiredCapacity
  4801. //
  4802. // GroupInServiceInstances
  4803. //
  4804. // GroupPendingInstances
  4805. //
  4806. // GroupStandbyInstances
  4807. //
  4808. // GroupTerminatingInstances
  4809. //
  4810. // GroupTotalInstances
  4811. //
  4812. // Note that the GroupStandbyInstances metric is not enabled by default.
  4813. // You must explicitly request this metric.
  4814. Metrics []*string `type:"list"`
  4815. }
  4816. // String returns the string representation
  4817. func (s EnableMetricsCollectionInput) String() string {
  4818. return awsutil.Prettify(s)
  4819. }
  4820. // GoString returns the string representation
  4821. func (s EnableMetricsCollectionInput) GoString() string {
  4822. return s.String()
  4823. }
  4824. // Validate inspects the fields of the type to determine if they are valid.
  4825. func (s *EnableMetricsCollectionInput) Validate() error {
  4826. invalidParams := request.ErrInvalidParams{Context: "EnableMetricsCollectionInput"}
  4827. if s.AutoScalingGroupName == nil {
  4828. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4829. }
  4830. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4831. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4832. }
  4833. if s.Granularity == nil {
  4834. invalidParams.Add(request.NewErrParamRequired("Granularity"))
  4835. }
  4836. if s.Granularity != nil && len(*s.Granularity) < 1 {
  4837. invalidParams.Add(request.NewErrParamMinLen("Granularity", 1))
  4838. }
  4839. if invalidParams.Len() > 0 {
  4840. return invalidParams
  4841. }
  4842. return nil
  4843. }
  4844. type EnableMetricsCollectionOutput struct {
  4845. _ struct{} `type:"structure"`
  4846. }
  4847. // String returns the string representation
  4848. func (s EnableMetricsCollectionOutput) String() string {
  4849. return awsutil.Prettify(s)
  4850. }
  4851. // GoString returns the string representation
  4852. func (s EnableMetricsCollectionOutput) GoString() string {
  4853. return s.String()
  4854. }
  4855. // Describes an enabled metric.
  4856. type EnabledMetric struct {
  4857. _ struct{} `type:"structure"`
  4858. // The granularity of the metric. The only valid value is 1Minute.
  4859. Granularity *string `min:"1" type:"string"`
  4860. // One of the following metrics:
  4861. //
  4862. // GroupMinSize
  4863. //
  4864. // GroupMaxSize
  4865. //
  4866. // GroupDesiredCapacity
  4867. //
  4868. // GroupInServiceInstances
  4869. //
  4870. // GroupPendingInstances
  4871. //
  4872. // GroupStandbyInstances
  4873. //
  4874. // GroupTerminatingInstances
  4875. //
  4876. // GroupTotalInstances
  4877. Metric *string `min:"1" type:"string"`
  4878. }
  4879. // String returns the string representation
  4880. func (s EnabledMetric) String() string {
  4881. return awsutil.Prettify(s)
  4882. }
  4883. // GoString returns the string representation
  4884. func (s EnabledMetric) GoString() string {
  4885. return s.String()
  4886. }
  4887. // Contains the parameters for EnteStandby.
  4888. type EnterStandbyInput struct {
  4889. _ struct{} `type:"structure"`
  4890. // The name of the Auto Scaling group.
  4891. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  4892. // One or more instances to move into Standby mode. You must specify at least
  4893. // one instance ID.
  4894. InstanceIds []*string `type:"list"`
  4895. // Specifies whether the instances moved to Standby mode count as part of the
  4896. // Auto Scaling group's desired capacity. If set, the desired capacity for the
  4897. // Auto Scaling group decrements by the number of instances moved to Standby
  4898. // mode.
  4899. ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"`
  4900. }
  4901. // String returns the string representation
  4902. func (s EnterStandbyInput) String() string {
  4903. return awsutil.Prettify(s)
  4904. }
  4905. // GoString returns the string representation
  4906. func (s EnterStandbyInput) GoString() string {
  4907. return s.String()
  4908. }
  4909. // Validate inspects the fields of the type to determine if they are valid.
  4910. func (s *EnterStandbyInput) Validate() error {
  4911. invalidParams := request.ErrInvalidParams{Context: "EnterStandbyInput"}
  4912. if s.AutoScalingGroupName == nil {
  4913. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  4914. }
  4915. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4916. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4917. }
  4918. if s.ShouldDecrementDesiredCapacity == nil {
  4919. invalidParams.Add(request.NewErrParamRequired("ShouldDecrementDesiredCapacity"))
  4920. }
  4921. if invalidParams.Len() > 0 {
  4922. return invalidParams
  4923. }
  4924. return nil
  4925. }
  4926. // Contains the output of EnterStandby.
  4927. type EnterStandbyOutput struct {
  4928. _ struct{} `type:"structure"`
  4929. // The activities related to moving instances into Standby mode.
  4930. Activities []*Activity `type:"list"`
  4931. }
  4932. // String returns the string representation
  4933. func (s EnterStandbyOutput) String() string {
  4934. return awsutil.Prettify(s)
  4935. }
  4936. // GoString returns the string representation
  4937. func (s EnterStandbyOutput) GoString() string {
  4938. return s.String()
  4939. }
  4940. // Contains the parameters for ExecutePolicy.
  4941. type ExecutePolicyInput struct {
  4942. _ struct{} `type:"structure"`
  4943. // The name or Amazon Resource Name (ARN) of the Auto Scaling group.
  4944. AutoScalingGroupName *string `min:"1" type:"string"`
  4945. // The breach threshold for the alarm.
  4946. //
  4947. // This parameter is required if the policy type is StepScaling and not supported
  4948. // otherwise.
  4949. BreachThreshold *float64 `type:"double"`
  4950. // If this parameter is true, Auto Scaling waits for the cooldown period to
  4951. // complete before executing the policy. Otherwise, Auto Scaling executes the
  4952. // policy without waiting for the cooldown period to complete.
  4953. //
  4954. // This parameter is not supported if the policy type is StepScaling.
  4955. //
  4956. // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
  4957. // in the Auto Scaling User Guide.
  4958. HonorCooldown *bool `type:"boolean"`
  4959. // The metric value to compare to BreachThreshold. This enables you to execute
  4960. // a policy of type StepScaling and determine which step adjustment to use.
  4961. // For example, if the breach threshold is 50 and you want to use a step adjustment
  4962. // with a lower bound of 0 and an upper bound of 10, you can set the metric
  4963. // value to 59.
  4964. //
  4965. // If you specify a metric value that doesn't correspond to a step adjustment
  4966. // for the policy, the call returns an error.
  4967. //
  4968. // This parameter is required if the policy type is StepScaling and not supported
  4969. // otherwise.
  4970. MetricValue *float64 `type:"double"`
  4971. // The name or ARN of the policy.
  4972. PolicyName *string `min:"1" type:"string" required:"true"`
  4973. }
  4974. // String returns the string representation
  4975. func (s ExecutePolicyInput) String() string {
  4976. return awsutil.Prettify(s)
  4977. }
  4978. // GoString returns the string representation
  4979. func (s ExecutePolicyInput) GoString() string {
  4980. return s.String()
  4981. }
  4982. // Validate inspects the fields of the type to determine if they are valid.
  4983. func (s *ExecutePolicyInput) Validate() error {
  4984. invalidParams := request.ErrInvalidParams{Context: "ExecutePolicyInput"}
  4985. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  4986. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  4987. }
  4988. if s.PolicyName == nil {
  4989. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  4990. }
  4991. if s.PolicyName != nil && len(*s.PolicyName) < 1 {
  4992. invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
  4993. }
  4994. if invalidParams.Len() > 0 {
  4995. return invalidParams
  4996. }
  4997. return nil
  4998. }
  4999. type ExecutePolicyOutput struct {
  5000. _ struct{} `type:"structure"`
  5001. }
  5002. // String returns the string representation
  5003. func (s ExecutePolicyOutput) String() string {
  5004. return awsutil.Prettify(s)
  5005. }
  5006. // GoString returns the string representation
  5007. func (s ExecutePolicyOutput) GoString() string {
  5008. return s.String()
  5009. }
  5010. // Contains the parameters for ExitStandby.
  5011. type ExitStandbyInput struct {
  5012. _ struct{} `type:"structure"`
  5013. // The name of the Auto Scaling group.
  5014. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5015. // One or more instance IDs. You must specify at least one instance ID.
  5016. InstanceIds []*string `type:"list"`
  5017. }
  5018. // String returns the string representation
  5019. func (s ExitStandbyInput) String() string {
  5020. return awsutil.Prettify(s)
  5021. }
  5022. // GoString returns the string representation
  5023. func (s ExitStandbyInput) GoString() string {
  5024. return s.String()
  5025. }
  5026. // Validate inspects the fields of the type to determine if they are valid.
  5027. func (s *ExitStandbyInput) Validate() error {
  5028. invalidParams := request.ErrInvalidParams{Context: "ExitStandbyInput"}
  5029. if s.AutoScalingGroupName == nil {
  5030. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  5031. }
  5032. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  5033. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  5034. }
  5035. if invalidParams.Len() > 0 {
  5036. return invalidParams
  5037. }
  5038. return nil
  5039. }
  5040. // Contains the parameters for ExitStandby.
  5041. type ExitStandbyOutput struct {
  5042. _ struct{} `type:"structure"`
  5043. // The activities related to moving instances out of Standby mode.
  5044. Activities []*Activity `type:"list"`
  5045. }
  5046. // String returns the string representation
  5047. func (s ExitStandbyOutput) String() string {
  5048. return awsutil.Prettify(s)
  5049. }
  5050. // GoString returns the string representation
  5051. func (s ExitStandbyOutput) GoString() string {
  5052. return s.String()
  5053. }
  5054. // Describes a filter.
  5055. type Filter struct {
  5056. _ struct{} `type:"structure"`
  5057. // The name of the filter. The valid values are: "auto-scaling-group", "key",
  5058. // "value", and "propagate-at-launch".
  5059. Name *string `type:"string"`
  5060. // The value of the filter.
  5061. Values []*string `type:"list"`
  5062. }
  5063. // String returns the string representation
  5064. func (s Filter) String() string {
  5065. return awsutil.Prettify(s)
  5066. }
  5067. // GoString returns the string representation
  5068. func (s Filter) GoString() string {
  5069. return s.String()
  5070. }
  5071. // Describes an Auto Scaling group.
  5072. type Group struct {
  5073. _ struct{} `type:"structure"`
  5074. // The Amazon Resource Name (ARN) of the group.
  5075. AutoScalingGroupARN *string `min:"1" type:"string"`
  5076. // The name of the group.
  5077. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5078. // One or more Availability Zones for the group.
  5079. AvailabilityZones []*string `min:"1" type:"list" required:"true"`
  5080. // The date and time the group was created.
  5081. CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  5082. // The amount of time, in seconds, after a scaling activity completes before
  5083. // another scaling activity can start.
  5084. DefaultCooldown *int64 `type:"integer" required:"true"`
  5085. // The desired size of the group.
  5086. DesiredCapacity *int64 `type:"integer" required:"true"`
  5087. // The metrics enabled for the group.
  5088. EnabledMetrics []*EnabledMetric `type:"list"`
  5089. // The amount of time, in seconds, that Auto Scaling waits before checking the
  5090. // health status of an EC2 instance that has come into service.
  5091. HealthCheckGracePeriod *int64 `type:"integer"`
  5092. // The service to use for the health checks. The valid values are EC2 and ELB.
  5093. HealthCheckType *string `min:"1" type:"string" required:"true"`
  5094. // The EC2 instances associated with the group.
  5095. Instances []*Instance `type:"list"`
  5096. // The name of the associated launch configuration.
  5097. LaunchConfigurationName *string `min:"1" type:"string"`
  5098. // One or more load balancers associated with the group.
  5099. LoadBalancerNames []*string `type:"list"`
  5100. // The maximum size of the group.
  5101. MaxSize *int64 `type:"integer" required:"true"`
  5102. // The minimum size of the group.
  5103. MinSize *int64 `type:"integer" required:"true"`
  5104. // Indicates whether newly launched instances are protected from termination
  5105. // by Auto Scaling when scaling in.
  5106. NewInstancesProtectedFromScaleIn *bool `type:"boolean"`
  5107. // The name of the placement group into which you'll launch your instances,
  5108. // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  5109. // in the Amazon Elastic Compute Cloud User Guide.
  5110. PlacementGroup *string `min:"1" type:"string"`
  5111. // The current state of the group when DeleteAutoScalingGroup is in progress.
  5112. Status *string `min:"1" type:"string"`
  5113. // The suspended processes associated with the group.
  5114. SuspendedProcesses []*SuspendedProcess `type:"list"`
  5115. // The tags for the group.
  5116. Tags []*TagDescription `type:"list"`
  5117. // The Amazon Resource Names (ARN) of the target groups for your load balancer.
  5118. TargetGroupARNs []*string `type:"list"`
  5119. // The termination policies for the group.
  5120. TerminationPolicies []*string `type:"list"`
  5121. // One or more subnet IDs, if applicable, separated by commas.
  5122. //
  5123. // If you specify VPCZoneIdentifier and AvailabilityZones, ensure that the
  5124. // Availability Zones of the subnets match the values for AvailabilityZones.
  5125. VPCZoneIdentifier *string `min:"1" type:"string"`
  5126. }
  5127. // String returns the string representation
  5128. func (s Group) String() string {
  5129. return awsutil.Prettify(s)
  5130. }
  5131. // GoString returns the string representation
  5132. func (s Group) GoString() string {
  5133. return s.String()
  5134. }
  5135. // Describes an EC2 instance.
  5136. type Instance struct {
  5137. _ struct{} `type:"structure"`
  5138. // The Availability Zone in which the instance is running.
  5139. AvailabilityZone *string `min:"1" type:"string" required:"true"`
  5140. // The last reported health status of the instance. "Healthy" means that the
  5141. // instance is healthy and should remain in service. "Unhealthy" means that
  5142. // the instance is unhealthy and Auto Scaling should terminate and replace it.
  5143. HealthStatus *string `min:"1" type:"string" required:"true"`
  5144. // The ID of the instance.
  5145. InstanceId *string `min:"1" type:"string" required:"true"`
  5146. // The launch configuration associated with the instance.
  5147. LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
  5148. // A description of the current lifecycle state. Note that the Quarantined state
  5149. // is not used.
  5150. LifecycleState *string `type:"string" required:"true" enum:"LifecycleState"`
  5151. // Indicates whether the instance is protected from termination by Auto Scaling
  5152. // when scaling in.
  5153. ProtectedFromScaleIn *bool `type:"boolean" required:"true"`
  5154. }
  5155. // String returns the string representation
  5156. func (s Instance) String() string {
  5157. return awsutil.Prettify(s)
  5158. }
  5159. // GoString returns the string representation
  5160. func (s Instance) GoString() string {
  5161. return s.String()
  5162. }
  5163. // Describes an EC2 instance associated with an Auto Scaling group.
  5164. type InstanceDetails struct {
  5165. _ struct{} `type:"structure"`
  5166. // The name of the Auto Scaling group associated with the instance.
  5167. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5168. // The Availability Zone for the instance.
  5169. AvailabilityZone *string `min:"1" type:"string" required:"true"`
  5170. // The last reported health status of this instance. "Healthy" means that the
  5171. // instance is healthy and should remain in service. "Unhealthy" means that
  5172. // the instance is unhealthy and Auto Scaling should terminate and replace it.
  5173. HealthStatus *string `min:"1" type:"string" required:"true"`
  5174. // The ID of the instance.
  5175. InstanceId *string `min:"1" type:"string" required:"true"`
  5176. // The launch configuration associated with the instance.
  5177. LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
  5178. // The lifecycle state for the instance. For more information, see Auto Scaling
  5179. // Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  5180. // in the Auto Scaling User Guide.
  5181. LifecycleState *string `min:"1" type:"string" required:"true"`
  5182. // Indicates whether the instance is protected from termination by Auto Scaling
  5183. // when scaling in.
  5184. ProtectedFromScaleIn *bool `type:"boolean" required:"true"`
  5185. }
  5186. // String returns the string representation
  5187. func (s InstanceDetails) String() string {
  5188. return awsutil.Prettify(s)
  5189. }
  5190. // GoString returns the string representation
  5191. func (s InstanceDetails) GoString() string {
  5192. return s.String()
  5193. }
  5194. // Describes whether instance monitoring is enabled.
  5195. type InstanceMonitoring struct {
  5196. _ struct{} `type:"structure"`
  5197. // If True, instance monitoring is enabled.
  5198. Enabled *bool `type:"boolean"`
  5199. }
  5200. // String returns the string representation
  5201. func (s InstanceMonitoring) String() string {
  5202. return awsutil.Prettify(s)
  5203. }
  5204. // GoString returns the string representation
  5205. func (s InstanceMonitoring) GoString() string {
  5206. return s.String()
  5207. }
  5208. // Describes a launch configuration.
  5209. type LaunchConfiguration struct {
  5210. _ struct{} `type:"structure"`
  5211. // [EC2-VPC] Indicates whether to assign a public IP address to each instance.
  5212. AssociatePublicIpAddress *bool `type:"boolean"`
  5213. // A block device mapping, which specifies the block devices for the instance.
  5214. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  5215. // The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
  5216. // This parameter can only be used if you are launching EC2-Classic instances.
  5217. // For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  5218. // in the Amazon Elastic Compute Cloud User Guide.
  5219. ClassicLinkVPCId *string `min:"1" type:"string"`
  5220. // The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId.
  5221. // This parameter is required if you specify a ClassicLink-enabled VPC, and
  5222. // cannot be used otherwise. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  5223. // in the Amazon Elastic Compute Cloud User Guide.
  5224. ClassicLinkVPCSecurityGroups []*string `type:"list"`
  5225. // The creation date and time for the launch configuration.
  5226. CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  5227. // Controls whether the instance is optimized for EBS I/O (true) or not (false).
  5228. EbsOptimized *bool `type:"boolean"`
  5229. // The name or Amazon Resource Name (ARN) of the instance profile associated
  5230. // with the IAM role for the instance.
  5231. IamInstanceProfile *string `min:"1" type:"string"`
  5232. // The ID of the Amazon Machine Image (AMI).
  5233. ImageId *string `min:"1" type:"string" required:"true"`
  5234. // Controls whether instances in this group are launched with detailed monitoring.
  5235. InstanceMonitoring *InstanceMonitoring `type:"structure"`
  5236. // The instance type for the instances.
  5237. InstanceType *string `min:"1" type:"string" required:"true"`
  5238. // The ID of the kernel associated with the AMI.
  5239. KernelId *string `min:"1" type:"string"`
  5240. // The name of the key pair.
  5241. KeyName *string `min:"1" type:"string"`
  5242. // The Amazon Resource Name (ARN) of the launch configuration.
  5243. LaunchConfigurationARN *string `min:"1" type:"string"`
  5244. // The name of the launch configuration.
  5245. LaunchConfigurationName *string `min:"1" type:"string" required:"true"`
  5246. // The tenancy of the instance, either default or dedicated. An instance with
  5247. // dedicated tenancy runs in an isolated, single-tenant hardware and can only
  5248. // be launched into a VPC.
  5249. PlacementTenancy *string `min:"1" type:"string"`
  5250. // The ID of the RAM disk associated with the AMI.
  5251. RamdiskId *string `min:"1" type:"string"`
  5252. // The security groups to associate with the instances.
  5253. SecurityGroups []*string `type:"list"`
  5254. // The price to bid when launching Spot Instances.
  5255. SpotPrice *string `min:"1" type:"string"`
  5256. // The user data available to the instances.
  5257. UserData *string `type:"string"`
  5258. }
  5259. // String returns the string representation
  5260. func (s LaunchConfiguration) String() string {
  5261. return awsutil.Prettify(s)
  5262. }
  5263. // GoString returns the string representation
  5264. func (s LaunchConfiguration) GoString() string {
  5265. return s.String()
  5266. }
  5267. // Describes a lifecycle hook, which tells Auto Scaling that you want to perform
  5268. // an action when an instance launches or terminates. When you have a lifecycle
  5269. // hook in place, the Auto Scaling group will either:
  5270. //
  5271. // Pause the instance after it launches, but before it is put into service
  5272. //
  5273. // Pause the instance as it terminates, but before it is fully terminated
  5274. //
  5275. // For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingGroupLifecycle.html)
  5276. // in the Auto Scaling User Guide.
  5277. type LifecycleHook struct {
  5278. _ struct{} `type:"structure"`
  5279. // The name of the Auto Scaling group for the lifecycle hook.
  5280. AutoScalingGroupName *string `min:"1" type:"string"`
  5281. // Defines the action the Auto Scaling group should take when the lifecycle
  5282. // hook timeout elapses or if an unexpected failure occurs. The valid values
  5283. // are CONTINUE and ABANDON. The default value is CONTINUE.
  5284. DefaultResult *string `type:"string"`
  5285. // The maximum time, in seconds, that an instance can remain in a Pending:Wait
  5286. // or Terminating:Wait state. The default is 172800 seconds (48 hours).
  5287. GlobalTimeout *int64 `type:"integer"`
  5288. // The maximum time, in seconds, that can elapse before the lifecycle hook times
  5289. // out. The default is 3600 seconds (1 hour). When the lifecycle hook times
  5290. // out, Auto Scaling performs the default action. You can prevent the lifecycle
  5291. // hook from timing out by calling RecordLifecycleActionHeartbeat.
  5292. HeartbeatTimeout *int64 `type:"integer"`
  5293. // The name of the lifecycle hook.
  5294. LifecycleHookName *string `min:"1" type:"string"`
  5295. // The state of the EC2 instance to which you want to attach the lifecycle hook.
  5296. // For a list of lifecycle hook types, see DescribeLifecycleHookTypes.
  5297. LifecycleTransition *string `type:"string"`
  5298. // Additional information that you want to include any time Auto Scaling sends
  5299. // a message to the notification target.
  5300. NotificationMetadata *string `min:"1" type:"string"`
  5301. // The ARN of the notification target that Auto Scaling uses to notify you when
  5302. // an instance is in the transition state for the lifecycle hook. This ARN target
  5303. // can be either an SQS queue or an SNS topic. The notification message sent
  5304. // to the target includes the following:
  5305. //
  5306. // Lifecycle action token
  5307. //
  5308. // User account ID
  5309. //
  5310. // Name of the Auto Scaling group
  5311. //
  5312. // Lifecycle hook name
  5313. //
  5314. // EC2 instance ID
  5315. //
  5316. // Lifecycle transition
  5317. //
  5318. // Notification metadata
  5319. NotificationTargetARN *string `min:"1" type:"string"`
  5320. // The ARN of the IAM role that allows the Auto Scaling group to publish to
  5321. // the specified notification target.
  5322. RoleARN *string `min:"1" type:"string"`
  5323. }
  5324. // String returns the string representation
  5325. func (s LifecycleHook) String() string {
  5326. return awsutil.Prettify(s)
  5327. }
  5328. // GoString returns the string representation
  5329. func (s LifecycleHook) GoString() string {
  5330. return s.String()
  5331. }
  5332. // Describes the state of a Classic load balancer.
  5333. //
  5334. // If you specify a load balancer when creating the Auto Scaling group, the
  5335. // state of the load balancer is InService.
  5336. //
  5337. // If you attach a load balancer to an existing Auto Scaling group, the initial
  5338. // state is Adding. The state transitions to Added after all instances in the
  5339. // group are registered with the load balancer. If ELB health checks are enabled
  5340. // for the load balancer, the state transitions to InService after at least
  5341. // one instance in the group passes the health check. If EC2 health checks are
  5342. // enabled instead, the load balancer remains in the Added state.
  5343. type LoadBalancerState struct {
  5344. _ struct{} `type:"structure"`
  5345. // The name of the load balancer.
  5346. LoadBalancerName *string `min:"1" type:"string"`
  5347. // One of the following load balancer states:
  5348. //
  5349. // Adding - The instances in the group are being registered with the load
  5350. // balancer.
  5351. //
  5352. // Added - All instances in the group are registered with the load balancer.
  5353. //
  5354. // InService - At least one instance in the group passed an ELB health check.
  5355. //
  5356. // Removing - The instances in the group are being deregistered from the
  5357. // load balancer. If connection draining is enabled, Elastic Load Balancing
  5358. // waits for in-flight requests to complete before deregistering the instances.
  5359. //
  5360. // Removed - All instances in the group are deregistered from the load balancer.
  5361. State *string `min:"1" type:"string"`
  5362. }
  5363. // String returns the string representation
  5364. func (s LoadBalancerState) String() string {
  5365. return awsutil.Prettify(s)
  5366. }
  5367. // GoString returns the string representation
  5368. func (s LoadBalancerState) GoString() string {
  5369. return s.String()
  5370. }
  5371. // Describes the state of a target group.
  5372. //
  5373. // If you attach a target group to an existing Auto Scaling group, the initial
  5374. // state is Adding. The state transitions to Added after all Auto Scaling instances
  5375. // are registered with the target group. If ELB health checks are enabled, the
  5376. // state transitions to InService after at least one Auto Scaling instance passes
  5377. // the health check. If EC2 health checks are enabled instead, the target group
  5378. // remains in the Added state.
  5379. type LoadBalancerTargetGroupState struct {
  5380. _ struct{} `type:"structure"`
  5381. // The Amazon Resource Name (ARN) of the target group.
  5382. LoadBalancerTargetGroupARN *string `min:"1" type:"string"`
  5383. // The state of the target group.
  5384. //
  5385. // Adding - The Auto Scaling instances are being registered with the target
  5386. // group.
  5387. //
  5388. // Added - All Auto Scaling instances are registered with the target group.
  5389. //
  5390. // InService - At least one Auto Scaling instance passed an ELB health check.
  5391. //
  5392. // Removing - The Auto Scaling instances are being deregistered from the
  5393. // target group. If connection draining is enabled, Elastic Load Balancing waits
  5394. // for in-flight requests to complete before deregistering the instances.
  5395. //
  5396. // Removed - All Auto Scaling instances are deregistered from the target
  5397. // group.
  5398. State *string `min:"1" type:"string"`
  5399. }
  5400. // String returns the string representation
  5401. func (s LoadBalancerTargetGroupState) String() string {
  5402. return awsutil.Prettify(s)
  5403. }
  5404. // GoString returns the string representation
  5405. func (s LoadBalancerTargetGroupState) GoString() string {
  5406. return s.String()
  5407. }
  5408. // Describes a metric.
  5409. type MetricCollectionType struct {
  5410. _ struct{} `type:"structure"`
  5411. // One of the following metrics:
  5412. //
  5413. // GroupMinSize
  5414. //
  5415. // GroupMaxSize
  5416. //
  5417. // GroupDesiredCapacity
  5418. //
  5419. // GroupInServiceInstances
  5420. //
  5421. // GroupPendingInstances
  5422. //
  5423. // GroupStandbyInstances
  5424. //
  5425. // GroupTerminatingInstances
  5426. //
  5427. // GroupTotalInstances
  5428. Metric *string `min:"1" type:"string"`
  5429. }
  5430. // String returns the string representation
  5431. func (s MetricCollectionType) String() string {
  5432. return awsutil.Prettify(s)
  5433. }
  5434. // GoString returns the string representation
  5435. func (s MetricCollectionType) GoString() string {
  5436. return s.String()
  5437. }
  5438. // Describes a granularity of a metric.
  5439. type MetricGranularityType struct {
  5440. _ struct{} `type:"structure"`
  5441. // The granularity. The only valid value is 1Minute.
  5442. Granularity *string `min:"1" type:"string"`
  5443. }
  5444. // String returns the string representation
  5445. func (s MetricGranularityType) String() string {
  5446. return awsutil.Prettify(s)
  5447. }
  5448. // GoString returns the string representation
  5449. func (s MetricGranularityType) GoString() string {
  5450. return s.String()
  5451. }
  5452. // Describes a notification.
  5453. type NotificationConfiguration struct {
  5454. _ struct{} `type:"structure"`
  5455. // The name of the group.
  5456. AutoScalingGroupName *string `min:"1" type:"string"`
  5457. // One of the following event notification types:
  5458. //
  5459. // autoscaling:EC2_INSTANCE_LAUNCH
  5460. //
  5461. // autoscaling:EC2_INSTANCE_LAUNCH_ERROR
  5462. //
  5463. // autoscaling:EC2_INSTANCE_TERMINATE
  5464. //
  5465. // autoscaling:EC2_INSTANCE_TERMINATE_ERROR
  5466. //
  5467. // autoscaling:TEST_NOTIFICATION
  5468. NotificationType *string `min:"1" type:"string"`
  5469. // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
  5470. // (SNS) topic.
  5471. TopicARN *string `min:"1" type:"string"`
  5472. }
  5473. // String returns the string representation
  5474. func (s NotificationConfiguration) String() string {
  5475. return awsutil.Prettify(s)
  5476. }
  5477. // GoString returns the string representation
  5478. func (s NotificationConfiguration) GoString() string {
  5479. return s.String()
  5480. }
  5481. // Describes a process type.
  5482. //
  5483. // For more information, see Auto Scaling Processes (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SuspendResume.html#process-types)
  5484. // in the Auto Scaling User Guide.
  5485. type ProcessType struct {
  5486. _ struct{} `type:"structure"`
  5487. // One of the following processes:
  5488. //
  5489. // Launch
  5490. //
  5491. // Terminate
  5492. //
  5493. // AddToLoadBalancer
  5494. //
  5495. // AlarmNotification
  5496. //
  5497. // AZRebalance
  5498. //
  5499. // HealthCheck
  5500. //
  5501. // ReplaceUnhealthy
  5502. //
  5503. // ScheduledActions
  5504. ProcessName *string `min:"1" type:"string" required:"true"`
  5505. }
  5506. // String returns the string representation
  5507. func (s ProcessType) String() string {
  5508. return awsutil.Prettify(s)
  5509. }
  5510. // GoString returns the string representation
  5511. func (s ProcessType) GoString() string {
  5512. return s.String()
  5513. }
  5514. // Contains the parameters for PutLifecycleHook.
  5515. type PutLifecycleHookInput struct {
  5516. _ struct{} `type:"structure"`
  5517. // The name of the Auto Scaling group to which you want to assign the lifecycle
  5518. // hook.
  5519. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5520. // Defines the action the Auto Scaling group should take when the lifecycle
  5521. // hook timeout elapses or if an unexpected failure occurs. This parameter can
  5522. // be either CONTINUE or ABANDON. The default value is ABANDON.
  5523. DefaultResult *string `type:"string"`
  5524. // The amount of time, in seconds, that can elapse before the lifecycle hook
  5525. // times out. When the lifecycle hook times out, Auto Scaling performs the default
  5526. // action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.
  5527. // The default is 3600 seconds (1 hour).
  5528. HeartbeatTimeout *int64 `type:"integer"`
  5529. // The name of the lifecycle hook.
  5530. LifecycleHookName *string `min:"1" type:"string" required:"true"`
  5531. // The instance state to which you want to attach the lifecycle hook. For a
  5532. // list of lifecycle hook types, see DescribeLifecycleHookTypes.
  5533. //
  5534. // This parameter is required for new lifecycle hooks, but optional when updating
  5535. // existing hooks.
  5536. LifecycleTransition *string `type:"string"`
  5537. // Contains additional information that you want to include any time Auto Scaling
  5538. // sends a message to the notification target.
  5539. NotificationMetadata *string `min:"1" type:"string"`
  5540. // The ARN of the notification target that Auto Scaling will use to notify you
  5541. // when an instance is in the transition state for the lifecycle hook. This
  5542. // target can be either an SQS queue or an SNS topic. If you specify an empty
  5543. // string, this overrides the current ARN.
  5544. //
  5545. // The notification messages sent to the target include the following information:
  5546. //
  5547. // AutoScalingGroupName. The name of the Auto Scaling group.
  5548. //
  5549. // AccountId. The AWS account ID.
  5550. //
  5551. // LifecycleTransition. The lifecycle hook type.
  5552. //
  5553. // LifecycleActionToken. The lifecycle action token.
  5554. //
  5555. // EC2InstanceId. The EC2 instance ID.
  5556. //
  5557. // LifecycleHookName. The name of the lifecycle hook.
  5558. //
  5559. // NotificationMetadata. User-defined information.
  5560. //
  5561. // This operation uses the JSON format when sending notifications to an Amazon
  5562. // SQS queue, and an email key/value pair format when sending notifications
  5563. // to an Amazon SNS topic.
  5564. //
  5565. // When you specify a notification target, Auto Scaling sends it a test message.
  5566. // Test messages contains the following additional key/value pair: "Event":
  5567. // "autoscaling:TEST_NOTIFICATION".
  5568. NotificationTargetARN *string `type:"string"`
  5569. // The ARN of the IAM role that allows the Auto Scaling group to publish to
  5570. // the specified notification target.
  5571. //
  5572. // This parameter is required for new lifecycle hooks, but optional when updating
  5573. // existing hooks.
  5574. RoleARN *string `min:"1" type:"string"`
  5575. }
  5576. // String returns the string representation
  5577. func (s PutLifecycleHookInput) String() string {
  5578. return awsutil.Prettify(s)
  5579. }
  5580. // GoString returns the string representation
  5581. func (s PutLifecycleHookInput) GoString() string {
  5582. return s.String()
  5583. }
  5584. // Validate inspects the fields of the type to determine if they are valid.
  5585. func (s *PutLifecycleHookInput) Validate() error {
  5586. invalidParams := request.ErrInvalidParams{Context: "PutLifecycleHookInput"}
  5587. if s.AutoScalingGroupName == nil {
  5588. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  5589. }
  5590. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  5591. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  5592. }
  5593. if s.LifecycleHookName == nil {
  5594. invalidParams.Add(request.NewErrParamRequired("LifecycleHookName"))
  5595. }
  5596. if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 {
  5597. invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1))
  5598. }
  5599. if s.NotificationMetadata != nil && len(*s.NotificationMetadata) < 1 {
  5600. invalidParams.Add(request.NewErrParamMinLen("NotificationMetadata", 1))
  5601. }
  5602. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  5603. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  5604. }
  5605. if invalidParams.Len() > 0 {
  5606. return invalidParams
  5607. }
  5608. return nil
  5609. }
  5610. // Contains the output of PutLifecycleHook.
  5611. type PutLifecycleHookOutput struct {
  5612. _ struct{} `type:"structure"`
  5613. }
  5614. // String returns the string representation
  5615. func (s PutLifecycleHookOutput) String() string {
  5616. return awsutil.Prettify(s)
  5617. }
  5618. // GoString returns the string representation
  5619. func (s PutLifecycleHookOutput) GoString() string {
  5620. return s.String()
  5621. }
  5622. // Contains the parameters for PutNotificationConfiguration.
  5623. type PutNotificationConfigurationInput struct {
  5624. _ struct{} `type:"structure"`
  5625. // The name of the Auto Scaling group.
  5626. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5627. // The type of event that will cause the notification to be sent. For details
  5628. // about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.
  5629. NotificationTypes []*string `type:"list" required:"true"`
  5630. // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service
  5631. // (SNS) topic.
  5632. TopicARN *string `min:"1" type:"string" required:"true"`
  5633. }
  5634. // String returns the string representation
  5635. func (s PutNotificationConfigurationInput) String() string {
  5636. return awsutil.Prettify(s)
  5637. }
  5638. // GoString returns the string representation
  5639. func (s PutNotificationConfigurationInput) GoString() string {
  5640. return s.String()
  5641. }
  5642. // Validate inspects the fields of the type to determine if they are valid.
  5643. func (s *PutNotificationConfigurationInput) Validate() error {
  5644. invalidParams := request.ErrInvalidParams{Context: "PutNotificationConfigurationInput"}
  5645. if s.AutoScalingGroupName == nil {
  5646. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  5647. }
  5648. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  5649. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  5650. }
  5651. if s.NotificationTypes == nil {
  5652. invalidParams.Add(request.NewErrParamRequired("NotificationTypes"))
  5653. }
  5654. if s.TopicARN == nil {
  5655. invalidParams.Add(request.NewErrParamRequired("TopicARN"))
  5656. }
  5657. if s.TopicARN != nil && len(*s.TopicARN) < 1 {
  5658. invalidParams.Add(request.NewErrParamMinLen("TopicARN", 1))
  5659. }
  5660. if invalidParams.Len() > 0 {
  5661. return invalidParams
  5662. }
  5663. return nil
  5664. }
  5665. type PutNotificationConfigurationOutput struct {
  5666. _ struct{} `type:"structure"`
  5667. }
  5668. // String returns the string representation
  5669. func (s PutNotificationConfigurationOutput) String() string {
  5670. return awsutil.Prettify(s)
  5671. }
  5672. // GoString returns the string representation
  5673. func (s PutNotificationConfigurationOutput) GoString() string {
  5674. return s.String()
  5675. }
  5676. // Contains the parameters for PutScalingPolicy.
  5677. type PutScalingPolicyInput struct {
  5678. _ struct{} `type:"structure"`
  5679. // The adjustment type. Valid values are ChangeInCapacity, ExactCapacity, and
  5680. // PercentChangeInCapacity.
  5681. //
  5682. // For more information, see Dynamic Scaling (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html)
  5683. // in the Auto Scaling User Guide.
  5684. AdjustmentType *string `min:"1" type:"string" required:"true"`
  5685. // The name or ARN of the group.
  5686. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5687. // The amount of time, in seconds, after a scaling activity completes and before
  5688. // the next scaling activity can start. If this parameter is not specified,
  5689. // the default cooldown period for the group applies.
  5690. //
  5691. // This parameter is not supported unless the policy type is SimpleScaling.
  5692. //
  5693. // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
  5694. // in the Auto Scaling User Guide.
  5695. Cooldown *int64 `type:"integer"`
  5696. // The estimated time, in seconds, until a newly launched instance can contribute
  5697. // to the CloudWatch metrics. The default is to use the value specified for
  5698. // the default cooldown period for the group.
  5699. //
  5700. // This parameter is not supported if the policy type is SimpleScaling.
  5701. EstimatedInstanceWarmup *int64 `type:"integer"`
  5702. // The aggregation type for the CloudWatch metrics. Valid values are Minimum,
  5703. // Maximum, and Average. If the aggregation type is null, the value is treated
  5704. // as Average.
  5705. //
  5706. // This parameter is not supported if the policy type is SimpleScaling.
  5707. MetricAggregationType *string `min:"1" type:"string"`
  5708. // The minimum number of instances to scale. If the value of AdjustmentType
  5709. // is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity
  5710. // of the Auto Scaling group by at least this many instances. Otherwise, the
  5711. // error is ValidationError.
  5712. MinAdjustmentMagnitude *int64 `type:"integer"`
  5713. // Available for backward compatibility. Use MinAdjustmentMagnitude instead.
  5714. MinAdjustmentStep *int64 `deprecated:"true" type:"integer"`
  5715. // The name of the policy.
  5716. PolicyName *string `min:"1" type:"string" required:"true"`
  5717. // The policy type. Valid values are SimpleScaling and StepScaling. If the policy
  5718. // type is null, the value is treated as SimpleScaling.
  5719. PolicyType *string `min:"1" type:"string"`
  5720. // The amount by which to scale, based on the specified adjustment type. A positive
  5721. // value adds to the current capacity while a negative number removes from the
  5722. // current capacity.
  5723. //
  5724. // This parameter is required if the policy type is SimpleScaling and not supported
  5725. // otherwise.
  5726. ScalingAdjustment *int64 `type:"integer"`
  5727. // A set of adjustments that enable you to scale based on the size of the alarm
  5728. // breach.
  5729. //
  5730. // This parameter is required if the policy type is StepScaling and not supported
  5731. // otherwise.
  5732. StepAdjustments []*StepAdjustment `type:"list"`
  5733. }
  5734. // String returns the string representation
  5735. func (s PutScalingPolicyInput) String() string {
  5736. return awsutil.Prettify(s)
  5737. }
  5738. // GoString returns the string representation
  5739. func (s PutScalingPolicyInput) GoString() string {
  5740. return s.String()
  5741. }
  5742. // Validate inspects the fields of the type to determine if they are valid.
  5743. func (s *PutScalingPolicyInput) Validate() error {
  5744. invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"}
  5745. if s.AdjustmentType == nil {
  5746. invalidParams.Add(request.NewErrParamRequired("AdjustmentType"))
  5747. }
  5748. if s.AdjustmentType != nil && len(*s.AdjustmentType) < 1 {
  5749. invalidParams.Add(request.NewErrParamMinLen("AdjustmentType", 1))
  5750. }
  5751. if s.AutoScalingGroupName == nil {
  5752. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  5753. }
  5754. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  5755. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  5756. }
  5757. if s.MetricAggregationType != nil && len(*s.MetricAggregationType) < 1 {
  5758. invalidParams.Add(request.NewErrParamMinLen("MetricAggregationType", 1))
  5759. }
  5760. if s.PolicyName == nil {
  5761. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  5762. }
  5763. if s.PolicyName != nil && len(*s.PolicyName) < 1 {
  5764. invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
  5765. }
  5766. if s.PolicyType != nil && len(*s.PolicyType) < 1 {
  5767. invalidParams.Add(request.NewErrParamMinLen("PolicyType", 1))
  5768. }
  5769. if s.StepAdjustments != nil {
  5770. for i, v := range s.StepAdjustments {
  5771. if v == nil {
  5772. continue
  5773. }
  5774. if err := v.Validate(); err != nil {
  5775. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StepAdjustments", i), err.(request.ErrInvalidParams))
  5776. }
  5777. }
  5778. }
  5779. if invalidParams.Len() > 0 {
  5780. return invalidParams
  5781. }
  5782. return nil
  5783. }
  5784. // Contains the output of PutScalingPolicy.
  5785. type PutScalingPolicyOutput struct {
  5786. _ struct{} `type:"structure"`
  5787. // The Amazon Resource Name (ARN) of the policy.
  5788. PolicyARN *string `min:"1" type:"string"`
  5789. }
  5790. // String returns the string representation
  5791. func (s PutScalingPolicyOutput) String() string {
  5792. return awsutil.Prettify(s)
  5793. }
  5794. // GoString returns the string representation
  5795. func (s PutScalingPolicyOutput) GoString() string {
  5796. return s.String()
  5797. }
  5798. // Contains the parameters for PutScheduledUpdateGroupAction.
  5799. type PutScheduledUpdateGroupActionInput struct {
  5800. _ struct{} `type:"structure"`
  5801. // The name or Amazon Resource Name (ARN) of the Auto Scaling group.
  5802. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5803. // The number of EC2 instances that should be running in the group.
  5804. DesiredCapacity *int64 `type:"integer"`
  5805. // The time for this action to end.
  5806. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5807. // The maximum size for the Auto Scaling group.
  5808. MaxSize *int64 `type:"integer"`
  5809. // The minimum size for the Auto Scaling group.
  5810. MinSize *int64 `type:"integer"`
  5811. // The time when recurring future actions will start. Start time is specified
  5812. // by the user following the Unix cron syntax format. For more information,
  5813. // see Cron (http://en.wikipedia.org/wiki/Cron) in Wikipedia.
  5814. //
  5815. // When StartTime and EndTime are specified with Recurrence, they form the
  5816. // boundaries of when the recurring action will start and stop.
  5817. Recurrence *string `min:"1" type:"string"`
  5818. // The name of this scaling action.
  5819. ScheduledActionName *string `min:"1" type:"string" required:"true"`
  5820. // The time for this action to start, in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT
  5821. // only (for example, 2014-06-01T00:00:00Z).
  5822. //
  5823. // If you try to schedule your action in the past, Auto Scaling returns an
  5824. // error message.
  5825. //
  5826. // When StartTime and EndTime are specified with Recurrence, they form the
  5827. // boundaries of when the recurring action starts and stops.
  5828. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5829. // This parameter is deprecated.
  5830. Time *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5831. }
  5832. // String returns the string representation
  5833. func (s PutScheduledUpdateGroupActionInput) String() string {
  5834. return awsutil.Prettify(s)
  5835. }
  5836. // GoString returns the string representation
  5837. func (s PutScheduledUpdateGroupActionInput) GoString() string {
  5838. return s.String()
  5839. }
  5840. // Validate inspects the fields of the type to determine if they are valid.
  5841. func (s *PutScheduledUpdateGroupActionInput) Validate() error {
  5842. invalidParams := request.ErrInvalidParams{Context: "PutScheduledUpdateGroupActionInput"}
  5843. if s.AutoScalingGroupName == nil {
  5844. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  5845. }
  5846. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  5847. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  5848. }
  5849. if s.Recurrence != nil && len(*s.Recurrence) < 1 {
  5850. invalidParams.Add(request.NewErrParamMinLen("Recurrence", 1))
  5851. }
  5852. if s.ScheduledActionName == nil {
  5853. invalidParams.Add(request.NewErrParamRequired("ScheduledActionName"))
  5854. }
  5855. if s.ScheduledActionName != nil && len(*s.ScheduledActionName) < 1 {
  5856. invalidParams.Add(request.NewErrParamMinLen("ScheduledActionName", 1))
  5857. }
  5858. if invalidParams.Len() > 0 {
  5859. return invalidParams
  5860. }
  5861. return nil
  5862. }
  5863. type PutScheduledUpdateGroupActionOutput struct {
  5864. _ struct{} `type:"structure"`
  5865. }
  5866. // String returns the string representation
  5867. func (s PutScheduledUpdateGroupActionOutput) String() string {
  5868. return awsutil.Prettify(s)
  5869. }
  5870. // GoString returns the string representation
  5871. func (s PutScheduledUpdateGroupActionOutput) GoString() string {
  5872. return s.String()
  5873. }
  5874. // Contains the parameters for RecordLifecycleActionHeartbeat.
  5875. type RecordLifecycleActionHeartbeatInput struct {
  5876. _ struct{} `type:"structure"`
  5877. // The name of the Auto Scaling group for the hook.
  5878. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5879. // The ID of the instance.
  5880. InstanceId *string `min:"1" type:"string"`
  5881. // A token that uniquely identifies a specific lifecycle action associated with
  5882. // an instance. Auto Scaling sends this token to the notification target you
  5883. // specified when you created the lifecycle hook.
  5884. LifecycleActionToken *string `min:"36" type:"string"`
  5885. // The name of the lifecycle hook.
  5886. LifecycleHookName *string `min:"1" type:"string" required:"true"`
  5887. }
  5888. // String returns the string representation
  5889. func (s RecordLifecycleActionHeartbeatInput) String() string {
  5890. return awsutil.Prettify(s)
  5891. }
  5892. // GoString returns the string representation
  5893. func (s RecordLifecycleActionHeartbeatInput) GoString() string {
  5894. return s.String()
  5895. }
  5896. // Validate inspects the fields of the type to determine if they are valid.
  5897. func (s *RecordLifecycleActionHeartbeatInput) Validate() error {
  5898. invalidParams := request.ErrInvalidParams{Context: "RecordLifecycleActionHeartbeatInput"}
  5899. if s.AutoScalingGroupName == nil {
  5900. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  5901. }
  5902. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  5903. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  5904. }
  5905. if s.InstanceId != nil && len(*s.InstanceId) < 1 {
  5906. invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1))
  5907. }
  5908. if s.LifecycleActionToken != nil && len(*s.LifecycleActionToken) < 36 {
  5909. invalidParams.Add(request.NewErrParamMinLen("LifecycleActionToken", 36))
  5910. }
  5911. if s.LifecycleHookName == nil {
  5912. invalidParams.Add(request.NewErrParamRequired("LifecycleHookName"))
  5913. }
  5914. if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 {
  5915. invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1))
  5916. }
  5917. if invalidParams.Len() > 0 {
  5918. return invalidParams
  5919. }
  5920. return nil
  5921. }
  5922. // Contains the output of RecordLifecycleActionHeartBeat.
  5923. type RecordLifecycleActionHeartbeatOutput struct {
  5924. _ struct{} `type:"structure"`
  5925. }
  5926. // String returns the string representation
  5927. func (s RecordLifecycleActionHeartbeatOutput) String() string {
  5928. return awsutil.Prettify(s)
  5929. }
  5930. // GoString returns the string representation
  5931. func (s RecordLifecycleActionHeartbeatOutput) GoString() string {
  5932. return s.String()
  5933. }
  5934. type ResumeProcessesOutput struct {
  5935. _ struct{} `type:"structure"`
  5936. }
  5937. // String returns the string representation
  5938. func (s ResumeProcessesOutput) String() string {
  5939. return awsutil.Prettify(s)
  5940. }
  5941. // GoString returns the string representation
  5942. func (s ResumeProcessesOutput) GoString() string {
  5943. return s.String()
  5944. }
  5945. // Describes a scaling policy.
  5946. type ScalingPolicy struct {
  5947. _ struct{} `type:"structure"`
  5948. // The adjustment type, which specifies how ScalingAdjustment is interpreted.
  5949. // Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
  5950. AdjustmentType *string `min:"1" type:"string"`
  5951. // The CloudWatch alarms related to the policy.
  5952. Alarms []*Alarm `type:"list"`
  5953. // The name of the Auto Scaling group associated with this scaling policy.
  5954. AutoScalingGroupName *string `min:"1" type:"string"`
  5955. // The amount of time, in seconds, after a scaling activity completes before
  5956. // any further trigger-related scaling activities can start.
  5957. Cooldown *int64 `type:"integer"`
  5958. // The estimated time, in seconds, until a newly launched instance can contribute
  5959. // to the CloudWatch metrics.
  5960. EstimatedInstanceWarmup *int64 `type:"integer"`
  5961. // The aggregation type for the CloudWatch metrics. Valid values are Minimum,
  5962. // Maximum, and Average.
  5963. MetricAggregationType *string `min:"1" type:"string"`
  5964. // The minimum number of instances to scale. If the value of AdjustmentType
  5965. // is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity
  5966. // of the Auto Scaling group by at least this many instances. Otherwise, the
  5967. // error is ValidationError.
  5968. MinAdjustmentMagnitude *int64 `type:"integer"`
  5969. // Available for backward compatibility. Use MinAdjustmentMagnitude instead.
  5970. MinAdjustmentStep *int64 `deprecated:"true" type:"integer"`
  5971. // The Amazon Resource Name (ARN) of the policy.
  5972. PolicyARN *string `min:"1" type:"string"`
  5973. // The name of the scaling policy.
  5974. PolicyName *string `min:"1" type:"string"`
  5975. // The policy type. Valid values are SimpleScaling and StepScaling.
  5976. PolicyType *string `min:"1" type:"string"`
  5977. // The amount by which to scale, based on the specified adjustment type. A positive
  5978. // value adds to the current capacity while a negative number removes from the
  5979. // current capacity.
  5980. ScalingAdjustment *int64 `type:"integer"`
  5981. // A set of adjustments that enable you to scale based on the size of the alarm
  5982. // breach.
  5983. StepAdjustments []*StepAdjustment `type:"list"`
  5984. }
  5985. // String returns the string representation
  5986. func (s ScalingPolicy) String() string {
  5987. return awsutil.Prettify(s)
  5988. }
  5989. // GoString returns the string representation
  5990. func (s ScalingPolicy) GoString() string {
  5991. return s.String()
  5992. }
  5993. // Contains the parameters for SuspendProcesses and ResumeProcesses.
  5994. type ScalingProcessQuery struct {
  5995. _ struct{} `type:"structure"`
  5996. // The name or Amazon Resource Name (ARN) of the Auto Scaling group.
  5997. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  5998. // One or more of the following processes. If you omit this parameter, all processes
  5999. // are specified.
  6000. //
  6001. // Launch
  6002. //
  6003. // Terminate
  6004. //
  6005. // HealthCheck
  6006. //
  6007. // ReplaceUnhealthy
  6008. //
  6009. // AZRebalance
  6010. //
  6011. // AlarmNotification
  6012. //
  6013. // ScheduledActions
  6014. //
  6015. // AddToLoadBalancer
  6016. ScalingProcesses []*string `type:"list"`
  6017. }
  6018. // String returns the string representation
  6019. func (s ScalingProcessQuery) String() string {
  6020. return awsutil.Prettify(s)
  6021. }
  6022. // GoString returns the string representation
  6023. func (s ScalingProcessQuery) GoString() string {
  6024. return s.String()
  6025. }
  6026. // Validate inspects the fields of the type to determine if they are valid.
  6027. func (s *ScalingProcessQuery) Validate() error {
  6028. invalidParams := request.ErrInvalidParams{Context: "ScalingProcessQuery"}
  6029. if s.AutoScalingGroupName == nil {
  6030. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  6031. }
  6032. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  6033. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  6034. }
  6035. if invalidParams.Len() > 0 {
  6036. return invalidParams
  6037. }
  6038. return nil
  6039. }
  6040. // Describes a scheduled update to an Auto Scaling group.
  6041. type ScheduledUpdateGroupAction struct {
  6042. _ struct{} `type:"structure"`
  6043. // The name of the group.
  6044. AutoScalingGroupName *string `min:"1" type:"string"`
  6045. // The number of instances you prefer to maintain in the group.
  6046. DesiredCapacity *int64 `type:"integer"`
  6047. // The date and time that the action is scheduled to end. This date and time
  6048. // can be up to one month in the future.
  6049. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6050. // The maximum size of the group.
  6051. MaxSize *int64 `type:"integer"`
  6052. // The minimum size of the group.
  6053. MinSize *int64 `type:"integer"`
  6054. // The recurring schedule for the action.
  6055. Recurrence *string `min:"1" type:"string"`
  6056. // The Amazon Resource Name (ARN) of the scheduled action.
  6057. ScheduledActionARN *string `min:"1" type:"string"`
  6058. // The name of the scheduled action.
  6059. ScheduledActionName *string `min:"1" type:"string"`
  6060. // The date and time that the action is scheduled to begin. This date and time
  6061. // can be up to one month in the future.
  6062. //
  6063. // When StartTime and EndTime are specified with Recurrence, they form the
  6064. // boundaries of when the recurring action will start and stop.
  6065. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6066. // This parameter is deprecated.
  6067. Time *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6068. }
  6069. // String returns the string representation
  6070. func (s ScheduledUpdateGroupAction) String() string {
  6071. return awsutil.Prettify(s)
  6072. }
  6073. // GoString returns the string representation
  6074. func (s ScheduledUpdateGroupAction) GoString() string {
  6075. return s.String()
  6076. }
  6077. // Contains the parameters for SetDesiredCapacity.
  6078. type SetDesiredCapacityInput struct {
  6079. _ struct{} `type:"structure"`
  6080. // The name of the Auto Scaling group.
  6081. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  6082. // The number of EC2 instances that should be running in the Auto Scaling group.
  6083. DesiredCapacity *int64 `type:"integer" required:"true"`
  6084. // By default, SetDesiredCapacity overrides any cooldown period associated with
  6085. // the Auto Scaling group. Specify True to make Auto Scaling to wait for the
  6086. // cool-down period associated with the Auto Scaling group to complete before
  6087. // initiating a scaling activity to set your Auto Scaling group to its new capacity.
  6088. HonorCooldown *bool `type:"boolean"`
  6089. }
  6090. // String returns the string representation
  6091. func (s SetDesiredCapacityInput) String() string {
  6092. return awsutil.Prettify(s)
  6093. }
  6094. // GoString returns the string representation
  6095. func (s SetDesiredCapacityInput) GoString() string {
  6096. return s.String()
  6097. }
  6098. // Validate inspects the fields of the type to determine if they are valid.
  6099. func (s *SetDesiredCapacityInput) Validate() error {
  6100. invalidParams := request.ErrInvalidParams{Context: "SetDesiredCapacityInput"}
  6101. if s.AutoScalingGroupName == nil {
  6102. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  6103. }
  6104. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  6105. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  6106. }
  6107. if s.DesiredCapacity == nil {
  6108. invalidParams.Add(request.NewErrParamRequired("DesiredCapacity"))
  6109. }
  6110. if invalidParams.Len() > 0 {
  6111. return invalidParams
  6112. }
  6113. return nil
  6114. }
  6115. type SetDesiredCapacityOutput struct {
  6116. _ struct{} `type:"structure"`
  6117. }
  6118. // String returns the string representation
  6119. func (s SetDesiredCapacityOutput) String() string {
  6120. return awsutil.Prettify(s)
  6121. }
  6122. // GoString returns the string representation
  6123. func (s SetDesiredCapacityOutput) GoString() string {
  6124. return s.String()
  6125. }
  6126. // Contains the parameters for SetInstanceHealth.
  6127. type SetInstanceHealthInput struct {
  6128. _ struct{} `type:"structure"`
  6129. // The health status of the instance. Set to Healthy if you want the instance
  6130. // to remain in service. Set to Unhealthy if you want the instance to be out
  6131. // of service. Auto Scaling will terminate and replace the unhealthy instance.
  6132. HealthStatus *string `min:"1" type:"string" required:"true"`
  6133. // The ID of the instance.
  6134. InstanceId *string `min:"1" type:"string" required:"true"`
  6135. // If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod
  6136. // specified for the group, by default, this call will respect the grace period.
  6137. // Set this to False, if you do not want the call to respect the grace period
  6138. // associated with the group.
  6139. //
  6140. // For more information, see the description of the health check grace period
  6141. // for CreateAutoScalingGroup.
  6142. ShouldRespectGracePeriod *bool `type:"boolean"`
  6143. }
  6144. // String returns the string representation
  6145. func (s SetInstanceHealthInput) String() string {
  6146. return awsutil.Prettify(s)
  6147. }
  6148. // GoString returns the string representation
  6149. func (s SetInstanceHealthInput) GoString() string {
  6150. return s.String()
  6151. }
  6152. // Validate inspects the fields of the type to determine if they are valid.
  6153. func (s *SetInstanceHealthInput) Validate() error {
  6154. invalidParams := request.ErrInvalidParams{Context: "SetInstanceHealthInput"}
  6155. if s.HealthStatus == nil {
  6156. invalidParams.Add(request.NewErrParamRequired("HealthStatus"))
  6157. }
  6158. if s.HealthStatus != nil && len(*s.HealthStatus) < 1 {
  6159. invalidParams.Add(request.NewErrParamMinLen("HealthStatus", 1))
  6160. }
  6161. if s.InstanceId == nil {
  6162. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  6163. }
  6164. if s.InstanceId != nil && len(*s.InstanceId) < 1 {
  6165. invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1))
  6166. }
  6167. if invalidParams.Len() > 0 {
  6168. return invalidParams
  6169. }
  6170. return nil
  6171. }
  6172. type SetInstanceHealthOutput struct {
  6173. _ struct{} `type:"structure"`
  6174. }
  6175. // String returns the string representation
  6176. func (s SetInstanceHealthOutput) String() string {
  6177. return awsutil.Prettify(s)
  6178. }
  6179. // GoString returns the string representation
  6180. func (s SetInstanceHealthOutput) GoString() string {
  6181. return s.String()
  6182. }
  6183. // Contains the parameters for SetInstanceProtection.
  6184. type SetInstanceProtectionInput struct {
  6185. _ struct{} `type:"structure"`
  6186. // The name of the group.
  6187. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  6188. // One or more instance IDs.
  6189. InstanceIds []*string `type:"list" required:"true"`
  6190. // Indicates whether the instance is protected from termination by Auto Scaling
  6191. // when scaling in.
  6192. ProtectedFromScaleIn *bool `type:"boolean" required:"true"`
  6193. }
  6194. // String returns the string representation
  6195. func (s SetInstanceProtectionInput) String() string {
  6196. return awsutil.Prettify(s)
  6197. }
  6198. // GoString returns the string representation
  6199. func (s SetInstanceProtectionInput) GoString() string {
  6200. return s.String()
  6201. }
  6202. // Validate inspects the fields of the type to determine if they are valid.
  6203. func (s *SetInstanceProtectionInput) Validate() error {
  6204. invalidParams := request.ErrInvalidParams{Context: "SetInstanceProtectionInput"}
  6205. if s.AutoScalingGroupName == nil {
  6206. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  6207. }
  6208. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  6209. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  6210. }
  6211. if s.InstanceIds == nil {
  6212. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  6213. }
  6214. if s.ProtectedFromScaleIn == nil {
  6215. invalidParams.Add(request.NewErrParamRequired("ProtectedFromScaleIn"))
  6216. }
  6217. if invalidParams.Len() > 0 {
  6218. return invalidParams
  6219. }
  6220. return nil
  6221. }
  6222. // Contains the output of SetInstanceProtection.
  6223. type SetInstanceProtectionOutput struct {
  6224. _ struct{} `type:"structure"`
  6225. }
  6226. // String returns the string representation
  6227. func (s SetInstanceProtectionOutput) String() string {
  6228. return awsutil.Prettify(s)
  6229. }
  6230. // GoString returns the string representation
  6231. func (s SetInstanceProtectionOutput) GoString() string {
  6232. return s.String()
  6233. }
  6234. // Describes an adjustment based on the difference between the value of the
  6235. // aggregated CloudWatch metric and the breach threshold that you've defined
  6236. // for the alarm.
  6237. //
  6238. // For the following examples, suppose that you have an alarm with a breach
  6239. // threshold of 50:
  6240. //
  6241. // If you want the adjustment to be triggered when the metric is greater
  6242. // than or equal to 50 and less than 60, specify a lower bound of 0 and an upper
  6243. // bound of 10.
  6244. //
  6245. // If you want the adjustment to be triggered when the metric is greater
  6246. // than 40 and less than or equal to 50, specify a lower bound of -10 and an
  6247. // upper bound of 0.
  6248. //
  6249. // There are a few rules for the step adjustments for your step policy:
  6250. //
  6251. // The ranges of your step adjustments can't overlap or have a gap.
  6252. //
  6253. // At most one step adjustment can have a null lower bound. If one step adjustment
  6254. // has a negative lower bound, then there must be a step adjustment with a null
  6255. // lower bound.
  6256. //
  6257. // At most one step adjustment can have a null upper bound. If one step adjustment
  6258. // has a positive upper bound, then there must be a step adjustment with a null
  6259. // upper bound.
  6260. //
  6261. // The upper and lower bound can't be null in the same step adjustment.
  6262. type StepAdjustment struct {
  6263. _ struct{} `type:"structure"`
  6264. // The lower bound for the difference between the alarm threshold and the CloudWatch
  6265. // metric. If the metric value is above the breach threshold, the lower bound
  6266. // is inclusive (the metric must be greater than or equal to the threshold plus
  6267. // the lower bound). Otherwise, it is exclusive (the metric must be greater
  6268. // than the threshold plus the lower bound). A null value indicates negative
  6269. // infinity.
  6270. MetricIntervalLowerBound *float64 `type:"double"`
  6271. // The upper bound for the difference between the alarm threshold and the CloudWatch
  6272. // metric. If the metric value is above the breach threshold, the upper bound
  6273. // is exclusive (the metric must be less than the threshold plus the upper bound).
  6274. // Otherwise, it is inclusive (the metric must be less than or equal to the
  6275. // threshold plus the upper bound). A null value indicates positive infinity.
  6276. //
  6277. // The upper bound must be greater than the lower bound.
  6278. MetricIntervalUpperBound *float64 `type:"double"`
  6279. // The amount by which to scale, based on the specified adjustment type. A positive
  6280. // value adds to the current capacity while a negative number removes from the
  6281. // current capacity.
  6282. ScalingAdjustment *int64 `type:"integer" required:"true"`
  6283. }
  6284. // String returns the string representation
  6285. func (s StepAdjustment) String() string {
  6286. return awsutil.Prettify(s)
  6287. }
  6288. // GoString returns the string representation
  6289. func (s StepAdjustment) GoString() string {
  6290. return s.String()
  6291. }
  6292. // Validate inspects the fields of the type to determine if they are valid.
  6293. func (s *StepAdjustment) Validate() error {
  6294. invalidParams := request.ErrInvalidParams{Context: "StepAdjustment"}
  6295. if s.ScalingAdjustment == nil {
  6296. invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment"))
  6297. }
  6298. if invalidParams.Len() > 0 {
  6299. return invalidParams
  6300. }
  6301. return nil
  6302. }
  6303. type SuspendProcessesOutput struct {
  6304. _ struct{} `type:"structure"`
  6305. }
  6306. // String returns the string representation
  6307. func (s SuspendProcessesOutput) String() string {
  6308. return awsutil.Prettify(s)
  6309. }
  6310. // GoString returns the string representation
  6311. func (s SuspendProcessesOutput) GoString() string {
  6312. return s.String()
  6313. }
  6314. // Describes an Auto Scaling process that has been suspended. For more information,
  6315. // see ProcessType.
  6316. type SuspendedProcess struct {
  6317. _ struct{} `type:"structure"`
  6318. // The name of the suspended process.
  6319. ProcessName *string `min:"1" type:"string"`
  6320. // The reason that the process was suspended.
  6321. SuspensionReason *string `min:"1" type:"string"`
  6322. }
  6323. // String returns the string representation
  6324. func (s SuspendedProcess) String() string {
  6325. return awsutil.Prettify(s)
  6326. }
  6327. // GoString returns the string representation
  6328. func (s SuspendedProcess) GoString() string {
  6329. return s.String()
  6330. }
  6331. // Describes a tag for an Auto Scaling group.
  6332. type Tag struct {
  6333. _ struct{} `type:"structure"`
  6334. // The tag key.
  6335. Key *string `min:"1" type:"string" required:"true"`
  6336. // Determines whether the tag is added to new instances as they are launched
  6337. // in the group.
  6338. PropagateAtLaunch *bool `type:"boolean"`
  6339. // The name of the group.
  6340. ResourceId *string `type:"string"`
  6341. // The type of resource. The only supported value is auto-scaling-group.
  6342. ResourceType *string `type:"string"`
  6343. // The tag value.
  6344. Value *string `type:"string"`
  6345. }
  6346. // String returns the string representation
  6347. func (s Tag) String() string {
  6348. return awsutil.Prettify(s)
  6349. }
  6350. // GoString returns the string representation
  6351. func (s Tag) GoString() string {
  6352. return s.String()
  6353. }
  6354. // Validate inspects the fields of the type to determine if they are valid.
  6355. func (s *Tag) Validate() error {
  6356. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  6357. if s.Key == nil {
  6358. invalidParams.Add(request.NewErrParamRequired("Key"))
  6359. }
  6360. if s.Key != nil && len(*s.Key) < 1 {
  6361. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  6362. }
  6363. if invalidParams.Len() > 0 {
  6364. return invalidParams
  6365. }
  6366. return nil
  6367. }
  6368. // Describes a tag for an Auto Scaling group.
  6369. type TagDescription struct {
  6370. _ struct{} `type:"structure"`
  6371. // The tag key.
  6372. Key *string `min:"1" type:"string"`
  6373. // Determines whether the tag is added to new instances as they are launched
  6374. // in the group.
  6375. PropagateAtLaunch *bool `type:"boolean"`
  6376. // The name of the group.
  6377. ResourceId *string `type:"string"`
  6378. // The type of resource. The only supported value is auto-scaling-group.
  6379. ResourceType *string `type:"string"`
  6380. // The tag value.
  6381. Value *string `type:"string"`
  6382. }
  6383. // String returns the string representation
  6384. func (s TagDescription) String() string {
  6385. return awsutil.Prettify(s)
  6386. }
  6387. // GoString returns the string representation
  6388. func (s TagDescription) GoString() string {
  6389. return s.String()
  6390. }
  6391. // Contains the parameters for TerminateInstanceInAutoScalingGroup.
  6392. type TerminateInstanceInAutoScalingGroupInput struct {
  6393. _ struct{} `type:"structure"`
  6394. // The ID of the instance.
  6395. InstanceId *string `min:"1" type:"string" required:"true"`
  6396. // If true, terminating the instance also decrements the size of the Auto Scaling
  6397. // group.
  6398. ShouldDecrementDesiredCapacity *bool `type:"boolean" required:"true"`
  6399. }
  6400. // String returns the string representation
  6401. func (s TerminateInstanceInAutoScalingGroupInput) String() string {
  6402. return awsutil.Prettify(s)
  6403. }
  6404. // GoString returns the string representation
  6405. func (s TerminateInstanceInAutoScalingGroupInput) GoString() string {
  6406. return s.String()
  6407. }
  6408. // Validate inspects the fields of the type to determine if they are valid.
  6409. func (s *TerminateInstanceInAutoScalingGroupInput) Validate() error {
  6410. invalidParams := request.ErrInvalidParams{Context: "TerminateInstanceInAutoScalingGroupInput"}
  6411. if s.InstanceId == nil {
  6412. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  6413. }
  6414. if s.InstanceId != nil && len(*s.InstanceId) < 1 {
  6415. invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1))
  6416. }
  6417. if s.ShouldDecrementDesiredCapacity == nil {
  6418. invalidParams.Add(request.NewErrParamRequired("ShouldDecrementDesiredCapacity"))
  6419. }
  6420. if invalidParams.Len() > 0 {
  6421. return invalidParams
  6422. }
  6423. return nil
  6424. }
  6425. // Contains the output of TerminateInstancesInAutoScalingGroup.
  6426. type TerminateInstanceInAutoScalingGroupOutput struct {
  6427. _ struct{} `type:"structure"`
  6428. // A scaling activity.
  6429. Activity *Activity `type:"structure"`
  6430. }
  6431. // String returns the string representation
  6432. func (s TerminateInstanceInAutoScalingGroupOutput) String() string {
  6433. return awsutil.Prettify(s)
  6434. }
  6435. // GoString returns the string representation
  6436. func (s TerminateInstanceInAutoScalingGroupOutput) GoString() string {
  6437. return s.String()
  6438. }
  6439. // Contains the parameters for UpdateAutoScalingGroup.
  6440. type UpdateAutoScalingGroupInput struct {
  6441. _ struct{} `type:"structure"`
  6442. // The name of the Auto Scaling group.
  6443. AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
  6444. // One or more Availability Zones for the group.
  6445. AvailabilityZones []*string `min:"1" type:"list"`
  6446. // The amount of time, in seconds, after a scaling activity completes before
  6447. // another scaling activity can start. The default is 300.
  6448. //
  6449. // For more information, see Auto Scaling Cooldowns (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html)
  6450. // in the Auto Scaling User Guide.
  6451. DefaultCooldown *int64 `type:"integer"`
  6452. // The number of EC2 instances that should be running in the Auto Scaling group.
  6453. // This number must be greater than or equal to the minimum size of the group
  6454. // and less than or equal to the maximum size of the group.
  6455. DesiredCapacity *int64 `type:"integer"`
  6456. // The amount of time, in seconds, that Auto Scaling waits before checking the
  6457. // health status of an EC2 instance that has come into service. The default
  6458. // is 0.
  6459. //
  6460. // For more information, see Health Checks (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html)
  6461. // in the Auto Scaling User Guide.
  6462. HealthCheckGracePeriod *int64 `type:"integer"`
  6463. // The service to use for the health checks. The valid values are EC2 and ELB.
  6464. HealthCheckType *string `min:"1" type:"string"`
  6465. // The name of the launch configuration.
  6466. LaunchConfigurationName *string `min:"1" type:"string"`
  6467. // The maximum size of the Auto Scaling group.
  6468. MaxSize *int64 `type:"integer"`
  6469. // The minimum size of the Auto Scaling group.
  6470. MinSize *int64 `type:"integer"`
  6471. // Indicates whether newly launched instances are protected from termination
  6472. // by Auto Scaling when scaling in.
  6473. NewInstancesProtectedFromScaleIn *bool `type:"boolean"`
  6474. // The name of the placement group into which you'll launch your instances,
  6475. // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  6476. // in the Amazon Elastic Compute Cloud User Guide.
  6477. PlacementGroup *string `min:"1" type:"string"`
  6478. // A standalone termination policy or a list of termination policies used to
  6479. // select the instance to terminate. The policies are executed in the order
  6480. // that they are listed.
  6481. //
  6482. // For more information, see Controlling Which Instances Auto Scaling Terminates
  6483. // During Scale In (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/AutoScalingBehavior.InstanceTermination.html)
  6484. // in the Auto Scaling User Guide.
  6485. TerminationPolicies []*string `type:"list"`
  6486. // The ID of the subnet, if you are launching into a VPC. You can specify several
  6487. // subnets in a comma-separated list.
  6488. //
  6489. // When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the
  6490. // subnets' Availability Zones match the values you specify for AvailabilityZones.
  6491. //
  6492. // For more information, see Launching Auto Scaling Instances in a VPC (http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/asg-in-vpc.html)
  6493. // in the Auto Scaling User Guide.
  6494. VPCZoneIdentifier *string `min:"1" type:"string"`
  6495. }
  6496. // String returns the string representation
  6497. func (s UpdateAutoScalingGroupInput) String() string {
  6498. return awsutil.Prettify(s)
  6499. }
  6500. // GoString returns the string representation
  6501. func (s UpdateAutoScalingGroupInput) GoString() string {
  6502. return s.String()
  6503. }
  6504. // Validate inspects the fields of the type to determine if they are valid.
  6505. func (s *UpdateAutoScalingGroupInput) Validate() error {
  6506. invalidParams := request.ErrInvalidParams{Context: "UpdateAutoScalingGroupInput"}
  6507. if s.AutoScalingGroupName == nil {
  6508. invalidParams.Add(request.NewErrParamRequired("AutoScalingGroupName"))
  6509. }
  6510. if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
  6511. invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
  6512. }
  6513. if s.AvailabilityZones != nil && len(s.AvailabilityZones) < 1 {
  6514. invalidParams.Add(request.NewErrParamMinLen("AvailabilityZones", 1))
  6515. }
  6516. if s.HealthCheckType != nil && len(*s.HealthCheckType) < 1 {
  6517. invalidParams.Add(request.NewErrParamMinLen("HealthCheckType", 1))
  6518. }
  6519. if s.LaunchConfigurationName != nil && len(*s.LaunchConfigurationName) < 1 {
  6520. invalidParams.Add(request.NewErrParamMinLen("LaunchConfigurationName", 1))
  6521. }
  6522. if s.PlacementGroup != nil && len(*s.PlacementGroup) < 1 {
  6523. invalidParams.Add(request.NewErrParamMinLen("PlacementGroup", 1))
  6524. }
  6525. if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 {
  6526. invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1))
  6527. }
  6528. if invalidParams.Len() > 0 {
  6529. return invalidParams
  6530. }
  6531. return nil
  6532. }
  6533. type UpdateAutoScalingGroupOutput struct {
  6534. _ struct{} `type:"structure"`
  6535. }
  6536. // String returns the string representation
  6537. func (s UpdateAutoScalingGroupOutput) String() string {
  6538. return awsutil.Prettify(s)
  6539. }
  6540. // GoString returns the string representation
  6541. func (s UpdateAutoScalingGroupOutput) GoString() string {
  6542. return s.String()
  6543. }
  6544. const (
  6545. // @enum LifecycleState
  6546. LifecycleStatePending = "Pending"
  6547. // @enum LifecycleState
  6548. LifecycleStatePendingWait = "Pending:Wait"
  6549. // @enum LifecycleState
  6550. LifecycleStatePendingProceed = "Pending:Proceed"
  6551. // @enum LifecycleState
  6552. LifecycleStateQuarantined = "Quarantined"
  6553. // @enum LifecycleState
  6554. LifecycleStateInService = "InService"
  6555. // @enum LifecycleState
  6556. LifecycleStateTerminating = "Terminating"
  6557. // @enum LifecycleState
  6558. LifecycleStateTerminatingWait = "Terminating:Wait"
  6559. // @enum LifecycleState
  6560. LifecycleStateTerminatingProceed = "Terminating:Proceed"
  6561. // @enum LifecycleState
  6562. LifecycleStateTerminated = "Terminated"
  6563. // @enum LifecycleState
  6564. LifecycleStateDetaching = "Detaching"
  6565. // @enum LifecycleState
  6566. LifecycleStateDetached = "Detached"
  6567. // @enum LifecycleState
  6568. LifecycleStateEnteringStandby = "EnteringStandby"
  6569. // @enum LifecycleState
  6570. LifecycleStateStandby = "Standby"
  6571. )
  6572. const (
  6573. // @enum ScalingActivityStatusCode
  6574. ScalingActivityStatusCodePendingSpotBidPlacement = "PendingSpotBidPlacement"
  6575. // @enum ScalingActivityStatusCode
  6576. ScalingActivityStatusCodeWaitingForSpotInstanceRequestId = "WaitingForSpotInstanceRequestId"
  6577. // @enum ScalingActivityStatusCode
  6578. ScalingActivityStatusCodeWaitingForSpotInstanceId = "WaitingForSpotInstanceId"
  6579. // @enum ScalingActivityStatusCode
  6580. ScalingActivityStatusCodeWaitingForInstanceId = "WaitingForInstanceId"
  6581. // @enum ScalingActivityStatusCode
  6582. ScalingActivityStatusCodePreInService = "PreInService"
  6583. // @enum ScalingActivityStatusCode
  6584. ScalingActivityStatusCodeInProgress = "InProgress"
  6585. // @enum ScalingActivityStatusCode
  6586. ScalingActivityStatusCodeWaitingForElbconnectionDraining = "WaitingForELBConnectionDraining"
  6587. // @enum ScalingActivityStatusCode
  6588. ScalingActivityStatusCodeMidLifecycleAction = "MidLifecycleAction"
  6589. // @enum ScalingActivityStatusCode
  6590. ScalingActivityStatusCodeWaitingForInstanceWarmup = "WaitingForInstanceWarmup"
  6591. // @enum ScalingActivityStatusCode
  6592. ScalingActivityStatusCodeSuccessful = "Successful"
  6593. // @enum ScalingActivityStatusCode
  6594. ScalingActivityStatusCodeFailed = "Failed"
  6595. // @enum ScalingActivityStatusCode
  6596. ScalingActivityStatusCodeCancelled = "Cancelled"
  6597. )