123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package elb provides a client for Elastic Load Balancing.
- package elb
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opAddTags = "AddTags"
- // AddTagsRequest generates a "aws/request.Request" representing the
- // client's request for the AddTags operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See AddTags for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddTags method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
- op := &request.Operation{
- Name: opAddTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddTagsOutput{}
- req.Data = output
- return
- }
- // AddTags API operation for Elastic Load Balancing.
- //
- // Adds the specified tags to the specified load balancer. Each load balancer
- // can have a maximum of 10 tags.
- //
- // Each tag consists of a key and an optional value. If a tag with the same
- // key is already associated with the load balancer, AddTags updates its value.
- //
- // For more information, see Tag Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
- // in the Classic 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 AddTags for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * TooManyTags
- // The quota for the number of tags that can be assigned to a load balancer
- // has been reached.
- //
- // * DuplicateTagKeys
- // A tag key was specified more than once.
- //
- func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- err := req.Send()
- return out, err
- }
- const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer"
- // ApplySecurityGroupsToLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the ApplySecurityGroupsToLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ApplySecurityGroupsToLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ApplySecurityGroupsToLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ApplySecurityGroupsToLoadBalancerRequest method.
- // req, resp := client.ApplySecurityGroupsToLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) {
- op := &request.Operation{
- Name: opApplySecurityGroupsToLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ApplySecurityGroupsToLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ApplySecurityGroupsToLoadBalancerOutput{}
- req.Data = output
- return
- }
- // ApplySecurityGroupsToLoadBalancer API operation for Elastic Load Balancing.
- //
- // Associates one or more security groups with your load balancer in a virtual
- // private cloud (VPC). The specified security groups override the previously
- // associated security groups.
- //
- // For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#elb-vpc-security-groups)
- // in the Classic 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 ApplySecurityGroupsToLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- // * InvalidSecurityGroup
- // One or more of the specified security groups do not exist.
- //
- func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) {
- req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets"
- // AttachLoadBalancerToSubnetsRequest generates a "aws/request.Request" representing the
- // client's request for the AttachLoadBalancerToSubnets operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See AttachLoadBalancerToSubnets for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AttachLoadBalancerToSubnets method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AttachLoadBalancerToSubnetsRequest method.
- // req, resp := client.AttachLoadBalancerToSubnetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) {
- op := &request.Operation{
- Name: opAttachLoadBalancerToSubnets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AttachLoadBalancerToSubnetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AttachLoadBalancerToSubnetsOutput{}
- req.Data = output
- return
- }
- // AttachLoadBalancerToSubnets API operation for Elastic Load Balancing.
- //
- // Adds one or more subnets to the set of configured subnets for the specified
- // load balancer.
- //
- // The load balancer evenly distributes requests across all registered subnets.
- // For more information, see Add or Remove Subnets for Your Load Balancer in
- // a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-manage-subnets.html)
- // in the Classic 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 AttachLoadBalancerToSubnets for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- // * SubnetNotFound
- // One or more of the specified subnets do not exist.
- //
- // * InvalidSubnet
- // The specified VPC has no associated Internet gateway.
- //
- func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) {
- req, out := c.AttachLoadBalancerToSubnetsRequest(input)
- err := req.Send()
- return out, err
- }
- const opConfigureHealthCheck = "ConfigureHealthCheck"
- // ConfigureHealthCheckRequest generates a "aws/request.Request" representing the
- // client's request for the ConfigureHealthCheck operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ConfigureHealthCheck for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ConfigureHealthCheck method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ConfigureHealthCheckRequest method.
- // req, resp := client.ConfigureHealthCheckRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) {
- op := &request.Operation{
- Name: opConfigureHealthCheck,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ConfigureHealthCheckInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ConfigureHealthCheckOutput{}
- req.Data = output
- return
- }
- // ConfigureHealthCheck API operation for Elastic Load Balancing.
- //
- // Specifies the health check settings to use when evaluating the health state
- // of your EC2 instances.
- //
- // For more information, see Configure Health Checks for Your Load Balancer
- // (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html)
- // in the Classic 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 ConfigureHealthCheck for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) {
- req, out := c.ConfigureHealthCheckRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy"
- // CreateAppCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the CreateAppCookieStickinessPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateAppCookieStickinessPolicy for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateAppCookieStickinessPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateAppCookieStickinessPolicyRequest method.
- // req, resp := client.CreateAppCookieStickinessPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) {
- op := &request.Operation{
- Name: opCreateAppCookieStickinessPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAppCookieStickinessPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateAppCookieStickinessPolicyOutput{}
- req.Data = output
- return
- }
- // CreateAppCookieStickinessPolicy API operation for Elastic Load Balancing.
- //
- // Generates a stickiness policy with sticky session lifetimes that follow that
- // of an application-generated cookie. This policy can be associated only with
- // HTTP/HTTPS listeners.
- //
- // This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
- // except that the lifetime of the special Elastic Load Balancing cookie, AWSELB,
- // follows the lifetime of the application-generated cookie specified in the
- // policy configuration. The load balancer only inserts a new stickiness cookie
- // when the application response includes a new application cookie.
- //
- // If the application cookie is explicitly removed or expires, the session stops
- // being sticky until a new application cookie is issued.
- //
- // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
- // in the Classic 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 CreateAppCookieStickinessPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * DuplicatePolicyName
- // A policy with the specified name already exists for this load balancer.
- //
- // * TooManyPolicies
- // The quota for the number of policies for this load balancer has been reached.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) {
- req, out := c.CreateAppCookieStickinessPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy"
- // CreateLBCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLBCookieStickinessPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateLBCookieStickinessPolicy for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateLBCookieStickinessPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateLBCookieStickinessPolicyRequest method.
- // req, resp := client.CreateLBCookieStickinessPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) {
- op := &request.Operation{
- Name: opCreateLBCookieStickinessPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLBCookieStickinessPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLBCookieStickinessPolicyOutput{}
- req.Data = output
- return
- }
- // CreateLBCookieStickinessPolicy API operation for Elastic Load Balancing.
- //
- // Generates a stickiness policy with sticky session lifetimes controlled by
- // the lifetime of the browser (user-agent) or a specified expiration period.
- // This policy can be associated only with HTTP/HTTPS listeners.
- //
- // When a load balancer implements this policy, the load balancer uses a special
- // cookie to track the instance for each request. When the load balancer receives
- // a request, it first checks to see if this cookie is present in the request.
- // If so, the load balancer sends the request to the application server specified
- // in the cookie. If not, the load balancer sends the request to a server that
- // is chosen based on the existing load-balancing algorithm.
- //
- // A cookie is inserted into the response for binding subsequent requests from
- // the same user to that server. The validity of the cookie is based on the
- // cookie expiration time, which is specified in the policy configuration.
- //
- // For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration)
- // in the Classic 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 CreateLBCookieStickinessPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * DuplicatePolicyName
- // A policy with the specified name already exists for this load balancer.
- //
- // * TooManyPolicies
- // The quota for the number of policies for this load balancer has been reached.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) {
- req, out := c.CreateLBCookieStickinessPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLoadBalancer = "CreateLoadBalancer"
- // CreateLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLoadBalancerOutput{}
- req.Data = output
- return
- }
- // CreateLoadBalancer API operation for Elastic Load Balancing.
- //
- // Creates a Classic load balancer.
- //
- // You can add listeners, security groups, subnets, and tags when you create
- // your load balancer, or you can add them later using CreateLoadBalancerListeners,
- // ApplySecurityGroupsToLoadBalancer, AttachLoadBalancerToSubnets, and AddTags.
- //
- // To describe your current load balancers, see DescribeLoadBalancers. When
- // you are finished with a load balancer, you can delete it using DeleteLoadBalancer.
- //
- // You can create up to 20 load balancers per region per account. You can request
- // an increase for the number of load balancers for your account. For more information,
- // see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html)
- // in the Classic 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:
- // * DuplicateLoadBalancerName
- // The specified load balancer name already exists for this account.
- //
- // * TooManyLoadBalancers
- // The quota for the number of load balancers has been reached.
- //
- // * CertificateNotFound
- // The specified ARN does not refer to a valid SSL certificate in AWS Identity
- // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
- // you recently uploaded the certificate to IAM, this error might indicate that
- // the certificate is not fully available yet.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- // * SubnetNotFound
- // One or more of the specified subnets do not exist.
- //
- // * InvalidSubnet
- // The specified VPC has no associated Internet gateway.
- //
- // * InvalidSecurityGroup
- // One or more of the specified security groups do not exist.
- //
- // * InvalidScheme
- // The specified value for the schema is not valid. You can only specify a scheme
- // for load balancers in a VPC.
- //
- // * TooManyTags
- // The quota for the number of tags that can be assigned to a load balancer
- // has been reached.
- //
- // * DuplicateTagKeys
- // A tag key was specified more than once.
- //
- // * UnsupportedProtocol
- //
- func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
- req, out := c.CreateLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners"
- // CreateLoadBalancerListenersRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLoadBalancerListeners operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateLoadBalancerListeners for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateLoadBalancerListeners method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateLoadBalancerListenersRequest method.
- // req, resp := client.CreateLoadBalancerListenersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancerListeners,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerListenersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLoadBalancerListenersOutput{}
- req.Data = output
- return
- }
- // CreateLoadBalancerListeners API operation for Elastic Load Balancing.
- //
- // Creates one or more listeners for the specified load balancer. If a listener
- // with the specified port does not already exist, it is created; otherwise,
- // the properties of the new listener must match the properties of the existing
- // listener.
- //
- // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
- // in the Classic 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 CreateLoadBalancerListeners for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * DuplicateListener
- // A listener already exists for the specified load balancer name and port,
- // but with a different instance port, protocol, or SSL certificate.
- //
- // * CertificateNotFound
- // The specified ARN does not refer to a valid SSL certificate in AWS Identity
- // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
- // you recently uploaded the certificate to IAM, this error might indicate that
- // the certificate is not fully available yet.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- // * UnsupportedProtocol
- //
- func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) {
- req, out := c.CreateLoadBalancerListenersRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy"
- // CreateLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLoadBalancerPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateLoadBalancerPolicy for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateLoadBalancerPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateLoadBalancerPolicyRequest method.
- // req, resp := client.CreateLoadBalancerPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancerPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLoadBalancerPolicyOutput{}
- req.Data = output
- return
- }
- // CreateLoadBalancerPolicy API operation for Elastic Load Balancing.
- //
- // Creates a policy with the specified attributes for the specified load balancer.
- //
- // Policies are settings that are saved for your load balancer and that can
- // be applied to the listener or the application server, depending on the policy
- // type.
- //
- // 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 CreateLoadBalancerPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * PolicyTypeNotFound
- // One or more of the specified policy types do not exist.
- //
- // * DuplicatePolicyName
- // A policy with the specified name already exists for this load balancer.
- //
- // * TooManyPolicies
- // The quota for the number of policies for this load balancer has been reached.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) {
- req, out := c.CreateLoadBalancerPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLoadBalancer = "DeleteLoadBalancer"
- // DeleteLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeleteLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLoadBalancerOutput{}
- req.Data = output
- return
- }
- // DeleteLoadBalancer API operation for Elastic Load Balancing.
- //
- // Deletes the specified load balancer.
- //
- // If you are attempting to recreate a load balancer, you must reconfigure all
- // settings. The DNS name associated with a deleted load balancer are no longer
- // usable. The name and associated DNS record of the deleted load balancer no
- // longer exist and traffic sent to any of its IP addresses is no longer delivered
- // to your instances.
- //
- // If the load balancer does not exist or has already been deleted, the call
- // to DeleteLoadBalancer still succeeds.
- //
- // 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.
- func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
- req, out := c.DeleteLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners"
- // DeleteLoadBalancerListenersRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteLoadBalancerListeners operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeleteLoadBalancerListeners for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteLoadBalancerListeners method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteLoadBalancerListenersRequest method.
- // req, resp := client.DeleteLoadBalancerListenersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancerListeners,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerListenersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLoadBalancerListenersOutput{}
- req.Data = output
- return
- }
- // DeleteLoadBalancerListeners API operation for Elastic Load Balancing.
- //
- // Deletes the specified listeners from the specified 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 DeleteLoadBalancerListeners for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) {
- req, out := c.DeleteLoadBalancerListenersRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy"
- // DeleteLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteLoadBalancerPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeleteLoadBalancerPolicy for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteLoadBalancerPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteLoadBalancerPolicyRequest method.
- // req, resp := client.DeleteLoadBalancerPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancerPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLoadBalancerPolicyOutput{}
- req.Data = output
- return
- }
- // DeleteLoadBalancerPolicy API operation for Elastic Load Balancing.
- //
- // Deletes the specified policy from the specified load balancer. This policy
- // must not be enabled for any 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 DeleteLoadBalancerPolicy for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) {
- req, out := c.DeleteLoadBalancerPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalancer"
- // DeregisterInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the DeregisterInstancesFromLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeregisterInstancesFromLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeregisterInstancesFromLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeregisterInstancesFromLoadBalancerRequest method.
- // req, resp := client.DeregisterInstancesFromLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDeregisterInstancesFromLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeregisterInstancesFromLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeregisterInstancesFromLoadBalancerOutput{}
- req.Data = output
- return
- }
- // DeregisterInstancesFromLoadBalancer API operation for Elastic Load Balancing.
- //
- // Deregisters the specified instances from the specified load balancer. After
- // the instance is deregistered, it no longer receives traffic from the load
- // balancer.
- //
- // You can use DescribeLoadBalancers to verify that the instance is deregistered
- // from the load balancer.
- //
- // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
- // in the Classic 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 DeregisterInstancesFromLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidInstance
- // The specified endpoint is not valid.
- //
- func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) {
- req, out := c.DeregisterInstancesFromLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeInstanceHealth = "DescribeInstanceHealth"
- // DescribeInstanceHealthRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeInstanceHealth operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DescribeInstanceHealth for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeInstanceHealth method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeInstanceHealthRequest method.
- // req, resp := client.DescribeInstanceHealthRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) {
- op := &request.Operation{
- Name: opDescribeInstanceHealth,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeInstanceHealthInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeInstanceHealthOutput{}
- req.Data = output
- return
- }
- // DescribeInstanceHealth API operation for Elastic Load Balancing.
- //
- // Describes the state of the specified instances with respect to the specified
- // load balancer. If no instances are specified, the call describes the state
- // of all instances that are currently registered with the load balancer. If
- // instances are specified, their state is returned even if they are no longer
- // registered with the load balancer. The state of terminated instances is not
- // returned.
- //
- // 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 DescribeInstanceHealth for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidInstance
- // The specified endpoint is not valid.
- //
- func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) {
- req, out := c.DescribeInstanceHealthRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
- // DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoadBalancerAttributes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DescribeLoadBalancerAttributes for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeLoadBalancerAttributes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancerAttributesOutput{}
- req.Data = output
- return
- }
- // DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.
- //
- // Describes the attributes for the specified 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 DescribeLoadBalancerAttributes for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * LoadBalancerAttributeNotFound
- // The specified load balancer attribute does not exist.
- //
- func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
- req, out := c.DescribeLoadBalancerAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies"
- // DescribeLoadBalancerPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoadBalancerPolicies operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DescribeLoadBalancerPolicies for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeLoadBalancerPolicies method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeLoadBalancerPoliciesRequest method.
- // req, resp := client.DescribeLoadBalancerPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerPolicies,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerPoliciesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancerPoliciesOutput{}
- req.Data = output
- return
- }
- // DescribeLoadBalancerPolicies API operation for Elastic Load Balancing.
- //
- // Describes the specified policies.
- //
- // If you specify a load balancer name, the action returns the descriptions
- // of all policies created for the load balancer. If you specify a policy name
- // associated with your load balancer, the action returns the description of
- // that policy. If you don't specify a load balancer name, the action returns
- // descriptions of the specified sample policies, or descriptions of all sample
- // policies. The names of the sample policies have the ELBSample- prefix.
- //
- // 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 DescribeLoadBalancerPolicies for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * PolicyNotFound
- // One or more of the specified policies do not exist.
- //
- func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) {
- req, out := c.DescribeLoadBalancerPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes"
- // DescribeLoadBalancerPolicyTypesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoadBalancerPolicyTypes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DescribeLoadBalancerPolicyTypes for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeLoadBalancerPolicyTypes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeLoadBalancerPolicyTypesRequest method.
- // req, resp := client.DescribeLoadBalancerPolicyTypesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerPolicyTypes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerPolicyTypesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancerPolicyTypesOutput{}
- req.Data = output
- return
- }
- // DescribeLoadBalancerPolicyTypes API operation for Elastic Load Balancing.
- //
- // Describes the specified load balancer policy types or all load balancer policy
- // types.
- //
- // The description of each type indicates how it can be used. For example, some
- // policies can be used only with layer 7 listeners, some policies can be used
- // only with layer 4 listeners, and some policies can be used only with your
- // EC2 instances.
- //
- // You can use CreateLoadBalancerPolicy to create a policy configuration for
- // any of these policy types. Then, depending on the policy type, use either
- // SetLoadBalancerPoliciesOfListener or SetLoadBalancerPoliciesForBackendServer
- // to set the policy.
- //
- // 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 DescribeLoadBalancerPolicyTypes for usage and error information.
- //
- // Returned Error Codes:
- // * PolicyTypeNotFound
- // One or more of the specified policy types do not exist.
- //
- func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) {
- req, out := c.DescribeLoadBalancerPolicyTypesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancers = "DescribeLoadBalancers"
- // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoadBalancers operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DescribeLoadBalancers for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeLoadBalancers method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) 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{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancersOutput{}
- req.Data = output
- return
- }
- // DescribeLoadBalancers API operation for Elastic Load Balancing.
- //
- // Describes the specified the load balancers. If no load balancers are specified,
- // the call describes all of your load balancers.
- //
- // 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:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * DependencyThrottle
- //
- func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
- req, out := c.DescribeLoadBalancersRequest(input)
- err := req.Send()
- return out, err
- }
- // 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 *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeLoadBalancersRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeLoadBalancersOutput), lastPage)
- })
- }
- const opDescribeTags = "DescribeTags"
- // DescribeTagsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTags operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DescribeTags for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeTags method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
- op := &request.Operation{
- Name: opDescribeTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTagsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeTagsOutput{}
- req.Data = output
- return
- }
- // DescribeTags API operation for Elastic Load Balancing.
- //
- // Describes the tags associated with the specified load balancers.
- //
- // 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:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
- req, out := c.DescribeTagsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
- // DetachLoadBalancerFromSubnetsRequest generates a "aws/request.Request" representing the
- // client's request for the DetachLoadBalancerFromSubnets operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DetachLoadBalancerFromSubnets for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DetachLoadBalancerFromSubnets method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DetachLoadBalancerFromSubnetsRequest method.
- // req, resp := client.DetachLoadBalancerFromSubnetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
- op := &request.Operation{
- Name: opDetachLoadBalancerFromSubnets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DetachLoadBalancerFromSubnetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DetachLoadBalancerFromSubnetsOutput{}
- req.Data = output
- return
- }
- // DetachLoadBalancerFromSubnets API operation for Elastic Load Balancing.
- //
- // Removes the specified subnets from the set of configured subnets for the
- // load balancer.
- //
- // After a subnet is removed, all EC2 instances registered with the load balancer
- // in the removed subnet go into the OutOfService state. Then, the load balancer
- // balances the traffic among the remaining routable subnets.
- //
- // 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 DetachLoadBalancerFromSubnets for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) {
- req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
- // DisableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the DisableAvailabilityZonesForLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DisableAvailabilityZonesForLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DisableAvailabilityZonesForLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DisableAvailabilityZonesForLoadBalancerRequest method.
- // req, resp := client.DisableAvailabilityZonesForLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDisableAvailabilityZonesForLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableAvailabilityZonesForLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DisableAvailabilityZonesForLoadBalancerOutput{}
- req.Data = output
- return
- }
- // DisableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
- //
- // Removes the specified Availability Zones from the set of Availability Zones
- // for the specified load balancer.
- //
- // There must be at least one Availability Zone registered with a load balancer
- // at all times. After an Availability Zone is removed, all instances registered
- // with the load balancer that are in the removed Availability Zone go into
- // the OutOfService state. Then, the load balancer attempts to equally balance
- // the traffic among its remaining Availability Zones.
- //
- // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
- // in the Classic 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 DisableAvailabilityZonesForLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
- req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
- // EnableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the EnableAvailabilityZonesForLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See EnableAvailabilityZonesForLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the EnableAvailabilityZonesForLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the EnableAvailabilityZonesForLoadBalancerRequest method.
- // req, resp := client.EnableAvailabilityZonesForLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
- op := &request.Operation{
- Name: opEnableAvailabilityZonesForLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableAvailabilityZonesForLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &EnableAvailabilityZonesForLoadBalancerOutput{}
- req.Data = output
- return
- }
- // EnableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
- //
- // Adds the specified Availability Zones to the set of Availability Zones for
- // the specified load balancer.
- //
- // The load balancer evenly distributes requests across all its registered Availability
- // Zones that contain instances.
- //
- // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
- // in the Classic 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 EnableAvailabilityZonesForLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
- req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
- // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyLoadBalancerAttributes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ModifyLoadBalancerAttributes for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ModifyLoadBalancerAttributes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
- op := &request.Operation{
- Name: opModifyLoadBalancerAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyLoadBalancerAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ModifyLoadBalancerAttributesOutput{}
- req.Data = output
- return
- }
- // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.
- //
- // Modifies the attributes of the specified load balancer.
- //
- // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining,
- // and CrossZoneLoadBalancing by either enabling or disabling them. Or, you
- // can modify the load balancer attribute ConnectionSettings by specifying an
- // idle connection timeout value for your load balancer.
- //
- // For more information, see the following in the Classic Load Balancers Guide:
- //
- // * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
- //
- // * Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
- //
- // * Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html)
- //
- // * Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
- //
- // 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:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * LoadBalancerAttributeNotFound
- // The specified load balancer attribute does not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
- req, out := c.ModifyLoadBalancerAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
- // RegisterInstancesWithLoadBalancerRequest generates a "aws/request.Request" representing the
- // client's request for the RegisterInstancesWithLoadBalancer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See RegisterInstancesWithLoadBalancer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RegisterInstancesWithLoadBalancer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RegisterInstancesWithLoadBalancerRequest method.
- // req, resp := client.RegisterInstancesWithLoadBalancerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
- op := &request.Operation{
- Name: opRegisterInstancesWithLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RegisterInstancesWithLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RegisterInstancesWithLoadBalancerOutput{}
- req.Data = output
- return
- }
- // RegisterInstancesWithLoadBalancer API operation for Elastic Load Balancing.
- //
- // Adds the specified instances to the specified load balancer.
- //
- // The instance must be a running instance in the same network as the load balancer
- // (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load
- // balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic
- // instances to that VPC and then register the linked EC2-Classic instances
- // with the load balancer in the VPC.
- //
- // Note that RegisterInstanceWithLoadBalancer completes when the request has
- // been registered. Instance registration takes a little time to complete. To
- // check the state of the registered instances, use DescribeLoadBalancers or
- // DescribeInstanceHealth.
- //
- // After the instance is registered, it starts receiving traffic and requests
- // from the load balancer. Any instance that is not in one of the Availability
- // Zones registered for the load balancer is moved to the OutOfService state.
- // If an Availability Zone is added to the load balancer later, any instances
- // registered with the load balancer move to the InService state.
- //
- // To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
- //
- // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
- // in the Classic 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 RegisterInstancesWithLoadBalancer for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * InvalidInstance
- // The specified endpoint is not valid.
- //
- func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) {
- req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opRemoveTags = "RemoveTags"
- // RemoveTagsRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTags operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See RemoveTags for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RemoveTags method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // 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)
- // }
- //
- func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
- op := &request.Operation{
- Name: opRemoveTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RemoveTagsOutput{}
- req.Data = output
- return
- }
- // RemoveTags API operation for Elastic Load Balancing.
- //
- // Removes one or more tags from the specified 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 RemoveTags for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
- req, out := c.RemoveTagsRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
- // SetLoadBalancerListenerSSLCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the SetLoadBalancerListenerSSLCertificate operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See SetLoadBalancerListenerSSLCertificate for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SetLoadBalancerListenerSSLCertificate method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the SetLoadBalancerListenerSSLCertificateRequest method.
- // req, resp := client.SetLoadBalancerListenerSSLCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
- op := &request.Operation{
- Name: opSetLoadBalancerListenerSSLCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLoadBalancerListenerSSLCertificateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLoadBalancerListenerSSLCertificateOutput{}
- req.Data = output
- return
- }
- // SetLoadBalancerListenerSSLCertificate API operation for Elastic Load Balancing.
- //
- // Sets the certificate that terminates the specified listener's SSL connections.
- // The specified certificate replaces any prior certificate that was used on
- // the same load balancer and port.
- //
- // For more information about updating your SSL certificate, see Replace the
- // SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html)
- // in the Classic 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 SetLoadBalancerListenerSSLCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * CertificateNotFound
- // The specified ARN does not refer to a valid SSL certificate in AWS Identity
- // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
- // you recently uploaded the certificate to IAM, this error might indicate that
- // the certificate is not fully available yet.
- //
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * ListenerNotFound
- // The load balancer does not have a listener configured at the specified port.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- // * UnsupportedProtocol
- //
- func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
- req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
- // SetLoadBalancerPoliciesForBackendServerRequest generates a "aws/request.Request" representing the
- // client's request for the SetLoadBalancerPoliciesForBackendServer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See SetLoadBalancerPoliciesForBackendServer for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SetLoadBalancerPoliciesForBackendServer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the SetLoadBalancerPoliciesForBackendServerRequest method.
- // req, resp := client.SetLoadBalancerPoliciesForBackendServerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
- op := &request.Operation{
- Name: opSetLoadBalancerPoliciesForBackendServer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLoadBalancerPoliciesForBackendServerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLoadBalancerPoliciesForBackendServerOutput{}
- req.Data = output
- return
- }
- // SetLoadBalancerPoliciesForBackendServer API operation for Elastic Load Balancing.
- //
- // Replaces the set of policies associated with the specified port on which
- // the EC2 instance is listening with a new set of policies. At this time, only
- // the back-end server authentication policy type can be applied to the instance
- // ports; this policy type is composed of multiple public key policies.
- //
- // Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies,
- // use the PolicyNames parameter to list the policies that you want to enable.
- //
- // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify
- // that the policy is associated with the EC2 instance.
- //
- // For more information about enabling back-end instance authentication, see
- // Configure Back-end Instance Authentication (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.html#configure_backendauth_clt)
- // in the Classic Load Balancers Guide. For more information about Proxy Protocol,
- // see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html)
- // in the Classic 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 SetLoadBalancerPoliciesForBackendServer for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * PolicyNotFound
- // One or more of the specified policies do not exist.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
- req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
- // SetLoadBalancerPoliciesOfListenerRequest generates a "aws/request.Request" representing the
- // client's request for the SetLoadBalancerPoliciesOfListener operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See SetLoadBalancerPoliciesOfListener for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SetLoadBalancerPoliciesOfListener method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the SetLoadBalancerPoliciesOfListenerRequest method.
- // req, resp := client.SetLoadBalancerPoliciesOfListenerRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
- op := &request.Operation{
- Name: opSetLoadBalancerPoliciesOfListener,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLoadBalancerPoliciesOfListenerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLoadBalancerPoliciesOfListenerOutput{}
- req.Data = output
- return
- }
- // SetLoadBalancerPoliciesOfListener API operation for Elastic Load Balancing.
- //
- // Replaces the current set of policies for the specified load balancer port
- // with the specified set of policies.
- //
- // To enable back-end server authentication, use SetLoadBalancerPoliciesForBackendServer.
- //
- // For more information about setting policies, see Update the SSL Negotiation
- // Configuration (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ssl-config-update.html),
- // Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration),
- // and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
- // in the Classic 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 SetLoadBalancerPoliciesOfListener for usage and error information.
- //
- // Returned Error Codes:
- // * LoadBalancerNotFound
- // The specified load balancer does not exist.
- //
- // * PolicyNotFound
- // One or more of the specified policies do not exist.
- //
- // * ListenerNotFound
- // The load balancer does not have a listener configured at the specified port.
- //
- // * InvalidConfigurationRequest
- // The requested configuration change is not valid.
- //
- func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
- req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
- err := req.Send()
- return out, err
- }
- // Information about the AccessLog attribute.
- type AccessLog struct {
- _ struct{} `type:"structure"`
- // The interval for publishing the access logs. You can specify an interval
- // of either 5 minutes or 60 minutes.
- //
- // Default: 60 minutes
- EmitInterval *int64 `type:"integer"`
- // Specifies whether access logs are enabled for the load balancer.
- //
- // Enabled is a required field
- Enabled *bool `type:"boolean" required:"true"`
- // The name of the Amazon S3 bucket where the access logs are stored.
- S3BucketName *string `type:"string"`
- // The logical hierarchy you created for your Amazon S3 bucket, for example
- // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
- // the root level of the bucket.
- S3BucketPrefix *string `type:"string"`
- }
- // String returns the string representation
- func (s AccessLog) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AccessLog) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AccessLog) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AccessLog"}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the parameters for AddTags.
- type AddTagsInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer. You can specify one load balancer only.
- //
- // LoadBalancerNames is a required field
- LoadBalancerNames []*string `type:"list" required:"true"`
- // The 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.LoadBalancerNames == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
- }
- 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
- }
- // Contains the output of AddTags.
- 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()
- }
- // This data type is reserved.
- type AdditionalAttribute struct {
- _ struct{} `type:"structure"`
- // This parameter is reserved.
- Key *string `type:"string"`
- // This parameter is reserved.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s AdditionalAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdditionalAttribute) GoString() string {
- return s.String()
- }
- // Information about a policy for application-controlled session stickiness.
- type AppCookieStickinessPolicy struct {
- _ struct{} `type:"structure"`
- // The name of the application cookie used for stickiness.
- CookieName *string `type:"string"`
- // The mnemonic name for the policy being created. The name must be unique within
- // a set of policies for this load balancer.
- PolicyName *string `type:"string"`
- }
- // String returns the string representation
- func (s AppCookieStickinessPolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AppCookieStickinessPolicy) GoString() string {
- return s.String()
- }
- // Contains the parameters for ApplySecurityGroupsToLoadBalancer.
- type ApplySecurityGroupsToLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The IDs of the security groups to associate with the load balancer. Note
- // that you cannot specify the name of the security group.
- //
- // SecurityGroups is a required field
- SecurityGroups []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToLoadBalancerInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.SecurityGroups == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityGroups"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of ApplySecurityGroupsToLoadBalancer.
- type ApplySecurityGroupsToLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // The IDs of the security groups associated with the load balancer.
- SecurityGroups []*string `type:"list"`
- }
- // String returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for AttachLoaBalancerToSubnets.
- type AttachLoadBalancerToSubnetsInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The IDs of the subnets to add. You can add only one subnet per Availability
- // Zone.
- //
- // Subnets is a required field
- Subnets []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AttachLoadBalancerToSubnetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachLoadBalancerToSubnetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AttachLoadBalancerToSubnetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerToSubnetsInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.Subnets == nil {
- invalidParams.Add(request.NewErrParamRequired("Subnets"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of AttachLoadBalancerToSubnets.
- type AttachLoadBalancerToSubnetsOutput struct {
- _ struct{} `type:"structure"`
- // The IDs of the subnets attached to the load balancer.
- Subnets []*string `type:"list"`
- }
- // String returns the string representation
- func (s AttachLoadBalancerToSubnetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachLoadBalancerToSubnetsOutput) GoString() string {
- return s.String()
- }
- // Information about the configuration of an EC2 instance.
- type BackendServerDescription struct {
- _ struct{} `type:"structure"`
- // The port on which the EC2 instance is listening.
- InstancePort *int64 `min:"1" type:"integer"`
- // The names of the policies enabled for the EC2 instance.
- PolicyNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s BackendServerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BackendServerDescription) GoString() string {
- return s.String()
- }
- // Contains the parameters for ConfigureHealthCheck.
- type ConfigureHealthCheckInput struct {
- _ struct{} `type:"structure"`
- // The configuration information.
- //
- // HealthCheck is a required field
- HealthCheck *HealthCheck `type:"structure" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ConfigureHealthCheckInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfigureHealthCheckInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ConfigureHealthCheckInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConfigureHealthCheckInput"}
- if s.HealthCheck == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheck"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.HealthCheck != nil {
- if err := s.HealthCheck.Validate(); err != nil {
- invalidParams.AddNested("HealthCheck", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of ConfigureHealthCheck.
- type ConfigureHealthCheckOutput struct {
- _ struct{} `type:"structure"`
- // The updated health check.
- HealthCheck *HealthCheck `type:"structure"`
- }
- // String returns the string representation
- func (s ConfigureHealthCheckOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfigureHealthCheckOutput) GoString() string {
- return s.String()
- }
- // Information about the ConnectionDraining attribute.
- type ConnectionDraining struct {
- _ struct{} `type:"structure"`
- // Specifies whether connection draining is enabled for the load balancer.
- //
- // Enabled is a required field
- Enabled *bool `type:"boolean" required:"true"`
- // The maximum time, in seconds, to keep the existing connections open before
- // deregistering the instances.
- Timeout *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s ConnectionDraining) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConnectionDraining) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ConnectionDraining) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConnectionDraining"}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Information about the ConnectionSettings attribute.
- type ConnectionSettings struct {
- _ struct{} `type:"structure"`
- // The time, in seconds, that the connection is allowed to be idle (no data
- // has been sent over the connection) before it is closed by the load balancer.
- //
- // IdleTimeout is a required field
- IdleTimeout *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ConnectionSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConnectionSettings) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ConnectionSettings) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ConnectionSettings"}
- if s.IdleTimeout == nil {
- invalidParams.Add(request.NewErrParamRequired("IdleTimeout"))
- }
- if s.IdleTimeout != nil && *s.IdleTimeout < 1 {
- invalidParams.Add(request.NewErrParamMinValue("IdleTimeout", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the parameters for CreateAppCookieStickinessPolicy.
- type CreateAppCookieStickinessPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the application cookie used for stickiness.
- //
- // CookieName is a required field
- CookieName *string `type:"string" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The name of the policy being created. Policy names must consist of alphanumeric
- // characters and dashes (-). This name must be unique within the set of policies
- // for this load balancer.
- //
- // PolicyName is a required field
- PolicyName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateAppCookieStickinessPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAppCookieStickinessPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateAppCookieStickinessPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAppCookieStickinessPolicyInput"}
- if s.CookieName == nil {
- invalidParams.Add(request.NewErrParamRequired("CookieName"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output for CreateAppCookieStickinessPolicy.
- type CreateAppCookieStickinessPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAppCookieStickinessPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAppCookieStickinessPolicyOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for CreateLBCookieStickinessPolicy.
- type CreateLBCookieStickinessPolicyInput struct {
- _ struct{} `type:"structure"`
- // The time period, in seconds, after which the cookie should be considered
- // stale. If you do not specify this parameter, the default value is 0, which
- // indicates that the sticky session should last for the duration of the browser
- // session.
- CookieExpirationPeriod *int64 `type:"long"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The name of the policy being created. Policy names must consist of alphanumeric
- // characters and dashes (-). This name must be unique within the set of policies
- // for this load balancer.
- //
- // PolicyName is a required field
- PolicyName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateLBCookieStickinessPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLBCookieStickinessPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateLBCookieStickinessPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLBCookieStickinessPolicyInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output for CreateLBCookieStickinessPolicy.
- type CreateLBCookieStickinessPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLBCookieStickinessPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLBCookieStickinessPolicyOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for CreateLoadBalancer.
- type CreateLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // One or more Availability Zones from the same region as the load balancer.
- //
- // You must specify at least one Availability Zone.
- //
- // You can add more Availability Zones after you create the load balancer using
- // EnableAvailabilityZonesForLoadBalancer.
- AvailabilityZones []*string `type:"list"`
- // The listeners.
- //
- // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
- // in the Classic Load Balancers Guide.
- //
- // Listeners is a required field
- Listeners []*Listener `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // This name must be unique within your set of load balancers for the region,
- // must have a maximum of 32 characters, must contain only alphanumeric characters
- // or hyphens, and cannot begin or end with a hyphen.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The type of a load balancer. Valid only for load balancers in a VPC.
- //
- // By default, Elastic Load Balancing creates an Internet-facing load balancer
- // with a DNS name that resolves to public IP addresses. For more information
- // about Internet-facing and Internal load balancers, see Load Balancer Scheme
- // (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme)
- // in the Elastic Load Balancing User Guide.
- //
- // Specify internal to create a load balancer with a DNS name that resolves
- // to private IP addresses.
- Scheme *string `type:"string"`
- // The IDs of the security groups to assign to the load balancer.
- SecurityGroups []*string `type:"list"`
- // The IDs of the subnets in your VPC to attach to the load balancer. Specify
- // one subnet per Availability Zone specified in AvailabilityZones.
- Subnets []*string `type:"list"`
- // A list of tags to assign to the load balancer.
- //
- // For more information about tagging your load balancer, see Tag Your Classic
- // Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
- // in the Classic Load Balancers Guide.
- Tags []*Tag `min:"1" type:"list"`
- }
- // 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.Listeners == nil {
- invalidParams.Add(request.NewErrParamRequired("Listeners"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.Listeners != nil {
- for i, v := range s.Listeners {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
- }
- }
- }
- 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
- }
- // Contains the parameters for CreateLoadBalancerListeners.
- type CreateLoadBalancerListenersInput struct {
- _ struct{} `type:"structure"`
- // The listeners.
- //
- // Listeners is a required field
- Listeners []*Listener `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerListenersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerListenersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateLoadBalancerListenersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerListenersInput"}
- if s.Listeners == nil {
- invalidParams.Add(request.NewErrParamRequired("Listeners"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.Listeners != nil {
- for i, v := range s.Listeners {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the parameters for CreateLoadBalancerListener.
- type CreateLoadBalancerListenersOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerListenersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerListenersOutput) GoString() string {
- return s.String()
- }
- // Contains the output for CreateLoadBalancer.
- type CreateLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // The DNS name of the load balancer.
- DNSName *string `type:"string"`
- }
- // 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()
- }
- // Contains the parameters for CreateLoadBalancerPolicy.
- type CreateLoadBalancerPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The policy attributes.
- PolicyAttributes []*PolicyAttribute `type:"list"`
- // The name of the load balancer policy to be created. This name must be unique
- // within the set of policies for this load balancer.
- //
- // PolicyName is a required field
- PolicyName *string `type:"string" required:"true"`
- // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
- //
- // PolicyTypeName is a required field
- PolicyTypeName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateLoadBalancerPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerPolicyInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyTypeName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyTypeName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of CreateLoadBalancerPolicy.
- type CreateLoadBalancerPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerPolicyOutput) GoString() string {
- return s.String()
- }
- // Information about the CrossZoneLoadBalancing attribute.
- type CrossZoneLoadBalancing struct {
- _ struct{} `type:"structure"`
- // Specifies whether cross-zone load balancing is enabled for the load balancer.
- //
- // Enabled is a required field
- Enabled *bool `type:"boolean" required:"true"`
- }
- // String returns the string representation
- func (s CrossZoneLoadBalancing) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CrossZoneLoadBalancing) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CrossZoneLoadBalancing) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CrossZoneLoadBalancing"}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the parameters for DeleteLoadBalancer.
- type DeleteLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *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.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the parameters for DeleteLoadBalancerListeners.
- type DeleteLoadBalancerListenersInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The client port numbers of the listeners.
- //
- // LoadBalancerPorts is a required field
- LoadBalancerPorts []*int64 `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerListenersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerListenersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteLoadBalancerListenersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerListenersInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.LoadBalancerPorts == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerPorts"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of DeleteLoadBalancerListeners.
- type DeleteLoadBalancerListenersOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerListenersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerListenersOutput) GoString() string {
- return s.String()
- }
- // Contains the output of DeleteLoadBalancer.
- 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()
- }
- // Contains the parameters for DeleteLoadBalancerPolicy.
- type DeleteLoadBalancerPolicyInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The name of the policy.
- //
- // PolicyName is a required field
- PolicyName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteLoadBalancerPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerPolicyInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of DeleteLoadBalancerPolicy.
- type DeleteLoadBalancerPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerPolicyOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DeregisterInstancesFromLoadBalancer.
- type DeregisterInstancesFromLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The IDs of the instances.
- //
- // Instances is a required field
- Instances []*Instance `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeregisterInstancesFromLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterInstancesFromLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeregisterInstancesFromLoadBalancerInput"}
- if s.Instances == nil {
- invalidParams.Add(request.NewErrParamRequired("Instances"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of DeregisterInstancesFromLoadBalancer.
- type DeregisterInstancesFromLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // The remaining instances registered with the load balancer.
- Instances []*Instance `type:"list"`
- }
- // String returns the string representation
- func (s DeregisterInstancesFromLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DescribeInstanceHealth.
- type DescribeInstanceHealthInput struct {
- _ struct{} `type:"structure"`
- // The IDs of the instances.
- Instances []*Instance `type:"list"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeInstanceHealthInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeInstanceHealthInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeInstanceHealthInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceHealthInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output for DescribeInstanceHealth.
- type DescribeInstanceHealthOutput struct {
- _ struct{} `type:"structure"`
- // Information about the health of the instances.
- InstanceStates []*InstanceState `type:"list"`
- }
- // String returns the string representation
- func (s DescribeInstanceHealthOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeInstanceHealthOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DescribeLoadBalancerAttributes.
- type DescribeLoadBalancerAttributesInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *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.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of DescribeLoadBalancerAttributes.
- type DescribeLoadBalancerAttributesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the load balancer attributes.
- LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
- }
- // 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()
- }
- // Contains the parameters for DescribeLoadBalancerPolicies.
- type DescribeLoadBalancerPoliciesInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // The names of the policies.
- PolicyNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPoliciesInput) GoString() string {
- return s.String()
- }
- // Contains the output of DescribeLoadBalancerPolicies.
- type DescribeLoadBalancerPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the policies.
- PolicyDescriptions []*PolicyDescription `type:"list"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPoliciesOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DescribeLoadBalancerPolicyTypes.
- type DescribeLoadBalancerPolicyTypesInput struct {
- _ struct{} `type:"structure"`
- // The names of the policy types. If no names are specified, describes all policy
- // types defined by Elastic Load Balancing.
- PolicyTypeNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPolicyTypesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPolicyTypesInput) GoString() string {
- return s.String()
- }
- // Contains the output of DescribeLoadBalancerPolicyTypes.
- type DescribeLoadBalancerPolicyTypesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the policy types.
- PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPolicyTypesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DescribeLoadBalancers.
- type DescribeLoadBalancersInput struct {
- _ struct{} `type:"structure"`
- // The names of the load balancers.
- LoadBalancerNames []*string `type:"list"`
- // 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 (a number from 1 to
- // 400). The default is 400.
- 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
- }
- // Contains the parameters for DescribeLoadBalancers.
- type DescribeLoadBalancersOutput struct {
- _ struct{} `type:"structure"`
- // Information about the load balancers.
- LoadBalancerDescriptions []*LoadBalancerDescription `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()
- }
- // Contains the parameters for DescribeTags.
- type DescribeTagsInput struct {
- _ struct{} `type:"structure"`
- // The names of the load balancers.
- //
- // LoadBalancerNames is a required field
- LoadBalancerNames []*string `min:"1" 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.LoadBalancerNames == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
- }
- if s.LoadBalancerNames != nil && len(s.LoadBalancerNames) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LoadBalancerNames", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output for DescribeTags.
- 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()
- }
- // Contains the parameters for DetachLoadBalancerFromSubnets.
- type DetachLoadBalancerFromSubnetsInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The IDs of the subnets.
- //
- // Subnets is a required field
- Subnets []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DetachLoadBalancerFromSubnetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachLoadBalancerFromSubnetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DetachLoadBalancerFromSubnetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancerFromSubnetsInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.Subnets == nil {
- invalidParams.Add(request.NewErrParamRequired("Subnets"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of DetachLoadBalancerFromSubnets.
- type DetachLoadBalancerFromSubnetsOutput struct {
- _ struct{} `type:"structure"`
- // The IDs of the remaining subnets for the load balancer.
- Subnets []*string `type:"list"`
- }
- // String returns the string representation
- func (s DetachLoadBalancerFromSubnetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachLoadBalancerFromSubnetsOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DisableAvailabilityZonesForLoadBalancer.
- type DisableAvailabilityZonesForLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The Availability Zones.
- //
- // AvailabilityZones is a required field
- AvailabilityZones []*string `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableAvailabilityZonesForLoadBalancerInput"}
- if s.AvailabilityZones == nil {
- invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output for DisableAvailabilityZonesForLoadBalancer.
- type DisableAvailabilityZonesForLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // The remaining Availability Zones for the load balancer.
- AvailabilityZones []*string `type:"list"`
- }
- // String returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for EnableAvailabilityZonesForLoadBalancer.
- type EnableAvailabilityZonesForLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The Availability Zones. These must be in the same region as the load balancer.
- //
- // AvailabilityZones is a required field
- AvailabilityZones []*string `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableAvailabilityZonesForLoadBalancerInput"}
- if s.AvailabilityZones == nil {
- invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of EnableAvailabilityZonesForLoadBalancer.
- type EnableAvailabilityZonesForLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // The updated list of Availability Zones for the load balancer.
- AvailabilityZones []*string `type:"list"`
- }
- // String returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // Information about a health check.
- type HealthCheck struct {
- _ struct{} `type:"structure"`
- // The number of consecutive health checks successes required before moving
- // the instance to the Healthy state.
- //
- // HealthyThreshold is a required field
- HealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
- // The approximate interval, in seconds, between health checks of an individual
- // instance.
- //
- // Interval is a required field
- Interval *int64 `min:"5" type:"integer" required:"true"`
- // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
- // The range of valid ports is one (1) through 65535.
- //
- // TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
- // In this case, a health check simply attempts to open a TCP connection to
- // the instance on the specified port. Failure to connect within the configured
- // timeout is considered unhealthy.
- //
- // SSL is also specified as SSL: port pair, for example, SSL:5000.
- //
- // For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
- // as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
- // In this case, a HTTP GET request is issued to the instance on the given port
- // and path. Any answer other than "200 OK" within the timeout period is considered
- // unhealthy.
- //
- // The total length of the HTTP ping target must be 1024 16-bit Unicode characters
- // or less.
- //
- // Target is a required field
- Target *string `type:"string" required:"true"`
- // The amount of time, in seconds, during which no response means a failed health
- // check.
- //
- // This value must be less than the Interval value.
- //
- // Timeout is a required field
- Timeout *int64 `min:"2" type:"integer" required:"true"`
- // The number of consecutive health check failures required before moving the
- // instance to the Unhealthy state.
- //
- // UnhealthyThreshold is a required field
- UnhealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s HealthCheck) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HealthCheck) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HealthCheck) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HealthCheck"}
- if s.HealthyThreshold == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthyThreshold"))
- }
- if s.HealthyThreshold != nil && *s.HealthyThreshold < 2 {
- invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 2))
- }
- if s.Interval == nil {
- invalidParams.Add(request.NewErrParamRequired("Interval"))
- }
- if s.Interval != nil && *s.Interval < 5 {
- invalidParams.Add(request.NewErrParamMinValue("Interval", 5))
- }
- if s.Target == nil {
- invalidParams.Add(request.NewErrParamRequired("Target"))
- }
- if s.Timeout == nil {
- invalidParams.Add(request.NewErrParamRequired("Timeout"))
- }
- if s.Timeout != nil && *s.Timeout < 2 {
- invalidParams.Add(request.NewErrParamMinValue("Timeout", 2))
- }
- if s.UnhealthyThreshold == nil {
- invalidParams.Add(request.NewErrParamRequired("UnhealthyThreshold"))
- }
- if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 2 {
- invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 2))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ID of an EC2 instance.
- type Instance struct {
- _ struct{} `type:"structure"`
- // The instance ID.
- InstanceId *string `type:"string"`
- }
- // String returns the string representation
- func (s Instance) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Instance) GoString() string {
- return s.String()
- }
- // Information about the state of an EC2 instance.
- type InstanceState struct {
- _ struct{} `type:"structure"`
- // A description of the instance state. This string can contain one or more
- // of the following messages.
- //
- // * N/A
- //
- // * A transient error occurred. Please try again later.
- //
- // * Instance has failed at least the UnhealthyThreshold number of health
- // checks consecutively.
- //
- // * Instance has not passed the configured HealthyThreshold number of health
- // checks consecutively.
- //
- // * Instance registration is still in progress.
- //
- // * Instance is in the EC2 Availability Zone for which LoadBalancer is not
- // configured to route traffic to.
- //
- // * Instance is not currently registered with the LoadBalancer.
- //
- // * Instance deregistration currently in progress.
- //
- // * Disable Availability Zone is currently in progress.
- //
- // * Instance is in pending state.
- //
- // * Instance is in stopped state.
- //
- // * Instance is in terminated state.
- Description *string `type:"string"`
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // Information about the cause of OutOfService instances. Specifically, whether
- // the cause is Elastic Load Balancing or the instance.
- //
- // Valid values: ELB | Instance | N/A
- ReasonCode *string `type:"string"`
- // The current state of the instance.
- //
- // Valid values: InService | OutOfService | Unknown
- State *string `type:"string"`
- }
- // String returns the string representation
- func (s InstanceState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceState) GoString() string {
- return s.String()
- }
- // Information about a policy for duration-based session stickiness.
- type LBCookieStickinessPolicy struct {
- _ struct{} `type:"structure"`
- // The time period, in seconds, after which the cookie should be considered
- // stale. If this parameter is not specified, the stickiness session lasts for
- // the duration of the browser session.
- CookieExpirationPeriod *int64 `type:"long"`
- // The name of the policy. This name must be unique within the set of policies
- // for this load balancer.
- PolicyName *string `type:"string"`
- }
- // String returns the string representation
- func (s LBCookieStickinessPolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LBCookieStickinessPolicy) GoString() string {
- return s.String()
- }
- // Information about a listener.
- //
- // For information about the protocols and the ports supported by Elastic Load
- // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
- // in the Classic Load Balancers Guide.
- type Listener struct {
- _ struct{} `type:"structure"`
- // The port on which the instance is listening.
- //
- // InstancePort is a required field
- InstancePort *int64 `min:"1" type:"integer" required:"true"`
- // The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or
- // SSL.
- //
- // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must
- // be at the same protocol.
- //
- // If there is another listener with the same InstancePort whose InstanceProtocol
- // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
- //
- // If there is another listener with the same InstancePort whose InstanceProtocol
- // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
- InstanceProtocol *string `type:"string"`
- // The port on which the load balancer is listening. On EC2-VPC, you can specify
- // any port from the range 1-65535. On EC2-Classic, you can specify any port
- // from the following list: 25, 80, 443, 465, 587, 1024-65535.
- //
- // LoadBalancerPort is a required field
- LoadBalancerPort *int64 `type:"integer" required:"true"`
- // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
- // or SSL.
- //
- // Protocol is a required field
- Protocol *string `type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the server certificate.
- SSLCertificateId *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()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Listener) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Listener"}
- if s.InstancePort == nil {
- invalidParams.Add(request.NewErrParamRequired("InstancePort"))
- }
- if s.InstancePort != nil && *s.InstancePort < 1 {
- invalidParams.Add(request.NewErrParamMinValue("InstancePort", 1))
- }
- if s.LoadBalancerPort == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
- }
- if s.Protocol == nil {
- invalidParams.Add(request.NewErrParamRequired("Protocol"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The policies enabled for a listener.
- type ListenerDescription struct {
- _ struct{} `type:"structure"`
- // Information about a listener.
- //
- // For information about the protocols and the ports supported by Elastic Load
- // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
- // in the Classic Load Balancers Guide.
- Listener *Listener `type:"structure"`
- // The policies. If there are no policies enabled, the list is empty.
- PolicyNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s ListenerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListenerDescription) GoString() string {
- return s.String()
- }
- // The attributes for a load balancer.
- type LoadBalancerAttributes struct {
- _ struct{} `type:"structure"`
- // If enabled, the load balancer captures detailed information of all requests
- // and delivers the information to the Amazon S3 bucket that you specify.
- //
- // For more information, see Enable Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html)
- // in the Classic Load Balancers Guide.
- AccessLog *AccessLog `type:"structure"`
- // This parameter is reserved.
- AdditionalAttributes []*AdditionalAttribute `type:"list"`
- // If enabled, the load balancer allows existing requests to complete before
- // the load balancer shifts traffic away from a deregistered or unhealthy instance.
- //
- // For more information, see Configure Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
- // in the Classic Load Balancers Guide.
- ConnectionDraining *ConnectionDraining `type:"structure"`
- // If enabled, the load balancer allows the connections to remain idle (no data
- // is sent over the connection) for the specified duration.
- //
- // By default, Elastic Load Balancing maintains a 60-second idle connection
- // timeout for both front-end and back-end connections of your load balancer.
- // For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
- // in the Classic Load Balancers Guide.
- ConnectionSettings *ConnectionSettings `type:"structure"`
- // If enabled, the load balancer routes the request traffic evenly across all
- // instances regardless of the Availability Zones.
- //
- // For more information, see Configure Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
- // in the Classic Load Balancers Guide.
- CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
- }
- // String returns the string representation
- func (s LoadBalancerAttributes) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerAttributes) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LoadBalancerAttributes) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LoadBalancerAttributes"}
- if s.AccessLog != nil {
- if err := s.AccessLog.Validate(); err != nil {
- invalidParams.AddNested("AccessLog", err.(request.ErrInvalidParams))
- }
- }
- if s.ConnectionDraining != nil {
- if err := s.ConnectionDraining.Validate(); err != nil {
- invalidParams.AddNested("ConnectionDraining", err.(request.ErrInvalidParams))
- }
- }
- if s.ConnectionSettings != nil {
- if err := s.ConnectionSettings.Validate(); err != nil {
- invalidParams.AddNested("ConnectionSettings", err.(request.ErrInvalidParams))
- }
- }
- if s.CrossZoneLoadBalancing != nil {
- if err := s.CrossZoneLoadBalancing.Validate(); err != nil {
- invalidParams.AddNested("CrossZoneLoadBalancing", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Information about a load balancer.
- type LoadBalancerDescription struct {
- _ struct{} `type:"structure"`
- // The Availability Zones for the load balancer.
- AvailabilityZones []*string `type:"list"`
- // Information about your EC2 instances.
- BackendServerDescriptions []*BackendServerDescription `type:"list"`
- // The DNS name of the load balancer.
- //
- // For more information, see Configure a Custom Domain Name (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html)
- // in the Classic Load Balancers Guide.
- CanonicalHostedZoneName *string `type:"string"`
- // The ID of the Amazon Route 53 hosted zone for the load balancer.
- CanonicalHostedZoneNameID *string `type:"string"`
- // The date and time the load balancer was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
- // The DNS name of the load balancer.
- DNSName *string `type:"string"`
- // Information about the health checks conducted on the load balancer.
- HealthCheck *HealthCheck `type:"structure"`
- // The IDs of the instances for the load balancer.
- Instances []*Instance `type:"list"`
- // The listeners for the load balancer.
- ListenerDescriptions []*ListenerDescription `type:"list"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // The policies defined for the load balancer.
- Policies *Policies `type:"structure"`
- // The type of load balancer. Valid only for load balancers in a VPC.
- //
- // If Scheme is internet-facing, the load balancer has a public DNS name that
- // resolves to a public IP address.
- //
- // If Scheme is internal, the load balancer has a public DNS name that resolves
- // to a private IP address.
- Scheme *string `type:"string"`
- // The security groups for the load balancer. Valid only for load balancers
- // in a VPC.
- SecurityGroups []*string `type:"list"`
- // The security group for the load balancer, which you can use as part of your
- // inbound rules for your registered instances. To only allow traffic from load
- // balancers, add a security group rule that specifies this source security
- // group as the inbound source.
- SourceSecurityGroup *SourceSecurityGroup `type:"structure"`
- // The IDs of the subnets for the load balancer.
- Subnets []*string `type:"list"`
- // The ID of the VPC for the load balancer.
- VPCId *string `type:"string"`
- }
- // String returns the string representation
- func (s LoadBalancerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerDescription) GoString() string {
- return s.String()
- }
- // Contains the parameters for ModifyLoadBalancerAttributes.
- type ModifyLoadBalancerAttributesInput struct {
- _ struct{} `type:"structure"`
- // The attributes of the load balancer.
- //
- // LoadBalancerAttributes is a required field
- LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *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.LoadBalancerAttributes == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerAttributes"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.LoadBalancerAttributes != nil {
- if err := s.LoadBalancerAttributes.Validate(); err != nil {
- invalidParams.AddNested("LoadBalancerAttributes", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of ModifyLoadBalancerAttributes.
- type ModifyLoadBalancerAttributesOutput struct {
- _ struct{} `type:"structure"`
- // The attributes for a load balancer.
- LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- }
- // 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()
- }
- // The policies for a load balancer.
- type Policies struct {
- _ struct{} `type:"structure"`
- // The stickiness policies created using CreateAppCookieStickinessPolicy.
- AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`
- // The stickiness policies created using CreateLBCookieStickinessPolicy.
- LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`
- // The policies other than the stickiness policies.
- OtherPolicies []*string `type:"list"`
- }
- // String returns the string representation
- func (s Policies) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Policies) GoString() string {
- return s.String()
- }
- // Information about a policy attribute.
- type PolicyAttribute struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // The value of the attribute.
- AttributeValue *string `type:"string"`
- }
- // String returns the string representation
- func (s PolicyAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyAttribute) GoString() string {
- return s.String()
- }
- // Information about a policy attribute.
- type PolicyAttributeDescription struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // The value of the attribute.
- AttributeValue *string `type:"string"`
- }
- // String returns the string representation
- func (s PolicyAttributeDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyAttributeDescription) GoString() string {
- return s.String()
- }
- // Information about a policy attribute type.
- type PolicyAttributeTypeDescription struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // The type of the attribute. For example, Boolean or Integer.
- AttributeType *string `type:"string"`
- // The cardinality of the attribute.
- //
- // Valid values:
- //
- // * ONE(1) : Single value required
- //
- // * ZERO_OR_ONE(0..1) : Up to one value is allowed
- //
- // * ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
- //
- // * ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
- Cardinality *string `type:"string"`
- // The default value of the attribute, if applicable.
- DefaultValue *string `type:"string"`
- // A description of the attribute.
- Description *string `type:"string"`
- }
- // String returns the string representation
- func (s PolicyAttributeTypeDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyAttributeTypeDescription) GoString() string {
- return s.String()
- }
- // Information about a policy.
- type PolicyDescription struct {
- _ struct{} `type:"structure"`
- // The policy attributes.
- PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`
- // The name of the policy.
- PolicyName *string `type:"string"`
- // The name of the policy type.
- PolicyTypeName *string `type:"string"`
- }
- // String returns the string representation
- func (s PolicyDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyDescription) GoString() string {
- return s.String()
- }
- // Information about a policy type.
- type PolicyTypeDescription struct {
- _ struct{} `type:"structure"`
- // A description of the policy type.
- Description *string `type:"string"`
- // The description of the policy attributes associated with the policies defined
- // by Elastic Load Balancing.
- PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`
- // The name of the policy type.
- PolicyTypeName *string `type:"string"`
- }
- // String returns the string representation
- func (s PolicyTypeDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyTypeDescription) GoString() string {
- return s.String()
- }
- // Contains the parameters for RegisterInstancesWithLoadBalancer.
- type RegisterInstancesWithLoadBalancerInput struct {
- _ struct{} `type:"structure"`
- // The IDs of the instances.
- //
- // Instances is a required field
- Instances []*Instance `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RegisterInstancesWithLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterInstancesWithLoadBalancerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RegisterInstancesWithLoadBalancerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RegisterInstancesWithLoadBalancerInput"}
- if s.Instances == nil {
- invalidParams.Add(request.NewErrParamRequired("Instances"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of RegisterInstancesWithLoadBalancer.
- type RegisterInstancesWithLoadBalancerOutput struct {
- _ struct{} `type:"structure"`
- // The updated list of instances for the load balancer.
- Instances []*Instance `type:"list"`
- }
- // String returns the string representation
- func (s RegisterInstancesWithLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterInstancesWithLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for RemoveTags.
- type RemoveTagsInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer. You can specify a maximum of one load balancer
- // name.
- //
- // LoadBalancerNames is a required field
- LoadBalancerNames []*string `type:"list" required:"true"`
- // The list of tag keys to remove.
- //
- // Tags is a required field
- Tags []*TagKeyOnly `min:"1" 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.LoadBalancerNames == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
- }
- 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
- }
- // Contains the output of RemoveTags.
- 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()
- }
- // Contains the parameters for SetLoadBalancerListenerSSLCertificate.
- type SetLoadBalancerListenerSSLCertificateInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The port that uses the specified SSL certificate.
- //
- // LoadBalancerPort is a required field
- LoadBalancerPort *int64 `type:"integer" required:"true"`
- // The Amazon Resource Name (ARN) of the SSL certificate.
- //
- // SSLCertificateId is a required field
- SSLCertificateId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerListenerSSLCertificateInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.LoadBalancerPort == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
- }
- if s.SSLCertificateId == nil {
- invalidParams.Add(request.NewErrParamRequired("SSLCertificateId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of SetLoadBalancerListenerSSLCertificate.
- type SetLoadBalancerListenerSSLCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for SetLoadBalancerPoliciesForBackendServer.
- type SetLoadBalancerPoliciesForBackendServerInput struct {
- _ struct{} `type:"structure"`
- // The port number associated with the EC2 instance.
- //
- // InstancePort is a required field
- InstancePort *int64 `type:"integer" required:"true"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The names of the policies. If the list is empty, then all current polices
- // are removed from the EC2 instance.
- //
- // PolicyNames is a required field
- PolicyNames []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesForBackendServerInput"}
- if s.InstancePort == nil {
- invalidParams.Add(request.NewErrParamRequired("InstancePort"))
- }
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.PolicyNames == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of SetLoadBalancerPoliciesForBackendServer.
- type SetLoadBalancerPoliciesForBackendServerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for SetLoadBalancePoliciesOfListener.
- type SetLoadBalancerPoliciesOfListenerInput struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- //
- // LoadBalancerName is a required field
- LoadBalancerName *string `type:"string" required:"true"`
- // The external port of the load balancer.
- //
- // LoadBalancerPort is a required field
- LoadBalancerPort *int64 `type:"integer" required:"true"`
- // The names of the policies. This list must include all policies to be enabled.
- // If you omit a policy that is currently enabled, it is disabled. If the list
- // is empty, all current policies are disabled.
- //
- // PolicyNames is a required field
- PolicyNames []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesOfListenerInput"}
- if s.LoadBalancerName == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
- }
- if s.LoadBalancerPort == nil {
- invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
- }
- if s.PolicyNames == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of SetLoadBalancePoliciesOfListener.
- type SetLoadBalancerPoliciesOfListenerOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string {
- return s.String()
- }
- // Information about a source security group.
- type SourceSecurityGroup struct {
- _ struct{} `type:"structure"`
- // The name of the security group.
- GroupName *string `type:"string"`
- // The owner of the security group.
- OwnerAlias *string `type:"string"`
- }
- // String returns the string representation
- func (s SourceSecurityGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SourceSecurityGroup) GoString() string {
- return s.String()
- }
- // 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
- }
- // The tags associated with a load balancer.
- type TagDescription struct {
- _ struct{} `type:"structure"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // 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()
- }
- // The key of a tag.
- type TagKeyOnly struct {
- _ struct{} `type:"structure"`
- // The name of the key.
- Key *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s TagKeyOnly) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagKeyOnly) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TagKeyOnly) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TagKeyOnly"}
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
|