api.go 229 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package elb
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  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 opAddTags = "AddTags"
  13. // AddTagsRequest generates a "aws/request.Request" representing the
  14. // client's request for the AddTags operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AddTags for more information on using the AddTags
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AddTagsRequest method.
  29. // req, resp := client.AddTagsRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags
  37. func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  38. op := &request.Operation{
  39. Name: opAddTags,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AddTagsInput{}
  45. }
  46. output = &AddTagsOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AddTags API operation for Elastic Load Balancing.
  52. //
  53. // Adds the specified tags to the specified load balancer. Each load balancer
  54. // can have a maximum of 10 tags.
  55. //
  56. // Each tag consists of a key and an optional value. If a tag with the same
  57. // key is already associated with the load balancer, AddTags updates its value.
  58. //
  59. // For more information, see Tag Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
  60. // in the Classic Load Balancers Guide.
  61. //
  62. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  63. // with awserr.Error's Code and Message methods to get detailed information about
  64. // the error.
  65. //
  66. // See the AWS API reference guide for Elastic Load Balancing's
  67. // API operation AddTags for usage and error information.
  68. //
  69. // Returned Error Codes:
  70. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  71. // The specified load balancer does not exist.
  72. //
  73. // * ErrCodeTooManyTagsException "TooManyTags"
  74. // The quota for the number of tags that can be assigned to a load balancer
  75. // has been reached.
  76. //
  77. // * ErrCodeDuplicateTagKeysException "DuplicateTagKeys"
  78. // A tag key was specified more than once.
  79. //
  80. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AddTags
  81. func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  82. req, out := c.AddTagsRequest(input)
  83. return out, req.Send()
  84. }
  85. // AddTagsWithContext is the same as AddTags with the addition of
  86. // the ability to pass a context and additional request options.
  87. //
  88. // See AddTags for details on how to use this API operation.
  89. //
  90. // The context must be non-nil and will be used for request cancellation. If
  91. // the context is nil a panic will occur. In the future the SDK may create
  92. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  93. // for more information on using Contexts.
  94. func (c *ELB) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) {
  95. req, out := c.AddTagsRequest(input)
  96. req.SetContext(ctx)
  97. req.ApplyOptions(opts...)
  98. return out, req.Send()
  99. }
  100. const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer"
  101. // ApplySecurityGroupsToLoadBalancerRequest generates a "aws/request.Request" representing the
  102. // client's request for the ApplySecurityGroupsToLoadBalancer operation. The "output" return
  103. // value will be populated with the request's response once the request completes
  104. // successfully.
  105. //
  106. // Use "Send" method on the returned Request to send the API call to the service.
  107. // the "output" return value is not valid until after Send returns without error.
  108. //
  109. // See ApplySecurityGroupsToLoadBalancer for more information on using the ApplySecurityGroupsToLoadBalancer
  110. // API call, and error handling.
  111. //
  112. // This method is useful when you want to inject custom logic or configuration
  113. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  114. //
  115. //
  116. // // Example sending a request using the ApplySecurityGroupsToLoadBalancerRequest method.
  117. // req, resp := client.ApplySecurityGroupsToLoadBalancerRequest(params)
  118. //
  119. // err := req.Send()
  120. // if err == nil { // resp is now filled
  121. // fmt.Println(resp)
  122. // }
  123. //
  124. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer
  125. func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) {
  126. op := &request.Operation{
  127. Name: opApplySecurityGroupsToLoadBalancer,
  128. HTTPMethod: "POST",
  129. HTTPPath: "/",
  130. }
  131. if input == nil {
  132. input = &ApplySecurityGroupsToLoadBalancerInput{}
  133. }
  134. output = &ApplySecurityGroupsToLoadBalancerOutput{}
  135. req = c.newRequest(op, input, output)
  136. return
  137. }
  138. // ApplySecurityGroupsToLoadBalancer API operation for Elastic Load Balancing.
  139. //
  140. // Associates one or more security groups with your load balancer in a virtual
  141. // private cloud (VPC). The specified security groups override the previously
  142. // associated security groups.
  143. //
  144. // For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#elb-vpc-security-groups)
  145. // in the Classic Load Balancers Guide.
  146. //
  147. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  148. // with awserr.Error's Code and Message methods to get detailed information about
  149. // the error.
  150. //
  151. // See the AWS API reference guide for Elastic Load Balancing's
  152. // API operation ApplySecurityGroupsToLoadBalancer for usage and error information.
  153. //
  154. // Returned Error Codes:
  155. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  156. // The specified load balancer does not exist.
  157. //
  158. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  159. // The requested configuration change is not valid.
  160. //
  161. // * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
  162. // One or more of the specified security groups do not exist.
  163. //
  164. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ApplySecurityGroupsToLoadBalancer
  165. func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) {
  166. req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input)
  167. return out, req.Send()
  168. }
  169. // ApplySecurityGroupsToLoadBalancerWithContext is the same as ApplySecurityGroupsToLoadBalancer with the addition of
  170. // the ability to pass a context and additional request options.
  171. //
  172. // See ApplySecurityGroupsToLoadBalancer for details on how to use this API operation.
  173. //
  174. // The context must be non-nil and will be used for request cancellation. If
  175. // the context is nil a panic will occur. In the future the SDK may create
  176. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  177. // for more information on using Contexts.
  178. func (c *ELB) ApplySecurityGroupsToLoadBalancerWithContext(ctx aws.Context, input *ApplySecurityGroupsToLoadBalancerInput, opts ...request.Option) (*ApplySecurityGroupsToLoadBalancerOutput, error) {
  179. req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input)
  180. req.SetContext(ctx)
  181. req.ApplyOptions(opts...)
  182. return out, req.Send()
  183. }
  184. const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets"
  185. // AttachLoadBalancerToSubnetsRequest generates a "aws/request.Request" representing the
  186. // client's request for the AttachLoadBalancerToSubnets operation. The "output" return
  187. // value will be populated with the request's response once the request completes
  188. // successfully.
  189. //
  190. // Use "Send" method on the returned Request to send the API call to the service.
  191. // the "output" return value is not valid until after Send returns without error.
  192. //
  193. // See AttachLoadBalancerToSubnets for more information on using the AttachLoadBalancerToSubnets
  194. // API call, and error handling.
  195. //
  196. // This method is useful when you want to inject custom logic or configuration
  197. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  198. //
  199. //
  200. // // Example sending a request using the AttachLoadBalancerToSubnetsRequest method.
  201. // req, resp := client.AttachLoadBalancerToSubnetsRequest(params)
  202. //
  203. // err := req.Send()
  204. // if err == nil { // resp is now filled
  205. // fmt.Println(resp)
  206. // }
  207. //
  208. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets
  209. func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) {
  210. op := &request.Operation{
  211. Name: opAttachLoadBalancerToSubnets,
  212. HTTPMethod: "POST",
  213. HTTPPath: "/",
  214. }
  215. if input == nil {
  216. input = &AttachLoadBalancerToSubnetsInput{}
  217. }
  218. output = &AttachLoadBalancerToSubnetsOutput{}
  219. req = c.newRequest(op, input, output)
  220. return
  221. }
  222. // AttachLoadBalancerToSubnets API operation for Elastic Load Balancing.
  223. //
  224. // Adds one or more subnets to the set of configured subnets for the specified
  225. // load balancer.
  226. //
  227. // The load balancer evenly distributes requests across all registered subnets.
  228. // For more information, see Add or Remove Subnets for Your Load Balancer in
  229. // a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-manage-subnets.html)
  230. // in the Classic Load Balancers Guide.
  231. //
  232. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  233. // with awserr.Error's Code and Message methods to get detailed information about
  234. // the error.
  235. //
  236. // See the AWS API reference guide for Elastic Load Balancing's
  237. // API operation AttachLoadBalancerToSubnets for usage and error information.
  238. //
  239. // Returned Error Codes:
  240. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  241. // The specified load balancer does not exist.
  242. //
  243. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  244. // The requested configuration change is not valid.
  245. //
  246. // * ErrCodeSubnetNotFoundException "SubnetNotFound"
  247. // One or more of the specified subnets do not exist.
  248. //
  249. // * ErrCodeInvalidSubnetException "InvalidSubnet"
  250. // The specified VPC has no associated Internet gateway.
  251. //
  252. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/AttachLoadBalancerToSubnets
  253. func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) {
  254. req, out := c.AttachLoadBalancerToSubnetsRequest(input)
  255. return out, req.Send()
  256. }
  257. // AttachLoadBalancerToSubnetsWithContext is the same as AttachLoadBalancerToSubnets with the addition of
  258. // the ability to pass a context and additional request options.
  259. //
  260. // See AttachLoadBalancerToSubnets for details on how to use this API operation.
  261. //
  262. // The context must be non-nil and will be used for request cancellation. If
  263. // the context is nil a panic will occur. In the future the SDK may create
  264. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  265. // for more information on using Contexts.
  266. func (c *ELB) AttachLoadBalancerToSubnetsWithContext(ctx aws.Context, input *AttachLoadBalancerToSubnetsInput, opts ...request.Option) (*AttachLoadBalancerToSubnetsOutput, error) {
  267. req, out := c.AttachLoadBalancerToSubnetsRequest(input)
  268. req.SetContext(ctx)
  269. req.ApplyOptions(opts...)
  270. return out, req.Send()
  271. }
  272. const opConfigureHealthCheck = "ConfigureHealthCheck"
  273. // ConfigureHealthCheckRequest generates a "aws/request.Request" representing the
  274. // client's request for the ConfigureHealthCheck operation. The "output" return
  275. // value will be populated with the request's response once the request completes
  276. // successfully.
  277. //
  278. // Use "Send" method on the returned Request to send the API call to the service.
  279. // the "output" return value is not valid until after Send returns without error.
  280. //
  281. // See ConfigureHealthCheck for more information on using the ConfigureHealthCheck
  282. // API call, and error handling.
  283. //
  284. // This method is useful when you want to inject custom logic or configuration
  285. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  286. //
  287. //
  288. // // Example sending a request using the ConfigureHealthCheckRequest method.
  289. // req, resp := client.ConfigureHealthCheckRequest(params)
  290. //
  291. // err := req.Send()
  292. // if err == nil { // resp is now filled
  293. // fmt.Println(resp)
  294. // }
  295. //
  296. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck
  297. func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) {
  298. op := &request.Operation{
  299. Name: opConfigureHealthCheck,
  300. HTTPMethod: "POST",
  301. HTTPPath: "/",
  302. }
  303. if input == nil {
  304. input = &ConfigureHealthCheckInput{}
  305. }
  306. output = &ConfigureHealthCheckOutput{}
  307. req = c.newRequest(op, input, output)
  308. return
  309. }
  310. // ConfigureHealthCheck API operation for Elastic Load Balancing.
  311. //
  312. // Specifies the health check settings to use when evaluating the health state
  313. // of your EC2 instances.
  314. //
  315. // For more information, see Configure Health Checks for Your Load Balancer
  316. // (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html)
  317. // in the Classic Load Balancers Guide.
  318. //
  319. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  320. // with awserr.Error's Code and Message methods to get detailed information about
  321. // the error.
  322. //
  323. // See the AWS API reference guide for Elastic Load Balancing's
  324. // API operation ConfigureHealthCheck for usage and error information.
  325. //
  326. // Returned Error Codes:
  327. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  328. // The specified load balancer does not exist.
  329. //
  330. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ConfigureHealthCheck
  331. func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) {
  332. req, out := c.ConfigureHealthCheckRequest(input)
  333. return out, req.Send()
  334. }
  335. // ConfigureHealthCheckWithContext is the same as ConfigureHealthCheck with the addition of
  336. // the ability to pass a context and additional request options.
  337. //
  338. // See ConfigureHealthCheck for details on how to use this API operation.
  339. //
  340. // The context must be non-nil and will be used for request cancellation. If
  341. // the context is nil a panic will occur. In the future the SDK may create
  342. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  343. // for more information on using Contexts.
  344. func (c *ELB) ConfigureHealthCheckWithContext(ctx aws.Context, input *ConfigureHealthCheckInput, opts ...request.Option) (*ConfigureHealthCheckOutput, error) {
  345. req, out := c.ConfigureHealthCheckRequest(input)
  346. req.SetContext(ctx)
  347. req.ApplyOptions(opts...)
  348. return out, req.Send()
  349. }
  350. const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy"
  351. // CreateAppCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
  352. // client's request for the CreateAppCookieStickinessPolicy operation. The "output" return
  353. // value will be populated with the request's response once the request completes
  354. // successfully.
  355. //
  356. // Use "Send" method on the returned Request to send the API call to the service.
  357. // the "output" return value is not valid until after Send returns without error.
  358. //
  359. // See CreateAppCookieStickinessPolicy for more information on using the CreateAppCookieStickinessPolicy
  360. // API call, and error handling.
  361. //
  362. // This method is useful when you want to inject custom logic or configuration
  363. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  364. //
  365. //
  366. // // Example sending a request using the CreateAppCookieStickinessPolicyRequest method.
  367. // req, resp := client.CreateAppCookieStickinessPolicyRequest(params)
  368. //
  369. // err := req.Send()
  370. // if err == nil { // resp is now filled
  371. // fmt.Println(resp)
  372. // }
  373. //
  374. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy
  375. func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) {
  376. op := &request.Operation{
  377. Name: opCreateAppCookieStickinessPolicy,
  378. HTTPMethod: "POST",
  379. HTTPPath: "/",
  380. }
  381. if input == nil {
  382. input = &CreateAppCookieStickinessPolicyInput{}
  383. }
  384. output = &CreateAppCookieStickinessPolicyOutput{}
  385. req = c.newRequest(op, input, output)
  386. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  387. return
  388. }
  389. // CreateAppCookieStickinessPolicy API operation for Elastic Load Balancing.
  390. //
  391. // Generates a stickiness policy with sticky session lifetimes that follow that
  392. // of an application-generated cookie. This policy can be associated only with
  393. // HTTP/HTTPS listeners.
  394. //
  395. // This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
  396. // except that the lifetime of the special Elastic Load Balancing cookie, AWSELB,
  397. // follows the lifetime of the application-generated cookie specified in the
  398. // policy configuration. The load balancer only inserts a new stickiness cookie
  399. // when the application response includes a new application cookie.
  400. //
  401. // If the application cookie is explicitly removed or expires, the session stops
  402. // being sticky until a new application cookie is issued.
  403. //
  404. // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
  405. // in the Classic Load Balancers Guide.
  406. //
  407. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  408. // with awserr.Error's Code and Message methods to get detailed information about
  409. // the error.
  410. //
  411. // See the AWS API reference guide for Elastic Load Balancing's
  412. // API operation CreateAppCookieStickinessPolicy for usage and error information.
  413. //
  414. // Returned Error Codes:
  415. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  416. // The specified load balancer does not exist.
  417. //
  418. // * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName"
  419. // A policy with the specified name already exists for this load balancer.
  420. //
  421. // * ErrCodeTooManyPoliciesException "TooManyPolicies"
  422. // The quota for the number of policies for this load balancer has been reached.
  423. //
  424. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  425. // The requested configuration change is not valid.
  426. //
  427. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateAppCookieStickinessPolicy
  428. func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) {
  429. req, out := c.CreateAppCookieStickinessPolicyRequest(input)
  430. return out, req.Send()
  431. }
  432. // CreateAppCookieStickinessPolicyWithContext is the same as CreateAppCookieStickinessPolicy with the addition of
  433. // the ability to pass a context and additional request options.
  434. //
  435. // See CreateAppCookieStickinessPolicy for details on how to use this API operation.
  436. //
  437. // The context must be non-nil and will be used for request cancellation. If
  438. // the context is nil a panic will occur. In the future the SDK may create
  439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  440. // for more information on using Contexts.
  441. func (c *ELB) CreateAppCookieStickinessPolicyWithContext(ctx aws.Context, input *CreateAppCookieStickinessPolicyInput, opts ...request.Option) (*CreateAppCookieStickinessPolicyOutput, error) {
  442. req, out := c.CreateAppCookieStickinessPolicyRequest(input)
  443. req.SetContext(ctx)
  444. req.ApplyOptions(opts...)
  445. return out, req.Send()
  446. }
  447. const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy"
  448. // CreateLBCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
  449. // client's request for the CreateLBCookieStickinessPolicy operation. The "output" return
  450. // value will be populated with the request's response once the request completes
  451. // successfully.
  452. //
  453. // Use "Send" method on the returned Request to send the API call to the service.
  454. // the "output" return value is not valid until after Send returns without error.
  455. //
  456. // See CreateLBCookieStickinessPolicy for more information on using the CreateLBCookieStickinessPolicy
  457. // API call, and error handling.
  458. //
  459. // This method is useful when you want to inject custom logic or configuration
  460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  461. //
  462. //
  463. // // Example sending a request using the CreateLBCookieStickinessPolicyRequest method.
  464. // req, resp := client.CreateLBCookieStickinessPolicyRequest(params)
  465. //
  466. // err := req.Send()
  467. // if err == nil { // resp is now filled
  468. // fmt.Println(resp)
  469. // }
  470. //
  471. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy
  472. func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) {
  473. op := &request.Operation{
  474. Name: opCreateLBCookieStickinessPolicy,
  475. HTTPMethod: "POST",
  476. HTTPPath: "/",
  477. }
  478. if input == nil {
  479. input = &CreateLBCookieStickinessPolicyInput{}
  480. }
  481. output = &CreateLBCookieStickinessPolicyOutput{}
  482. req = c.newRequest(op, input, output)
  483. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  484. return
  485. }
  486. // CreateLBCookieStickinessPolicy API operation for Elastic Load Balancing.
  487. //
  488. // Generates a stickiness policy with sticky session lifetimes controlled by
  489. // the lifetime of the browser (user-agent) or a specified expiration period.
  490. // This policy can be associated only with HTTP/HTTPS listeners.
  491. //
  492. // When a load balancer implements this policy, the load balancer uses a special
  493. // cookie to track the instance for each request. When the load balancer receives
  494. // a request, it first checks to see if this cookie is present in the request.
  495. // If so, the load balancer sends the request to the application server specified
  496. // in the cookie. If not, the load balancer sends the request to a server that
  497. // is chosen based on the existing load-balancing algorithm.
  498. //
  499. // A cookie is inserted into the response for binding subsequent requests from
  500. // the same user to that server. The validity of the cookie is based on the
  501. // cookie expiration time, which is specified in the policy configuration.
  502. //
  503. // For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration)
  504. // in the Classic Load Balancers Guide.
  505. //
  506. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  507. // with awserr.Error's Code and Message methods to get detailed information about
  508. // the error.
  509. //
  510. // See the AWS API reference guide for Elastic Load Balancing's
  511. // API operation CreateLBCookieStickinessPolicy for usage and error information.
  512. //
  513. // Returned Error Codes:
  514. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  515. // The specified load balancer does not exist.
  516. //
  517. // * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName"
  518. // A policy with the specified name already exists for this load balancer.
  519. //
  520. // * ErrCodeTooManyPoliciesException "TooManyPolicies"
  521. // The quota for the number of policies for this load balancer has been reached.
  522. //
  523. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  524. // The requested configuration change is not valid.
  525. //
  526. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLBCookieStickinessPolicy
  527. func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) {
  528. req, out := c.CreateLBCookieStickinessPolicyRequest(input)
  529. return out, req.Send()
  530. }
  531. // CreateLBCookieStickinessPolicyWithContext is the same as CreateLBCookieStickinessPolicy with the addition of
  532. // the ability to pass a context and additional request options.
  533. //
  534. // See CreateLBCookieStickinessPolicy for details on how to use this API operation.
  535. //
  536. // The context must be non-nil and will be used for request cancellation. If
  537. // the context is nil a panic will occur. In the future the SDK may create
  538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  539. // for more information on using Contexts.
  540. func (c *ELB) CreateLBCookieStickinessPolicyWithContext(ctx aws.Context, input *CreateLBCookieStickinessPolicyInput, opts ...request.Option) (*CreateLBCookieStickinessPolicyOutput, error) {
  541. req, out := c.CreateLBCookieStickinessPolicyRequest(input)
  542. req.SetContext(ctx)
  543. req.ApplyOptions(opts...)
  544. return out, req.Send()
  545. }
  546. const opCreateLoadBalancer = "CreateLoadBalancer"
  547. // CreateLoadBalancerRequest generates a "aws/request.Request" representing the
  548. // client's request for the CreateLoadBalancer operation. The "output" return
  549. // value will be populated with the request's response once the request completes
  550. // successfully.
  551. //
  552. // Use "Send" method on the returned Request to send the API call to the service.
  553. // the "output" return value is not valid until after Send returns without error.
  554. //
  555. // See CreateLoadBalancer for more information on using the CreateLoadBalancer
  556. // API call, and error handling.
  557. //
  558. // This method is useful when you want to inject custom logic or configuration
  559. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  560. //
  561. //
  562. // // Example sending a request using the CreateLoadBalancerRequest method.
  563. // req, resp := client.CreateLoadBalancerRequest(params)
  564. //
  565. // err := req.Send()
  566. // if err == nil { // resp is now filled
  567. // fmt.Println(resp)
  568. // }
  569. //
  570. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer
  571. func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
  572. op := &request.Operation{
  573. Name: opCreateLoadBalancer,
  574. HTTPMethod: "POST",
  575. HTTPPath: "/",
  576. }
  577. if input == nil {
  578. input = &CreateLoadBalancerInput{}
  579. }
  580. output = &CreateLoadBalancerOutput{}
  581. req = c.newRequest(op, input, output)
  582. return
  583. }
  584. // CreateLoadBalancer API operation for Elastic Load Balancing.
  585. //
  586. // Creates a Classic Load Balancer.
  587. //
  588. // You can add listeners, security groups, subnets, and tags when you create
  589. // your load balancer, or you can add them later using CreateLoadBalancerListeners,
  590. // ApplySecurityGroupsToLoadBalancer, AttachLoadBalancerToSubnets, and AddTags.
  591. //
  592. // To describe your current load balancers, see DescribeLoadBalancers. When
  593. // you are finished with a load balancer, you can delete it using DeleteLoadBalancer.
  594. //
  595. // You can create up to 20 load balancers per region per account. You can request
  596. // an increase for the number of load balancers for your account. For more information,
  597. // see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html)
  598. // in the Classic Load Balancers Guide.
  599. //
  600. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  601. // with awserr.Error's Code and Message methods to get detailed information about
  602. // the error.
  603. //
  604. // See the AWS API reference guide for Elastic Load Balancing's
  605. // API operation CreateLoadBalancer for usage and error information.
  606. //
  607. // Returned Error Codes:
  608. // * ErrCodeDuplicateAccessPointNameException "DuplicateLoadBalancerName"
  609. // The specified load balancer name already exists for this account.
  610. //
  611. // * ErrCodeTooManyAccessPointsException "TooManyLoadBalancers"
  612. // The quota for the number of load balancers has been reached.
  613. //
  614. // * ErrCodeCertificateNotFoundException "CertificateNotFound"
  615. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  616. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  617. // you recently uploaded the certificate to IAM, this error might indicate that
  618. // the certificate is not fully available yet.
  619. //
  620. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  621. // The requested configuration change is not valid.
  622. //
  623. // * ErrCodeSubnetNotFoundException "SubnetNotFound"
  624. // One or more of the specified subnets do not exist.
  625. //
  626. // * ErrCodeInvalidSubnetException "InvalidSubnet"
  627. // The specified VPC has no associated Internet gateway.
  628. //
  629. // * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
  630. // One or more of the specified security groups do not exist.
  631. //
  632. // * ErrCodeInvalidSchemeException "InvalidScheme"
  633. // The specified value for the schema is not valid. You can only specify a scheme
  634. // for load balancers in a VPC.
  635. //
  636. // * ErrCodeTooManyTagsException "TooManyTags"
  637. // The quota for the number of tags that can be assigned to a load balancer
  638. // has been reached.
  639. //
  640. // * ErrCodeDuplicateTagKeysException "DuplicateTagKeys"
  641. // A tag key was specified more than once.
  642. //
  643. // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
  644. // The specified protocol or signature version is not supported.
  645. //
  646. // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
  647. // This operation is not allowed.
  648. //
  649. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer
  650. func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
  651. req, out := c.CreateLoadBalancerRequest(input)
  652. return out, req.Send()
  653. }
  654. // CreateLoadBalancerWithContext is the same as CreateLoadBalancer with the addition of
  655. // the ability to pass a context and additional request options.
  656. //
  657. // See CreateLoadBalancer for details on how to use this API operation.
  658. //
  659. // The context must be non-nil and will be used for request cancellation. If
  660. // the context is nil a panic will occur. In the future the SDK may create
  661. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  662. // for more information on using Contexts.
  663. func (c *ELB) CreateLoadBalancerWithContext(ctx aws.Context, input *CreateLoadBalancerInput, opts ...request.Option) (*CreateLoadBalancerOutput, error) {
  664. req, out := c.CreateLoadBalancerRequest(input)
  665. req.SetContext(ctx)
  666. req.ApplyOptions(opts...)
  667. return out, req.Send()
  668. }
  669. const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners"
  670. // CreateLoadBalancerListenersRequest generates a "aws/request.Request" representing the
  671. // client's request for the CreateLoadBalancerListeners operation. The "output" return
  672. // value will be populated with the request's response once the request completes
  673. // successfully.
  674. //
  675. // Use "Send" method on the returned Request to send the API call to the service.
  676. // the "output" return value is not valid until after Send returns without error.
  677. //
  678. // See CreateLoadBalancerListeners for more information on using the CreateLoadBalancerListeners
  679. // API call, and error handling.
  680. //
  681. // This method is useful when you want to inject custom logic or configuration
  682. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  683. //
  684. //
  685. // // Example sending a request using the CreateLoadBalancerListenersRequest method.
  686. // req, resp := client.CreateLoadBalancerListenersRequest(params)
  687. //
  688. // err := req.Send()
  689. // if err == nil { // resp is now filled
  690. // fmt.Println(resp)
  691. // }
  692. //
  693. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners
  694. func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) {
  695. op := &request.Operation{
  696. Name: opCreateLoadBalancerListeners,
  697. HTTPMethod: "POST",
  698. HTTPPath: "/",
  699. }
  700. if input == nil {
  701. input = &CreateLoadBalancerListenersInput{}
  702. }
  703. output = &CreateLoadBalancerListenersOutput{}
  704. req = c.newRequest(op, input, output)
  705. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  706. return
  707. }
  708. // CreateLoadBalancerListeners API operation for Elastic Load Balancing.
  709. //
  710. // Creates one or more listeners for the specified load balancer. If a listener
  711. // with the specified port does not already exist, it is created; otherwise,
  712. // the properties of the new listener must match the properties of the existing
  713. // listener.
  714. //
  715. // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  716. // in the Classic Load Balancers Guide.
  717. //
  718. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  719. // with awserr.Error's Code and Message methods to get detailed information about
  720. // the error.
  721. //
  722. // See the AWS API reference guide for Elastic Load Balancing's
  723. // API operation CreateLoadBalancerListeners for usage and error information.
  724. //
  725. // Returned Error Codes:
  726. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  727. // The specified load balancer does not exist.
  728. //
  729. // * ErrCodeDuplicateListenerException "DuplicateListener"
  730. // A listener already exists for the specified load balancer name and port,
  731. // but with a different instance port, protocol, or SSL certificate.
  732. //
  733. // * ErrCodeCertificateNotFoundException "CertificateNotFound"
  734. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  735. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  736. // you recently uploaded the certificate to IAM, this error might indicate that
  737. // the certificate is not fully available yet.
  738. //
  739. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  740. // The requested configuration change is not valid.
  741. //
  742. // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
  743. // The specified protocol or signature version is not supported.
  744. //
  745. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners
  746. func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) {
  747. req, out := c.CreateLoadBalancerListenersRequest(input)
  748. return out, req.Send()
  749. }
  750. // CreateLoadBalancerListenersWithContext is the same as CreateLoadBalancerListeners with the addition of
  751. // the ability to pass a context and additional request options.
  752. //
  753. // See CreateLoadBalancerListeners for details on how to use this API operation.
  754. //
  755. // The context must be non-nil and will be used for request cancellation. If
  756. // the context is nil a panic will occur. In the future the SDK may create
  757. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  758. // for more information on using Contexts.
  759. func (c *ELB) CreateLoadBalancerListenersWithContext(ctx aws.Context, input *CreateLoadBalancerListenersInput, opts ...request.Option) (*CreateLoadBalancerListenersOutput, error) {
  760. req, out := c.CreateLoadBalancerListenersRequest(input)
  761. req.SetContext(ctx)
  762. req.ApplyOptions(opts...)
  763. return out, req.Send()
  764. }
  765. const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy"
  766. // CreateLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
  767. // client's request for the CreateLoadBalancerPolicy operation. The "output" return
  768. // value will be populated with the request's response once the request completes
  769. // successfully.
  770. //
  771. // Use "Send" method on the returned Request to send the API call to the service.
  772. // the "output" return value is not valid until after Send returns without error.
  773. //
  774. // See CreateLoadBalancerPolicy for more information on using the CreateLoadBalancerPolicy
  775. // API call, and error handling.
  776. //
  777. // This method is useful when you want to inject custom logic or configuration
  778. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  779. //
  780. //
  781. // // Example sending a request using the CreateLoadBalancerPolicyRequest method.
  782. // req, resp := client.CreateLoadBalancerPolicyRequest(params)
  783. //
  784. // err := req.Send()
  785. // if err == nil { // resp is now filled
  786. // fmt.Println(resp)
  787. // }
  788. //
  789. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy
  790. func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) {
  791. op := &request.Operation{
  792. Name: opCreateLoadBalancerPolicy,
  793. HTTPMethod: "POST",
  794. HTTPPath: "/",
  795. }
  796. if input == nil {
  797. input = &CreateLoadBalancerPolicyInput{}
  798. }
  799. output = &CreateLoadBalancerPolicyOutput{}
  800. req = c.newRequest(op, input, output)
  801. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  802. return
  803. }
  804. // CreateLoadBalancerPolicy API operation for Elastic Load Balancing.
  805. //
  806. // Creates a policy with the specified attributes for the specified load balancer.
  807. //
  808. // Policies are settings that are saved for your load balancer and that can
  809. // be applied to the listener or the application server, depending on the policy
  810. // type.
  811. //
  812. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  813. // with awserr.Error's Code and Message methods to get detailed information about
  814. // the error.
  815. //
  816. // See the AWS API reference guide for Elastic Load Balancing's
  817. // API operation CreateLoadBalancerPolicy for usage and error information.
  818. //
  819. // Returned Error Codes:
  820. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  821. // The specified load balancer does not exist.
  822. //
  823. // * ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound"
  824. // One or more of the specified policy types do not exist.
  825. //
  826. // * ErrCodeDuplicatePolicyNameException "DuplicatePolicyName"
  827. // A policy with the specified name already exists for this load balancer.
  828. //
  829. // * ErrCodeTooManyPoliciesException "TooManyPolicies"
  830. // The quota for the number of policies for this load balancer has been reached.
  831. //
  832. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  833. // The requested configuration change is not valid.
  834. //
  835. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerPolicy
  836. func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) {
  837. req, out := c.CreateLoadBalancerPolicyRequest(input)
  838. return out, req.Send()
  839. }
  840. // CreateLoadBalancerPolicyWithContext is the same as CreateLoadBalancerPolicy with the addition of
  841. // the ability to pass a context and additional request options.
  842. //
  843. // See CreateLoadBalancerPolicy for details on how to use this API operation.
  844. //
  845. // The context must be non-nil and will be used for request cancellation. If
  846. // the context is nil a panic will occur. In the future the SDK may create
  847. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  848. // for more information on using Contexts.
  849. func (c *ELB) CreateLoadBalancerPolicyWithContext(ctx aws.Context, input *CreateLoadBalancerPolicyInput, opts ...request.Option) (*CreateLoadBalancerPolicyOutput, error) {
  850. req, out := c.CreateLoadBalancerPolicyRequest(input)
  851. req.SetContext(ctx)
  852. req.ApplyOptions(opts...)
  853. return out, req.Send()
  854. }
  855. const opDeleteLoadBalancer = "DeleteLoadBalancer"
  856. // DeleteLoadBalancerRequest generates a "aws/request.Request" representing the
  857. // client's request for the DeleteLoadBalancer operation. The "output" return
  858. // value will be populated with the request's response once the request completes
  859. // successfully.
  860. //
  861. // Use "Send" method on the returned Request to send the API call to the service.
  862. // the "output" return value is not valid until after Send returns without error.
  863. //
  864. // See DeleteLoadBalancer for more information on using the DeleteLoadBalancer
  865. // API call, and error handling.
  866. //
  867. // This method is useful when you want to inject custom logic or configuration
  868. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  869. //
  870. //
  871. // // Example sending a request using the DeleteLoadBalancerRequest method.
  872. // req, resp := client.DeleteLoadBalancerRequest(params)
  873. //
  874. // err := req.Send()
  875. // if err == nil { // resp is now filled
  876. // fmt.Println(resp)
  877. // }
  878. //
  879. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancer
  880. func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
  881. op := &request.Operation{
  882. Name: opDeleteLoadBalancer,
  883. HTTPMethod: "POST",
  884. HTTPPath: "/",
  885. }
  886. if input == nil {
  887. input = &DeleteLoadBalancerInput{}
  888. }
  889. output = &DeleteLoadBalancerOutput{}
  890. req = c.newRequest(op, input, output)
  891. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  892. return
  893. }
  894. // DeleteLoadBalancer API operation for Elastic Load Balancing.
  895. //
  896. // Deletes the specified load balancer.
  897. //
  898. // If you are attempting to recreate a load balancer, you must reconfigure all
  899. // settings. The DNS name associated with a deleted load balancer are no longer
  900. // usable. The name and associated DNS record of the deleted load balancer no
  901. // longer exist and traffic sent to any of its IP addresses is no longer delivered
  902. // to your instances.
  903. //
  904. // If the load balancer does not exist or has already been deleted, the call
  905. // to DeleteLoadBalancer still succeeds.
  906. //
  907. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  908. // with awserr.Error's Code and Message methods to get detailed information about
  909. // the error.
  910. //
  911. // See the AWS API reference guide for Elastic Load Balancing's
  912. // API operation DeleteLoadBalancer for usage and error information.
  913. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancer
  914. func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
  915. req, out := c.DeleteLoadBalancerRequest(input)
  916. return out, req.Send()
  917. }
  918. // DeleteLoadBalancerWithContext is the same as DeleteLoadBalancer with the addition of
  919. // the ability to pass a context and additional request options.
  920. //
  921. // See DeleteLoadBalancer for details on how to use this API operation.
  922. //
  923. // The context must be non-nil and will be used for request cancellation. If
  924. // the context is nil a panic will occur. In the future the SDK may create
  925. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  926. // for more information on using Contexts.
  927. func (c *ELB) DeleteLoadBalancerWithContext(ctx aws.Context, input *DeleteLoadBalancerInput, opts ...request.Option) (*DeleteLoadBalancerOutput, error) {
  928. req, out := c.DeleteLoadBalancerRequest(input)
  929. req.SetContext(ctx)
  930. req.ApplyOptions(opts...)
  931. return out, req.Send()
  932. }
  933. const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners"
  934. // DeleteLoadBalancerListenersRequest generates a "aws/request.Request" representing the
  935. // client's request for the DeleteLoadBalancerListeners operation. The "output" return
  936. // value will be populated with the request's response once the request completes
  937. // successfully.
  938. //
  939. // Use "Send" method on the returned Request to send the API call to the service.
  940. // the "output" return value is not valid until after Send returns without error.
  941. //
  942. // See DeleteLoadBalancerListeners for more information on using the DeleteLoadBalancerListeners
  943. // API call, and error handling.
  944. //
  945. // This method is useful when you want to inject custom logic or configuration
  946. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  947. //
  948. //
  949. // // Example sending a request using the DeleteLoadBalancerListenersRequest method.
  950. // req, resp := client.DeleteLoadBalancerListenersRequest(params)
  951. //
  952. // err := req.Send()
  953. // if err == nil { // resp is now filled
  954. // fmt.Println(resp)
  955. // }
  956. //
  957. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners
  958. func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) {
  959. op := &request.Operation{
  960. Name: opDeleteLoadBalancerListeners,
  961. HTTPMethod: "POST",
  962. HTTPPath: "/",
  963. }
  964. if input == nil {
  965. input = &DeleteLoadBalancerListenersInput{}
  966. }
  967. output = &DeleteLoadBalancerListenersOutput{}
  968. req = c.newRequest(op, input, output)
  969. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  970. return
  971. }
  972. // DeleteLoadBalancerListeners API operation for Elastic Load Balancing.
  973. //
  974. // Deletes the specified listeners from the specified load balancer.
  975. //
  976. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  977. // with awserr.Error's Code and Message methods to get detailed information about
  978. // the error.
  979. //
  980. // See the AWS API reference guide for Elastic Load Balancing's
  981. // API operation DeleteLoadBalancerListeners for usage and error information.
  982. //
  983. // Returned Error Codes:
  984. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  985. // The specified load balancer does not exist.
  986. //
  987. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerListeners
  988. func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) {
  989. req, out := c.DeleteLoadBalancerListenersRequest(input)
  990. return out, req.Send()
  991. }
  992. // DeleteLoadBalancerListenersWithContext is the same as DeleteLoadBalancerListeners with the addition of
  993. // the ability to pass a context and additional request options.
  994. //
  995. // See DeleteLoadBalancerListeners for details on how to use this API operation.
  996. //
  997. // The context must be non-nil and will be used for request cancellation. If
  998. // the context is nil a panic will occur. In the future the SDK may create
  999. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1000. // for more information on using Contexts.
  1001. func (c *ELB) DeleteLoadBalancerListenersWithContext(ctx aws.Context, input *DeleteLoadBalancerListenersInput, opts ...request.Option) (*DeleteLoadBalancerListenersOutput, error) {
  1002. req, out := c.DeleteLoadBalancerListenersRequest(input)
  1003. req.SetContext(ctx)
  1004. req.ApplyOptions(opts...)
  1005. return out, req.Send()
  1006. }
  1007. const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy"
  1008. // DeleteLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
  1009. // client's request for the DeleteLoadBalancerPolicy operation. The "output" return
  1010. // value will be populated with the request's response once the request completes
  1011. // successfully.
  1012. //
  1013. // Use "Send" method on the returned Request to send the API call to the service.
  1014. // the "output" return value is not valid until after Send returns without error.
  1015. //
  1016. // See DeleteLoadBalancerPolicy for more information on using the DeleteLoadBalancerPolicy
  1017. // API call, and error handling.
  1018. //
  1019. // This method is useful when you want to inject custom logic or configuration
  1020. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1021. //
  1022. //
  1023. // // Example sending a request using the DeleteLoadBalancerPolicyRequest method.
  1024. // req, resp := client.DeleteLoadBalancerPolicyRequest(params)
  1025. //
  1026. // err := req.Send()
  1027. // if err == nil { // resp is now filled
  1028. // fmt.Println(resp)
  1029. // }
  1030. //
  1031. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy
  1032. func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) {
  1033. op := &request.Operation{
  1034. Name: opDeleteLoadBalancerPolicy,
  1035. HTTPMethod: "POST",
  1036. HTTPPath: "/",
  1037. }
  1038. if input == nil {
  1039. input = &DeleteLoadBalancerPolicyInput{}
  1040. }
  1041. output = &DeleteLoadBalancerPolicyOutput{}
  1042. req = c.newRequest(op, input, output)
  1043. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1044. return
  1045. }
  1046. // DeleteLoadBalancerPolicy API operation for Elastic Load Balancing.
  1047. //
  1048. // Deletes the specified policy from the specified load balancer. This policy
  1049. // must not be enabled for any listeners.
  1050. //
  1051. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1052. // with awserr.Error's Code and Message methods to get detailed information about
  1053. // the error.
  1054. //
  1055. // See the AWS API reference guide for Elastic Load Balancing's
  1056. // API operation DeleteLoadBalancerPolicy for usage and error information.
  1057. //
  1058. // Returned Error Codes:
  1059. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1060. // The specified load balancer does not exist.
  1061. //
  1062. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  1063. // The requested configuration change is not valid.
  1064. //
  1065. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeleteLoadBalancerPolicy
  1066. func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) {
  1067. req, out := c.DeleteLoadBalancerPolicyRequest(input)
  1068. return out, req.Send()
  1069. }
  1070. // DeleteLoadBalancerPolicyWithContext is the same as DeleteLoadBalancerPolicy with the addition of
  1071. // the ability to pass a context and additional request options.
  1072. //
  1073. // See DeleteLoadBalancerPolicy for details on how to use this API operation.
  1074. //
  1075. // The context must be non-nil and will be used for request cancellation. If
  1076. // the context is nil a panic will occur. In the future the SDK may create
  1077. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1078. // for more information on using Contexts.
  1079. func (c *ELB) DeleteLoadBalancerPolicyWithContext(ctx aws.Context, input *DeleteLoadBalancerPolicyInput, opts ...request.Option) (*DeleteLoadBalancerPolicyOutput, error) {
  1080. req, out := c.DeleteLoadBalancerPolicyRequest(input)
  1081. req.SetContext(ctx)
  1082. req.ApplyOptions(opts...)
  1083. return out, req.Send()
  1084. }
  1085. const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalancer"
  1086. // DeregisterInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the
  1087. // client's request for the DeregisterInstancesFromLoadBalancer operation. The "output" return
  1088. // value will be populated with the request's response once the request completes
  1089. // successfully.
  1090. //
  1091. // Use "Send" method on the returned Request to send the API call to the service.
  1092. // the "output" return value is not valid until after Send returns without error.
  1093. //
  1094. // See DeregisterInstancesFromLoadBalancer for more information on using the DeregisterInstancesFromLoadBalancer
  1095. // API call, and error handling.
  1096. //
  1097. // This method is useful when you want to inject custom logic or configuration
  1098. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1099. //
  1100. //
  1101. // // Example sending a request using the DeregisterInstancesFromLoadBalancerRequest method.
  1102. // req, resp := client.DeregisterInstancesFromLoadBalancerRequest(params)
  1103. //
  1104. // err := req.Send()
  1105. // if err == nil { // resp is now filled
  1106. // fmt.Println(resp)
  1107. // }
  1108. //
  1109. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer
  1110. func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) {
  1111. op := &request.Operation{
  1112. Name: opDeregisterInstancesFromLoadBalancer,
  1113. HTTPMethod: "POST",
  1114. HTTPPath: "/",
  1115. }
  1116. if input == nil {
  1117. input = &DeregisterInstancesFromLoadBalancerInput{}
  1118. }
  1119. output = &DeregisterInstancesFromLoadBalancerOutput{}
  1120. req = c.newRequest(op, input, output)
  1121. return
  1122. }
  1123. // DeregisterInstancesFromLoadBalancer API operation for Elastic Load Balancing.
  1124. //
  1125. // Deregisters the specified instances from the specified load balancer. After
  1126. // the instance is deregistered, it no longer receives traffic from the load
  1127. // balancer.
  1128. //
  1129. // You can use DescribeLoadBalancers to verify that the instance is deregistered
  1130. // from the load balancer.
  1131. //
  1132. // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
  1133. // in the Classic Load Balancers Guide.
  1134. //
  1135. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1136. // with awserr.Error's Code and Message methods to get detailed information about
  1137. // the error.
  1138. //
  1139. // See the AWS API reference guide for Elastic Load Balancing's
  1140. // API operation DeregisterInstancesFromLoadBalancer for usage and error information.
  1141. //
  1142. // Returned Error Codes:
  1143. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1144. // The specified load balancer does not exist.
  1145. //
  1146. // * ErrCodeInvalidEndPointException "InvalidInstance"
  1147. // The specified endpoint is not valid.
  1148. //
  1149. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DeregisterInstancesFromLoadBalancer
  1150. func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) {
  1151. req, out := c.DeregisterInstancesFromLoadBalancerRequest(input)
  1152. return out, req.Send()
  1153. }
  1154. // DeregisterInstancesFromLoadBalancerWithContext is the same as DeregisterInstancesFromLoadBalancer with the addition of
  1155. // the ability to pass a context and additional request options.
  1156. //
  1157. // See DeregisterInstancesFromLoadBalancer for details on how to use this API operation.
  1158. //
  1159. // The context must be non-nil and will be used for request cancellation. If
  1160. // the context is nil a panic will occur. In the future the SDK may create
  1161. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1162. // for more information on using Contexts.
  1163. func (c *ELB) DeregisterInstancesFromLoadBalancerWithContext(ctx aws.Context, input *DeregisterInstancesFromLoadBalancerInput, opts ...request.Option) (*DeregisterInstancesFromLoadBalancerOutput, error) {
  1164. req, out := c.DeregisterInstancesFromLoadBalancerRequest(input)
  1165. req.SetContext(ctx)
  1166. req.ApplyOptions(opts...)
  1167. return out, req.Send()
  1168. }
  1169. const opDescribeAccountLimits = "DescribeAccountLimits"
  1170. // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the
  1171. // client's request for the DescribeAccountLimits operation. The "output" return
  1172. // value will be populated with the request's response once the request completes
  1173. // successfully.
  1174. //
  1175. // Use "Send" method on the returned Request to send the API call to the service.
  1176. // the "output" return value is not valid until after Send returns without error.
  1177. //
  1178. // See DescribeAccountLimits for more information on using the DescribeAccountLimits
  1179. // API call, and error handling.
  1180. //
  1181. // This method is useful when you want to inject custom logic or configuration
  1182. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1183. //
  1184. //
  1185. // // Example sending a request using the DescribeAccountLimitsRequest method.
  1186. // req, resp := client.DescribeAccountLimitsRequest(params)
  1187. //
  1188. // err := req.Send()
  1189. // if err == nil { // resp is now filled
  1190. // fmt.Println(resp)
  1191. // }
  1192. //
  1193. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimits
  1194. func (c *ELB) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
  1195. op := &request.Operation{
  1196. Name: opDescribeAccountLimits,
  1197. HTTPMethod: "POST",
  1198. HTTPPath: "/",
  1199. }
  1200. if input == nil {
  1201. input = &DescribeAccountLimitsInput{}
  1202. }
  1203. output = &DescribeAccountLimitsOutput{}
  1204. req = c.newRequest(op, input, output)
  1205. return
  1206. }
  1207. // DescribeAccountLimits API operation for Elastic Load Balancing.
  1208. //
  1209. // Describes the current Elastic Load Balancing resource limits for your AWS
  1210. // account.
  1211. //
  1212. // For more information, see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html)
  1213. // in the Classic Load Balancers Guide.
  1214. //
  1215. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1216. // with awserr.Error's Code and Message methods to get detailed information about
  1217. // the error.
  1218. //
  1219. // See the AWS API reference guide for Elastic Load Balancing's
  1220. // API operation DescribeAccountLimits for usage and error information.
  1221. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimits
  1222. func (c *ELB) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
  1223. req, out := c.DescribeAccountLimitsRequest(input)
  1224. return out, req.Send()
  1225. }
  1226. // DescribeAccountLimitsWithContext is the same as DescribeAccountLimits with the addition of
  1227. // the ability to pass a context and additional request options.
  1228. //
  1229. // See DescribeAccountLimits for details on how to use this API operation.
  1230. //
  1231. // The context must be non-nil and will be used for request cancellation. If
  1232. // the context is nil a panic will occur. In the future the SDK may create
  1233. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1234. // for more information on using Contexts.
  1235. func (c *ELB) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error) {
  1236. req, out := c.DescribeAccountLimitsRequest(input)
  1237. req.SetContext(ctx)
  1238. req.ApplyOptions(opts...)
  1239. return out, req.Send()
  1240. }
  1241. const opDescribeInstanceHealth = "DescribeInstanceHealth"
  1242. // DescribeInstanceHealthRequest generates a "aws/request.Request" representing the
  1243. // client's request for the DescribeInstanceHealth operation. The "output" return
  1244. // value will be populated with the request's response once the request completes
  1245. // successfully.
  1246. //
  1247. // Use "Send" method on the returned Request to send the API call to the service.
  1248. // the "output" return value is not valid until after Send returns without error.
  1249. //
  1250. // See DescribeInstanceHealth for more information on using the DescribeInstanceHealth
  1251. // API call, and error handling.
  1252. //
  1253. // This method is useful when you want to inject custom logic or configuration
  1254. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1255. //
  1256. //
  1257. // // Example sending a request using the DescribeInstanceHealthRequest method.
  1258. // req, resp := client.DescribeInstanceHealthRequest(params)
  1259. //
  1260. // err := req.Send()
  1261. // if err == nil { // resp is now filled
  1262. // fmt.Println(resp)
  1263. // }
  1264. //
  1265. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth
  1266. func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) {
  1267. op := &request.Operation{
  1268. Name: opDescribeInstanceHealth,
  1269. HTTPMethod: "POST",
  1270. HTTPPath: "/",
  1271. }
  1272. if input == nil {
  1273. input = &DescribeInstanceHealthInput{}
  1274. }
  1275. output = &DescribeInstanceHealthOutput{}
  1276. req = c.newRequest(op, input, output)
  1277. return
  1278. }
  1279. // DescribeInstanceHealth API operation for Elastic Load Balancing.
  1280. //
  1281. // Describes the state of the specified instances with respect to the specified
  1282. // load balancer. If no instances are specified, the call describes the state
  1283. // of all instances that are currently registered with the load balancer. If
  1284. // instances are specified, their state is returned even if they are no longer
  1285. // registered with the load balancer. The state of terminated instances is not
  1286. // returned.
  1287. //
  1288. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1289. // with awserr.Error's Code and Message methods to get detailed information about
  1290. // the error.
  1291. //
  1292. // See the AWS API reference guide for Elastic Load Balancing's
  1293. // API operation DescribeInstanceHealth for usage and error information.
  1294. //
  1295. // Returned Error Codes:
  1296. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1297. // The specified load balancer does not exist.
  1298. //
  1299. // * ErrCodeInvalidEndPointException "InvalidInstance"
  1300. // The specified endpoint is not valid.
  1301. //
  1302. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeInstanceHealth
  1303. func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) {
  1304. req, out := c.DescribeInstanceHealthRequest(input)
  1305. return out, req.Send()
  1306. }
  1307. // DescribeInstanceHealthWithContext is the same as DescribeInstanceHealth with the addition of
  1308. // the ability to pass a context and additional request options.
  1309. //
  1310. // See DescribeInstanceHealth for details on how to use this API operation.
  1311. //
  1312. // The context must be non-nil and will be used for request cancellation. If
  1313. // the context is nil a panic will occur. In the future the SDK may create
  1314. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1315. // for more information on using Contexts.
  1316. func (c *ELB) DescribeInstanceHealthWithContext(ctx aws.Context, input *DescribeInstanceHealthInput, opts ...request.Option) (*DescribeInstanceHealthOutput, error) {
  1317. req, out := c.DescribeInstanceHealthRequest(input)
  1318. req.SetContext(ctx)
  1319. req.ApplyOptions(opts...)
  1320. return out, req.Send()
  1321. }
  1322. const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
  1323. // DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
  1324. // client's request for the DescribeLoadBalancerAttributes operation. The "output" return
  1325. // value will be populated with the request's response once the request completes
  1326. // successfully.
  1327. //
  1328. // Use "Send" method on the returned Request to send the API call to the service.
  1329. // the "output" return value is not valid until after Send returns without error.
  1330. //
  1331. // See DescribeLoadBalancerAttributes for more information on using the DescribeLoadBalancerAttributes
  1332. // API call, and error handling.
  1333. //
  1334. // This method is useful when you want to inject custom logic or configuration
  1335. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1336. //
  1337. //
  1338. // // Example sending a request using the DescribeLoadBalancerAttributesRequest method.
  1339. // req, resp := client.DescribeLoadBalancerAttributesRequest(params)
  1340. //
  1341. // err := req.Send()
  1342. // if err == nil { // resp is now filled
  1343. // fmt.Println(resp)
  1344. // }
  1345. //
  1346. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes
  1347. func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
  1348. op := &request.Operation{
  1349. Name: opDescribeLoadBalancerAttributes,
  1350. HTTPMethod: "POST",
  1351. HTTPPath: "/",
  1352. }
  1353. if input == nil {
  1354. input = &DescribeLoadBalancerAttributesInput{}
  1355. }
  1356. output = &DescribeLoadBalancerAttributesOutput{}
  1357. req = c.newRequest(op, input, output)
  1358. return
  1359. }
  1360. // DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.
  1361. //
  1362. // Describes the attributes for the specified load balancer.
  1363. //
  1364. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1365. // with awserr.Error's Code and Message methods to get detailed information about
  1366. // the error.
  1367. //
  1368. // See the AWS API reference guide for Elastic Load Balancing's
  1369. // API operation DescribeLoadBalancerAttributes for usage and error information.
  1370. //
  1371. // Returned Error Codes:
  1372. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1373. // The specified load balancer does not exist.
  1374. //
  1375. // * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound"
  1376. // The specified load balancer attribute does not exist.
  1377. //
  1378. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerAttributes
  1379. func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
  1380. req, out := c.DescribeLoadBalancerAttributesRequest(input)
  1381. return out, req.Send()
  1382. }
  1383. // DescribeLoadBalancerAttributesWithContext is the same as DescribeLoadBalancerAttributes with the addition of
  1384. // the ability to pass a context and additional request options.
  1385. //
  1386. // See DescribeLoadBalancerAttributes for details on how to use this API operation.
  1387. //
  1388. // The context must be non-nil and will be used for request cancellation. If
  1389. // the context is nil a panic will occur. In the future the SDK may create
  1390. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1391. // for more information on using Contexts.
  1392. func (c *ELB) DescribeLoadBalancerAttributesWithContext(ctx aws.Context, input *DescribeLoadBalancerAttributesInput, opts ...request.Option) (*DescribeLoadBalancerAttributesOutput, error) {
  1393. req, out := c.DescribeLoadBalancerAttributesRequest(input)
  1394. req.SetContext(ctx)
  1395. req.ApplyOptions(opts...)
  1396. return out, req.Send()
  1397. }
  1398. const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies"
  1399. // DescribeLoadBalancerPoliciesRequest generates a "aws/request.Request" representing the
  1400. // client's request for the DescribeLoadBalancerPolicies operation. The "output" return
  1401. // value will be populated with the request's response once the request completes
  1402. // successfully.
  1403. //
  1404. // Use "Send" method on the returned Request to send the API call to the service.
  1405. // the "output" return value is not valid until after Send returns without error.
  1406. //
  1407. // See DescribeLoadBalancerPolicies for more information on using the DescribeLoadBalancerPolicies
  1408. // API call, and error handling.
  1409. //
  1410. // This method is useful when you want to inject custom logic or configuration
  1411. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1412. //
  1413. //
  1414. // // Example sending a request using the DescribeLoadBalancerPoliciesRequest method.
  1415. // req, resp := client.DescribeLoadBalancerPoliciesRequest(params)
  1416. //
  1417. // err := req.Send()
  1418. // if err == nil { // resp is now filled
  1419. // fmt.Println(resp)
  1420. // }
  1421. //
  1422. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies
  1423. func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) {
  1424. op := &request.Operation{
  1425. Name: opDescribeLoadBalancerPolicies,
  1426. HTTPMethod: "POST",
  1427. HTTPPath: "/",
  1428. }
  1429. if input == nil {
  1430. input = &DescribeLoadBalancerPoliciesInput{}
  1431. }
  1432. output = &DescribeLoadBalancerPoliciesOutput{}
  1433. req = c.newRequest(op, input, output)
  1434. return
  1435. }
  1436. // DescribeLoadBalancerPolicies API operation for Elastic Load Balancing.
  1437. //
  1438. // Describes the specified policies.
  1439. //
  1440. // If you specify a load balancer name, the action returns the descriptions
  1441. // of all policies created for the load balancer. If you specify a policy name
  1442. // associated with your load balancer, the action returns the description of
  1443. // that policy. If you don't specify a load balancer name, the action returns
  1444. // descriptions of the specified sample policies, or descriptions of all sample
  1445. // policies. The names of the sample policies have the ELBSample- prefix.
  1446. //
  1447. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1448. // with awserr.Error's Code and Message methods to get detailed information about
  1449. // the error.
  1450. //
  1451. // See the AWS API reference guide for Elastic Load Balancing's
  1452. // API operation DescribeLoadBalancerPolicies for usage and error information.
  1453. //
  1454. // Returned Error Codes:
  1455. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1456. // The specified load balancer does not exist.
  1457. //
  1458. // * ErrCodePolicyNotFoundException "PolicyNotFound"
  1459. // One or more of the specified policies do not exist.
  1460. //
  1461. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicies
  1462. func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) {
  1463. req, out := c.DescribeLoadBalancerPoliciesRequest(input)
  1464. return out, req.Send()
  1465. }
  1466. // DescribeLoadBalancerPoliciesWithContext is the same as DescribeLoadBalancerPolicies with the addition of
  1467. // the ability to pass a context and additional request options.
  1468. //
  1469. // See DescribeLoadBalancerPolicies for details on how to use this API operation.
  1470. //
  1471. // The context must be non-nil and will be used for request cancellation. If
  1472. // the context is nil a panic will occur. In the future the SDK may create
  1473. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1474. // for more information on using Contexts.
  1475. func (c *ELB) DescribeLoadBalancerPoliciesWithContext(ctx aws.Context, input *DescribeLoadBalancerPoliciesInput, opts ...request.Option) (*DescribeLoadBalancerPoliciesOutput, error) {
  1476. req, out := c.DescribeLoadBalancerPoliciesRequest(input)
  1477. req.SetContext(ctx)
  1478. req.ApplyOptions(opts...)
  1479. return out, req.Send()
  1480. }
  1481. const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes"
  1482. // DescribeLoadBalancerPolicyTypesRequest generates a "aws/request.Request" representing the
  1483. // client's request for the DescribeLoadBalancerPolicyTypes operation. The "output" return
  1484. // value will be populated with the request's response once the request completes
  1485. // successfully.
  1486. //
  1487. // Use "Send" method on the returned Request to send the API call to the service.
  1488. // the "output" return value is not valid until after Send returns without error.
  1489. //
  1490. // See DescribeLoadBalancerPolicyTypes for more information on using the DescribeLoadBalancerPolicyTypes
  1491. // API call, and error handling.
  1492. //
  1493. // This method is useful when you want to inject custom logic or configuration
  1494. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1495. //
  1496. //
  1497. // // Example sending a request using the DescribeLoadBalancerPolicyTypesRequest method.
  1498. // req, resp := client.DescribeLoadBalancerPolicyTypesRequest(params)
  1499. //
  1500. // err := req.Send()
  1501. // if err == nil { // resp is now filled
  1502. // fmt.Println(resp)
  1503. // }
  1504. //
  1505. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes
  1506. func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) {
  1507. op := &request.Operation{
  1508. Name: opDescribeLoadBalancerPolicyTypes,
  1509. HTTPMethod: "POST",
  1510. HTTPPath: "/",
  1511. }
  1512. if input == nil {
  1513. input = &DescribeLoadBalancerPolicyTypesInput{}
  1514. }
  1515. output = &DescribeLoadBalancerPolicyTypesOutput{}
  1516. req = c.newRequest(op, input, output)
  1517. return
  1518. }
  1519. // DescribeLoadBalancerPolicyTypes API operation for Elastic Load Balancing.
  1520. //
  1521. // Describes the specified load balancer policy types or all load balancer policy
  1522. // types.
  1523. //
  1524. // The description of each type indicates how it can be used. For example, some
  1525. // policies can be used only with layer 7 listeners, some policies can be used
  1526. // only with layer 4 listeners, and some policies can be used only with your
  1527. // EC2 instances.
  1528. //
  1529. // You can use CreateLoadBalancerPolicy to create a policy configuration for
  1530. // any of these policy types. Then, depending on the policy type, use either
  1531. // SetLoadBalancerPoliciesOfListener or SetLoadBalancerPoliciesForBackendServer
  1532. // to set the policy.
  1533. //
  1534. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1535. // with awserr.Error's Code and Message methods to get detailed information about
  1536. // the error.
  1537. //
  1538. // See the AWS API reference guide for Elastic Load Balancing's
  1539. // API operation DescribeLoadBalancerPolicyTypes for usage and error information.
  1540. //
  1541. // Returned Error Codes:
  1542. // * ErrCodePolicyTypeNotFoundException "PolicyTypeNotFound"
  1543. // One or more of the specified policy types do not exist.
  1544. //
  1545. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancerPolicyTypes
  1546. func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) {
  1547. req, out := c.DescribeLoadBalancerPolicyTypesRequest(input)
  1548. return out, req.Send()
  1549. }
  1550. // DescribeLoadBalancerPolicyTypesWithContext is the same as DescribeLoadBalancerPolicyTypes with the addition of
  1551. // the ability to pass a context and additional request options.
  1552. //
  1553. // See DescribeLoadBalancerPolicyTypes for details on how to use this API operation.
  1554. //
  1555. // The context must be non-nil and will be used for request cancellation. If
  1556. // the context is nil a panic will occur. In the future the SDK may create
  1557. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1558. // for more information on using Contexts.
  1559. func (c *ELB) DescribeLoadBalancerPolicyTypesWithContext(ctx aws.Context, input *DescribeLoadBalancerPolicyTypesInput, opts ...request.Option) (*DescribeLoadBalancerPolicyTypesOutput, error) {
  1560. req, out := c.DescribeLoadBalancerPolicyTypesRequest(input)
  1561. req.SetContext(ctx)
  1562. req.ApplyOptions(opts...)
  1563. return out, req.Send()
  1564. }
  1565. const opDescribeLoadBalancers = "DescribeLoadBalancers"
  1566. // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
  1567. // client's request for the DescribeLoadBalancers operation. The "output" return
  1568. // value will be populated with the request's response once the request completes
  1569. // successfully.
  1570. //
  1571. // Use "Send" method on the returned Request to send the API call to the service.
  1572. // the "output" return value is not valid until after Send returns without error.
  1573. //
  1574. // See DescribeLoadBalancers for more information on using the DescribeLoadBalancers
  1575. // API call, and error handling.
  1576. //
  1577. // This method is useful when you want to inject custom logic or configuration
  1578. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1579. //
  1580. //
  1581. // // Example sending a request using the DescribeLoadBalancersRequest method.
  1582. // req, resp := client.DescribeLoadBalancersRequest(params)
  1583. //
  1584. // err := req.Send()
  1585. // if err == nil { // resp is now filled
  1586. // fmt.Println(resp)
  1587. // }
  1588. //
  1589. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers
  1590. func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
  1591. op := &request.Operation{
  1592. Name: opDescribeLoadBalancers,
  1593. HTTPMethod: "POST",
  1594. HTTPPath: "/",
  1595. Paginator: &request.Paginator{
  1596. InputTokens: []string{"Marker"},
  1597. OutputTokens: []string{"NextMarker"},
  1598. LimitToken: "",
  1599. TruncationToken: "",
  1600. },
  1601. }
  1602. if input == nil {
  1603. input = &DescribeLoadBalancersInput{}
  1604. }
  1605. output = &DescribeLoadBalancersOutput{}
  1606. req = c.newRequest(op, input, output)
  1607. return
  1608. }
  1609. // DescribeLoadBalancers API operation for Elastic Load Balancing.
  1610. //
  1611. // Describes the specified the load balancers. If no load balancers are specified,
  1612. // the call describes all of your load balancers.
  1613. //
  1614. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1615. // with awserr.Error's Code and Message methods to get detailed information about
  1616. // the error.
  1617. //
  1618. // See the AWS API reference guide for Elastic Load Balancing's
  1619. // API operation DescribeLoadBalancers for usage and error information.
  1620. //
  1621. // Returned Error Codes:
  1622. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1623. // The specified load balancer does not exist.
  1624. //
  1625. // * ErrCodeDependencyThrottleException "DependencyThrottle"
  1626. // A request made by Elastic Load Balancing to another service exceeds the maximum
  1627. // request rate permitted for your account.
  1628. //
  1629. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeLoadBalancers
  1630. func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
  1631. req, out := c.DescribeLoadBalancersRequest(input)
  1632. return out, req.Send()
  1633. }
  1634. // DescribeLoadBalancersWithContext is the same as DescribeLoadBalancers with the addition of
  1635. // the ability to pass a context and additional request options.
  1636. //
  1637. // See DescribeLoadBalancers for details on how to use this API operation.
  1638. //
  1639. // The context must be non-nil and will be used for request cancellation. If
  1640. // the context is nil a panic will occur. In the future the SDK may create
  1641. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1642. // for more information on using Contexts.
  1643. func (c *ELB) DescribeLoadBalancersWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...request.Option) (*DescribeLoadBalancersOutput, error) {
  1644. req, out := c.DescribeLoadBalancersRequest(input)
  1645. req.SetContext(ctx)
  1646. req.ApplyOptions(opts...)
  1647. return out, req.Send()
  1648. }
  1649. // DescribeLoadBalancersPages iterates over the pages of a DescribeLoadBalancers operation,
  1650. // calling the "fn" function with the response data for each page. To stop
  1651. // iterating, return false from the fn function.
  1652. //
  1653. // See DescribeLoadBalancers method for more information on how to use this operation.
  1654. //
  1655. // Note: This operation can generate multiple requests to a service.
  1656. //
  1657. // // Example iterating over at most 3 pages of a DescribeLoadBalancers operation.
  1658. // pageNum := 0
  1659. // err := client.DescribeLoadBalancersPages(params,
  1660. // func(page *elb.DescribeLoadBalancersOutput, lastPage bool) bool {
  1661. // pageNum++
  1662. // fmt.Println(page)
  1663. // return pageNum <= 3
  1664. // })
  1665. //
  1666. func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool) error {
  1667. return c.DescribeLoadBalancersPagesWithContext(aws.BackgroundContext(), input, fn)
  1668. }
  1669. // DescribeLoadBalancersPagesWithContext same as DescribeLoadBalancersPages except
  1670. // it takes a Context and allows setting request options on the pages.
  1671. //
  1672. // The context must be non-nil and will be used for request cancellation. If
  1673. // the context is nil a panic will occur. In the future the SDK may create
  1674. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1675. // for more information on using Contexts.
  1676. func (c *ELB) DescribeLoadBalancersPagesWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool, opts ...request.Option) error {
  1677. p := request.Pagination{
  1678. NewRequest: func() (*request.Request, error) {
  1679. var inCpy *DescribeLoadBalancersInput
  1680. if input != nil {
  1681. tmp := *input
  1682. inCpy = &tmp
  1683. }
  1684. req, _ := c.DescribeLoadBalancersRequest(inCpy)
  1685. req.SetContext(ctx)
  1686. req.ApplyOptions(opts...)
  1687. return req, nil
  1688. },
  1689. }
  1690. for p.Next() {
  1691. if !fn(p.Page().(*DescribeLoadBalancersOutput), !p.HasNextPage()) {
  1692. break
  1693. }
  1694. }
  1695. return p.Err()
  1696. }
  1697. const opDescribeTags = "DescribeTags"
  1698. // DescribeTagsRequest generates a "aws/request.Request" representing the
  1699. // client's request for the DescribeTags operation. The "output" return
  1700. // value will be populated with the request's response once the request completes
  1701. // successfully.
  1702. //
  1703. // Use "Send" method on the returned Request to send the API call to the service.
  1704. // the "output" return value is not valid until after Send returns without error.
  1705. //
  1706. // See DescribeTags for more information on using the DescribeTags
  1707. // API call, and error handling.
  1708. //
  1709. // This method is useful when you want to inject custom logic or configuration
  1710. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1711. //
  1712. //
  1713. // // Example sending a request using the DescribeTagsRequest method.
  1714. // req, resp := client.DescribeTagsRequest(params)
  1715. //
  1716. // err := req.Send()
  1717. // if err == nil { // resp is now filled
  1718. // fmt.Println(resp)
  1719. // }
  1720. //
  1721. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags
  1722. func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1723. op := &request.Operation{
  1724. Name: opDescribeTags,
  1725. HTTPMethod: "POST",
  1726. HTTPPath: "/",
  1727. }
  1728. if input == nil {
  1729. input = &DescribeTagsInput{}
  1730. }
  1731. output = &DescribeTagsOutput{}
  1732. req = c.newRequest(op, input, output)
  1733. return
  1734. }
  1735. // DescribeTags API operation for Elastic Load Balancing.
  1736. //
  1737. // Describes the tags associated with the specified load balancers.
  1738. //
  1739. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1740. // with awserr.Error's Code and Message methods to get detailed information about
  1741. // the error.
  1742. //
  1743. // See the AWS API reference guide for Elastic Load Balancing's
  1744. // API operation DescribeTags for usage and error information.
  1745. //
  1746. // Returned Error Codes:
  1747. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1748. // The specified load balancer does not exist.
  1749. //
  1750. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags
  1751. func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1752. req, out := c.DescribeTagsRequest(input)
  1753. return out, req.Send()
  1754. }
  1755. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  1756. // the ability to pass a context and additional request options.
  1757. //
  1758. // See DescribeTags for details on how to use this API operation.
  1759. //
  1760. // The context must be non-nil and will be used for request cancellation. If
  1761. // the context is nil a panic will occur. In the future the SDK may create
  1762. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1763. // for more information on using Contexts.
  1764. func (c *ELB) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  1765. req, out := c.DescribeTagsRequest(input)
  1766. req.SetContext(ctx)
  1767. req.ApplyOptions(opts...)
  1768. return out, req.Send()
  1769. }
  1770. const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
  1771. // DetachLoadBalancerFromSubnetsRequest generates a "aws/request.Request" representing the
  1772. // client's request for the DetachLoadBalancerFromSubnets operation. The "output" return
  1773. // value will be populated with the request's response once the request completes
  1774. // successfully.
  1775. //
  1776. // Use "Send" method on the returned Request to send the API call to the service.
  1777. // the "output" return value is not valid until after Send returns without error.
  1778. //
  1779. // See DetachLoadBalancerFromSubnets for more information on using the DetachLoadBalancerFromSubnets
  1780. // API call, and error handling.
  1781. //
  1782. // This method is useful when you want to inject custom logic or configuration
  1783. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1784. //
  1785. //
  1786. // // Example sending a request using the DetachLoadBalancerFromSubnetsRequest method.
  1787. // req, resp := client.DetachLoadBalancerFromSubnetsRequest(params)
  1788. //
  1789. // err := req.Send()
  1790. // if err == nil { // resp is now filled
  1791. // fmt.Println(resp)
  1792. // }
  1793. //
  1794. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets
  1795. func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
  1796. op := &request.Operation{
  1797. Name: opDetachLoadBalancerFromSubnets,
  1798. HTTPMethod: "POST",
  1799. HTTPPath: "/",
  1800. }
  1801. if input == nil {
  1802. input = &DetachLoadBalancerFromSubnetsInput{}
  1803. }
  1804. output = &DetachLoadBalancerFromSubnetsOutput{}
  1805. req = c.newRequest(op, input, output)
  1806. return
  1807. }
  1808. // DetachLoadBalancerFromSubnets API operation for Elastic Load Balancing.
  1809. //
  1810. // Removes the specified subnets from the set of configured subnets for the
  1811. // load balancer.
  1812. //
  1813. // After a subnet is removed, all EC2 instances registered with the load balancer
  1814. // in the removed subnet go into the OutOfService state. Then, the load balancer
  1815. // balances the traffic among the remaining routable subnets.
  1816. //
  1817. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1818. // with awserr.Error's Code and Message methods to get detailed information about
  1819. // the error.
  1820. //
  1821. // See the AWS API reference guide for Elastic Load Balancing's
  1822. // API operation DetachLoadBalancerFromSubnets for usage and error information.
  1823. //
  1824. // Returned Error Codes:
  1825. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1826. // The specified load balancer does not exist.
  1827. //
  1828. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  1829. // The requested configuration change is not valid.
  1830. //
  1831. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets
  1832. func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) {
  1833. req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
  1834. return out, req.Send()
  1835. }
  1836. // DetachLoadBalancerFromSubnetsWithContext is the same as DetachLoadBalancerFromSubnets with the addition of
  1837. // the ability to pass a context and additional request options.
  1838. //
  1839. // See DetachLoadBalancerFromSubnets for details on how to use this API operation.
  1840. //
  1841. // The context must be non-nil and will be used for request cancellation. If
  1842. // the context is nil a panic will occur. In the future the SDK may create
  1843. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1844. // for more information on using Contexts.
  1845. func (c *ELB) DetachLoadBalancerFromSubnetsWithContext(ctx aws.Context, input *DetachLoadBalancerFromSubnetsInput, opts ...request.Option) (*DetachLoadBalancerFromSubnetsOutput, error) {
  1846. req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
  1847. req.SetContext(ctx)
  1848. req.ApplyOptions(opts...)
  1849. return out, req.Send()
  1850. }
  1851. const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
  1852. // DisableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
  1853. // client's request for the DisableAvailabilityZonesForLoadBalancer operation. The "output" return
  1854. // value will be populated with the request's response once the request completes
  1855. // successfully.
  1856. //
  1857. // Use "Send" method on the returned Request to send the API call to the service.
  1858. // the "output" return value is not valid until after Send returns without error.
  1859. //
  1860. // See DisableAvailabilityZonesForLoadBalancer for more information on using the DisableAvailabilityZonesForLoadBalancer
  1861. // API call, and error handling.
  1862. //
  1863. // This method is useful when you want to inject custom logic or configuration
  1864. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1865. //
  1866. //
  1867. // // Example sending a request using the DisableAvailabilityZonesForLoadBalancerRequest method.
  1868. // req, resp := client.DisableAvailabilityZonesForLoadBalancerRequest(params)
  1869. //
  1870. // err := req.Send()
  1871. // if err == nil { // resp is now filled
  1872. // fmt.Println(resp)
  1873. // }
  1874. //
  1875. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer
  1876. func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
  1877. op := &request.Operation{
  1878. Name: opDisableAvailabilityZonesForLoadBalancer,
  1879. HTTPMethod: "POST",
  1880. HTTPPath: "/",
  1881. }
  1882. if input == nil {
  1883. input = &DisableAvailabilityZonesForLoadBalancerInput{}
  1884. }
  1885. output = &DisableAvailabilityZonesForLoadBalancerOutput{}
  1886. req = c.newRequest(op, input, output)
  1887. return
  1888. }
  1889. // DisableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
  1890. //
  1891. // Removes the specified Availability Zones from the set of Availability Zones
  1892. // for the specified load balancer in EC2-Classic or a default VPC.
  1893. //
  1894. // For load balancers in a non-default VPC, use DetachLoadBalancerFromSubnets.
  1895. //
  1896. // There must be at least one Availability Zone registered with a load balancer
  1897. // at all times. After an Availability Zone is removed, all instances registered
  1898. // with the load balancer that are in the removed Availability Zone go into
  1899. // the OutOfService state. Then, the load balancer attempts to equally balance
  1900. // the traffic among its remaining Availability Zones.
  1901. //
  1902. // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
  1903. // in the Classic Load Balancers Guide.
  1904. //
  1905. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1906. // with awserr.Error's Code and Message methods to get detailed information about
  1907. // the error.
  1908. //
  1909. // See the AWS API reference guide for Elastic Load Balancing's
  1910. // API operation DisableAvailabilityZonesForLoadBalancer for usage and error information.
  1911. //
  1912. // Returned Error Codes:
  1913. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1914. // The specified load balancer does not exist.
  1915. //
  1916. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  1917. // The requested configuration change is not valid.
  1918. //
  1919. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer
  1920. func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
  1921. req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
  1922. return out, req.Send()
  1923. }
  1924. // DisableAvailabilityZonesForLoadBalancerWithContext is the same as DisableAvailabilityZonesForLoadBalancer with the addition of
  1925. // the ability to pass a context and additional request options.
  1926. //
  1927. // See DisableAvailabilityZonesForLoadBalancer for details on how to use this API operation.
  1928. //
  1929. // The context must be non-nil and will be used for request cancellation. If
  1930. // the context is nil a panic will occur. In the future the SDK may create
  1931. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1932. // for more information on using Contexts.
  1933. func (c *ELB) DisableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *DisableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
  1934. req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
  1935. req.SetContext(ctx)
  1936. req.ApplyOptions(opts...)
  1937. return out, req.Send()
  1938. }
  1939. const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
  1940. // EnableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
  1941. // client's request for the EnableAvailabilityZonesForLoadBalancer operation. The "output" return
  1942. // value will be populated with the request's response once the request completes
  1943. // successfully.
  1944. //
  1945. // Use "Send" method on the returned Request to send the API call to the service.
  1946. // the "output" return value is not valid until after Send returns without error.
  1947. //
  1948. // See EnableAvailabilityZonesForLoadBalancer for more information on using the EnableAvailabilityZonesForLoadBalancer
  1949. // API call, and error handling.
  1950. //
  1951. // This method is useful when you want to inject custom logic or configuration
  1952. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1953. //
  1954. //
  1955. // // Example sending a request using the EnableAvailabilityZonesForLoadBalancerRequest method.
  1956. // req, resp := client.EnableAvailabilityZonesForLoadBalancerRequest(params)
  1957. //
  1958. // err := req.Send()
  1959. // if err == nil { // resp is now filled
  1960. // fmt.Println(resp)
  1961. // }
  1962. //
  1963. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer
  1964. func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
  1965. op := &request.Operation{
  1966. Name: opEnableAvailabilityZonesForLoadBalancer,
  1967. HTTPMethod: "POST",
  1968. HTTPPath: "/",
  1969. }
  1970. if input == nil {
  1971. input = &EnableAvailabilityZonesForLoadBalancerInput{}
  1972. }
  1973. output = &EnableAvailabilityZonesForLoadBalancerOutput{}
  1974. req = c.newRequest(op, input, output)
  1975. return
  1976. }
  1977. // EnableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
  1978. //
  1979. // Adds the specified Availability Zones to the set of Availability Zones for
  1980. // the specified load balancer in EC2-Classic or a default VPC.
  1981. //
  1982. // For load balancers in a non-default VPC, use AttachLoadBalancerToSubnets.
  1983. //
  1984. // The load balancer evenly distributes requests across all its registered Availability
  1985. // Zones that contain instances. For more information, see Add or Remove Availability
  1986. // Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
  1987. // in the Classic Load Balancers Guide.
  1988. //
  1989. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1990. // with awserr.Error's Code and Message methods to get detailed information about
  1991. // the error.
  1992. //
  1993. // See the AWS API reference guide for Elastic Load Balancing's
  1994. // API operation EnableAvailabilityZonesForLoadBalancer for usage and error information.
  1995. //
  1996. // Returned Error Codes:
  1997. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1998. // The specified load balancer does not exist.
  1999. //
  2000. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer
  2001. func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
  2002. req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
  2003. return out, req.Send()
  2004. }
  2005. // EnableAvailabilityZonesForLoadBalancerWithContext is the same as EnableAvailabilityZonesForLoadBalancer with the addition of
  2006. // the ability to pass a context and additional request options.
  2007. //
  2008. // See EnableAvailabilityZonesForLoadBalancer for details on how to use this API operation.
  2009. //
  2010. // The context must be non-nil and will be used for request cancellation. If
  2011. // the context is nil a panic will occur. In the future the SDK may create
  2012. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2013. // for more information on using Contexts.
  2014. func (c *ELB) EnableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *EnableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
  2015. req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
  2016. req.SetContext(ctx)
  2017. req.ApplyOptions(opts...)
  2018. return out, req.Send()
  2019. }
  2020. const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
  2021. // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
  2022. // client's request for the ModifyLoadBalancerAttributes operation. The "output" return
  2023. // value will be populated with the request's response once the request completes
  2024. // successfully.
  2025. //
  2026. // Use "Send" method on the returned Request to send the API call to the service.
  2027. // the "output" return value is not valid until after Send returns without error.
  2028. //
  2029. // See ModifyLoadBalancerAttributes for more information on using the ModifyLoadBalancerAttributes
  2030. // API call, and error handling.
  2031. //
  2032. // This method is useful when you want to inject custom logic or configuration
  2033. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2034. //
  2035. //
  2036. // // Example sending a request using the ModifyLoadBalancerAttributesRequest method.
  2037. // req, resp := client.ModifyLoadBalancerAttributesRequest(params)
  2038. //
  2039. // err := req.Send()
  2040. // if err == nil { // resp is now filled
  2041. // fmt.Println(resp)
  2042. // }
  2043. //
  2044. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes
  2045. func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
  2046. op := &request.Operation{
  2047. Name: opModifyLoadBalancerAttributes,
  2048. HTTPMethod: "POST",
  2049. HTTPPath: "/",
  2050. }
  2051. if input == nil {
  2052. input = &ModifyLoadBalancerAttributesInput{}
  2053. }
  2054. output = &ModifyLoadBalancerAttributesOutput{}
  2055. req = c.newRequest(op, input, output)
  2056. return
  2057. }
  2058. // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.
  2059. //
  2060. // Modifies the attributes of the specified load balancer.
  2061. //
  2062. // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining,
  2063. // and CrossZoneLoadBalancing by either enabling or disabling them. Or, you
  2064. // can modify the load balancer attribute ConnectionSettings by specifying an
  2065. // idle connection timeout value for your load balancer.
  2066. //
  2067. // For more information, see the following in the Classic Load Balancers Guide:
  2068. //
  2069. // * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
  2070. //
  2071. // * Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
  2072. //
  2073. // * Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html)
  2074. //
  2075. // * Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
  2076. //
  2077. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2078. // with awserr.Error's Code and Message methods to get detailed information about
  2079. // the error.
  2080. //
  2081. // See the AWS API reference guide for Elastic Load Balancing's
  2082. // API operation ModifyLoadBalancerAttributes for usage and error information.
  2083. //
  2084. // Returned Error Codes:
  2085. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2086. // The specified load balancer does not exist.
  2087. //
  2088. // * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound"
  2089. // The specified load balancer attribute does not exist.
  2090. //
  2091. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2092. // The requested configuration change is not valid.
  2093. //
  2094. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes
  2095. func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
  2096. req, out := c.ModifyLoadBalancerAttributesRequest(input)
  2097. return out, req.Send()
  2098. }
  2099. // ModifyLoadBalancerAttributesWithContext is the same as ModifyLoadBalancerAttributes with the addition of
  2100. // the ability to pass a context and additional request options.
  2101. //
  2102. // See ModifyLoadBalancerAttributes for details on how to use this API operation.
  2103. //
  2104. // The context must be non-nil and will be used for request cancellation. If
  2105. // the context is nil a panic will occur. In the future the SDK may create
  2106. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2107. // for more information on using Contexts.
  2108. func (c *ELB) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input *ModifyLoadBalancerAttributesInput, opts ...request.Option) (*ModifyLoadBalancerAttributesOutput, error) {
  2109. req, out := c.ModifyLoadBalancerAttributesRequest(input)
  2110. req.SetContext(ctx)
  2111. req.ApplyOptions(opts...)
  2112. return out, req.Send()
  2113. }
  2114. const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
  2115. // RegisterInstancesWithLoadBalancerRequest generates a "aws/request.Request" representing the
  2116. // client's request for the RegisterInstancesWithLoadBalancer operation. The "output" return
  2117. // value will be populated with the request's response once the request completes
  2118. // successfully.
  2119. //
  2120. // Use "Send" method on the returned Request to send the API call to the service.
  2121. // the "output" return value is not valid until after Send returns without error.
  2122. //
  2123. // See RegisterInstancesWithLoadBalancer for more information on using the RegisterInstancesWithLoadBalancer
  2124. // API call, and error handling.
  2125. //
  2126. // This method is useful when you want to inject custom logic or configuration
  2127. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2128. //
  2129. //
  2130. // // Example sending a request using the RegisterInstancesWithLoadBalancerRequest method.
  2131. // req, resp := client.RegisterInstancesWithLoadBalancerRequest(params)
  2132. //
  2133. // err := req.Send()
  2134. // if err == nil { // resp is now filled
  2135. // fmt.Println(resp)
  2136. // }
  2137. //
  2138. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer
  2139. func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
  2140. op := &request.Operation{
  2141. Name: opRegisterInstancesWithLoadBalancer,
  2142. HTTPMethod: "POST",
  2143. HTTPPath: "/",
  2144. }
  2145. if input == nil {
  2146. input = &RegisterInstancesWithLoadBalancerInput{}
  2147. }
  2148. output = &RegisterInstancesWithLoadBalancerOutput{}
  2149. req = c.newRequest(op, input, output)
  2150. return
  2151. }
  2152. // RegisterInstancesWithLoadBalancer API operation for Elastic Load Balancing.
  2153. //
  2154. // Adds the specified instances to the specified load balancer.
  2155. //
  2156. // The instance must be a running instance in the same network as the load balancer
  2157. // (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load
  2158. // balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic
  2159. // instances to that VPC and then register the linked EC2-Classic instances
  2160. // with the load balancer in the VPC.
  2161. //
  2162. // Note that RegisterInstanceWithLoadBalancer completes when the request has
  2163. // been registered. Instance registration takes a little time to complete. To
  2164. // check the state of the registered instances, use DescribeLoadBalancers or
  2165. // DescribeInstanceHealth.
  2166. //
  2167. // After the instance is registered, it starts receiving traffic and requests
  2168. // from the load balancer. Any instance that is not in one of the Availability
  2169. // Zones registered for the load balancer is moved to the OutOfService state.
  2170. // If an Availability Zone is added to the load balancer later, any instances
  2171. // registered with the load balancer move to the InService state.
  2172. //
  2173. // To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
  2174. //
  2175. // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
  2176. // in the Classic Load Balancers Guide.
  2177. //
  2178. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2179. // with awserr.Error's Code and Message methods to get detailed information about
  2180. // the error.
  2181. //
  2182. // See the AWS API reference guide for Elastic Load Balancing's
  2183. // API operation RegisterInstancesWithLoadBalancer for usage and error information.
  2184. //
  2185. // Returned Error Codes:
  2186. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2187. // The specified load balancer does not exist.
  2188. //
  2189. // * ErrCodeInvalidEndPointException "InvalidInstance"
  2190. // The specified endpoint is not valid.
  2191. //
  2192. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer
  2193. func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) {
  2194. req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
  2195. return out, req.Send()
  2196. }
  2197. // RegisterInstancesWithLoadBalancerWithContext is the same as RegisterInstancesWithLoadBalancer with the addition of
  2198. // the ability to pass a context and additional request options.
  2199. //
  2200. // See RegisterInstancesWithLoadBalancer for details on how to use this API operation.
  2201. //
  2202. // The context must be non-nil and will be used for request cancellation. If
  2203. // the context is nil a panic will occur. In the future the SDK may create
  2204. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2205. // for more information on using Contexts.
  2206. func (c *ELB) RegisterInstancesWithLoadBalancerWithContext(ctx aws.Context, input *RegisterInstancesWithLoadBalancerInput, opts ...request.Option) (*RegisterInstancesWithLoadBalancerOutput, error) {
  2207. req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
  2208. req.SetContext(ctx)
  2209. req.ApplyOptions(opts...)
  2210. return out, req.Send()
  2211. }
  2212. const opRemoveTags = "RemoveTags"
  2213. // RemoveTagsRequest generates a "aws/request.Request" representing the
  2214. // client's request for the RemoveTags operation. The "output" return
  2215. // value will be populated with the request's response once the request completes
  2216. // successfully.
  2217. //
  2218. // Use "Send" method on the returned Request to send the API call to the service.
  2219. // the "output" return value is not valid until after Send returns without error.
  2220. //
  2221. // See RemoveTags for more information on using the RemoveTags
  2222. // API call, and error handling.
  2223. //
  2224. // This method is useful when you want to inject custom logic or configuration
  2225. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2226. //
  2227. //
  2228. // // Example sending a request using the RemoveTagsRequest method.
  2229. // req, resp := client.RemoveTagsRequest(params)
  2230. //
  2231. // err := req.Send()
  2232. // if err == nil { // resp is now filled
  2233. // fmt.Println(resp)
  2234. // }
  2235. //
  2236. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags
  2237. func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
  2238. op := &request.Operation{
  2239. Name: opRemoveTags,
  2240. HTTPMethod: "POST",
  2241. HTTPPath: "/",
  2242. }
  2243. if input == nil {
  2244. input = &RemoveTagsInput{}
  2245. }
  2246. output = &RemoveTagsOutput{}
  2247. req = c.newRequest(op, input, output)
  2248. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2249. return
  2250. }
  2251. // RemoveTags API operation for Elastic Load Balancing.
  2252. //
  2253. // Removes one or more tags from the specified load balancer.
  2254. //
  2255. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2256. // with awserr.Error's Code and Message methods to get detailed information about
  2257. // the error.
  2258. //
  2259. // See the AWS API reference guide for Elastic Load Balancing's
  2260. // API operation RemoveTags for usage and error information.
  2261. //
  2262. // Returned Error Codes:
  2263. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2264. // The specified load balancer does not exist.
  2265. //
  2266. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags
  2267. func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
  2268. req, out := c.RemoveTagsRequest(input)
  2269. return out, req.Send()
  2270. }
  2271. // RemoveTagsWithContext is the same as RemoveTags with the addition of
  2272. // the ability to pass a context and additional request options.
  2273. //
  2274. // See RemoveTags for details on how to use this API operation.
  2275. //
  2276. // The context must be non-nil and will be used for request cancellation. If
  2277. // the context is nil a panic will occur. In the future the SDK may create
  2278. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2279. // for more information on using Contexts.
  2280. func (c *ELB) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error) {
  2281. req, out := c.RemoveTagsRequest(input)
  2282. req.SetContext(ctx)
  2283. req.ApplyOptions(opts...)
  2284. return out, req.Send()
  2285. }
  2286. const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
  2287. // SetLoadBalancerListenerSSLCertificateRequest generates a "aws/request.Request" representing the
  2288. // client's request for the SetLoadBalancerListenerSSLCertificate operation. The "output" return
  2289. // value will be populated with the request's response once the request completes
  2290. // successfully.
  2291. //
  2292. // Use "Send" method on the returned Request to send the API call to the service.
  2293. // the "output" return value is not valid until after Send returns without error.
  2294. //
  2295. // See SetLoadBalancerListenerSSLCertificate for more information on using the SetLoadBalancerListenerSSLCertificate
  2296. // API call, and error handling.
  2297. //
  2298. // This method is useful when you want to inject custom logic or configuration
  2299. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2300. //
  2301. //
  2302. // // Example sending a request using the SetLoadBalancerListenerSSLCertificateRequest method.
  2303. // req, resp := client.SetLoadBalancerListenerSSLCertificateRequest(params)
  2304. //
  2305. // err := req.Send()
  2306. // if err == nil { // resp is now filled
  2307. // fmt.Println(resp)
  2308. // }
  2309. //
  2310. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate
  2311. func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
  2312. op := &request.Operation{
  2313. Name: opSetLoadBalancerListenerSSLCertificate,
  2314. HTTPMethod: "POST",
  2315. HTTPPath: "/",
  2316. }
  2317. if input == nil {
  2318. input = &SetLoadBalancerListenerSSLCertificateInput{}
  2319. }
  2320. output = &SetLoadBalancerListenerSSLCertificateOutput{}
  2321. req = c.newRequest(op, input, output)
  2322. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2323. return
  2324. }
  2325. // SetLoadBalancerListenerSSLCertificate API operation for Elastic Load Balancing.
  2326. //
  2327. // Sets the certificate that terminates the specified listener's SSL connections.
  2328. // The specified certificate replaces any prior certificate that was used on
  2329. // the same load balancer and port.
  2330. //
  2331. // For more information about updating your SSL certificate, see Replace the
  2332. // SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html)
  2333. // in the Classic Load Balancers Guide.
  2334. //
  2335. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2336. // with awserr.Error's Code and Message methods to get detailed information about
  2337. // the error.
  2338. //
  2339. // See the AWS API reference guide for Elastic Load Balancing's
  2340. // API operation SetLoadBalancerListenerSSLCertificate for usage and error information.
  2341. //
  2342. // Returned Error Codes:
  2343. // * ErrCodeCertificateNotFoundException "CertificateNotFound"
  2344. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  2345. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  2346. // you recently uploaded the certificate to IAM, this error might indicate that
  2347. // the certificate is not fully available yet.
  2348. //
  2349. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2350. // The specified load balancer does not exist.
  2351. //
  2352. // * ErrCodeListenerNotFoundException "ListenerNotFound"
  2353. // The load balancer does not have a listener configured at the specified port.
  2354. //
  2355. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2356. // The requested configuration change is not valid.
  2357. //
  2358. // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
  2359. // The specified protocol or signature version is not supported.
  2360. //
  2361. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate
  2362. func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
  2363. req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
  2364. return out, req.Send()
  2365. }
  2366. // SetLoadBalancerListenerSSLCertificateWithContext is the same as SetLoadBalancerListenerSSLCertificate with the addition of
  2367. // the ability to pass a context and additional request options.
  2368. //
  2369. // See SetLoadBalancerListenerSSLCertificate for details on how to use this API operation.
  2370. //
  2371. // The context must be non-nil and will be used for request cancellation. If
  2372. // the context is nil a panic will occur. In the future the SDK may create
  2373. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2374. // for more information on using Contexts.
  2375. func (c *ELB) SetLoadBalancerListenerSSLCertificateWithContext(ctx aws.Context, input *SetLoadBalancerListenerSSLCertificateInput, opts ...request.Option) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
  2376. req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
  2377. req.SetContext(ctx)
  2378. req.ApplyOptions(opts...)
  2379. return out, req.Send()
  2380. }
  2381. const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
  2382. // SetLoadBalancerPoliciesForBackendServerRequest generates a "aws/request.Request" representing the
  2383. // client's request for the SetLoadBalancerPoliciesForBackendServer operation. The "output" return
  2384. // value will be populated with the request's response once the request completes
  2385. // successfully.
  2386. //
  2387. // Use "Send" method on the returned Request to send the API call to the service.
  2388. // the "output" return value is not valid until after Send returns without error.
  2389. //
  2390. // See SetLoadBalancerPoliciesForBackendServer for more information on using the SetLoadBalancerPoliciesForBackendServer
  2391. // API call, and error handling.
  2392. //
  2393. // This method is useful when you want to inject custom logic or configuration
  2394. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2395. //
  2396. //
  2397. // // Example sending a request using the SetLoadBalancerPoliciesForBackendServerRequest method.
  2398. // req, resp := client.SetLoadBalancerPoliciesForBackendServerRequest(params)
  2399. //
  2400. // err := req.Send()
  2401. // if err == nil { // resp is now filled
  2402. // fmt.Println(resp)
  2403. // }
  2404. //
  2405. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer
  2406. func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
  2407. op := &request.Operation{
  2408. Name: opSetLoadBalancerPoliciesForBackendServer,
  2409. HTTPMethod: "POST",
  2410. HTTPPath: "/",
  2411. }
  2412. if input == nil {
  2413. input = &SetLoadBalancerPoliciesForBackendServerInput{}
  2414. }
  2415. output = &SetLoadBalancerPoliciesForBackendServerOutput{}
  2416. req = c.newRequest(op, input, output)
  2417. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2418. return
  2419. }
  2420. // SetLoadBalancerPoliciesForBackendServer API operation for Elastic Load Balancing.
  2421. //
  2422. // Replaces the set of policies associated with the specified port on which
  2423. // the EC2 instance is listening with a new set of policies. At this time, only
  2424. // the back-end server authentication policy type can be applied to the instance
  2425. // ports; this policy type is composed of multiple public key policies.
  2426. //
  2427. // Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies,
  2428. // use the PolicyNames parameter to list the policies that you want to enable.
  2429. //
  2430. // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify
  2431. // that the policy is associated with the EC2 instance.
  2432. //
  2433. // For more information about enabling back-end instance authentication, see
  2434. // Configure Back-end Instance Authentication (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.html#configure_backendauth_clt)
  2435. // in the Classic Load Balancers Guide. For more information about Proxy Protocol,
  2436. // see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html)
  2437. // in the Classic Load Balancers Guide.
  2438. //
  2439. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2440. // with awserr.Error's Code and Message methods to get detailed information about
  2441. // the error.
  2442. //
  2443. // See the AWS API reference guide for Elastic Load Balancing's
  2444. // API operation SetLoadBalancerPoliciesForBackendServer for usage and error information.
  2445. //
  2446. // Returned Error Codes:
  2447. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2448. // The specified load balancer does not exist.
  2449. //
  2450. // * ErrCodePolicyNotFoundException "PolicyNotFound"
  2451. // One or more of the specified policies do not exist.
  2452. //
  2453. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2454. // The requested configuration change is not valid.
  2455. //
  2456. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer
  2457. func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
  2458. req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
  2459. return out, req.Send()
  2460. }
  2461. // SetLoadBalancerPoliciesForBackendServerWithContext is the same as SetLoadBalancerPoliciesForBackendServer with the addition of
  2462. // the ability to pass a context and additional request options.
  2463. //
  2464. // See SetLoadBalancerPoliciesForBackendServer for details on how to use this API operation.
  2465. //
  2466. // The context must be non-nil and will be used for request cancellation. If
  2467. // the context is nil a panic will occur. In the future the SDK may create
  2468. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2469. // for more information on using Contexts.
  2470. func (c *ELB) SetLoadBalancerPoliciesForBackendServerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesForBackendServerInput, opts ...request.Option) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
  2471. req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
  2472. req.SetContext(ctx)
  2473. req.ApplyOptions(opts...)
  2474. return out, req.Send()
  2475. }
  2476. const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
  2477. // SetLoadBalancerPoliciesOfListenerRequest generates a "aws/request.Request" representing the
  2478. // client's request for the SetLoadBalancerPoliciesOfListener operation. The "output" return
  2479. // value will be populated with the request's response once the request completes
  2480. // successfully.
  2481. //
  2482. // Use "Send" method on the returned Request to send the API call to the service.
  2483. // the "output" return value is not valid until after Send returns without error.
  2484. //
  2485. // See SetLoadBalancerPoliciesOfListener for more information on using the SetLoadBalancerPoliciesOfListener
  2486. // API call, and error handling.
  2487. //
  2488. // This method is useful when you want to inject custom logic or configuration
  2489. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2490. //
  2491. //
  2492. // // Example sending a request using the SetLoadBalancerPoliciesOfListenerRequest method.
  2493. // req, resp := client.SetLoadBalancerPoliciesOfListenerRequest(params)
  2494. //
  2495. // err := req.Send()
  2496. // if err == nil { // resp is now filled
  2497. // fmt.Println(resp)
  2498. // }
  2499. //
  2500. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener
  2501. func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
  2502. op := &request.Operation{
  2503. Name: opSetLoadBalancerPoliciesOfListener,
  2504. HTTPMethod: "POST",
  2505. HTTPPath: "/",
  2506. }
  2507. if input == nil {
  2508. input = &SetLoadBalancerPoliciesOfListenerInput{}
  2509. }
  2510. output = &SetLoadBalancerPoliciesOfListenerOutput{}
  2511. req = c.newRequest(op, input, output)
  2512. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2513. return
  2514. }
  2515. // SetLoadBalancerPoliciesOfListener API operation for Elastic Load Balancing.
  2516. //
  2517. // Replaces the current set of policies for the specified load balancer port
  2518. // with the specified set of policies.
  2519. //
  2520. // To enable back-end server authentication, use SetLoadBalancerPoliciesForBackendServer.
  2521. //
  2522. // For more information about setting policies, see Update the SSL Negotiation
  2523. // Configuration (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ssl-config-update.html),
  2524. // Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration),
  2525. // and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
  2526. // in the Classic Load Balancers Guide.
  2527. //
  2528. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2529. // with awserr.Error's Code and Message methods to get detailed information about
  2530. // the error.
  2531. //
  2532. // See the AWS API reference guide for Elastic Load Balancing's
  2533. // API operation SetLoadBalancerPoliciesOfListener for usage and error information.
  2534. //
  2535. // Returned Error Codes:
  2536. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2537. // The specified load balancer does not exist.
  2538. //
  2539. // * ErrCodePolicyNotFoundException "PolicyNotFound"
  2540. // One or more of the specified policies do not exist.
  2541. //
  2542. // * ErrCodeListenerNotFoundException "ListenerNotFound"
  2543. // The load balancer does not have a listener configured at the specified port.
  2544. //
  2545. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2546. // The requested configuration change is not valid.
  2547. //
  2548. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener
  2549. func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
  2550. req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
  2551. return out, req.Send()
  2552. }
  2553. // SetLoadBalancerPoliciesOfListenerWithContext is the same as SetLoadBalancerPoliciesOfListener with the addition of
  2554. // the ability to pass a context and additional request options.
  2555. //
  2556. // See SetLoadBalancerPoliciesOfListener for details on how to use this API operation.
  2557. //
  2558. // The context must be non-nil and will be used for request cancellation. If
  2559. // the context is nil a panic will occur. In the future the SDK may create
  2560. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2561. // for more information on using Contexts.
  2562. func (c *ELB) SetLoadBalancerPoliciesOfListenerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesOfListenerInput, opts ...request.Option) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
  2563. req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
  2564. req.SetContext(ctx)
  2565. req.ApplyOptions(opts...)
  2566. return out, req.Send()
  2567. }
  2568. // Information about the AccessLog attribute.
  2569. type AccessLog struct {
  2570. _ struct{} `type:"structure"`
  2571. // The interval for publishing the access logs. You can specify an interval
  2572. // of either 5 minutes or 60 minutes.
  2573. //
  2574. // Default: 60 minutes
  2575. EmitInterval *int64 `type:"integer"`
  2576. // Specifies whether access logs are enabled for the load balancer.
  2577. //
  2578. // Enabled is a required field
  2579. Enabled *bool `type:"boolean" required:"true"`
  2580. // The name of the Amazon S3 bucket where the access logs are stored.
  2581. S3BucketName *string `type:"string"`
  2582. // The logical hierarchy you created for your Amazon S3 bucket, for example
  2583. // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
  2584. // the root level of the bucket.
  2585. S3BucketPrefix *string `type:"string"`
  2586. }
  2587. // String returns the string representation
  2588. func (s AccessLog) String() string {
  2589. return awsutil.Prettify(s)
  2590. }
  2591. // GoString returns the string representation
  2592. func (s AccessLog) GoString() string {
  2593. return s.String()
  2594. }
  2595. // Validate inspects the fields of the type to determine if they are valid.
  2596. func (s *AccessLog) Validate() error {
  2597. invalidParams := request.ErrInvalidParams{Context: "AccessLog"}
  2598. if s.Enabled == nil {
  2599. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2600. }
  2601. if invalidParams.Len() > 0 {
  2602. return invalidParams
  2603. }
  2604. return nil
  2605. }
  2606. // SetEmitInterval sets the EmitInterval field's value.
  2607. func (s *AccessLog) SetEmitInterval(v int64) *AccessLog {
  2608. s.EmitInterval = &v
  2609. return s
  2610. }
  2611. // SetEnabled sets the Enabled field's value.
  2612. func (s *AccessLog) SetEnabled(v bool) *AccessLog {
  2613. s.Enabled = &v
  2614. return s
  2615. }
  2616. // SetS3BucketName sets the S3BucketName field's value.
  2617. func (s *AccessLog) SetS3BucketName(v string) *AccessLog {
  2618. s.S3BucketName = &v
  2619. return s
  2620. }
  2621. // SetS3BucketPrefix sets the S3BucketPrefix field's value.
  2622. func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog {
  2623. s.S3BucketPrefix = &v
  2624. return s
  2625. }
  2626. // Contains the parameters for AddTags.
  2627. type AddTagsInput struct {
  2628. _ struct{} `type:"structure"`
  2629. // The name of the load balancer. You can specify one load balancer only.
  2630. //
  2631. // LoadBalancerNames is a required field
  2632. LoadBalancerNames []*string `type:"list" required:"true"`
  2633. // The tags.
  2634. //
  2635. // Tags is a required field
  2636. Tags []*Tag `min:"1" type:"list" required:"true"`
  2637. }
  2638. // String returns the string representation
  2639. func (s AddTagsInput) String() string {
  2640. return awsutil.Prettify(s)
  2641. }
  2642. // GoString returns the string representation
  2643. func (s AddTagsInput) GoString() string {
  2644. return s.String()
  2645. }
  2646. // Validate inspects the fields of the type to determine if they are valid.
  2647. func (s *AddTagsInput) Validate() error {
  2648. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  2649. if s.LoadBalancerNames == nil {
  2650. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  2651. }
  2652. if s.Tags == nil {
  2653. invalidParams.Add(request.NewErrParamRequired("Tags"))
  2654. }
  2655. if s.Tags != nil && len(s.Tags) < 1 {
  2656. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  2657. }
  2658. if s.Tags != nil {
  2659. for i, v := range s.Tags {
  2660. if v == nil {
  2661. continue
  2662. }
  2663. if err := v.Validate(); err != nil {
  2664. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2665. }
  2666. }
  2667. }
  2668. if invalidParams.Len() > 0 {
  2669. return invalidParams
  2670. }
  2671. return nil
  2672. }
  2673. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  2674. func (s *AddTagsInput) SetLoadBalancerNames(v []*string) *AddTagsInput {
  2675. s.LoadBalancerNames = v
  2676. return s
  2677. }
  2678. // SetTags sets the Tags field's value.
  2679. func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
  2680. s.Tags = v
  2681. return s
  2682. }
  2683. // Contains the output of AddTags.
  2684. type AddTagsOutput struct {
  2685. _ struct{} `type:"structure"`
  2686. }
  2687. // String returns the string representation
  2688. func (s AddTagsOutput) String() string {
  2689. return awsutil.Prettify(s)
  2690. }
  2691. // GoString returns the string representation
  2692. func (s AddTagsOutput) GoString() string {
  2693. return s.String()
  2694. }
  2695. // This data type is reserved.
  2696. type AdditionalAttribute struct {
  2697. _ struct{} `type:"structure"`
  2698. // This parameter is reserved.
  2699. Key *string `type:"string"`
  2700. // This parameter is reserved.
  2701. Value *string `type:"string"`
  2702. }
  2703. // String returns the string representation
  2704. func (s AdditionalAttribute) String() string {
  2705. return awsutil.Prettify(s)
  2706. }
  2707. // GoString returns the string representation
  2708. func (s AdditionalAttribute) GoString() string {
  2709. return s.String()
  2710. }
  2711. // SetKey sets the Key field's value.
  2712. func (s *AdditionalAttribute) SetKey(v string) *AdditionalAttribute {
  2713. s.Key = &v
  2714. return s
  2715. }
  2716. // SetValue sets the Value field's value.
  2717. func (s *AdditionalAttribute) SetValue(v string) *AdditionalAttribute {
  2718. s.Value = &v
  2719. return s
  2720. }
  2721. // Information about a policy for application-controlled session stickiness.
  2722. type AppCookieStickinessPolicy struct {
  2723. _ struct{} `type:"structure"`
  2724. // The name of the application cookie used for stickiness.
  2725. CookieName *string `type:"string"`
  2726. // The mnemonic name for the policy being created. The name must be unique within
  2727. // a set of policies for this load balancer.
  2728. PolicyName *string `type:"string"`
  2729. }
  2730. // String returns the string representation
  2731. func (s AppCookieStickinessPolicy) String() string {
  2732. return awsutil.Prettify(s)
  2733. }
  2734. // GoString returns the string representation
  2735. func (s AppCookieStickinessPolicy) GoString() string {
  2736. return s.String()
  2737. }
  2738. // SetCookieName sets the CookieName field's value.
  2739. func (s *AppCookieStickinessPolicy) SetCookieName(v string) *AppCookieStickinessPolicy {
  2740. s.CookieName = &v
  2741. return s
  2742. }
  2743. // SetPolicyName sets the PolicyName field's value.
  2744. func (s *AppCookieStickinessPolicy) SetPolicyName(v string) *AppCookieStickinessPolicy {
  2745. s.PolicyName = &v
  2746. return s
  2747. }
  2748. // Contains the parameters for ApplySecurityGroupsToLoadBalancer.
  2749. type ApplySecurityGroupsToLoadBalancerInput struct {
  2750. _ struct{} `type:"structure"`
  2751. // The name of the load balancer.
  2752. //
  2753. // LoadBalancerName is a required field
  2754. LoadBalancerName *string `type:"string" required:"true"`
  2755. // The IDs of the security groups to associate with the load balancer. Note
  2756. // that you cannot specify the name of the security group.
  2757. //
  2758. // SecurityGroups is a required field
  2759. SecurityGroups []*string `type:"list" required:"true"`
  2760. }
  2761. // String returns the string representation
  2762. func (s ApplySecurityGroupsToLoadBalancerInput) String() string {
  2763. return awsutil.Prettify(s)
  2764. }
  2765. // GoString returns the string representation
  2766. func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string {
  2767. return s.String()
  2768. }
  2769. // Validate inspects the fields of the type to determine if they are valid.
  2770. func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error {
  2771. invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToLoadBalancerInput"}
  2772. if s.LoadBalancerName == nil {
  2773. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2774. }
  2775. if s.SecurityGroups == nil {
  2776. invalidParams.Add(request.NewErrParamRequired("SecurityGroups"))
  2777. }
  2778. if invalidParams.Len() > 0 {
  2779. return invalidParams
  2780. }
  2781. return nil
  2782. }
  2783. // SetLoadBalancerName sets the LoadBalancerName field's value.
  2784. func (s *ApplySecurityGroupsToLoadBalancerInput) SetLoadBalancerName(v string) *ApplySecurityGroupsToLoadBalancerInput {
  2785. s.LoadBalancerName = &v
  2786. return s
  2787. }
  2788. // SetSecurityGroups sets the SecurityGroups field's value.
  2789. func (s *ApplySecurityGroupsToLoadBalancerInput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerInput {
  2790. s.SecurityGroups = v
  2791. return s
  2792. }
  2793. // Contains the output of ApplySecurityGroupsToLoadBalancer.
  2794. type ApplySecurityGroupsToLoadBalancerOutput struct {
  2795. _ struct{} `type:"structure"`
  2796. // The IDs of the security groups associated with the load balancer.
  2797. SecurityGroups []*string `type:"list"`
  2798. }
  2799. // String returns the string representation
  2800. func (s ApplySecurityGroupsToLoadBalancerOutput) String() string {
  2801. return awsutil.Prettify(s)
  2802. }
  2803. // GoString returns the string representation
  2804. func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string {
  2805. return s.String()
  2806. }
  2807. // SetSecurityGroups sets the SecurityGroups field's value.
  2808. func (s *ApplySecurityGroupsToLoadBalancerOutput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerOutput {
  2809. s.SecurityGroups = v
  2810. return s
  2811. }
  2812. // Contains the parameters for AttachLoaBalancerToSubnets.
  2813. type AttachLoadBalancerToSubnetsInput struct {
  2814. _ struct{} `type:"structure"`
  2815. // The name of the load balancer.
  2816. //
  2817. // LoadBalancerName is a required field
  2818. LoadBalancerName *string `type:"string" required:"true"`
  2819. // The IDs of the subnets to add. You can add only one subnet per Availability
  2820. // Zone.
  2821. //
  2822. // Subnets is a required field
  2823. Subnets []*string `type:"list" required:"true"`
  2824. }
  2825. // String returns the string representation
  2826. func (s AttachLoadBalancerToSubnetsInput) String() string {
  2827. return awsutil.Prettify(s)
  2828. }
  2829. // GoString returns the string representation
  2830. func (s AttachLoadBalancerToSubnetsInput) GoString() string {
  2831. return s.String()
  2832. }
  2833. // Validate inspects the fields of the type to determine if they are valid.
  2834. func (s *AttachLoadBalancerToSubnetsInput) Validate() error {
  2835. invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerToSubnetsInput"}
  2836. if s.LoadBalancerName == nil {
  2837. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2838. }
  2839. if s.Subnets == nil {
  2840. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  2841. }
  2842. if invalidParams.Len() > 0 {
  2843. return invalidParams
  2844. }
  2845. return nil
  2846. }
  2847. // SetLoadBalancerName sets the LoadBalancerName field's value.
  2848. func (s *AttachLoadBalancerToSubnetsInput) SetLoadBalancerName(v string) *AttachLoadBalancerToSubnetsInput {
  2849. s.LoadBalancerName = &v
  2850. return s
  2851. }
  2852. // SetSubnets sets the Subnets field's value.
  2853. func (s *AttachLoadBalancerToSubnetsInput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsInput {
  2854. s.Subnets = v
  2855. return s
  2856. }
  2857. // Contains the output of AttachLoadBalancerToSubnets.
  2858. type AttachLoadBalancerToSubnetsOutput struct {
  2859. _ struct{} `type:"structure"`
  2860. // The IDs of the subnets attached to the load balancer.
  2861. Subnets []*string `type:"list"`
  2862. }
  2863. // String returns the string representation
  2864. func (s AttachLoadBalancerToSubnetsOutput) String() string {
  2865. return awsutil.Prettify(s)
  2866. }
  2867. // GoString returns the string representation
  2868. func (s AttachLoadBalancerToSubnetsOutput) GoString() string {
  2869. return s.String()
  2870. }
  2871. // SetSubnets sets the Subnets field's value.
  2872. func (s *AttachLoadBalancerToSubnetsOutput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsOutput {
  2873. s.Subnets = v
  2874. return s
  2875. }
  2876. // Information about the configuration of an EC2 instance.
  2877. type BackendServerDescription struct {
  2878. _ struct{} `type:"structure"`
  2879. // The port on which the EC2 instance is listening.
  2880. InstancePort *int64 `min:"1" type:"integer"`
  2881. // The names of the policies enabled for the EC2 instance.
  2882. PolicyNames []*string `type:"list"`
  2883. }
  2884. // String returns the string representation
  2885. func (s BackendServerDescription) String() string {
  2886. return awsutil.Prettify(s)
  2887. }
  2888. // GoString returns the string representation
  2889. func (s BackendServerDescription) GoString() string {
  2890. return s.String()
  2891. }
  2892. // SetInstancePort sets the InstancePort field's value.
  2893. func (s *BackendServerDescription) SetInstancePort(v int64) *BackendServerDescription {
  2894. s.InstancePort = &v
  2895. return s
  2896. }
  2897. // SetPolicyNames sets the PolicyNames field's value.
  2898. func (s *BackendServerDescription) SetPolicyNames(v []*string) *BackendServerDescription {
  2899. s.PolicyNames = v
  2900. return s
  2901. }
  2902. // Contains the parameters for ConfigureHealthCheck.
  2903. type ConfigureHealthCheckInput struct {
  2904. _ struct{} `type:"structure"`
  2905. // The configuration information.
  2906. //
  2907. // HealthCheck is a required field
  2908. HealthCheck *HealthCheck `type:"structure" required:"true"`
  2909. // The name of the load balancer.
  2910. //
  2911. // LoadBalancerName is a required field
  2912. LoadBalancerName *string `type:"string" required:"true"`
  2913. }
  2914. // String returns the string representation
  2915. func (s ConfigureHealthCheckInput) String() string {
  2916. return awsutil.Prettify(s)
  2917. }
  2918. // GoString returns the string representation
  2919. func (s ConfigureHealthCheckInput) GoString() string {
  2920. return s.String()
  2921. }
  2922. // Validate inspects the fields of the type to determine if they are valid.
  2923. func (s *ConfigureHealthCheckInput) Validate() error {
  2924. invalidParams := request.ErrInvalidParams{Context: "ConfigureHealthCheckInput"}
  2925. if s.HealthCheck == nil {
  2926. invalidParams.Add(request.NewErrParamRequired("HealthCheck"))
  2927. }
  2928. if s.LoadBalancerName == nil {
  2929. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2930. }
  2931. if s.HealthCheck != nil {
  2932. if err := s.HealthCheck.Validate(); err != nil {
  2933. invalidParams.AddNested("HealthCheck", err.(request.ErrInvalidParams))
  2934. }
  2935. }
  2936. if invalidParams.Len() > 0 {
  2937. return invalidParams
  2938. }
  2939. return nil
  2940. }
  2941. // SetHealthCheck sets the HealthCheck field's value.
  2942. func (s *ConfigureHealthCheckInput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckInput {
  2943. s.HealthCheck = v
  2944. return s
  2945. }
  2946. // SetLoadBalancerName sets the LoadBalancerName field's value.
  2947. func (s *ConfigureHealthCheckInput) SetLoadBalancerName(v string) *ConfigureHealthCheckInput {
  2948. s.LoadBalancerName = &v
  2949. return s
  2950. }
  2951. // Contains the output of ConfigureHealthCheck.
  2952. type ConfigureHealthCheckOutput struct {
  2953. _ struct{} `type:"structure"`
  2954. // The updated health check.
  2955. HealthCheck *HealthCheck `type:"structure"`
  2956. }
  2957. // String returns the string representation
  2958. func (s ConfigureHealthCheckOutput) String() string {
  2959. return awsutil.Prettify(s)
  2960. }
  2961. // GoString returns the string representation
  2962. func (s ConfigureHealthCheckOutput) GoString() string {
  2963. return s.String()
  2964. }
  2965. // SetHealthCheck sets the HealthCheck field's value.
  2966. func (s *ConfigureHealthCheckOutput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckOutput {
  2967. s.HealthCheck = v
  2968. return s
  2969. }
  2970. // Information about the ConnectionDraining attribute.
  2971. type ConnectionDraining struct {
  2972. _ struct{} `type:"structure"`
  2973. // Specifies whether connection draining is enabled for the load balancer.
  2974. //
  2975. // Enabled is a required field
  2976. Enabled *bool `type:"boolean" required:"true"`
  2977. // The maximum time, in seconds, to keep the existing connections open before
  2978. // deregistering the instances.
  2979. Timeout *int64 `type:"integer"`
  2980. }
  2981. // String returns the string representation
  2982. func (s ConnectionDraining) String() string {
  2983. return awsutil.Prettify(s)
  2984. }
  2985. // GoString returns the string representation
  2986. func (s ConnectionDraining) GoString() string {
  2987. return s.String()
  2988. }
  2989. // Validate inspects the fields of the type to determine if they are valid.
  2990. func (s *ConnectionDraining) Validate() error {
  2991. invalidParams := request.ErrInvalidParams{Context: "ConnectionDraining"}
  2992. if s.Enabled == nil {
  2993. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2994. }
  2995. if invalidParams.Len() > 0 {
  2996. return invalidParams
  2997. }
  2998. return nil
  2999. }
  3000. // SetEnabled sets the Enabled field's value.
  3001. func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining {
  3002. s.Enabled = &v
  3003. return s
  3004. }
  3005. // SetTimeout sets the Timeout field's value.
  3006. func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining {
  3007. s.Timeout = &v
  3008. return s
  3009. }
  3010. // Information about the ConnectionSettings attribute.
  3011. type ConnectionSettings struct {
  3012. _ struct{} `type:"structure"`
  3013. // The time, in seconds, that the connection is allowed to be idle (no data
  3014. // has been sent over the connection) before it is closed by the load balancer.
  3015. //
  3016. // IdleTimeout is a required field
  3017. IdleTimeout *int64 `min:"1" type:"integer" required:"true"`
  3018. }
  3019. // String returns the string representation
  3020. func (s ConnectionSettings) String() string {
  3021. return awsutil.Prettify(s)
  3022. }
  3023. // GoString returns the string representation
  3024. func (s ConnectionSettings) GoString() string {
  3025. return s.String()
  3026. }
  3027. // Validate inspects the fields of the type to determine if they are valid.
  3028. func (s *ConnectionSettings) Validate() error {
  3029. invalidParams := request.ErrInvalidParams{Context: "ConnectionSettings"}
  3030. if s.IdleTimeout == nil {
  3031. invalidParams.Add(request.NewErrParamRequired("IdleTimeout"))
  3032. }
  3033. if s.IdleTimeout != nil && *s.IdleTimeout < 1 {
  3034. invalidParams.Add(request.NewErrParamMinValue("IdleTimeout", 1))
  3035. }
  3036. if invalidParams.Len() > 0 {
  3037. return invalidParams
  3038. }
  3039. return nil
  3040. }
  3041. // SetIdleTimeout sets the IdleTimeout field's value.
  3042. func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings {
  3043. s.IdleTimeout = &v
  3044. return s
  3045. }
  3046. // Contains the parameters for CreateAppCookieStickinessPolicy.
  3047. type CreateAppCookieStickinessPolicyInput struct {
  3048. _ struct{} `type:"structure"`
  3049. // The name of the application cookie used for stickiness.
  3050. //
  3051. // CookieName is a required field
  3052. CookieName *string `type:"string" required:"true"`
  3053. // The name of the load balancer.
  3054. //
  3055. // LoadBalancerName is a required field
  3056. LoadBalancerName *string `type:"string" required:"true"`
  3057. // The name of the policy being created. Policy names must consist of alphanumeric
  3058. // characters and dashes (-). This name must be unique within the set of policies
  3059. // for this load balancer.
  3060. //
  3061. // PolicyName is a required field
  3062. PolicyName *string `type:"string" required:"true"`
  3063. }
  3064. // String returns the string representation
  3065. func (s CreateAppCookieStickinessPolicyInput) String() string {
  3066. return awsutil.Prettify(s)
  3067. }
  3068. // GoString returns the string representation
  3069. func (s CreateAppCookieStickinessPolicyInput) GoString() string {
  3070. return s.String()
  3071. }
  3072. // Validate inspects the fields of the type to determine if they are valid.
  3073. func (s *CreateAppCookieStickinessPolicyInput) Validate() error {
  3074. invalidParams := request.ErrInvalidParams{Context: "CreateAppCookieStickinessPolicyInput"}
  3075. if s.CookieName == nil {
  3076. invalidParams.Add(request.NewErrParamRequired("CookieName"))
  3077. }
  3078. if s.LoadBalancerName == nil {
  3079. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3080. }
  3081. if s.PolicyName == nil {
  3082. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3083. }
  3084. if invalidParams.Len() > 0 {
  3085. return invalidParams
  3086. }
  3087. return nil
  3088. }
  3089. // SetCookieName sets the CookieName field's value.
  3090. func (s *CreateAppCookieStickinessPolicyInput) SetCookieName(v string) *CreateAppCookieStickinessPolicyInput {
  3091. s.CookieName = &v
  3092. return s
  3093. }
  3094. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3095. func (s *CreateAppCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateAppCookieStickinessPolicyInput {
  3096. s.LoadBalancerName = &v
  3097. return s
  3098. }
  3099. // SetPolicyName sets the PolicyName field's value.
  3100. func (s *CreateAppCookieStickinessPolicyInput) SetPolicyName(v string) *CreateAppCookieStickinessPolicyInput {
  3101. s.PolicyName = &v
  3102. return s
  3103. }
  3104. // Contains the output for CreateAppCookieStickinessPolicy.
  3105. type CreateAppCookieStickinessPolicyOutput struct {
  3106. _ struct{} `type:"structure"`
  3107. }
  3108. // String returns the string representation
  3109. func (s CreateAppCookieStickinessPolicyOutput) String() string {
  3110. return awsutil.Prettify(s)
  3111. }
  3112. // GoString returns the string representation
  3113. func (s CreateAppCookieStickinessPolicyOutput) GoString() string {
  3114. return s.String()
  3115. }
  3116. // Contains the parameters for CreateLBCookieStickinessPolicy.
  3117. type CreateLBCookieStickinessPolicyInput struct {
  3118. _ struct{} `type:"structure"`
  3119. // The time period, in seconds, after which the cookie should be considered
  3120. // stale. If you do not specify this parameter, the default value is 0, which
  3121. // indicates that the sticky session should last for the duration of the browser
  3122. // session.
  3123. CookieExpirationPeriod *int64 `type:"long"`
  3124. // The name of the load balancer.
  3125. //
  3126. // LoadBalancerName is a required field
  3127. LoadBalancerName *string `type:"string" required:"true"`
  3128. // The name of the policy being created. Policy names must consist of alphanumeric
  3129. // characters and dashes (-). This name must be unique within the set of policies
  3130. // for this load balancer.
  3131. //
  3132. // PolicyName is a required field
  3133. PolicyName *string `type:"string" required:"true"`
  3134. }
  3135. // String returns the string representation
  3136. func (s CreateLBCookieStickinessPolicyInput) String() string {
  3137. return awsutil.Prettify(s)
  3138. }
  3139. // GoString returns the string representation
  3140. func (s CreateLBCookieStickinessPolicyInput) GoString() string {
  3141. return s.String()
  3142. }
  3143. // Validate inspects the fields of the type to determine if they are valid.
  3144. func (s *CreateLBCookieStickinessPolicyInput) Validate() error {
  3145. invalidParams := request.ErrInvalidParams{Context: "CreateLBCookieStickinessPolicyInput"}
  3146. if s.LoadBalancerName == nil {
  3147. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3148. }
  3149. if s.PolicyName == nil {
  3150. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3151. }
  3152. if invalidParams.Len() > 0 {
  3153. return invalidParams
  3154. }
  3155. return nil
  3156. }
  3157. // SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.
  3158. func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput {
  3159. s.CookieExpirationPeriod = &v
  3160. return s
  3161. }
  3162. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3163. func (s *CreateLBCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateLBCookieStickinessPolicyInput {
  3164. s.LoadBalancerName = &v
  3165. return s
  3166. }
  3167. // SetPolicyName sets the PolicyName field's value.
  3168. func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput {
  3169. s.PolicyName = &v
  3170. return s
  3171. }
  3172. // Contains the output for CreateLBCookieStickinessPolicy.
  3173. type CreateLBCookieStickinessPolicyOutput struct {
  3174. _ struct{} `type:"structure"`
  3175. }
  3176. // String returns the string representation
  3177. func (s CreateLBCookieStickinessPolicyOutput) String() string {
  3178. return awsutil.Prettify(s)
  3179. }
  3180. // GoString returns the string representation
  3181. func (s CreateLBCookieStickinessPolicyOutput) GoString() string {
  3182. return s.String()
  3183. }
  3184. // Contains the parameters for CreateLoadBalancer.
  3185. type CreateLoadBalancerInput struct {
  3186. _ struct{} `type:"structure"`
  3187. // One or more Availability Zones from the same region as the load balancer.
  3188. //
  3189. // You must specify at least one Availability Zone.
  3190. //
  3191. // You can add more Availability Zones after you create the load balancer using
  3192. // EnableAvailabilityZonesForLoadBalancer.
  3193. AvailabilityZones []*string `type:"list"`
  3194. // The listeners.
  3195. //
  3196. // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  3197. // in the Classic Load Balancers Guide.
  3198. //
  3199. // Listeners is a required field
  3200. Listeners []*Listener `type:"list" required:"true"`
  3201. // The name of the load balancer.
  3202. //
  3203. // This name must be unique within your set of load balancers for the region,
  3204. // must have a maximum of 32 characters, must contain only alphanumeric characters
  3205. // or hyphens, and cannot begin or end with a hyphen.
  3206. //
  3207. // LoadBalancerName is a required field
  3208. LoadBalancerName *string `type:"string" required:"true"`
  3209. // The type of a load balancer. Valid only for load balancers in a VPC.
  3210. //
  3211. // By default, Elastic Load Balancing creates an Internet-facing load balancer
  3212. // with a DNS name that resolves to public IP addresses. For more information
  3213. // about Internet-facing and Internal load balancers, see Load Balancer Scheme
  3214. // (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme)
  3215. // in the Elastic Load Balancing User Guide.
  3216. //
  3217. // Specify internal to create a load balancer with a DNS name that resolves
  3218. // to private IP addresses.
  3219. Scheme *string `type:"string"`
  3220. // The IDs of the security groups to assign to the load balancer.
  3221. SecurityGroups []*string `type:"list"`
  3222. // The IDs of the subnets in your VPC to attach to the load balancer. Specify
  3223. // one subnet per Availability Zone specified in AvailabilityZones.
  3224. Subnets []*string `type:"list"`
  3225. // A list of tags to assign to the load balancer.
  3226. //
  3227. // For more information about tagging your load balancer, see Tag Your Classic
  3228. // Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
  3229. // in the Classic Load Balancers Guide.
  3230. Tags []*Tag `min:"1" type:"list"`
  3231. }
  3232. // String returns the string representation
  3233. func (s CreateLoadBalancerInput) String() string {
  3234. return awsutil.Prettify(s)
  3235. }
  3236. // GoString returns the string representation
  3237. func (s CreateLoadBalancerInput) GoString() string {
  3238. return s.String()
  3239. }
  3240. // Validate inspects the fields of the type to determine if they are valid.
  3241. func (s *CreateLoadBalancerInput) Validate() error {
  3242. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"}
  3243. if s.Listeners == nil {
  3244. invalidParams.Add(request.NewErrParamRequired("Listeners"))
  3245. }
  3246. if s.LoadBalancerName == nil {
  3247. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3248. }
  3249. if s.Tags != nil && len(s.Tags) < 1 {
  3250. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  3251. }
  3252. if s.Listeners != nil {
  3253. for i, v := range s.Listeners {
  3254. if v == nil {
  3255. continue
  3256. }
  3257. if err := v.Validate(); err != nil {
  3258. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
  3259. }
  3260. }
  3261. }
  3262. if s.Tags != nil {
  3263. for i, v := range s.Tags {
  3264. if v == nil {
  3265. continue
  3266. }
  3267. if err := v.Validate(); err != nil {
  3268. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3269. }
  3270. }
  3271. }
  3272. if invalidParams.Len() > 0 {
  3273. return invalidParams
  3274. }
  3275. return nil
  3276. }
  3277. // SetAvailabilityZones sets the AvailabilityZones field's value.
  3278. func (s *CreateLoadBalancerInput) SetAvailabilityZones(v []*string) *CreateLoadBalancerInput {
  3279. s.AvailabilityZones = v
  3280. return s
  3281. }
  3282. // SetListeners sets the Listeners field's value.
  3283. func (s *CreateLoadBalancerInput) SetListeners(v []*Listener) *CreateLoadBalancerInput {
  3284. s.Listeners = v
  3285. return s
  3286. }
  3287. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3288. func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput {
  3289. s.LoadBalancerName = &v
  3290. return s
  3291. }
  3292. // SetScheme sets the Scheme field's value.
  3293. func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput {
  3294. s.Scheme = &v
  3295. return s
  3296. }
  3297. // SetSecurityGroups sets the SecurityGroups field's value.
  3298. func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput {
  3299. s.SecurityGroups = v
  3300. return s
  3301. }
  3302. // SetSubnets sets the Subnets field's value.
  3303. func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput {
  3304. s.Subnets = v
  3305. return s
  3306. }
  3307. // SetTags sets the Tags field's value.
  3308. func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput {
  3309. s.Tags = v
  3310. return s
  3311. }
  3312. // Contains the parameters for CreateLoadBalancerListeners.
  3313. type CreateLoadBalancerListenersInput struct {
  3314. _ struct{} `type:"structure"`
  3315. // The listeners.
  3316. //
  3317. // Listeners is a required field
  3318. Listeners []*Listener `type:"list" required:"true"`
  3319. // The name of the load balancer.
  3320. //
  3321. // LoadBalancerName is a required field
  3322. LoadBalancerName *string `type:"string" required:"true"`
  3323. }
  3324. // String returns the string representation
  3325. func (s CreateLoadBalancerListenersInput) String() string {
  3326. return awsutil.Prettify(s)
  3327. }
  3328. // GoString returns the string representation
  3329. func (s CreateLoadBalancerListenersInput) GoString() string {
  3330. return s.String()
  3331. }
  3332. // Validate inspects the fields of the type to determine if they are valid.
  3333. func (s *CreateLoadBalancerListenersInput) Validate() error {
  3334. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerListenersInput"}
  3335. if s.Listeners == nil {
  3336. invalidParams.Add(request.NewErrParamRequired("Listeners"))
  3337. }
  3338. if s.LoadBalancerName == nil {
  3339. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3340. }
  3341. if s.Listeners != nil {
  3342. for i, v := range s.Listeners {
  3343. if v == nil {
  3344. continue
  3345. }
  3346. if err := v.Validate(); err != nil {
  3347. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
  3348. }
  3349. }
  3350. }
  3351. if invalidParams.Len() > 0 {
  3352. return invalidParams
  3353. }
  3354. return nil
  3355. }
  3356. // SetListeners sets the Listeners field's value.
  3357. func (s *CreateLoadBalancerListenersInput) SetListeners(v []*Listener) *CreateLoadBalancerListenersInput {
  3358. s.Listeners = v
  3359. return s
  3360. }
  3361. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3362. func (s *CreateLoadBalancerListenersInput) SetLoadBalancerName(v string) *CreateLoadBalancerListenersInput {
  3363. s.LoadBalancerName = &v
  3364. return s
  3365. }
  3366. // Contains the parameters for CreateLoadBalancerListener.
  3367. type CreateLoadBalancerListenersOutput struct {
  3368. _ struct{} `type:"structure"`
  3369. }
  3370. // String returns the string representation
  3371. func (s CreateLoadBalancerListenersOutput) String() string {
  3372. return awsutil.Prettify(s)
  3373. }
  3374. // GoString returns the string representation
  3375. func (s CreateLoadBalancerListenersOutput) GoString() string {
  3376. return s.String()
  3377. }
  3378. // Contains the output for CreateLoadBalancer.
  3379. type CreateLoadBalancerOutput struct {
  3380. _ struct{} `type:"structure"`
  3381. // The DNS name of the load balancer.
  3382. DNSName *string `type:"string"`
  3383. }
  3384. // String returns the string representation
  3385. func (s CreateLoadBalancerOutput) String() string {
  3386. return awsutil.Prettify(s)
  3387. }
  3388. // GoString returns the string representation
  3389. func (s CreateLoadBalancerOutput) GoString() string {
  3390. return s.String()
  3391. }
  3392. // SetDNSName sets the DNSName field's value.
  3393. func (s *CreateLoadBalancerOutput) SetDNSName(v string) *CreateLoadBalancerOutput {
  3394. s.DNSName = &v
  3395. return s
  3396. }
  3397. // Contains the parameters for CreateLoadBalancerPolicy.
  3398. type CreateLoadBalancerPolicyInput struct {
  3399. _ struct{} `type:"structure"`
  3400. // The name of the load balancer.
  3401. //
  3402. // LoadBalancerName is a required field
  3403. LoadBalancerName *string `type:"string" required:"true"`
  3404. // The policy attributes.
  3405. PolicyAttributes []*PolicyAttribute `type:"list"`
  3406. // The name of the load balancer policy to be created. This name must be unique
  3407. // within the set of policies for this load balancer.
  3408. //
  3409. // PolicyName is a required field
  3410. PolicyName *string `type:"string" required:"true"`
  3411. // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
  3412. //
  3413. // PolicyTypeName is a required field
  3414. PolicyTypeName *string `type:"string" required:"true"`
  3415. }
  3416. // String returns the string representation
  3417. func (s CreateLoadBalancerPolicyInput) String() string {
  3418. return awsutil.Prettify(s)
  3419. }
  3420. // GoString returns the string representation
  3421. func (s CreateLoadBalancerPolicyInput) GoString() string {
  3422. return s.String()
  3423. }
  3424. // Validate inspects the fields of the type to determine if they are valid.
  3425. func (s *CreateLoadBalancerPolicyInput) Validate() error {
  3426. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerPolicyInput"}
  3427. if s.LoadBalancerName == nil {
  3428. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3429. }
  3430. if s.PolicyName == nil {
  3431. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3432. }
  3433. if s.PolicyTypeName == nil {
  3434. invalidParams.Add(request.NewErrParamRequired("PolicyTypeName"))
  3435. }
  3436. if invalidParams.Len() > 0 {
  3437. return invalidParams
  3438. }
  3439. return nil
  3440. }
  3441. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3442. func (s *CreateLoadBalancerPolicyInput) SetLoadBalancerName(v string) *CreateLoadBalancerPolicyInput {
  3443. s.LoadBalancerName = &v
  3444. return s
  3445. }
  3446. // SetPolicyAttributes sets the PolicyAttributes field's value.
  3447. func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput {
  3448. s.PolicyAttributes = v
  3449. return s
  3450. }
  3451. // SetPolicyName sets the PolicyName field's value.
  3452. func (s *CreateLoadBalancerPolicyInput) SetPolicyName(v string) *CreateLoadBalancerPolicyInput {
  3453. s.PolicyName = &v
  3454. return s
  3455. }
  3456. // SetPolicyTypeName sets the PolicyTypeName field's value.
  3457. func (s *CreateLoadBalancerPolicyInput) SetPolicyTypeName(v string) *CreateLoadBalancerPolicyInput {
  3458. s.PolicyTypeName = &v
  3459. return s
  3460. }
  3461. // Contains the output of CreateLoadBalancerPolicy.
  3462. type CreateLoadBalancerPolicyOutput struct {
  3463. _ struct{} `type:"structure"`
  3464. }
  3465. // String returns the string representation
  3466. func (s CreateLoadBalancerPolicyOutput) String() string {
  3467. return awsutil.Prettify(s)
  3468. }
  3469. // GoString returns the string representation
  3470. func (s CreateLoadBalancerPolicyOutput) GoString() string {
  3471. return s.String()
  3472. }
  3473. // Information about the CrossZoneLoadBalancing attribute.
  3474. type CrossZoneLoadBalancing struct {
  3475. _ struct{} `type:"structure"`
  3476. // Specifies whether cross-zone load balancing is enabled for the load balancer.
  3477. //
  3478. // Enabled is a required field
  3479. Enabled *bool `type:"boolean" required:"true"`
  3480. }
  3481. // String returns the string representation
  3482. func (s CrossZoneLoadBalancing) String() string {
  3483. return awsutil.Prettify(s)
  3484. }
  3485. // GoString returns the string representation
  3486. func (s CrossZoneLoadBalancing) GoString() string {
  3487. return s.String()
  3488. }
  3489. // Validate inspects the fields of the type to determine if they are valid.
  3490. func (s *CrossZoneLoadBalancing) Validate() error {
  3491. invalidParams := request.ErrInvalidParams{Context: "CrossZoneLoadBalancing"}
  3492. if s.Enabled == nil {
  3493. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  3494. }
  3495. if invalidParams.Len() > 0 {
  3496. return invalidParams
  3497. }
  3498. return nil
  3499. }
  3500. // SetEnabled sets the Enabled field's value.
  3501. func (s *CrossZoneLoadBalancing) SetEnabled(v bool) *CrossZoneLoadBalancing {
  3502. s.Enabled = &v
  3503. return s
  3504. }
  3505. // Contains the parameters for DeleteLoadBalancer.
  3506. type DeleteLoadBalancerInput struct {
  3507. _ struct{} `type:"structure"`
  3508. // The name of the load balancer.
  3509. //
  3510. // LoadBalancerName is a required field
  3511. LoadBalancerName *string `type:"string" required:"true"`
  3512. }
  3513. // String returns the string representation
  3514. func (s DeleteLoadBalancerInput) String() string {
  3515. return awsutil.Prettify(s)
  3516. }
  3517. // GoString returns the string representation
  3518. func (s DeleteLoadBalancerInput) GoString() string {
  3519. return s.String()
  3520. }
  3521. // Validate inspects the fields of the type to determine if they are valid.
  3522. func (s *DeleteLoadBalancerInput) Validate() error {
  3523. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"}
  3524. if s.LoadBalancerName == nil {
  3525. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3526. }
  3527. if invalidParams.Len() > 0 {
  3528. return invalidParams
  3529. }
  3530. return nil
  3531. }
  3532. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3533. func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput {
  3534. s.LoadBalancerName = &v
  3535. return s
  3536. }
  3537. // Contains the parameters for DeleteLoadBalancerListeners.
  3538. type DeleteLoadBalancerListenersInput struct {
  3539. _ struct{} `type:"structure"`
  3540. // The name of the load balancer.
  3541. //
  3542. // LoadBalancerName is a required field
  3543. LoadBalancerName *string `type:"string" required:"true"`
  3544. // The client port numbers of the listeners.
  3545. //
  3546. // LoadBalancerPorts is a required field
  3547. LoadBalancerPorts []*int64 `type:"list" required:"true"`
  3548. }
  3549. // String returns the string representation
  3550. func (s DeleteLoadBalancerListenersInput) String() string {
  3551. return awsutil.Prettify(s)
  3552. }
  3553. // GoString returns the string representation
  3554. func (s DeleteLoadBalancerListenersInput) GoString() string {
  3555. return s.String()
  3556. }
  3557. // Validate inspects the fields of the type to determine if they are valid.
  3558. func (s *DeleteLoadBalancerListenersInput) Validate() error {
  3559. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerListenersInput"}
  3560. if s.LoadBalancerName == nil {
  3561. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3562. }
  3563. if s.LoadBalancerPorts == nil {
  3564. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPorts"))
  3565. }
  3566. if invalidParams.Len() > 0 {
  3567. return invalidParams
  3568. }
  3569. return nil
  3570. }
  3571. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3572. func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerName(v string) *DeleteLoadBalancerListenersInput {
  3573. s.LoadBalancerName = &v
  3574. return s
  3575. }
  3576. // SetLoadBalancerPorts sets the LoadBalancerPorts field's value.
  3577. func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput {
  3578. s.LoadBalancerPorts = v
  3579. return s
  3580. }
  3581. // Contains the output of DeleteLoadBalancerListeners.
  3582. type DeleteLoadBalancerListenersOutput struct {
  3583. _ struct{} `type:"structure"`
  3584. }
  3585. // String returns the string representation
  3586. func (s DeleteLoadBalancerListenersOutput) String() string {
  3587. return awsutil.Prettify(s)
  3588. }
  3589. // GoString returns the string representation
  3590. func (s DeleteLoadBalancerListenersOutput) GoString() string {
  3591. return s.String()
  3592. }
  3593. // Contains the output of DeleteLoadBalancer.
  3594. type DeleteLoadBalancerOutput struct {
  3595. _ struct{} `type:"structure"`
  3596. }
  3597. // String returns the string representation
  3598. func (s DeleteLoadBalancerOutput) String() string {
  3599. return awsutil.Prettify(s)
  3600. }
  3601. // GoString returns the string representation
  3602. func (s DeleteLoadBalancerOutput) GoString() string {
  3603. return s.String()
  3604. }
  3605. // Contains the parameters for DeleteLoadBalancerPolicy.
  3606. type DeleteLoadBalancerPolicyInput struct {
  3607. _ struct{} `type:"structure"`
  3608. // The name of the load balancer.
  3609. //
  3610. // LoadBalancerName is a required field
  3611. LoadBalancerName *string `type:"string" required:"true"`
  3612. // The name of the policy.
  3613. //
  3614. // PolicyName is a required field
  3615. PolicyName *string `type:"string" required:"true"`
  3616. }
  3617. // String returns the string representation
  3618. func (s DeleteLoadBalancerPolicyInput) String() string {
  3619. return awsutil.Prettify(s)
  3620. }
  3621. // GoString returns the string representation
  3622. func (s DeleteLoadBalancerPolicyInput) GoString() string {
  3623. return s.String()
  3624. }
  3625. // Validate inspects the fields of the type to determine if they are valid.
  3626. func (s *DeleteLoadBalancerPolicyInput) Validate() error {
  3627. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerPolicyInput"}
  3628. if s.LoadBalancerName == nil {
  3629. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3630. }
  3631. if s.PolicyName == nil {
  3632. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3633. }
  3634. if invalidParams.Len() > 0 {
  3635. return invalidParams
  3636. }
  3637. return nil
  3638. }
  3639. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3640. func (s *DeleteLoadBalancerPolicyInput) SetLoadBalancerName(v string) *DeleteLoadBalancerPolicyInput {
  3641. s.LoadBalancerName = &v
  3642. return s
  3643. }
  3644. // SetPolicyName sets the PolicyName field's value.
  3645. func (s *DeleteLoadBalancerPolicyInput) SetPolicyName(v string) *DeleteLoadBalancerPolicyInput {
  3646. s.PolicyName = &v
  3647. return s
  3648. }
  3649. // Contains the output of DeleteLoadBalancerPolicy.
  3650. type DeleteLoadBalancerPolicyOutput struct {
  3651. _ struct{} `type:"structure"`
  3652. }
  3653. // String returns the string representation
  3654. func (s DeleteLoadBalancerPolicyOutput) String() string {
  3655. return awsutil.Prettify(s)
  3656. }
  3657. // GoString returns the string representation
  3658. func (s DeleteLoadBalancerPolicyOutput) GoString() string {
  3659. return s.String()
  3660. }
  3661. // Contains the parameters for DeregisterInstancesFromLoadBalancer.
  3662. type DeregisterInstancesFromLoadBalancerInput struct {
  3663. _ struct{} `type:"structure"`
  3664. // The IDs of the instances.
  3665. //
  3666. // Instances is a required field
  3667. Instances []*Instance `type:"list" required:"true"`
  3668. // The name of the load balancer.
  3669. //
  3670. // LoadBalancerName is a required field
  3671. LoadBalancerName *string `type:"string" required:"true"`
  3672. }
  3673. // String returns the string representation
  3674. func (s DeregisterInstancesFromLoadBalancerInput) String() string {
  3675. return awsutil.Prettify(s)
  3676. }
  3677. // GoString returns the string representation
  3678. func (s DeregisterInstancesFromLoadBalancerInput) GoString() string {
  3679. return s.String()
  3680. }
  3681. // Validate inspects the fields of the type to determine if they are valid.
  3682. func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error {
  3683. invalidParams := request.ErrInvalidParams{Context: "DeregisterInstancesFromLoadBalancerInput"}
  3684. if s.Instances == nil {
  3685. invalidParams.Add(request.NewErrParamRequired("Instances"))
  3686. }
  3687. if s.LoadBalancerName == nil {
  3688. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3689. }
  3690. if invalidParams.Len() > 0 {
  3691. return invalidParams
  3692. }
  3693. return nil
  3694. }
  3695. // SetInstances sets the Instances field's value.
  3696. func (s *DeregisterInstancesFromLoadBalancerInput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerInput {
  3697. s.Instances = v
  3698. return s
  3699. }
  3700. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3701. func (s *DeregisterInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DeregisterInstancesFromLoadBalancerInput {
  3702. s.LoadBalancerName = &v
  3703. return s
  3704. }
  3705. // Contains the output of DeregisterInstancesFromLoadBalancer.
  3706. type DeregisterInstancesFromLoadBalancerOutput struct {
  3707. _ struct{} `type:"structure"`
  3708. // The remaining instances registered with the load balancer.
  3709. Instances []*Instance `type:"list"`
  3710. }
  3711. // String returns the string representation
  3712. func (s DeregisterInstancesFromLoadBalancerOutput) String() string {
  3713. return awsutil.Prettify(s)
  3714. }
  3715. // GoString returns the string representation
  3716. func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string {
  3717. return s.String()
  3718. }
  3719. // SetInstances sets the Instances field's value.
  3720. func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerOutput {
  3721. s.Instances = v
  3722. return s
  3723. }
  3724. type DescribeAccountLimitsInput struct {
  3725. _ struct{} `type:"structure"`
  3726. // The marker for the next set of results. (You received this marker from a
  3727. // previous call.)
  3728. Marker *string `type:"string"`
  3729. // The maximum number of results to return with this call.
  3730. PageSize *int64 `min:"1" type:"integer"`
  3731. }
  3732. // String returns the string representation
  3733. func (s DescribeAccountLimitsInput) String() string {
  3734. return awsutil.Prettify(s)
  3735. }
  3736. // GoString returns the string representation
  3737. func (s DescribeAccountLimitsInput) GoString() string {
  3738. return s.String()
  3739. }
  3740. // Validate inspects the fields of the type to determine if they are valid.
  3741. func (s *DescribeAccountLimitsInput) Validate() error {
  3742. invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"}
  3743. if s.PageSize != nil && *s.PageSize < 1 {
  3744. invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
  3745. }
  3746. if invalidParams.Len() > 0 {
  3747. return invalidParams
  3748. }
  3749. return nil
  3750. }
  3751. // SetMarker sets the Marker field's value.
  3752. func (s *DescribeAccountLimitsInput) SetMarker(v string) *DescribeAccountLimitsInput {
  3753. s.Marker = &v
  3754. return s
  3755. }
  3756. // SetPageSize sets the PageSize field's value.
  3757. func (s *DescribeAccountLimitsInput) SetPageSize(v int64) *DescribeAccountLimitsInput {
  3758. s.PageSize = &v
  3759. return s
  3760. }
  3761. type DescribeAccountLimitsOutput struct {
  3762. _ struct{} `type:"structure"`
  3763. // Information about the limits.
  3764. Limits []*Limit `type:"list"`
  3765. // The marker to use when requesting the next set of results. If there are no
  3766. // additional results, the string is empty.
  3767. NextMarker *string `type:"string"`
  3768. }
  3769. // String returns the string representation
  3770. func (s DescribeAccountLimitsOutput) String() string {
  3771. return awsutil.Prettify(s)
  3772. }
  3773. // GoString returns the string representation
  3774. func (s DescribeAccountLimitsOutput) GoString() string {
  3775. return s.String()
  3776. }
  3777. // SetLimits sets the Limits field's value.
  3778. func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput {
  3779. s.Limits = v
  3780. return s
  3781. }
  3782. // SetNextMarker sets the NextMarker field's value.
  3783. func (s *DescribeAccountLimitsOutput) SetNextMarker(v string) *DescribeAccountLimitsOutput {
  3784. s.NextMarker = &v
  3785. return s
  3786. }
  3787. // Contains the parameters for DescribeInstanceHealth.
  3788. type DescribeInstanceHealthInput struct {
  3789. _ struct{} `type:"structure"`
  3790. // The IDs of the instances.
  3791. Instances []*Instance `type:"list"`
  3792. // The name of the load balancer.
  3793. //
  3794. // LoadBalancerName is a required field
  3795. LoadBalancerName *string `type:"string" required:"true"`
  3796. }
  3797. // String returns the string representation
  3798. func (s DescribeInstanceHealthInput) String() string {
  3799. return awsutil.Prettify(s)
  3800. }
  3801. // GoString returns the string representation
  3802. func (s DescribeInstanceHealthInput) GoString() string {
  3803. return s.String()
  3804. }
  3805. // Validate inspects the fields of the type to determine if they are valid.
  3806. func (s *DescribeInstanceHealthInput) Validate() error {
  3807. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceHealthInput"}
  3808. if s.LoadBalancerName == nil {
  3809. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3810. }
  3811. if invalidParams.Len() > 0 {
  3812. return invalidParams
  3813. }
  3814. return nil
  3815. }
  3816. // SetInstances sets the Instances field's value.
  3817. func (s *DescribeInstanceHealthInput) SetInstances(v []*Instance) *DescribeInstanceHealthInput {
  3818. s.Instances = v
  3819. return s
  3820. }
  3821. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3822. func (s *DescribeInstanceHealthInput) SetLoadBalancerName(v string) *DescribeInstanceHealthInput {
  3823. s.LoadBalancerName = &v
  3824. return s
  3825. }
  3826. // Contains the output for DescribeInstanceHealth.
  3827. type DescribeInstanceHealthOutput struct {
  3828. _ struct{} `type:"structure"`
  3829. // Information about the health of the instances.
  3830. InstanceStates []*InstanceState `type:"list"`
  3831. }
  3832. // String returns the string representation
  3833. func (s DescribeInstanceHealthOutput) String() string {
  3834. return awsutil.Prettify(s)
  3835. }
  3836. // GoString returns the string representation
  3837. func (s DescribeInstanceHealthOutput) GoString() string {
  3838. return s.String()
  3839. }
  3840. // SetInstanceStates sets the InstanceStates field's value.
  3841. func (s *DescribeInstanceHealthOutput) SetInstanceStates(v []*InstanceState) *DescribeInstanceHealthOutput {
  3842. s.InstanceStates = v
  3843. return s
  3844. }
  3845. // Contains the parameters for DescribeLoadBalancerAttributes.
  3846. type DescribeLoadBalancerAttributesInput struct {
  3847. _ struct{} `type:"structure"`
  3848. // The name of the load balancer.
  3849. //
  3850. // LoadBalancerName is a required field
  3851. LoadBalancerName *string `type:"string" required:"true"`
  3852. }
  3853. // String returns the string representation
  3854. func (s DescribeLoadBalancerAttributesInput) String() string {
  3855. return awsutil.Prettify(s)
  3856. }
  3857. // GoString returns the string representation
  3858. func (s DescribeLoadBalancerAttributesInput) GoString() string {
  3859. return s.String()
  3860. }
  3861. // Validate inspects the fields of the type to determine if they are valid.
  3862. func (s *DescribeLoadBalancerAttributesInput) Validate() error {
  3863. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerAttributesInput"}
  3864. if s.LoadBalancerName == nil {
  3865. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3866. }
  3867. if invalidParams.Len() > 0 {
  3868. return invalidParams
  3869. }
  3870. return nil
  3871. }
  3872. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3873. func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerAttributesInput {
  3874. s.LoadBalancerName = &v
  3875. return s
  3876. }
  3877. // Contains the output of DescribeLoadBalancerAttributes.
  3878. type DescribeLoadBalancerAttributesOutput struct {
  3879. _ struct{} `type:"structure"`
  3880. // Information about the load balancer attributes.
  3881. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  3882. }
  3883. // String returns the string representation
  3884. func (s DescribeLoadBalancerAttributesOutput) String() string {
  3885. return awsutil.Prettify(s)
  3886. }
  3887. // GoString returns the string representation
  3888. func (s DescribeLoadBalancerAttributesOutput) GoString() string {
  3889. return s.String()
  3890. }
  3891. // SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.
  3892. func (s *DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *DescribeLoadBalancerAttributesOutput {
  3893. s.LoadBalancerAttributes = v
  3894. return s
  3895. }
  3896. // Contains the parameters for DescribeLoadBalancerPolicies.
  3897. type DescribeLoadBalancerPoliciesInput struct {
  3898. _ struct{} `type:"structure"`
  3899. // The name of the load balancer.
  3900. LoadBalancerName *string `type:"string"`
  3901. // The names of the policies.
  3902. PolicyNames []*string `type:"list"`
  3903. }
  3904. // String returns the string representation
  3905. func (s DescribeLoadBalancerPoliciesInput) String() string {
  3906. return awsutil.Prettify(s)
  3907. }
  3908. // GoString returns the string representation
  3909. func (s DescribeLoadBalancerPoliciesInput) GoString() string {
  3910. return s.String()
  3911. }
  3912. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3913. func (s *DescribeLoadBalancerPoliciesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerPoliciesInput {
  3914. s.LoadBalancerName = &v
  3915. return s
  3916. }
  3917. // SetPolicyNames sets the PolicyNames field's value.
  3918. func (s *DescribeLoadBalancerPoliciesInput) SetPolicyNames(v []*string) *DescribeLoadBalancerPoliciesInput {
  3919. s.PolicyNames = v
  3920. return s
  3921. }
  3922. // Contains the output of DescribeLoadBalancerPolicies.
  3923. type DescribeLoadBalancerPoliciesOutput struct {
  3924. _ struct{} `type:"structure"`
  3925. // Information about the policies.
  3926. PolicyDescriptions []*PolicyDescription `type:"list"`
  3927. }
  3928. // String returns the string representation
  3929. func (s DescribeLoadBalancerPoliciesOutput) String() string {
  3930. return awsutil.Prettify(s)
  3931. }
  3932. // GoString returns the string representation
  3933. func (s DescribeLoadBalancerPoliciesOutput) GoString() string {
  3934. return s.String()
  3935. }
  3936. // SetPolicyDescriptions sets the PolicyDescriptions field's value.
  3937. func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput {
  3938. s.PolicyDescriptions = v
  3939. return s
  3940. }
  3941. // Contains the parameters for DescribeLoadBalancerPolicyTypes.
  3942. type DescribeLoadBalancerPolicyTypesInput struct {
  3943. _ struct{} `type:"structure"`
  3944. // The names of the policy types. If no names are specified, describes all policy
  3945. // types defined by Elastic Load Balancing.
  3946. PolicyTypeNames []*string `type:"list"`
  3947. }
  3948. // String returns the string representation
  3949. func (s DescribeLoadBalancerPolicyTypesInput) String() string {
  3950. return awsutil.Prettify(s)
  3951. }
  3952. // GoString returns the string representation
  3953. func (s DescribeLoadBalancerPolicyTypesInput) GoString() string {
  3954. return s.String()
  3955. }
  3956. // SetPolicyTypeNames sets the PolicyTypeNames field's value.
  3957. func (s *DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames(v []*string) *DescribeLoadBalancerPolicyTypesInput {
  3958. s.PolicyTypeNames = v
  3959. return s
  3960. }
  3961. // Contains the output of DescribeLoadBalancerPolicyTypes.
  3962. type DescribeLoadBalancerPolicyTypesOutput struct {
  3963. _ struct{} `type:"structure"`
  3964. // Information about the policy types.
  3965. PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
  3966. }
  3967. // String returns the string representation
  3968. func (s DescribeLoadBalancerPolicyTypesOutput) String() string {
  3969. return awsutil.Prettify(s)
  3970. }
  3971. // GoString returns the string representation
  3972. func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string {
  3973. return s.String()
  3974. }
  3975. // SetPolicyTypeDescriptions sets the PolicyTypeDescriptions field's value.
  3976. func (s *DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions(v []*PolicyTypeDescription) *DescribeLoadBalancerPolicyTypesOutput {
  3977. s.PolicyTypeDescriptions = v
  3978. return s
  3979. }
  3980. // Contains the parameters for DescribeLoadBalancers.
  3981. type DescribeLoadBalancersInput struct {
  3982. _ struct{} `type:"structure"`
  3983. // The names of the load balancers.
  3984. LoadBalancerNames []*string `type:"list"`
  3985. // The marker for the next set of results. (You received this marker from a
  3986. // previous call.)
  3987. Marker *string `type:"string"`
  3988. // The maximum number of results to return with this call (a number from 1 to
  3989. // 400). The default is 400.
  3990. PageSize *int64 `min:"1" type:"integer"`
  3991. }
  3992. // String returns the string representation
  3993. func (s DescribeLoadBalancersInput) String() string {
  3994. return awsutil.Prettify(s)
  3995. }
  3996. // GoString returns the string representation
  3997. func (s DescribeLoadBalancersInput) GoString() string {
  3998. return s.String()
  3999. }
  4000. // Validate inspects the fields of the type to determine if they are valid.
  4001. func (s *DescribeLoadBalancersInput) Validate() error {
  4002. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"}
  4003. if s.PageSize != nil && *s.PageSize < 1 {
  4004. invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
  4005. }
  4006. if invalidParams.Len() > 0 {
  4007. return invalidParams
  4008. }
  4009. return nil
  4010. }
  4011. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  4012. func (s *DescribeLoadBalancersInput) SetLoadBalancerNames(v []*string) *DescribeLoadBalancersInput {
  4013. s.LoadBalancerNames = v
  4014. return s
  4015. }
  4016. // SetMarker sets the Marker field's value.
  4017. func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput {
  4018. s.Marker = &v
  4019. return s
  4020. }
  4021. // SetPageSize sets the PageSize field's value.
  4022. func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput {
  4023. s.PageSize = &v
  4024. return s
  4025. }
  4026. // Contains the parameters for DescribeLoadBalancers.
  4027. type DescribeLoadBalancersOutput struct {
  4028. _ struct{} `type:"structure"`
  4029. // Information about the load balancers.
  4030. LoadBalancerDescriptions []*LoadBalancerDescription `type:"list"`
  4031. // The marker to use when requesting the next set of results. If there are no
  4032. // additional results, the string is empty.
  4033. NextMarker *string `type:"string"`
  4034. }
  4035. // String returns the string representation
  4036. func (s DescribeLoadBalancersOutput) String() string {
  4037. return awsutil.Prettify(s)
  4038. }
  4039. // GoString returns the string representation
  4040. func (s DescribeLoadBalancersOutput) GoString() string {
  4041. return s.String()
  4042. }
  4043. // SetLoadBalancerDescriptions sets the LoadBalancerDescriptions field's value.
  4044. func (s *DescribeLoadBalancersOutput) SetLoadBalancerDescriptions(v []*LoadBalancerDescription) *DescribeLoadBalancersOutput {
  4045. s.LoadBalancerDescriptions = v
  4046. return s
  4047. }
  4048. // SetNextMarker sets the NextMarker field's value.
  4049. func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput {
  4050. s.NextMarker = &v
  4051. return s
  4052. }
  4053. // Contains the parameters for DescribeTags.
  4054. type DescribeTagsInput struct {
  4055. _ struct{} `type:"structure"`
  4056. // The names of the load balancers.
  4057. //
  4058. // LoadBalancerNames is a required field
  4059. LoadBalancerNames []*string `min:"1" type:"list" required:"true"`
  4060. }
  4061. // String returns the string representation
  4062. func (s DescribeTagsInput) String() string {
  4063. return awsutil.Prettify(s)
  4064. }
  4065. // GoString returns the string representation
  4066. func (s DescribeTagsInput) GoString() string {
  4067. return s.String()
  4068. }
  4069. // Validate inspects the fields of the type to determine if they are valid.
  4070. func (s *DescribeTagsInput) Validate() error {
  4071. invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  4072. if s.LoadBalancerNames == nil {
  4073. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  4074. }
  4075. if s.LoadBalancerNames != nil && len(s.LoadBalancerNames) < 1 {
  4076. invalidParams.Add(request.NewErrParamMinLen("LoadBalancerNames", 1))
  4077. }
  4078. if invalidParams.Len() > 0 {
  4079. return invalidParams
  4080. }
  4081. return nil
  4082. }
  4083. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  4084. func (s *DescribeTagsInput) SetLoadBalancerNames(v []*string) *DescribeTagsInput {
  4085. s.LoadBalancerNames = v
  4086. return s
  4087. }
  4088. // Contains the output for DescribeTags.
  4089. type DescribeTagsOutput struct {
  4090. _ struct{} `type:"structure"`
  4091. // Information about the tags.
  4092. TagDescriptions []*TagDescription `type:"list"`
  4093. }
  4094. // String returns the string representation
  4095. func (s DescribeTagsOutput) String() string {
  4096. return awsutil.Prettify(s)
  4097. }
  4098. // GoString returns the string representation
  4099. func (s DescribeTagsOutput) GoString() string {
  4100. return s.String()
  4101. }
  4102. // SetTagDescriptions sets the TagDescriptions field's value.
  4103. func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput {
  4104. s.TagDescriptions = v
  4105. return s
  4106. }
  4107. // Contains the parameters for DetachLoadBalancerFromSubnets.
  4108. type DetachLoadBalancerFromSubnetsInput struct {
  4109. _ struct{} `type:"structure"`
  4110. // The name of the load balancer.
  4111. //
  4112. // LoadBalancerName is a required field
  4113. LoadBalancerName *string `type:"string" required:"true"`
  4114. // The IDs of the subnets.
  4115. //
  4116. // Subnets is a required field
  4117. Subnets []*string `type:"list" required:"true"`
  4118. }
  4119. // String returns the string representation
  4120. func (s DetachLoadBalancerFromSubnetsInput) String() string {
  4121. return awsutil.Prettify(s)
  4122. }
  4123. // GoString returns the string representation
  4124. func (s DetachLoadBalancerFromSubnetsInput) GoString() string {
  4125. return s.String()
  4126. }
  4127. // Validate inspects the fields of the type to determine if they are valid.
  4128. func (s *DetachLoadBalancerFromSubnetsInput) Validate() error {
  4129. invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancerFromSubnetsInput"}
  4130. if s.LoadBalancerName == nil {
  4131. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4132. }
  4133. if s.Subnets == nil {
  4134. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  4135. }
  4136. if invalidParams.Len() > 0 {
  4137. return invalidParams
  4138. }
  4139. return nil
  4140. }
  4141. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4142. func (s *DetachLoadBalancerFromSubnetsInput) SetLoadBalancerName(v string) *DetachLoadBalancerFromSubnetsInput {
  4143. s.LoadBalancerName = &v
  4144. return s
  4145. }
  4146. // SetSubnets sets the Subnets field's value.
  4147. func (s *DetachLoadBalancerFromSubnetsInput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsInput {
  4148. s.Subnets = v
  4149. return s
  4150. }
  4151. // Contains the output of DetachLoadBalancerFromSubnets.
  4152. type DetachLoadBalancerFromSubnetsOutput struct {
  4153. _ struct{} `type:"structure"`
  4154. // The IDs of the remaining subnets for the load balancer.
  4155. Subnets []*string `type:"list"`
  4156. }
  4157. // String returns the string representation
  4158. func (s DetachLoadBalancerFromSubnetsOutput) String() string {
  4159. return awsutil.Prettify(s)
  4160. }
  4161. // GoString returns the string representation
  4162. func (s DetachLoadBalancerFromSubnetsOutput) GoString() string {
  4163. return s.String()
  4164. }
  4165. // SetSubnets sets the Subnets field's value.
  4166. func (s *DetachLoadBalancerFromSubnetsOutput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsOutput {
  4167. s.Subnets = v
  4168. return s
  4169. }
  4170. // Contains the parameters for DisableAvailabilityZonesForLoadBalancer.
  4171. type DisableAvailabilityZonesForLoadBalancerInput struct {
  4172. _ struct{} `type:"structure"`
  4173. // The Availability Zones.
  4174. //
  4175. // AvailabilityZones is a required field
  4176. AvailabilityZones []*string `type:"list" required:"true"`
  4177. // The name of the load balancer.
  4178. //
  4179. // LoadBalancerName is a required field
  4180. LoadBalancerName *string `type:"string" required:"true"`
  4181. }
  4182. // String returns the string representation
  4183. func (s DisableAvailabilityZonesForLoadBalancerInput) String() string {
  4184. return awsutil.Prettify(s)
  4185. }
  4186. // GoString returns the string representation
  4187. func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string {
  4188. return s.String()
  4189. }
  4190. // Validate inspects the fields of the type to determine if they are valid.
  4191. func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error {
  4192. invalidParams := request.ErrInvalidParams{Context: "DisableAvailabilityZonesForLoadBalancerInput"}
  4193. if s.AvailabilityZones == nil {
  4194. invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
  4195. }
  4196. if s.LoadBalancerName == nil {
  4197. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4198. }
  4199. if invalidParams.Len() > 0 {
  4200. return invalidParams
  4201. }
  4202. return nil
  4203. }
  4204. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4205. func (s *DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerInput {
  4206. s.AvailabilityZones = v
  4207. return s
  4208. }
  4209. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4210. func (s *DisableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *DisableAvailabilityZonesForLoadBalancerInput {
  4211. s.LoadBalancerName = &v
  4212. return s
  4213. }
  4214. // Contains the output for DisableAvailabilityZonesForLoadBalancer.
  4215. type DisableAvailabilityZonesForLoadBalancerOutput struct {
  4216. _ struct{} `type:"structure"`
  4217. // The remaining Availability Zones for the load balancer.
  4218. AvailabilityZones []*string `type:"list"`
  4219. }
  4220. // String returns the string representation
  4221. func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string {
  4222. return awsutil.Prettify(s)
  4223. }
  4224. // GoString returns the string representation
  4225. func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  4226. return s.String()
  4227. }
  4228. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4229. func (s *DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerOutput {
  4230. s.AvailabilityZones = v
  4231. return s
  4232. }
  4233. // Contains the parameters for EnableAvailabilityZonesForLoadBalancer.
  4234. type EnableAvailabilityZonesForLoadBalancerInput struct {
  4235. _ struct{} `type:"structure"`
  4236. // The Availability Zones. These must be in the same region as the load balancer.
  4237. //
  4238. // AvailabilityZones is a required field
  4239. AvailabilityZones []*string `type:"list" required:"true"`
  4240. // The name of the load balancer.
  4241. //
  4242. // LoadBalancerName is a required field
  4243. LoadBalancerName *string `type:"string" required:"true"`
  4244. }
  4245. // String returns the string representation
  4246. func (s EnableAvailabilityZonesForLoadBalancerInput) String() string {
  4247. return awsutil.Prettify(s)
  4248. }
  4249. // GoString returns the string representation
  4250. func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string {
  4251. return s.String()
  4252. }
  4253. // Validate inspects the fields of the type to determine if they are valid.
  4254. func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error {
  4255. invalidParams := request.ErrInvalidParams{Context: "EnableAvailabilityZonesForLoadBalancerInput"}
  4256. if s.AvailabilityZones == nil {
  4257. invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
  4258. }
  4259. if s.LoadBalancerName == nil {
  4260. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4261. }
  4262. if invalidParams.Len() > 0 {
  4263. return invalidParams
  4264. }
  4265. return nil
  4266. }
  4267. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4268. func (s *EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerInput {
  4269. s.AvailabilityZones = v
  4270. return s
  4271. }
  4272. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4273. func (s *EnableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *EnableAvailabilityZonesForLoadBalancerInput {
  4274. s.LoadBalancerName = &v
  4275. return s
  4276. }
  4277. // Contains the output of EnableAvailabilityZonesForLoadBalancer.
  4278. type EnableAvailabilityZonesForLoadBalancerOutput struct {
  4279. _ struct{} `type:"structure"`
  4280. // The updated list of Availability Zones for the load balancer.
  4281. AvailabilityZones []*string `type:"list"`
  4282. }
  4283. // String returns the string representation
  4284. func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string {
  4285. return awsutil.Prettify(s)
  4286. }
  4287. // GoString returns the string representation
  4288. func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  4289. return s.String()
  4290. }
  4291. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4292. func (s *EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerOutput {
  4293. s.AvailabilityZones = v
  4294. return s
  4295. }
  4296. // Information about a health check.
  4297. type HealthCheck struct {
  4298. _ struct{} `type:"structure"`
  4299. // The number of consecutive health checks successes required before moving
  4300. // the instance to the Healthy state.
  4301. //
  4302. // HealthyThreshold is a required field
  4303. HealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
  4304. // The approximate interval, in seconds, between health checks of an individual
  4305. // instance.
  4306. //
  4307. // Interval is a required field
  4308. Interval *int64 `min:"5" type:"integer" required:"true"`
  4309. // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
  4310. // The range of valid ports is one (1) through 65535.
  4311. //
  4312. // TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
  4313. // In this case, a health check simply attempts to open a TCP connection to
  4314. // the instance on the specified port. Failure to connect within the configured
  4315. // timeout is considered unhealthy.
  4316. //
  4317. // SSL is also specified as SSL: port pair, for example, SSL:5000.
  4318. //
  4319. // For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
  4320. // as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
  4321. // In this case, a HTTP GET request is issued to the instance on the given port
  4322. // and path. Any answer other than "200 OK" within the timeout period is considered
  4323. // unhealthy.
  4324. //
  4325. // The total length of the HTTP ping target must be 1024 16-bit Unicode characters
  4326. // or less.
  4327. //
  4328. // Target is a required field
  4329. Target *string `type:"string" required:"true"`
  4330. // The amount of time, in seconds, during which no response means a failed health
  4331. // check.
  4332. //
  4333. // This value must be less than the Interval value.
  4334. //
  4335. // Timeout is a required field
  4336. Timeout *int64 `min:"2" type:"integer" required:"true"`
  4337. // The number of consecutive health check failures required before moving the
  4338. // instance to the Unhealthy state.
  4339. //
  4340. // UnhealthyThreshold is a required field
  4341. UnhealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
  4342. }
  4343. // String returns the string representation
  4344. func (s HealthCheck) String() string {
  4345. return awsutil.Prettify(s)
  4346. }
  4347. // GoString returns the string representation
  4348. func (s HealthCheck) GoString() string {
  4349. return s.String()
  4350. }
  4351. // Validate inspects the fields of the type to determine if they are valid.
  4352. func (s *HealthCheck) Validate() error {
  4353. invalidParams := request.ErrInvalidParams{Context: "HealthCheck"}
  4354. if s.HealthyThreshold == nil {
  4355. invalidParams.Add(request.NewErrParamRequired("HealthyThreshold"))
  4356. }
  4357. if s.HealthyThreshold != nil && *s.HealthyThreshold < 2 {
  4358. invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 2))
  4359. }
  4360. if s.Interval == nil {
  4361. invalidParams.Add(request.NewErrParamRequired("Interval"))
  4362. }
  4363. if s.Interval != nil && *s.Interval < 5 {
  4364. invalidParams.Add(request.NewErrParamMinValue("Interval", 5))
  4365. }
  4366. if s.Target == nil {
  4367. invalidParams.Add(request.NewErrParamRequired("Target"))
  4368. }
  4369. if s.Timeout == nil {
  4370. invalidParams.Add(request.NewErrParamRequired("Timeout"))
  4371. }
  4372. if s.Timeout != nil && *s.Timeout < 2 {
  4373. invalidParams.Add(request.NewErrParamMinValue("Timeout", 2))
  4374. }
  4375. if s.UnhealthyThreshold == nil {
  4376. invalidParams.Add(request.NewErrParamRequired("UnhealthyThreshold"))
  4377. }
  4378. if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 2 {
  4379. invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 2))
  4380. }
  4381. if invalidParams.Len() > 0 {
  4382. return invalidParams
  4383. }
  4384. return nil
  4385. }
  4386. // SetHealthyThreshold sets the HealthyThreshold field's value.
  4387. func (s *HealthCheck) SetHealthyThreshold(v int64) *HealthCheck {
  4388. s.HealthyThreshold = &v
  4389. return s
  4390. }
  4391. // SetInterval sets the Interval field's value.
  4392. func (s *HealthCheck) SetInterval(v int64) *HealthCheck {
  4393. s.Interval = &v
  4394. return s
  4395. }
  4396. // SetTarget sets the Target field's value.
  4397. func (s *HealthCheck) SetTarget(v string) *HealthCheck {
  4398. s.Target = &v
  4399. return s
  4400. }
  4401. // SetTimeout sets the Timeout field's value.
  4402. func (s *HealthCheck) SetTimeout(v int64) *HealthCheck {
  4403. s.Timeout = &v
  4404. return s
  4405. }
  4406. // SetUnhealthyThreshold sets the UnhealthyThreshold field's value.
  4407. func (s *HealthCheck) SetUnhealthyThreshold(v int64) *HealthCheck {
  4408. s.UnhealthyThreshold = &v
  4409. return s
  4410. }
  4411. // The ID of an EC2 instance.
  4412. type Instance struct {
  4413. _ struct{} `type:"structure"`
  4414. // The instance ID.
  4415. InstanceId *string `type:"string"`
  4416. }
  4417. // String returns the string representation
  4418. func (s Instance) String() string {
  4419. return awsutil.Prettify(s)
  4420. }
  4421. // GoString returns the string representation
  4422. func (s Instance) GoString() string {
  4423. return s.String()
  4424. }
  4425. // SetInstanceId sets the InstanceId field's value.
  4426. func (s *Instance) SetInstanceId(v string) *Instance {
  4427. s.InstanceId = &v
  4428. return s
  4429. }
  4430. // Information about the state of an EC2 instance.
  4431. type InstanceState struct {
  4432. _ struct{} `type:"structure"`
  4433. // A description of the instance state. This string can contain one or more
  4434. // of the following messages.
  4435. //
  4436. // * N/A
  4437. //
  4438. // * A transient error occurred. Please try again later.
  4439. //
  4440. // * Instance has failed at least the UnhealthyThreshold number of health
  4441. // checks consecutively.
  4442. //
  4443. // * Instance has not passed the configured HealthyThreshold number of health
  4444. // checks consecutively.
  4445. //
  4446. // * Instance registration is still in progress.
  4447. //
  4448. // * Instance is in the EC2 Availability Zone for which LoadBalancer is not
  4449. // configured to route traffic to.
  4450. //
  4451. // * Instance is not currently registered with the LoadBalancer.
  4452. //
  4453. // * Instance deregistration currently in progress.
  4454. //
  4455. // * Disable Availability Zone is currently in progress.
  4456. //
  4457. // * Instance is in pending state.
  4458. //
  4459. // * Instance is in stopped state.
  4460. //
  4461. // * Instance is in terminated state.
  4462. Description *string `type:"string"`
  4463. // The ID of the instance.
  4464. InstanceId *string `type:"string"`
  4465. // Information about the cause of OutOfService instances. Specifically, whether
  4466. // the cause is Elastic Load Balancing or the instance.
  4467. //
  4468. // Valid values: ELB | Instance | N/A
  4469. ReasonCode *string `type:"string"`
  4470. // The current state of the instance.
  4471. //
  4472. // Valid values: InService | OutOfService | Unknown
  4473. State *string `type:"string"`
  4474. }
  4475. // String returns the string representation
  4476. func (s InstanceState) String() string {
  4477. return awsutil.Prettify(s)
  4478. }
  4479. // GoString returns the string representation
  4480. func (s InstanceState) GoString() string {
  4481. return s.String()
  4482. }
  4483. // SetDescription sets the Description field's value.
  4484. func (s *InstanceState) SetDescription(v string) *InstanceState {
  4485. s.Description = &v
  4486. return s
  4487. }
  4488. // SetInstanceId sets the InstanceId field's value.
  4489. func (s *InstanceState) SetInstanceId(v string) *InstanceState {
  4490. s.InstanceId = &v
  4491. return s
  4492. }
  4493. // SetReasonCode sets the ReasonCode field's value.
  4494. func (s *InstanceState) SetReasonCode(v string) *InstanceState {
  4495. s.ReasonCode = &v
  4496. return s
  4497. }
  4498. // SetState sets the State field's value.
  4499. func (s *InstanceState) SetState(v string) *InstanceState {
  4500. s.State = &v
  4501. return s
  4502. }
  4503. // Information about a policy for duration-based session stickiness.
  4504. type LBCookieStickinessPolicy struct {
  4505. _ struct{} `type:"structure"`
  4506. // The time period, in seconds, after which the cookie should be considered
  4507. // stale. If this parameter is not specified, the stickiness session lasts for
  4508. // the duration of the browser session.
  4509. CookieExpirationPeriod *int64 `type:"long"`
  4510. // The name of the policy. This name must be unique within the set of policies
  4511. // for this load balancer.
  4512. PolicyName *string `type:"string"`
  4513. }
  4514. // String returns the string representation
  4515. func (s LBCookieStickinessPolicy) String() string {
  4516. return awsutil.Prettify(s)
  4517. }
  4518. // GoString returns the string representation
  4519. func (s LBCookieStickinessPolicy) GoString() string {
  4520. return s.String()
  4521. }
  4522. // SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.
  4523. func (s *LBCookieStickinessPolicy) SetCookieExpirationPeriod(v int64) *LBCookieStickinessPolicy {
  4524. s.CookieExpirationPeriod = &v
  4525. return s
  4526. }
  4527. // SetPolicyName sets the PolicyName field's value.
  4528. func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPolicy {
  4529. s.PolicyName = &v
  4530. return s
  4531. }
  4532. // Information about an Elastic Load Balancing resource limit for your AWS account.
  4533. type Limit struct {
  4534. _ struct{} `type:"structure"`
  4535. // The maximum value of the limit.
  4536. Max *string `type:"string"`
  4537. // The name of the limit. The possible values are:
  4538. //
  4539. // * classic-listeners
  4540. //
  4541. // * classic-load-balancers
  4542. //
  4543. // * classic-registered-instances
  4544. Name *string `type:"string"`
  4545. }
  4546. // String returns the string representation
  4547. func (s Limit) String() string {
  4548. return awsutil.Prettify(s)
  4549. }
  4550. // GoString returns the string representation
  4551. func (s Limit) GoString() string {
  4552. return s.String()
  4553. }
  4554. // SetMax sets the Max field's value.
  4555. func (s *Limit) SetMax(v string) *Limit {
  4556. s.Max = &v
  4557. return s
  4558. }
  4559. // SetName sets the Name field's value.
  4560. func (s *Limit) SetName(v string) *Limit {
  4561. s.Name = &v
  4562. return s
  4563. }
  4564. // Information about a listener.
  4565. //
  4566. // For information about the protocols and the ports supported by Elastic Load
  4567. // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  4568. // in the Classic Load Balancers Guide.
  4569. type Listener struct {
  4570. _ struct{} `type:"structure"`
  4571. // The port on which the instance is listening.
  4572. //
  4573. // InstancePort is a required field
  4574. InstancePort *int64 `min:"1" type:"integer" required:"true"`
  4575. // The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or
  4576. // SSL.
  4577. //
  4578. // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must
  4579. // be at the same protocol.
  4580. //
  4581. // If there is another listener with the same InstancePort whose InstanceProtocol
  4582. // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
  4583. //
  4584. // If there is another listener with the same InstancePort whose InstanceProtocol
  4585. // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
  4586. InstanceProtocol *string `type:"string"`
  4587. // The port on which the load balancer is listening. On EC2-VPC, you can specify
  4588. // any port from the range 1-65535. On EC2-Classic, you can specify any port
  4589. // from the following list: 25, 80, 443, 465, 587, 1024-65535.
  4590. //
  4591. // LoadBalancerPort is a required field
  4592. LoadBalancerPort *int64 `type:"integer" required:"true"`
  4593. // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
  4594. // or SSL.
  4595. //
  4596. // Protocol is a required field
  4597. Protocol *string `type:"string" required:"true"`
  4598. // The Amazon Resource Name (ARN) of the server certificate.
  4599. SSLCertificateId *string `type:"string"`
  4600. }
  4601. // String returns the string representation
  4602. func (s Listener) String() string {
  4603. return awsutil.Prettify(s)
  4604. }
  4605. // GoString returns the string representation
  4606. func (s Listener) GoString() string {
  4607. return s.String()
  4608. }
  4609. // Validate inspects the fields of the type to determine if they are valid.
  4610. func (s *Listener) Validate() error {
  4611. invalidParams := request.ErrInvalidParams{Context: "Listener"}
  4612. if s.InstancePort == nil {
  4613. invalidParams.Add(request.NewErrParamRequired("InstancePort"))
  4614. }
  4615. if s.InstancePort != nil && *s.InstancePort < 1 {
  4616. invalidParams.Add(request.NewErrParamMinValue("InstancePort", 1))
  4617. }
  4618. if s.LoadBalancerPort == nil {
  4619. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  4620. }
  4621. if s.Protocol == nil {
  4622. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  4623. }
  4624. if invalidParams.Len() > 0 {
  4625. return invalidParams
  4626. }
  4627. return nil
  4628. }
  4629. // SetInstancePort sets the InstancePort field's value.
  4630. func (s *Listener) SetInstancePort(v int64) *Listener {
  4631. s.InstancePort = &v
  4632. return s
  4633. }
  4634. // SetInstanceProtocol sets the InstanceProtocol field's value.
  4635. func (s *Listener) SetInstanceProtocol(v string) *Listener {
  4636. s.InstanceProtocol = &v
  4637. return s
  4638. }
  4639. // SetLoadBalancerPort sets the LoadBalancerPort field's value.
  4640. func (s *Listener) SetLoadBalancerPort(v int64) *Listener {
  4641. s.LoadBalancerPort = &v
  4642. return s
  4643. }
  4644. // SetProtocol sets the Protocol field's value.
  4645. func (s *Listener) SetProtocol(v string) *Listener {
  4646. s.Protocol = &v
  4647. return s
  4648. }
  4649. // SetSSLCertificateId sets the SSLCertificateId field's value.
  4650. func (s *Listener) SetSSLCertificateId(v string) *Listener {
  4651. s.SSLCertificateId = &v
  4652. return s
  4653. }
  4654. // The policies enabled for a listener.
  4655. type ListenerDescription struct {
  4656. _ struct{} `type:"structure"`
  4657. // The listener.
  4658. Listener *Listener `type:"structure"`
  4659. // The policies. If there are no policies enabled, the list is empty.
  4660. PolicyNames []*string `type:"list"`
  4661. }
  4662. // String returns the string representation
  4663. func (s ListenerDescription) String() string {
  4664. return awsutil.Prettify(s)
  4665. }
  4666. // GoString returns the string representation
  4667. func (s ListenerDescription) GoString() string {
  4668. return s.String()
  4669. }
  4670. // SetListener sets the Listener field's value.
  4671. func (s *ListenerDescription) SetListener(v *Listener) *ListenerDescription {
  4672. s.Listener = v
  4673. return s
  4674. }
  4675. // SetPolicyNames sets the PolicyNames field's value.
  4676. func (s *ListenerDescription) SetPolicyNames(v []*string) *ListenerDescription {
  4677. s.PolicyNames = v
  4678. return s
  4679. }
  4680. // The attributes for a load balancer.
  4681. type LoadBalancerAttributes struct {
  4682. _ struct{} `type:"structure"`
  4683. // If enabled, the load balancer captures detailed information of all requests
  4684. // and delivers the information to the Amazon S3 bucket that you specify.
  4685. //
  4686. // For more information, see Enable Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html)
  4687. // in the Classic Load Balancers Guide.
  4688. AccessLog *AccessLog `type:"structure"`
  4689. // This parameter is reserved.
  4690. AdditionalAttributes []*AdditionalAttribute `type:"list"`
  4691. // If enabled, the load balancer allows existing requests to complete before
  4692. // the load balancer shifts traffic away from a deregistered or unhealthy instance.
  4693. //
  4694. // For more information, see Configure Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
  4695. // in the Classic Load Balancers Guide.
  4696. ConnectionDraining *ConnectionDraining `type:"structure"`
  4697. // If enabled, the load balancer allows the connections to remain idle (no data
  4698. // is sent over the connection) for the specified duration.
  4699. //
  4700. // By default, Elastic Load Balancing maintains a 60-second idle connection
  4701. // timeout for both front-end and back-end connections of your load balancer.
  4702. // For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
  4703. // in the Classic Load Balancers Guide.
  4704. ConnectionSettings *ConnectionSettings `type:"structure"`
  4705. // If enabled, the load balancer routes the request traffic evenly across all
  4706. // instances regardless of the Availability Zones.
  4707. //
  4708. // For more information, see Configure Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
  4709. // in the Classic Load Balancers Guide.
  4710. CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
  4711. }
  4712. // String returns the string representation
  4713. func (s LoadBalancerAttributes) String() string {
  4714. return awsutil.Prettify(s)
  4715. }
  4716. // GoString returns the string representation
  4717. func (s LoadBalancerAttributes) GoString() string {
  4718. return s.String()
  4719. }
  4720. // Validate inspects the fields of the type to determine if they are valid.
  4721. func (s *LoadBalancerAttributes) Validate() error {
  4722. invalidParams := request.ErrInvalidParams{Context: "LoadBalancerAttributes"}
  4723. if s.AccessLog != nil {
  4724. if err := s.AccessLog.Validate(); err != nil {
  4725. invalidParams.AddNested("AccessLog", err.(request.ErrInvalidParams))
  4726. }
  4727. }
  4728. if s.ConnectionDraining != nil {
  4729. if err := s.ConnectionDraining.Validate(); err != nil {
  4730. invalidParams.AddNested("ConnectionDraining", err.(request.ErrInvalidParams))
  4731. }
  4732. }
  4733. if s.ConnectionSettings != nil {
  4734. if err := s.ConnectionSettings.Validate(); err != nil {
  4735. invalidParams.AddNested("ConnectionSettings", err.(request.ErrInvalidParams))
  4736. }
  4737. }
  4738. if s.CrossZoneLoadBalancing != nil {
  4739. if err := s.CrossZoneLoadBalancing.Validate(); err != nil {
  4740. invalidParams.AddNested("CrossZoneLoadBalancing", err.(request.ErrInvalidParams))
  4741. }
  4742. }
  4743. if invalidParams.Len() > 0 {
  4744. return invalidParams
  4745. }
  4746. return nil
  4747. }
  4748. // SetAccessLog sets the AccessLog field's value.
  4749. func (s *LoadBalancerAttributes) SetAccessLog(v *AccessLog) *LoadBalancerAttributes {
  4750. s.AccessLog = v
  4751. return s
  4752. }
  4753. // SetAdditionalAttributes sets the AdditionalAttributes field's value.
  4754. func (s *LoadBalancerAttributes) SetAdditionalAttributes(v []*AdditionalAttribute) *LoadBalancerAttributes {
  4755. s.AdditionalAttributes = v
  4756. return s
  4757. }
  4758. // SetConnectionDraining sets the ConnectionDraining field's value.
  4759. func (s *LoadBalancerAttributes) SetConnectionDraining(v *ConnectionDraining) *LoadBalancerAttributes {
  4760. s.ConnectionDraining = v
  4761. return s
  4762. }
  4763. // SetConnectionSettings sets the ConnectionSettings field's value.
  4764. func (s *LoadBalancerAttributes) SetConnectionSettings(v *ConnectionSettings) *LoadBalancerAttributes {
  4765. s.ConnectionSettings = v
  4766. return s
  4767. }
  4768. // SetCrossZoneLoadBalancing sets the CrossZoneLoadBalancing field's value.
  4769. func (s *LoadBalancerAttributes) SetCrossZoneLoadBalancing(v *CrossZoneLoadBalancing) *LoadBalancerAttributes {
  4770. s.CrossZoneLoadBalancing = v
  4771. return s
  4772. }
  4773. // Information about a load balancer.
  4774. type LoadBalancerDescription struct {
  4775. _ struct{} `type:"structure"`
  4776. // The Availability Zones for the load balancer.
  4777. AvailabilityZones []*string `type:"list"`
  4778. // Information about your EC2 instances.
  4779. BackendServerDescriptions []*BackendServerDescription `type:"list"`
  4780. // The DNS name of the load balancer.
  4781. //
  4782. // For more information, see Configure a Custom Domain Name (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html)
  4783. // in the Classic Load Balancers Guide.
  4784. CanonicalHostedZoneName *string `type:"string"`
  4785. // The ID of the Amazon Route 53 hosted zone for the load balancer.
  4786. CanonicalHostedZoneNameID *string `type:"string"`
  4787. // The date and time the load balancer was created.
  4788. CreatedTime *time.Time `type:"timestamp"`
  4789. // The DNS name of the load balancer.
  4790. DNSName *string `type:"string"`
  4791. // Information about the health checks conducted on the load balancer.
  4792. HealthCheck *HealthCheck `type:"structure"`
  4793. // The IDs of the instances for the load balancer.
  4794. Instances []*Instance `type:"list"`
  4795. // The listeners for the load balancer.
  4796. ListenerDescriptions []*ListenerDescription `type:"list"`
  4797. // The name of the load balancer.
  4798. LoadBalancerName *string `type:"string"`
  4799. // The policies defined for the load balancer.
  4800. Policies *Policies `type:"structure"`
  4801. // The type of load balancer. Valid only for load balancers in a VPC.
  4802. //
  4803. // If Scheme is internet-facing, the load balancer has a public DNS name that
  4804. // resolves to a public IP address.
  4805. //
  4806. // If Scheme is internal, the load balancer has a public DNS name that resolves
  4807. // to a private IP address.
  4808. Scheme *string `type:"string"`
  4809. // The security groups for the load balancer. Valid only for load balancers
  4810. // in a VPC.
  4811. SecurityGroups []*string `type:"list"`
  4812. // The security group for the load balancer, which you can use as part of your
  4813. // inbound rules for your registered instances. To only allow traffic from load
  4814. // balancers, add a security group rule that specifies this source security
  4815. // group as the inbound source.
  4816. SourceSecurityGroup *SourceSecurityGroup `type:"structure"`
  4817. // The IDs of the subnets for the load balancer.
  4818. Subnets []*string `type:"list"`
  4819. // The ID of the VPC for the load balancer.
  4820. VPCId *string `type:"string"`
  4821. }
  4822. // String returns the string representation
  4823. func (s LoadBalancerDescription) String() string {
  4824. return awsutil.Prettify(s)
  4825. }
  4826. // GoString returns the string representation
  4827. func (s LoadBalancerDescription) GoString() string {
  4828. return s.String()
  4829. }
  4830. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4831. func (s *LoadBalancerDescription) SetAvailabilityZones(v []*string) *LoadBalancerDescription {
  4832. s.AvailabilityZones = v
  4833. return s
  4834. }
  4835. // SetBackendServerDescriptions sets the BackendServerDescriptions field's value.
  4836. func (s *LoadBalancerDescription) SetBackendServerDescriptions(v []*BackendServerDescription) *LoadBalancerDescription {
  4837. s.BackendServerDescriptions = v
  4838. return s
  4839. }
  4840. // SetCanonicalHostedZoneName sets the CanonicalHostedZoneName field's value.
  4841. func (s *LoadBalancerDescription) SetCanonicalHostedZoneName(v string) *LoadBalancerDescription {
  4842. s.CanonicalHostedZoneName = &v
  4843. return s
  4844. }
  4845. // SetCanonicalHostedZoneNameID sets the CanonicalHostedZoneNameID field's value.
  4846. func (s *LoadBalancerDescription) SetCanonicalHostedZoneNameID(v string) *LoadBalancerDescription {
  4847. s.CanonicalHostedZoneNameID = &v
  4848. return s
  4849. }
  4850. // SetCreatedTime sets the CreatedTime field's value.
  4851. func (s *LoadBalancerDescription) SetCreatedTime(v time.Time) *LoadBalancerDescription {
  4852. s.CreatedTime = &v
  4853. return s
  4854. }
  4855. // SetDNSName sets the DNSName field's value.
  4856. func (s *LoadBalancerDescription) SetDNSName(v string) *LoadBalancerDescription {
  4857. s.DNSName = &v
  4858. return s
  4859. }
  4860. // SetHealthCheck sets the HealthCheck field's value.
  4861. func (s *LoadBalancerDescription) SetHealthCheck(v *HealthCheck) *LoadBalancerDescription {
  4862. s.HealthCheck = v
  4863. return s
  4864. }
  4865. // SetInstances sets the Instances field's value.
  4866. func (s *LoadBalancerDescription) SetInstances(v []*Instance) *LoadBalancerDescription {
  4867. s.Instances = v
  4868. return s
  4869. }
  4870. // SetListenerDescriptions sets the ListenerDescriptions field's value.
  4871. func (s *LoadBalancerDescription) SetListenerDescriptions(v []*ListenerDescription) *LoadBalancerDescription {
  4872. s.ListenerDescriptions = v
  4873. return s
  4874. }
  4875. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4876. func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription {
  4877. s.LoadBalancerName = &v
  4878. return s
  4879. }
  4880. // SetPolicies sets the Policies field's value.
  4881. func (s *LoadBalancerDescription) SetPolicies(v *Policies) *LoadBalancerDescription {
  4882. s.Policies = v
  4883. return s
  4884. }
  4885. // SetScheme sets the Scheme field's value.
  4886. func (s *LoadBalancerDescription) SetScheme(v string) *LoadBalancerDescription {
  4887. s.Scheme = &v
  4888. return s
  4889. }
  4890. // SetSecurityGroups sets the SecurityGroups field's value.
  4891. func (s *LoadBalancerDescription) SetSecurityGroups(v []*string) *LoadBalancerDescription {
  4892. s.SecurityGroups = v
  4893. return s
  4894. }
  4895. // SetSourceSecurityGroup sets the SourceSecurityGroup field's value.
  4896. func (s *LoadBalancerDescription) SetSourceSecurityGroup(v *SourceSecurityGroup) *LoadBalancerDescription {
  4897. s.SourceSecurityGroup = v
  4898. return s
  4899. }
  4900. // SetSubnets sets the Subnets field's value.
  4901. func (s *LoadBalancerDescription) SetSubnets(v []*string) *LoadBalancerDescription {
  4902. s.Subnets = v
  4903. return s
  4904. }
  4905. // SetVPCId sets the VPCId field's value.
  4906. func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription {
  4907. s.VPCId = &v
  4908. return s
  4909. }
  4910. // Contains the parameters for ModifyLoadBalancerAttributes.
  4911. type ModifyLoadBalancerAttributesInput struct {
  4912. _ struct{} `type:"structure"`
  4913. // The attributes for the load balancer.
  4914. //
  4915. // LoadBalancerAttributes is a required field
  4916. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
  4917. // The name of the load balancer.
  4918. //
  4919. // LoadBalancerName is a required field
  4920. LoadBalancerName *string `type:"string" required:"true"`
  4921. }
  4922. // String returns the string representation
  4923. func (s ModifyLoadBalancerAttributesInput) String() string {
  4924. return awsutil.Prettify(s)
  4925. }
  4926. // GoString returns the string representation
  4927. func (s ModifyLoadBalancerAttributesInput) GoString() string {
  4928. return s.String()
  4929. }
  4930. // Validate inspects the fields of the type to determine if they are valid.
  4931. func (s *ModifyLoadBalancerAttributesInput) Validate() error {
  4932. invalidParams := request.ErrInvalidParams{Context: "ModifyLoadBalancerAttributesInput"}
  4933. if s.LoadBalancerAttributes == nil {
  4934. invalidParams.Add(request.NewErrParamRequired("LoadBalancerAttributes"))
  4935. }
  4936. if s.LoadBalancerName == nil {
  4937. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4938. }
  4939. if s.LoadBalancerAttributes != nil {
  4940. if err := s.LoadBalancerAttributes.Validate(); err != nil {
  4941. invalidParams.AddNested("LoadBalancerAttributes", err.(request.ErrInvalidParams))
  4942. }
  4943. }
  4944. if invalidParams.Len() > 0 {
  4945. return invalidParams
  4946. }
  4947. return nil
  4948. }
  4949. // SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.
  4950. func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesInput {
  4951. s.LoadBalancerAttributes = v
  4952. return s
  4953. }
  4954. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4955. func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesInput {
  4956. s.LoadBalancerName = &v
  4957. return s
  4958. }
  4959. // Contains the output of ModifyLoadBalancerAttributes.
  4960. type ModifyLoadBalancerAttributesOutput struct {
  4961. _ struct{} `type:"structure"`
  4962. // Information about the load balancer attributes.
  4963. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  4964. // The name of the load balancer.
  4965. LoadBalancerName *string `type:"string"`
  4966. }
  4967. // String returns the string representation
  4968. func (s ModifyLoadBalancerAttributesOutput) String() string {
  4969. return awsutil.Prettify(s)
  4970. }
  4971. // GoString returns the string representation
  4972. func (s ModifyLoadBalancerAttributesOutput) GoString() string {
  4973. return s.String()
  4974. }
  4975. // SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.
  4976. func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesOutput {
  4977. s.LoadBalancerAttributes = v
  4978. return s
  4979. }
  4980. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4981. func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesOutput {
  4982. s.LoadBalancerName = &v
  4983. return s
  4984. }
  4985. // The policies for a load balancer.
  4986. type Policies struct {
  4987. _ struct{} `type:"structure"`
  4988. // The stickiness policies created using CreateAppCookieStickinessPolicy.
  4989. AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`
  4990. // The stickiness policies created using CreateLBCookieStickinessPolicy.
  4991. LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`
  4992. // The policies other than the stickiness policies.
  4993. OtherPolicies []*string `type:"list"`
  4994. }
  4995. // String returns the string representation
  4996. func (s Policies) String() string {
  4997. return awsutil.Prettify(s)
  4998. }
  4999. // GoString returns the string representation
  5000. func (s Policies) GoString() string {
  5001. return s.String()
  5002. }
  5003. // SetAppCookieStickinessPolicies sets the AppCookieStickinessPolicies field's value.
  5004. func (s *Policies) SetAppCookieStickinessPolicies(v []*AppCookieStickinessPolicy) *Policies {
  5005. s.AppCookieStickinessPolicies = v
  5006. return s
  5007. }
  5008. // SetLBCookieStickinessPolicies sets the LBCookieStickinessPolicies field's value.
  5009. func (s *Policies) SetLBCookieStickinessPolicies(v []*LBCookieStickinessPolicy) *Policies {
  5010. s.LBCookieStickinessPolicies = v
  5011. return s
  5012. }
  5013. // SetOtherPolicies sets the OtherPolicies field's value.
  5014. func (s *Policies) SetOtherPolicies(v []*string) *Policies {
  5015. s.OtherPolicies = v
  5016. return s
  5017. }
  5018. // Information about a policy attribute.
  5019. type PolicyAttribute struct {
  5020. _ struct{} `type:"structure"`
  5021. // The name of the attribute.
  5022. AttributeName *string `type:"string"`
  5023. // The value of the attribute.
  5024. AttributeValue *string `type:"string"`
  5025. }
  5026. // String returns the string representation
  5027. func (s PolicyAttribute) String() string {
  5028. return awsutil.Prettify(s)
  5029. }
  5030. // GoString returns the string representation
  5031. func (s PolicyAttribute) GoString() string {
  5032. return s.String()
  5033. }
  5034. // SetAttributeName sets the AttributeName field's value.
  5035. func (s *PolicyAttribute) SetAttributeName(v string) *PolicyAttribute {
  5036. s.AttributeName = &v
  5037. return s
  5038. }
  5039. // SetAttributeValue sets the AttributeValue field's value.
  5040. func (s *PolicyAttribute) SetAttributeValue(v string) *PolicyAttribute {
  5041. s.AttributeValue = &v
  5042. return s
  5043. }
  5044. // Information about a policy attribute.
  5045. type PolicyAttributeDescription struct {
  5046. _ struct{} `type:"structure"`
  5047. // The name of the attribute.
  5048. AttributeName *string `type:"string"`
  5049. // The value of the attribute.
  5050. AttributeValue *string `type:"string"`
  5051. }
  5052. // String returns the string representation
  5053. func (s PolicyAttributeDescription) String() string {
  5054. return awsutil.Prettify(s)
  5055. }
  5056. // GoString returns the string representation
  5057. func (s PolicyAttributeDescription) GoString() string {
  5058. return s.String()
  5059. }
  5060. // SetAttributeName sets the AttributeName field's value.
  5061. func (s *PolicyAttributeDescription) SetAttributeName(v string) *PolicyAttributeDescription {
  5062. s.AttributeName = &v
  5063. return s
  5064. }
  5065. // SetAttributeValue sets the AttributeValue field's value.
  5066. func (s *PolicyAttributeDescription) SetAttributeValue(v string) *PolicyAttributeDescription {
  5067. s.AttributeValue = &v
  5068. return s
  5069. }
  5070. // Information about a policy attribute type.
  5071. type PolicyAttributeTypeDescription struct {
  5072. _ struct{} `type:"structure"`
  5073. // The name of the attribute.
  5074. AttributeName *string `type:"string"`
  5075. // The type of the attribute. For example, Boolean or Integer.
  5076. AttributeType *string `type:"string"`
  5077. // The cardinality of the attribute.
  5078. //
  5079. // Valid values:
  5080. //
  5081. // * ONE(1) : Single value required
  5082. //
  5083. // * ZERO_OR_ONE(0..1) : Up to one value is allowed
  5084. //
  5085. // * ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
  5086. //
  5087. // * ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
  5088. Cardinality *string `type:"string"`
  5089. // The default value of the attribute, if applicable.
  5090. DefaultValue *string `type:"string"`
  5091. // A description of the attribute.
  5092. Description *string `type:"string"`
  5093. }
  5094. // String returns the string representation
  5095. func (s PolicyAttributeTypeDescription) String() string {
  5096. return awsutil.Prettify(s)
  5097. }
  5098. // GoString returns the string representation
  5099. func (s PolicyAttributeTypeDescription) GoString() string {
  5100. return s.String()
  5101. }
  5102. // SetAttributeName sets the AttributeName field's value.
  5103. func (s *PolicyAttributeTypeDescription) SetAttributeName(v string) *PolicyAttributeTypeDescription {
  5104. s.AttributeName = &v
  5105. return s
  5106. }
  5107. // SetAttributeType sets the AttributeType field's value.
  5108. func (s *PolicyAttributeTypeDescription) SetAttributeType(v string) *PolicyAttributeTypeDescription {
  5109. s.AttributeType = &v
  5110. return s
  5111. }
  5112. // SetCardinality sets the Cardinality field's value.
  5113. func (s *PolicyAttributeTypeDescription) SetCardinality(v string) *PolicyAttributeTypeDescription {
  5114. s.Cardinality = &v
  5115. return s
  5116. }
  5117. // SetDefaultValue sets the DefaultValue field's value.
  5118. func (s *PolicyAttributeTypeDescription) SetDefaultValue(v string) *PolicyAttributeTypeDescription {
  5119. s.DefaultValue = &v
  5120. return s
  5121. }
  5122. // SetDescription sets the Description field's value.
  5123. func (s *PolicyAttributeTypeDescription) SetDescription(v string) *PolicyAttributeTypeDescription {
  5124. s.Description = &v
  5125. return s
  5126. }
  5127. // Information about a policy.
  5128. type PolicyDescription struct {
  5129. _ struct{} `type:"structure"`
  5130. // The policy attributes.
  5131. PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`
  5132. // The name of the policy.
  5133. PolicyName *string `type:"string"`
  5134. // The name of the policy type.
  5135. PolicyTypeName *string `type:"string"`
  5136. }
  5137. // String returns the string representation
  5138. func (s PolicyDescription) String() string {
  5139. return awsutil.Prettify(s)
  5140. }
  5141. // GoString returns the string representation
  5142. func (s PolicyDescription) GoString() string {
  5143. return s.String()
  5144. }
  5145. // SetPolicyAttributeDescriptions sets the PolicyAttributeDescriptions field's value.
  5146. func (s *PolicyDescription) SetPolicyAttributeDescriptions(v []*PolicyAttributeDescription) *PolicyDescription {
  5147. s.PolicyAttributeDescriptions = v
  5148. return s
  5149. }
  5150. // SetPolicyName sets the PolicyName field's value.
  5151. func (s *PolicyDescription) SetPolicyName(v string) *PolicyDescription {
  5152. s.PolicyName = &v
  5153. return s
  5154. }
  5155. // SetPolicyTypeName sets the PolicyTypeName field's value.
  5156. func (s *PolicyDescription) SetPolicyTypeName(v string) *PolicyDescription {
  5157. s.PolicyTypeName = &v
  5158. return s
  5159. }
  5160. // Information about a policy type.
  5161. type PolicyTypeDescription struct {
  5162. _ struct{} `type:"structure"`
  5163. // A description of the policy type.
  5164. Description *string `type:"string"`
  5165. // The description of the policy attributes associated with the policies defined
  5166. // by Elastic Load Balancing.
  5167. PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`
  5168. // The name of the policy type.
  5169. PolicyTypeName *string `type:"string"`
  5170. }
  5171. // String returns the string representation
  5172. func (s PolicyTypeDescription) String() string {
  5173. return awsutil.Prettify(s)
  5174. }
  5175. // GoString returns the string representation
  5176. func (s PolicyTypeDescription) GoString() string {
  5177. return s.String()
  5178. }
  5179. // SetDescription sets the Description field's value.
  5180. func (s *PolicyTypeDescription) SetDescription(v string) *PolicyTypeDescription {
  5181. s.Description = &v
  5182. return s
  5183. }
  5184. // SetPolicyAttributeTypeDescriptions sets the PolicyAttributeTypeDescriptions field's value.
  5185. func (s *PolicyTypeDescription) SetPolicyAttributeTypeDescriptions(v []*PolicyAttributeTypeDescription) *PolicyTypeDescription {
  5186. s.PolicyAttributeTypeDescriptions = v
  5187. return s
  5188. }
  5189. // SetPolicyTypeName sets the PolicyTypeName field's value.
  5190. func (s *PolicyTypeDescription) SetPolicyTypeName(v string) *PolicyTypeDescription {
  5191. s.PolicyTypeName = &v
  5192. return s
  5193. }
  5194. // Contains the parameters for RegisterInstancesWithLoadBalancer.
  5195. type RegisterInstancesWithLoadBalancerInput struct {
  5196. _ struct{} `type:"structure"`
  5197. // The IDs of the instances.
  5198. //
  5199. // Instances is a required field
  5200. Instances []*Instance `type:"list" required:"true"`
  5201. // The name of the load balancer.
  5202. //
  5203. // LoadBalancerName is a required field
  5204. LoadBalancerName *string `type:"string" required:"true"`
  5205. }
  5206. // String returns the string representation
  5207. func (s RegisterInstancesWithLoadBalancerInput) String() string {
  5208. return awsutil.Prettify(s)
  5209. }
  5210. // GoString returns the string representation
  5211. func (s RegisterInstancesWithLoadBalancerInput) GoString() string {
  5212. return s.String()
  5213. }
  5214. // Validate inspects the fields of the type to determine if they are valid.
  5215. func (s *RegisterInstancesWithLoadBalancerInput) Validate() error {
  5216. invalidParams := request.ErrInvalidParams{Context: "RegisterInstancesWithLoadBalancerInput"}
  5217. if s.Instances == nil {
  5218. invalidParams.Add(request.NewErrParamRequired("Instances"))
  5219. }
  5220. if s.LoadBalancerName == nil {
  5221. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5222. }
  5223. if invalidParams.Len() > 0 {
  5224. return invalidParams
  5225. }
  5226. return nil
  5227. }
  5228. // SetInstances sets the Instances field's value.
  5229. func (s *RegisterInstancesWithLoadBalancerInput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerInput {
  5230. s.Instances = v
  5231. return s
  5232. }
  5233. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5234. func (s *RegisterInstancesWithLoadBalancerInput) SetLoadBalancerName(v string) *RegisterInstancesWithLoadBalancerInput {
  5235. s.LoadBalancerName = &v
  5236. return s
  5237. }
  5238. // Contains the output of RegisterInstancesWithLoadBalancer.
  5239. type RegisterInstancesWithLoadBalancerOutput struct {
  5240. _ struct{} `type:"structure"`
  5241. // The updated list of instances for the load balancer.
  5242. Instances []*Instance `type:"list"`
  5243. }
  5244. // String returns the string representation
  5245. func (s RegisterInstancesWithLoadBalancerOutput) String() string {
  5246. return awsutil.Prettify(s)
  5247. }
  5248. // GoString returns the string representation
  5249. func (s RegisterInstancesWithLoadBalancerOutput) GoString() string {
  5250. return s.String()
  5251. }
  5252. // SetInstances sets the Instances field's value.
  5253. func (s *RegisterInstancesWithLoadBalancerOutput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerOutput {
  5254. s.Instances = v
  5255. return s
  5256. }
  5257. // Contains the parameters for RemoveTags.
  5258. type RemoveTagsInput struct {
  5259. _ struct{} `type:"structure"`
  5260. // The name of the load balancer. You can specify a maximum of one load balancer
  5261. // name.
  5262. //
  5263. // LoadBalancerNames is a required field
  5264. LoadBalancerNames []*string `type:"list" required:"true"`
  5265. // The list of tag keys to remove.
  5266. //
  5267. // Tags is a required field
  5268. Tags []*TagKeyOnly `min:"1" type:"list" required:"true"`
  5269. }
  5270. // String returns the string representation
  5271. func (s RemoveTagsInput) String() string {
  5272. return awsutil.Prettify(s)
  5273. }
  5274. // GoString returns the string representation
  5275. func (s RemoveTagsInput) GoString() string {
  5276. return s.String()
  5277. }
  5278. // Validate inspects the fields of the type to determine if they are valid.
  5279. func (s *RemoveTagsInput) Validate() error {
  5280. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
  5281. if s.LoadBalancerNames == nil {
  5282. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  5283. }
  5284. if s.Tags == nil {
  5285. invalidParams.Add(request.NewErrParamRequired("Tags"))
  5286. }
  5287. if s.Tags != nil && len(s.Tags) < 1 {
  5288. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  5289. }
  5290. if s.Tags != nil {
  5291. for i, v := range s.Tags {
  5292. if v == nil {
  5293. continue
  5294. }
  5295. if err := v.Validate(); err != nil {
  5296. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  5297. }
  5298. }
  5299. }
  5300. if invalidParams.Len() > 0 {
  5301. return invalidParams
  5302. }
  5303. return nil
  5304. }
  5305. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  5306. func (s *RemoveTagsInput) SetLoadBalancerNames(v []*string) *RemoveTagsInput {
  5307. s.LoadBalancerNames = v
  5308. return s
  5309. }
  5310. // SetTags sets the Tags field's value.
  5311. func (s *RemoveTagsInput) SetTags(v []*TagKeyOnly) *RemoveTagsInput {
  5312. s.Tags = v
  5313. return s
  5314. }
  5315. // Contains the output of RemoveTags.
  5316. type RemoveTagsOutput struct {
  5317. _ struct{} `type:"structure"`
  5318. }
  5319. // String returns the string representation
  5320. func (s RemoveTagsOutput) String() string {
  5321. return awsutil.Prettify(s)
  5322. }
  5323. // GoString returns the string representation
  5324. func (s RemoveTagsOutput) GoString() string {
  5325. return s.String()
  5326. }
  5327. // Contains the parameters for SetLoadBalancerListenerSSLCertificate.
  5328. type SetLoadBalancerListenerSSLCertificateInput struct {
  5329. _ struct{} `type:"structure"`
  5330. // The name of the load balancer.
  5331. //
  5332. // LoadBalancerName is a required field
  5333. LoadBalancerName *string `type:"string" required:"true"`
  5334. // The port that uses the specified SSL certificate.
  5335. //
  5336. // LoadBalancerPort is a required field
  5337. LoadBalancerPort *int64 `type:"integer" required:"true"`
  5338. // The Amazon Resource Name (ARN) of the SSL certificate.
  5339. //
  5340. // SSLCertificateId is a required field
  5341. SSLCertificateId *string `type:"string" required:"true"`
  5342. }
  5343. // String returns the string representation
  5344. func (s SetLoadBalancerListenerSSLCertificateInput) String() string {
  5345. return awsutil.Prettify(s)
  5346. }
  5347. // GoString returns the string representation
  5348. func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string {
  5349. return s.String()
  5350. }
  5351. // Validate inspects the fields of the type to determine if they are valid.
  5352. func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error {
  5353. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerListenerSSLCertificateInput"}
  5354. if s.LoadBalancerName == nil {
  5355. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5356. }
  5357. if s.LoadBalancerPort == nil {
  5358. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  5359. }
  5360. if s.SSLCertificateId == nil {
  5361. invalidParams.Add(request.NewErrParamRequired("SSLCertificateId"))
  5362. }
  5363. if invalidParams.Len() > 0 {
  5364. return invalidParams
  5365. }
  5366. return nil
  5367. }
  5368. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5369. func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerName(v string) *SetLoadBalancerListenerSSLCertificateInput {
  5370. s.LoadBalancerName = &v
  5371. return s
  5372. }
  5373. // SetLoadBalancerPort sets the LoadBalancerPort field's value.
  5374. func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort(v int64) *SetLoadBalancerListenerSSLCertificateInput {
  5375. s.LoadBalancerPort = &v
  5376. return s
  5377. }
  5378. // SetSSLCertificateId sets the SSLCertificateId field's value.
  5379. func (s *SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId(v string) *SetLoadBalancerListenerSSLCertificateInput {
  5380. s.SSLCertificateId = &v
  5381. return s
  5382. }
  5383. // Contains the output of SetLoadBalancerListenerSSLCertificate.
  5384. type SetLoadBalancerListenerSSLCertificateOutput struct {
  5385. _ struct{} `type:"structure"`
  5386. }
  5387. // String returns the string representation
  5388. func (s SetLoadBalancerListenerSSLCertificateOutput) String() string {
  5389. return awsutil.Prettify(s)
  5390. }
  5391. // GoString returns the string representation
  5392. func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string {
  5393. return s.String()
  5394. }
  5395. // Contains the parameters for SetLoadBalancerPoliciesForBackendServer.
  5396. type SetLoadBalancerPoliciesForBackendServerInput struct {
  5397. _ struct{} `type:"structure"`
  5398. // The port number associated with the EC2 instance.
  5399. //
  5400. // InstancePort is a required field
  5401. InstancePort *int64 `type:"integer" required:"true"`
  5402. // The name of the load balancer.
  5403. //
  5404. // LoadBalancerName is a required field
  5405. LoadBalancerName *string `type:"string" required:"true"`
  5406. // The names of the policies. If the list is empty, then all current polices
  5407. // are removed from the EC2 instance.
  5408. //
  5409. // PolicyNames is a required field
  5410. PolicyNames []*string `type:"list" required:"true"`
  5411. }
  5412. // String returns the string representation
  5413. func (s SetLoadBalancerPoliciesForBackendServerInput) String() string {
  5414. return awsutil.Prettify(s)
  5415. }
  5416. // GoString returns the string representation
  5417. func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string {
  5418. return s.String()
  5419. }
  5420. // Validate inspects the fields of the type to determine if they are valid.
  5421. func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error {
  5422. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesForBackendServerInput"}
  5423. if s.InstancePort == nil {
  5424. invalidParams.Add(request.NewErrParamRequired("InstancePort"))
  5425. }
  5426. if s.LoadBalancerName == nil {
  5427. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5428. }
  5429. if s.PolicyNames == nil {
  5430. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  5431. }
  5432. if invalidParams.Len() > 0 {
  5433. return invalidParams
  5434. }
  5435. return nil
  5436. }
  5437. // SetInstancePort sets the InstancePort field's value.
  5438. func (s *SetLoadBalancerPoliciesForBackendServerInput) SetInstancePort(v int64) *SetLoadBalancerPoliciesForBackendServerInput {
  5439. s.InstancePort = &v
  5440. return s
  5441. }
  5442. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5443. func (s *SetLoadBalancerPoliciesForBackendServerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesForBackendServerInput {
  5444. s.LoadBalancerName = &v
  5445. return s
  5446. }
  5447. // SetPolicyNames sets the PolicyNames field's value.
  5448. func (s *SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesForBackendServerInput {
  5449. s.PolicyNames = v
  5450. return s
  5451. }
  5452. // Contains the output of SetLoadBalancerPoliciesForBackendServer.
  5453. type SetLoadBalancerPoliciesForBackendServerOutput struct {
  5454. _ struct{} `type:"structure"`
  5455. }
  5456. // String returns the string representation
  5457. func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string {
  5458. return awsutil.Prettify(s)
  5459. }
  5460. // GoString returns the string representation
  5461. func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string {
  5462. return s.String()
  5463. }
  5464. // Contains the parameters for SetLoadBalancePoliciesOfListener.
  5465. type SetLoadBalancerPoliciesOfListenerInput struct {
  5466. _ struct{} `type:"structure"`
  5467. // The name of the load balancer.
  5468. //
  5469. // LoadBalancerName is a required field
  5470. LoadBalancerName *string `type:"string" required:"true"`
  5471. // The external port of the load balancer.
  5472. //
  5473. // LoadBalancerPort is a required field
  5474. LoadBalancerPort *int64 `type:"integer" required:"true"`
  5475. // The names of the policies. This list must include all policies to be enabled.
  5476. // If you omit a policy that is currently enabled, it is disabled. If the list
  5477. // is empty, all current policies are disabled.
  5478. //
  5479. // PolicyNames is a required field
  5480. PolicyNames []*string `type:"list" required:"true"`
  5481. }
  5482. // String returns the string representation
  5483. func (s SetLoadBalancerPoliciesOfListenerInput) String() string {
  5484. return awsutil.Prettify(s)
  5485. }
  5486. // GoString returns the string representation
  5487. func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string {
  5488. return s.String()
  5489. }
  5490. // Validate inspects the fields of the type to determine if they are valid.
  5491. func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error {
  5492. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesOfListenerInput"}
  5493. if s.LoadBalancerName == nil {
  5494. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5495. }
  5496. if s.LoadBalancerPort == nil {
  5497. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  5498. }
  5499. if s.PolicyNames == nil {
  5500. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  5501. }
  5502. if invalidParams.Len() > 0 {
  5503. return invalidParams
  5504. }
  5505. return nil
  5506. }
  5507. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5508. func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesOfListenerInput {
  5509. s.LoadBalancerName = &v
  5510. return s
  5511. }
  5512. // SetLoadBalancerPort sets the LoadBalancerPort field's value.
  5513. func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort(v int64) *SetLoadBalancerPoliciesOfListenerInput {
  5514. s.LoadBalancerPort = &v
  5515. return s
  5516. }
  5517. // SetPolicyNames sets the PolicyNames field's value.
  5518. func (s *SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesOfListenerInput {
  5519. s.PolicyNames = v
  5520. return s
  5521. }
  5522. // Contains the output of SetLoadBalancePoliciesOfListener.
  5523. type SetLoadBalancerPoliciesOfListenerOutput struct {
  5524. _ struct{} `type:"structure"`
  5525. }
  5526. // String returns the string representation
  5527. func (s SetLoadBalancerPoliciesOfListenerOutput) String() string {
  5528. return awsutil.Prettify(s)
  5529. }
  5530. // GoString returns the string representation
  5531. func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string {
  5532. return s.String()
  5533. }
  5534. // Information about a source security group.
  5535. type SourceSecurityGroup struct {
  5536. _ struct{} `type:"structure"`
  5537. // The name of the security group.
  5538. GroupName *string `type:"string"`
  5539. // The owner of the security group.
  5540. OwnerAlias *string `type:"string"`
  5541. }
  5542. // String returns the string representation
  5543. func (s SourceSecurityGroup) String() string {
  5544. return awsutil.Prettify(s)
  5545. }
  5546. // GoString returns the string representation
  5547. func (s SourceSecurityGroup) GoString() string {
  5548. return s.String()
  5549. }
  5550. // SetGroupName sets the GroupName field's value.
  5551. func (s *SourceSecurityGroup) SetGroupName(v string) *SourceSecurityGroup {
  5552. s.GroupName = &v
  5553. return s
  5554. }
  5555. // SetOwnerAlias sets the OwnerAlias field's value.
  5556. func (s *SourceSecurityGroup) SetOwnerAlias(v string) *SourceSecurityGroup {
  5557. s.OwnerAlias = &v
  5558. return s
  5559. }
  5560. // Information about a tag.
  5561. type Tag struct {
  5562. _ struct{} `type:"structure"`
  5563. // The key of the tag.
  5564. //
  5565. // Key is a required field
  5566. Key *string `min:"1" type:"string" required:"true"`
  5567. // The value of the tag.
  5568. Value *string `type:"string"`
  5569. }
  5570. // String returns the string representation
  5571. func (s Tag) String() string {
  5572. return awsutil.Prettify(s)
  5573. }
  5574. // GoString returns the string representation
  5575. func (s Tag) GoString() string {
  5576. return s.String()
  5577. }
  5578. // Validate inspects the fields of the type to determine if they are valid.
  5579. func (s *Tag) Validate() error {
  5580. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  5581. if s.Key == nil {
  5582. invalidParams.Add(request.NewErrParamRequired("Key"))
  5583. }
  5584. if s.Key != nil && len(*s.Key) < 1 {
  5585. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  5586. }
  5587. if invalidParams.Len() > 0 {
  5588. return invalidParams
  5589. }
  5590. return nil
  5591. }
  5592. // SetKey sets the Key field's value.
  5593. func (s *Tag) SetKey(v string) *Tag {
  5594. s.Key = &v
  5595. return s
  5596. }
  5597. // SetValue sets the Value field's value.
  5598. func (s *Tag) SetValue(v string) *Tag {
  5599. s.Value = &v
  5600. return s
  5601. }
  5602. // The tags associated with a load balancer.
  5603. type TagDescription struct {
  5604. _ struct{} `type:"structure"`
  5605. // The name of the load balancer.
  5606. LoadBalancerName *string `type:"string"`
  5607. // The tags.
  5608. Tags []*Tag `min:"1" type:"list"`
  5609. }
  5610. // String returns the string representation
  5611. func (s TagDescription) String() string {
  5612. return awsutil.Prettify(s)
  5613. }
  5614. // GoString returns the string representation
  5615. func (s TagDescription) GoString() string {
  5616. return s.String()
  5617. }
  5618. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5619. func (s *TagDescription) SetLoadBalancerName(v string) *TagDescription {
  5620. s.LoadBalancerName = &v
  5621. return s
  5622. }
  5623. // SetTags sets the Tags field's value.
  5624. func (s *TagDescription) SetTags(v []*Tag) *TagDescription {
  5625. s.Tags = v
  5626. return s
  5627. }
  5628. // The key of a tag.
  5629. type TagKeyOnly struct {
  5630. _ struct{} `type:"structure"`
  5631. // The name of the key.
  5632. Key *string `min:"1" type:"string"`
  5633. }
  5634. // String returns the string representation
  5635. func (s TagKeyOnly) String() string {
  5636. return awsutil.Prettify(s)
  5637. }
  5638. // GoString returns the string representation
  5639. func (s TagKeyOnly) GoString() string {
  5640. return s.String()
  5641. }
  5642. // Validate inspects the fields of the type to determine if they are valid.
  5643. func (s *TagKeyOnly) Validate() error {
  5644. invalidParams := request.ErrInvalidParams{Context: "TagKeyOnly"}
  5645. if s.Key != nil && len(*s.Key) < 1 {
  5646. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  5647. }
  5648. if invalidParams.Len() > 0 {
  5649. return invalidParams
  5650. }
  5651. return nil
  5652. }
  5653. // SetKey sets the Key field's value.
  5654. func (s *TagKeyOnly) SetKey(v string) *TagKeyOnly {
  5655. s.Key = &v
  5656. return s
  5657. }