12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package elbv2
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/query"
- )
- const opAddListenerCertificates = "AddListenerCertificates"
- // AddListenerCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the AddListenerCertificates operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AddListenerCertificates for more information on using the AddListenerCertificates
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AddListenerCertificatesRequest method.
- // req, resp := client.AddListenerCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddListenerCertificates
- func (c *ELBV2) AddListenerCertificatesRequest(input *AddListenerCertificatesInput) (req *request.Request, output *AddListenerCertificatesOutput) {
- op := &request.Operation{
- Name: opAddListenerCertificates,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddListenerCertificatesInput{}
- }
- output = &AddListenerCertificatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AddListenerCertificates API operation for Elastic Load Balancing.
- //
- // Adds the specified certificate to the specified HTTPS listener.
- //
- // If the certificate was already added, the call is successful but the certificate
- // is not added again.
- //
- // To list the certificates for your listener, use DescribeListenerCertificates.
- // To remove certificates from your listener, use RemoveListenerCertificates.
- // To specify the default SSL server certificate, use ModifyListener.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation AddListenerCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeTooManyCertificatesException "TooManyCertificates"
- // You've reached the limit on the number of certificates per load balancer.
- //
- // * ErrCodeCertificateNotFoundException "CertificateNotFound"
- // The specified certificate does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddListenerCertificates
- func (c *ELBV2) AddListenerCertificates(input *AddListenerCertificatesInput) (*AddListenerCertificatesOutput, error) {
- req, out := c.AddListenerCertificatesRequest(input)
- return out, req.Send()
- }
- // AddListenerCertificatesWithContext is the same as AddListenerCertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AddListenerCertificates for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) AddListenerCertificatesWithContext(ctx aws.Context, input *AddListenerCertificatesInput, opts ...request.Option) (*AddListenerCertificatesOutput, error) {
- req, out := c.AddListenerCertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAddTags = "AddTags"
- // AddTagsRequest generates a "aws/request.Request" representing the
- // client's request for the AddTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AddTags for more information on using the AddTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AddTagsRequest method.
- // req, resp := client.AddTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags
- func (c *ELBV2) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
- op := &request.Operation{
- Name: opAddTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsInput{}
- }
- output = &AddTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AddTags API operation for Elastic Load Balancing.
- //
- // Adds the specified tags to the specified Elastic Load Balancing resource.
- // You can tag your Application Load Balancers, Network Load Balancers, and
- // your target groups.
- //
- // Each tag consists of a key and an optional value. If a resource already has
- // a tag with the same key, AddTags updates its value.
- //
- // To list the current tags for your resources, use DescribeTags. To remove
- // tags from your resources, use RemoveTags.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation AddTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDuplicateTagKeysException "DuplicateTagKeys"
- // A tag key was specified more than once.
- //
- // * ErrCodeTooManyTagsException "TooManyTags"
- // You've reached the limit on the number of tags per load balancer.
- //
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddTags
- func (c *ELBV2) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- return out, req.Send()
- }
- // AddTagsWithContext is the same as AddTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AddTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateListener = "CreateListener"
- // CreateListenerRequest generates a "aws/request.Request" representing the
- // client's request for the CreateListener operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateListener for more information on using the CreateListener
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateListenerRequest method.
- // req, resp := client.CreateListenerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener
- func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request.Request, output *CreateListenerOutput) {
- op := &request.Operation{
- Name: opCreateListener,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateListenerInput{}
- }
- output = &CreateListenerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateListener API operation for Elastic Load Balancing.
- //
- // Creates a listener for the specified Application Load Balancer or Network
- // Load Balancer.
- //
- // To update a listener, use ModifyListener. When you are finished with a listener,
- // you can delete it using DeleteListener. If you are finished with both the
- // listener and the load balancer, you can delete them both using DeleteLoadBalancer.
- //
- // This operation is idempotent, which means that it completes at most one time.
- // If you attempt to create multiple listeners with the same settings, each
- // call succeeds.
- //
- // For more information, see Listeners for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html)
- // in the Application Load Balancers Guide and Listeners for Your Network Load
- // Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html)
- // in the Network Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation CreateListener for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDuplicateListenerException "DuplicateListener"
- // A listener with the specified port already exists.
- //
- // * ErrCodeTooManyListenersException "TooManyListeners"
- // You've reached the limit on the number of listeners per load balancer.
- //
- // * ErrCodeTooManyCertificatesException "TooManyCertificates"
- // You've reached the limit on the number of certificates per load balancer.
- //
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit"
- // You've reached the limit on the number of load balancers per target group.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
- // The specified configuration is not valid with this protocol.
- //
- // * ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound"
- // The specified SSL policy does not exist.
- //
- // * ErrCodeCertificateNotFoundException "CertificateNotFound"
- // The specified certificate does not exist.
- //
- // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
- // The specified protocol is not supported.
- //
- // * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId"
- // You've reached the limit on the number of times a target can be registered
- // with a load balancer.
- //
- // * ErrCodeTooManyTargetsException "TooManyTargets"
- // You've reached the limit on the number of targets.
- //
- // * ErrCodeTooManyActionsException "TooManyActions"
- // You've reached the limit on the number of actions per rule.
- //
- // * ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
- // The requested action is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateListener
- func (c *ELBV2) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error) {
- req, out := c.CreateListenerRequest(input)
- return out, req.Send()
- }
- // CreateListenerWithContext is the same as CreateListener with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateListener for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) CreateListenerWithContext(ctx aws.Context, input *CreateListenerInput, opts ...request.Option) (*CreateListenerOutput, error) {
- req, out := c.CreateListenerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateLoadBalancer = "CreateLoadBalancer"
- // CreateLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLoadBalancer operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateLoadBalancer for more information on using the CreateLoadBalancer
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateLoadBalancerRequest method.
- // req, resp := client.CreateLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer
- func (c *ELBV2) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerInput{}
- }
- output = &CreateLoadBalancerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateLoadBalancer API operation for Elastic Load Balancing.
- //
- // Creates an Application Load Balancer or a Network Load Balancer.
- //
- // When you create a load balancer, you can specify security groups, public
- // subnets, IP address type, and tags. Otherwise, you could do so later using
- // SetSecurityGroups, SetSubnets, SetIpAddressType, and AddTags.
- //
- // To create listeners for your load balancer, use CreateListener. To describe
- // your current load balancers, see DescribeLoadBalancers. When you are finished
- // with a load balancer, you can delete it using DeleteLoadBalancer.
- //
- // For limit information, see Limits for Your Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html)
- // in the Application Load Balancers Guide and Limits for Your Network Load
- // Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html)
- // in the Network Load Balancers Guide.
- //
- // This operation is idempotent, which means that it completes at most one time.
- // If you attempt to create multiple load balancers with the same settings,
- // each call succeeds.
- //
- // For more information, see Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html)
- // in the Application Load Balancers Guide and Network Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html)
- // in the Network Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation CreateLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDuplicateLoadBalancerNameException "DuplicateLoadBalancerName"
- // A load balancer with the specified name already exists.
- //
- // * ErrCodeTooManyLoadBalancersException "TooManyLoadBalancers"
- // You've reached the limit on the number of load balancers for your AWS account.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeSubnetNotFoundException "SubnetNotFound"
- // The specified subnet does not exist.
- //
- // * ErrCodeInvalidSubnetException "InvalidSubnet"
- // The specified subnet is out of available addresses.
- //
- // * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
- // The specified security group does not exist.
- //
- // * ErrCodeInvalidSchemeException "InvalidScheme"
- // The requested scheme is not valid.
- //
- // * ErrCodeTooManyTagsException "TooManyTags"
- // You've reached the limit on the number of tags per load balancer.
- //
- // * ErrCodeDuplicateTagKeysException "DuplicateTagKeys"
- // A tag key was specified more than once.
- //
- // * ErrCodeResourceInUseException "ResourceInUse"
- // A specified resource is in use.
- //
- // * ErrCodeAllocationIdNotFoundException "AllocationIdNotFound"
- // The specified allocation ID does not exist.
- //
- // * ErrCodeAvailabilityZoneNotSupportedException "AvailabilityZoneNotSupported"
- // The specified Availability Zone is not supported.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateLoadBalancer
- func (c *ELBV2) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
- req, out := c.CreateLoadBalancerRequest(input)
- return out, req.Send()
- }
- // CreateLoadBalancerWithContext is the same as CreateLoadBalancer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateLoadBalancer for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) CreateLoadBalancerWithContext(ctx aws.Context, input *CreateLoadBalancerInput, opts ...request.Option) (*CreateLoadBalancerOutput, error) {
- req, out := c.CreateLoadBalancerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateRule = "CreateRule"
- // CreateRuleRequest generates a "aws/request.Request" representing the
- // client's request for the CreateRule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateRule for more information on using the CreateRule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateRuleRequest method.
- // req, resp := client.CreateRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule
- func (c *ELBV2) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput) {
- op := &request.Operation{
- Name: opCreateRule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateRuleInput{}
- }
- output = &CreateRuleOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateRule API operation for Elastic Load Balancing.
- //
- // Creates a rule for the specified listener. The listener must be associated
- // with an Application Load Balancer.
- //
- // Rules are evaluated in priority order, from the lowest value to the highest
- // value. When the conditions for a rule are met, its actions are performed.
- // If the conditions for no rules are met, the actions for the default rule
- // are performed. For more information, see Listener Rules (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules)
- // in the Application Load Balancers Guide.
- //
- // To view your current rules, use DescribeRules. To update a rule, use ModifyRule.
- // To set the priorities of your rules, use SetRulePriorities. To delete a rule,
- // use DeleteRule.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation CreateRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePriorityInUseException "PriorityInUse"
- // The specified priority is in use.
- //
- // * ErrCodeTooManyTargetGroupsException "TooManyTargetGroups"
- // You've reached the limit on the number of target groups for your AWS account.
- //
- // * ErrCodeTooManyRulesException "TooManyRules"
- // You've reached the limit on the number of rules per load balancer.
- //
- // * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit"
- // You've reached the limit on the number of load balancers per target group.
- //
- // * ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
- // The specified configuration is not valid with this protocol.
- //
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId"
- // You've reached the limit on the number of times a target can be registered
- // with a load balancer.
- //
- // * ErrCodeTooManyTargetsException "TooManyTargets"
- // You've reached the limit on the number of targets.
- //
- // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
- // The specified protocol is not supported.
- //
- // * ErrCodeTooManyActionsException "TooManyActions"
- // You've reached the limit on the number of actions per rule.
- //
- // * ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
- // The requested action is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateRule
- func (c *ELBV2) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) {
- req, out := c.CreateRuleRequest(input)
- return out, req.Send()
- }
- // CreateRuleWithContext is the same as CreateRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateRule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) CreateRuleWithContext(ctx aws.Context, input *CreateRuleInput, opts ...request.Option) (*CreateRuleOutput, error) {
- req, out := c.CreateRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateTargetGroup = "CreateTargetGroup"
- // CreateTargetGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTargetGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateTargetGroup for more information on using the CreateTargetGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateTargetGroupRequest method.
- // req, resp := client.CreateTargetGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup
- func (c *ELBV2) CreateTargetGroupRequest(input *CreateTargetGroupInput) (req *request.Request, output *CreateTargetGroupOutput) {
- op := &request.Operation{
- Name: opCreateTargetGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateTargetGroupInput{}
- }
- output = &CreateTargetGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateTargetGroup API operation for Elastic Load Balancing.
- //
- // Creates a target group.
- //
- // To register targets with the target group, use RegisterTargets. To update
- // the health check settings for the target group, use ModifyTargetGroup. To
- // monitor the health of targets in the target group, use DescribeTargetHealth.
- //
- // To route traffic to the targets in a target group, specify the target group
- // in an action using CreateListener or CreateRule.
- //
- // To delete a target group, use DeleteTargetGroup.
- //
- // This operation is idempotent, which means that it completes at most one time.
- // If you attempt to create multiple target groups with the same settings, each
- // call succeeds.
- //
- // For more information, see Target Groups for Your Application Load Balancers
- // (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html)
- // in the Application Load Balancers Guide or Target Groups for Your Network
- // Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html)
- // in the Network Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation CreateTargetGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDuplicateTargetGroupNameException "DuplicateTargetGroupName"
- // A target group with the specified name already exists.
- //
- // * ErrCodeTooManyTargetGroupsException "TooManyTargetGroups"
- // You've reached the limit on the number of target groups for your AWS account.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/CreateTargetGroup
- func (c *ELBV2) CreateTargetGroup(input *CreateTargetGroupInput) (*CreateTargetGroupOutput, error) {
- req, out := c.CreateTargetGroupRequest(input)
- return out, req.Send()
- }
- // CreateTargetGroupWithContext is the same as CreateTargetGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateTargetGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) CreateTargetGroupWithContext(ctx aws.Context, input *CreateTargetGroupInput, opts ...request.Option) (*CreateTargetGroupOutput, error) {
- req, out := c.CreateTargetGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteListener = "DeleteListener"
- // DeleteListenerRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteListener operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteListener for more information on using the DeleteListener
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteListenerRequest method.
- // req, resp := client.DeleteListenerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener
- func (c *ELBV2) DeleteListenerRequest(input *DeleteListenerInput) (req *request.Request, output *DeleteListenerOutput) {
- op := &request.Operation{
- Name: opDeleteListener,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteListenerInput{}
- }
- output = &DeleteListenerOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteListener API operation for Elastic Load Balancing.
- //
- // Deletes the specified listener.
- //
- // Alternatively, your listener is deleted when you delete the load balancer
- // to which it is attached, using DeleteLoadBalancer.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DeleteListener for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteListener
- func (c *ELBV2) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error) {
- req, out := c.DeleteListenerRequest(input)
- return out, req.Send()
- }
- // DeleteListenerWithContext is the same as DeleteListener with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteListener for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DeleteListenerWithContext(ctx aws.Context, input *DeleteListenerInput, opts ...request.Option) (*DeleteListenerOutput, error) {
- req, out := c.DeleteListenerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteLoadBalancer = "DeleteLoadBalancer"
- // DeleteLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteLoadBalancer operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteLoadBalancer for more information on using the DeleteLoadBalancer
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteLoadBalancerRequest method.
- // req, resp := client.DeleteLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer
- func (c *ELBV2) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerInput{}
- }
- output = &DeleteLoadBalancerOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteLoadBalancer API operation for Elastic Load Balancing.
- //
- // Deletes the specified Application Load Balancer or Network Load Balancer
- // and its attached listeners.
- //
- // You can't delete a load balancer if deletion protection is enabled. If the
- // load balancer does not exist or has already been deleted, the call succeeds.
- //
- // Deleting a load balancer does not affect its registered targets. For example,
- // your EC2 instances continue to run and are still registered to their target
- // groups. If you no longer need these EC2 instances, you can stop or terminate
- // them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DeleteLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
- // This operation is not allowed.
- //
- // * ErrCodeResourceInUseException "ResourceInUse"
- // A specified resource is in use.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteLoadBalancer
- func (c *ELBV2) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
- req, out := c.DeleteLoadBalancerRequest(input)
- return out, req.Send()
- }
- // DeleteLoadBalancerWithContext is the same as DeleteLoadBalancer with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteLoadBalancer for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DeleteLoadBalancerWithContext(ctx aws.Context, input *DeleteLoadBalancerInput, opts ...request.Option) (*DeleteLoadBalancerOutput, error) {
- req, out := c.DeleteLoadBalancerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteRule = "DeleteRule"
- // DeleteRuleRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteRule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteRule for more information on using the DeleteRule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteRuleRequest method.
- // req, resp := client.DeleteRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule
- func (c *ELBV2) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) {
- op := &request.Operation{
- Name: opDeleteRule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteRuleInput{}
- }
- output = &DeleteRuleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteRule API operation for Elastic Load Balancing.
- //
- // Deletes the specified rule.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DeleteRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRuleNotFoundException "RuleNotFound"
- // The specified rule does not exist.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteRule
- func (c *ELBV2) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) {
- req, out := c.DeleteRuleRequest(input)
- return out, req.Send()
- }
- // DeleteRuleWithContext is the same as DeleteRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteRule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DeleteRuleWithContext(ctx aws.Context, input *DeleteRuleInput, opts ...request.Option) (*DeleteRuleOutput, error) {
- req, out := c.DeleteRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteTargetGroup = "DeleteTargetGroup"
- // DeleteTargetGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTargetGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteTargetGroup for more information on using the DeleteTargetGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteTargetGroupRequest method.
- // req, resp := client.DeleteTargetGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup
- func (c *ELBV2) DeleteTargetGroupRequest(input *DeleteTargetGroupInput) (req *request.Request, output *DeleteTargetGroupOutput) {
- op := &request.Operation{
- Name: opDeleteTargetGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteTargetGroupInput{}
- }
- output = &DeleteTargetGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteTargetGroup API operation for Elastic Load Balancing.
- //
- // Deletes the specified target group.
- //
- // You can delete a target group if it is not referenced by any actions. Deleting
- // a target group also deletes any associated health checks.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DeleteTargetGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUse"
- // A specified resource is in use.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeleteTargetGroup
- func (c *ELBV2) DeleteTargetGroup(input *DeleteTargetGroupInput) (*DeleteTargetGroupOutput, error) {
- req, out := c.DeleteTargetGroupRequest(input)
- return out, req.Send()
- }
- // DeleteTargetGroupWithContext is the same as DeleteTargetGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteTargetGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DeleteTargetGroupWithContext(ctx aws.Context, input *DeleteTargetGroupInput, opts ...request.Option) (*DeleteTargetGroupOutput, error) {
- req, out := c.DeleteTargetGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeregisterTargets = "DeregisterTargets"
- // DeregisterTargetsRequest generates a "aws/request.Request" representing the
- // client's request for the DeregisterTargets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeregisterTargets for more information on using the DeregisterTargets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeregisterTargetsRequest method.
- // req, resp := client.DeregisterTargetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets
- func (c *ELBV2) DeregisterTargetsRequest(input *DeregisterTargetsInput) (req *request.Request, output *DeregisterTargetsOutput) {
- op := &request.Operation{
- Name: opDeregisterTargets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeregisterTargetsInput{}
- }
- output = &DeregisterTargetsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeregisterTargets API operation for Elastic Load Balancing.
- //
- // Deregisters the specified targets from the specified target group. After
- // the targets are deregistered, they no longer receive traffic from the load
- // balancer.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DeregisterTargets for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeInvalidTargetException "InvalidTarget"
- // The specified target does not exist, is not in the same VPC as the target
- // group, or has an unsupported instance type.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DeregisterTargets
- func (c *ELBV2) DeregisterTargets(input *DeregisterTargetsInput) (*DeregisterTargetsOutput, error) {
- req, out := c.DeregisterTargetsRequest(input)
- return out, req.Send()
- }
- // DeregisterTargetsWithContext is the same as DeregisterTargets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeregisterTargets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DeregisterTargetsWithContext(ctx aws.Context, input *DeregisterTargetsInput, opts ...request.Option) (*DeregisterTargetsOutput, error) {
- req, out := c.DeregisterTargetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAccountLimits = "DescribeAccountLimits"
- // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAccountLimits operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeAccountLimits for more information on using the DescribeAccountLimits
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeAccountLimitsRequest method.
- // req, resp := client.DescribeAccountLimitsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimits
- func (c *ELBV2) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
- op := &request.Operation{
- Name: opDescribeAccountLimits,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAccountLimitsInput{}
- }
- output = &DescribeAccountLimitsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAccountLimits API operation for Elastic Load Balancing.
- //
- // Describes the current Elastic Load Balancing resource limits for your AWS
- // account.
- //
- // For more information, see Limits for Your Application Load Balancers (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html)
- // in the Application Load Balancer Guide or Limits for Your Network Load Balancers
- // (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html)
- // in the Network Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeAccountLimits for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimits
- func (c *ELBV2) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
- req, out := c.DescribeAccountLimitsRequest(input)
- return out, req.Send()
- }
- // DescribeAccountLimitsWithContext is the same as DescribeAccountLimits with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAccountLimits for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error) {
- req, out := c.DescribeAccountLimitsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeListenerCertificates = "DescribeListenerCertificates"
- // DescribeListenerCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeListenerCertificates operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeListenerCertificates for more information on using the DescribeListenerCertificates
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeListenerCertificatesRequest method.
- // req, resp := client.DescribeListenerCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenerCertificates
- func (c *ELBV2) DescribeListenerCertificatesRequest(input *DescribeListenerCertificatesInput) (req *request.Request, output *DescribeListenerCertificatesOutput) {
- op := &request.Operation{
- Name: opDescribeListenerCertificates,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeListenerCertificatesInput{}
- }
- output = &DescribeListenerCertificatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeListenerCertificates API operation for Elastic Load Balancing.
- //
- // Describes the certificates for the specified HTTPS listener.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeListenerCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenerCertificates
- func (c *ELBV2) DescribeListenerCertificates(input *DescribeListenerCertificatesInput) (*DescribeListenerCertificatesOutput, error) {
- req, out := c.DescribeListenerCertificatesRequest(input)
- return out, req.Send()
- }
- // DescribeListenerCertificatesWithContext is the same as DescribeListenerCertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeListenerCertificates for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeListenerCertificatesWithContext(ctx aws.Context, input *DescribeListenerCertificatesInput, opts ...request.Option) (*DescribeListenerCertificatesOutput, error) {
- req, out := c.DescribeListenerCertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeListeners = "DescribeListeners"
- // DescribeListenersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeListeners operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeListeners for more information on using the DescribeListeners
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeListenersRequest method.
- // req, resp := client.DescribeListenersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners
- func (c *ELBV2) DescribeListenersRequest(input *DescribeListenersInput) (req *request.Request, output *DescribeListenersOutput) {
- op := &request.Operation{
- Name: opDescribeListeners,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"NextMarker"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeListenersInput{}
- }
- output = &DescribeListenersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeListeners API operation for Elastic Load Balancing.
- //
- // Describes the specified listeners or the listeners for the specified Application
- // Load Balancer or Network Load Balancer. You must specify either a load balancer
- // or one or more listeners.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeListeners for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
- // The specified protocol is not supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListeners
- func (c *ELBV2) DescribeListeners(input *DescribeListenersInput) (*DescribeListenersOutput, error) {
- req, out := c.DescribeListenersRequest(input)
- return out, req.Send()
- }
- // DescribeListenersWithContext is the same as DescribeListeners with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeListeners for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeListenersWithContext(ctx aws.Context, input *DescribeListenersInput, opts ...request.Option) (*DescribeListenersOutput, error) {
- req, out := c.DescribeListenersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeListenersPages iterates over the pages of a DescribeListeners operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeListeners method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeListeners operation.
- // pageNum := 0
- // err := client.DescribeListenersPages(params,
- // func(page *DescribeListenersOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ELBV2) DescribeListenersPages(input *DescribeListenersInput, fn func(*DescribeListenersOutput, bool) bool) error {
- return c.DescribeListenersPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeListenersPagesWithContext same as DescribeListenersPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeListenersPagesWithContext(ctx aws.Context, input *DescribeListenersInput, fn func(*DescribeListenersOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeListenersInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeListenersRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeListenersOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
- // DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoadBalancerAttributes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeLoadBalancerAttributes for more information on using the DescribeLoadBalancerAttributes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeLoadBalancerAttributesRequest method.
- // req, resp := client.DescribeLoadBalancerAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes
- func (c *ELBV2) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerAttributesInput{}
- }
- output = &DescribeLoadBalancerAttributesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.
- //
- // Describes the attributes for the specified Application Load Balancer or Network
- // Load Balancer.
- //
- // For more information, see Load Balancer Attributes (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html#load-balancer-attributes)
- // in the Application Load Balancers Guide or Load Balancer Attributes (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#load-balancer-attributes)
- // in the Network Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeLoadBalancerAttributes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancerAttributes
- func (c *ELBV2) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
- req, out := c.DescribeLoadBalancerAttributesRequest(input)
- return out, req.Send()
- }
- // DescribeLoadBalancerAttributesWithContext is the same as DescribeLoadBalancerAttributes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeLoadBalancerAttributes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeLoadBalancerAttributesWithContext(ctx aws.Context, input *DescribeLoadBalancerAttributesInput, opts ...request.Option) (*DescribeLoadBalancerAttributesOutput, error) {
- req, out := c.DescribeLoadBalancerAttributesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeLoadBalancers = "DescribeLoadBalancers"
- // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoadBalancers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeLoadBalancers for more information on using the DescribeLoadBalancers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeLoadBalancersRequest method.
- // req, resp := client.DescribeLoadBalancersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers
- func (c *ELBV2) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"NextMarker"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeLoadBalancersInput{}
- }
- output = &DescribeLoadBalancersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeLoadBalancers API operation for Elastic Load Balancing.
- //
- // Describes the specified load balancers or all of your load balancers.
- //
- // To describe the listeners for a load balancer, use DescribeListeners. To
- // describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeLoadBalancers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeLoadBalancers
- func (c *ELBV2) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
- req, out := c.DescribeLoadBalancersRequest(input)
- return out, req.Send()
- }
- // DescribeLoadBalancersWithContext is the same as DescribeLoadBalancers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeLoadBalancers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeLoadBalancersWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, opts ...request.Option) (*DescribeLoadBalancersOutput, error) {
- req, out := c.DescribeLoadBalancersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeLoadBalancersPages iterates over the pages of a DescribeLoadBalancers operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeLoadBalancers method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeLoadBalancers operation.
- // pageNum := 0
- // err := client.DescribeLoadBalancersPages(params,
- // func(page *DescribeLoadBalancersOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ELBV2) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool) error {
- return c.DescribeLoadBalancersPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeLoadBalancersPagesWithContext same as DescribeLoadBalancersPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeLoadBalancersPagesWithContext(ctx aws.Context, input *DescribeLoadBalancersInput, fn func(*DescribeLoadBalancersOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeLoadBalancersInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeLoadBalancersRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeLoadBalancersOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeRules = "DescribeRules"
- // DescribeRulesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeRules operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeRules for more information on using the DescribeRules
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeRulesRequest method.
- // req, resp := client.DescribeRulesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules
- func (c *ELBV2) DescribeRulesRequest(input *DescribeRulesInput) (req *request.Request, output *DescribeRulesOutput) {
- op := &request.Operation{
- Name: opDescribeRules,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeRulesInput{}
- }
- output = &DescribeRulesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeRules API operation for Elastic Load Balancing.
- //
- // Describes the specified rules or the rules for the specified listener. You
- // must specify either a listener or one or more rules.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeRules for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeRuleNotFoundException "RuleNotFound"
- // The specified rule does not exist.
- //
- // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
- // The specified protocol is not supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeRules
- func (c *ELBV2) DescribeRules(input *DescribeRulesInput) (*DescribeRulesOutput, error) {
- req, out := c.DescribeRulesRequest(input)
- return out, req.Send()
- }
- // DescribeRulesWithContext is the same as DescribeRules with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeRules for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeRulesWithContext(ctx aws.Context, input *DescribeRulesInput, opts ...request.Option) (*DescribeRulesOutput, error) {
- req, out := c.DescribeRulesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeSSLPolicies = "DescribeSSLPolicies"
- // DescribeSSLPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSSLPolicies operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeSSLPolicies for more information on using the DescribeSSLPolicies
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeSSLPoliciesRequest method.
- // req, resp := client.DescribeSSLPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies
- func (c *ELBV2) DescribeSSLPoliciesRequest(input *DescribeSSLPoliciesInput) (req *request.Request, output *DescribeSSLPoliciesOutput) {
- op := &request.Operation{
- Name: opDescribeSSLPolicies,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSSLPoliciesInput{}
- }
- output = &DescribeSSLPoliciesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeSSLPolicies API operation for Elastic Load Balancing.
- //
- // Describes the specified policies or all policies used for SSL negotiation.
- //
- // For more information, see Security Policies (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies)
- // in the Application Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeSSLPolicies for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound"
- // The specified SSL policy does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeSSLPolicies
- func (c *ELBV2) DescribeSSLPolicies(input *DescribeSSLPoliciesInput) (*DescribeSSLPoliciesOutput, error) {
- req, out := c.DescribeSSLPoliciesRequest(input)
- return out, req.Send()
- }
- // DescribeSSLPoliciesWithContext is the same as DescribeSSLPolicies with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeSSLPolicies for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeSSLPoliciesWithContext(ctx aws.Context, input *DescribeSSLPoliciesInput, opts ...request.Option) (*DescribeSSLPoliciesOutput, error) {
- req, out := c.DescribeSSLPoliciesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTags = "DescribeTags"
- // DescribeTagsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTags for more information on using the DescribeTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTagsRequest method.
- // req, resp := client.DescribeTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags
- func (c *ELBV2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
- op := &request.Operation{
- Name: opDescribeTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTagsInput{}
- }
- output = &DescribeTagsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTags API operation for Elastic Load Balancing.
- //
- // Describes the tags for the specified resources. You can describe the tags
- // for one or more Application Load Balancers, Network Load Balancers, and target
- // groups.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeRuleNotFoundException "RuleNotFound"
- // The specified rule does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTags
- func (c *ELBV2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
- req, out := c.DescribeTagsRequest(input)
- return out, req.Send()
- }
- // DescribeTagsWithContext is the same as DescribeTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
- req, out := c.DescribeTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTargetGroupAttributes = "DescribeTargetGroupAttributes"
- // DescribeTargetGroupAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTargetGroupAttributes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTargetGroupAttributes for more information on using the DescribeTargetGroupAttributes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTargetGroupAttributesRequest method.
- // req, resp := client.DescribeTargetGroupAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes
- func (c *ELBV2) DescribeTargetGroupAttributesRequest(input *DescribeTargetGroupAttributesInput) (req *request.Request, output *DescribeTargetGroupAttributesOutput) {
- op := &request.Operation{
- Name: opDescribeTargetGroupAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTargetGroupAttributesInput{}
- }
- output = &DescribeTargetGroupAttributesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTargetGroupAttributes API operation for Elastic Load Balancing.
- //
- // Describes the attributes for the specified target group.
- //
- // For more information, see Target Group Attributes (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#target-group-attributes)
- // in the Application Load Balancers Guide or Target Group Attributes (http://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html#target-group-attributes)
- // in the Network Load Balancers Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeTargetGroupAttributes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroupAttributes
- func (c *ELBV2) DescribeTargetGroupAttributes(input *DescribeTargetGroupAttributesInput) (*DescribeTargetGroupAttributesOutput, error) {
- req, out := c.DescribeTargetGroupAttributesRequest(input)
- return out, req.Send()
- }
- // DescribeTargetGroupAttributesWithContext is the same as DescribeTargetGroupAttributes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTargetGroupAttributes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeTargetGroupAttributesWithContext(ctx aws.Context, input *DescribeTargetGroupAttributesInput, opts ...request.Option) (*DescribeTargetGroupAttributesOutput, error) {
- req, out := c.DescribeTargetGroupAttributesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTargetGroups = "DescribeTargetGroups"
- // DescribeTargetGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTargetGroups operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTargetGroups for more information on using the DescribeTargetGroups
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTargetGroupsRequest method.
- // req, resp := client.DescribeTargetGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups
- func (c *ELBV2) DescribeTargetGroupsRequest(input *DescribeTargetGroupsInput) (req *request.Request, output *DescribeTargetGroupsOutput) {
- op := &request.Operation{
- Name: opDescribeTargetGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"NextMarker"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeTargetGroupsInput{}
- }
- output = &DescribeTargetGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTargetGroups API operation for Elastic Load Balancing.
- //
- // Describes the specified target groups or all of your target groups. By default,
- // all target groups are described. Alternatively, you can specify one of the
- // following to filter the results: the ARN of the load balancer, the names
- // of one or more target groups, or the ARNs of one or more target groups.
- //
- // To describe the targets for a target group, use DescribeTargetHealth. To
- // describe the attributes of a target group, use DescribeTargetGroupAttributes.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeTargetGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetGroups
- func (c *ELBV2) DescribeTargetGroups(input *DescribeTargetGroupsInput) (*DescribeTargetGroupsOutput, error) {
- req, out := c.DescribeTargetGroupsRequest(input)
- return out, req.Send()
- }
- // DescribeTargetGroupsWithContext is the same as DescribeTargetGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTargetGroups for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeTargetGroupsWithContext(ctx aws.Context, input *DescribeTargetGroupsInput, opts ...request.Option) (*DescribeTargetGroupsOutput, error) {
- req, out := c.DescribeTargetGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeTargetGroupsPages iterates over the pages of a DescribeTargetGroups operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeTargetGroups method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeTargetGroups operation.
- // pageNum := 0
- // err := client.DescribeTargetGroupsPages(params,
- // func(page *DescribeTargetGroupsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ELBV2) DescribeTargetGroupsPages(input *DescribeTargetGroupsInput, fn func(*DescribeTargetGroupsOutput, bool) bool) error {
- return c.DescribeTargetGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeTargetGroupsPagesWithContext same as DescribeTargetGroupsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeTargetGroupsPagesWithContext(ctx aws.Context, input *DescribeTargetGroupsInput, fn func(*DescribeTargetGroupsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeTargetGroupsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeTargetGroupsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeTargetGroupsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeTargetHealth = "DescribeTargetHealth"
- // DescribeTargetHealthRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTargetHealth operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTargetHealth for more information on using the DescribeTargetHealth
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTargetHealthRequest method.
- // req, resp := client.DescribeTargetHealthRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth
- func (c *ELBV2) DescribeTargetHealthRequest(input *DescribeTargetHealthInput) (req *request.Request, output *DescribeTargetHealthOutput) {
- op := &request.Operation{
- Name: opDescribeTargetHealth,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTargetHealthInput{}
- }
- output = &DescribeTargetHealthOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTargetHealth API operation for Elastic Load Balancing.
- //
- // Describes the health of the specified targets or all of your targets.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation DescribeTargetHealth for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidTargetException "InvalidTarget"
- // The specified target does not exist, is not in the same VPC as the target
- // group, or has an unsupported instance type.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeHealthUnavailableException "HealthUnavailable"
- // The health of the specified targets could not be retrieved due to an internal
- // error.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeTargetHealth
- func (c *ELBV2) DescribeTargetHealth(input *DescribeTargetHealthInput) (*DescribeTargetHealthOutput, error) {
- req, out := c.DescribeTargetHealthRequest(input)
- return out, req.Send()
- }
- // DescribeTargetHealthWithContext is the same as DescribeTargetHealth with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTargetHealth for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) DescribeTargetHealthWithContext(ctx aws.Context, input *DescribeTargetHealthInput, opts ...request.Option) (*DescribeTargetHealthOutput, error) {
- req, out := c.DescribeTargetHealthRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyListener = "ModifyListener"
- // ModifyListenerRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyListener operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyListener for more information on using the ModifyListener
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyListenerRequest method.
- // req, resp := client.ModifyListenerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener
- func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request.Request, output *ModifyListenerOutput) {
- op := &request.Operation{
- Name: opModifyListener,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyListenerInput{}
- }
- output = &ModifyListenerOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyListener API operation for Elastic Load Balancing.
- //
- // Modifies the specified properties of the specified listener.
- //
- // Any properties that you do not specify retain their current values. However,
- // changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the
- // security policy and server certificate properties. If you change the protocol
- // from HTTP to HTTPS, or from TCP to TLS, you must add the security policy
- // and server certificate properties.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation ModifyListener for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeDuplicateListenerException "DuplicateListener"
- // A listener with the specified port already exists.
- //
- // * ErrCodeTooManyListenersException "TooManyListeners"
- // You've reached the limit on the number of listeners per load balancer.
- //
- // * ErrCodeTooManyCertificatesException "TooManyCertificates"
- // You've reached the limit on the number of certificates per load balancer.
- //
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit"
- // You've reached the limit on the number of load balancers per target group.
- //
- // * ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
- // The specified configuration is not valid with this protocol.
- //
- // * ErrCodeSSLPolicyNotFoundException "SSLPolicyNotFound"
- // The specified SSL policy does not exist.
- //
- // * ErrCodeCertificateNotFoundException "CertificateNotFound"
- // The specified certificate does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
- // The specified protocol is not supported.
- //
- // * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId"
- // You've reached the limit on the number of times a target can be registered
- // with a load balancer.
- //
- // * ErrCodeTooManyTargetsException "TooManyTargets"
- // You've reached the limit on the number of targets.
- //
- // * ErrCodeTooManyActionsException "TooManyActions"
- // You've reached the limit on the number of actions per rule.
- //
- // * ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
- // The requested action is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyListener
- func (c *ELBV2) ModifyListener(input *ModifyListenerInput) (*ModifyListenerOutput, error) {
- req, out := c.ModifyListenerRequest(input)
- return out, req.Send()
- }
- // ModifyListenerWithContext is the same as ModifyListener with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyListener for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) ModifyListenerWithContext(ctx aws.Context, input *ModifyListenerInput, opts ...request.Option) (*ModifyListenerOutput, error) {
- req, out := c.ModifyListenerRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
- // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyLoadBalancerAttributes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyLoadBalancerAttributes for more information on using the ModifyLoadBalancerAttributes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyLoadBalancerAttributesRequest method.
- // req, resp := client.ModifyLoadBalancerAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes
- func (c *ELBV2) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
- op := &request.Operation{
- Name: opModifyLoadBalancerAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyLoadBalancerAttributesInput{}
- }
- output = &ModifyLoadBalancerAttributesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.
- //
- // Modifies the specified attributes of the specified Application Load Balancer
- // or Network Load Balancer.
- //
- // If any of the specified attributes can't be modified as requested, the call
- // fails. Any existing attributes that you do not modify retain their current
- // values.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation ModifyLoadBalancerAttributes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyLoadBalancerAttributes
- func (c *ELBV2) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
- req, out := c.ModifyLoadBalancerAttributesRequest(input)
- return out, req.Send()
- }
- // ModifyLoadBalancerAttributesWithContext is the same as ModifyLoadBalancerAttributes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyLoadBalancerAttributes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input *ModifyLoadBalancerAttributesInput, opts ...request.Option) (*ModifyLoadBalancerAttributesOutput, error) {
- req, out := c.ModifyLoadBalancerAttributesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyRule = "ModifyRule"
- // ModifyRuleRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyRule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyRule for more information on using the ModifyRule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyRuleRequest method.
- // req, resp := client.ModifyRuleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule
- func (c *ELBV2) ModifyRuleRequest(input *ModifyRuleInput) (req *request.Request, output *ModifyRuleOutput) {
- op := &request.Operation{
- Name: opModifyRule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyRuleInput{}
- }
- output = &ModifyRuleOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyRule API operation for Elastic Load Balancing.
- //
- // Modifies the specified rule.
- //
- // Any existing properties that you do not modify retain their current values.
- //
- // To modify the actions for the default rule, use ModifyListener.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation ModifyRule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTargetGroupAssociationLimitException "TargetGroupAssociationLimit"
- // You've reached the limit on the number of load balancers per target group.
- //
- // * ErrCodeIncompatibleProtocolsException "IncompatibleProtocols"
- // The specified configuration is not valid with this protocol.
- //
- // * ErrCodeRuleNotFoundException "RuleNotFound"
- // The specified rule does not exist.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
- // This operation is not allowed.
- //
- // * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId"
- // You've reached the limit on the number of times a target can be registered
- // with a load balancer.
- //
- // * ErrCodeTooManyTargetsException "TooManyTargets"
- // You've reached the limit on the number of targets.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
- // The specified protocol is not supported.
- //
- // * ErrCodeTooManyActionsException "TooManyActions"
- // You've reached the limit on the number of actions per rule.
- //
- // * ErrCodeInvalidLoadBalancerActionException "InvalidLoadBalancerAction"
- // The requested action is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyRule
- func (c *ELBV2) ModifyRule(input *ModifyRuleInput) (*ModifyRuleOutput, error) {
- req, out := c.ModifyRuleRequest(input)
- return out, req.Send()
- }
- // ModifyRuleWithContext is the same as ModifyRule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyRule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) ModifyRuleWithContext(ctx aws.Context, input *ModifyRuleInput, opts ...request.Option) (*ModifyRuleOutput, error) {
- req, out := c.ModifyRuleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyTargetGroup = "ModifyTargetGroup"
- // ModifyTargetGroupRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyTargetGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyTargetGroup for more information on using the ModifyTargetGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyTargetGroupRequest method.
- // req, resp := client.ModifyTargetGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup
- func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *request.Request, output *ModifyTargetGroupOutput) {
- op := &request.Operation{
- Name: opModifyTargetGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyTargetGroupInput{}
- }
- output = &ModifyTargetGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyTargetGroup API operation for Elastic Load Balancing.
- //
- // Modifies the health checks used when evaluating the health state of the targets
- // in the specified target group.
- //
- // To monitor the health of the targets, use DescribeTargetHealth.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation ModifyTargetGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroup
- func (c *ELBV2) ModifyTargetGroup(input *ModifyTargetGroupInput) (*ModifyTargetGroupOutput, error) {
- req, out := c.ModifyTargetGroupRequest(input)
- return out, req.Send()
- }
- // ModifyTargetGroupWithContext is the same as ModifyTargetGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyTargetGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) ModifyTargetGroupWithContext(ctx aws.Context, input *ModifyTargetGroupInput, opts ...request.Option) (*ModifyTargetGroupOutput, error) {
- req, out := c.ModifyTargetGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyTargetGroupAttributes = "ModifyTargetGroupAttributes"
- // ModifyTargetGroupAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyTargetGroupAttributes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyTargetGroupAttributes for more information on using the ModifyTargetGroupAttributes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyTargetGroupAttributesRequest method.
- // req, resp := client.ModifyTargetGroupAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes
- func (c *ELBV2) ModifyTargetGroupAttributesRequest(input *ModifyTargetGroupAttributesInput) (req *request.Request, output *ModifyTargetGroupAttributesOutput) {
- op := &request.Operation{
- Name: opModifyTargetGroupAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyTargetGroupAttributesInput{}
- }
- output = &ModifyTargetGroupAttributesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyTargetGroupAttributes API operation for Elastic Load Balancing.
- //
- // Modifies the specified attributes of the specified target group.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation ModifyTargetGroupAttributes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyTargetGroupAttributes
- func (c *ELBV2) ModifyTargetGroupAttributes(input *ModifyTargetGroupAttributesInput) (*ModifyTargetGroupAttributesOutput, error) {
- req, out := c.ModifyTargetGroupAttributesRequest(input)
- return out, req.Send()
- }
- // ModifyTargetGroupAttributesWithContext is the same as ModifyTargetGroupAttributes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyTargetGroupAttributes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) ModifyTargetGroupAttributesWithContext(ctx aws.Context, input *ModifyTargetGroupAttributesInput, opts ...request.Option) (*ModifyTargetGroupAttributesOutput, error) {
- req, out := c.ModifyTargetGroupAttributesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRegisterTargets = "RegisterTargets"
- // RegisterTargetsRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterTargets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RegisterTargets for more information on using the RegisterTargets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RegisterTargetsRequest method.
- // req, resp := client.RegisterTargetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets
- func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *request.Request, output *RegisterTargetsOutput) {
- op := &request.Operation{
- Name: opRegisterTargets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RegisterTargetsInput{}
- }
- output = &RegisterTargetsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RegisterTargets API operation for Elastic Load Balancing.
- //
- // Registers the specified targets with the specified target group.
- //
- // If the target is an EC2 instance, it must be in the running state when you
- // register it.
- //
- // By default, the load balancer routes requests to registered targets using
- // the protocol and port for the target group. Alternatively, you can override
- // the port for a target when you register it. You can register each EC2 instance
- // or IP address with the same target group multiple times using different ports.
- //
- // With a Network Load Balancer, you cannot register instances by instance ID
- // if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1,
- // G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these
- // types by IP address.
- //
- // To remove a target from a target group, use DeregisterTargets.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation RegisterTargets for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeTooManyTargetsException "TooManyTargets"
- // You've reached the limit on the number of targets.
- //
- // * ErrCodeInvalidTargetException "InvalidTarget"
- // The specified target does not exist, is not in the same VPC as the target
- // group, or has an unsupported instance type.
- //
- // * ErrCodeTooManyRegistrationsForTargetIdException "TooManyRegistrationsForTargetId"
- // You've reached the limit on the number of times a target can be registered
- // with a load balancer.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RegisterTargets
- func (c *ELBV2) RegisterTargets(input *RegisterTargetsInput) (*RegisterTargetsOutput, error) {
- req, out := c.RegisterTargetsRequest(input)
- return out, req.Send()
- }
- // RegisterTargetsWithContext is the same as RegisterTargets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RegisterTargets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) RegisterTargetsWithContext(ctx aws.Context, input *RegisterTargetsInput, opts ...request.Option) (*RegisterTargetsOutput, error) {
- req, out := c.RegisterTargetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRemoveListenerCertificates = "RemoveListenerCertificates"
- // RemoveListenerCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveListenerCertificates operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RemoveListenerCertificates for more information on using the RemoveListenerCertificates
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RemoveListenerCertificatesRequest method.
- // req, resp := client.RemoveListenerCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveListenerCertificates
- func (c *ELBV2) RemoveListenerCertificatesRequest(input *RemoveListenerCertificatesInput) (req *request.Request, output *RemoveListenerCertificatesOutput) {
- op := &request.Operation{
- Name: opRemoveListenerCertificates,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveListenerCertificatesInput{}
- }
- output = &RemoveListenerCertificatesOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RemoveListenerCertificates API operation for Elastic Load Balancing.
- //
- // Removes the specified certificate from the specified HTTPS listener.
- //
- // You can't remove the default certificate for a listener. To replace the default
- // certificate, call ModifyListener.
- //
- // To list the certificates for your listener, use DescribeListenerCertificates.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation RemoveListenerCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveListenerCertificates
- func (c *ELBV2) RemoveListenerCertificates(input *RemoveListenerCertificatesInput) (*RemoveListenerCertificatesOutput, error) {
- req, out := c.RemoveListenerCertificatesRequest(input)
- return out, req.Send()
- }
- // RemoveListenerCertificatesWithContext is the same as RemoveListenerCertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RemoveListenerCertificates for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) RemoveListenerCertificatesWithContext(ctx aws.Context, input *RemoveListenerCertificatesInput, opts ...request.Option) (*RemoveListenerCertificatesOutput, error) {
- req, out := c.RemoveListenerCertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRemoveTags = "RemoveTags"
- // RemoveTagsRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RemoveTags for more information on using the RemoveTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RemoveTagsRequest method.
- // req, resp := client.RemoveTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags
- func (c *ELBV2) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
- op := &request.Operation{
- Name: opRemoveTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsInput{}
- }
- output = &RemoveTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RemoveTags API operation for Elastic Load Balancing.
- //
- // Removes the specified tags from the specified Elastic Load Balancing resource.
- //
- // To list the current tags for your resources, use DescribeTags.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation RemoveTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeTargetGroupNotFoundException "TargetGroupNotFound"
- // The specified target group does not exist.
- //
- // * ErrCodeListenerNotFoundException "ListenerNotFound"
- // The specified listener does not exist.
- //
- // * ErrCodeRuleNotFoundException "RuleNotFound"
- // The specified rule does not exist.
- //
- // * ErrCodeTooManyTagsException "TooManyTags"
- // You've reached the limit on the number of tags per load balancer.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/RemoveTags
- func (c *ELBV2) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
- req, out := c.RemoveTagsRequest(input)
- return out, req.Send()
- }
- // RemoveTagsWithContext is the same as RemoveTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RemoveTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error) {
- req, out := c.RemoveTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetIpAddressType = "SetIpAddressType"
- // SetIpAddressTypeRequest generates a "aws/request.Request" representing the
- // client's request for the SetIpAddressType operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SetIpAddressType for more information on using the SetIpAddressType
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SetIpAddressTypeRequest method.
- // req, resp := client.SetIpAddressTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressType
- func (c *ELBV2) SetIpAddressTypeRequest(input *SetIpAddressTypeInput) (req *request.Request, output *SetIpAddressTypeOutput) {
- op := &request.Operation{
- Name: opSetIpAddressType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetIpAddressTypeInput{}
- }
- output = &SetIpAddressTypeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SetIpAddressType API operation for Elastic Load Balancing.
- //
- // Sets the type of IP addresses used by the subnets of the specified Application
- // Load Balancer or Network Load Balancer.
- //
- // Network Load Balancers must use ipv4.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation SetIpAddressType for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeInvalidSubnetException "InvalidSubnet"
- // The specified subnet is out of available addresses.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetIpAddressType
- func (c *ELBV2) SetIpAddressType(input *SetIpAddressTypeInput) (*SetIpAddressTypeOutput, error) {
- req, out := c.SetIpAddressTypeRequest(input)
- return out, req.Send()
- }
- // SetIpAddressTypeWithContext is the same as SetIpAddressType with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetIpAddressType for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) SetIpAddressTypeWithContext(ctx aws.Context, input *SetIpAddressTypeInput, opts ...request.Option) (*SetIpAddressTypeOutput, error) {
- req, out := c.SetIpAddressTypeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetRulePriorities = "SetRulePriorities"
- // SetRulePrioritiesRequest generates a "aws/request.Request" representing the
- // client's request for the SetRulePriorities operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SetRulePriorities for more information on using the SetRulePriorities
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SetRulePrioritiesRequest method.
- // req, resp := client.SetRulePrioritiesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities
- func (c *ELBV2) SetRulePrioritiesRequest(input *SetRulePrioritiesInput) (req *request.Request, output *SetRulePrioritiesOutput) {
- op := &request.Operation{
- Name: opSetRulePriorities,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetRulePrioritiesInput{}
- }
- output = &SetRulePrioritiesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SetRulePriorities API operation for Elastic Load Balancing.
- //
- // Sets the priorities of the specified rules.
- //
- // You can reorder the rules as long as there are no priority conflicts in the
- // new order. Any existing rules that you do not specify retain their current
- // priority.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation SetRulePriorities for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeRuleNotFoundException "RuleNotFound"
- // The specified rule does not exist.
- //
- // * ErrCodePriorityInUseException "PriorityInUse"
- // The specified priority is in use.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermitted"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetRulePriorities
- func (c *ELBV2) SetRulePriorities(input *SetRulePrioritiesInput) (*SetRulePrioritiesOutput, error) {
- req, out := c.SetRulePrioritiesRequest(input)
- return out, req.Send()
- }
- // SetRulePrioritiesWithContext is the same as SetRulePriorities with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetRulePriorities for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) SetRulePrioritiesWithContext(ctx aws.Context, input *SetRulePrioritiesInput, opts ...request.Option) (*SetRulePrioritiesOutput, error) {
- req, out := c.SetRulePrioritiesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetSecurityGroups = "SetSecurityGroups"
- // SetSecurityGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the SetSecurityGroups operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SetSecurityGroups for more information on using the SetSecurityGroups
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SetSecurityGroupsRequest method.
- // req, resp := client.SetSecurityGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups
- func (c *ELBV2) SetSecurityGroupsRequest(input *SetSecurityGroupsInput) (req *request.Request, output *SetSecurityGroupsOutput) {
- op := &request.Operation{
- Name: opSetSecurityGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetSecurityGroupsInput{}
- }
- output = &SetSecurityGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SetSecurityGroups API operation for Elastic Load Balancing.
- //
- // Associates the specified security groups with the specified Application Load
- // Balancer. The specified security groups override the previously associated
- // security groups.
- //
- // You can't specify a security group for a Network Load Balancer.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation SetSecurityGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeInvalidSecurityGroupException "InvalidSecurityGroup"
- // The specified security group does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSecurityGroups
- func (c *ELBV2) SetSecurityGroups(input *SetSecurityGroupsInput) (*SetSecurityGroupsOutput, error) {
- req, out := c.SetSecurityGroupsRequest(input)
- return out, req.Send()
- }
- // SetSecurityGroupsWithContext is the same as SetSecurityGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetSecurityGroups for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) SetSecurityGroupsWithContext(ctx aws.Context, input *SetSecurityGroupsInput, opts ...request.Option) (*SetSecurityGroupsOutput, error) {
- req, out := c.SetSecurityGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetSubnets = "SetSubnets"
- // SetSubnetsRequest generates a "aws/request.Request" representing the
- // client's request for the SetSubnets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SetSubnets for more information on using the SetSubnets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SetSubnetsRequest method.
- // req, resp := client.SetSubnetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets
- func (c *ELBV2) SetSubnetsRequest(input *SetSubnetsInput) (req *request.Request, output *SetSubnetsOutput) {
- op := &request.Operation{
- Name: opSetSubnets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetSubnetsInput{}
- }
- output = &SetSubnetsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // SetSubnets API operation for Elastic Load Balancing.
- //
- // Enables the Availability Zone for the specified public subnets for the specified
- // Application Load Balancer. The specified subnets replace the previously enabled
- // subnets.
- //
- // You can't change the subnets for a Network Load Balancer.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Elastic Load Balancing's
- // API operation SetSubnets for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound"
- // The specified load balancer does not exist.
- //
- // * ErrCodeInvalidConfigurationRequestException "InvalidConfigurationRequest"
- // The requested configuration is not valid.
- //
- // * ErrCodeSubnetNotFoundException "SubnetNotFound"
- // The specified subnet does not exist.
- //
- // * ErrCodeInvalidSubnetException "InvalidSubnet"
- // The specified subnet is out of available addresses.
- //
- // * ErrCodeAllocationIdNotFoundException "AllocationIdNotFound"
- // The specified allocation ID does not exist.
- //
- // * ErrCodeAvailabilityZoneNotSupportedException "AvailabilityZoneNotSupported"
- // The specified Availability Zone is not supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/SetSubnets
- func (c *ELBV2) SetSubnets(input *SetSubnetsInput) (*SetSubnetsOutput, error) {
- req, out := c.SetSubnetsRequest(input)
- return out, req.Send()
- }
- // SetSubnetsWithContext is the same as SetSubnets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetSubnets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *ELBV2) SetSubnetsWithContext(ctx aws.Context, input *SetSubnetsInput, opts ...request.Option) (*SetSubnetsOutput, error) {
- req, out := c.SetSubnetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Information about an action.
- type Action struct {
- _ struct{} `type:"structure"`
- // [HTTPS listeners] Information for using Amazon Cognito to authenticate users.
- // Specify only when Type is authenticate-cognito.
- AuthenticateCognitoConfig *AuthenticateCognitoActionConfig `type:"structure"`
- // [HTTPS listeners] Information about an identity provider that is compliant
- // with OpenID Connect (OIDC). Specify only when Type is authenticate-oidc.
- AuthenticateOidcConfig *AuthenticateOidcActionConfig `type:"structure"`
- // [Application Load Balancer] Information for creating an action that returns
- // a custom HTTP response. Specify only when Type is fixed-response.
- FixedResponseConfig *FixedResponseActionConfig `type:"structure"`
- // The order for the action. This value is required for rules with multiple
- // actions. The action with the lowest value for order is performed first. The
- // final action to be performed must be a forward or a fixed-response action.
- Order *int64 `min:"1" type:"integer"`
- // [Application Load Balancer] Information for creating a redirect action. Specify
- // only when Type is redirect.
- RedirectConfig *RedirectActionConfig `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group. Specify only when Type
- // is forward.
- TargetGroupArn *string `type:"string"`
- // The type of action. Each rule must include exactly one of the following types
- // of actions: forward, fixed-response, or redirect.
- //
- // Type is a required field
- Type *string `type:"string" required:"true" enum:"ActionTypeEnum"`
- }
- // String returns the string representation
- func (s Action) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Action) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Action) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Action"}
- if s.Order != nil && *s.Order < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Order", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.AuthenticateCognitoConfig != nil {
- if err := s.AuthenticateCognitoConfig.Validate(); err != nil {
- invalidParams.AddNested("AuthenticateCognitoConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.AuthenticateOidcConfig != nil {
- if err := s.AuthenticateOidcConfig.Validate(); err != nil {
- invalidParams.AddNested("AuthenticateOidcConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.FixedResponseConfig != nil {
- if err := s.FixedResponseConfig.Validate(); err != nil {
- invalidParams.AddNested("FixedResponseConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.RedirectConfig != nil {
- if err := s.RedirectConfig.Validate(); err != nil {
- invalidParams.AddNested("RedirectConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticateCognitoConfig sets the AuthenticateCognitoConfig field's value.
- func (s *Action) SetAuthenticateCognitoConfig(v *AuthenticateCognitoActionConfig) *Action {
- s.AuthenticateCognitoConfig = v
- return s
- }
- // SetAuthenticateOidcConfig sets the AuthenticateOidcConfig field's value.
- func (s *Action) SetAuthenticateOidcConfig(v *AuthenticateOidcActionConfig) *Action {
- s.AuthenticateOidcConfig = v
- return s
- }
- // SetFixedResponseConfig sets the FixedResponseConfig field's value.
- func (s *Action) SetFixedResponseConfig(v *FixedResponseActionConfig) *Action {
- s.FixedResponseConfig = v
- return s
- }
- // SetOrder sets the Order field's value.
- func (s *Action) SetOrder(v int64) *Action {
- s.Order = &v
- return s
- }
- // SetRedirectConfig sets the RedirectConfig field's value.
- func (s *Action) SetRedirectConfig(v *RedirectActionConfig) *Action {
- s.RedirectConfig = v
- return s
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *Action) SetTargetGroupArn(v string) *Action {
- s.TargetGroupArn = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *Action) SetType(v string) *Action {
- s.Type = &v
- return s
- }
- type AddListenerCertificatesInput struct {
- _ struct{} `type:"structure"`
- // The certificate to add. You can specify one certificate per call. Set CertificateArn
- // to the certificate ARN but do not set IsDefault.
- //
- // Certificates is a required field
- Certificates []*Certificate `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the listener.
- //
- // ListenerArn is a required field
- ListenerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AddListenerCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddListenerCertificatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddListenerCertificatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddListenerCertificatesInput"}
- if s.Certificates == nil {
- invalidParams.Add(request.NewErrParamRequired("Certificates"))
- }
- if s.ListenerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificates sets the Certificates field's value.
- func (s *AddListenerCertificatesInput) SetCertificates(v []*Certificate) *AddListenerCertificatesInput {
- s.Certificates = v
- return s
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *AddListenerCertificatesInput) SetListenerArn(v string) *AddListenerCertificatesInput {
- s.ListenerArn = &v
- return s
- }
- type AddListenerCertificatesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the certificates.
- Certificates []*Certificate `type:"list"`
- }
- // String returns the string representation
- func (s AddListenerCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddListenerCertificatesOutput) GoString() string {
- return s.String()
- }
- // SetCertificates sets the Certificates field's value.
- func (s *AddListenerCertificatesOutput) SetCertificates(v []*Certificate) *AddListenerCertificatesOutput {
- s.Certificates = v
- return s
- }
- type AddTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- //
- // ResourceArns is a required field
- ResourceArns []*string `type:"list" required:"true"`
- // The tags. Each resource can have a maximum of 10 tags.
- //
- // Tags is a required field
- Tags []*Tag `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
- if s.ResourceArns == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *AddTagsInput) SetResourceArns(v []*string) *AddTagsInput {
- s.ResourceArns = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
- s.Tags = v
- return s
- }
- type AddTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsOutput) GoString() string {
- return s.String()
- }
- // Request parameters to use when integrating with Amazon Cognito to authenticate
- // users.
- type AuthenticateCognitoActionConfig struct {
- _ struct{} `type:"structure"`
- // The query parameters (up to 10) to include in the redirect request to the
- // authorization endpoint.
- AuthenticationRequestExtraParams map[string]*string `type:"map"`
- // The behavior if the user is not authenticated. The following are possible
- // values:
- //
- // * deny - Return an HTTP 401 Unauthorized error.
- //
- // * allow - Allow the request to be forwarded to the target.
- //
- // authenticate
- OnUnauthenticatedRequest *string `type:"string" enum:"AuthenticateCognitoActionConditionalBehaviorEnum"`
- // The set of user claims to be requested from the IdP. The default is openid.
- //
- // To verify which scope values your IdP supports and how to separate multiple
- // values, see the documentation for your IdP.
- Scope *string `type:"string"`
- // The name of the cookie used to maintain session information. The default
- // is AWSELBAuthSessionCookie.
- SessionCookieName *string `type:"string"`
- // The maximum duration of the authentication session, in seconds. The default
- // is 604800 seconds (7 days).
- SessionTimeout *int64 `type:"long"`
- // The Amazon Resource Name (ARN) of the Amazon Cognito user pool.
- //
- // UserPoolArn is a required field
- UserPoolArn *string `type:"string" required:"true"`
- // The ID of the Amazon Cognito user pool client.
- //
- // UserPoolClientId is a required field
- UserPoolClientId *string `type:"string" required:"true"`
- // The domain prefix or fully-qualified domain name of the Amazon Cognito user
- // pool.
- //
- // UserPoolDomain is a required field
- UserPoolDomain *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AuthenticateCognitoActionConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthenticateCognitoActionConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AuthenticateCognitoActionConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuthenticateCognitoActionConfig"}
- if s.UserPoolArn == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolArn"))
- }
- if s.UserPoolClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolClientId"))
- }
- if s.UserPoolDomain == nil {
- invalidParams.Add(request.NewErrParamRequired("UserPoolDomain"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationRequestExtraParams sets the AuthenticationRequestExtraParams field's value.
- func (s *AuthenticateCognitoActionConfig) SetAuthenticationRequestExtraParams(v map[string]*string) *AuthenticateCognitoActionConfig {
- s.AuthenticationRequestExtraParams = v
- return s
- }
- // SetOnUnauthenticatedRequest sets the OnUnauthenticatedRequest field's value.
- func (s *AuthenticateCognitoActionConfig) SetOnUnauthenticatedRequest(v string) *AuthenticateCognitoActionConfig {
- s.OnUnauthenticatedRequest = &v
- return s
- }
- // SetScope sets the Scope field's value.
- func (s *AuthenticateCognitoActionConfig) SetScope(v string) *AuthenticateCognitoActionConfig {
- s.Scope = &v
- return s
- }
- // SetSessionCookieName sets the SessionCookieName field's value.
- func (s *AuthenticateCognitoActionConfig) SetSessionCookieName(v string) *AuthenticateCognitoActionConfig {
- s.SessionCookieName = &v
- return s
- }
- // SetSessionTimeout sets the SessionTimeout field's value.
- func (s *AuthenticateCognitoActionConfig) SetSessionTimeout(v int64) *AuthenticateCognitoActionConfig {
- s.SessionTimeout = &v
- return s
- }
- // SetUserPoolArn sets the UserPoolArn field's value.
- func (s *AuthenticateCognitoActionConfig) SetUserPoolArn(v string) *AuthenticateCognitoActionConfig {
- s.UserPoolArn = &v
- return s
- }
- // SetUserPoolClientId sets the UserPoolClientId field's value.
- func (s *AuthenticateCognitoActionConfig) SetUserPoolClientId(v string) *AuthenticateCognitoActionConfig {
- s.UserPoolClientId = &v
- return s
- }
- // SetUserPoolDomain sets the UserPoolDomain field's value.
- func (s *AuthenticateCognitoActionConfig) SetUserPoolDomain(v string) *AuthenticateCognitoActionConfig {
- s.UserPoolDomain = &v
- return s
- }
- // Request parameters when using an identity provider (IdP) that is compliant
- // with OpenID Connect (OIDC) to authenticate users.
- type AuthenticateOidcActionConfig struct {
- _ struct{} `type:"structure"`
- // The query parameters (up to 10) to include in the redirect request to the
- // authorization endpoint.
- AuthenticationRequestExtraParams map[string]*string `type:"map"`
- // The authorization endpoint of the IdP. This must be a full URL, including
- // the HTTPS protocol, the domain, and the path.
- //
- // AuthorizationEndpoint is a required field
- AuthorizationEndpoint *string `type:"string" required:"true"`
- // The OAuth 2.0 client identifier.
- //
- // ClientId is a required field
- ClientId *string `type:"string" required:"true"`
- // The OAuth 2.0 client secret.
- //
- // ClientSecret is a required field
- ClientSecret *string `type:"string" required:"true"`
- // The OIDC issuer identifier of the IdP. This must be a full URL, including
- // the HTTPS protocol, the domain, and the path.
- //
- // Issuer is a required field
- Issuer *string `type:"string" required:"true"`
- // The behavior if the user is not authenticated. The following are possible
- // values:
- //
- // * deny - Return an HTTP 401 Unauthorized error.
- //
- // * allow - Allow the request to be forwarded to the target.
- //
- // authenticate
- OnUnauthenticatedRequest *string `type:"string" enum:"AuthenticateOidcActionConditionalBehaviorEnum"`
- // The set of user claims to be requested from the IdP. The default is openid.
- //
- // To verify which scope values your IdP supports and how to separate multiple
- // values, see the documentation for your IdP.
- Scope *string `type:"string"`
- // The name of the cookie used to maintain session information. The default
- // is AWSELBAuthSessionCookie.
- SessionCookieName *string `type:"string"`
- // The maximum duration of the authentication session, in seconds. The default
- // is 604800 seconds (7 days).
- SessionTimeout *int64 `type:"long"`
- // The token endpoint of the IdP. This must be a full URL, including the HTTPS
- // protocol, the domain, and the path.
- //
- // TokenEndpoint is a required field
- TokenEndpoint *string `type:"string" required:"true"`
- // The user info endpoint of the IdP. This must be a full URL, including the
- // HTTPS protocol, the domain, and the path.
- //
- // UserInfoEndpoint is a required field
- UserInfoEndpoint *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AuthenticateOidcActionConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthenticateOidcActionConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AuthenticateOidcActionConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuthenticateOidcActionConfig"}
- if s.AuthorizationEndpoint == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthorizationEndpoint"))
- }
- if s.ClientId == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientId"))
- }
- if s.ClientSecret == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
- }
- if s.Issuer == nil {
- invalidParams.Add(request.NewErrParamRequired("Issuer"))
- }
- if s.TokenEndpoint == nil {
- invalidParams.Add(request.NewErrParamRequired("TokenEndpoint"))
- }
- if s.UserInfoEndpoint == nil {
- invalidParams.Add(request.NewErrParamRequired("UserInfoEndpoint"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationRequestExtraParams sets the AuthenticationRequestExtraParams field's value.
- func (s *AuthenticateOidcActionConfig) SetAuthenticationRequestExtraParams(v map[string]*string) *AuthenticateOidcActionConfig {
- s.AuthenticationRequestExtraParams = v
- return s
- }
- // SetAuthorizationEndpoint sets the AuthorizationEndpoint field's value.
- func (s *AuthenticateOidcActionConfig) SetAuthorizationEndpoint(v string) *AuthenticateOidcActionConfig {
- s.AuthorizationEndpoint = &v
- return s
- }
- // SetClientId sets the ClientId field's value.
- func (s *AuthenticateOidcActionConfig) SetClientId(v string) *AuthenticateOidcActionConfig {
- s.ClientId = &v
- return s
- }
- // SetClientSecret sets the ClientSecret field's value.
- func (s *AuthenticateOidcActionConfig) SetClientSecret(v string) *AuthenticateOidcActionConfig {
- s.ClientSecret = &v
- return s
- }
- // SetIssuer sets the Issuer field's value.
- func (s *AuthenticateOidcActionConfig) SetIssuer(v string) *AuthenticateOidcActionConfig {
- s.Issuer = &v
- return s
- }
- // SetOnUnauthenticatedRequest sets the OnUnauthenticatedRequest field's value.
- func (s *AuthenticateOidcActionConfig) SetOnUnauthenticatedRequest(v string) *AuthenticateOidcActionConfig {
- s.OnUnauthenticatedRequest = &v
- return s
- }
- // SetScope sets the Scope field's value.
- func (s *AuthenticateOidcActionConfig) SetScope(v string) *AuthenticateOidcActionConfig {
- s.Scope = &v
- return s
- }
- // SetSessionCookieName sets the SessionCookieName field's value.
- func (s *AuthenticateOidcActionConfig) SetSessionCookieName(v string) *AuthenticateOidcActionConfig {
- s.SessionCookieName = &v
- return s
- }
- // SetSessionTimeout sets the SessionTimeout field's value.
- func (s *AuthenticateOidcActionConfig) SetSessionTimeout(v int64) *AuthenticateOidcActionConfig {
- s.SessionTimeout = &v
- return s
- }
- // SetTokenEndpoint sets the TokenEndpoint field's value.
- func (s *AuthenticateOidcActionConfig) SetTokenEndpoint(v string) *AuthenticateOidcActionConfig {
- s.TokenEndpoint = &v
- return s
- }
- // SetUserInfoEndpoint sets the UserInfoEndpoint field's value.
- func (s *AuthenticateOidcActionConfig) SetUserInfoEndpoint(v string) *AuthenticateOidcActionConfig {
- s.UserInfoEndpoint = &v
- return s
- }
- // Information about an Availability Zone.
- type AvailabilityZone struct {
- _ struct{} `type:"structure"`
- // [Network Load Balancers] The static IP address.
- LoadBalancerAddresses []*LoadBalancerAddress `type:"list"`
- // The ID of the subnet.
- SubnetId *string `type:"string"`
- // The name of the Availability Zone.
- ZoneName *string `type:"string"`
- }
- // String returns the string representation
- func (s AvailabilityZone) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AvailabilityZone) GoString() string {
- return s.String()
- }
- // SetLoadBalancerAddresses sets the LoadBalancerAddresses field's value.
- func (s *AvailabilityZone) SetLoadBalancerAddresses(v []*LoadBalancerAddress) *AvailabilityZone {
- s.LoadBalancerAddresses = v
- return s
- }
- // SetSubnetId sets the SubnetId field's value.
- func (s *AvailabilityZone) SetSubnetId(v string) *AvailabilityZone {
- s.SubnetId = &v
- return s
- }
- // SetZoneName sets the ZoneName field's value.
- func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
- s.ZoneName = &v
- return s
- }
- // Information about an SSL server certificate.
- type Certificate struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the certificate.
- CertificateArn *string `type:"string"`
- // Indicates whether the certificate is the default certificate. Do not set
- // IsDefault when specifying a certificate as an input parameter.
- IsDefault *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s Certificate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Certificate) GoString() string {
- return s.String()
- }
- // SetCertificateArn sets the CertificateArn field's value.
- func (s *Certificate) SetCertificateArn(v string) *Certificate {
- s.CertificateArn = &v
- return s
- }
- // SetIsDefault sets the IsDefault field's value.
- func (s *Certificate) SetIsDefault(v bool) *Certificate {
- s.IsDefault = &v
- return s
- }
- // Information about a cipher used in a policy.
- type Cipher struct {
- _ struct{} `type:"structure"`
- // The name of the cipher.
- Name *string `type:"string"`
- // The priority of the cipher.
- Priority *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s Cipher) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Cipher) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *Cipher) SetName(v string) *Cipher {
- s.Name = &v
- return s
- }
- // SetPriority sets the Priority field's value.
- func (s *Cipher) SetPriority(v int64) *Cipher {
- s.Priority = &v
- return s
- }
- type CreateListenerInput struct {
- _ struct{} `type:"structure"`
- // [HTTPS and TLS listeners] The default SSL server certificate. You must provide
- // exactly one certificate. Set CertificateArn to the certificate ARN but do
- // not set IsDefault.
- //
- // To create a certificate list, use AddListenerCertificates.
- Certificates []*Certificate `type:"list"`
- // The actions for the default rule. The rule must include one forward action
- // or one or more fixed-response actions.
- //
- // If the action type is forward, you specify a target group. The protocol of
- // the target group must be HTTP or HTTPS for an Application Load Balancer.
- // The protocol of the target group must be TCP or TLS for a Network Load Balancer.
- //
- // [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
- // users through an identity provider that is OpenID Connect (OIDC) compliant.
- //
- // [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
- // users through the user pools supported by Amazon Cognito.
- //
- // [Application Load Balancer] If the action type is redirect, you redirect
- // specified client requests from one URL to another.
- //
- // [Application Load Balancer] If the action type is fixed-response, you drop
- // specified client requests and return a custom HTTP response.
- //
- // DefaultActions is a required field
- DefaultActions []*Action `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- // The port on which the load balancer is listening.
- //
- // Port is a required field
- Port *int64 `min:"1" type:"integer" required:"true"`
- // The protocol for connections from clients to the load balancer. For Application
- // Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load
- // Balancers, the supported protocols are TCP and TLS.
- //
- // Protocol is a required field
- Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"`
- // [HTTPS and TLS listeners] The security policy that defines which ciphers
- // and protocols are supported. The default is the current predefined security
- // policy.
- SslPolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateListenerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateListenerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateListenerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateListenerInput"}
- if s.DefaultActions == nil {
- invalidParams.Add(request.NewErrParamRequired("DefaultActions"))
- }
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if s.Port == nil {
- invalidParams.Add(request.NewErrParamRequired("Port"))
- }
- if s.Port != nil && *s.Port < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Port", 1))
- }
- if s.Protocol == nil {
- invalidParams.Add(request.NewErrParamRequired("Protocol"))
- }
- if s.DefaultActions != nil {
- for i, v := range s.DefaultActions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DefaultActions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificates sets the Certificates field's value.
- func (s *CreateListenerInput) SetCertificates(v []*Certificate) *CreateListenerInput {
- s.Certificates = v
- return s
- }
- // SetDefaultActions sets the DefaultActions field's value.
- func (s *CreateListenerInput) SetDefaultActions(v []*Action) *CreateListenerInput {
- s.DefaultActions = v
- return s
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *CreateListenerInput) SetLoadBalancerArn(v string) *CreateListenerInput {
- s.LoadBalancerArn = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *CreateListenerInput) SetPort(v int64) *CreateListenerInput {
- s.Port = &v
- return s
- }
- // SetProtocol sets the Protocol field's value.
- func (s *CreateListenerInput) SetProtocol(v string) *CreateListenerInput {
- s.Protocol = &v
- return s
- }
- // SetSslPolicy sets the SslPolicy field's value.
- func (s *CreateListenerInput) SetSslPolicy(v string) *CreateListenerInput {
- s.SslPolicy = &v
- return s
- }
- type CreateListenerOutput struct {
- _ struct{} `type:"structure"`
- // Information about the listener.
- Listeners []*Listener `type:"list"`
- }
- // String returns the string representation
- func (s CreateListenerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateListenerOutput) GoString() string {
- return s.String()
- }
- // SetListeners sets the Listeners field's value.
- func (s *CreateListenerOutput) SetListeners(v []*Listener) *CreateListenerOutput {
- s.Listeners = v
- return s
- }
- type CreateLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // [Application Load Balancers] The type of IP addresses used by the subnets
- // for your load balancer. The possible values are ipv4 (for IPv4 addresses)
- // and dualstack (for IPv4 and IPv6 addresses). Internal load balancers must
- // use ipv4.
- IpAddressType *string `type:"string" enum:"IpAddressType"`
- // The name of the load balancer.
- //
- // This name must be unique per region per account, can have a maximum of 32
- // characters, must contain only alphanumeric characters or hyphens, must not
- // begin or end with a hyphen, and must not begin with "internal-".
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The nodes of an Internet-facing load balancer have public IP addresses. The
- // DNS name of an Internet-facing load balancer is publicly resolvable to the
- // public IP addresses of the nodes. Therefore, Internet-facing load balancers
- // can route requests from clients over the internet.
- //
- // The nodes of an internal load balancer have only private IP addresses. The
- // DNS name of an internal load balancer is publicly resolvable to the private
- // IP addresses of the nodes. Therefore, internal load balancers can only route
- // requests from clients with access to the VPC for the load balancer.
- //
- // The default is an Internet-facing load balancer.
- Scheme *string `type:"string" enum:"LoadBalancerSchemeEnum"`
- // [Application Load Balancers] The IDs of the security groups for the load
- // balancer.
- SecurityGroups []*string `type:"list"`
- // The IDs of the public subnets. You can specify only one subnet per Availability
- // Zone. You must specify either subnets or subnet mappings.
- //
- // [Application Load Balancers] You must specify subnets from at least two Availability
- // Zones. You cannot specify Elastic IP addresses for your subnets.
- //
- // [Network Load Balancers] You can specify subnets from one or more Availability
- // Zones. You can specify one Elastic IP address per subnet.
- SubnetMappings []*SubnetMapping `type:"list"`
- // The IDs of the public subnets. You can specify only one subnet per Availability
- // Zone. You must specify either subnets or subnet mappings.
- //
- // [Application Load Balancers] You must specify subnets from at least two Availability
- // Zones.
- //
- // [Network Load Balancers] You can specify subnets from one or more Availability
- // Zones.
- Subnets []*string `type:"list"`
- // One or more tags to assign to the load balancer.
- Tags []*Tag `min:"1" type:"list"`
- // The type of load balancer. The default is application.
- Type *string `type:"string" enum:"LoadBalancerTypeEnum"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIpAddressType sets the IpAddressType field's value.
- func (s *CreateLoadBalancerInput) SetIpAddressType(v string) *CreateLoadBalancerInput {
- s.IpAddressType = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateLoadBalancerInput) SetName(v string) *CreateLoadBalancerInput {
- s.Name = &v
- return s
- }
- // SetScheme sets the Scheme field's value.
- func (s *CreateLoadBalancerInput) SetScheme(v string) *CreateLoadBalancerInput {
- s.Scheme = &v
- return s
- }
- // SetSecurityGroups sets the SecurityGroups field's value.
- func (s *CreateLoadBalancerInput) SetSecurityGroups(v []*string) *CreateLoadBalancerInput {
- s.SecurityGroups = v
- return s
- }
- // SetSubnetMappings sets the SubnetMappings field's value.
- func (s *CreateLoadBalancerInput) SetSubnetMappings(v []*SubnetMapping) *CreateLoadBalancerInput {
- s.SubnetMappings = v
- return s
- }
- // SetSubnets sets the Subnets field's value.
- func (s *CreateLoadBalancerInput) SetSubnets(v []*string) *CreateLoadBalancerInput {
- s.Subnets = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput {
- s.Tags = v
- return s
- }
- // SetType sets the Type field's value.
- func (s *CreateLoadBalancerInput) SetType(v string) *CreateLoadBalancerInput {
- s.Type = &v
- return s
- }
- type CreateLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // Information about the load balancer.
- LoadBalancers []*LoadBalancer `type:"list"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // SetLoadBalancers sets the LoadBalancers field's value.
- func (s *CreateLoadBalancerOutput) SetLoadBalancers(v []*LoadBalancer) *CreateLoadBalancerOutput {
- s.LoadBalancers = v
- return s
- }
- type CreateRuleInput struct {
- _ struct{} `type:"structure"`
- // The actions. Each rule must include exactly one of the following types of
- // actions: forward, fixed-response, or redirect.
- //
- // If the action type is forward, you specify a target group. The protocol of
- // the target group must be HTTP or HTTPS for an Application Load Balancer.
- // The protocol of the target group must be TCP or TLS for a Network Load Balancer.
- //
- // [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
- // users through an identity provider that is OpenID Connect (OIDC) compliant.
- //
- // [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
- // users through the user pools supported by Amazon Cognito.
- //
- // [Application Load Balancer] If the action type is redirect, you redirect
- // specified client requests from one URL to another.
- //
- // [Application Load Balancer] If the action type is fixed-response, you drop
- // specified client requests and return a custom HTTP response.
- //
- // Actions is a required field
- Actions []*Action `type:"list" required:"true"`
- // The conditions. Each condition specifies a field name and a single value.
- //
- // If the field name is host-header, you can specify a single host name (for
- // example, my.example.com). A host name is case insensitive, can be up to 128
- // characters in length, and can contain any of the following characters. You
- // can include up to three wildcard characters.
- //
- // * A-Z, a-z, 0-9
- //
- // * - .
- //
- // * * (matches 0 or more characters)
- //
- // * ? (matches exactly 1 character)
- //
- // If the field name is path-pattern, you can specify a single path pattern.
- // A path pattern is case-sensitive, can be up to 128 characters in length,
- // and can contain any of the following characters. You can include up to three
- // wildcard characters.
- //
- // * A-Z, a-z, 0-9
- //
- // * _ - . $ / ~ " ' @ : +
- //
- // * & (using &)
- //
- // * * (matches 0 or more characters)
- //
- // * ? (matches exactly 1 character)
- //
- // Conditions is a required field
- Conditions []*RuleCondition `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the listener.
- //
- // ListenerArn is a required field
- ListenerArn *string `type:"string" required:"true"`
- // The rule priority. A listener can't have multiple rules with the same priority.
- //
- // Priority is a required field
- Priority *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s CreateRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateRuleInput"}
- if s.Actions == nil {
- invalidParams.Add(request.NewErrParamRequired("Actions"))
- }
- if s.Conditions == nil {
- invalidParams.Add(request.NewErrParamRequired("Conditions"))
- }
- if s.ListenerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
- }
- if s.Priority == nil {
- invalidParams.Add(request.NewErrParamRequired("Priority"))
- }
- if s.Priority != nil && *s.Priority < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Priority", 1))
- }
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActions sets the Actions field's value.
- func (s *CreateRuleInput) SetActions(v []*Action) *CreateRuleInput {
- s.Actions = v
- return s
- }
- // SetConditions sets the Conditions field's value.
- func (s *CreateRuleInput) SetConditions(v []*RuleCondition) *CreateRuleInput {
- s.Conditions = v
- return s
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *CreateRuleInput) SetListenerArn(v string) *CreateRuleInput {
- s.ListenerArn = &v
- return s
- }
- // SetPriority sets the Priority field's value.
- func (s *CreateRuleInput) SetPriority(v int64) *CreateRuleInput {
- s.Priority = &v
- return s
- }
- type CreateRuleOutput struct {
- _ struct{} `type:"structure"`
- // Information about the rule.
- Rules []*Rule `type:"list"`
- }
- // String returns the string representation
- func (s CreateRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateRuleOutput) GoString() string {
- return s.String()
- }
- // SetRules sets the Rules field's value.
- func (s *CreateRuleOutput) SetRules(v []*Rule) *CreateRuleOutput {
- s.Rules = v
- return s
- }
- type CreateTargetGroupInput struct {
- _ struct{} `type:"structure"`
- // Indicates whether health checks are enabled. If the target type is instance
- // or ip, the default is true. If the target type is lambda, the default is
- // false.
- HealthCheckEnabled *bool `type:"boolean"`
- // The approximate amount of time, in seconds, between health checks of an individual
- // target. For Application Load Balancers, the range is 5–300 seconds. For Network
- // Load Balancers, the supported values are 10 or 30 seconds. If the target
- // type is instance or ip, the default is 30 seconds. If the target type is
- // lambda, the default is 35 seconds.
- HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
- // [HTTP/HTTPS health checks] The ping path that is the destination on the targets
- // for health checks. The default is /.
- HealthCheckPath *string `min:"1" type:"string"`
- // The port the load balancer uses when performing health checks on targets.
- // The default is traffic-port, which is the port on which each target receives
- // traffic from the load balancer.
- HealthCheckPort *string `type:"string"`
- // The protocol the load balancer uses when performing health checks on targets.
- // For Application Load Balancers, the default is HTTP. For Network Load Balancers,
- // the default is TCP. The TCP protocol is supported for health checks only
- // if the protocol of the target group is TCP or TLS. The TLS protocol is not
- // supported for health checks.
- HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
- // The amount of time, in seconds, during which no response from a target means
- // a failed health check. For Application Load Balancers, the range is 2–120
- // seconds and the default is 5 seconds if the target type is instance or ip
- // and 30 seconds if the target type is lambda. For Network Load Balancers,
- // this is 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP
- // health checks.
- HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
- // The number of consecutive health checks successes required before considering
- // an unhealthy target healthy. For Application Load Balancers, the default
- // is 5. For Network Load Balancers, the default is 3.
- HealthyThresholdCount *int64 `min:"2" type:"integer"`
- // [HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful
- // response from a target.
- Matcher *Matcher `type:"structure"`
- // The name of the target group.
- //
- // This name must be unique per region per account, can have a maximum of 32
- // characters, must contain only alphanumeric characters or hyphens, and must
- // not begin or end with a hyphen.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The port on which the targets receive traffic. This port is used unless you
- // specify a port override when registering the target. If the target is a Lambda
- // function, this parameter does not apply.
- Port *int64 `min:"1" type:"integer"`
- // The protocol to use for routing traffic to the targets. For Application Load
- // Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers,
- // the supported protocols are TCP and TLS. If the target is a Lambda function,
- // this parameter does not apply.
- Protocol *string `type:"string" enum:"ProtocolEnum"`
- // The type of target that you must specify when registering targets with this
- // target group. You can't specify targets for a target group using more than
- // one target type.
- //
- // * instance - Targets are specified by instance ID. This is the default
- // value.
- //
- // * ip - Targets are specified by IP address. You can specify IP addresses
- // from the subnets of the virtual private cloud (VPC) for the target group,
- // the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and
- // the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable
- // IP addresses.
- //
- // * lambda - The target groups contains a single Lambda function.
- TargetType *string `type:"string" enum:"TargetTypeEnum"`
- // The number of consecutive health check failures required before considering
- // a target unhealthy. For Application Load Balancers, the default is 2. For
- // Network Load Balancers, this value must be the same as the healthy threshold
- // count.
- UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
- // The identifier of the virtual private cloud (VPC). If the target is a Lambda
- // function, this parameter does not apply.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateTargetGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTargetGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTargetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTargetGroupInput"}
- if s.HealthCheckIntervalSeconds != nil && *s.HealthCheckIntervalSeconds < 5 {
- invalidParams.Add(request.NewErrParamMinValue("HealthCheckIntervalSeconds", 5))
- }
- if s.HealthCheckPath != nil && len(*s.HealthCheckPath) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HealthCheckPath", 1))
- }
- if s.HealthCheckTimeoutSeconds != nil && *s.HealthCheckTimeoutSeconds < 2 {
- invalidParams.Add(request.NewErrParamMinValue("HealthCheckTimeoutSeconds", 2))
- }
- if s.HealthyThresholdCount != nil && *s.HealthyThresholdCount < 2 {
- invalidParams.Add(request.NewErrParamMinValue("HealthyThresholdCount", 2))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Port != nil && *s.Port < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Port", 1))
- }
- if s.UnhealthyThresholdCount != nil && *s.UnhealthyThresholdCount < 2 {
- invalidParams.Add(request.NewErrParamMinValue("UnhealthyThresholdCount", 2))
- }
- if s.Matcher != nil {
- if err := s.Matcher.Validate(); err != nil {
- invalidParams.AddNested("Matcher", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHealthCheckEnabled sets the HealthCheckEnabled field's value.
- func (s *CreateTargetGroupInput) SetHealthCheckEnabled(v bool) *CreateTargetGroupInput {
- s.HealthCheckEnabled = &v
- return s
- }
- // SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.
- func (s *CreateTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateTargetGroupInput {
- s.HealthCheckIntervalSeconds = &v
- return s
- }
- // SetHealthCheckPath sets the HealthCheckPath field's value.
- func (s *CreateTargetGroupInput) SetHealthCheckPath(v string) *CreateTargetGroupInput {
- s.HealthCheckPath = &v
- return s
- }
- // SetHealthCheckPort sets the HealthCheckPort field's value.
- func (s *CreateTargetGroupInput) SetHealthCheckPort(v string) *CreateTargetGroupInput {
- s.HealthCheckPort = &v
- return s
- }
- // SetHealthCheckProtocol sets the HealthCheckProtocol field's value.
- func (s *CreateTargetGroupInput) SetHealthCheckProtocol(v string) *CreateTargetGroupInput {
- s.HealthCheckProtocol = &v
- return s
- }
- // SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.
- func (s *CreateTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *CreateTargetGroupInput {
- s.HealthCheckTimeoutSeconds = &v
- return s
- }
- // SetHealthyThresholdCount sets the HealthyThresholdCount field's value.
- func (s *CreateTargetGroupInput) SetHealthyThresholdCount(v int64) *CreateTargetGroupInput {
- s.HealthyThresholdCount = &v
- return s
- }
- // SetMatcher sets the Matcher field's value.
- func (s *CreateTargetGroupInput) SetMatcher(v *Matcher) *CreateTargetGroupInput {
- s.Matcher = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateTargetGroupInput) SetName(v string) *CreateTargetGroupInput {
- s.Name = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *CreateTargetGroupInput) SetPort(v int64) *CreateTargetGroupInput {
- s.Port = &v
- return s
- }
- // SetProtocol sets the Protocol field's value.
- func (s *CreateTargetGroupInput) SetProtocol(v string) *CreateTargetGroupInput {
- s.Protocol = &v
- return s
- }
- // SetTargetType sets the TargetType field's value.
- func (s *CreateTargetGroupInput) SetTargetType(v string) *CreateTargetGroupInput {
- s.TargetType = &v
- return s
- }
- // SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.
- func (s *CreateTargetGroupInput) SetUnhealthyThresholdCount(v int64) *CreateTargetGroupInput {
- s.UnhealthyThresholdCount = &v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *CreateTargetGroupInput) SetVpcId(v string) *CreateTargetGroupInput {
- s.VpcId = &v
- return s
- }
- type CreateTargetGroupOutput struct {
- _ struct{} `type:"structure"`
- // Information about the target group.
- TargetGroups []*TargetGroup `type:"list"`
- }
- // String returns the string representation
- func (s CreateTargetGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTargetGroupOutput) GoString() string {
- return s.String()
- }
- // SetTargetGroups sets the TargetGroups field's value.
- func (s *CreateTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *CreateTargetGroupOutput {
- s.TargetGroups = v
- return s
- }
- type DeleteListenerInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the listener.
- //
- // ListenerArn is a required field
- ListenerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteListenerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteListenerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteListenerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteListenerInput"}
- if s.ListenerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *DeleteListenerInput) SetListenerArn(v string) *DeleteListenerInput {
- s.ListenerArn = &v
- return s
- }
- type DeleteListenerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteListenerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteListenerOutput) GoString() string {
- return s.String()
- }
- type DeleteLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"}
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *DeleteLoadBalancerInput) SetLoadBalancerArn(v string) *DeleteLoadBalancerInput {
- s.LoadBalancerArn = &v
- return s
- }
- type DeleteLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerOutput) GoString() string {
- return s.String()
- }
- type DeleteRuleInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the rule.
- //
- // RuleArn is a required field
- RuleArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteRuleInput"}
- if s.RuleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRuleArn sets the RuleArn field's value.
- func (s *DeleteRuleInput) SetRuleArn(v string) *DeleteRuleInput {
- s.RuleArn = &v
- return s
- }
- type DeleteRuleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteRuleOutput) GoString() string {
- return s.String()
- }
- type DeleteTargetGroupInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTargetGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTargetGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTargetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTargetGroupInput"}
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *DeleteTargetGroupInput) SetTargetGroupArn(v string) *DeleteTargetGroupInput {
- s.TargetGroupArn = &v
- return s
- }
- type DeleteTargetGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTargetGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTargetGroupOutput) GoString() string {
- return s.String()
- }
- type DeregisterTargetsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- // The targets. If you specified a port override when you registered a target,
- // you must specify both the target ID and the port when you deregister it.
- //
- // Targets is a required field
- Targets []*TargetDescription `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DeregisterTargetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterTargetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeregisterTargetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeregisterTargetsInput"}
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if s.Targets == nil {
- invalidParams.Add(request.NewErrParamRequired("Targets"))
- }
- if s.Targets != nil {
- for i, v := range s.Targets {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *DeregisterTargetsInput) SetTargetGroupArn(v string) *DeregisterTargetsInput {
- s.TargetGroupArn = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *DeregisterTargetsInput) SetTargets(v []*TargetDescription) *DeregisterTargetsInput {
- s.Targets = v
- return s
- }
- type DeregisterTargetsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeregisterTargetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterTargetsOutput) GoString() string {
- return s.String()
- }
- type DescribeAccountLimitsInput struct {
- _ struct{} `type:"structure"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s DescribeAccountLimitsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAccountLimitsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAccountLimitsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeAccountLimitsInput) SetMarker(v string) *DescribeAccountLimitsInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeAccountLimitsInput) SetPageSize(v int64) *DescribeAccountLimitsInput {
- s.PageSize = &v
- return s
- }
- type DescribeAccountLimitsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the limits.
- Limits []*Limit `type:"list"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeAccountLimitsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAccountLimitsOutput) GoString() string {
- return s.String()
- }
- // SetLimits sets the Limits field's value.
- func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput {
- s.Limits = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeAccountLimitsOutput) SetNextMarker(v string) *DescribeAccountLimitsOutput {
- s.NextMarker = &v
- return s
- }
- type DescribeListenerCertificatesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Names (ARN) of the listener.
- //
- // ListenerArn is a required field
- ListenerArn *string `type:"string" required:"true"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s DescribeListenerCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeListenerCertificatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeListenerCertificatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeListenerCertificatesInput"}
- if s.ListenerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
- }
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *DescribeListenerCertificatesInput) SetListenerArn(v string) *DescribeListenerCertificatesInput {
- s.ListenerArn = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeListenerCertificatesInput) SetMarker(v string) *DescribeListenerCertificatesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeListenerCertificatesInput) SetPageSize(v int64) *DescribeListenerCertificatesInput {
- s.PageSize = &v
- return s
- }
- type DescribeListenerCertificatesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the certificates.
- Certificates []*Certificate `type:"list"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeListenerCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeListenerCertificatesOutput) GoString() string {
- return s.String()
- }
- // SetCertificates sets the Certificates field's value.
- func (s *DescribeListenerCertificatesOutput) SetCertificates(v []*Certificate) *DescribeListenerCertificatesOutput {
- s.Certificates = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeListenerCertificatesOutput) SetNextMarker(v string) *DescribeListenerCertificatesOutput {
- s.NextMarker = &v
- return s
- }
- type DescribeListenersInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Names (ARN) of the listeners.
- ListenerArns []*string `type:"list"`
- // The Amazon Resource Name (ARN) of the load balancer.
- LoadBalancerArn *string `type:"string"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s DescribeListenersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeListenersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeListenersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeListenersInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetListenerArns sets the ListenerArns field's value.
- func (s *DescribeListenersInput) SetListenerArns(v []*string) *DescribeListenersInput {
- s.ListenerArns = v
- return s
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *DescribeListenersInput) SetLoadBalancerArn(v string) *DescribeListenersInput {
- s.LoadBalancerArn = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeListenersInput) SetMarker(v string) *DescribeListenersInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeListenersInput) SetPageSize(v int64) *DescribeListenersInput {
- s.PageSize = &v
- return s
- }
- type DescribeListenersOutput struct {
- _ struct{} `type:"structure"`
- // Information about the listeners.
- Listeners []*Listener `type:"list"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeListenersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeListenersOutput) GoString() string {
- return s.String()
- }
- // SetListeners sets the Listeners field's value.
- func (s *DescribeListenersOutput) SetListeners(v []*Listener) *DescribeListenersOutput {
- s.Listeners = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeListenersOutput) SetNextMarker(v string) *DescribeListenersOutput {
- s.NextMarker = &v
- return s
- }
- type DescribeLoadBalancerAttributesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeLoadBalancerAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerAttributesInput"}
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *DescribeLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *DescribeLoadBalancerAttributesInput {
- s.LoadBalancerArn = &v
- return s
- }
- type DescribeLoadBalancerAttributesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the load balancer attributes.
- Attributes []*LoadBalancerAttribute `type:"list"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerAttributesOutput) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *DescribeLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *DescribeLoadBalancerAttributesOutput {
- s.Attributes = v
- return s
- }
- type DescribeLoadBalancersInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Names (ARN) of the load balancers. You can specify up
- // to 20 load balancers in a single call.
- LoadBalancerArns []*string `type:"list"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The names of the load balancers.
- Names []*string `type:"list"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeLoadBalancersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoadBalancerArns sets the LoadBalancerArns field's value.
- func (s *DescribeLoadBalancersInput) SetLoadBalancerArns(v []*string) *DescribeLoadBalancersInput {
- s.LoadBalancerArns = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeLoadBalancersInput) SetMarker(v string) *DescribeLoadBalancersInput {
- s.Marker = &v
- return s
- }
- // SetNames sets the Names field's value.
- func (s *DescribeLoadBalancersInput) SetNames(v []*string) *DescribeLoadBalancersInput {
- s.Names = v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeLoadBalancersInput) SetPageSize(v int64) *DescribeLoadBalancersInput {
- s.PageSize = &v
- return s
- }
- type DescribeLoadBalancersOutput struct {
- _ struct{} `type:"structure"`
- // Information about the load balancers.
- LoadBalancers []*LoadBalancer `type:"list"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancersOutput) GoString() string {
- return s.String()
- }
- // SetLoadBalancers sets the LoadBalancers field's value.
- func (s *DescribeLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *DescribeLoadBalancersOutput {
- s.LoadBalancers = v
- return s
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalancersOutput {
- s.NextMarker = &v
- return s
- }
- type DescribeRulesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the listener.
- ListenerArn *string `type:"string"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- // The Amazon Resource Names (ARN) of the rules.
- RuleArns []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeRulesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeRulesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeRulesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeRulesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *DescribeRulesInput) SetListenerArn(v string) *DescribeRulesInput {
- s.ListenerArn = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeRulesInput) SetMarker(v string) *DescribeRulesInput {
- s.Marker = &v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeRulesInput) SetPageSize(v int64) *DescribeRulesInput {
- s.PageSize = &v
- return s
- }
- // SetRuleArns sets the RuleArns field's value.
- func (s *DescribeRulesInput) SetRuleArns(v []*string) *DescribeRulesInput {
- s.RuleArns = v
- return s
- }
- type DescribeRulesOutput struct {
- _ struct{} `type:"structure"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- // Information about the rules.
- Rules []*Rule `type:"list"`
- }
- // String returns the string representation
- func (s DescribeRulesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeRulesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeRulesOutput) SetNextMarker(v string) *DescribeRulesOutput {
- s.NextMarker = &v
- return s
- }
- // SetRules sets the Rules field's value.
- func (s *DescribeRulesOutput) SetRules(v []*Rule) *DescribeRulesOutput {
- s.Rules = v
- return s
- }
- type DescribeSSLPoliciesInput struct {
- _ struct{} `type:"structure"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The names of the policies.
- Names []*string `type:"list"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s DescribeSSLPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSSLPoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeSSLPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSSLPoliciesInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeSSLPoliciesInput) SetMarker(v string) *DescribeSSLPoliciesInput {
- s.Marker = &v
- return s
- }
- // SetNames sets the Names field's value.
- func (s *DescribeSSLPoliciesInput) SetNames(v []*string) *DescribeSSLPoliciesInput {
- s.Names = v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeSSLPoliciesInput) SetPageSize(v int64) *DescribeSSLPoliciesInput {
- s.PageSize = &v
- return s
- }
- type DescribeSSLPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- // Information about the policies.
- SslPolicies []*SslPolicy `type:"list"`
- }
- // String returns the string representation
- func (s DescribeSSLPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSSLPoliciesOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeSSLPoliciesOutput) SetNextMarker(v string) *DescribeSSLPoliciesOutput {
- s.NextMarker = &v
- return s
- }
- // SetSslPolicies sets the SslPolicies field's value.
- func (s *DescribeSSLPoliciesOutput) SetSslPolicies(v []*SslPolicy) *DescribeSSLPoliciesOutput {
- s.SslPolicies = v
- return s
- }
- type DescribeTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Names (ARN) of the resources.
- //
- // ResourceArns is a required field
- ResourceArns []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
- if s.ResourceArns == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *DescribeTagsInput) SetResourceArns(v []*string) *DescribeTagsInput {
- s.ResourceArns = v
- return s
- }
- type DescribeTagsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the tags.
- TagDescriptions []*TagDescription `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTagsOutput) GoString() string {
- return s.String()
- }
- // SetTagDescriptions sets the TagDescriptions field's value.
- func (s *DescribeTagsOutput) SetTagDescriptions(v []*TagDescription) *DescribeTagsOutput {
- s.TagDescriptions = v
- return s
- }
- type DescribeTargetGroupAttributesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeTargetGroupAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTargetGroupAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTargetGroupAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTargetGroupAttributesInput"}
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *DescribeTargetGroupAttributesInput) SetTargetGroupArn(v string) *DescribeTargetGroupAttributesInput {
- s.TargetGroupArn = &v
- return s
- }
- type DescribeTargetGroupAttributesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the target group attributes
- Attributes []*TargetGroupAttribute `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTargetGroupAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTargetGroupAttributesOutput) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *DescribeTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *DescribeTargetGroupAttributesOutput {
- s.Attributes = v
- return s
- }
- type DescribeTargetGroupsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the load balancer.
- LoadBalancerArn *string `type:"string"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The names of the target groups.
- Names []*string `type:"list"`
- // The maximum number of results to return with this call.
- PageSize *int64 `min:"1" type:"integer"`
- // The Amazon Resource Names (ARN) of the target groups.
- TargetGroupArns []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTargetGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTargetGroupsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTargetGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTargetGroupsInput"}
- if s.PageSize != nil && *s.PageSize < 1 {
- invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *DescribeTargetGroupsInput) SetLoadBalancerArn(v string) *DescribeTargetGroupsInput {
- s.LoadBalancerArn = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeTargetGroupsInput) SetMarker(v string) *DescribeTargetGroupsInput {
- s.Marker = &v
- return s
- }
- // SetNames sets the Names field's value.
- func (s *DescribeTargetGroupsInput) SetNames(v []*string) *DescribeTargetGroupsInput {
- s.Names = v
- return s
- }
- // SetPageSize sets the PageSize field's value.
- func (s *DescribeTargetGroupsInput) SetPageSize(v int64) *DescribeTargetGroupsInput {
- s.PageSize = &v
- return s
- }
- // SetTargetGroupArns sets the TargetGroupArns field's value.
- func (s *DescribeTargetGroupsInput) SetTargetGroupArns(v []*string) *DescribeTargetGroupsInput {
- s.TargetGroupArns = v
- return s
- }
- type DescribeTargetGroupsOutput struct {
- _ struct{} `type:"structure"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- // Information about the target groups.
- TargetGroups []*TargetGroup `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTargetGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTargetGroupsOutput) GoString() string {
- return s.String()
- }
- // SetNextMarker sets the NextMarker field's value.
- func (s *DescribeTargetGroupsOutput) SetNextMarker(v string) *DescribeTargetGroupsOutput {
- s.NextMarker = &v
- return s
- }
- // SetTargetGroups sets the TargetGroups field's value.
- func (s *DescribeTargetGroupsOutput) SetTargetGroups(v []*TargetGroup) *DescribeTargetGroupsOutput {
- s.TargetGroups = v
- return s
- }
- type DescribeTargetHealthInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- // The targets.
- Targets []*TargetDescription `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTargetHealthInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTargetHealthInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTargetHealthInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTargetHealthInput"}
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if s.Targets != nil {
- for i, v := range s.Targets {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *DescribeTargetHealthInput) SetTargetGroupArn(v string) *DescribeTargetHealthInput {
- s.TargetGroupArn = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *DescribeTargetHealthInput) SetTargets(v []*TargetDescription) *DescribeTargetHealthInput {
- s.Targets = v
- return s
- }
- type DescribeTargetHealthOutput struct {
- _ struct{} `type:"structure"`
- // Information about the health of the targets.
- TargetHealthDescriptions []*TargetHealthDescription `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTargetHealthOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTargetHealthOutput) GoString() string {
- return s.String()
- }
- // SetTargetHealthDescriptions sets the TargetHealthDescriptions field's value.
- func (s *DescribeTargetHealthOutput) SetTargetHealthDescriptions(v []*TargetHealthDescription) *DescribeTargetHealthOutput {
- s.TargetHealthDescriptions = v
- return s
- }
- // Information about an action that returns a custom HTTP response.
- type FixedResponseActionConfig struct {
- _ struct{} `type:"structure"`
- // The content type.
- //
- // Valid Values: text/plain | text/css | text/html | application/javascript
- // | application/json
- ContentType *string `type:"string"`
- // The message.
- MessageBody *string `type:"string"`
- // The HTTP response code (2XX, 4XX, or 5XX).
- //
- // StatusCode is a required field
- StatusCode *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s FixedResponseActionConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FixedResponseActionConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *FixedResponseActionConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FixedResponseActionConfig"}
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetContentType sets the ContentType field's value.
- func (s *FixedResponseActionConfig) SetContentType(v string) *FixedResponseActionConfig {
- s.ContentType = &v
- return s
- }
- // SetMessageBody sets the MessageBody field's value.
- func (s *FixedResponseActionConfig) SetMessageBody(v string) *FixedResponseActionConfig {
- s.MessageBody = &v
- return s
- }
- // SetStatusCode sets the StatusCode field's value.
- func (s *FixedResponseActionConfig) SetStatusCode(v string) *FixedResponseActionConfig {
- s.StatusCode = &v
- return s
- }
- // Information about an Elastic Load Balancing resource limit for your AWS account.
- type Limit struct {
- _ struct{} `type:"structure"`
- // The maximum value of the limit.
- Max *string `type:"string"`
- // The name of the limit. The possible values are:
- //
- // * application-load-balancers
- //
- // * listeners-per-application-load-balancer
- //
- // * listeners-per-network-load-balancer
- //
- // * network-load-balancers
- //
- // * rules-per-application-load-balancer
- //
- // * target-groups
- //
- // * targets-per-application-load-balancer
- //
- // * targets-per-availability-zone-per-network-load-balancer
- //
- // * targets-per-network-load-balancer
- Name *string `type:"string"`
- }
- // String returns the string representation
- func (s Limit) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Limit) GoString() string {
- return s.String()
- }
- // SetMax sets the Max field's value.
- func (s *Limit) SetMax(v string) *Limit {
- s.Max = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Limit) SetName(v string) *Limit {
- s.Name = &v
- return s
- }
- // Information about a listener.
- type Listener struct {
- _ struct{} `type:"structure"`
- // The SSL server certificate. You must provide a certificate if the protocol
- // is HTTPS or TLS.
- Certificates []*Certificate `type:"list"`
- // The default actions for the listener.
- DefaultActions []*Action `type:"list"`
- // The Amazon Resource Name (ARN) of the listener.
- ListenerArn *string `type:"string"`
- // The Amazon Resource Name (ARN) of the load balancer.
- LoadBalancerArn *string `type:"string"`
- // The port on which the load balancer is listening.
- Port *int64 `min:"1" type:"integer"`
- // The protocol for connections from clients to the load balancer.
- Protocol *string `type:"string" enum:"ProtocolEnum"`
- // The security policy that defines which ciphers and protocols are supported.
- // The default is the current predefined security policy.
- SslPolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s Listener) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Listener) GoString() string {
- return s.String()
- }
- // SetCertificates sets the Certificates field's value.
- func (s *Listener) SetCertificates(v []*Certificate) *Listener {
- s.Certificates = v
- return s
- }
- // SetDefaultActions sets the DefaultActions field's value.
- func (s *Listener) SetDefaultActions(v []*Action) *Listener {
- s.DefaultActions = v
- return s
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *Listener) SetListenerArn(v string) *Listener {
- s.ListenerArn = &v
- return s
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *Listener) SetLoadBalancerArn(v string) *Listener {
- s.LoadBalancerArn = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *Listener) SetPort(v int64) *Listener {
- s.Port = &v
- return s
- }
- // SetProtocol sets the Protocol field's value.
- func (s *Listener) SetProtocol(v string) *Listener {
- s.Protocol = &v
- return s
- }
- // SetSslPolicy sets the SslPolicy field's value.
- func (s *Listener) SetSslPolicy(v string) *Listener {
- s.SslPolicy = &v
- return s
- }
- // Information about a load balancer.
- type LoadBalancer struct {
- _ struct{} `type:"structure"`
- // The Availability Zones for the load balancer.
- AvailabilityZones []*AvailabilityZone `type:"list"`
- // The ID of the Amazon Route 53 hosted zone associated with the load balancer.
- CanonicalHostedZoneId *string `type:"string"`
- // The date and time the load balancer was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The public DNS name of the load balancer.
- DNSName *string `type:"string"`
- // The type of IP addresses used by the subnets for your load balancer. The
- // possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and
- // IPv6 addresses).
- IpAddressType *string `type:"string" enum:"IpAddressType"`
- // The Amazon Resource Name (ARN) of the load balancer.
- LoadBalancerArn *string `type:"string"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // The nodes of an Internet-facing load balancer have public IP addresses. The
- // DNS name of an Internet-facing load balancer is publicly resolvable to the
- // public IP addresses of the nodes. Therefore, Internet-facing load balancers
- // can route requests from clients over the internet.
- //
- // The nodes of an internal load balancer have only private IP addresses. The
- // DNS name of an internal load balancer is publicly resolvable to the private
- // IP addresses of the nodes. Therefore, internal load balancers can only route
- // requests from clients with access to the VPC for the load balancer.
- Scheme *string `type:"string" enum:"LoadBalancerSchemeEnum"`
- // The IDs of the security groups for the load balancer.
- SecurityGroups []*string `type:"list"`
- // The state of the load balancer.
- State *LoadBalancerState `type:"structure"`
- // The type of load balancer.
- Type *string `type:"string" enum:"LoadBalancerTypeEnum"`
- // The ID of the VPC for the load balancer.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s LoadBalancer) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancer) GoString() string {
- return s.String()
- }
- // SetAvailabilityZones sets the AvailabilityZones field's value.
- func (s *LoadBalancer) SetAvailabilityZones(v []*AvailabilityZone) *LoadBalancer {
- s.AvailabilityZones = v
- return s
- }
- // SetCanonicalHostedZoneId sets the CanonicalHostedZoneId field's value.
- func (s *LoadBalancer) SetCanonicalHostedZoneId(v string) *LoadBalancer {
- s.CanonicalHostedZoneId = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *LoadBalancer) SetCreatedTime(v time.Time) *LoadBalancer {
- s.CreatedTime = &v
- return s
- }
- // SetDNSName sets the DNSName field's value.
- func (s *LoadBalancer) SetDNSName(v string) *LoadBalancer {
- s.DNSName = &v
- return s
- }
- // SetIpAddressType sets the IpAddressType field's value.
- func (s *LoadBalancer) SetIpAddressType(v string) *LoadBalancer {
- s.IpAddressType = &v
- return s
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *LoadBalancer) SetLoadBalancerArn(v string) *LoadBalancer {
- s.LoadBalancerArn = &v
- return s
- }
- // SetLoadBalancerName sets the LoadBalancerName field's value.
- func (s *LoadBalancer) SetLoadBalancerName(v string) *LoadBalancer {
- s.LoadBalancerName = &v
- return s
- }
- // SetScheme sets the Scheme field's value.
- func (s *LoadBalancer) SetScheme(v string) *LoadBalancer {
- s.Scheme = &v
- return s
- }
- // SetSecurityGroups sets the SecurityGroups field's value.
- func (s *LoadBalancer) SetSecurityGroups(v []*string) *LoadBalancer {
- s.SecurityGroups = v
- return s
- }
- // SetState sets the State field's value.
- func (s *LoadBalancer) SetState(v *LoadBalancerState) *LoadBalancer {
- s.State = v
- return s
- }
- // SetType sets the Type field's value.
- func (s *LoadBalancer) SetType(v string) *LoadBalancer {
- s.Type = &v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *LoadBalancer) SetVpcId(v string) *LoadBalancer {
- s.VpcId = &v
- return s
- }
- // Information about a static IP address for a load balancer.
- type LoadBalancerAddress struct {
- _ struct{} `type:"structure"`
- // [Network Load Balancers] The allocation ID of the Elastic IP address.
- AllocationId *string `type:"string"`
- // The static IP address.
- IpAddress *string `type:"string"`
- }
- // String returns the string representation
- func (s LoadBalancerAddress) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerAddress) GoString() string {
- return s.String()
- }
- // SetAllocationId sets the AllocationId field's value.
- func (s *LoadBalancerAddress) SetAllocationId(v string) *LoadBalancerAddress {
- s.AllocationId = &v
- return s
- }
- // SetIpAddress sets the IpAddress field's value.
- func (s *LoadBalancerAddress) SetIpAddress(v string) *LoadBalancerAddress {
- s.IpAddress = &v
- return s
- }
- // Information about a load balancer attribute.
- type LoadBalancerAttribute struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- //
- // The following attributes are supported by both Application Load Balancers
- // and Network Load Balancers:
- //
- // * deletion_protection.enabled - Indicates whether deletion protection
- // is enabled. The value is true or false. The default is false.
- //
- // The following attributes are supported by only Application Load Balancers:
- //
- // * access_logs.s3.enabled - Indicates whether access logs are enabled.
- // The value is true or false. The default is false.
- //
- // * access_logs.s3.bucket - The name of the S3 bucket for the access logs.
- // This attribute is required if access logs are enabled. The bucket must
- // exist in the same region as the load balancer and have a bucket policy
- // that grants Elastic Load Balancing permissions to write to the bucket.
- //
- // * access_logs.s3.prefix - The prefix for the location in the S3 bucket
- // for the access logs.
- //
- // * idle_timeout.timeout_seconds - The idle timeout value, in seconds. The
- // valid range is 1-4000 seconds. The default is 60 seconds.
- //
- // * routing.http2.enabled - Indicates whether HTTP/2 is enabled. The value
- // is true or false. The default is true.
- //
- // The following attributes are supported by only Network Load Balancers:
- //
- // * load_balancing.cross_zone.enabled - Indicates whether cross-zone load
- // balancing is enabled. The value is true or false. The default is false.
- Key *string `type:"string"`
- // The value of the attribute.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s LoadBalancerAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerAttribute) GoString() string {
- return s.String()
- }
- // SetKey sets the Key field's value.
- func (s *LoadBalancerAttribute) SetKey(v string) *LoadBalancerAttribute {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *LoadBalancerAttribute) SetValue(v string) *LoadBalancerAttribute {
- s.Value = &v
- return s
- }
- // Information about the state of the load balancer.
- type LoadBalancerState struct {
- _ struct{} `type:"structure"`
- // The state code. The initial state of the load balancer is provisioning. After
- // the load balancer is fully set up and ready to route traffic, its state is
- // active. If the load balancer could not be set up, its state is failed.
- Code *string `type:"string" enum:"LoadBalancerStateEnum"`
- // A description of the state.
- Reason *string `type:"string"`
- }
- // String returns the string representation
- func (s LoadBalancerState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerState) GoString() string {
- return s.String()
- }
- // SetCode sets the Code field's value.
- func (s *LoadBalancerState) SetCode(v string) *LoadBalancerState {
- s.Code = &v
- return s
- }
- // SetReason sets the Reason field's value.
- func (s *LoadBalancerState) SetReason(v string) *LoadBalancerState {
- s.Reason = &v
- return s
- }
- // Information to use when checking for a successful response from a target.
- type Matcher struct {
- _ struct{} `type:"structure"`
- // The HTTP codes.
- //
- // For Application Load Balancers, you can specify values between 200 and 499,
- // and the default value is 200. You can specify multiple values (for example,
- // "200,202") or a range of values (for example, "200-299").
- //
- // For Network Load Balancers, this is 200–399.
- //
- // HttpCode is a required field
- HttpCode *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Matcher) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Matcher) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Matcher) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Matcher"}
- if s.HttpCode == nil {
- invalidParams.Add(request.NewErrParamRequired("HttpCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHttpCode sets the HttpCode field's value.
- func (s *Matcher) SetHttpCode(v string) *Matcher {
- s.HttpCode = &v
- return s
- }
- type ModifyListenerInput struct {
- _ struct{} `type:"structure"`
- // [HTTPS and TLS listeners] The default SSL server certificate. You must provide
- // exactly one certificate. Set CertificateArn to the certificate ARN but do
- // not set IsDefault.
- //
- // To create a certificate list, use AddListenerCertificates.
- Certificates []*Certificate `type:"list"`
- // The actions for the default rule. The rule must include one forward action
- // or one or more fixed-response actions.
- //
- // If the action type is forward, you specify a target group. The protocol of
- // the target group must be HTTP or HTTPS for an Application Load Balancer.
- // The protocol of the target group must be TCP or TLS for a Network Load Balancer.
- //
- // [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
- // users through an identity provider that is OpenID Connect (OIDC) compliant.
- //
- // [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
- // users through the user pools supported by Amazon Cognito.
- //
- // [Application Load Balancer] If the action type is redirect, you redirect
- // specified client requests from one URL to another.
- //
- // [Application Load Balancer] If the action type is fixed-response, you drop
- // specified client requests and return a custom HTTP response.
- DefaultActions []*Action `type:"list"`
- // The Amazon Resource Name (ARN) of the listener.
- //
- // ListenerArn is a required field
- ListenerArn *string `type:"string" required:"true"`
- // The port for connections from clients to the load balancer.
- Port *int64 `min:"1" type:"integer"`
- // The protocol for connections from clients to the load balancer. Application
- // Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers
- // support the TCP and TLS protocols.
- Protocol *string `type:"string" enum:"ProtocolEnum"`
- // [HTTPS and TLS listeners] The security policy that defines which protocols
- // and ciphers are supported. For more information, see Security Policies (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies)
- // in the Application Load Balancers Guide.
- SslPolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s ModifyListenerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyListenerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyListenerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyListenerInput"}
- if s.ListenerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
- }
- if s.Port != nil && *s.Port < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Port", 1))
- }
- if s.DefaultActions != nil {
- for i, v := range s.DefaultActions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DefaultActions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificates sets the Certificates field's value.
- func (s *ModifyListenerInput) SetCertificates(v []*Certificate) *ModifyListenerInput {
- s.Certificates = v
- return s
- }
- // SetDefaultActions sets the DefaultActions field's value.
- func (s *ModifyListenerInput) SetDefaultActions(v []*Action) *ModifyListenerInput {
- s.DefaultActions = v
- return s
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *ModifyListenerInput) SetListenerArn(v string) *ModifyListenerInput {
- s.ListenerArn = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *ModifyListenerInput) SetPort(v int64) *ModifyListenerInput {
- s.Port = &v
- return s
- }
- // SetProtocol sets the Protocol field's value.
- func (s *ModifyListenerInput) SetProtocol(v string) *ModifyListenerInput {
- s.Protocol = &v
- return s
- }
- // SetSslPolicy sets the SslPolicy field's value.
- func (s *ModifyListenerInput) SetSslPolicy(v string) *ModifyListenerInput {
- s.SslPolicy = &v
- return s
- }
- type ModifyListenerOutput struct {
- _ struct{} `type:"structure"`
- // Information about the modified listener.
- Listeners []*Listener `type:"list"`
- }
- // String returns the string representation
- func (s ModifyListenerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyListenerOutput) GoString() string {
- return s.String()
- }
- // SetListeners sets the Listeners field's value.
- func (s *ModifyListenerOutput) SetListeners(v []*Listener) *ModifyListenerOutput {
- s.Listeners = v
- return s
- }
- type ModifyLoadBalancerAttributesInput struct {
- _ struct{} `type:"structure"`
- // The load balancer attributes.
- //
- // Attributes is a required field
- Attributes []*LoadBalancerAttribute `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyLoadBalancerAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyLoadBalancerAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyLoadBalancerAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyLoadBalancerAttributesInput"}
- if s.Attributes == nil {
- invalidParams.Add(request.NewErrParamRequired("Attributes"))
- }
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ModifyLoadBalancerAttributesInput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesInput {
- s.Attributes = v
- return s
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerArn(v string) *ModifyLoadBalancerAttributesInput {
- s.LoadBalancerArn = &v
- return s
- }
- type ModifyLoadBalancerAttributesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the load balancer attributes.
- Attributes []*LoadBalancerAttribute `type:"list"`
- }
- // String returns the string representation
- func (s ModifyLoadBalancerAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyLoadBalancerAttributesOutput) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ModifyLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttribute) *ModifyLoadBalancerAttributesOutput {
- s.Attributes = v
- return s
- }
- type ModifyRuleInput struct {
- _ struct{} `type:"structure"`
- // The actions.
- //
- // If the action type is forward, you specify a target group. The protocol of
- // the target group must be HTTP or HTTPS for an Application Load Balancer.
- // The protocol of the target group must be TCP or TLS for a Network Load Balancer.
- //
- // [HTTPS listeners] If the action type is authenticate-oidc, you authenticate
- // users through an identity provider that is OpenID Connect (OIDC) compliant.
- //
- // [HTTPS listeners] If the action type is authenticate-cognito, you authenticate
- // users through the user pools supported by Amazon Cognito.
- //
- // [Application Load Balancer] If the action type is redirect, you redirect
- // specified client requests from one URL to another.
- //
- // [Application Load Balancer] If the action type is fixed-response, you drop
- // specified client requests and return a custom HTTP response.
- Actions []*Action `type:"list"`
- // The conditions. Each condition specifies a field name and a single value.
- //
- // If the field name is host-header, you can specify a single host name (for
- // example, my.example.com). A host name is case insensitive, can be up to 128
- // characters in length, and can contain any of the following characters. You
- // can include up to three wildcard characters.
- //
- // * A-Z, a-z, 0-9
- //
- // * - .
- //
- // * * (matches 0 or more characters)
- //
- // * ? (matches exactly 1 character)
- //
- // If the field name is path-pattern, you can specify a single path pattern.
- // A path pattern is case-sensitive, can be up to 128 characters in length,
- // and can contain any of the following characters. You can include up to three
- // wildcard characters.
- //
- // * A-Z, a-z, 0-9
- //
- // * _ - . $ / ~ " ' @ : +
- //
- // * & (using &)
- //
- // * * (matches 0 or more characters)
- //
- // * ? (matches exactly 1 character)
- Conditions []*RuleCondition `type:"list"`
- // The Amazon Resource Name (ARN) of the rule.
- //
- // RuleArn is a required field
- RuleArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyRuleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyRuleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyRuleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyRuleInput"}
- if s.RuleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("RuleArn"))
- }
- if s.Actions != nil {
- for i, v := range s.Actions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetActions sets the Actions field's value.
- func (s *ModifyRuleInput) SetActions(v []*Action) *ModifyRuleInput {
- s.Actions = v
- return s
- }
- // SetConditions sets the Conditions field's value.
- func (s *ModifyRuleInput) SetConditions(v []*RuleCondition) *ModifyRuleInput {
- s.Conditions = v
- return s
- }
- // SetRuleArn sets the RuleArn field's value.
- func (s *ModifyRuleInput) SetRuleArn(v string) *ModifyRuleInput {
- s.RuleArn = &v
- return s
- }
- type ModifyRuleOutput struct {
- _ struct{} `type:"structure"`
- // Information about the modified rule.
- Rules []*Rule `type:"list"`
- }
- // String returns the string representation
- func (s ModifyRuleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyRuleOutput) GoString() string {
- return s.String()
- }
- // SetRules sets the Rules field's value.
- func (s *ModifyRuleOutput) SetRules(v []*Rule) *ModifyRuleOutput {
- s.Rules = v
- return s
- }
- type ModifyTargetGroupAttributesInput struct {
- _ struct{} `type:"structure"`
- // The attributes.
- //
- // Attributes is a required field
- Attributes []*TargetGroupAttribute `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyTargetGroupAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyTargetGroupAttributesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyTargetGroupAttributesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyTargetGroupAttributesInput"}
- if s.Attributes == nil {
- invalidParams.Add(request.NewErrParamRequired("Attributes"))
- }
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ModifyTargetGroupAttributesInput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesInput {
- s.Attributes = v
- return s
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *ModifyTargetGroupAttributesInput) SetTargetGroupArn(v string) *ModifyTargetGroupAttributesInput {
- s.TargetGroupArn = &v
- return s
- }
- type ModifyTargetGroupAttributesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the attributes.
- Attributes []*TargetGroupAttribute `type:"list"`
- }
- // String returns the string representation
- func (s ModifyTargetGroupAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyTargetGroupAttributesOutput) GoString() string {
- return s.String()
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ModifyTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttribute) *ModifyTargetGroupAttributesOutput {
- s.Attributes = v
- return s
- }
- type ModifyTargetGroupInput struct {
- _ struct{} `type:"structure"`
- // Indicates whether health checks are enabled.
- HealthCheckEnabled *bool `type:"boolean"`
- // The approximate amount of time, in seconds, between health checks of an individual
- // target. For Application Load Balancers, the range is 5–300 seconds. For Network
- // Load Balancers, the supported values are 10 or 30 seconds.
- //
- // If the protocol of the target group is TCP, you can't modify this setting.
- HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
- // [HTTP/HTTPS health checks] The ping path that is the destination for the
- // health check request.
- HealthCheckPath *string `min:"1" type:"string"`
- // The port the load balancer uses when performing health checks on targets.
- HealthCheckPort *string `type:"string"`
- // The protocol the load balancer uses when performing health checks on targets.
- // The TCP protocol is supported for health checks only if the protocol of the
- // target group is TCP or TLS. The TLS protocol is not supported for health
- // checks.
- //
- // If the protocol of the target group is TCP, you can't modify this setting.
- HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
- // [HTTP/HTTPS health checks] The amount of time, in seconds, during which no
- // response means a failed health check.
- //
- // If the protocol of the target group is TCP, you can't modify this setting.
- HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
- // The number of consecutive health checks successes required before considering
- // an unhealthy target healthy.
- HealthyThresholdCount *int64 `min:"2" type:"integer"`
- // [HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful
- // response from a target.
- //
- // If the protocol of the target group is TCP, you can't modify this setting.
- Matcher *Matcher `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- // The number of consecutive health check failures required before considering
- // the target unhealthy. For Network Load Balancers, this value must be the
- // same as the healthy threshold count.
- UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
- }
- // String returns the string representation
- func (s ModifyTargetGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyTargetGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyTargetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyTargetGroupInput"}
- if s.HealthCheckIntervalSeconds != nil && *s.HealthCheckIntervalSeconds < 5 {
- invalidParams.Add(request.NewErrParamMinValue("HealthCheckIntervalSeconds", 5))
- }
- if s.HealthCheckPath != nil && len(*s.HealthCheckPath) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("HealthCheckPath", 1))
- }
- if s.HealthCheckTimeoutSeconds != nil && *s.HealthCheckTimeoutSeconds < 2 {
- invalidParams.Add(request.NewErrParamMinValue("HealthCheckTimeoutSeconds", 2))
- }
- if s.HealthyThresholdCount != nil && *s.HealthyThresholdCount < 2 {
- invalidParams.Add(request.NewErrParamMinValue("HealthyThresholdCount", 2))
- }
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if s.UnhealthyThresholdCount != nil && *s.UnhealthyThresholdCount < 2 {
- invalidParams.Add(request.NewErrParamMinValue("UnhealthyThresholdCount", 2))
- }
- if s.Matcher != nil {
- if err := s.Matcher.Validate(); err != nil {
- invalidParams.AddNested("Matcher", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHealthCheckEnabled sets the HealthCheckEnabled field's value.
- func (s *ModifyTargetGroupInput) SetHealthCheckEnabled(v bool) *ModifyTargetGroupInput {
- s.HealthCheckEnabled = &v
- return s
- }
- // SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.
- func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput {
- s.HealthCheckIntervalSeconds = &v
- return s
- }
- // SetHealthCheckPath sets the HealthCheckPath field's value.
- func (s *ModifyTargetGroupInput) SetHealthCheckPath(v string) *ModifyTargetGroupInput {
- s.HealthCheckPath = &v
- return s
- }
- // SetHealthCheckPort sets the HealthCheckPort field's value.
- func (s *ModifyTargetGroupInput) SetHealthCheckPort(v string) *ModifyTargetGroupInput {
- s.HealthCheckPort = &v
- return s
- }
- // SetHealthCheckProtocol sets the HealthCheckProtocol field's value.
- func (s *ModifyTargetGroupInput) SetHealthCheckProtocol(v string) *ModifyTargetGroupInput {
- s.HealthCheckProtocol = &v
- return s
- }
- // SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.
- func (s *ModifyTargetGroupInput) SetHealthCheckTimeoutSeconds(v int64) *ModifyTargetGroupInput {
- s.HealthCheckTimeoutSeconds = &v
- return s
- }
- // SetHealthyThresholdCount sets the HealthyThresholdCount field's value.
- func (s *ModifyTargetGroupInput) SetHealthyThresholdCount(v int64) *ModifyTargetGroupInput {
- s.HealthyThresholdCount = &v
- return s
- }
- // SetMatcher sets the Matcher field's value.
- func (s *ModifyTargetGroupInput) SetMatcher(v *Matcher) *ModifyTargetGroupInput {
- s.Matcher = v
- return s
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *ModifyTargetGroupInput) SetTargetGroupArn(v string) *ModifyTargetGroupInput {
- s.TargetGroupArn = &v
- return s
- }
- // SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.
- func (s *ModifyTargetGroupInput) SetUnhealthyThresholdCount(v int64) *ModifyTargetGroupInput {
- s.UnhealthyThresholdCount = &v
- return s
- }
- type ModifyTargetGroupOutput struct {
- _ struct{} `type:"structure"`
- // Information about the modified target group.
- TargetGroups []*TargetGroup `type:"list"`
- }
- // String returns the string representation
- func (s ModifyTargetGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyTargetGroupOutput) GoString() string {
- return s.String()
- }
- // SetTargetGroups sets the TargetGroups field's value.
- func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTargetGroupOutput {
- s.TargetGroups = v
- return s
- }
- // Information about a redirect action.
- //
- // A URI consists of the following components: protocol://hostname:port/path?query.
- // You must modify at least one of the following components to avoid a redirect
- // loop: protocol, hostname, port, or path. Any components that you do not modify
- // retain their original values.
- //
- // You can reuse URI components using the following reserved keywords:
- //
- // * #{protocol}
- //
- // * #{host}
- //
- // * #{port}
- //
- // * #{path} (the leading "/" is removed)
- //
- // * #{query}
- //
- // For example, you can change the path to "/new/#{path}", the hostname to "example.#{host}",
- // or the query to "#{query}&value=xyz".
- type RedirectActionConfig struct {
- _ struct{} `type:"structure"`
- // The hostname. This component is not percent-encoded. The hostname can contain
- // #{host}.
- Host *string `min:"1" type:"string"`
- // The absolute path, starting with the leading "/". This component is not percent-encoded.
- // The path can contain #{host}, #{path}, and #{port}.
- Path *string `min:"1" type:"string"`
- // The port. You can specify a value from 1 to 65535 or #{port}.
- Port *string `type:"string"`
- // The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect
- // HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS
- // to HTTP.
- Protocol *string `type:"string"`
- // The query parameters, URL-encoded when necessary, but not percent-encoded.
- // Do not include the leading "?", as it is automatically added. You can specify
- // any of the reserved keywords.
- Query *string `type:"string"`
- // The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary
- // (HTTP 302).
- //
- // StatusCode is a required field
- StatusCode *string `type:"string" required:"true" enum:"RedirectActionStatusCodeEnum"`
- }
- // String returns the string representation
- func (s RedirectActionConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RedirectActionConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RedirectActionConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RedirectActionConfig"}
- if s.Host != nil && len(*s.Host) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Host", 1))
- }
- if s.Path != nil && len(*s.Path) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Path", 1))
- }
- if s.StatusCode == nil {
- invalidParams.Add(request.NewErrParamRequired("StatusCode"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHost sets the Host field's value.
- func (s *RedirectActionConfig) SetHost(v string) *RedirectActionConfig {
- s.Host = &v
- return s
- }
- // SetPath sets the Path field's value.
- func (s *RedirectActionConfig) SetPath(v string) *RedirectActionConfig {
- s.Path = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *RedirectActionConfig) SetPort(v string) *RedirectActionConfig {
- s.Port = &v
- return s
- }
- // SetProtocol sets the Protocol field's value.
- func (s *RedirectActionConfig) SetProtocol(v string) *RedirectActionConfig {
- s.Protocol = &v
- return s
- }
- // SetQuery sets the Query field's value.
- func (s *RedirectActionConfig) SetQuery(v string) *RedirectActionConfig {
- s.Query = &v
- return s
- }
- // SetStatusCode sets the StatusCode field's value.
- func (s *RedirectActionConfig) SetStatusCode(v string) *RedirectActionConfig {
- s.StatusCode = &v
- return s
- }
- type RegisterTargetsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the target group.
- //
- // TargetGroupArn is a required field
- TargetGroupArn *string `type:"string" required:"true"`
- // The targets.
- //
- // To register a target by instance ID, specify the instance ID. To register
- // a target by IP address, specify the IP address. To register a Lambda function,
- // specify the ARN of the Lambda function.
- //
- // Targets is a required field
- Targets []*TargetDescription `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RegisterTargetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterTargetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterTargetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterTargetsInput"}
- if s.TargetGroupArn == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetGroupArn"))
- }
- if s.Targets == nil {
- invalidParams.Add(request.NewErrParamRequired("Targets"))
- }
- if s.Targets != nil {
- for i, v := range s.Targets {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *RegisterTargetsInput) SetTargetGroupArn(v string) *RegisterTargetsInput {
- s.TargetGroupArn = &v
- return s
- }
- // SetTargets sets the Targets field's value.
- func (s *RegisterTargetsInput) SetTargets(v []*TargetDescription) *RegisterTargetsInput {
- s.Targets = v
- return s
- }
- type RegisterTargetsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RegisterTargetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterTargetsOutput) GoString() string {
- return s.String()
- }
- type RemoveListenerCertificatesInput struct {
- _ struct{} `type:"structure"`
- // The certificate to remove. You can specify one certificate per call. Set
- // CertificateArn to the certificate ARN but do not set IsDefault.
- //
- // Certificates is a required field
- Certificates []*Certificate `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the listener.
- //
- // ListenerArn is a required field
- ListenerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RemoveListenerCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveListenerCertificatesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveListenerCertificatesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveListenerCertificatesInput"}
- if s.Certificates == nil {
- invalidParams.Add(request.NewErrParamRequired("Certificates"))
- }
- if s.ListenerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ListenerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificates sets the Certificates field's value.
- func (s *RemoveListenerCertificatesInput) SetCertificates(v []*Certificate) *RemoveListenerCertificatesInput {
- s.Certificates = v
- return s
- }
- // SetListenerArn sets the ListenerArn field's value.
- func (s *RemoveListenerCertificatesInput) SetListenerArn(v string) *RemoveListenerCertificatesInput {
- s.ListenerArn = &v
- return s
- }
- type RemoveListenerCertificatesOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveListenerCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveListenerCertificatesOutput) GoString() string {
- return s.String()
- }
- type RemoveTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- //
- // ResourceArns is a required field
- ResourceArns []*string `type:"list" required:"true"`
- // The tag keys for the tags to remove.
- //
- // TagKeys is a required field
- TagKeys []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
- if s.ResourceArns == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *RemoveTagsInput) SetResourceArns(v []*string) *RemoveTagsInput {
- s.ResourceArns = v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput {
- s.TagKeys = v
- return s
- }
- type RemoveTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsOutput) GoString() string {
- return s.String()
- }
- // Information about a rule.
- type Rule struct {
- _ struct{} `type:"structure"`
- // The actions.
- Actions []*Action `type:"list"`
- // The conditions.
- Conditions []*RuleCondition `type:"list"`
- // Indicates whether this is the default rule.
- IsDefault *bool `type:"boolean"`
- // The priority.
- Priority *string `type:"string"`
- // The Amazon Resource Name (ARN) of the rule.
- RuleArn *string `type:"string"`
- }
- // String returns the string representation
- func (s Rule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Rule) GoString() string {
- return s.String()
- }
- // SetActions sets the Actions field's value.
- func (s *Rule) SetActions(v []*Action) *Rule {
- s.Actions = v
- return s
- }
- // SetConditions sets the Conditions field's value.
- func (s *Rule) SetConditions(v []*RuleCondition) *Rule {
- s.Conditions = v
- return s
- }
- // SetIsDefault sets the IsDefault field's value.
- func (s *Rule) SetIsDefault(v bool) *Rule {
- s.IsDefault = &v
- return s
- }
- // SetPriority sets the Priority field's value.
- func (s *Rule) SetPriority(v string) *Rule {
- s.Priority = &v
- return s
- }
- // SetRuleArn sets the RuleArn field's value.
- func (s *Rule) SetRuleArn(v string) *Rule {
- s.RuleArn = &v
- return s
- }
- // Information about a condition for a rule.
- type RuleCondition struct {
- _ struct{} `type:"structure"`
- // The name of the field. The possible values are host-header and path-pattern.
- Field *string `type:"string"`
- // The condition value.
- //
- // If the field name is host-header, you can specify a single host name (for
- // example, my.example.com). A host name is case insensitive, can be up to 128
- // characters in length, and can contain any of the following characters. You
- // can include up to three wildcard characters.
- //
- // * A-Z, a-z, 0-9
- //
- // * - .
- //
- // * * (matches 0 or more characters)
- //
- // * ? (matches exactly 1 character)
- //
- // If the field name is path-pattern, you can specify a single path pattern
- // (for example, /img/*). A path pattern is case-sensitive, can be up to 128
- // characters in length, and can contain any of the following characters. You
- // can include up to three wildcard characters.
- //
- // * A-Z, a-z, 0-9
- //
- // * _ - . $ / ~ " ' @ : +
- //
- // * & (using &)
- //
- // * * (matches 0 or more characters)
- //
- // * ? (matches exactly 1 character)
- Values []*string `type:"list"`
- }
- // String returns the string representation
- func (s RuleCondition) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RuleCondition) GoString() string {
- return s.String()
- }
- // SetField sets the Field field's value.
- func (s *RuleCondition) SetField(v string) *RuleCondition {
- s.Field = &v
- return s
- }
- // SetValues sets the Values field's value.
- func (s *RuleCondition) SetValues(v []*string) *RuleCondition {
- s.Values = v
- return s
- }
- // Information about the priorities for the rules for a listener.
- type RulePriorityPair struct {
- _ struct{} `type:"structure"`
- // The rule priority.
- Priority *int64 `min:"1" type:"integer"`
- // The Amazon Resource Name (ARN) of the rule.
- RuleArn *string `type:"string"`
- }
- // String returns the string representation
- func (s RulePriorityPair) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RulePriorityPair) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RulePriorityPair) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RulePriorityPair"}
- if s.Priority != nil && *s.Priority < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Priority", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPriority sets the Priority field's value.
- func (s *RulePriorityPair) SetPriority(v int64) *RulePriorityPair {
- s.Priority = &v
- return s
- }
- // SetRuleArn sets the RuleArn field's value.
- func (s *RulePriorityPair) SetRuleArn(v string) *RulePriorityPair {
- s.RuleArn = &v
- return s
- }
- type SetIpAddressTypeInput struct {
- _ struct{} `type:"structure"`
- // The IP address type. The possible values are ipv4 (for IPv4 addresses) and
- // dualstack (for IPv4 and IPv6 addresses). Internal load balancers must use
- // ipv4.
- //
- // IpAddressType is a required field
- IpAddressType *string `type:"string" required:"true" enum:"IpAddressType"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SetIpAddressTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetIpAddressTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetIpAddressTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetIpAddressTypeInput"}
- if s.IpAddressType == nil {
- invalidParams.Add(request.NewErrParamRequired("IpAddressType"))
- }
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIpAddressType sets the IpAddressType field's value.
- func (s *SetIpAddressTypeInput) SetIpAddressType(v string) *SetIpAddressTypeInput {
- s.IpAddressType = &v
- return s
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *SetIpAddressTypeInput) SetLoadBalancerArn(v string) *SetIpAddressTypeInput {
- s.LoadBalancerArn = &v
- return s
- }
- type SetIpAddressTypeOutput struct {
- _ struct{} `type:"structure"`
- // The IP address type.
- IpAddressType *string `type:"string" enum:"IpAddressType"`
- }
- // String returns the string representation
- func (s SetIpAddressTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetIpAddressTypeOutput) GoString() string {
- return s.String()
- }
- // SetIpAddressType sets the IpAddressType field's value.
- func (s *SetIpAddressTypeOutput) SetIpAddressType(v string) *SetIpAddressTypeOutput {
- s.IpAddressType = &v
- return s
- }
- type SetRulePrioritiesInput struct {
- _ struct{} `type:"structure"`
- // The rule priorities.
- //
- // RulePriorities is a required field
- RulePriorities []*RulePriorityPair `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s SetRulePrioritiesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetRulePrioritiesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetRulePrioritiesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetRulePrioritiesInput"}
- if s.RulePriorities == nil {
- invalidParams.Add(request.NewErrParamRequired("RulePriorities"))
- }
- if s.RulePriorities != nil {
- for i, v := range s.RulePriorities {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RulePriorities", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetRulePriorities sets the RulePriorities field's value.
- func (s *SetRulePrioritiesInput) SetRulePriorities(v []*RulePriorityPair) *SetRulePrioritiesInput {
- s.RulePriorities = v
- return s
- }
- type SetRulePrioritiesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the rules.
- Rules []*Rule `type:"list"`
- }
- // String returns the string representation
- func (s SetRulePrioritiesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetRulePrioritiesOutput) GoString() string {
- return s.String()
- }
- // SetRules sets the Rules field's value.
- func (s *SetRulePrioritiesOutput) SetRules(v []*Rule) *SetRulePrioritiesOutput {
- s.Rules = v
- return s
- }
- type SetSecurityGroupsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- // The IDs of the security groups.
- //
- // SecurityGroups is a required field
- SecurityGroups []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s SetSecurityGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetSecurityGroupsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetSecurityGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetSecurityGroupsInput"}
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if s.SecurityGroups == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityGroups"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *SetSecurityGroupsInput) SetLoadBalancerArn(v string) *SetSecurityGroupsInput {
- s.LoadBalancerArn = &v
- return s
- }
- // SetSecurityGroups sets the SecurityGroups field's value.
- func (s *SetSecurityGroupsInput) SetSecurityGroups(v []*string) *SetSecurityGroupsInput {
- s.SecurityGroups = v
- return s
- }
- type SetSecurityGroupsOutput struct {
- _ struct{} `type:"structure"`
- // The IDs of the security groups associated with the load balancer.
- SecurityGroupIds []*string `type:"list"`
- }
- // String returns the string representation
- func (s SetSecurityGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetSecurityGroupsOutput) GoString() string {
- return s.String()
- }
- // SetSecurityGroupIds sets the SecurityGroupIds field's value.
- func (s *SetSecurityGroupsOutput) SetSecurityGroupIds(v []*string) *SetSecurityGroupsOutput {
- s.SecurityGroupIds = v
- return s
- }
- type SetSubnetsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the load balancer.
- //
- // LoadBalancerArn is a required field
- LoadBalancerArn *string `type:"string" required:"true"`
- // The IDs of the public subnets. You must specify subnets from at least two
- // Availability Zones. You can specify only one subnet per Availability Zone.
- // You must specify either subnets or subnet mappings.
- //
- // You cannot specify Elastic IP addresses for your subnets.
- SubnetMappings []*SubnetMapping `type:"list"`
- // The IDs of the public subnets. You must specify subnets from at least two
- // Availability Zones. You can specify only one subnet per Availability Zone.
- // You must specify either subnets or subnet mappings.
- Subnets []*string `type:"list"`
- }
- // String returns the string representation
- func (s SetSubnetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetSubnetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetSubnetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetSubnetsInput"}
- if s.LoadBalancerArn == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLoadBalancerArn sets the LoadBalancerArn field's value.
- func (s *SetSubnetsInput) SetLoadBalancerArn(v string) *SetSubnetsInput {
- s.LoadBalancerArn = &v
- return s
- }
- // SetSubnetMappings sets the SubnetMappings field's value.
- func (s *SetSubnetsInput) SetSubnetMappings(v []*SubnetMapping) *SetSubnetsInput {
- s.SubnetMappings = v
- return s
- }
- // SetSubnets sets the Subnets field's value.
- func (s *SetSubnetsInput) SetSubnets(v []*string) *SetSubnetsInput {
- s.Subnets = v
- return s
- }
- type SetSubnetsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the subnet and Availability Zone.
- AvailabilityZones []*AvailabilityZone `type:"list"`
- }
- // String returns the string representation
- func (s SetSubnetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetSubnetsOutput) GoString() string {
- return s.String()
- }
- // SetAvailabilityZones sets the AvailabilityZones field's value.
- func (s *SetSubnetsOutput) SetAvailabilityZones(v []*AvailabilityZone) *SetSubnetsOutput {
- s.AvailabilityZones = v
- return s
- }
- // Information about a policy used for SSL negotiation.
- type SslPolicy struct {
- _ struct{} `type:"structure"`
- // The ciphers.
- Ciphers []*Cipher `type:"list"`
- // The name of the policy.
- Name *string `type:"string"`
- // The protocols.
- SslProtocols []*string `type:"list"`
- }
- // String returns the string representation
- func (s SslPolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SslPolicy) GoString() string {
- return s.String()
- }
- // SetCiphers sets the Ciphers field's value.
- func (s *SslPolicy) SetCiphers(v []*Cipher) *SslPolicy {
- s.Ciphers = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *SslPolicy) SetName(v string) *SslPolicy {
- s.Name = &v
- return s
- }
- // SetSslProtocols sets the SslProtocols field's value.
- func (s *SslPolicy) SetSslProtocols(v []*string) *SslPolicy {
- s.SslProtocols = v
- return s
- }
- // Information about a subnet mapping.
- type SubnetMapping struct {
- _ struct{} `type:"structure"`
- // [Network Load Balancers] The allocation ID of the Elastic IP address.
- AllocationId *string `type:"string"`
- // The ID of the subnet.
- SubnetId *string `type:"string"`
- }
- // String returns the string representation
- func (s SubnetMapping) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SubnetMapping) GoString() string {
- return s.String()
- }
- // SetAllocationId sets the AllocationId field's value.
- func (s *SubnetMapping) SetAllocationId(v string) *SubnetMapping {
- s.AllocationId = &v
- return s
- }
- // SetSubnetId sets the SubnetId field's value.
- func (s *SubnetMapping) SetSubnetId(v string) *SubnetMapping {
- s.SubnetId = &v
- return s
- }
- // Information about a tag.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The key of the tag.
- //
- // Key is a required field
- Key *string `min:"1" type:"string" required:"true"`
- // The value of the tag.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- // The tags associated with a resource.
- type TagDescription struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- ResourceArn *string `type:"string"`
- // Information about the tags.
- Tags []*Tag `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s TagDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagDescription) GoString() string {
- return s.String()
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *TagDescription) SetResourceArn(v string) *TagDescription {
- s.ResourceArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *TagDescription) SetTags(v []*Tag) *TagDescription {
- s.Tags = v
- return s
- }
- // Information about a target.
- type TargetDescription struct {
- _ struct{} `type:"structure"`
- // An Availability Zone or all. This determines whether the target receives
- // traffic from the load balancer nodes in the specified Availability Zone or
- // from all enabled Availability Zones for the load balancer.
- //
- // This parameter is not supported if the target type of the target group is
- // instance.
- //
- // If the target type is ip and the IP address is in a subnet of the VPC for
- // the target group, the Availability Zone is automatically detected and this
- // parameter is optional. If the IP address is outside the VPC, this parameter
- // is required.
- //
- // With an Application Load Balancer, if the target type is ip and the IP address
- // is outside the VPC for the target group, the only supported value is all.
- //
- // If the target type is lambda, this parameter is optional and the only supported
- // value is all.
- AvailabilityZone *string `type:"string"`
- // The ID of the target. If the target type of the target group is instance,
- // specify an instance ID. If the target type is ip, specify an IP address.
- // If the target type is lambda, specify the ARN of the Lambda function.
- //
- // Id is a required field
- Id *string `type:"string" required:"true"`
- // The port on which the target is listening.
- Port *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s TargetDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TargetDescription) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TargetDescription) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TargetDescription"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Port != nil && *s.Port < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Port", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAvailabilityZone sets the AvailabilityZone field's value.
- func (s *TargetDescription) SetAvailabilityZone(v string) *TargetDescription {
- s.AvailabilityZone = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *TargetDescription) SetId(v string) *TargetDescription {
- s.Id = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *TargetDescription) SetPort(v int64) *TargetDescription {
- s.Port = &v
- return s
- }
- // Information about a target group.
- type TargetGroup struct {
- _ struct{} `type:"structure"`
- // Indicates whether health checks are enabled.
- HealthCheckEnabled *bool `type:"boolean"`
- // The approximate amount of time, in seconds, between health checks of an individual
- // target.
- HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
- // The destination for the health check request.
- HealthCheckPath *string `min:"1" type:"string"`
- // The port to use to connect with the target.
- HealthCheckPort *string `type:"string"`
- // The protocol to use to connect with the target.
- HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
- // The amount of time, in seconds, during which no response means a failed health
- // check.
- HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
- // The number of consecutive health checks successes required before considering
- // an unhealthy target healthy.
- HealthyThresholdCount *int64 `min:"2" type:"integer"`
- // The Amazon Resource Names (ARN) of the load balancers that route traffic
- // to this target group.
- LoadBalancerArns []*string `type:"list"`
- // The HTTP codes to use when checking for a successful response from a target.
- Matcher *Matcher `type:"structure"`
- // The port on which the targets are listening.
- Port *int64 `min:"1" type:"integer"`
- // The protocol to use for routing traffic to the targets.
- Protocol *string `type:"string" enum:"ProtocolEnum"`
- // The Amazon Resource Name (ARN) of the target group.
- TargetGroupArn *string `type:"string"`
- // The name of the target group.
- TargetGroupName *string `type:"string"`
- // The type of target that you must specify when registering targets with this
- // target group. The possible values are instance (targets are specified by
- // instance ID) or ip (targets are specified by IP address).
- TargetType *string `type:"string" enum:"TargetTypeEnum"`
- // The number of consecutive health check failures required before considering
- // the target unhealthy.
- UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
- // The ID of the VPC for the targets.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s TargetGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TargetGroup) GoString() string {
- return s.String()
- }
- // SetHealthCheckEnabled sets the HealthCheckEnabled field's value.
- func (s *TargetGroup) SetHealthCheckEnabled(v bool) *TargetGroup {
- s.HealthCheckEnabled = &v
- return s
- }
- // SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value.
- func (s *TargetGroup) SetHealthCheckIntervalSeconds(v int64) *TargetGroup {
- s.HealthCheckIntervalSeconds = &v
- return s
- }
- // SetHealthCheckPath sets the HealthCheckPath field's value.
- func (s *TargetGroup) SetHealthCheckPath(v string) *TargetGroup {
- s.HealthCheckPath = &v
- return s
- }
- // SetHealthCheckPort sets the HealthCheckPort field's value.
- func (s *TargetGroup) SetHealthCheckPort(v string) *TargetGroup {
- s.HealthCheckPort = &v
- return s
- }
- // SetHealthCheckProtocol sets the HealthCheckProtocol field's value.
- func (s *TargetGroup) SetHealthCheckProtocol(v string) *TargetGroup {
- s.HealthCheckProtocol = &v
- return s
- }
- // SetHealthCheckTimeoutSeconds sets the HealthCheckTimeoutSeconds field's value.
- func (s *TargetGroup) SetHealthCheckTimeoutSeconds(v int64) *TargetGroup {
- s.HealthCheckTimeoutSeconds = &v
- return s
- }
- // SetHealthyThresholdCount sets the HealthyThresholdCount field's value.
- func (s *TargetGroup) SetHealthyThresholdCount(v int64) *TargetGroup {
- s.HealthyThresholdCount = &v
- return s
- }
- // SetLoadBalancerArns sets the LoadBalancerArns field's value.
- func (s *TargetGroup) SetLoadBalancerArns(v []*string) *TargetGroup {
- s.LoadBalancerArns = v
- return s
- }
- // SetMatcher sets the Matcher field's value.
- func (s *TargetGroup) SetMatcher(v *Matcher) *TargetGroup {
- s.Matcher = v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *TargetGroup) SetPort(v int64) *TargetGroup {
- s.Port = &v
- return s
- }
- // SetProtocol sets the Protocol field's value.
- func (s *TargetGroup) SetProtocol(v string) *TargetGroup {
- s.Protocol = &v
- return s
- }
- // SetTargetGroupArn sets the TargetGroupArn field's value.
- func (s *TargetGroup) SetTargetGroupArn(v string) *TargetGroup {
- s.TargetGroupArn = &v
- return s
- }
- // SetTargetGroupName sets the TargetGroupName field's value.
- func (s *TargetGroup) SetTargetGroupName(v string) *TargetGroup {
- s.TargetGroupName = &v
- return s
- }
- // SetTargetType sets the TargetType field's value.
- func (s *TargetGroup) SetTargetType(v string) *TargetGroup {
- s.TargetType = &v
- return s
- }
- // SetUnhealthyThresholdCount sets the UnhealthyThresholdCount field's value.
- func (s *TargetGroup) SetUnhealthyThresholdCount(v int64) *TargetGroup {
- s.UnhealthyThresholdCount = &v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *TargetGroup) SetVpcId(v string) *TargetGroup {
- s.VpcId = &v
- return s
- }
- // Information about a target group attribute.
- type TargetGroupAttribute struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- //
- // The following attribute is supported by both Application Load Balancers and
- // Network Load Balancers:
- //
- // * deregistration_delay.timeout_seconds - The amount of time, in seconds,
- // for Elastic Load Balancing to wait before changing the state of a deregistering
- // target from draining to unused. The range is 0-3600 seconds. The default
- // value is 300 seconds. If the target is a Lambda function, this attribute
- // is not supported.
- //
- // The following attributes are supported by Application Load Balancers if the
- // target is not a Lambda function:
- //
- // * slow_start.duration_seconds - The time period, in seconds, during which
- // a newly registered target receives a linearly increasing share of the
- // traffic to the target group. After this time period ends, the target receives
- // its full share of traffic. The range is 30-900 seconds (15 minutes). Slow
- // start mode is disabled by default.
- //
- // * stickiness.enabled - Indicates whether sticky sessions are enabled.
- // The value is true or false. The default is false.
- //
- // * stickiness.type - The type of sticky sessions. The possible value is
- // lb_cookie.
- //
- // * stickiness.lb_cookie.duration_seconds - The time period, in seconds,
- // during which requests from a client should be routed to the same target.
- // After this time period expires, the load balancer-generated cookie is
- // considered stale. The range is 1 second to 1 week (604800 seconds). The
- // default value is 1 day (86400 seconds).
- //
- // The following attribute is supported only if the target is a Lambda function.
- //
- // * lambda.multi_value_headers.enabled - Indicates whether the request and
- // response headers exchanged between the load balancer and the Lambda function
- // include arrays of values or strings. The value is true or false. The default
- // is false. If the value is false and the request contains a duplicate header
- // field name or query parameter key, the load balancer uses the last value
- // sent by the client.
- //
- // The following attribute is supported only by Network Load Balancers:
- //
- // * proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version
- // 2 is enabled. The value is true or false. The default is false.
- Key *string `type:"string"`
- // The value of the attribute.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s TargetGroupAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TargetGroupAttribute) GoString() string {
- return s.String()
- }
- // SetKey sets the Key field's value.
- func (s *TargetGroupAttribute) SetKey(v string) *TargetGroupAttribute {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *TargetGroupAttribute) SetValue(v string) *TargetGroupAttribute {
- s.Value = &v
- return s
- }
- // Information about the current health of a target.
- type TargetHealth struct {
- _ struct{} `type:"structure"`
- // A description of the target health that provides additional details. If the
- // state is healthy, a description is not provided.
- Description *string `type:"string"`
- // The reason code.
- //
- // If the target state is healthy, a reason code is not provided.
- //
- // If the target state is initial, the reason code can be one of the following
- // values:
- //
- // * Elb.RegistrationInProgress - The target is in the process of being registered
- // with the load balancer.
- //
- // * Elb.InitialHealthChecking - The load balancer is still sending the target
- // the minimum number of health checks required to determine its health status.
- //
- // If the target state is unhealthy, the reason code can be one of the following
- // values:
- //
- // * Target.ResponseCodeMismatch - The health checks did not return an expected
- // HTTP code.
- //
- // * Target.Timeout - The health check requests timed out.
- //
- // * Target.FailedHealthChecks - The health checks failed because the connection
- // to the target timed out, the target response was malformed, or the target
- // failed the health check for an unknown reason.
- //
- // * Elb.InternalError - The health checks failed due to an internal error.
- //
- // If the target state is unused, the reason code can be one of the following
- // values:
- //
- // * Target.NotRegistered - The target is not registered with the target
- // group.
- //
- // * Target.NotInUse - The target group is not used by any load balancer
- // or the target is in an Availability Zone that is not enabled for its load
- // balancer.
- //
- // * Target.IpUnusable - The target IP address is reserved for use by a load
- // balancer.
- //
- // * Target.InvalidState - The target is in the stopped or terminated state.
- //
- // If the target state is draining, the reason code can be the following value:
- //
- // * Target.DeregistrationInProgress - The target is in the process of being
- // deregistered and the deregistration delay period has not expired.
- //
- // If the target state is unavailable, the reason code can be the following
- // value:
- //
- // * Target.HealthCheckDisabled - Health checks are disabled for the target
- // group.
- Reason *string `type:"string" enum:"TargetHealthReasonEnum"`
- // The state of the target.
- State *string `type:"string" enum:"TargetHealthStateEnum"`
- }
- // String returns the string representation
- func (s TargetHealth) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TargetHealth) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *TargetHealth) SetDescription(v string) *TargetHealth {
- s.Description = &v
- return s
- }
- // SetReason sets the Reason field's value.
- func (s *TargetHealth) SetReason(v string) *TargetHealth {
- s.Reason = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *TargetHealth) SetState(v string) *TargetHealth {
- s.State = &v
- return s
- }
- // Information about the health of a target.
- type TargetHealthDescription struct {
- _ struct{} `type:"structure"`
- // The port to use to connect with the target.
- HealthCheckPort *string `type:"string"`
- // The description of the target.
- Target *TargetDescription `type:"structure"`
- // The health information for the target.
- TargetHealth *TargetHealth `type:"structure"`
- }
- // String returns the string representation
- func (s TargetHealthDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TargetHealthDescription) GoString() string {
- return s.String()
- }
- // SetHealthCheckPort sets the HealthCheckPort field's value.
- func (s *TargetHealthDescription) SetHealthCheckPort(v string) *TargetHealthDescription {
- s.HealthCheckPort = &v
- return s
- }
- // SetTarget sets the Target field's value.
- func (s *TargetHealthDescription) SetTarget(v *TargetDescription) *TargetHealthDescription {
- s.Target = v
- return s
- }
- // SetTargetHealth sets the TargetHealth field's value.
- func (s *TargetHealthDescription) SetTargetHealth(v *TargetHealth) *TargetHealthDescription {
- s.TargetHealth = v
- return s
- }
- const (
- // ActionTypeEnumForward is a ActionTypeEnum enum value
- ActionTypeEnumForward = "forward"
- // ActionTypeEnumAuthenticateOidc is a ActionTypeEnum enum value
- ActionTypeEnumAuthenticateOidc = "authenticate-oidc"
- // ActionTypeEnumAuthenticateCognito is a ActionTypeEnum enum value
- ActionTypeEnumAuthenticateCognito = "authenticate-cognito"
- // ActionTypeEnumRedirect is a ActionTypeEnum enum value
- ActionTypeEnumRedirect = "redirect"
- // ActionTypeEnumFixedResponse is a ActionTypeEnum enum value
- ActionTypeEnumFixedResponse = "fixed-response"
- )
- const (
- // AuthenticateCognitoActionConditionalBehaviorEnumDeny is a AuthenticateCognitoActionConditionalBehaviorEnum enum value
- AuthenticateCognitoActionConditionalBehaviorEnumDeny = "deny"
- // AuthenticateCognitoActionConditionalBehaviorEnumAllow is a AuthenticateCognitoActionConditionalBehaviorEnum enum value
- AuthenticateCognitoActionConditionalBehaviorEnumAllow = "allow"
- // AuthenticateCognitoActionConditionalBehaviorEnumAuthenticate is a AuthenticateCognitoActionConditionalBehaviorEnum enum value
- AuthenticateCognitoActionConditionalBehaviorEnumAuthenticate = "authenticate"
- )
- const (
- // AuthenticateOidcActionConditionalBehaviorEnumDeny is a AuthenticateOidcActionConditionalBehaviorEnum enum value
- AuthenticateOidcActionConditionalBehaviorEnumDeny = "deny"
- // AuthenticateOidcActionConditionalBehaviorEnumAllow is a AuthenticateOidcActionConditionalBehaviorEnum enum value
- AuthenticateOidcActionConditionalBehaviorEnumAllow = "allow"
- // AuthenticateOidcActionConditionalBehaviorEnumAuthenticate is a AuthenticateOidcActionConditionalBehaviorEnum enum value
- AuthenticateOidcActionConditionalBehaviorEnumAuthenticate = "authenticate"
- )
- const (
- // IpAddressTypeIpv4 is a IpAddressType enum value
- IpAddressTypeIpv4 = "ipv4"
- // IpAddressTypeDualstack is a IpAddressType enum value
- IpAddressTypeDualstack = "dualstack"
- )
- const (
- // LoadBalancerSchemeEnumInternetFacing is a LoadBalancerSchemeEnum enum value
- LoadBalancerSchemeEnumInternetFacing = "internet-facing"
- // LoadBalancerSchemeEnumInternal is a LoadBalancerSchemeEnum enum value
- LoadBalancerSchemeEnumInternal = "internal"
- )
- const (
- // LoadBalancerStateEnumActive is a LoadBalancerStateEnum enum value
- LoadBalancerStateEnumActive = "active"
- // LoadBalancerStateEnumProvisioning is a LoadBalancerStateEnum enum value
- LoadBalancerStateEnumProvisioning = "provisioning"
- // LoadBalancerStateEnumActiveImpaired is a LoadBalancerStateEnum enum value
- LoadBalancerStateEnumActiveImpaired = "active_impaired"
- // LoadBalancerStateEnumFailed is a LoadBalancerStateEnum enum value
- LoadBalancerStateEnumFailed = "failed"
- )
- const (
- // LoadBalancerTypeEnumApplication is a LoadBalancerTypeEnum enum value
- LoadBalancerTypeEnumApplication = "application"
- // LoadBalancerTypeEnumNetwork is a LoadBalancerTypeEnum enum value
- LoadBalancerTypeEnumNetwork = "network"
- )
- const (
- // ProtocolEnumHttp is a ProtocolEnum enum value
- ProtocolEnumHttp = "HTTP"
- // ProtocolEnumHttps is a ProtocolEnum enum value
- ProtocolEnumHttps = "HTTPS"
- // ProtocolEnumTcp is a ProtocolEnum enum value
- ProtocolEnumTcp = "TCP"
- // ProtocolEnumTls is a ProtocolEnum enum value
- ProtocolEnumTls = "TLS"
- )
- const (
- // RedirectActionStatusCodeEnumHttp301 is a RedirectActionStatusCodeEnum enum value
- RedirectActionStatusCodeEnumHttp301 = "HTTP_301"
- // RedirectActionStatusCodeEnumHttp302 is a RedirectActionStatusCodeEnum enum value
- RedirectActionStatusCodeEnumHttp302 = "HTTP_302"
- )
- const (
- // TargetHealthReasonEnumElbRegistrationInProgress is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumElbRegistrationInProgress = "Elb.RegistrationInProgress"
- // TargetHealthReasonEnumElbInitialHealthChecking is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumElbInitialHealthChecking = "Elb.InitialHealthChecking"
- // TargetHealthReasonEnumTargetResponseCodeMismatch is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetResponseCodeMismatch = "Target.ResponseCodeMismatch"
- // TargetHealthReasonEnumTargetTimeout is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetTimeout = "Target.Timeout"
- // TargetHealthReasonEnumTargetFailedHealthChecks is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetFailedHealthChecks = "Target.FailedHealthChecks"
- // TargetHealthReasonEnumTargetNotRegistered is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetNotRegistered = "Target.NotRegistered"
- // TargetHealthReasonEnumTargetNotInUse is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetNotInUse = "Target.NotInUse"
- // TargetHealthReasonEnumTargetDeregistrationInProgress is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetDeregistrationInProgress = "Target.DeregistrationInProgress"
- // TargetHealthReasonEnumTargetInvalidState is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetInvalidState = "Target.InvalidState"
- // TargetHealthReasonEnumTargetIpUnusable is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetIpUnusable = "Target.IpUnusable"
- // TargetHealthReasonEnumTargetHealthCheckDisabled is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumTargetHealthCheckDisabled = "Target.HealthCheckDisabled"
- // TargetHealthReasonEnumElbInternalError is a TargetHealthReasonEnum enum value
- TargetHealthReasonEnumElbInternalError = "Elb.InternalError"
- )
- const (
- // TargetHealthStateEnumInitial is a TargetHealthStateEnum enum value
- TargetHealthStateEnumInitial = "initial"
- // TargetHealthStateEnumHealthy is a TargetHealthStateEnum enum value
- TargetHealthStateEnumHealthy = "healthy"
- // TargetHealthStateEnumUnhealthy is a TargetHealthStateEnum enum value
- TargetHealthStateEnumUnhealthy = "unhealthy"
- // TargetHealthStateEnumUnused is a TargetHealthStateEnum enum value
- TargetHealthStateEnumUnused = "unused"
- // TargetHealthStateEnumDraining is a TargetHealthStateEnum enum value
- TargetHealthStateEnumDraining = "draining"
- // TargetHealthStateEnumUnavailable is a TargetHealthStateEnum enum value
- TargetHealthStateEnumUnavailable = "unavailable"
- )
- const (
- // TargetTypeEnumInstance is a TargetTypeEnum enum value
- TargetTypeEnumInstance = "instance"
- // TargetTypeEnumIp is a TargetTypeEnum enum value
- TargetTypeEnumIp = "ip"
- // TargetTypeEnumLambda is a TargetTypeEnum enum value
- TargetTypeEnumLambda = "lambda"
- )
|