api.go 229 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497
  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 *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. cont := true
  1691. for p.Next() && cont {
  1692. cont = fn(p.Page().(*DescribeLoadBalancersOutput), !p.HasNextPage())
  1693. }
  1694. return p.Err()
  1695. }
  1696. const opDescribeTags = "DescribeTags"
  1697. // DescribeTagsRequest generates a "aws/request.Request" representing the
  1698. // client's request for the DescribeTags operation. The "output" return
  1699. // value will be populated with the request's response once the request completes
  1700. // successfully.
  1701. //
  1702. // Use "Send" method on the returned Request to send the API call to the service.
  1703. // the "output" return value is not valid until after Send returns without error.
  1704. //
  1705. // See DescribeTags for more information on using the DescribeTags
  1706. // API call, and error handling.
  1707. //
  1708. // This method is useful when you want to inject custom logic or configuration
  1709. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1710. //
  1711. //
  1712. // // Example sending a request using the DescribeTagsRequest method.
  1713. // req, resp := client.DescribeTagsRequest(params)
  1714. //
  1715. // err := req.Send()
  1716. // if err == nil { // resp is now filled
  1717. // fmt.Println(resp)
  1718. // }
  1719. //
  1720. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags
  1721. func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1722. op := &request.Operation{
  1723. Name: opDescribeTags,
  1724. HTTPMethod: "POST",
  1725. HTTPPath: "/",
  1726. }
  1727. if input == nil {
  1728. input = &DescribeTagsInput{}
  1729. }
  1730. output = &DescribeTagsOutput{}
  1731. req = c.newRequest(op, input, output)
  1732. return
  1733. }
  1734. // DescribeTags API operation for Elastic Load Balancing.
  1735. //
  1736. // Describes the tags associated with the specified load balancers.
  1737. //
  1738. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1739. // with awserr.Error's Code and Message methods to get detailed information about
  1740. // the error.
  1741. //
  1742. // See the AWS API reference guide for Elastic Load Balancing's
  1743. // API operation DescribeTags for usage and error information.
  1744. //
  1745. // Returned Error Codes:
  1746. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1747. // The specified load balancer does not exist.
  1748. //
  1749. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeTags
  1750. func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1751. req, out := c.DescribeTagsRequest(input)
  1752. return out, req.Send()
  1753. }
  1754. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  1755. // the ability to pass a context and additional request options.
  1756. //
  1757. // See DescribeTags for details on how to use this API operation.
  1758. //
  1759. // The context must be non-nil and will be used for request cancellation. If
  1760. // the context is nil a panic will occur. In the future the SDK may create
  1761. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1762. // for more information on using Contexts.
  1763. func (c *ELB) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  1764. req, out := c.DescribeTagsRequest(input)
  1765. req.SetContext(ctx)
  1766. req.ApplyOptions(opts...)
  1767. return out, req.Send()
  1768. }
  1769. const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
  1770. // DetachLoadBalancerFromSubnetsRequest generates a "aws/request.Request" representing the
  1771. // client's request for the DetachLoadBalancerFromSubnets operation. The "output" return
  1772. // value will be populated with the request's response once the request completes
  1773. // successfully.
  1774. //
  1775. // Use "Send" method on the returned Request to send the API call to the service.
  1776. // the "output" return value is not valid until after Send returns without error.
  1777. //
  1778. // See DetachLoadBalancerFromSubnets for more information on using the DetachLoadBalancerFromSubnets
  1779. // API call, and error handling.
  1780. //
  1781. // This method is useful when you want to inject custom logic or configuration
  1782. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1783. //
  1784. //
  1785. // // Example sending a request using the DetachLoadBalancerFromSubnetsRequest method.
  1786. // req, resp := client.DetachLoadBalancerFromSubnetsRequest(params)
  1787. //
  1788. // err := req.Send()
  1789. // if err == nil { // resp is now filled
  1790. // fmt.Println(resp)
  1791. // }
  1792. //
  1793. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets
  1794. func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
  1795. op := &request.Operation{
  1796. Name: opDetachLoadBalancerFromSubnets,
  1797. HTTPMethod: "POST",
  1798. HTTPPath: "/",
  1799. }
  1800. if input == nil {
  1801. input = &DetachLoadBalancerFromSubnetsInput{}
  1802. }
  1803. output = &DetachLoadBalancerFromSubnetsOutput{}
  1804. req = c.newRequest(op, input, output)
  1805. return
  1806. }
  1807. // DetachLoadBalancerFromSubnets API operation for Elastic Load Balancing.
  1808. //
  1809. // Removes the specified subnets from the set of configured subnets for the
  1810. // load balancer.
  1811. //
  1812. // After a subnet is removed, all EC2 instances registered with the load balancer
  1813. // in the removed subnet go into the OutOfService state. Then, the load balancer
  1814. // balances the traffic among the remaining routable subnets.
  1815. //
  1816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1817. // with awserr.Error's Code and Message methods to get detailed information about
  1818. // the error.
  1819. //
  1820. // See the AWS API reference guide for Elastic Load Balancing's
  1821. // API operation DetachLoadBalancerFromSubnets for usage and error information.
  1822. //
  1823. // Returned Error Codes:
  1824. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1825. // The specified load balancer does not exist.
  1826. //
  1827. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  1828. // The requested configuration change is not valid.
  1829. //
  1830. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DetachLoadBalancerFromSubnets
  1831. func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) {
  1832. req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
  1833. return out, req.Send()
  1834. }
  1835. // DetachLoadBalancerFromSubnetsWithContext is the same as DetachLoadBalancerFromSubnets with the addition of
  1836. // the ability to pass a context and additional request options.
  1837. //
  1838. // See DetachLoadBalancerFromSubnets for details on how to use this API operation.
  1839. //
  1840. // The context must be non-nil and will be used for request cancellation. If
  1841. // the context is nil a panic will occur. In the future the SDK may create
  1842. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1843. // for more information on using Contexts.
  1844. func (c *ELB) DetachLoadBalancerFromSubnetsWithContext(ctx aws.Context, input *DetachLoadBalancerFromSubnetsInput, opts ...request.Option) (*DetachLoadBalancerFromSubnetsOutput, error) {
  1845. req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
  1846. req.SetContext(ctx)
  1847. req.ApplyOptions(opts...)
  1848. return out, req.Send()
  1849. }
  1850. const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
  1851. // DisableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
  1852. // client's request for the DisableAvailabilityZonesForLoadBalancer operation. The "output" return
  1853. // value will be populated with the request's response once the request completes
  1854. // successfully.
  1855. //
  1856. // Use "Send" method on the returned Request to send the API call to the service.
  1857. // the "output" return value is not valid until after Send returns without error.
  1858. //
  1859. // See DisableAvailabilityZonesForLoadBalancer for more information on using the DisableAvailabilityZonesForLoadBalancer
  1860. // API call, and error handling.
  1861. //
  1862. // This method is useful when you want to inject custom logic or configuration
  1863. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1864. //
  1865. //
  1866. // // Example sending a request using the DisableAvailabilityZonesForLoadBalancerRequest method.
  1867. // req, resp := client.DisableAvailabilityZonesForLoadBalancerRequest(params)
  1868. //
  1869. // err := req.Send()
  1870. // if err == nil { // resp is now filled
  1871. // fmt.Println(resp)
  1872. // }
  1873. //
  1874. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer
  1875. func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
  1876. op := &request.Operation{
  1877. Name: opDisableAvailabilityZonesForLoadBalancer,
  1878. HTTPMethod: "POST",
  1879. HTTPPath: "/",
  1880. }
  1881. if input == nil {
  1882. input = &DisableAvailabilityZonesForLoadBalancerInput{}
  1883. }
  1884. output = &DisableAvailabilityZonesForLoadBalancerOutput{}
  1885. req = c.newRequest(op, input, output)
  1886. return
  1887. }
  1888. // DisableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
  1889. //
  1890. // Removes the specified Availability Zones from the set of Availability Zones
  1891. // for the specified load balancer in EC2-Classic or a default VPC.
  1892. //
  1893. // For load balancers in a non-default VPC, use DetachLoadBalancerFromSubnets.
  1894. //
  1895. // There must be at least one Availability Zone registered with a load balancer
  1896. // at all times. After an Availability Zone is removed, all instances registered
  1897. // with the load balancer that are in the removed Availability Zone go into
  1898. // the OutOfService state. Then, the load balancer attempts to equally balance
  1899. // the traffic among its remaining Availability Zones.
  1900. //
  1901. // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
  1902. // in the Classic Load Balancers Guide.
  1903. //
  1904. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1905. // with awserr.Error's Code and Message methods to get detailed information about
  1906. // the error.
  1907. //
  1908. // See the AWS API reference guide for Elastic Load Balancing's
  1909. // API operation DisableAvailabilityZonesForLoadBalancer for usage and error information.
  1910. //
  1911. // Returned Error Codes:
  1912. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1913. // The specified load balancer does not exist.
  1914. //
  1915. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  1916. // The requested configuration change is not valid.
  1917. //
  1918. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DisableAvailabilityZonesForLoadBalancer
  1919. func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
  1920. req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
  1921. return out, req.Send()
  1922. }
  1923. // DisableAvailabilityZonesForLoadBalancerWithContext is the same as DisableAvailabilityZonesForLoadBalancer with the addition of
  1924. // the ability to pass a context and additional request options.
  1925. //
  1926. // See DisableAvailabilityZonesForLoadBalancer for details on how to use this API operation.
  1927. //
  1928. // The context must be non-nil and will be used for request cancellation. If
  1929. // the context is nil a panic will occur. In the future the SDK may create
  1930. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1931. // for more information on using Contexts.
  1932. func (c *ELB) DisableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *DisableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
  1933. req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
  1934. req.SetContext(ctx)
  1935. req.ApplyOptions(opts...)
  1936. return out, req.Send()
  1937. }
  1938. const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
  1939. // EnableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
  1940. // client's request for the EnableAvailabilityZonesForLoadBalancer operation. The "output" return
  1941. // value will be populated with the request's response once the request completes
  1942. // successfully.
  1943. //
  1944. // Use "Send" method on the returned Request to send the API call to the service.
  1945. // the "output" return value is not valid until after Send returns without error.
  1946. //
  1947. // See EnableAvailabilityZonesForLoadBalancer for more information on using the EnableAvailabilityZonesForLoadBalancer
  1948. // API call, and error handling.
  1949. //
  1950. // This method is useful when you want to inject custom logic or configuration
  1951. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1952. //
  1953. //
  1954. // // Example sending a request using the EnableAvailabilityZonesForLoadBalancerRequest method.
  1955. // req, resp := client.EnableAvailabilityZonesForLoadBalancerRequest(params)
  1956. //
  1957. // err := req.Send()
  1958. // if err == nil { // resp is now filled
  1959. // fmt.Println(resp)
  1960. // }
  1961. //
  1962. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer
  1963. func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
  1964. op := &request.Operation{
  1965. Name: opEnableAvailabilityZonesForLoadBalancer,
  1966. HTTPMethod: "POST",
  1967. HTTPPath: "/",
  1968. }
  1969. if input == nil {
  1970. input = &EnableAvailabilityZonesForLoadBalancerInput{}
  1971. }
  1972. output = &EnableAvailabilityZonesForLoadBalancerOutput{}
  1973. req = c.newRequest(op, input, output)
  1974. return
  1975. }
  1976. // EnableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
  1977. //
  1978. // Adds the specified Availability Zones to the set of Availability Zones for
  1979. // the specified load balancer in EC2-Classic or a default VPC.
  1980. //
  1981. // For load balancers in a non-default VPC, use AttachLoadBalancerToSubnets.
  1982. //
  1983. // The load balancer evenly distributes requests across all its registered Availability
  1984. // Zones that contain instances. For more information, see Add or Remove Availability
  1985. // Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
  1986. // in the Classic Load Balancers Guide.
  1987. //
  1988. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1989. // with awserr.Error's Code and Message methods to get detailed information about
  1990. // the error.
  1991. //
  1992. // See the AWS API reference guide for Elastic Load Balancing's
  1993. // API operation EnableAvailabilityZonesForLoadBalancer for usage and error information.
  1994. //
  1995. // Returned Error Codes:
  1996. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  1997. // The specified load balancer does not exist.
  1998. //
  1999. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/EnableAvailabilityZonesForLoadBalancer
  2000. func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
  2001. req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
  2002. return out, req.Send()
  2003. }
  2004. // EnableAvailabilityZonesForLoadBalancerWithContext is the same as EnableAvailabilityZonesForLoadBalancer with the addition of
  2005. // the ability to pass a context and additional request options.
  2006. //
  2007. // See EnableAvailabilityZonesForLoadBalancer for details on how to use this API operation.
  2008. //
  2009. // The context must be non-nil and will be used for request cancellation. If
  2010. // the context is nil a panic will occur. In the future the SDK may create
  2011. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2012. // for more information on using Contexts.
  2013. func (c *ELB) EnableAvailabilityZonesForLoadBalancerWithContext(ctx aws.Context, input *EnableAvailabilityZonesForLoadBalancerInput, opts ...request.Option) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
  2014. req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
  2015. req.SetContext(ctx)
  2016. req.ApplyOptions(opts...)
  2017. return out, req.Send()
  2018. }
  2019. const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
  2020. // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
  2021. // client's request for the ModifyLoadBalancerAttributes operation. The "output" return
  2022. // value will be populated with the request's response once the request completes
  2023. // successfully.
  2024. //
  2025. // Use "Send" method on the returned Request to send the API call to the service.
  2026. // the "output" return value is not valid until after Send returns without error.
  2027. //
  2028. // See ModifyLoadBalancerAttributes for more information on using the ModifyLoadBalancerAttributes
  2029. // API call, and error handling.
  2030. //
  2031. // This method is useful when you want to inject custom logic or configuration
  2032. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2033. //
  2034. //
  2035. // // Example sending a request using the ModifyLoadBalancerAttributesRequest method.
  2036. // req, resp := client.ModifyLoadBalancerAttributesRequest(params)
  2037. //
  2038. // err := req.Send()
  2039. // if err == nil { // resp is now filled
  2040. // fmt.Println(resp)
  2041. // }
  2042. //
  2043. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes
  2044. func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
  2045. op := &request.Operation{
  2046. Name: opModifyLoadBalancerAttributes,
  2047. HTTPMethod: "POST",
  2048. HTTPPath: "/",
  2049. }
  2050. if input == nil {
  2051. input = &ModifyLoadBalancerAttributesInput{}
  2052. }
  2053. output = &ModifyLoadBalancerAttributesOutput{}
  2054. req = c.newRequest(op, input, output)
  2055. return
  2056. }
  2057. // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.
  2058. //
  2059. // Modifies the attributes of the specified load balancer.
  2060. //
  2061. // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining,
  2062. // and CrossZoneLoadBalancing by either enabling or disabling them. Or, you
  2063. // can modify the load balancer attribute ConnectionSettings by specifying an
  2064. // idle connection timeout value for your load balancer.
  2065. //
  2066. // For more information, see the following in the Classic Load Balancers Guide:
  2067. //
  2068. // * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
  2069. //
  2070. // * Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
  2071. //
  2072. // * Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html)
  2073. //
  2074. // * Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
  2075. //
  2076. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2077. // with awserr.Error's Code and Message methods to get detailed information about
  2078. // the error.
  2079. //
  2080. // See the AWS API reference guide for Elastic Load Balancing's
  2081. // API operation ModifyLoadBalancerAttributes for usage and error information.
  2082. //
  2083. // Returned Error Codes:
  2084. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2085. // The specified load balancer does not exist.
  2086. //
  2087. // * ErrCodeLoadBalancerAttributeNotFoundException "LoadBalancerAttributeNotFound"
  2088. // The specified load balancer attribute does not exist.
  2089. //
  2090. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2091. // The requested configuration change is not valid.
  2092. //
  2093. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/ModifyLoadBalancerAttributes
  2094. func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
  2095. req, out := c.ModifyLoadBalancerAttributesRequest(input)
  2096. return out, req.Send()
  2097. }
  2098. // ModifyLoadBalancerAttributesWithContext is the same as ModifyLoadBalancerAttributes with the addition of
  2099. // the ability to pass a context and additional request options.
  2100. //
  2101. // See ModifyLoadBalancerAttributes for details on how to use this API operation.
  2102. //
  2103. // The context must be non-nil and will be used for request cancellation. If
  2104. // the context is nil a panic will occur. In the future the SDK may create
  2105. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2106. // for more information on using Contexts.
  2107. func (c *ELB) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input *ModifyLoadBalancerAttributesInput, opts ...request.Option) (*ModifyLoadBalancerAttributesOutput, error) {
  2108. req, out := c.ModifyLoadBalancerAttributesRequest(input)
  2109. req.SetContext(ctx)
  2110. req.ApplyOptions(opts...)
  2111. return out, req.Send()
  2112. }
  2113. const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
  2114. // RegisterInstancesWithLoadBalancerRequest generates a "aws/request.Request" representing the
  2115. // client's request for the RegisterInstancesWithLoadBalancer operation. The "output" return
  2116. // value will be populated with the request's response once the request completes
  2117. // successfully.
  2118. //
  2119. // Use "Send" method on the returned Request to send the API call to the service.
  2120. // the "output" return value is not valid until after Send returns without error.
  2121. //
  2122. // See RegisterInstancesWithLoadBalancer for more information on using the RegisterInstancesWithLoadBalancer
  2123. // API call, and error handling.
  2124. //
  2125. // This method is useful when you want to inject custom logic or configuration
  2126. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2127. //
  2128. //
  2129. // // Example sending a request using the RegisterInstancesWithLoadBalancerRequest method.
  2130. // req, resp := client.RegisterInstancesWithLoadBalancerRequest(params)
  2131. //
  2132. // err := req.Send()
  2133. // if err == nil { // resp is now filled
  2134. // fmt.Println(resp)
  2135. // }
  2136. //
  2137. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer
  2138. func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
  2139. op := &request.Operation{
  2140. Name: opRegisterInstancesWithLoadBalancer,
  2141. HTTPMethod: "POST",
  2142. HTTPPath: "/",
  2143. }
  2144. if input == nil {
  2145. input = &RegisterInstancesWithLoadBalancerInput{}
  2146. }
  2147. output = &RegisterInstancesWithLoadBalancerOutput{}
  2148. req = c.newRequest(op, input, output)
  2149. return
  2150. }
  2151. // RegisterInstancesWithLoadBalancer API operation for Elastic Load Balancing.
  2152. //
  2153. // Adds the specified instances to the specified load balancer.
  2154. //
  2155. // The instance must be a running instance in the same network as the load balancer
  2156. // (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load
  2157. // balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic
  2158. // instances to that VPC and then register the linked EC2-Classic instances
  2159. // with the load balancer in the VPC.
  2160. //
  2161. // Note that RegisterInstanceWithLoadBalancer completes when the request has
  2162. // been registered. Instance registration takes a little time to complete. To
  2163. // check the state of the registered instances, use DescribeLoadBalancers or
  2164. // DescribeInstanceHealth.
  2165. //
  2166. // After the instance is registered, it starts receiving traffic and requests
  2167. // from the load balancer. Any instance that is not in one of the Availability
  2168. // Zones registered for the load balancer is moved to the OutOfService state.
  2169. // If an Availability Zone is added to the load balancer later, any instances
  2170. // registered with the load balancer move to the InService state.
  2171. //
  2172. // To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
  2173. //
  2174. // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
  2175. // in the Classic Load Balancers Guide.
  2176. //
  2177. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2178. // with awserr.Error's Code and Message methods to get detailed information about
  2179. // the error.
  2180. //
  2181. // See the AWS API reference guide for Elastic Load Balancing's
  2182. // API operation RegisterInstancesWithLoadBalancer for usage and error information.
  2183. //
  2184. // Returned Error Codes:
  2185. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2186. // The specified load balancer does not exist.
  2187. //
  2188. // * ErrCodeInvalidEndPointException "InvalidInstance"
  2189. // The specified endpoint is not valid.
  2190. //
  2191. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RegisterInstancesWithLoadBalancer
  2192. func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) {
  2193. req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
  2194. return out, req.Send()
  2195. }
  2196. // RegisterInstancesWithLoadBalancerWithContext is the same as RegisterInstancesWithLoadBalancer with the addition of
  2197. // the ability to pass a context and additional request options.
  2198. //
  2199. // See RegisterInstancesWithLoadBalancer for details on how to use this API operation.
  2200. //
  2201. // The context must be non-nil and will be used for request cancellation. If
  2202. // the context is nil a panic will occur. In the future the SDK may create
  2203. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2204. // for more information on using Contexts.
  2205. func (c *ELB) RegisterInstancesWithLoadBalancerWithContext(ctx aws.Context, input *RegisterInstancesWithLoadBalancerInput, opts ...request.Option) (*RegisterInstancesWithLoadBalancerOutput, error) {
  2206. req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
  2207. req.SetContext(ctx)
  2208. req.ApplyOptions(opts...)
  2209. return out, req.Send()
  2210. }
  2211. const opRemoveTags = "RemoveTags"
  2212. // RemoveTagsRequest generates a "aws/request.Request" representing the
  2213. // client's request for the RemoveTags operation. The "output" return
  2214. // value will be populated with the request's response once the request completes
  2215. // successfully.
  2216. //
  2217. // Use "Send" method on the returned Request to send the API call to the service.
  2218. // the "output" return value is not valid until after Send returns without error.
  2219. //
  2220. // See RemoveTags for more information on using the RemoveTags
  2221. // API call, and error handling.
  2222. //
  2223. // This method is useful when you want to inject custom logic or configuration
  2224. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2225. //
  2226. //
  2227. // // Example sending a request using the RemoveTagsRequest method.
  2228. // req, resp := client.RemoveTagsRequest(params)
  2229. //
  2230. // err := req.Send()
  2231. // if err == nil { // resp is now filled
  2232. // fmt.Println(resp)
  2233. // }
  2234. //
  2235. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags
  2236. func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
  2237. op := &request.Operation{
  2238. Name: opRemoveTags,
  2239. HTTPMethod: "POST",
  2240. HTTPPath: "/",
  2241. }
  2242. if input == nil {
  2243. input = &RemoveTagsInput{}
  2244. }
  2245. output = &RemoveTagsOutput{}
  2246. req = c.newRequest(op, input, output)
  2247. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2248. return
  2249. }
  2250. // RemoveTags API operation for Elastic Load Balancing.
  2251. //
  2252. // Removes one or more tags from the specified load balancer.
  2253. //
  2254. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2255. // with awserr.Error's Code and Message methods to get detailed information about
  2256. // the error.
  2257. //
  2258. // See the AWS API reference guide for Elastic Load Balancing's
  2259. // API operation RemoveTags for usage and error information.
  2260. //
  2261. // Returned Error Codes:
  2262. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2263. // The specified load balancer does not exist.
  2264. //
  2265. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/RemoveTags
  2266. func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
  2267. req, out := c.RemoveTagsRequest(input)
  2268. return out, req.Send()
  2269. }
  2270. // RemoveTagsWithContext is the same as RemoveTags with the addition of
  2271. // the ability to pass a context and additional request options.
  2272. //
  2273. // See RemoveTags for details on how to use this API operation.
  2274. //
  2275. // The context must be non-nil and will be used for request cancellation. If
  2276. // the context is nil a panic will occur. In the future the SDK may create
  2277. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2278. // for more information on using Contexts.
  2279. func (c *ELB) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error) {
  2280. req, out := c.RemoveTagsRequest(input)
  2281. req.SetContext(ctx)
  2282. req.ApplyOptions(opts...)
  2283. return out, req.Send()
  2284. }
  2285. const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
  2286. // SetLoadBalancerListenerSSLCertificateRequest generates a "aws/request.Request" representing the
  2287. // client's request for the SetLoadBalancerListenerSSLCertificate operation. The "output" return
  2288. // value will be populated with the request's response once the request completes
  2289. // successfully.
  2290. //
  2291. // Use "Send" method on the returned Request to send the API call to the service.
  2292. // the "output" return value is not valid until after Send returns without error.
  2293. //
  2294. // See SetLoadBalancerListenerSSLCertificate for more information on using the SetLoadBalancerListenerSSLCertificate
  2295. // API call, and error handling.
  2296. //
  2297. // This method is useful when you want to inject custom logic or configuration
  2298. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2299. //
  2300. //
  2301. // // Example sending a request using the SetLoadBalancerListenerSSLCertificateRequest method.
  2302. // req, resp := client.SetLoadBalancerListenerSSLCertificateRequest(params)
  2303. //
  2304. // err := req.Send()
  2305. // if err == nil { // resp is now filled
  2306. // fmt.Println(resp)
  2307. // }
  2308. //
  2309. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate
  2310. func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
  2311. op := &request.Operation{
  2312. Name: opSetLoadBalancerListenerSSLCertificate,
  2313. HTTPMethod: "POST",
  2314. HTTPPath: "/",
  2315. }
  2316. if input == nil {
  2317. input = &SetLoadBalancerListenerSSLCertificateInput{}
  2318. }
  2319. output = &SetLoadBalancerListenerSSLCertificateOutput{}
  2320. req = c.newRequest(op, input, output)
  2321. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2322. return
  2323. }
  2324. // SetLoadBalancerListenerSSLCertificate API operation for Elastic Load Balancing.
  2325. //
  2326. // Sets the certificate that terminates the specified listener's SSL connections.
  2327. // The specified certificate replaces any prior certificate that was used on
  2328. // the same load balancer and port.
  2329. //
  2330. // For more information about updating your SSL certificate, see Replace the
  2331. // SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html)
  2332. // in the Classic Load Balancers Guide.
  2333. //
  2334. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2335. // with awserr.Error's Code and Message methods to get detailed information about
  2336. // the error.
  2337. //
  2338. // See the AWS API reference guide for Elastic Load Balancing's
  2339. // API operation SetLoadBalancerListenerSSLCertificate for usage and error information.
  2340. //
  2341. // Returned Error Codes:
  2342. // * ErrCodeCertificateNotFoundException "CertificateNotFound"
  2343. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  2344. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  2345. // you recently uploaded the certificate to IAM, this error might indicate that
  2346. // the certificate is not fully available yet.
  2347. //
  2348. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2349. // The specified load balancer does not exist.
  2350. //
  2351. // * ErrCodeListenerNotFoundException "ListenerNotFound"
  2352. // The load balancer does not have a listener configured at the specified port.
  2353. //
  2354. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2355. // The requested configuration change is not valid.
  2356. //
  2357. // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
  2358. // The specified protocol or signature version is not supported.
  2359. //
  2360. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate
  2361. func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
  2362. req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
  2363. return out, req.Send()
  2364. }
  2365. // SetLoadBalancerListenerSSLCertificateWithContext is the same as SetLoadBalancerListenerSSLCertificate with the addition of
  2366. // the ability to pass a context and additional request options.
  2367. //
  2368. // See SetLoadBalancerListenerSSLCertificate for details on how to use this API operation.
  2369. //
  2370. // The context must be non-nil and will be used for request cancellation. If
  2371. // the context is nil a panic will occur. In the future the SDK may create
  2372. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2373. // for more information on using Contexts.
  2374. func (c *ELB) SetLoadBalancerListenerSSLCertificateWithContext(ctx aws.Context, input *SetLoadBalancerListenerSSLCertificateInput, opts ...request.Option) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
  2375. req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
  2376. req.SetContext(ctx)
  2377. req.ApplyOptions(opts...)
  2378. return out, req.Send()
  2379. }
  2380. const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
  2381. // SetLoadBalancerPoliciesForBackendServerRequest generates a "aws/request.Request" representing the
  2382. // client's request for the SetLoadBalancerPoliciesForBackendServer operation. The "output" return
  2383. // value will be populated with the request's response once the request completes
  2384. // successfully.
  2385. //
  2386. // Use "Send" method on the returned Request to send the API call to the service.
  2387. // the "output" return value is not valid until after Send returns without error.
  2388. //
  2389. // See SetLoadBalancerPoliciesForBackendServer for more information on using the SetLoadBalancerPoliciesForBackendServer
  2390. // API call, and error handling.
  2391. //
  2392. // This method is useful when you want to inject custom logic or configuration
  2393. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2394. //
  2395. //
  2396. // // Example sending a request using the SetLoadBalancerPoliciesForBackendServerRequest method.
  2397. // req, resp := client.SetLoadBalancerPoliciesForBackendServerRequest(params)
  2398. //
  2399. // err := req.Send()
  2400. // if err == nil { // resp is now filled
  2401. // fmt.Println(resp)
  2402. // }
  2403. //
  2404. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer
  2405. func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
  2406. op := &request.Operation{
  2407. Name: opSetLoadBalancerPoliciesForBackendServer,
  2408. HTTPMethod: "POST",
  2409. HTTPPath: "/",
  2410. }
  2411. if input == nil {
  2412. input = &SetLoadBalancerPoliciesForBackendServerInput{}
  2413. }
  2414. output = &SetLoadBalancerPoliciesForBackendServerOutput{}
  2415. req = c.newRequest(op, input, output)
  2416. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2417. return
  2418. }
  2419. // SetLoadBalancerPoliciesForBackendServer API operation for Elastic Load Balancing.
  2420. //
  2421. // Replaces the set of policies associated with the specified port on which
  2422. // the EC2 instance is listening with a new set of policies. At this time, only
  2423. // the back-end server authentication policy type can be applied to the instance
  2424. // ports; this policy type is composed of multiple public key policies.
  2425. //
  2426. // Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies,
  2427. // use the PolicyNames parameter to list the policies that you want to enable.
  2428. //
  2429. // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify
  2430. // that the policy is associated with the EC2 instance.
  2431. //
  2432. // For more information about enabling back-end instance authentication, see
  2433. // Configure Back-end Instance Authentication (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.html#configure_backendauth_clt)
  2434. // in the Classic Load Balancers Guide. For more information about Proxy Protocol,
  2435. // see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html)
  2436. // in the Classic Load Balancers Guide.
  2437. //
  2438. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2439. // with awserr.Error's Code and Message methods to get detailed information about
  2440. // the error.
  2441. //
  2442. // See the AWS API reference guide for Elastic Load Balancing's
  2443. // API operation SetLoadBalancerPoliciesForBackendServer for usage and error information.
  2444. //
  2445. // Returned Error Codes:
  2446. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2447. // The specified load balancer does not exist.
  2448. //
  2449. // * ErrCodePolicyNotFoundException "PolicyNotFound"
  2450. // One or more of the specified policies do not exist.
  2451. //
  2452. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2453. // The requested configuration change is not valid.
  2454. //
  2455. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesForBackendServer
  2456. func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
  2457. req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
  2458. return out, req.Send()
  2459. }
  2460. // SetLoadBalancerPoliciesForBackendServerWithContext is the same as SetLoadBalancerPoliciesForBackendServer with the addition of
  2461. // the ability to pass a context and additional request options.
  2462. //
  2463. // See SetLoadBalancerPoliciesForBackendServer for details on how to use this API operation.
  2464. //
  2465. // The context must be non-nil and will be used for request cancellation. If
  2466. // the context is nil a panic will occur. In the future the SDK may create
  2467. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2468. // for more information on using Contexts.
  2469. func (c *ELB) SetLoadBalancerPoliciesForBackendServerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesForBackendServerInput, opts ...request.Option) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
  2470. req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
  2471. req.SetContext(ctx)
  2472. req.ApplyOptions(opts...)
  2473. return out, req.Send()
  2474. }
  2475. const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
  2476. // SetLoadBalancerPoliciesOfListenerRequest generates a "aws/request.Request" representing the
  2477. // client's request for the SetLoadBalancerPoliciesOfListener operation. The "output" return
  2478. // value will be populated with the request's response once the request completes
  2479. // successfully.
  2480. //
  2481. // Use "Send" method on the returned Request to send the API call to the service.
  2482. // the "output" return value is not valid until after Send returns without error.
  2483. //
  2484. // See SetLoadBalancerPoliciesOfListener for more information on using the SetLoadBalancerPoliciesOfListener
  2485. // API call, and error handling.
  2486. //
  2487. // This method is useful when you want to inject custom logic or configuration
  2488. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2489. //
  2490. //
  2491. // // Example sending a request using the SetLoadBalancerPoliciesOfListenerRequest method.
  2492. // req, resp := client.SetLoadBalancerPoliciesOfListenerRequest(params)
  2493. //
  2494. // err := req.Send()
  2495. // if err == nil { // resp is now filled
  2496. // fmt.Println(resp)
  2497. // }
  2498. //
  2499. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener
  2500. func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
  2501. op := &request.Operation{
  2502. Name: opSetLoadBalancerPoliciesOfListener,
  2503. HTTPMethod: "POST",
  2504. HTTPPath: "/",
  2505. }
  2506. if input == nil {
  2507. input = &SetLoadBalancerPoliciesOfListenerInput{}
  2508. }
  2509. output = &SetLoadBalancerPoliciesOfListenerOutput{}
  2510. req = c.newRequest(op, input, output)
  2511. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2512. return
  2513. }
  2514. // SetLoadBalancerPoliciesOfListener API operation for Elastic Load Balancing.
  2515. //
  2516. // Replaces the current set of policies for the specified load balancer port
  2517. // with the specified set of policies.
  2518. //
  2519. // To enable back-end server authentication, use SetLoadBalancerPoliciesForBackendServer.
  2520. //
  2521. // For more information about setting policies, see Update the SSL Negotiation
  2522. // Configuration (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ssl-config-update.html),
  2523. // Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration),
  2524. // and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
  2525. // in the Classic Load Balancers Guide.
  2526. //
  2527. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2528. // with awserr.Error's Code and Message methods to get detailed information about
  2529. // the error.
  2530. //
  2531. // See the AWS API reference guide for Elastic Load Balancing's
  2532. // API operation SetLoadBalancerPoliciesOfListener for usage and error information.
  2533. //
  2534. // Returned Error Codes:
  2535. // * ErrCodeAccessPointNotFoundException "LoadBalancerNotFound"
  2536. // The specified load balancer does not exist.
  2537. //
  2538. // * ErrCodePolicyNotFoundException "PolicyNotFound"
  2539. // One or more of the specified policies do not exist.
  2540. //
  2541. // * ErrCodeListenerNotFoundException "ListenerNotFound"
  2542. // The load balancer does not have a listener configured at the specified port.
  2543. //
  2544. // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
  2545. // The requested configuration change is not valid.
  2546. //
  2547. // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerPoliciesOfListener
  2548. func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
  2549. req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
  2550. return out, req.Send()
  2551. }
  2552. // SetLoadBalancerPoliciesOfListenerWithContext is the same as SetLoadBalancerPoliciesOfListener with the addition of
  2553. // the ability to pass a context and additional request options.
  2554. //
  2555. // See SetLoadBalancerPoliciesOfListener for details on how to use this API operation.
  2556. //
  2557. // The context must be non-nil and will be used for request cancellation. If
  2558. // the context is nil a panic will occur. In the future the SDK may create
  2559. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2560. // for more information on using Contexts.
  2561. func (c *ELB) SetLoadBalancerPoliciesOfListenerWithContext(ctx aws.Context, input *SetLoadBalancerPoliciesOfListenerInput, opts ...request.Option) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
  2562. req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
  2563. req.SetContext(ctx)
  2564. req.ApplyOptions(opts...)
  2565. return out, req.Send()
  2566. }
  2567. // Information about the AccessLog attribute.
  2568. type AccessLog struct {
  2569. _ struct{} `type:"structure"`
  2570. // The interval for publishing the access logs. You can specify an interval
  2571. // of either 5 minutes or 60 minutes.
  2572. //
  2573. // Default: 60 minutes
  2574. EmitInterval *int64 `type:"integer"`
  2575. // Specifies whether access logs are enabled for the load balancer.
  2576. //
  2577. // Enabled is a required field
  2578. Enabled *bool `type:"boolean" required:"true"`
  2579. // The name of the Amazon S3 bucket where the access logs are stored.
  2580. S3BucketName *string `type:"string"`
  2581. // The logical hierarchy you created for your Amazon S3 bucket, for example
  2582. // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
  2583. // the root level of the bucket.
  2584. S3BucketPrefix *string `type:"string"`
  2585. }
  2586. // String returns the string representation
  2587. func (s AccessLog) String() string {
  2588. return awsutil.Prettify(s)
  2589. }
  2590. // GoString returns the string representation
  2591. func (s AccessLog) GoString() string {
  2592. return s.String()
  2593. }
  2594. // Validate inspects the fields of the type to determine if they are valid.
  2595. func (s *AccessLog) Validate() error {
  2596. invalidParams := request.ErrInvalidParams{Context: "AccessLog"}
  2597. if s.Enabled == nil {
  2598. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2599. }
  2600. if invalidParams.Len() > 0 {
  2601. return invalidParams
  2602. }
  2603. return nil
  2604. }
  2605. // SetEmitInterval sets the EmitInterval field's value.
  2606. func (s *AccessLog) SetEmitInterval(v int64) *AccessLog {
  2607. s.EmitInterval = &v
  2608. return s
  2609. }
  2610. // SetEnabled sets the Enabled field's value.
  2611. func (s *AccessLog) SetEnabled(v bool) *AccessLog {
  2612. s.Enabled = &v
  2613. return s
  2614. }
  2615. // SetS3BucketName sets the S3BucketName field's value.
  2616. func (s *AccessLog) SetS3BucketName(v string) *AccessLog {
  2617. s.S3BucketName = &v
  2618. return s
  2619. }
  2620. // SetS3BucketPrefix sets the S3BucketPrefix field's value.
  2621. func (s *AccessLog) SetS3BucketPrefix(v string) *AccessLog {
  2622. s.S3BucketPrefix = &v
  2623. return s
  2624. }
  2625. // Contains the parameters for AddTags.
  2626. type AddTagsInput struct {
  2627. _ struct{} `type:"structure"`
  2628. // The name of the load balancer. You can specify one load balancer only.
  2629. //
  2630. // LoadBalancerNames is a required field
  2631. LoadBalancerNames []*string `type:"list" required:"true"`
  2632. // The tags.
  2633. //
  2634. // Tags is a required field
  2635. Tags []*Tag `min:"1" type:"list" required:"true"`
  2636. }
  2637. // String returns the string representation
  2638. func (s AddTagsInput) String() string {
  2639. return awsutil.Prettify(s)
  2640. }
  2641. // GoString returns the string representation
  2642. func (s AddTagsInput) GoString() string {
  2643. return s.String()
  2644. }
  2645. // Validate inspects the fields of the type to determine if they are valid.
  2646. func (s *AddTagsInput) Validate() error {
  2647. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  2648. if s.LoadBalancerNames == nil {
  2649. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  2650. }
  2651. if s.Tags == nil {
  2652. invalidParams.Add(request.NewErrParamRequired("Tags"))
  2653. }
  2654. if s.Tags != nil && len(s.Tags) < 1 {
  2655. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  2656. }
  2657. if s.Tags != nil {
  2658. for i, v := range s.Tags {
  2659. if v == nil {
  2660. continue
  2661. }
  2662. if err := v.Validate(); err != nil {
  2663. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2664. }
  2665. }
  2666. }
  2667. if invalidParams.Len() > 0 {
  2668. return invalidParams
  2669. }
  2670. return nil
  2671. }
  2672. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  2673. func (s *AddTagsInput) SetLoadBalancerNames(v []*string) *AddTagsInput {
  2674. s.LoadBalancerNames = v
  2675. return s
  2676. }
  2677. // SetTags sets the Tags field's value.
  2678. func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
  2679. s.Tags = v
  2680. return s
  2681. }
  2682. // Contains the output of AddTags.
  2683. type AddTagsOutput struct {
  2684. _ struct{} `type:"structure"`
  2685. }
  2686. // String returns the string representation
  2687. func (s AddTagsOutput) String() string {
  2688. return awsutil.Prettify(s)
  2689. }
  2690. // GoString returns the string representation
  2691. func (s AddTagsOutput) GoString() string {
  2692. return s.String()
  2693. }
  2694. // This data type is reserved.
  2695. type AdditionalAttribute struct {
  2696. _ struct{} `type:"structure"`
  2697. // This parameter is reserved.
  2698. Key *string `type:"string"`
  2699. // This parameter is reserved.
  2700. Value *string `type:"string"`
  2701. }
  2702. // String returns the string representation
  2703. func (s AdditionalAttribute) String() string {
  2704. return awsutil.Prettify(s)
  2705. }
  2706. // GoString returns the string representation
  2707. func (s AdditionalAttribute) GoString() string {
  2708. return s.String()
  2709. }
  2710. // SetKey sets the Key field's value.
  2711. func (s *AdditionalAttribute) SetKey(v string) *AdditionalAttribute {
  2712. s.Key = &v
  2713. return s
  2714. }
  2715. // SetValue sets the Value field's value.
  2716. func (s *AdditionalAttribute) SetValue(v string) *AdditionalAttribute {
  2717. s.Value = &v
  2718. return s
  2719. }
  2720. // Information about a policy for application-controlled session stickiness.
  2721. type AppCookieStickinessPolicy struct {
  2722. _ struct{} `type:"structure"`
  2723. // The name of the application cookie used for stickiness.
  2724. CookieName *string `type:"string"`
  2725. // The mnemonic name for the policy being created. The name must be unique within
  2726. // a set of policies for this load balancer.
  2727. PolicyName *string `type:"string"`
  2728. }
  2729. // String returns the string representation
  2730. func (s AppCookieStickinessPolicy) String() string {
  2731. return awsutil.Prettify(s)
  2732. }
  2733. // GoString returns the string representation
  2734. func (s AppCookieStickinessPolicy) GoString() string {
  2735. return s.String()
  2736. }
  2737. // SetCookieName sets the CookieName field's value.
  2738. func (s *AppCookieStickinessPolicy) SetCookieName(v string) *AppCookieStickinessPolicy {
  2739. s.CookieName = &v
  2740. return s
  2741. }
  2742. // SetPolicyName sets the PolicyName field's value.
  2743. func (s *AppCookieStickinessPolicy) SetPolicyName(v string) *AppCookieStickinessPolicy {
  2744. s.PolicyName = &v
  2745. return s
  2746. }
  2747. // Contains the parameters for ApplySecurityGroupsToLoadBalancer.
  2748. type ApplySecurityGroupsToLoadBalancerInput struct {
  2749. _ struct{} `type:"structure"`
  2750. // The name of the load balancer.
  2751. //
  2752. // LoadBalancerName is a required field
  2753. LoadBalancerName *string `type:"string" required:"true"`
  2754. // The IDs of the security groups to associate with the load balancer. Note
  2755. // that you cannot specify the name of the security group.
  2756. //
  2757. // SecurityGroups is a required field
  2758. SecurityGroups []*string `type:"list" required:"true"`
  2759. }
  2760. // String returns the string representation
  2761. func (s ApplySecurityGroupsToLoadBalancerInput) String() string {
  2762. return awsutil.Prettify(s)
  2763. }
  2764. // GoString returns the string representation
  2765. func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string {
  2766. return s.String()
  2767. }
  2768. // Validate inspects the fields of the type to determine if they are valid.
  2769. func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error {
  2770. invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToLoadBalancerInput"}
  2771. if s.LoadBalancerName == nil {
  2772. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2773. }
  2774. if s.SecurityGroups == nil {
  2775. invalidParams.Add(request.NewErrParamRequired("SecurityGroups"))
  2776. }
  2777. if invalidParams.Len() > 0 {
  2778. return invalidParams
  2779. }
  2780. return nil
  2781. }
  2782. // SetLoadBalancerName sets the LoadBalancerName field's value.
  2783. func (s *ApplySecurityGroupsToLoadBalancerInput) SetLoadBalancerName(v string) *ApplySecurityGroupsToLoadBalancerInput {
  2784. s.LoadBalancerName = &v
  2785. return s
  2786. }
  2787. // SetSecurityGroups sets the SecurityGroups field's value.
  2788. func (s *ApplySecurityGroupsToLoadBalancerInput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerInput {
  2789. s.SecurityGroups = v
  2790. return s
  2791. }
  2792. // Contains the output of ApplySecurityGroupsToLoadBalancer.
  2793. type ApplySecurityGroupsToLoadBalancerOutput struct {
  2794. _ struct{} `type:"structure"`
  2795. // The IDs of the security groups associated with the load balancer.
  2796. SecurityGroups []*string `type:"list"`
  2797. }
  2798. // String returns the string representation
  2799. func (s ApplySecurityGroupsToLoadBalancerOutput) String() string {
  2800. return awsutil.Prettify(s)
  2801. }
  2802. // GoString returns the string representation
  2803. func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string {
  2804. return s.String()
  2805. }
  2806. // SetSecurityGroups sets the SecurityGroups field's value.
  2807. func (s *ApplySecurityGroupsToLoadBalancerOutput) SetSecurityGroups(v []*string) *ApplySecurityGroupsToLoadBalancerOutput {
  2808. s.SecurityGroups = v
  2809. return s
  2810. }
  2811. // Contains the parameters for AttachLoaBalancerToSubnets.
  2812. type AttachLoadBalancerToSubnetsInput struct {
  2813. _ struct{} `type:"structure"`
  2814. // The name of the load balancer.
  2815. //
  2816. // LoadBalancerName is a required field
  2817. LoadBalancerName *string `type:"string" required:"true"`
  2818. // The IDs of the subnets to add. You can add only one subnet per Availability
  2819. // Zone.
  2820. //
  2821. // Subnets is a required field
  2822. Subnets []*string `type:"list" required:"true"`
  2823. }
  2824. // String returns the string representation
  2825. func (s AttachLoadBalancerToSubnetsInput) String() string {
  2826. return awsutil.Prettify(s)
  2827. }
  2828. // GoString returns the string representation
  2829. func (s AttachLoadBalancerToSubnetsInput) GoString() string {
  2830. return s.String()
  2831. }
  2832. // Validate inspects the fields of the type to determine if they are valid.
  2833. func (s *AttachLoadBalancerToSubnetsInput) Validate() error {
  2834. invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerToSubnetsInput"}
  2835. if s.LoadBalancerName == nil {
  2836. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2837. }
  2838. if s.Subnets == nil {
  2839. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  2840. }
  2841. if invalidParams.Len() > 0 {
  2842. return invalidParams
  2843. }
  2844. return nil
  2845. }
  2846. // SetLoadBalancerName sets the LoadBalancerName field's value.
  2847. func (s *AttachLoadBalancerToSubnetsInput) SetLoadBalancerName(v string) *AttachLoadBalancerToSubnetsInput {
  2848. s.LoadBalancerName = &v
  2849. return s
  2850. }
  2851. // SetSubnets sets the Subnets field's value.
  2852. func (s *AttachLoadBalancerToSubnetsInput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsInput {
  2853. s.Subnets = v
  2854. return s
  2855. }
  2856. // Contains the output of AttachLoadBalancerToSubnets.
  2857. type AttachLoadBalancerToSubnetsOutput struct {
  2858. _ struct{} `type:"structure"`
  2859. // The IDs of the subnets attached to the load balancer.
  2860. Subnets []*string `type:"list"`
  2861. }
  2862. // String returns the string representation
  2863. func (s AttachLoadBalancerToSubnetsOutput) String() string {
  2864. return awsutil.Prettify(s)
  2865. }
  2866. // GoString returns the string representation
  2867. func (s AttachLoadBalancerToSubnetsOutput) GoString() string {
  2868. return s.String()
  2869. }
  2870. // SetSubnets sets the Subnets field's value.
  2871. func (s *AttachLoadBalancerToSubnetsOutput) SetSubnets(v []*string) *AttachLoadBalancerToSubnetsOutput {
  2872. s.Subnets = v
  2873. return s
  2874. }
  2875. // Information about the configuration of an EC2 instance.
  2876. type BackendServerDescription struct {
  2877. _ struct{} `type:"structure"`
  2878. // The port on which the EC2 instance is listening.
  2879. InstancePort *int64 `min:"1" type:"integer"`
  2880. // The names of the policies enabled for the EC2 instance.
  2881. PolicyNames []*string `type:"list"`
  2882. }
  2883. // String returns the string representation
  2884. func (s BackendServerDescription) String() string {
  2885. return awsutil.Prettify(s)
  2886. }
  2887. // GoString returns the string representation
  2888. func (s BackendServerDescription) GoString() string {
  2889. return s.String()
  2890. }
  2891. // SetInstancePort sets the InstancePort field's value.
  2892. func (s *BackendServerDescription) SetInstancePort(v int64) *BackendServerDescription {
  2893. s.InstancePort = &v
  2894. return s
  2895. }
  2896. // SetPolicyNames sets the PolicyNames field's value.
  2897. func (s *BackendServerDescription) SetPolicyNames(v []*string) *BackendServerDescription {
  2898. s.PolicyNames = v
  2899. return s
  2900. }
  2901. // Contains the parameters for ConfigureHealthCheck.
  2902. type ConfigureHealthCheckInput struct {
  2903. _ struct{} `type:"structure"`
  2904. // The configuration information.
  2905. //
  2906. // HealthCheck is a required field
  2907. HealthCheck *HealthCheck `type:"structure" required:"true"`
  2908. // The name of the load balancer.
  2909. //
  2910. // LoadBalancerName is a required field
  2911. LoadBalancerName *string `type:"string" required:"true"`
  2912. }
  2913. // String returns the string representation
  2914. func (s ConfigureHealthCheckInput) String() string {
  2915. return awsutil.Prettify(s)
  2916. }
  2917. // GoString returns the string representation
  2918. func (s ConfigureHealthCheckInput) GoString() string {
  2919. return s.String()
  2920. }
  2921. // Validate inspects the fields of the type to determine if they are valid.
  2922. func (s *ConfigureHealthCheckInput) Validate() error {
  2923. invalidParams := request.ErrInvalidParams{Context: "ConfigureHealthCheckInput"}
  2924. if s.HealthCheck == nil {
  2925. invalidParams.Add(request.NewErrParamRequired("HealthCheck"))
  2926. }
  2927. if s.LoadBalancerName == nil {
  2928. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2929. }
  2930. if s.HealthCheck != nil {
  2931. if err := s.HealthCheck.Validate(); err != nil {
  2932. invalidParams.AddNested("HealthCheck", err.(request.ErrInvalidParams))
  2933. }
  2934. }
  2935. if invalidParams.Len() > 0 {
  2936. return invalidParams
  2937. }
  2938. return nil
  2939. }
  2940. // SetHealthCheck sets the HealthCheck field's value.
  2941. func (s *ConfigureHealthCheckInput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckInput {
  2942. s.HealthCheck = v
  2943. return s
  2944. }
  2945. // SetLoadBalancerName sets the LoadBalancerName field's value.
  2946. func (s *ConfigureHealthCheckInput) SetLoadBalancerName(v string) *ConfigureHealthCheckInput {
  2947. s.LoadBalancerName = &v
  2948. return s
  2949. }
  2950. // Contains the output of ConfigureHealthCheck.
  2951. type ConfigureHealthCheckOutput struct {
  2952. _ struct{} `type:"structure"`
  2953. // The updated health check.
  2954. HealthCheck *HealthCheck `type:"structure"`
  2955. }
  2956. // String returns the string representation
  2957. func (s ConfigureHealthCheckOutput) String() string {
  2958. return awsutil.Prettify(s)
  2959. }
  2960. // GoString returns the string representation
  2961. func (s ConfigureHealthCheckOutput) GoString() string {
  2962. return s.String()
  2963. }
  2964. // SetHealthCheck sets the HealthCheck field's value.
  2965. func (s *ConfigureHealthCheckOutput) SetHealthCheck(v *HealthCheck) *ConfigureHealthCheckOutput {
  2966. s.HealthCheck = v
  2967. return s
  2968. }
  2969. // Information about the ConnectionDraining attribute.
  2970. type ConnectionDraining struct {
  2971. _ struct{} `type:"structure"`
  2972. // Specifies whether connection draining is enabled for the load balancer.
  2973. //
  2974. // Enabled is a required field
  2975. Enabled *bool `type:"boolean" required:"true"`
  2976. // The maximum time, in seconds, to keep the existing connections open before
  2977. // deregistering the instances.
  2978. Timeout *int64 `type:"integer"`
  2979. }
  2980. // String returns the string representation
  2981. func (s ConnectionDraining) String() string {
  2982. return awsutil.Prettify(s)
  2983. }
  2984. // GoString returns the string representation
  2985. func (s ConnectionDraining) GoString() string {
  2986. return s.String()
  2987. }
  2988. // Validate inspects the fields of the type to determine if they are valid.
  2989. func (s *ConnectionDraining) Validate() error {
  2990. invalidParams := request.ErrInvalidParams{Context: "ConnectionDraining"}
  2991. if s.Enabled == nil {
  2992. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2993. }
  2994. if invalidParams.Len() > 0 {
  2995. return invalidParams
  2996. }
  2997. return nil
  2998. }
  2999. // SetEnabled sets the Enabled field's value.
  3000. func (s *ConnectionDraining) SetEnabled(v bool) *ConnectionDraining {
  3001. s.Enabled = &v
  3002. return s
  3003. }
  3004. // SetTimeout sets the Timeout field's value.
  3005. func (s *ConnectionDraining) SetTimeout(v int64) *ConnectionDraining {
  3006. s.Timeout = &v
  3007. return s
  3008. }
  3009. // Information about the ConnectionSettings attribute.
  3010. type ConnectionSettings struct {
  3011. _ struct{} `type:"structure"`
  3012. // The time, in seconds, that the connection is allowed to be idle (no data
  3013. // has been sent over the connection) before it is closed by the load balancer.
  3014. //
  3015. // IdleTimeout is a required field
  3016. IdleTimeout *int64 `min:"1" type:"integer" required:"true"`
  3017. }
  3018. // String returns the string representation
  3019. func (s ConnectionSettings) String() string {
  3020. return awsutil.Prettify(s)
  3021. }
  3022. // GoString returns the string representation
  3023. func (s ConnectionSettings) GoString() string {
  3024. return s.String()
  3025. }
  3026. // Validate inspects the fields of the type to determine if they are valid.
  3027. func (s *ConnectionSettings) Validate() error {
  3028. invalidParams := request.ErrInvalidParams{Context: "ConnectionSettings"}
  3029. if s.IdleTimeout == nil {
  3030. invalidParams.Add(request.NewErrParamRequired("IdleTimeout"))
  3031. }
  3032. if s.IdleTimeout != nil && *s.IdleTimeout < 1 {
  3033. invalidParams.Add(request.NewErrParamMinValue("IdleTimeout", 1))
  3034. }
  3035. if invalidParams.Len() > 0 {
  3036. return invalidParams
  3037. }
  3038. return nil
  3039. }
  3040. // SetIdleTimeout sets the IdleTimeout field's value.
  3041. func (s *ConnectionSettings) SetIdleTimeout(v int64) *ConnectionSettings {
  3042. s.IdleTimeout = &v
  3043. return s
  3044. }
  3045. // Contains the parameters for CreateAppCookieStickinessPolicy.
  3046. type CreateAppCookieStickinessPolicyInput struct {
  3047. _ struct{} `type:"structure"`
  3048. // The name of the application cookie used for stickiness.
  3049. //
  3050. // CookieName is a required field
  3051. CookieName *string `type:"string" required:"true"`
  3052. // The name of the load balancer.
  3053. //
  3054. // LoadBalancerName is a required field
  3055. LoadBalancerName *string `type:"string" required:"true"`
  3056. // The name of the policy being created. Policy names must consist of alphanumeric
  3057. // characters and dashes (-). This name must be unique within the set of policies
  3058. // for this load balancer.
  3059. //
  3060. // PolicyName is a required field
  3061. PolicyName *string `type:"string" required:"true"`
  3062. }
  3063. // String returns the string representation
  3064. func (s CreateAppCookieStickinessPolicyInput) String() string {
  3065. return awsutil.Prettify(s)
  3066. }
  3067. // GoString returns the string representation
  3068. func (s CreateAppCookieStickinessPolicyInput) GoString() string {
  3069. return s.String()
  3070. }
  3071. // Validate inspects the fields of the type to determine if they are valid.
  3072. func (s *CreateAppCookieStickinessPolicyInput) Validate() error {
  3073. invalidParams := request.ErrInvalidParams{Context: "CreateAppCookieStickinessPolicyInput"}
  3074. if s.CookieName == nil {
  3075. invalidParams.Add(request.NewErrParamRequired("CookieName"))
  3076. }
  3077. if s.LoadBalancerName == nil {
  3078. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3079. }
  3080. if s.PolicyName == nil {
  3081. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3082. }
  3083. if invalidParams.Len() > 0 {
  3084. return invalidParams
  3085. }
  3086. return nil
  3087. }
  3088. // SetCookieName sets the CookieName field's value.
  3089. func (s *CreateAppCookieStickinessPolicyInput) SetCookieName(v string) *CreateAppCookieStickinessPolicyInput {
  3090. s.CookieName = &v
  3091. return s
  3092. }
  3093. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3094. func (s *CreateAppCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateAppCookieStickinessPolicyInput {
  3095. s.LoadBalancerName = &v
  3096. return s
  3097. }
  3098. // SetPolicyName sets the PolicyName field's value.
  3099. func (s *CreateAppCookieStickinessPolicyInput) SetPolicyName(v string) *CreateAppCookieStickinessPolicyInput {
  3100. s.PolicyName = &v
  3101. return s
  3102. }
  3103. // Contains the output for CreateAppCookieStickinessPolicy.
  3104. type CreateAppCookieStickinessPolicyOutput struct {
  3105. _ struct{} `type:"structure"`
  3106. }
  3107. // String returns the string representation
  3108. func (s CreateAppCookieStickinessPolicyOutput) String() string {
  3109. return awsutil.Prettify(s)
  3110. }
  3111. // GoString returns the string representation
  3112. func (s CreateAppCookieStickinessPolicyOutput) GoString() string {
  3113. return s.String()
  3114. }
  3115. // Contains the parameters for CreateLBCookieStickinessPolicy.
  3116. type CreateLBCookieStickinessPolicyInput struct {
  3117. _ struct{} `type:"structure"`
  3118. // The time period, in seconds, after which the cookie should be considered
  3119. // stale. If you do not specify this parameter, the default value is 0, which
  3120. // indicates that the sticky session should last for the duration of the browser
  3121. // session.
  3122. CookieExpirationPeriod *int64 `type:"long"`
  3123. // The name of the load balancer.
  3124. //
  3125. // LoadBalancerName is a required field
  3126. LoadBalancerName *string `type:"string" required:"true"`
  3127. // The name of the policy being created. Policy names must consist of alphanumeric
  3128. // characters and dashes (-). This name must be unique within the set of policies
  3129. // for this load balancer.
  3130. //
  3131. // PolicyName is a required field
  3132. PolicyName *string `type:"string" required:"true"`
  3133. }
  3134. // String returns the string representation
  3135. func (s CreateLBCookieStickinessPolicyInput) String() string {
  3136. return awsutil.Prettify(s)
  3137. }
  3138. // GoString returns the string representation
  3139. func (s CreateLBCookieStickinessPolicyInput) GoString() string {
  3140. return s.String()
  3141. }
  3142. // Validate inspects the fields of the type to determine if they are valid.
  3143. func (s *CreateLBCookieStickinessPolicyInput) Validate() error {
  3144. invalidParams := request.ErrInvalidParams{Context: "CreateLBCookieStickinessPolicyInput"}
  3145. if s.LoadBalancerName == nil {
  3146. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3147. }
  3148. if s.PolicyName == nil {
  3149. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3150. }
  3151. if invalidParams.Len() > 0 {
  3152. return invalidParams
  3153. }
  3154. return nil
  3155. }
  3156. // SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.
  3157. func (s *CreateLBCookieStickinessPolicyInput) SetCookieExpirationPeriod(v int64) *CreateLBCookieStickinessPolicyInput {
  3158. s.CookieExpirationPeriod = &v
  3159. return s
  3160. }
  3161. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3162. func (s *CreateLBCookieStickinessPolicyInput) SetLoadBalancerName(v string) *CreateLBCookieStickinessPolicyInput {
  3163. s.LoadBalancerName = &v
  3164. return s
  3165. }
  3166. // SetPolicyName sets the PolicyName field's value.
  3167. func (s *CreateLBCookieStickinessPolicyInput) SetPolicyName(v string) *CreateLBCookieStickinessPolicyInput {
  3168. s.PolicyName = &v
  3169. return s
  3170. }
  3171. // Contains the output for CreateLBCookieStickinessPolicy.
  3172. type CreateLBCookieStickinessPolicyOutput struct {
  3173. _ struct{} `type:"structure"`
  3174. }
  3175. // String returns the string representation
  3176. func (s CreateLBCookieStickinessPolicyOutput) String() string {
  3177. return awsutil.Prettify(s)
  3178. }
  3179. // GoString returns the string representation
  3180. func (s CreateLBCookieStickinessPolicyOutput) GoString() string {
  3181. return s.String()
  3182. }
  3183. // Contains the parameters for CreateLoadBalancer.
  3184. type CreateLoadBalancerInput struct {
  3185. _ struct{} `type:"structure"`
  3186. // One or more Availability Zones from the same region as the load balancer.
  3187. //
  3188. // You must specify at least one Availability Zone.
  3189. //
  3190. // You can add more Availability Zones after you create the load balancer using
  3191. // EnableAvailabilityZonesForLoadBalancer.
  3192. AvailabilityZones []*string `type:"list"`
  3193. // The listeners.
  3194. //
  3195. // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  3196. // in the Classic Load Balancers Guide.
  3197. //
  3198. // Listeners is a required field
  3199. Listeners []*Listener `type:"list" required:"true"`
  3200. // The name of the load balancer.
  3201. //
  3202. // This name must be unique within your set of load balancers for the region,
  3203. // must have a maximum of 32 characters, must contain only alphanumeric characters
  3204. // or hyphens, and cannot begin or end with a hyphen.
  3205. //
  3206. // LoadBalancerName is a required field
  3207. LoadBalancerName *string `type:"string" required:"true"`
  3208. // The type of a load balancer. Valid only for load balancers in a VPC.
  3209. //
  3210. // By default, Elastic Load Balancing creates an Internet-facing load balancer
  3211. // with a DNS name that resolves to public IP addresses. For more information
  3212. // about Internet-facing and Internal load balancers, see Load Balancer Scheme
  3213. // (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme)
  3214. // in the Elastic Load Balancing User Guide.
  3215. //
  3216. // Specify internal to create a load balancer with a DNS name that resolves
  3217. // to private IP addresses.
  3218. Scheme *string `type:"string"`
  3219. // The IDs of the security groups to assign to the load balancer.
  3220. SecurityGroups []*string `type:"list"`
  3221. // The IDs of the subnets in your VPC to attach to the load balancer. Specify
  3222. // one subnet per Availability Zone specified in AvailabilityZones.
  3223. Subnets []*string `type:"list"`
  3224. // A list of tags to assign to the load balancer.
  3225. //
  3226. // For more information about tagging your load balancer, see Tag Your Classic
  3227. // Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
  3228. // in the Classic Load Balancers Guide.
  3229. Tags []*Tag `min:"1" type:"list"`
  3230. }
  3231. // String returns the string representation
  3232. func (s CreateLoadBalancerInput) String() string {
  3233. return awsutil.Prettify(s)
  3234. }
  3235. // GoString returns the string representation
  3236. func (s CreateLoadBalancerInput) GoString() string {
  3237. return s.String()
  3238. }
  3239. // Validate inspects the fields of the type to determine if they are valid.
  3240. func (s *CreateLoadBalancerInput) Validate() error {
  3241. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"}
  3242. if s.Listeners == nil {
  3243. invalidParams.Add(request.NewErrParamRequired("Listeners"))
  3244. }
  3245. if s.LoadBalancerName == nil {
  3246. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3247. }
  3248. if s.Tags != nil && len(s.Tags) < 1 {
  3249. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  3250. }
  3251. if s.Listeners != nil {
  3252. for i, v := range s.Listeners {
  3253. if v == nil {
  3254. continue
  3255. }
  3256. if err := v.Validate(); err != nil {
  3257. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
  3258. }
  3259. }
  3260. }
  3261. if s.Tags != nil {
  3262. for i, v := range s.Tags {
  3263. if v == nil {
  3264. continue
  3265. }
  3266. if err := v.Validate(); err != nil {
  3267. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3268. }
  3269. }
  3270. }
  3271. if invalidParams.Len() > 0 {
  3272. return invalidParams
  3273. }
  3274. return nil
  3275. }
  3276. // SetAvailabilityZones sets the AvailabilityZones field's value.
  3277. func (s *CreateLoadBalancerInput) SetAvailabilityZones(v []*string) *CreateLoadBalancerInput {
  3278. s.AvailabilityZones = v
  3279. return s
  3280. }
  3281. // SetListeners sets the Listeners field's value.
  3282. func (s *CreateLoadBalancerInput) SetListeners(v []*Listener) *CreateLoadBalancerInput {
  3283. s.Listeners = v
  3284. return s
  3285. }
  3286. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3287. func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput {
  3288. s.LoadBalancerName = &v
  3289. return s
  3290. }
  3291. // SetScheme sets the Scheme field's value.
  3292. func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput {
  3293. s.Scheme = &v
  3294. return s
  3295. }
  3296. // SetSecurityGroups sets the SecurityGroups field's value.
  3297. func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput {
  3298. s.SecurityGroups = v
  3299. return s
  3300. }
  3301. // SetSubnets sets the Subnets field's value.
  3302. func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput {
  3303. s.Subnets = v
  3304. return s
  3305. }
  3306. // SetTags sets the Tags field's value.
  3307. func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput {
  3308. s.Tags = v
  3309. return s
  3310. }
  3311. // Contains the parameters for CreateLoadBalancerListeners.
  3312. type CreateLoadBalancerListenersInput struct {
  3313. _ struct{} `type:"structure"`
  3314. // The listeners.
  3315. //
  3316. // Listeners is a required field
  3317. Listeners []*Listener `type:"list" required:"true"`
  3318. // The name of the load balancer.
  3319. //
  3320. // LoadBalancerName is a required field
  3321. LoadBalancerName *string `type:"string" required:"true"`
  3322. }
  3323. // String returns the string representation
  3324. func (s CreateLoadBalancerListenersInput) String() string {
  3325. return awsutil.Prettify(s)
  3326. }
  3327. // GoString returns the string representation
  3328. func (s CreateLoadBalancerListenersInput) GoString() string {
  3329. return s.String()
  3330. }
  3331. // Validate inspects the fields of the type to determine if they are valid.
  3332. func (s *CreateLoadBalancerListenersInput) Validate() error {
  3333. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerListenersInput"}
  3334. if s.Listeners == nil {
  3335. invalidParams.Add(request.NewErrParamRequired("Listeners"))
  3336. }
  3337. if s.LoadBalancerName == nil {
  3338. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3339. }
  3340. if s.Listeners != nil {
  3341. for i, v := range s.Listeners {
  3342. if v == nil {
  3343. continue
  3344. }
  3345. if err := v.Validate(); err != nil {
  3346. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
  3347. }
  3348. }
  3349. }
  3350. if invalidParams.Len() > 0 {
  3351. return invalidParams
  3352. }
  3353. return nil
  3354. }
  3355. // SetListeners sets the Listeners field's value.
  3356. func (s *CreateLoadBalancerListenersInput) SetListeners(v []*Listener) *CreateLoadBalancerListenersInput {
  3357. s.Listeners = v
  3358. return s
  3359. }
  3360. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3361. func (s *CreateLoadBalancerListenersInput) SetLoadBalancerName(v string) *CreateLoadBalancerListenersInput {
  3362. s.LoadBalancerName = &v
  3363. return s
  3364. }
  3365. // Contains the parameters for CreateLoadBalancerListener.
  3366. type CreateLoadBalancerListenersOutput struct {
  3367. _ struct{} `type:"structure"`
  3368. }
  3369. // String returns the string representation
  3370. func (s CreateLoadBalancerListenersOutput) String() string {
  3371. return awsutil.Prettify(s)
  3372. }
  3373. // GoString returns the string representation
  3374. func (s CreateLoadBalancerListenersOutput) GoString() string {
  3375. return s.String()
  3376. }
  3377. // Contains the output for CreateLoadBalancer.
  3378. type CreateLoadBalancerOutput struct {
  3379. _ struct{} `type:"structure"`
  3380. // The DNS name of the load balancer.
  3381. DNSName *string `type:"string"`
  3382. }
  3383. // String returns the string representation
  3384. func (s CreateLoadBalancerOutput) String() string {
  3385. return awsutil.Prettify(s)
  3386. }
  3387. // GoString returns the string representation
  3388. func (s CreateLoadBalancerOutput) GoString() string {
  3389. return s.String()
  3390. }
  3391. // SetDNSName sets the DNSName field's value.
  3392. func (s *CreateLoadBalancerOutput) SetDNSName(v string) *CreateLoadBalancerOutput {
  3393. s.DNSName = &v
  3394. return s
  3395. }
  3396. // Contains the parameters for CreateLoadBalancerPolicy.
  3397. type CreateLoadBalancerPolicyInput struct {
  3398. _ struct{} `type:"structure"`
  3399. // The name of the load balancer.
  3400. //
  3401. // LoadBalancerName is a required field
  3402. LoadBalancerName *string `type:"string" required:"true"`
  3403. // The policy attributes.
  3404. PolicyAttributes []*PolicyAttribute `type:"list"`
  3405. // The name of the load balancer policy to be created. This name must be unique
  3406. // within the set of policies for this load balancer.
  3407. //
  3408. // PolicyName is a required field
  3409. PolicyName *string `type:"string" required:"true"`
  3410. // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
  3411. //
  3412. // PolicyTypeName is a required field
  3413. PolicyTypeName *string `type:"string" required:"true"`
  3414. }
  3415. // String returns the string representation
  3416. func (s CreateLoadBalancerPolicyInput) String() string {
  3417. return awsutil.Prettify(s)
  3418. }
  3419. // GoString returns the string representation
  3420. func (s CreateLoadBalancerPolicyInput) GoString() string {
  3421. return s.String()
  3422. }
  3423. // Validate inspects the fields of the type to determine if they are valid.
  3424. func (s *CreateLoadBalancerPolicyInput) Validate() error {
  3425. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerPolicyInput"}
  3426. if s.LoadBalancerName == nil {
  3427. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3428. }
  3429. if s.PolicyName == nil {
  3430. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3431. }
  3432. if s.PolicyTypeName == nil {
  3433. invalidParams.Add(request.NewErrParamRequired("PolicyTypeName"))
  3434. }
  3435. if invalidParams.Len() > 0 {
  3436. return invalidParams
  3437. }
  3438. return nil
  3439. }
  3440. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3441. func (s *CreateLoadBalancerPolicyInput) SetLoadBalancerName(v string) *CreateLoadBalancerPolicyInput {
  3442. s.LoadBalancerName = &v
  3443. return s
  3444. }
  3445. // SetPolicyAttributes sets the PolicyAttributes field's value.
  3446. func (s *CreateLoadBalancerPolicyInput) SetPolicyAttributes(v []*PolicyAttribute) *CreateLoadBalancerPolicyInput {
  3447. s.PolicyAttributes = v
  3448. return s
  3449. }
  3450. // SetPolicyName sets the PolicyName field's value.
  3451. func (s *CreateLoadBalancerPolicyInput) SetPolicyName(v string) *CreateLoadBalancerPolicyInput {
  3452. s.PolicyName = &v
  3453. return s
  3454. }
  3455. // SetPolicyTypeName sets the PolicyTypeName field's value.
  3456. func (s *CreateLoadBalancerPolicyInput) SetPolicyTypeName(v string) *CreateLoadBalancerPolicyInput {
  3457. s.PolicyTypeName = &v
  3458. return s
  3459. }
  3460. // Contains the output of CreateLoadBalancerPolicy.
  3461. type CreateLoadBalancerPolicyOutput struct {
  3462. _ struct{} `type:"structure"`
  3463. }
  3464. // String returns the string representation
  3465. func (s CreateLoadBalancerPolicyOutput) String() string {
  3466. return awsutil.Prettify(s)
  3467. }
  3468. // GoString returns the string representation
  3469. func (s CreateLoadBalancerPolicyOutput) GoString() string {
  3470. return s.String()
  3471. }
  3472. // Information about the CrossZoneLoadBalancing attribute.
  3473. type CrossZoneLoadBalancing struct {
  3474. _ struct{} `type:"structure"`
  3475. // Specifies whether cross-zone load balancing is enabled for the load balancer.
  3476. //
  3477. // Enabled is a required field
  3478. Enabled *bool `type:"boolean" required:"true"`
  3479. }
  3480. // String returns the string representation
  3481. func (s CrossZoneLoadBalancing) String() string {
  3482. return awsutil.Prettify(s)
  3483. }
  3484. // GoString returns the string representation
  3485. func (s CrossZoneLoadBalancing) GoString() string {
  3486. return s.String()
  3487. }
  3488. // Validate inspects the fields of the type to determine if they are valid.
  3489. func (s *CrossZoneLoadBalancing) Validate() error {
  3490. invalidParams := request.ErrInvalidParams{Context: "CrossZoneLoadBalancing"}
  3491. if s.Enabled == nil {
  3492. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  3493. }
  3494. if invalidParams.Len() > 0 {
  3495. return invalidParams
  3496. }
  3497. return nil
  3498. }
  3499. // SetEnabled sets the Enabled field's value.
  3500. func (s *CrossZoneLoadBalancing) SetEnabled(v bool) *CrossZoneLoadBalancing {
  3501. s.Enabled = &v
  3502. return s
  3503. }
  3504. // Contains the parameters for DeleteLoadBalancer.
  3505. type DeleteLoadBalancerInput struct {
  3506. _ struct{} `type:"structure"`
  3507. // The name of the load balancer.
  3508. //
  3509. // LoadBalancerName is a required field
  3510. LoadBalancerName *string `type:"string" required:"true"`
  3511. }
  3512. // String returns the string representation
  3513. func (s DeleteLoadBalancerInput) String() string {
  3514. return awsutil.Prettify(s)
  3515. }
  3516. // GoString returns the string representation
  3517. func (s DeleteLoadBalancerInput) GoString() string {
  3518. return s.String()
  3519. }
  3520. // Validate inspects the fields of the type to determine if they are valid.
  3521. func (s *DeleteLoadBalancerInput) Validate() error {
  3522. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"}
  3523. if s.LoadBalancerName == nil {
  3524. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3525. }
  3526. if invalidParams.Len() > 0 {
  3527. return invalidParams
  3528. }
  3529. return nil
  3530. }
  3531. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3532. func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput {
  3533. s.LoadBalancerName = &v
  3534. return s
  3535. }
  3536. // Contains the parameters for DeleteLoadBalancerListeners.
  3537. type DeleteLoadBalancerListenersInput struct {
  3538. _ struct{} `type:"structure"`
  3539. // The name of the load balancer.
  3540. //
  3541. // LoadBalancerName is a required field
  3542. LoadBalancerName *string `type:"string" required:"true"`
  3543. // The client port numbers of the listeners.
  3544. //
  3545. // LoadBalancerPorts is a required field
  3546. LoadBalancerPorts []*int64 `type:"list" required:"true"`
  3547. }
  3548. // String returns the string representation
  3549. func (s DeleteLoadBalancerListenersInput) String() string {
  3550. return awsutil.Prettify(s)
  3551. }
  3552. // GoString returns the string representation
  3553. func (s DeleteLoadBalancerListenersInput) GoString() string {
  3554. return s.String()
  3555. }
  3556. // Validate inspects the fields of the type to determine if they are valid.
  3557. func (s *DeleteLoadBalancerListenersInput) Validate() error {
  3558. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerListenersInput"}
  3559. if s.LoadBalancerName == nil {
  3560. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3561. }
  3562. if s.LoadBalancerPorts == nil {
  3563. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPorts"))
  3564. }
  3565. if invalidParams.Len() > 0 {
  3566. return invalidParams
  3567. }
  3568. return nil
  3569. }
  3570. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3571. func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerName(v string) *DeleteLoadBalancerListenersInput {
  3572. s.LoadBalancerName = &v
  3573. return s
  3574. }
  3575. // SetLoadBalancerPorts sets the LoadBalancerPorts field's value.
  3576. func (s *DeleteLoadBalancerListenersInput) SetLoadBalancerPorts(v []*int64) *DeleteLoadBalancerListenersInput {
  3577. s.LoadBalancerPorts = v
  3578. return s
  3579. }
  3580. // Contains the output of DeleteLoadBalancerListeners.
  3581. type DeleteLoadBalancerListenersOutput struct {
  3582. _ struct{} `type:"structure"`
  3583. }
  3584. // String returns the string representation
  3585. func (s DeleteLoadBalancerListenersOutput) String() string {
  3586. return awsutil.Prettify(s)
  3587. }
  3588. // GoString returns the string representation
  3589. func (s DeleteLoadBalancerListenersOutput) GoString() string {
  3590. return s.String()
  3591. }
  3592. // Contains the output of DeleteLoadBalancer.
  3593. type DeleteLoadBalancerOutput struct {
  3594. _ struct{} `type:"structure"`
  3595. }
  3596. // String returns the string representation
  3597. func (s DeleteLoadBalancerOutput) String() string {
  3598. return awsutil.Prettify(s)
  3599. }
  3600. // GoString returns the string representation
  3601. func (s DeleteLoadBalancerOutput) GoString() string {
  3602. return s.String()
  3603. }
  3604. // Contains the parameters for DeleteLoadBalancerPolicy.
  3605. type DeleteLoadBalancerPolicyInput struct {
  3606. _ struct{} `type:"structure"`
  3607. // The name of the load balancer.
  3608. //
  3609. // LoadBalancerName is a required field
  3610. LoadBalancerName *string `type:"string" required:"true"`
  3611. // The name of the policy.
  3612. //
  3613. // PolicyName is a required field
  3614. PolicyName *string `type:"string" required:"true"`
  3615. }
  3616. // String returns the string representation
  3617. func (s DeleteLoadBalancerPolicyInput) String() string {
  3618. return awsutil.Prettify(s)
  3619. }
  3620. // GoString returns the string representation
  3621. func (s DeleteLoadBalancerPolicyInput) GoString() string {
  3622. return s.String()
  3623. }
  3624. // Validate inspects the fields of the type to determine if they are valid.
  3625. func (s *DeleteLoadBalancerPolicyInput) Validate() error {
  3626. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerPolicyInput"}
  3627. if s.LoadBalancerName == nil {
  3628. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3629. }
  3630. if s.PolicyName == nil {
  3631. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3632. }
  3633. if invalidParams.Len() > 0 {
  3634. return invalidParams
  3635. }
  3636. return nil
  3637. }
  3638. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3639. func (s *DeleteLoadBalancerPolicyInput) SetLoadBalancerName(v string) *DeleteLoadBalancerPolicyInput {
  3640. s.LoadBalancerName = &v
  3641. return s
  3642. }
  3643. // SetPolicyName sets the PolicyName field's value.
  3644. func (s *DeleteLoadBalancerPolicyInput) SetPolicyName(v string) *DeleteLoadBalancerPolicyInput {
  3645. s.PolicyName = &v
  3646. return s
  3647. }
  3648. // Contains the output of DeleteLoadBalancerPolicy.
  3649. type DeleteLoadBalancerPolicyOutput struct {
  3650. _ struct{} `type:"structure"`
  3651. }
  3652. // String returns the string representation
  3653. func (s DeleteLoadBalancerPolicyOutput) String() string {
  3654. return awsutil.Prettify(s)
  3655. }
  3656. // GoString returns the string representation
  3657. func (s DeleteLoadBalancerPolicyOutput) GoString() string {
  3658. return s.String()
  3659. }
  3660. // Contains the parameters for DeregisterInstancesFromLoadBalancer.
  3661. type DeregisterInstancesFromLoadBalancerInput struct {
  3662. _ struct{} `type:"structure"`
  3663. // The IDs of the instances.
  3664. //
  3665. // Instances is a required field
  3666. Instances []*Instance `type:"list" required:"true"`
  3667. // The name of the load balancer.
  3668. //
  3669. // LoadBalancerName is a required field
  3670. LoadBalancerName *string `type:"string" required:"true"`
  3671. }
  3672. // String returns the string representation
  3673. func (s DeregisterInstancesFromLoadBalancerInput) String() string {
  3674. return awsutil.Prettify(s)
  3675. }
  3676. // GoString returns the string representation
  3677. func (s DeregisterInstancesFromLoadBalancerInput) GoString() string {
  3678. return s.String()
  3679. }
  3680. // Validate inspects the fields of the type to determine if they are valid.
  3681. func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error {
  3682. invalidParams := request.ErrInvalidParams{Context: "DeregisterInstancesFromLoadBalancerInput"}
  3683. if s.Instances == nil {
  3684. invalidParams.Add(request.NewErrParamRequired("Instances"))
  3685. }
  3686. if s.LoadBalancerName == nil {
  3687. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3688. }
  3689. if invalidParams.Len() > 0 {
  3690. return invalidParams
  3691. }
  3692. return nil
  3693. }
  3694. // SetInstances sets the Instances field's value.
  3695. func (s *DeregisterInstancesFromLoadBalancerInput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerInput {
  3696. s.Instances = v
  3697. return s
  3698. }
  3699. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3700. func (s *DeregisterInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DeregisterInstancesFromLoadBalancerInput {
  3701. s.LoadBalancerName = &v
  3702. return s
  3703. }
  3704. // Contains the output of DeregisterInstancesFromLoadBalancer.
  3705. type DeregisterInstancesFromLoadBalancerOutput struct {
  3706. _ struct{} `type:"structure"`
  3707. // The remaining instances registered with the load balancer.
  3708. Instances []*Instance `type:"list"`
  3709. }
  3710. // String returns the string representation
  3711. func (s DeregisterInstancesFromLoadBalancerOutput) String() string {
  3712. return awsutil.Prettify(s)
  3713. }
  3714. // GoString returns the string representation
  3715. func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string {
  3716. return s.String()
  3717. }
  3718. // SetInstances sets the Instances field's value.
  3719. func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance) *DeregisterInstancesFromLoadBalancerOutput {
  3720. s.Instances = v
  3721. return s
  3722. }
  3723. type DescribeAccountLimitsInput struct {
  3724. _ struct{} `type:"structure"`
  3725. // The marker for the next set of results. (You received this marker from a
  3726. // previous call.)
  3727. Marker *string `type:"string"`
  3728. // The maximum number of results to return with this call.
  3729. PageSize *int64 `min:"1" type:"integer"`
  3730. }
  3731. // String returns the string representation
  3732. func (s DescribeAccountLimitsInput) String() string {
  3733. return awsutil.Prettify(s)
  3734. }
  3735. // GoString returns the string representation
  3736. func (s DescribeAccountLimitsInput) GoString() string {
  3737. return s.String()
  3738. }
  3739. // Validate inspects the fields of the type to determine if they are valid.
  3740. func (s *DescribeAccountLimitsInput) Validate() error {
  3741. invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"}
  3742. if s.PageSize != nil && *s.PageSize < 1 {
  3743. invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
  3744. }
  3745. if invalidParams.Len() > 0 {
  3746. return invalidParams
  3747. }
  3748. return nil
  3749. }
  3750. // SetMarker sets the Marker field's value.
  3751. func (s *DescribeAccountLimitsInput) SetMarker(v string) *DescribeAccountLimitsInput {
  3752. s.Marker = &v
  3753. return s
  3754. }
  3755. // SetPageSize sets the PageSize field's value.
  3756. func (s *DescribeAccountLimitsInput) SetPageSize(v int64) *DescribeAccountLimitsInput {
  3757. s.PageSize = &v
  3758. return s
  3759. }
  3760. type DescribeAccountLimitsOutput struct {
  3761. _ struct{} `type:"structure"`
  3762. // Information about the limits.
  3763. Limits []*Limit `type:"list"`
  3764. // The marker to use when requesting the next set of results. If there are no
  3765. // additional results, the string is empty.
  3766. NextMarker *string `type:"string"`
  3767. }
  3768. // String returns the string representation
  3769. func (s DescribeAccountLimitsOutput) String() string {
  3770. return awsutil.Prettify(s)
  3771. }
  3772. // GoString returns the string representation
  3773. func (s DescribeAccountLimitsOutput) GoString() string {
  3774. return s.String()
  3775. }
  3776. // SetLimits sets the Limits field's value.
  3777. func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput {
  3778. s.Limits = v
  3779. return s
  3780. }
  3781. // SetNextMarker sets the NextMarker field's value.
  3782. func (s *DescribeAccountLimitsOutput) SetNextMarker(v string) *DescribeAccountLimitsOutput {
  3783. s.NextMarker = &v
  3784. return s
  3785. }
  3786. // Contains the parameters for DescribeInstanceHealth.
  3787. type DescribeInstanceHealthInput struct {
  3788. _ struct{} `type:"structure"`
  3789. // The IDs of the instances.
  3790. Instances []*Instance `type:"list"`
  3791. // The name of the load balancer.
  3792. //
  3793. // LoadBalancerName is a required field
  3794. LoadBalancerName *string `type:"string" required:"true"`
  3795. }
  3796. // String returns the string representation
  3797. func (s DescribeInstanceHealthInput) String() string {
  3798. return awsutil.Prettify(s)
  3799. }
  3800. // GoString returns the string representation
  3801. func (s DescribeInstanceHealthInput) GoString() string {
  3802. return s.String()
  3803. }
  3804. // Validate inspects the fields of the type to determine if they are valid.
  3805. func (s *DescribeInstanceHealthInput) Validate() error {
  3806. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceHealthInput"}
  3807. if s.LoadBalancerName == nil {
  3808. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3809. }
  3810. if invalidParams.Len() > 0 {
  3811. return invalidParams
  3812. }
  3813. return nil
  3814. }
  3815. // SetInstances sets the Instances field's value.
  3816. func (s *DescribeInstanceHealthInput) SetInstances(v []*Instance) *DescribeInstanceHealthInput {
  3817. s.Instances = v
  3818. return s
  3819. }
  3820. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3821. func (s *DescribeInstanceHealthInput) SetLoadBalancerName(v string) *DescribeInstanceHealthInput {
  3822. s.LoadBalancerName = &v
  3823. return s
  3824. }
  3825. // Contains the output for DescribeInstanceHealth.
  3826. type DescribeInstanceHealthOutput struct {
  3827. _ struct{} `type:"structure"`
  3828. // Information about the health of the instances.
  3829. InstanceStates []*InstanceState `type:"list"`
  3830. }
  3831. // String returns the string representation
  3832. func (s DescribeInstanceHealthOutput) String() string {
  3833. return awsutil.Prettify(s)
  3834. }
  3835. // GoString returns the string representation
  3836. func (s DescribeInstanceHealthOutput) GoString() string {
  3837. return s.String()
  3838. }
  3839. // SetInstanceStates sets the InstanceStates field's value.
  3840. func (s *DescribeInstanceHealthOutput) SetInstanceStates(v []*InstanceState) *DescribeInstanceHealthOutput {
  3841. s.InstanceStates = v
  3842. return s
  3843. }
  3844. // Contains the parameters for DescribeLoadBalancerAttributes.
  3845. type DescribeLoadBalancerAttributesInput struct {
  3846. _ struct{} `type:"structure"`
  3847. // The name of the load balancer.
  3848. //
  3849. // LoadBalancerName is a required field
  3850. LoadBalancerName *string `type:"string" required:"true"`
  3851. }
  3852. // String returns the string representation
  3853. func (s DescribeLoadBalancerAttributesInput) String() string {
  3854. return awsutil.Prettify(s)
  3855. }
  3856. // GoString returns the string representation
  3857. func (s DescribeLoadBalancerAttributesInput) GoString() string {
  3858. return s.String()
  3859. }
  3860. // Validate inspects the fields of the type to determine if they are valid.
  3861. func (s *DescribeLoadBalancerAttributesInput) Validate() error {
  3862. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerAttributesInput"}
  3863. if s.LoadBalancerName == nil {
  3864. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3865. }
  3866. if invalidParams.Len() > 0 {
  3867. return invalidParams
  3868. }
  3869. return nil
  3870. }
  3871. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3872. func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerAttributesInput {
  3873. s.LoadBalancerName = &v
  3874. return s
  3875. }
  3876. // Contains the output of DescribeLoadBalancerAttributes.
  3877. type DescribeLoadBalancerAttributesOutput struct {
  3878. _ struct{} `type:"structure"`
  3879. // Information about the load balancer attributes.
  3880. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  3881. }
  3882. // String returns the string representation
  3883. func (s DescribeLoadBalancerAttributesOutput) String() string {
  3884. return awsutil.Prettify(s)
  3885. }
  3886. // GoString returns the string representation
  3887. func (s DescribeLoadBalancerAttributesOutput) GoString() string {
  3888. return s.String()
  3889. }
  3890. // SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.
  3891. func (s *DescribeLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *DescribeLoadBalancerAttributesOutput {
  3892. s.LoadBalancerAttributes = v
  3893. return s
  3894. }
  3895. // Contains the parameters for DescribeLoadBalancerPolicies.
  3896. type DescribeLoadBalancerPoliciesInput struct {
  3897. _ struct{} `type:"structure"`
  3898. // The name of the load balancer.
  3899. LoadBalancerName *string `type:"string"`
  3900. // The names of the policies.
  3901. PolicyNames []*string `type:"list"`
  3902. }
  3903. // String returns the string representation
  3904. func (s DescribeLoadBalancerPoliciesInput) String() string {
  3905. return awsutil.Prettify(s)
  3906. }
  3907. // GoString returns the string representation
  3908. func (s DescribeLoadBalancerPoliciesInput) GoString() string {
  3909. return s.String()
  3910. }
  3911. // SetLoadBalancerName sets the LoadBalancerName field's value.
  3912. func (s *DescribeLoadBalancerPoliciesInput) SetLoadBalancerName(v string) *DescribeLoadBalancerPoliciesInput {
  3913. s.LoadBalancerName = &v
  3914. return s
  3915. }
  3916. // SetPolicyNames sets the PolicyNames field's value.
  3917. func (s *DescribeLoadBalancerPoliciesInput) SetPolicyNames(v []*string) *DescribeLoadBalancerPoliciesInput {
  3918. s.PolicyNames = v
  3919. return s
  3920. }
  3921. // Contains the output of DescribeLoadBalancerPolicies.
  3922. type DescribeLoadBalancerPoliciesOutput struct {
  3923. _ struct{} `type:"structure"`
  3924. // Information about the policies.
  3925. PolicyDescriptions []*PolicyDescription `type:"list"`
  3926. }
  3927. // String returns the string representation
  3928. func (s DescribeLoadBalancerPoliciesOutput) String() string {
  3929. return awsutil.Prettify(s)
  3930. }
  3931. // GoString returns the string representation
  3932. func (s DescribeLoadBalancerPoliciesOutput) GoString() string {
  3933. return s.String()
  3934. }
  3935. // SetPolicyDescriptions sets the PolicyDescriptions field's value.
  3936. func (s *DescribeLoadBalancerPoliciesOutput) SetPolicyDescriptions(v []*PolicyDescription) *DescribeLoadBalancerPoliciesOutput {
  3937. s.PolicyDescriptions = v
  3938. return s
  3939. }
  3940. // Contains the parameters for DescribeLoadBalancerPolicyTypes.
  3941. type DescribeLoadBalancerPolicyTypesInput struct {
  3942. _ struct{} `type:"structure"`
  3943. // The names of the policy types. If no names are specified, describes all policy
  3944. // types defined by Elastic Load Balancing.
  3945. PolicyTypeNames []*string `type:"list"`
  3946. }
  3947. // String returns the string representation
  3948. func (s DescribeLoadBalancerPolicyTypesInput) String() string {
  3949. return awsutil.Prettify(s)
  3950. }
  3951. // GoString returns the string representation
  3952. func (s DescribeLoadBalancerPolicyTypesInput) GoString() string {
  3953. return s.String()
  3954. }
  3955. // SetPolicyTypeNames sets the PolicyTypeNames field's value.
  3956. func (s *DescribeLoadBalancerPolicyTypesInput) SetPolicyTypeNames(v []*string) *DescribeLoadBalancerPolicyTypesInput {
  3957. s.PolicyTypeNames = v
  3958. return s
  3959. }
  3960. // Contains the output of DescribeLoadBalancerPolicyTypes.
  3961. type DescribeLoadBalancerPolicyTypesOutput struct {
  3962. _ struct{} `type:"structure"`
  3963. // Information about the policy types.
  3964. PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
  3965. }
  3966. // String returns the string representation
  3967. func (s DescribeLoadBalancerPolicyTypesOutput) String() string {
  3968. return awsutil.Prettify(s)
  3969. }
  3970. // GoString returns the string representation
  3971. func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string {
  3972. return s.String()
  3973. }
  3974. // SetPolicyTypeDescriptions sets the PolicyTypeDescriptions field's value.
  3975. func (s *DescribeLoadBalancerPolicyTypesOutput) SetPolicyTypeDescriptions(v []*PolicyTypeDescription) *DescribeLoadBalancerPolicyTypesOutput {
  3976. s.PolicyTypeDescriptions = v
  3977. return s
  3978. }
  3979. // Contains the parameters for DescribeLoadBalancers.
  3980. type DescribeLoadBalancersInput struct {
  3981. _ struct{} `type:"structure"`
  3982. // The names of the load balancers.
  3983. LoadBalancerNames []*string `type:"list"`
  3984. // The marker for the next set of results. (You received this marker from a
  3985. // previous call.)
  3986. Marker *string `type:"string"`
  3987. // The maximum number of results to return with this call (a number from 1 to
  3988. // 400). The default is 400.
  3989. PageSize *int64 `min:"1" type:"integer"`
  3990. }
  3991. // String returns the string representation
  3992. func (s DescribeLoadBalancersInput) String() string {
  3993. return awsutil.Prettify(s)
  3994. }
  3995. // GoString returns the string representation
  3996. func (s DescribeLoadBalancersInput) GoString() string {
  3997. return s.String()
  3998. }
  3999. // Validate inspects the fields of the type to determine if they are valid.
  4000. func (s *DescribeLoadBalancersInput) Validate() error {
  4001. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"}
  4002. if s.PageSize != nil && *s.PageSize < 1 {
  4003. invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
  4004. }
  4005. if invalidParams.Len() > 0 {
  4006. return invalidParams
  4007. }
  4008. return nil
  4009. }
  4010. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  4011. func (s *DescribeLoadBalancersInput) SetLoadBalancerNames(v []*string) *DescribeLoadBalancersInput {
  4012. s.LoadBalancerNames = v
  4013. return s
  4014. }
  4015. // SetMarker sets the Marker field's value.
  4016. func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput {
  4017. s.Marker = &v
  4018. return s
  4019. }
  4020. // SetPageSize sets the PageSize field's value.
  4021. func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput {
  4022. s.PageSize = &v
  4023. return s
  4024. }
  4025. // Contains the parameters for DescribeLoadBalancers.
  4026. type DescribeLoadBalancersOutput struct {
  4027. _ struct{} `type:"structure"`
  4028. // Information about the load balancers.
  4029. LoadBalancerDescriptions []*LoadBalancerDescription `type:"list"`
  4030. // The marker to use when requesting the next set of results. If there are no
  4031. // additional results, the string is empty.
  4032. NextMarker *string `type:"string"`
  4033. }
  4034. // String returns the string representation
  4035. func (s DescribeLoadBalancersOutput) String() string {
  4036. return awsutil.Prettify(s)
  4037. }
  4038. // GoString returns the string representation
  4039. func (s DescribeLoadBalancersOutput) GoString() string {
  4040. return s.String()
  4041. }
  4042. // SetLoadBalancerDescriptions sets the LoadBalancerDescriptions field's value.
  4043. func (s *DescribeLoadBalancersOutput) SetLoadBalancerDescriptions(v []*LoadBalancerDescription) *DescribeLoadBalancersOutput {
  4044. s.LoadBalancerDescriptions = v
  4045. return s
  4046. }
  4047. // SetNextMarker sets the NextMarker field's value.
  4048. func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput {
  4049. s.NextMarker = &v
  4050. return s
  4051. }
  4052. // Contains the parameters for DescribeTags.
  4053. type DescribeTagsInput struct {
  4054. _ struct{} `type:"structure"`
  4055. // The names of the load balancers.
  4056. //
  4057. // LoadBalancerNames is a required field
  4058. LoadBalancerNames []*string `min:"1" type:"list" required:"true"`
  4059. }
  4060. // String returns the string representation
  4061. func (s DescribeTagsInput) String() string {
  4062. return awsutil.Prettify(s)
  4063. }
  4064. // GoString returns the string representation
  4065. func (s DescribeTagsInput) GoString() string {
  4066. return s.String()
  4067. }
  4068. // Validate inspects the fields of the type to determine if they are valid.
  4069. func (s *DescribeTagsInput) Validate() error {
  4070. invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  4071. if s.LoadBalancerNames == nil {
  4072. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  4073. }
  4074. if s.LoadBalancerNames != nil && len(s.LoadBalancerNames) < 1 {
  4075. invalidParams.Add(request.NewErrParamMinLen("LoadBalancerNames", 1))
  4076. }
  4077. if invalidParams.Len() > 0 {
  4078. return invalidParams
  4079. }
  4080. return nil
  4081. }
  4082. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  4083. func (s *DescribeTagsInput) SetLoadBalancerNames(v []*string) *DescribeTagsInput {
  4084. s.LoadBalancerNames = v
  4085. return s
  4086. }
  4087. // Contains the output for DescribeTags.
  4088. type DescribeTagsOutput struct {
  4089. _ struct{} `type:"structure"`
  4090. // Information about the tags.
  4091. TagDescriptions []*TagDescription `type:"list"`
  4092. }
  4093. // String returns the string representation
  4094. func (s DescribeTagsOutput) String() string {
  4095. return awsutil.Prettify(s)
  4096. }
  4097. // GoString returns the string representation
  4098. func (s DescribeTagsOutput) GoString() string {
  4099. return s.String()
  4100. }
  4101. // SetTagDescriptions sets the TagDescriptions field's value.
  4102. func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput {
  4103. s.TagDescriptions = v
  4104. return s
  4105. }
  4106. // Contains the parameters for DetachLoadBalancerFromSubnets.
  4107. type DetachLoadBalancerFromSubnetsInput struct {
  4108. _ struct{} `type:"structure"`
  4109. // The name of the load balancer.
  4110. //
  4111. // LoadBalancerName is a required field
  4112. LoadBalancerName *string `type:"string" required:"true"`
  4113. // The IDs of the subnets.
  4114. //
  4115. // Subnets is a required field
  4116. Subnets []*string `type:"list" required:"true"`
  4117. }
  4118. // String returns the string representation
  4119. func (s DetachLoadBalancerFromSubnetsInput) String() string {
  4120. return awsutil.Prettify(s)
  4121. }
  4122. // GoString returns the string representation
  4123. func (s DetachLoadBalancerFromSubnetsInput) GoString() string {
  4124. return s.String()
  4125. }
  4126. // Validate inspects the fields of the type to determine if they are valid.
  4127. func (s *DetachLoadBalancerFromSubnetsInput) Validate() error {
  4128. invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancerFromSubnetsInput"}
  4129. if s.LoadBalancerName == nil {
  4130. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4131. }
  4132. if s.Subnets == nil {
  4133. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  4134. }
  4135. if invalidParams.Len() > 0 {
  4136. return invalidParams
  4137. }
  4138. return nil
  4139. }
  4140. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4141. func (s *DetachLoadBalancerFromSubnetsInput) SetLoadBalancerName(v string) *DetachLoadBalancerFromSubnetsInput {
  4142. s.LoadBalancerName = &v
  4143. return s
  4144. }
  4145. // SetSubnets sets the Subnets field's value.
  4146. func (s *DetachLoadBalancerFromSubnetsInput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsInput {
  4147. s.Subnets = v
  4148. return s
  4149. }
  4150. // Contains the output of DetachLoadBalancerFromSubnets.
  4151. type DetachLoadBalancerFromSubnetsOutput struct {
  4152. _ struct{} `type:"structure"`
  4153. // The IDs of the remaining subnets for the load balancer.
  4154. Subnets []*string `type:"list"`
  4155. }
  4156. // String returns the string representation
  4157. func (s DetachLoadBalancerFromSubnetsOutput) String() string {
  4158. return awsutil.Prettify(s)
  4159. }
  4160. // GoString returns the string representation
  4161. func (s DetachLoadBalancerFromSubnetsOutput) GoString() string {
  4162. return s.String()
  4163. }
  4164. // SetSubnets sets the Subnets field's value.
  4165. func (s *DetachLoadBalancerFromSubnetsOutput) SetSubnets(v []*string) *DetachLoadBalancerFromSubnetsOutput {
  4166. s.Subnets = v
  4167. return s
  4168. }
  4169. // Contains the parameters for DisableAvailabilityZonesForLoadBalancer.
  4170. type DisableAvailabilityZonesForLoadBalancerInput struct {
  4171. _ struct{} `type:"structure"`
  4172. // The Availability Zones.
  4173. //
  4174. // AvailabilityZones is a required field
  4175. AvailabilityZones []*string `type:"list" required:"true"`
  4176. // The name of the load balancer.
  4177. //
  4178. // LoadBalancerName is a required field
  4179. LoadBalancerName *string `type:"string" required:"true"`
  4180. }
  4181. // String returns the string representation
  4182. func (s DisableAvailabilityZonesForLoadBalancerInput) String() string {
  4183. return awsutil.Prettify(s)
  4184. }
  4185. // GoString returns the string representation
  4186. func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string {
  4187. return s.String()
  4188. }
  4189. // Validate inspects the fields of the type to determine if they are valid.
  4190. func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error {
  4191. invalidParams := request.ErrInvalidParams{Context: "DisableAvailabilityZonesForLoadBalancerInput"}
  4192. if s.AvailabilityZones == nil {
  4193. invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
  4194. }
  4195. if s.LoadBalancerName == nil {
  4196. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4197. }
  4198. if invalidParams.Len() > 0 {
  4199. return invalidParams
  4200. }
  4201. return nil
  4202. }
  4203. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4204. func (s *DisableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerInput {
  4205. s.AvailabilityZones = v
  4206. return s
  4207. }
  4208. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4209. func (s *DisableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *DisableAvailabilityZonesForLoadBalancerInput {
  4210. s.LoadBalancerName = &v
  4211. return s
  4212. }
  4213. // Contains the output for DisableAvailabilityZonesForLoadBalancer.
  4214. type DisableAvailabilityZonesForLoadBalancerOutput struct {
  4215. _ struct{} `type:"structure"`
  4216. // The remaining Availability Zones for the load balancer.
  4217. AvailabilityZones []*string `type:"list"`
  4218. }
  4219. // String returns the string representation
  4220. func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string {
  4221. return awsutil.Prettify(s)
  4222. }
  4223. // GoString returns the string representation
  4224. func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  4225. return s.String()
  4226. }
  4227. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4228. func (s *DisableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *DisableAvailabilityZonesForLoadBalancerOutput {
  4229. s.AvailabilityZones = v
  4230. return s
  4231. }
  4232. // Contains the parameters for EnableAvailabilityZonesForLoadBalancer.
  4233. type EnableAvailabilityZonesForLoadBalancerInput struct {
  4234. _ struct{} `type:"structure"`
  4235. // The Availability Zones. These must be in the same region as the load balancer.
  4236. //
  4237. // AvailabilityZones is a required field
  4238. AvailabilityZones []*string `type:"list" required:"true"`
  4239. // The name of the load balancer.
  4240. //
  4241. // LoadBalancerName is a required field
  4242. LoadBalancerName *string `type:"string" required:"true"`
  4243. }
  4244. // String returns the string representation
  4245. func (s EnableAvailabilityZonesForLoadBalancerInput) String() string {
  4246. return awsutil.Prettify(s)
  4247. }
  4248. // GoString returns the string representation
  4249. func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string {
  4250. return s.String()
  4251. }
  4252. // Validate inspects the fields of the type to determine if they are valid.
  4253. func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error {
  4254. invalidParams := request.ErrInvalidParams{Context: "EnableAvailabilityZonesForLoadBalancerInput"}
  4255. if s.AvailabilityZones == nil {
  4256. invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
  4257. }
  4258. if s.LoadBalancerName == nil {
  4259. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4260. }
  4261. if invalidParams.Len() > 0 {
  4262. return invalidParams
  4263. }
  4264. return nil
  4265. }
  4266. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4267. func (s *EnableAvailabilityZonesForLoadBalancerInput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerInput {
  4268. s.AvailabilityZones = v
  4269. return s
  4270. }
  4271. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4272. func (s *EnableAvailabilityZonesForLoadBalancerInput) SetLoadBalancerName(v string) *EnableAvailabilityZonesForLoadBalancerInput {
  4273. s.LoadBalancerName = &v
  4274. return s
  4275. }
  4276. // Contains the output of EnableAvailabilityZonesForLoadBalancer.
  4277. type EnableAvailabilityZonesForLoadBalancerOutput struct {
  4278. _ struct{} `type:"structure"`
  4279. // The updated list of Availability Zones for the load balancer.
  4280. AvailabilityZones []*string `type:"list"`
  4281. }
  4282. // String returns the string representation
  4283. func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string {
  4284. return awsutil.Prettify(s)
  4285. }
  4286. // GoString returns the string representation
  4287. func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  4288. return s.String()
  4289. }
  4290. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4291. func (s *EnableAvailabilityZonesForLoadBalancerOutput) SetAvailabilityZones(v []*string) *EnableAvailabilityZonesForLoadBalancerOutput {
  4292. s.AvailabilityZones = v
  4293. return s
  4294. }
  4295. // Information about a health check.
  4296. type HealthCheck struct {
  4297. _ struct{} `type:"structure"`
  4298. // The number of consecutive health checks successes required before moving
  4299. // the instance to the Healthy state.
  4300. //
  4301. // HealthyThreshold is a required field
  4302. HealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
  4303. // The approximate interval, in seconds, between health checks of an individual
  4304. // instance.
  4305. //
  4306. // Interval is a required field
  4307. Interval *int64 `min:"5" type:"integer" required:"true"`
  4308. // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
  4309. // The range of valid ports is one (1) through 65535.
  4310. //
  4311. // TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
  4312. // In this case, a health check simply attempts to open a TCP connection to
  4313. // the instance on the specified port. Failure to connect within the configured
  4314. // timeout is considered unhealthy.
  4315. //
  4316. // SSL is also specified as SSL: port pair, for example, SSL:5000.
  4317. //
  4318. // For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
  4319. // as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
  4320. // In this case, a HTTP GET request is issued to the instance on the given port
  4321. // and path. Any answer other than "200 OK" within the timeout period is considered
  4322. // unhealthy.
  4323. //
  4324. // The total length of the HTTP ping target must be 1024 16-bit Unicode characters
  4325. // or less.
  4326. //
  4327. // Target is a required field
  4328. Target *string `type:"string" required:"true"`
  4329. // The amount of time, in seconds, during which no response means a failed health
  4330. // check.
  4331. //
  4332. // This value must be less than the Interval value.
  4333. //
  4334. // Timeout is a required field
  4335. Timeout *int64 `min:"2" type:"integer" required:"true"`
  4336. // The number of consecutive health check failures required before moving the
  4337. // instance to the Unhealthy state.
  4338. //
  4339. // UnhealthyThreshold is a required field
  4340. UnhealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
  4341. }
  4342. // String returns the string representation
  4343. func (s HealthCheck) String() string {
  4344. return awsutil.Prettify(s)
  4345. }
  4346. // GoString returns the string representation
  4347. func (s HealthCheck) GoString() string {
  4348. return s.String()
  4349. }
  4350. // Validate inspects the fields of the type to determine if they are valid.
  4351. func (s *HealthCheck) Validate() error {
  4352. invalidParams := request.ErrInvalidParams{Context: "HealthCheck"}
  4353. if s.HealthyThreshold == nil {
  4354. invalidParams.Add(request.NewErrParamRequired("HealthyThreshold"))
  4355. }
  4356. if s.HealthyThreshold != nil && *s.HealthyThreshold < 2 {
  4357. invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 2))
  4358. }
  4359. if s.Interval == nil {
  4360. invalidParams.Add(request.NewErrParamRequired("Interval"))
  4361. }
  4362. if s.Interval != nil && *s.Interval < 5 {
  4363. invalidParams.Add(request.NewErrParamMinValue("Interval", 5))
  4364. }
  4365. if s.Target == nil {
  4366. invalidParams.Add(request.NewErrParamRequired("Target"))
  4367. }
  4368. if s.Timeout == nil {
  4369. invalidParams.Add(request.NewErrParamRequired("Timeout"))
  4370. }
  4371. if s.Timeout != nil && *s.Timeout < 2 {
  4372. invalidParams.Add(request.NewErrParamMinValue("Timeout", 2))
  4373. }
  4374. if s.UnhealthyThreshold == nil {
  4375. invalidParams.Add(request.NewErrParamRequired("UnhealthyThreshold"))
  4376. }
  4377. if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 2 {
  4378. invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 2))
  4379. }
  4380. if invalidParams.Len() > 0 {
  4381. return invalidParams
  4382. }
  4383. return nil
  4384. }
  4385. // SetHealthyThreshold sets the HealthyThreshold field's value.
  4386. func (s *HealthCheck) SetHealthyThreshold(v int64) *HealthCheck {
  4387. s.HealthyThreshold = &v
  4388. return s
  4389. }
  4390. // SetInterval sets the Interval field's value.
  4391. func (s *HealthCheck) SetInterval(v int64) *HealthCheck {
  4392. s.Interval = &v
  4393. return s
  4394. }
  4395. // SetTarget sets the Target field's value.
  4396. func (s *HealthCheck) SetTarget(v string) *HealthCheck {
  4397. s.Target = &v
  4398. return s
  4399. }
  4400. // SetTimeout sets the Timeout field's value.
  4401. func (s *HealthCheck) SetTimeout(v int64) *HealthCheck {
  4402. s.Timeout = &v
  4403. return s
  4404. }
  4405. // SetUnhealthyThreshold sets the UnhealthyThreshold field's value.
  4406. func (s *HealthCheck) SetUnhealthyThreshold(v int64) *HealthCheck {
  4407. s.UnhealthyThreshold = &v
  4408. return s
  4409. }
  4410. // The ID of an EC2 instance.
  4411. type Instance struct {
  4412. _ struct{} `type:"structure"`
  4413. // The instance ID.
  4414. InstanceId *string `type:"string"`
  4415. }
  4416. // String returns the string representation
  4417. func (s Instance) String() string {
  4418. return awsutil.Prettify(s)
  4419. }
  4420. // GoString returns the string representation
  4421. func (s Instance) GoString() string {
  4422. return s.String()
  4423. }
  4424. // SetInstanceId sets the InstanceId field's value.
  4425. func (s *Instance) SetInstanceId(v string) *Instance {
  4426. s.InstanceId = &v
  4427. return s
  4428. }
  4429. // Information about the state of an EC2 instance.
  4430. type InstanceState struct {
  4431. _ struct{} `type:"structure"`
  4432. // A description of the instance state. This string can contain one or more
  4433. // of the following messages.
  4434. //
  4435. // * N/A
  4436. //
  4437. // * A transient error occurred. Please try again later.
  4438. //
  4439. // * Instance has failed at least the UnhealthyThreshold number of health
  4440. // checks consecutively.
  4441. //
  4442. // * Instance has not passed the configured HealthyThreshold number of health
  4443. // checks consecutively.
  4444. //
  4445. // * Instance registration is still in progress.
  4446. //
  4447. // * Instance is in the EC2 Availability Zone for which LoadBalancer is not
  4448. // configured to route traffic to.
  4449. //
  4450. // * Instance is not currently registered with the LoadBalancer.
  4451. //
  4452. // * Instance deregistration currently in progress.
  4453. //
  4454. // * Disable Availability Zone is currently in progress.
  4455. //
  4456. // * Instance is in pending state.
  4457. //
  4458. // * Instance is in stopped state.
  4459. //
  4460. // * Instance is in terminated state.
  4461. Description *string `type:"string"`
  4462. // The ID of the instance.
  4463. InstanceId *string `type:"string"`
  4464. // Information about the cause of OutOfService instances. Specifically, whether
  4465. // the cause is Elastic Load Balancing or the instance.
  4466. //
  4467. // Valid values: ELB | Instance | N/A
  4468. ReasonCode *string `type:"string"`
  4469. // The current state of the instance.
  4470. //
  4471. // Valid values: InService | OutOfService | Unknown
  4472. State *string `type:"string"`
  4473. }
  4474. // String returns the string representation
  4475. func (s InstanceState) String() string {
  4476. return awsutil.Prettify(s)
  4477. }
  4478. // GoString returns the string representation
  4479. func (s InstanceState) GoString() string {
  4480. return s.String()
  4481. }
  4482. // SetDescription sets the Description field's value.
  4483. func (s *InstanceState) SetDescription(v string) *InstanceState {
  4484. s.Description = &v
  4485. return s
  4486. }
  4487. // SetInstanceId sets the InstanceId field's value.
  4488. func (s *InstanceState) SetInstanceId(v string) *InstanceState {
  4489. s.InstanceId = &v
  4490. return s
  4491. }
  4492. // SetReasonCode sets the ReasonCode field's value.
  4493. func (s *InstanceState) SetReasonCode(v string) *InstanceState {
  4494. s.ReasonCode = &v
  4495. return s
  4496. }
  4497. // SetState sets the State field's value.
  4498. func (s *InstanceState) SetState(v string) *InstanceState {
  4499. s.State = &v
  4500. return s
  4501. }
  4502. // Information about a policy for duration-based session stickiness.
  4503. type LBCookieStickinessPolicy struct {
  4504. _ struct{} `type:"structure"`
  4505. // The time period, in seconds, after which the cookie should be considered
  4506. // stale. If this parameter is not specified, the stickiness session lasts for
  4507. // the duration of the browser session.
  4508. CookieExpirationPeriod *int64 `type:"long"`
  4509. // The name of the policy. This name must be unique within the set of policies
  4510. // for this load balancer.
  4511. PolicyName *string `type:"string"`
  4512. }
  4513. // String returns the string representation
  4514. func (s LBCookieStickinessPolicy) String() string {
  4515. return awsutil.Prettify(s)
  4516. }
  4517. // GoString returns the string representation
  4518. func (s LBCookieStickinessPolicy) GoString() string {
  4519. return s.String()
  4520. }
  4521. // SetCookieExpirationPeriod sets the CookieExpirationPeriod field's value.
  4522. func (s *LBCookieStickinessPolicy) SetCookieExpirationPeriod(v int64) *LBCookieStickinessPolicy {
  4523. s.CookieExpirationPeriod = &v
  4524. return s
  4525. }
  4526. // SetPolicyName sets the PolicyName field's value.
  4527. func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPolicy {
  4528. s.PolicyName = &v
  4529. return s
  4530. }
  4531. // Information about an Elastic Load Balancing resource limit for your AWS account.
  4532. type Limit struct {
  4533. _ struct{} `type:"structure"`
  4534. // The maximum value of the limit.
  4535. Max *string `type:"string"`
  4536. // The name of the limit. The possible values are:
  4537. //
  4538. // * classic-listeners
  4539. //
  4540. // * classic-load-balancers
  4541. //
  4542. // * classic-registered-instances
  4543. Name *string `type:"string"`
  4544. }
  4545. // String returns the string representation
  4546. func (s Limit) String() string {
  4547. return awsutil.Prettify(s)
  4548. }
  4549. // GoString returns the string representation
  4550. func (s Limit) GoString() string {
  4551. return s.String()
  4552. }
  4553. // SetMax sets the Max field's value.
  4554. func (s *Limit) SetMax(v string) *Limit {
  4555. s.Max = &v
  4556. return s
  4557. }
  4558. // SetName sets the Name field's value.
  4559. func (s *Limit) SetName(v string) *Limit {
  4560. s.Name = &v
  4561. return s
  4562. }
  4563. // Information about a listener.
  4564. //
  4565. // For information about the protocols and the ports supported by Elastic Load
  4566. // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  4567. // in the Classic Load Balancers Guide.
  4568. type Listener struct {
  4569. _ struct{} `type:"structure"`
  4570. // The port on which the instance is listening.
  4571. //
  4572. // InstancePort is a required field
  4573. InstancePort *int64 `min:"1" type:"integer" required:"true"`
  4574. // The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or
  4575. // SSL.
  4576. //
  4577. // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must
  4578. // be at the same protocol.
  4579. //
  4580. // If there is another listener with the same InstancePort whose InstanceProtocol
  4581. // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
  4582. //
  4583. // If there is another listener with the same InstancePort whose InstanceProtocol
  4584. // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
  4585. InstanceProtocol *string `type:"string"`
  4586. // The port on which the load balancer is listening. On EC2-VPC, you can specify
  4587. // any port from the range 1-65535. On EC2-Classic, you can specify any port
  4588. // from the following list: 25, 80, 443, 465, 587, 1024-65535.
  4589. //
  4590. // LoadBalancerPort is a required field
  4591. LoadBalancerPort *int64 `type:"integer" required:"true"`
  4592. // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
  4593. // or SSL.
  4594. //
  4595. // Protocol is a required field
  4596. Protocol *string `type:"string" required:"true"`
  4597. // The Amazon Resource Name (ARN) of the server certificate.
  4598. SSLCertificateId *string `type:"string"`
  4599. }
  4600. // String returns the string representation
  4601. func (s Listener) String() string {
  4602. return awsutil.Prettify(s)
  4603. }
  4604. // GoString returns the string representation
  4605. func (s Listener) GoString() string {
  4606. return s.String()
  4607. }
  4608. // Validate inspects the fields of the type to determine if they are valid.
  4609. func (s *Listener) Validate() error {
  4610. invalidParams := request.ErrInvalidParams{Context: "Listener"}
  4611. if s.InstancePort == nil {
  4612. invalidParams.Add(request.NewErrParamRequired("InstancePort"))
  4613. }
  4614. if s.InstancePort != nil && *s.InstancePort < 1 {
  4615. invalidParams.Add(request.NewErrParamMinValue("InstancePort", 1))
  4616. }
  4617. if s.LoadBalancerPort == nil {
  4618. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  4619. }
  4620. if s.Protocol == nil {
  4621. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  4622. }
  4623. if invalidParams.Len() > 0 {
  4624. return invalidParams
  4625. }
  4626. return nil
  4627. }
  4628. // SetInstancePort sets the InstancePort field's value.
  4629. func (s *Listener) SetInstancePort(v int64) *Listener {
  4630. s.InstancePort = &v
  4631. return s
  4632. }
  4633. // SetInstanceProtocol sets the InstanceProtocol field's value.
  4634. func (s *Listener) SetInstanceProtocol(v string) *Listener {
  4635. s.InstanceProtocol = &v
  4636. return s
  4637. }
  4638. // SetLoadBalancerPort sets the LoadBalancerPort field's value.
  4639. func (s *Listener) SetLoadBalancerPort(v int64) *Listener {
  4640. s.LoadBalancerPort = &v
  4641. return s
  4642. }
  4643. // SetProtocol sets the Protocol field's value.
  4644. func (s *Listener) SetProtocol(v string) *Listener {
  4645. s.Protocol = &v
  4646. return s
  4647. }
  4648. // SetSSLCertificateId sets the SSLCertificateId field's value.
  4649. func (s *Listener) SetSSLCertificateId(v string) *Listener {
  4650. s.SSLCertificateId = &v
  4651. return s
  4652. }
  4653. // The policies enabled for a listener.
  4654. type ListenerDescription struct {
  4655. _ struct{} `type:"structure"`
  4656. // The listener.
  4657. Listener *Listener `type:"structure"`
  4658. // The policies. If there are no policies enabled, the list is empty.
  4659. PolicyNames []*string `type:"list"`
  4660. }
  4661. // String returns the string representation
  4662. func (s ListenerDescription) String() string {
  4663. return awsutil.Prettify(s)
  4664. }
  4665. // GoString returns the string representation
  4666. func (s ListenerDescription) GoString() string {
  4667. return s.String()
  4668. }
  4669. // SetListener sets the Listener field's value.
  4670. func (s *ListenerDescription) SetListener(v *Listener) *ListenerDescription {
  4671. s.Listener = v
  4672. return s
  4673. }
  4674. // SetPolicyNames sets the PolicyNames field's value.
  4675. func (s *ListenerDescription) SetPolicyNames(v []*string) *ListenerDescription {
  4676. s.PolicyNames = v
  4677. return s
  4678. }
  4679. // The attributes for a load balancer.
  4680. type LoadBalancerAttributes struct {
  4681. _ struct{} `type:"structure"`
  4682. // If enabled, the load balancer captures detailed information of all requests
  4683. // and delivers the information to the Amazon S3 bucket that you specify.
  4684. //
  4685. // For more information, see Enable Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html)
  4686. // in the Classic Load Balancers Guide.
  4687. AccessLog *AccessLog `type:"structure"`
  4688. // This parameter is reserved.
  4689. AdditionalAttributes []*AdditionalAttribute `type:"list"`
  4690. // If enabled, the load balancer allows existing requests to complete before
  4691. // the load balancer shifts traffic away from a deregistered or unhealthy instance.
  4692. //
  4693. // For more information, see Configure Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
  4694. // in the Classic Load Balancers Guide.
  4695. ConnectionDraining *ConnectionDraining `type:"structure"`
  4696. // If enabled, the load balancer allows the connections to remain idle (no data
  4697. // is sent over the connection) for the specified duration.
  4698. //
  4699. // By default, Elastic Load Balancing maintains a 60-second idle connection
  4700. // timeout for both front-end and back-end connections of your load balancer.
  4701. // For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
  4702. // in the Classic Load Balancers Guide.
  4703. ConnectionSettings *ConnectionSettings `type:"structure"`
  4704. // If enabled, the load balancer routes the request traffic evenly across all
  4705. // instances regardless of the Availability Zones.
  4706. //
  4707. // For more information, see Configure Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
  4708. // in the Classic Load Balancers Guide.
  4709. CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
  4710. }
  4711. // String returns the string representation
  4712. func (s LoadBalancerAttributes) String() string {
  4713. return awsutil.Prettify(s)
  4714. }
  4715. // GoString returns the string representation
  4716. func (s LoadBalancerAttributes) GoString() string {
  4717. return s.String()
  4718. }
  4719. // Validate inspects the fields of the type to determine if they are valid.
  4720. func (s *LoadBalancerAttributes) Validate() error {
  4721. invalidParams := request.ErrInvalidParams{Context: "LoadBalancerAttributes"}
  4722. if s.AccessLog != nil {
  4723. if err := s.AccessLog.Validate(); err != nil {
  4724. invalidParams.AddNested("AccessLog", err.(request.ErrInvalidParams))
  4725. }
  4726. }
  4727. if s.ConnectionDraining != nil {
  4728. if err := s.ConnectionDraining.Validate(); err != nil {
  4729. invalidParams.AddNested("ConnectionDraining", err.(request.ErrInvalidParams))
  4730. }
  4731. }
  4732. if s.ConnectionSettings != nil {
  4733. if err := s.ConnectionSettings.Validate(); err != nil {
  4734. invalidParams.AddNested("ConnectionSettings", err.(request.ErrInvalidParams))
  4735. }
  4736. }
  4737. if s.CrossZoneLoadBalancing != nil {
  4738. if err := s.CrossZoneLoadBalancing.Validate(); err != nil {
  4739. invalidParams.AddNested("CrossZoneLoadBalancing", err.(request.ErrInvalidParams))
  4740. }
  4741. }
  4742. if invalidParams.Len() > 0 {
  4743. return invalidParams
  4744. }
  4745. return nil
  4746. }
  4747. // SetAccessLog sets the AccessLog field's value.
  4748. func (s *LoadBalancerAttributes) SetAccessLog(v *AccessLog) *LoadBalancerAttributes {
  4749. s.AccessLog = v
  4750. return s
  4751. }
  4752. // SetAdditionalAttributes sets the AdditionalAttributes field's value.
  4753. func (s *LoadBalancerAttributes) SetAdditionalAttributes(v []*AdditionalAttribute) *LoadBalancerAttributes {
  4754. s.AdditionalAttributes = v
  4755. return s
  4756. }
  4757. // SetConnectionDraining sets the ConnectionDraining field's value.
  4758. func (s *LoadBalancerAttributes) SetConnectionDraining(v *ConnectionDraining) *LoadBalancerAttributes {
  4759. s.ConnectionDraining = v
  4760. return s
  4761. }
  4762. // SetConnectionSettings sets the ConnectionSettings field's value.
  4763. func (s *LoadBalancerAttributes) SetConnectionSettings(v *ConnectionSettings) *LoadBalancerAttributes {
  4764. s.ConnectionSettings = v
  4765. return s
  4766. }
  4767. // SetCrossZoneLoadBalancing sets the CrossZoneLoadBalancing field's value.
  4768. func (s *LoadBalancerAttributes) SetCrossZoneLoadBalancing(v *CrossZoneLoadBalancing) *LoadBalancerAttributes {
  4769. s.CrossZoneLoadBalancing = v
  4770. return s
  4771. }
  4772. // Information about a load balancer.
  4773. type LoadBalancerDescription struct {
  4774. _ struct{} `type:"structure"`
  4775. // The Availability Zones for the load balancer.
  4776. AvailabilityZones []*string `type:"list"`
  4777. // Information about your EC2 instances.
  4778. BackendServerDescriptions []*BackendServerDescription `type:"list"`
  4779. // The DNS name of the load balancer.
  4780. //
  4781. // For more information, see Configure a Custom Domain Name (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html)
  4782. // in the Classic Load Balancers Guide.
  4783. CanonicalHostedZoneName *string `type:"string"`
  4784. // The ID of the Amazon Route 53 hosted zone for the load balancer.
  4785. CanonicalHostedZoneNameID *string `type:"string"`
  4786. // The date and time the load balancer was created.
  4787. CreatedTime *time.Time `type:"timestamp"`
  4788. // The DNS name of the load balancer.
  4789. DNSName *string `type:"string"`
  4790. // Information about the health checks conducted on the load balancer.
  4791. HealthCheck *HealthCheck `type:"structure"`
  4792. // The IDs of the instances for the load balancer.
  4793. Instances []*Instance `type:"list"`
  4794. // The listeners for the load balancer.
  4795. ListenerDescriptions []*ListenerDescription `type:"list"`
  4796. // The name of the load balancer.
  4797. LoadBalancerName *string `type:"string"`
  4798. // The policies defined for the load balancer.
  4799. Policies *Policies `type:"structure"`
  4800. // The type of load balancer. Valid only for load balancers in a VPC.
  4801. //
  4802. // If Scheme is internet-facing, the load balancer has a public DNS name that
  4803. // resolves to a public IP address.
  4804. //
  4805. // If Scheme is internal, the load balancer has a public DNS name that resolves
  4806. // to a private IP address.
  4807. Scheme *string `type:"string"`
  4808. // The security groups for the load balancer. Valid only for load balancers
  4809. // in a VPC.
  4810. SecurityGroups []*string `type:"list"`
  4811. // The security group for the load balancer, which you can use as part of your
  4812. // inbound rules for your registered instances. To only allow traffic from load
  4813. // balancers, add a security group rule that specifies this source security
  4814. // group as the inbound source.
  4815. SourceSecurityGroup *SourceSecurityGroup `type:"structure"`
  4816. // The IDs of the subnets for the load balancer.
  4817. Subnets []*string `type:"list"`
  4818. // The ID of the VPC for the load balancer.
  4819. VPCId *string `type:"string"`
  4820. }
  4821. // String returns the string representation
  4822. func (s LoadBalancerDescription) String() string {
  4823. return awsutil.Prettify(s)
  4824. }
  4825. // GoString returns the string representation
  4826. func (s LoadBalancerDescription) GoString() string {
  4827. return s.String()
  4828. }
  4829. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4830. func (s *LoadBalancerDescription) SetAvailabilityZones(v []*string) *LoadBalancerDescription {
  4831. s.AvailabilityZones = v
  4832. return s
  4833. }
  4834. // SetBackendServerDescriptions sets the BackendServerDescriptions field's value.
  4835. func (s *LoadBalancerDescription) SetBackendServerDescriptions(v []*BackendServerDescription) *LoadBalancerDescription {
  4836. s.BackendServerDescriptions = v
  4837. return s
  4838. }
  4839. // SetCanonicalHostedZoneName sets the CanonicalHostedZoneName field's value.
  4840. func (s *LoadBalancerDescription) SetCanonicalHostedZoneName(v string) *LoadBalancerDescription {
  4841. s.CanonicalHostedZoneName = &v
  4842. return s
  4843. }
  4844. // SetCanonicalHostedZoneNameID sets the CanonicalHostedZoneNameID field's value.
  4845. func (s *LoadBalancerDescription) SetCanonicalHostedZoneNameID(v string) *LoadBalancerDescription {
  4846. s.CanonicalHostedZoneNameID = &v
  4847. return s
  4848. }
  4849. // SetCreatedTime sets the CreatedTime field's value.
  4850. func (s *LoadBalancerDescription) SetCreatedTime(v time.Time) *LoadBalancerDescription {
  4851. s.CreatedTime = &v
  4852. return s
  4853. }
  4854. // SetDNSName sets the DNSName field's value.
  4855. func (s *LoadBalancerDescription) SetDNSName(v string) *LoadBalancerDescription {
  4856. s.DNSName = &v
  4857. return s
  4858. }
  4859. // SetHealthCheck sets the HealthCheck field's value.
  4860. func (s *LoadBalancerDescription) SetHealthCheck(v *HealthCheck) *LoadBalancerDescription {
  4861. s.HealthCheck = v
  4862. return s
  4863. }
  4864. // SetInstances sets the Instances field's value.
  4865. func (s *LoadBalancerDescription) SetInstances(v []*Instance) *LoadBalancerDescription {
  4866. s.Instances = v
  4867. return s
  4868. }
  4869. // SetListenerDescriptions sets the ListenerDescriptions field's value.
  4870. func (s *LoadBalancerDescription) SetListenerDescriptions(v []*ListenerDescription) *LoadBalancerDescription {
  4871. s.ListenerDescriptions = v
  4872. return s
  4873. }
  4874. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4875. func (s *LoadBalancerDescription) SetLoadBalancerName(v string) *LoadBalancerDescription {
  4876. s.LoadBalancerName = &v
  4877. return s
  4878. }
  4879. // SetPolicies sets the Policies field's value.
  4880. func (s *LoadBalancerDescription) SetPolicies(v *Policies) *LoadBalancerDescription {
  4881. s.Policies = v
  4882. return s
  4883. }
  4884. // SetScheme sets the Scheme field's value.
  4885. func (s *LoadBalancerDescription) SetScheme(v string) *LoadBalancerDescription {
  4886. s.Scheme = &v
  4887. return s
  4888. }
  4889. // SetSecurityGroups sets the SecurityGroups field's value.
  4890. func (s *LoadBalancerDescription) SetSecurityGroups(v []*string) *LoadBalancerDescription {
  4891. s.SecurityGroups = v
  4892. return s
  4893. }
  4894. // SetSourceSecurityGroup sets the SourceSecurityGroup field's value.
  4895. func (s *LoadBalancerDescription) SetSourceSecurityGroup(v *SourceSecurityGroup) *LoadBalancerDescription {
  4896. s.SourceSecurityGroup = v
  4897. return s
  4898. }
  4899. // SetSubnets sets the Subnets field's value.
  4900. func (s *LoadBalancerDescription) SetSubnets(v []*string) *LoadBalancerDescription {
  4901. s.Subnets = v
  4902. return s
  4903. }
  4904. // SetVPCId sets the VPCId field's value.
  4905. func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription {
  4906. s.VPCId = &v
  4907. return s
  4908. }
  4909. // Contains the parameters for ModifyLoadBalancerAttributes.
  4910. type ModifyLoadBalancerAttributesInput struct {
  4911. _ struct{} `type:"structure"`
  4912. // The attributes for the load balancer.
  4913. //
  4914. // LoadBalancerAttributes is a required field
  4915. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
  4916. // The name of the load balancer.
  4917. //
  4918. // LoadBalancerName is a required field
  4919. LoadBalancerName *string `type:"string" required:"true"`
  4920. }
  4921. // String returns the string representation
  4922. func (s ModifyLoadBalancerAttributesInput) String() string {
  4923. return awsutil.Prettify(s)
  4924. }
  4925. // GoString returns the string representation
  4926. func (s ModifyLoadBalancerAttributesInput) GoString() string {
  4927. return s.String()
  4928. }
  4929. // Validate inspects the fields of the type to determine if they are valid.
  4930. func (s *ModifyLoadBalancerAttributesInput) Validate() error {
  4931. invalidParams := request.ErrInvalidParams{Context: "ModifyLoadBalancerAttributesInput"}
  4932. if s.LoadBalancerAttributes == nil {
  4933. invalidParams.Add(request.NewErrParamRequired("LoadBalancerAttributes"))
  4934. }
  4935. if s.LoadBalancerName == nil {
  4936. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4937. }
  4938. if s.LoadBalancerAttributes != nil {
  4939. if err := s.LoadBalancerAttributes.Validate(); err != nil {
  4940. invalidParams.AddNested("LoadBalancerAttributes", err.(request.ErrInvalidParams))
  4941. }
  4942. }
  4943. if invalidParams.Len() > 0 {
  4944. return invalidParams
  4945. }
  4946. return nil
  4947. }
  4948. // SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.
  4949. func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesInput {
  4950. s.LoadBalancerAttributes = v
  4951. return s
  4952. }
  4953. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4954. func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesInput {
  4955. s.LoadBalancerName = &v
  4956. return s
  4957. }
  4958. // Contains the output of ModifyLoadBalancerAttributes.
  4959. type ModifyLoadBalancerAttributesOutput struct {
  4960. _ struct{} `type:"structure"`
  4961. // Information about the load balancer attributes.
  4962. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  4963. // The name of the load balancer.
  4964. LoadBalancerName *string `type:"string"`
  4965. }
  4966. // String returns the string representation
  4967. func (s ModifyLoadBalancerAttributesOutput) String() string {
  4968. return awsutil.Prettify(s)
  4969. }
  4970. // GoString returns the string representation
  4971. func (s ModifyLoadBalancerAttributesOutput) GoString() string {
  4972. return s.String()
  4973. }
  4974. // SetLoadBalancerAttributes sets the LoadBalancerAttributes field's value.
  4975. func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerAttributes(v *LoadBalancerAttributes) *ModifyLoadBalancerAttributesOutput {
  4976. s.LoadBalancerAttributes = v
  4977. return s
  4978. }
  4979. // SetLoadBalancerName sets the LoadBalancerName field's value.
  4980. func (s *ModifyLoadBalancerAttributesOutput) SetLoadBalancerName(v string) *ModifyLoadBalancerAttributesOutput {
  4981. s.LoadBalancerName = &v
  4982. return s
  4983. }
  4984. // The policies for a load balancer.
  4985. type Policies struct {
  4986. _ struct{} `type:"structure"`
  4987. // The stickiness policies created using CreateAppCookieStickinessPolicy.
  4988. AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`
  4989. // The stickiness policies created using CreateLBCookieStickinessPolicy.
  4990. LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`
  4991. // The policies other than the stickiness policies.
  4992. OtherPolicies []*string `type:"list"`
  4993. }
  4994. // String returns the string representation
  4995. func (s Policies) String() string {
  4996. return awsutil.Prettify(s)
  4997. }
  4998. // GoString returns the string representation
  4999. func (s Policies) GoString() string {
  5000. return s.String()
  5001. }
  5002. // SetAppCookieStickinessPolicies sets the AppCookieStickinessPolicies field's value.
  5003. func (s *Policies) SetAppCookieStickinessPolicies(v []*AppCookieStickinessPolicy) *Policies {
  5004. s.AppCookieStickinessPolicies = v
  5005. return s
  5006. }
  5007. // SetLBCookieStickinessPolicies sets the LBCookieStickinessPolicies field's value.
  5008. func (s *Policies) SetLBCookieStickinessPolicies(v []*LBCookieStickinessPolicy) *Policies {
  5009. s.LBCookieStickinessPolicies = v
  5010. return s
  5011. }
  5012. // SetOtherPolicies sets the OtherPolicies field's value.
  5013. func (s *Policies) SetOtherPolicies(v []*string) *Policies {
  5014. s.OtherPolicies = v
  5015. return s
  5016. }
  5017. // Information about a policy attribute.
  5018. type PolicyAttribute struct {
  5019. _ struct{} `type:"structure"`
  5020. // The name of the attribute.
  5021. AttributeName *string `type:"string"`
  5022. // The value of the attribute.
  5023. AttributeValue *string `type:"string"`
  5024. }
  5025. // String returns the string representation
  5026. func (s PolicyAttribute) String() string {
  5027. return awsutil.Prettify(s)
  5028. }
  5029. // GoString returns the string representation
  5030. func (s PolicyAttribute) GoString() string {
  5031. return s.String()
  5032. }
  5033. // SetAttributeName sets the AttributeName field's value.
  5034. func (s *PolicyAttribute) SetAttributeName(v string) *PolicyAttribute {
  5035. s.AttributeName = &v
  5036. return s
  5037. }
  5038. // SetAttributeValue sets the AttributeValue field's value.
  5039. func (s *PolicyAttribute) SetAttributeValue(v string) *PolicyAttribute {
  5040. s.AttributeValue = &v
  5041. return s
  5042. }
  5043. // Information about a policy attribute.
  5044. type PolicyAttributeDescription struct {
  5045. _ struct{} `type:"structure"`
  5046. // The name of the attribute.
  5047. AttributeName *string `type:"string"`
  5048. // The value of the attribute.
  5049. AttributeValue *string `type:"string"`
  5050. }
  5051. // String returns the string representation
  5052. func (s PolicyAttributeDescription) String() string {
  5053. return awsutil.Prettify(s)
  5054. }
  5055. // GoString returns the string representation
  5056. func (s PolicyAttributeDescription) GoString() string {
  5057. return s.String()
  5058. }
  5059. // SetAttributeName sets the AttributeName field's value.
  5060. func (s *PolicyAttributeDescription) SetAttributeName(v string) *PolicyAttributeDescription {
  5061. s.AttributeName = &v
  5062. return s
  5063. }
  5064. // SetAttributeValue sets the AttributeValue field's value.
  5065. func (s *PolicyAttributeDescription) SetAttributeValue(v string) *PolicyAttributeDescription {
  5066. s.AttributeValue = &v
  5067. return s
  5068. }
  5069. // Information about a policy attribute type.
  5070. type PolicyAttributeTypeDescription struct {
  5071. _ struct{} `type:"structure"`
  5072. // The name of the attribute.
  5073. AttributeName *string `type:"string"`
  5074. // The type of the attribute. For example, Boolean or Integer.
  5075. AttributeType *string `type:"string"`
  5076. // The cardinality of the attribute.
  5077. //
  5078. // Valid values:
  5079. //
  5080. // * ONE(1) : Single value required
  5081. //
  5082. // * ZERO_OR_ONE(0..1) : Up to one value is allowed
  5083. //
  5084. // * ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
  5085. //
  5086. // * ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
  5087. Cardinality *string `type:"string"`
  5088. // The default value of the attribute, if applicable.
  5089. DefaultValue *string `type:"string"`
  5090. // A description of the attribute.
  5091. Description *string `type:"string"`
  5092. }
  5093. // String returns the string representation
  5094. func (s PolicyAttributeTypeDescription) String() string {
  5095. return awsutil.Prettify(s)
  5096. }
  5097. // GoString returns the string representation
  5098. func (s PolicyAttributeTypeDescription) GoString() string {
  5099. return s.String()
  5100. }
  5101. // SetAttributeName sets the AttributeName field's value.
  5102. func (s *PolicyAttributeTypeDescription) SetAttributeName(v string) *PolicyAttributeTypeDescription {
  5103. s.AttributeName = &v
  5104. return s
  5105. }
  5106. // SetAttributeType sets the AttributeType field's value.
  5107. func (s *PolicyAttributeTypeDescription) SetAttributeType(v string) *PolicyAttributeTypeDescription {
  5108. s.AttributeType = &v
  5109. return s
  5110. }
  5111. // SetCardinality sets the Cardinality field's value.
  5112. func (s *PolicyAttributeTypeDescription) SetCardinality(v string) *PolicyAttributeTypeDescription {
  5113. s.Cardinality = &v
  5114. return s
  5115. }
  5116. // SetDefaultValue sets the DefaultValue field's value.
  5117. func (s *PolicyAttributeTypeDescription) SetDefaultValue(v string) *PolicyAttributeTypeDescription {
  5118. s.DefaultValue = &v
  5119. return s
  5120. }
  5121. // SetDescription sets the Description field's value.
  5122. func (s *PolicyAttributeTypeDescription) SetDescription(v string) *PolicyAttributeTypeDescription {
  5123. s.Description = &v
  5124. return s
  5125. }
  5126. // Information about a policy.
  5127. type PolicyDescription struct {
  5128. _ struct{} `type:"structure"`
  5129. // The policy attributes.
  5130. PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`
  5131. // The name of the policy.
  5132. PolicyName *string `type:"string"`
  5133. // The name of the policy type.
  5134. PolicyTypeName *string `type:"string"`
  5135. }
  5136. // String returns the string representation
  5137. func (s PolicyDescription) String() string {
  5138. return awsutil.Prettify(s)
  5139. }
  5140. // GoString returns the string representation
  5141. func (s PolicyDescription) GoString() string {
  5142. return s.String()
  5143. }
  5144. // SetPolicyAttributeDescriptions sets the PolicyAttributeDescriptions field's value.
  5145. func (s *PolicyDescription) SetPolicyAttributeDescriptions(v []*PolicyAttributeDescription) *PolicyDescription {
  5146. s.PolicyAttributeDescriptions = v
  5147. return s
  5148. }
  5149. // SetPolicyName sets the PolicyName field's value.
  5150. func (s *PolicyDescription) SetPolicyName(v string) *PolicyDescription {
  5151. s.PolicyName = &v
  5152. return s
  5153. }
  5154. // SetPolicyTypeName sets the PolicyTypeName field's value.
  5155. func (s *PolicyDescription) SetPolicyTypeName(v string) *PolicyDescription {
  5156. s.PolicyTypeName = &v
  5157. return s
  5158. }
  5159. // Information about a policy type.
  5160. type PolicyTypeDescription struct {
  5161. _ struct{} `type:"structure"`
  5162. // A description of the policy type.
  5163. Description *string `type:"string"`
  5164. // The description of the policy attributes associated with the policies defined
  5165. // by Elastic Load Balancing.
  5166. PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`
  5167. // The name of the policy type.
  5168. PolicyTypeName *string `type:"string"`
  5169. }
  5170. // String returns the string representation
  5171. func (s PolicyTypeDescription) String() string {
  5172. return awsutil.Prettify(s)
  5173. }
  5174. // GoString returns the string representation
  5175. func (s PolicyTypeDescription) GoString() string {
  5176. return s.String()
  5177. }
  5178. // SetDescription sets the Description field's value.
  5179. func (s *PolicyTypeDescription) SetDescription(v string) *PolicyTypeDescription {
  5180. s.Description = &v
  5181. return s
  5182. }
  5183. // SetPolicyAttributeTypeDescriptions sets the PolicyAttributeTypeDescriptions field's value.
  5184. func (s *PolicyTypeDescription) SetPolicyAttributeTypeDescriptions(v []*PolicyAttributeTypeDescription) *PolicyTypeDescription {
  5185. s.PolicyAttributeTypeDescriptions = v
  5186. return s
  5187. }
  5188. // SetPolicyTypeName sets the PolicyTypeName field's value.
  5189. func (s *PolicyTypeDescription) SetPolicyTypeName(v string) *PolicyTypeDescription {
  5190. s.PolicyTypeName = &v
  5191. return s
  5192. }
  5193. // Contains the parameters for RegisterInstancesWithLoadBalancer.
  5194. type RegisterInstancesWithLoadBalancerInput struct {
  5195. _ struct{} `type:"structure"`
  5196. // The IDs of the instances.
  5197. //
  5198. // Instances is a required field
  5199. Instances []*Instance `type:"list" required:"true"`
  5200. // The name of the load balancer.
  5201. //
  5202. // LoadBalancerName is a required field
  5203. LoadBalancerName *string `type:"string" required:"true"`
  5204. }
  5205. // String returns the string representation
  5206. func (s RegisterInstancesWithLoadBalancerInput) String() string {
  5207. return awsutil.Prettify(s)
  5208. }
  5209. // GoString returns the string representation
  5210. func (s RegisterInstancesWithLoadBalancerInput) GoString() string {
  5211. return s.String()
  5212. }
  5213. // Validate inspects the fields of the type to determine if they are valid.
  5214. func (s *RegisterInstancesWithLoadBalancerInput) Validate() error {
  5215. invalidParams := request.ErrInvalidParams{Context: "RegisterInstancesWithLoadBalancerInput"}
  5216. if s.Instances == nil {
  5217. invalidParams.Add(request.NewErrParamRequired("Instances"))
  5218. }
  5219. if s.LoadBalancerName == nil {
  5220. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5221. }
  5222. if invalidParams.Len() > 0 {
  5223. return invalidParams
  5224. }
  5225. return nil
  5226. }
  5227. // SetInstances sets the Instances field's value.
  5228. func (s *RegisterInstancesWithLoadBalancerInput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerInput {
  5229. s.Instances = v
  5230. return s
  5231. }
  5232. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5233. func (s *RegisterInstancesWithLoadBalancerInput) SetLoadBalancerName(v string) *RegisterInstancesWithLoadBalancerInput {
  5234. s.LoadBalancerName = &v
  5235. return s
  5236. }
  5237. // Contains the output of RegisterInstancesWithLoadBalancer.
  5238. type RegisterInstancesWithLoadBalancerOutput struct {
  5239. _ struct{} `type:"structure"`
  5240. // The updated list of instances for the load balancer.
  5241. Instances []*Instance `type:"list"`
  5242. }
  5243. // String returns the string representation
  5244. func (s RegisterInstancesWithLoadBalancerOutput) String() string {
  5245. return awsutil.Prettify(s)
  5246. }
  5247. // GoString returns the string representation
  5248. func (s RegisterInstancesWithLoadBalancerOutput) GoString() string {
  5249. return s.String()
  5250. }
  5251. // SetInstances sets the Instances field's value.
  5252. func (s *RegisterInstancesWithLoadBalancerOutput) SetInstances(v []*Instance) *RegisterInstancesWithLoadBalancerOutput {
  5253. s.Instances = v
  5254. return s
  5255. }
  5256. // Contains the parameters for RemoveTags.
  5257. type RemoveTagsInput struct {
  5258. _ struct{} `type:"structure"`
  5259. // The name of the load balancer. You can specify a maximum of one load balancer
  5260. // name.
  5261. //
  5262. // LoadBalancerNames is a required field
  5263. LoadBalancerNames []*string `type:"list" required:"true"`
  5264. // The list of tag keys to remove.
  5265. //
  5266. // Tags is a required field
  5267. Tags []*TagKeyOnly `min:"1" type:"list" required:"true"`
  5268. }
  5269. // String returns the string representation
  5270. func (s RemoveTagsInput) String() string {
  5271. return awsutil.Prettify(s)
  5272. }
  5273. // GoString returns the string representation
  5274. func (s RemoveTagsInput) GoString() string {
  5275. return s.String()
  5276. }
  5277. // Validate inspects the fields of the type to determine if they are valid.
  5278. func (s *RemoveTagsInput) Validate() error {
  5279. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
  5280. if s.LoadBalancerNames == nil {
  5281. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  5282. }
  5283. if s.Tags == nil {
  5284. invalidParams.Add(request.NewErrParamRequired("Tags"))
  5285. }
  5286. if s.Tags != nil && len(s.Tags) < 1 {
  5287. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  5288. }
  5289. if s.Tags != nil {
  5290. for i, v := range s.Tags {
  5291. if v == nil {
  5292. continue
  5293. }
  5294. if err := v.Validate(); err != nil {
  5295. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  5296. }
  5297. }
  5298. }
  5299. if invalidParams.Len() > 0 {
  5300. return invalidParams
  5301. }
  5302. return nil
  5303. }
  5304. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
  5305. func (s *RemoveTagsInput) SetLoadBalancerNames(v []*string) *RemoveTagsInput {
  5306. s.LoadBalancerNames = v
  5307. return s
  5308. }
  5309. // SetTags sets the Tags field's value.
  5310. func (s *RemoveTagsInput) SetTags(v []*TagKeyOnly) *RemoveTagsInput {
  5311. s.Tags = v
  5312. return s
  5313. }
  5314. // Contains the output of RemoveTags.
  5315. type RemoveTagsOutput struct {
  5316. _ struct{} `type:"structure"`
  5317. }
  5318. // String returns the string representation
  5319. func (s RemoveTagsOutput) String() string {
  5320. return awsutil.Prettify(s)
  5321. }
  5322. // GoString returns the string representation
  5323. func (s RemoveTagsOutput) GoString() string {
  5324. return s.String()
  5325. }
  5326. // Contains the parameters for SetLoadBalancerListenerSSLCertificate.
  5327. type SetLoadBalancerListenerSSLCertificateInput struct {
  5328. _ struct{} `type:"structure"`
  5329. // The name of the load balancer.
  5330. //
  5331. // LoadBalancerName is a required field
  5332. LoadBalancerName *string `type:"string" required:"true"`
  5333. // The port that uses the specified SSL certificate.
  5334. //
  5335. // LoadBalancerPort is a required field
  5336. LoadBalancerPort *int64 `type:"integer" required:"true"`
  5337. // The Amazon Resource Name (ARN) of the SSL certificate.
  5338. //
  5339. // SSLCertificateId is a required field
  5340. SSLCertificateId *string `type:"string" required:"true"`
  5341. }
  5342. // String returns the string representation
  5343. func (s SetLoadBalancerListenerSSLCertificateInput) String() string {
  5344. return awsutil.Prettify(s)
  5345. }
  5346. // GoString returns the string representation
  5347. func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string {
  5348. return s.String()
  5349. }
  5350. // Validate inspects the fields of the type to determine if they are valid.
  5351. func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error {
  5352. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerListenerSSLCertificateInput"}
  5353. if s.LoadBalancerName == nil {
  5354. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5355. }
  5356. if s.LoadBalancerPort == nil {
  5357. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  5358. }
  5359. if s.SSLCertificateId == nil {
  5360. invalidParams.Add(request.NewErrParamRequired("SSLCertificateId"))
  5361. }
  5362. if invalidParams.Len() > 0 {
  5363. return invalidParams
  5364. }
  5365. return nil
  5366. }
  5367. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5368. func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerName(v string) *SetLoadBalancerListenerSSLCertificateInput {
  5369. s.LoadBalancerName = &v
  5370. return s
  5371. }
  5372. // SetLoadBalancerPort sets the LoadBalancerPort field's value.
  5373. func (s *SetLoadBalancerListenerSSLCertificateInput) SetLoadBalancerPort(v int64) *SetLoadBalancerListenerSSLCertificateInput {
  5374. s.LoadBalancerPort = &v
  5375. return s
  5376. }
  5377. // SetSSLCertificateId sets the SSLCertificateId field's value.
  5378. func (s *SetLoadBalancerListenerSSLCertificateInput) SetSSLCertificateId(v string) *SetLoadBalancerListenerSSLCertificateInput {
  5379. s.SSLCertificateId = &v
  5380. return s
  5381. }
  5382. // Contains the output of SetLoadBalancerListenerSSLCertificate.
  5383. type SetLoadBalancerListenerSSLCertificateOutput struct {
  5384. _ struct{} `type:"structure"`
  5385. }
  5386. // String returns the string representation
  5387. func (s SetLoadBalancerListenerSSLCertificateOutput) String() string {
  5388. return awsutil.Prettify(s)
  5389. }
  5390. // GoString returns the string representation
  5391. func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string {
  5392. return s.String()
  5393. }
  5394. // Contains the parameters for SetLoadBalancerPoliciesForBackendServer.
  5395. type SetLoadBalancerPoliciesForBackendServerInput struct {
  5396. _ struct{} `type:"structure"`
  5397. // The port number associated with the EC2 instance.
  5398. //
  5399. // InstancePort is a required field
  5400. InstancePort *int64 `type:"integer" required:"true"`
  5401. // The name of the load balancer.
  5402. //
  5403. // LoadBalancerName is a required field
  5404. LoadBalancerName *string `type:"string" required:"true"`
  5405. // The names of the policies. If the list is empty, then all current polices
  5406. // are removed from the EC2 instance.
  5407. //
  5408. // PolicyNames is a required field
  5409. PolicyNames []*string `type:"list" required:"true"`
  5410. }
  5411. // String returns the string representation
  5412. func (s SetLoadBalancerPoliciesForBackendServerInput) String() string {
  5413. return awsutil.Prettify(s)
  5414. }
  5415. // GoString returns the string representation
  5416. func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string {
  5417. return s.String()
  5418. }
  5419. // Validate inspects the fields of the type to determine if they are valid.
  5420. func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error {
  5421. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesForBackendServerInput"}
  5422. if s.InstancePort == nil {
  5423. invalidParams.Add(request.NewErrParamRequired("InstancePort"))
  5424. }
  5425. if s.LoadBalancerName == nil {
  5426. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5427. }
  5428. if s.PolicyNames == nil {
  5429. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  5430. }
  5431. if invalidParams.Len() > 0 {
  5432. return invalidParams
  5433. }
  5434. return nil
  5435. }
  5436. // SetInstancePort sets the InstancePort field's value.
  5437. func (s *SetLoadBalancerPoliciesForBackendServerInput) SetInstancePort(v int64) *SetLoadBalancerPoliciesForBackendServerInput {
  5438. s.InstancePort = &v
  5439. return s
  5440. }
  5441. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5442. func (s *SetLoadBalancerPoliciesForBackendServerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesForBackendServerInput {
  5443. s.LoadBalancerName = &v
  5444. return s
  5445. }
  5446. // SetPolicyNames sets the PolicyNames field's value.
  5447. func (s *SetLoadBalancerPoliciesForBackendServerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesForBackendServerInput {
  5448. s.PolicyNames = v
  5449. return s
  5450. }
  5451. // Contains the output of SetLoadBalancerPoliciesForBackendServer.
  5452. type SetLoadBalancerPoliciesForBackendServerOutput struct {
  5453. _ struct{} `type:"structure"`
  5454. }
  5455. // String returns the string representation
  5456. func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string {
  5457. return awsutil.Prettify(s)
  5458. }
  5459. // GoString returns the string representation
  5460. func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string {
  5461. return s.String()
  5462. }
  5463. // Contains the parameters for SetLoadBalancePoliciesOfListener.
  5464. type SetLoadBalancerPoliciesOfListenerInput struct {
  5465. _ struct{} `type:"structure"`
  5466. // The name of the load balancer.
  5467. //
  5468. // LoadBalancerName is a required field
  5469. LoadBalancerName *string `type:"string" required:"true"`
  5470. // The external port of the load balancer.
  5471. //
  5472. // LoadBalancerPort is a required field
  5473. LoadBalancerPort *int64 `type:"integer" required:"true"`
  5474. // The names of the policies. This list must include all policies to be enabled.
  5475. // If you omit a policy that is currently enabled, it is disabled. If the list
  5476. // is empty, all current policies are disabled.
  5477. //
  5478. // PolicyNames is a required field
  5479. PolicyNames []*string `type:"list" required:"true"`
  5480. }
  5481. // String returns the string representation
  5482. func (s SetLoadBalancerPoliciesOfListenerInput) String() string {
  5483. return awsutil.Prettify(s)
  5484. }
  5485. // GoString returns the string representation
  5486. func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string {
  5487. return s.String()
  5488. }
  5489. // Validate inspects the fields of the type to determine if they are valid.
  5490. func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error {
  5491. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesOfListenerInput"}
  5492. if s.LoadBalancerName == nil {
  5493. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  5494. }
  5495. if s.LoadBalancerPort == nil {
  5496. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  5497. }
  5498. if s.PolicyNames == nil {
  5499. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  5500. }
  5501. if invalidParams.Len() > 0 {
  5502. return invalidParams
  5503. }
  5504. return nil
  5505. }
  5506. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5507. func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerName(v string) *SetLoadBalancerPoliciesOfListenerInput {
  5508. s.LoadBalancerName = &v
  5509. return s
  5510. }
  5511. // SetLoadBalancerPort sets the LoadBalancerPort field's value.
  5512. func (s *SetLoadBalancerPoliciesOfListenerInput) SetLoadBalancerPort(v int64) *SetLoadBalancerPoliciesOfListenerInput {
  5513. s.LoadBalancerPort = &v
  5514. return s
  5515. }
  5516. // SetPolicyNames sets the PolicyNames field's value.
  5517. func (s *SetLoadBalancerPoliciesOfListenerInput) SetPolicyNames(v []*string) *SetLoadBalancerPoliciesOfListenerInput {
  5518. s.PolicyNames = v
  5519. return s
  5520. }
  5521. // Contains the output of SetLoadBalancePoliciesOfListener.
  5522. type SetLoadBalancerPoliciesOfListenerOutput struct {
  5523. _ struct{} `type:"structure"`
  5524. }
  5525. // String returns the string representation
  5526. func (s SetLoadBalancerPoliciesOfListenerOutput) String() string {
  5527. return awsutil.Prettify(s)
  5528. }
  5529. // GoString returns the string representation
  5530. func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string {
  5531. return s.String()
  5532. }
  5533. // Information about a source security group.
  5534. type SourceSecurityGroup struct {
  5535. _ struct{} `type:"structure"`
  5536. // The name of the security group.
  5537. GroupName *string `type:"string"`
  5538. // The owner of the security group.
  5539. OwnerAlias *string `type:"string"`
  5540. }
  5541. // String returns the string representation
  5542. func (s SourceSecurityGroup) String() string {
  5543. return awsutil.Prettify(s)
  5544. }
  5545. // GoString returns the string representation
  5546. func (s SourceSecurityGroup) GoString() string {
  5547. return s.String()
  5548. }
  5549. // SetGroupName sets the GroupName field's value.
  5550. func (s *SourceSecurityGroup) SetGroupName(v string) *SourceSecurityGroup {
  5551. s.GroupName = &v
  5552. return s
  5553. }
  5554. // SetOwnerAlias sets the OwnerAlias field's value.
  5555. func (s *SourceSecurityGroup) SetOwnerAlias(v string) *SourceSecurityGroup {
  5556. s.OwnerAlias = &v
  5557. return s
  5558. }
  5559. // Information about a tag.
  5560. type Tag struct {
  5561. _ struct{} `type:"structure"`
  5562. // The key of the tag.
  5563. //
  5564. // Key is a required field
  5565. Key *string `min:"1" type:"string" required:"true"`
  5566. // The value of the tag.
  5567. Value *string `type:"string"`
  5568. }
  5569. // String returns the string representation
  5570. func (s Tag) String() string {
  5571. return awsutil.Prettify(s)
  5572. }
  5573. // GoString returns the string representation
  5574. func (s Tag) GoString() string {
  5575. return s.String()
  5576. }
  5577. // Validate inspects the fields of the type to determine if they are valid.
  5578. func (s *Tag) Validate() error {
  5579. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  5580. if s.Key == nil {
  5581. invalidParams.Add(request.NewErrParamRequired("Key"))
  5582. }
  5583. if s.Key != nil && len(*s.Key) < 1 {
  5584. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  5585. }
  5586. if invalidParams.Len() > 0 {
  5587. return invalidParams
  5588. }
  5589. return nil
  5590. }
  5591. // SetKey sets the Key field's value.
  5592. func (s *Tag) SetKey(v string) *Tag {
  5593. s.Key = &v
  5594. return s
  5595. }
  5596. // SetValue sets the Value field's value.
  5597. func (s *Tag) SetValue(v string) *Tag {
  5598. s.Value = &v
  5599. return s
  5600. }
  5601. // The tags associated with a load balancer.
  5602. type TagDescription struct {
  5603. _ struct{} `type:"structure"`
  5604. // The name of the load balancer.
  5605. LoadBalancerName *string `type:"string"`
  5606. // The tags.
  5607. Tags []*Tag `min:"1" type:"list"`
  5608. }
  5609. // String returns the string representation
  5610. func (s TagDescription) String() string {
  5611. return awsutil.Prettify(s)
  5612. }
  5613. // GoString returns the string representation
  5614. func (s TagDescription) GoString() string {
  5615. return s.String()
  5616. }
  5617. // SetLoadBalancerName sets the LoadBalancerName field's value.
  5618. func (s *TagDescription) SetLoadBalancerName(v string) *TagDescription {
  5619. s.LoadBalancerName = &v
  5620. return s
  5621. }
  5622. // SetTags sets the Tags field's value.
  5623. func (s *TagDescription) SetTags(v []*Tag) *TagDescription {
  5624. s.Tags = v
  5625. return s
  5626. }
  5627. // The key of a tag.
  5628. type TagKeyOnly struct {
  5629. _ struct{} `type:"structure"`
  5630. // The name of the key.
  5631. Key *string `min:"1" type:"string"`
  5632. }
  5633. // String returns the string representation
  5634. func (s TagKeyOnly) String() string {
  5635. return awsutil.Prettify(s)
  5636. }
  5637. // GoString returns the string representation
  5638. func (s TagKeyOnly) GoString() string {
  5639. return s.String()
  5640. }
  5641. // Validate inspects the fields of the type to determine if they are valid.
  5642. func (s *TagKeyOnly) Validate() error {
  5643. invalidParams := request.ErrInvalidParams{Context: "TagKeyOnly"}
  5644. if s.Key != nil && len(*s.Key) < 1 {
  5645. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  5646. }
  5647. if invalidParams.Len() > 0 {
  5648. return invalidParams
  5649. }
  5650. return nil
  5651. }
  5652. // SetKey sets the Key field's value.
  5653. func (s *TagKeyOnly) SetKey(v string) *TagKeyOnly {
  5654. s.Key = &v
  5655. return s
  5656. }