api.go 162 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package elb provides a client for Elastic Load Balancing.
  3. package elb
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opAddTags = "AddTags"
  11. // AddTagsRequest generates a "aws/request.Request" representing the
  12. // client's request for the AddTags operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // See AddTags for usage and error information.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the AddTags method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the AddTagsRequest method.
  28. // req, resp := client.AddTagsRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  36. op := &request.Operation{
  37. Name: opAddTags,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AddTagsInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &AddTagsOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // AddTags API operation for Elastic Load Balancing.
  50. //
  51. // Adds the specified tags to the specified load balancer. Each load balancer
  52. // can have a maximum of 10 tags.
  53. //
  54. // Each tag consists of a key and an optional value. If a tag with the same
  55. // key is already associated with the load balancer, AddTags updates its value.
  56. //
  57. // For more information, see Tag Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
  58. // in the Classic Load Balancers Guide.
  59. //
  60. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  61. // with awserr.Error's Code and Message methods to get detailed information about
  62. // the error.
  63. //
  64. // See the AWS API reference guide for Elastic Load Balancing's
  65. // API operation AddTags for usage and error information.
  66. //
  67. // Returned Error Codes:
  68. // * LoadBalancerNotFound
  69. // The specified load balancer does not exist.
  70. //
  71. // * TooManyTags
  72. // The quota for the number of tags that can be assigned to a load balancer
  73. // has been reached.
  74. //
  75. // * DuplicateTagKeys
  76. // A tag key was specified more than once.
  77. //
  78. func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  79. req, out := c.AddTagsRequest(input)
  80. err := req.Send()
  81. return out, err
  82. }
  83. const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer"
  84. // ApplySecurityGroupsToLoadBalancerRequest generates a "aws/request.Request" representing the
  85. // client's request for the ApplySecurityGroupsToLoadBalancer operation. The "output" return
  86. // value can be used to capture response data after the request's "Send" method
  87. // is called.
  88. //
  89. // See ApplySecurityGroupsToLoadBalancer for usage and error information.
  90. //
  91. // Creating a request object using this method should be used when you want to inject
  92. // custom logic into the request's lifecycle using a custom handler, or if you want to
  93. // access properties on the request object before or after sending the request. If
  94. // you just want the service response, call the ApplySecurityGroupsToLoadBalancer method directly
  95. // instead.
  96. //
  97. // Note: You must call the "Send" method on the returned request object in order
  98. // to execute the request.
  99. //
  100. // // Example sending a request using the ApplySecurityGroupsToLoadBalancerRequest method.
  101. // req, resp := client.ApplySecurityGroupsToLoadBalancerRequest(params)
  102. //
  103. // err := req.Send()
  104. // if err == nil { // resp is now filled
  105. // fmt.Println(resp)
  106. // }
  107. //
  108. func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) {
  109. op := &request.Operation{
  110. Name: opApplySecurityGroupsToLoadBalancer,
  111. HTTPMethod: "POST",
  112. HTTPPath: "/",
  113. }
  114. if input == nil {
  115. input = &ApplySecurityGroupsToLoadBalancerInput{}
  116. }
  117. req = c.newRequest(op, input, output)
  118. output = &ApplySecurityGroupsToLoadBalancerOutput{}
  119. req.Data = output
  120. return
  121. }
  122. // ApplySecurityGroupsToLoadBalancer API operation for Elastic Load Balancing.
  123. //
  124. // Associates one or more security groups with your load balancer in a virtual
  125. // private cloud (VPC). The specified security groups override the previously
  126. // associated security groups.
  127. //
  128. // 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)
  129. // in the Classic Load Balancers Guide.
  130. //
  131. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  132. // with awserr.Error's Code and Message methods to get detailed information about
  133. // the error.
  134. //
  135. // See the AWS API reference guide for Elastic Load Balancing's
  136. // API operation ApplySecurityGroupsToLoadBalancer for usage and error information.
  137. //
  138. // Returned Error Codes:
  139. // * LoadBalancerNotFound
  140. // The specified load balancer does not exist.
  141. //
  142. // * InvalidConfigurationRequest
  143. // The requested configuration change is not valid.
  144. //
  145. // * InvalidSecurityGroup
  146. // One or more of the specified security groups do not exist.
  147. //
  148. func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) {
  149. req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input)
  150. err := req.Send()
  151. return out, err
  152. }
  153. const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets"
  154. // AttachLoadBalancerToSubnetsRequest generates a "aws/request.Request" representing the
  155. // client's request for the AttachLoadBalancerToSubnets operation. The "output" return
  156. // value can be used to capture response data after the request's "Send" method
  157. // is called.
  158. //
  159. // See AttachLoadBalancerToSubnets for usage and error information.
  160. //
  161. // Creating a request object using this method should be used when you want to inject
  162. // custom logic into the request's lifecycle using a custom handler, or if you want to
  163. // access properties on the request object before or after sending the request. If
  164. // you just want the service response, call the AttachLoadBalancerToSubnets method directly
  165. // instead.
  166. //
  167. // Note: You must call the "Send" method on the returned request object in order
  168. // to execute the request.
  169. //
  170. // // Example sending a request using the AttachLoadBalancerToSubnetsRequest method.
  171. // req, resp := client.AttachLoadBalancerToSubnetsRequest(params)
  172. //
  173. // err := req.Send()
  174. // if err == nil { // resp is now filled
  175. // fmt.Println(resp)
  176. // }
  177. //
  178. func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) {
  179. op := &request.Operation{
  180. Name: opAttachLoadBalancerToSubnets,
  181. HTTPMethod: "POST",
  182. HTTPPath: "/",
  183. }
  184. if input == nil {
  185. input = &AttachLoadBalancerToSubnetsInput{}
  186. }
  187. req = c.newRequest(op, input, output)
  188. output = &AttachLoadBalancerToSubnetsOutput{}
  189. req.Data = output
  190. return
  191. }
  192. // AttachLoadBalancerToSubnets API operation for Elastic Load Balancing.
  193. //
  194. // Adds one or more subnets to the set of configured subnets for the specified
  195. // load balancer.
  196. //
  197. // The load balancer evenly distributes requests across all registered subnets.
  198. // For more information, see Add or Remove Subnets for Your Load Balancer in
  199. // a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-manage-subnets.html)
  200. // in the Classic Load Balancers Guide.
  201. //
  202. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  203. // with awserr.Error's Code and Message methods to get detailed information about
  204. // the error.
  205. //
  206. // See the AWS API reference guide for Elastic Load Balancing's
  207. // API operation AttachLoadBalancerToSubnets for usage and error information.
  208. //
  209. // Returned Error Codes:
  210. // * LoadBalancerNotFound
  211. // The specified load balancer does not exist.
  212. //
  213. // * InvalidConfigurationRequest
  214. // The requested configuration change is not valid.
  215. //
  216. // * SubnetNotFound
  217. // One or more of the specified subnets do not exist.
  218. //
  219. // * InvalidSubnet
  220. // The specified VPC has no associated Internet gateway.
  221. //
  222. func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) {
  223. req, out := c.AttachLoadBalancerToSubnetsRequest(input)
  224. err := req.Send()
  225. return out, err
  226. }
  227. const opConfigureHealthCheck = "ConfigureHealthCheck"
  228. // ConfigureHealthCheckRequest generates a "aws/request.Request" representing the
  229. // client's request for the ConfigureHealthCheck operation. The "output" return
  230. // value can be used to capture response data after the request's "Send" method
  231. // is called.
  232. //
  233. // See ConfigureHealthCheck for usage and error information.
  234. //
  235. // Creating a request object using this method should be used when you want to inject
  236. // custom logic into the request's lifecycle using a custom handler, or if you want to
  237. // access properties on the request object before or after sending the request. If
  238. // you just want the service response, call the ConfigureHealthCheck method directly
  239. // instead.
  240. //
  241. // Note: You must call the "Send" method on the returned request object in order
  242. // to execute the request.
  243. //
  244. // // Example sending a request using the ConfigureHealthCheckRequest method.
  245. // req, resp := client.ConfigureHealthCheckRequest(params)
  246. //
  247. // err := req.Send()
  248. // if err == nil { // resp is now filled
  249. // fmt.Println(resp)
  250. // }
  251. //
  252. func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) {
  253. op := &request.Operation{
  254. Name: opConfigureHealthCheck,
  255. HTTPMethod: "POST",
  256. HTTPPath: "/",
  257. }
  258. if input == nil {
  259. input = &ConfigureHealthCheckInput{}
  260. }
  261. req = c.newRequest(op, input, output)
  262. output = &ConfigureHealthCheckOutput{}
  263. req.Data = output
  264. return
  265. }
  266. // ConfigureHealthCheck API operation for Elastic Load Balancing.
  267. //
  268. // Specifies the health check settings to use when evaluating the health state
  269. // of your EC2 instances.
  270. //
  271. // For more information, see Configure Health Checks for Your Load Balancer
  272. // (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html)
  273. // in the Classic Load Balancers Guide.
  274. //
  275. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  276. // with awserr.Error's Code and Message methods to get detailed information about
  277. // the error.
  278. //
  279. // See the AWS API reference guide for Elastic Load Balancing's
  280. // API operation ConfigureHealthCheck for usage and error information.
  281. //
  282. // Returned Error Codes:
  283. // * LoadBalancerNotFound
  284. // The specified load balancer does not exist.
  285. //
  286. func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) {
  287. req, out := c.ConfigureHealthCheckRequest(input)
  288. err := req.Send()
  289. return out, err
  290. }
  291. const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy"
  292. // CreateAppCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
  293. // client's request for the CreateAppCookieStickinessPolicy operation. The "output" return
  294. // value can be used to capture response data after the request's "Send" method
  295. // is called.
  296. //
  297. // See CreateAppCookieStickinessPolicy for usage and error information.
  298. //
  299. // Creating a request object using this method should be used when you want to inject
  300. // custom logic into the request's lifecycle using a custom handler, or if you want to
  301. // access properties on the request object before or after sending the request. If
  302. // you just want the service response, call the CreateAppCookieStickinessPolicy method directly
  303. // instead.
  304. //
  305. // Note: You must call the "Send" method on the returned request object in order
  306. // to execute the request.
  307. //
  308. // // Example sending a request using the CreateAppCookieStickinessPolicyRequest method.
  309. // req, resp := client.CreateAppCookieStickinessPolicyRequest(params)
  310. //
  311. // err := req.Send()
  312. // if err == nil { // resp is now filled
  313. // fmt.Println(resp)
  314. // }
  315. //
  316. func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) {
  317. op := &request.Operation{
  318. Name: opCreateAppCookieStickinessPolicy,
  319. HTTPMethod: "POST",
  320. HTTPPath: "/",
  321. }
  322. if input == nil {
  323. input = &CreateAppCookieStickinessPolicyInput{}
  324. }
  325. req = c.newRequest(op, input, output)
  326. output = &CreateAppCookieStickinessPolicyOutput{}
  327. req.Data = output
  328. return
  329. }
  330. // CreateAppCookieStickinessPolicy API operation for Elastic Load Balancing.
  331. //
  332. // Generates a stickiness policy with sticky session lifetimes that follow that
  333. // of an application-generated cookie. This policy can be associated only with
  334. // HTTP/HTTPS listeners.
  335. //
  336. // This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
  337. // except that the lifetime of the special Elastic Load Balancing cookie, AWSELB,
  338. // follows the lifetime of the application-generated cookie specified in the
  339. // policy configuration. The load balancer only inserts a new stickiness cookie
  340. // when the application response includes a new application cookie.
  341. //
  342. // If the application cookie is explicitly removed or expires, the session stops
  343. // being sticky until a new application cookie is issued.
  344. //
  345. // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
  346. // in the Classic Load Balancers Guide.
  347. //
  348. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  349. // with awserr.Error's Code and Message methods to get detailed information about
  350. // the error.
  351. //
  352. // See the AWS API reference guide for Elastic Load Balancing's
  353. // API operation CreateAppCookieStickinessPolicy for usage and error information.
  354. //
  355. // Returned Error Codes:
  356. // * LoadBalancerNotFound
  357. // The specified load balancer does not exist.
  358. //
  359. // * DuplicatePolicyName
  360. // A policy with the specified name already exists for this load balancer.
  361. //
  362. // * TooManyPolicies
  363. // The quota for the number of policies for this load balancer has been reached.
  364. //
  365. // * InvalidConfigurationRequest
  366. // The requested configuration change is not valid.
  367. //
  368. func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) {
  369. req, out := c.CreateAppCookieStickinessPolicyRequest(input)
  370. err := req.Send()
  371. return out, err
  372. }
  373. const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy"
  374. // CreateLBCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
  375. // client's request for the CreateLBCookieStickinessPolicy operation. The "output" return
  376. // value can be used to capture response data after the request's "Send" method
  377. // is called.
  378. //
  379. // See CreateLBCookieStickinessPolicy for usage and error information.
  380. //
  381. // Creating a request object using this method should be used when you want to inject
  382. // custom logic into the request's lifecycle using a custom handler, or if you want to
  383. // access properties on the request object before or after sending the request. If
  384. // you just want the service response, call the CreateLBCookieStickinessPolicy method directly
  385. // instead.
  386. //
  387. // Note: You must call the "Send" method on the returned request object in order
  388. // to execute the request.
  389. //
  390. // // Example sending a request using the CreateLBCookieStickinessPolicyRequest method.
  391. // req, resp := client.CreateLBCookieStickinessPolicyRequest(params)
  392. //
  393. // err := req.Send()
  394. // if err == nil { // resp is now filled
  395. // fmt.Println(resp)
  396. // }
  397. //
  398. func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) {
  399. op := &request.Operation{
  400. Name: opCreateLBCookieStickinessPolicy,
  401. HTTPMethod: "POST",
  402. HTTPPath: "/",
  403. }
  404. if input == nil {
  405. input = &CreateLBCookieStickinessPolicyInput{}
  406. }
  407. req = c.newRequest(op, input, output)
  408. output = &CreateLBCookieStickinessPolicyOutput{}
  409. req.Data = output
  410. return
  411. }
  412. // CreateLBCookieStickinessPolicy API operation for Elastic Load Balancing.
  413. //
  414. // Generates a stickiness policy with sticky session lifetimes controlled by
  415. // the lifetime of the browser (user-agent) or a specified expiration period.
  416. // This policy can be associated only with HTTP/HTTPS listeners.
  417. //
  418. // When a load balancer implements this policy, the load balancer uses a special
  419. // cookie to track the instance for each request. When the load balancer receives
  420. // a request, it first checks to see if this cookie is present in the request.
  421. // If so, the load balancer sends the request to the application server specified
  422. // in the cookie. If not, the load balancer sends the request to a server that
  423. // is chosen based on the existing load-balancing algorithm.
  424. //
  425. // A cookie is inserted into the response for binding subsequent requests from
  426. // the same user to that server. The validity of the cookie is based on the
  427. // cookie expiration time, which is specified in the policy configuration.
  428. //
  429. // For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration)
  430. // in the Classic Load Balancers Guide.
  431. //
  432. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  433. // with awserr.Error's Code and Message methods to get detailed information about
  434. // the error.
  435. //
  436. // See the AWS API reference guide for Elastic Load Balancing's
  437. // API operation CreateLBCookieStickinessPolicy for usage and error information.
  438. //
  439. // Returned Error Codes:
  440. // * LoadBalancerNotFound
  441. // The specified load balancer does not exist.
  442. //
  443. // * DuplicatePolicyName
  444. // A policy with the specified name already exists for this load balancer.
  445. //
  446. // * TooManyPolicies
  447. // The quota for the number of policies for this load balancer has been reached.
  448. //
  449. // * InvalidConfigurationRequest
  450. // The requested configuration change is not valid.
  451. //
  452. func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) {
  453. req, out := c.CreateLBCookieStickinessPolicyRequest(input)
  454. err := req.Send()
  455. return out, err
  456. }
  457. const opCreateLoadBalancer = "CreateLoadBalancer"
  458. // CreateLoadBalancerRequest generates a "aws/request.Request" representing the
  459. // client's request for the CreateLoadBalancer operation. The "output" return
  460. // value can be used to capture response data after the request's "Send" method
  461. // is called.
  462. //
  463. // See CreateLoadBalancer for usage and error information.
  464. //
  465. // Creating a request object using this method should be used when you want to inject
  466. // custom logic into the request's lifecycle using a custom handler, or if you want to
  467. // access properties on the request object before or after sending the request. If
  468. // you just want the service response, call the CreateLoadBalancer method directly
  469. // instead.
  470. //
  471. // Note: You must call the "Send" method on the returned request object in order
  472. // to execute the request.
  473. //
  474. // // Example sending a request using the CreateLoadBalancerRequest method.
  475. // req, resp := client.CreateLoadBalancerRequest(params)
  476. //
  477. // err := req.Send()
  478. // if err == nil { // resp is now filled
  479. // fmt.Println(resp)
  480. // }
  481. //
  482. func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
  483. op := &request.Operation{
  484. Name: opCreateLoadBalancer,
  485. HTTPMethod: "POST",
  486. HTTPPath: "/",
  487. }
  488. if input == nil {
  489. input = &CreateLoadBalancerInput{}
  490. }
  491. req = c.newRequest(op, input, output)
  492. output = &CreateLoadBalancerOutput{}
  493. req.Data = output
  494. return
  495. }
  496. // CreateLoadBalancer API operation for Elastic Load Balancing.
  497. //
  498. // Creates a Classic load balancer.
  499. //
  500. // You can add listeners, security groups, subnets, and tags when you create
  501. // your load balancer, or you can add them later using CreateLoadBalancerListeners,
  502. // ApplySecurityGroupsToLoadBalancer, AttachLoadBalancerToSubnets, and AddTags.
  503. //
  504. // To describe your current load balancers, see DescribeLoadBalancers. When
  505. // you are finished with a load balancer, you can delete it using DeleteLoadBalancer.
  506. //
  507. // You can create up to 20 load balancers per region per account. You can request
  508. // an increase for the number of load balancers for your account. For more information,
  509. // see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html)
  510. // in the Classic Load Balancers Guide.
  511. //
  512. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  513. // with awserr.Error's Code and Message methods to get detailed information about
  514. // the error.
  515. //
  516. // See the AWS API reference guide for Elastic Load Balancing's
  517. // API operation CreateLoadBalancer for usage and error information.
  518. //
  519. // Returned Error Codes:
  520. // * DuplicateLoadBalancerName
  521. // The specified load balancer name already exists for this account.
  522. //
  523. // * TooManyLoadBalancers
  524. // The quota for the number of load balancers has been reached.
  525. //
  526. // * CertificateNotFound
  527. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  528. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  529. // you recently uploaded the certificate to IAM, this error might indicate that
  530. // the certificate is not fully available yet.
  531. //
  532. // * InvalidConfigurationRequest
  533. // The requested configuration change is not valid.
  534. //
  535. // * SubnetNotFound
  536. // One or more of the specified subnets do not exist.
  537. //
  538. // * InvalidSubnet
  539. // The specified VPC has no associated Internet gateway.
  540. //
  541. // * InvalidSecurityGroup
  542. // One or more of the specified security groups do not exist.
  543. //
  544. // * InvalidScheme
  545. // The specified value for the schema is not valid. You can only specify a scheme
  546. // for load balancers in a VPC.
  547. //
  548. // * TooManyTags
  549. // The quota for the number of tags that can be assigned to a load balancer
  550. // has been reached.
  551. //
  552. // * DuplicateTagKeys
  553. // A tag key was specified more than once.
  554. //
  555. // * UnsupportedProtocol
  556. //
  557. func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
  558. req, out := c.CreateLoadBalancerRequest(input)
  559. err := req.Send()
  560. return out, err
  561. }
  562. const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners"
  563. // CreateLoadBalancerListenersRequest generates a "aws/request.Request" representing the
  564. // client's request for the CreateLoadBalancerListeners operation. The "output" return
  565. // value can be used to capture response data after the request's "Send" method
  566. // is called.
  567. //
  568. // See CreateLoadBalancerListeners for usage and error information.
  569. //
  570. // Creating a request object using this method should be used when you want to inject
  571. // custom logic into the request's lifecycle using a custom handler, or if you want to
  572. // access properties on the request object before or after sending the request. If
  573. // you just want the service response, call the CreateLoadBalancerListeners method directly
  574. // instead.
  575. //
  576. // Note: You must call the "Send" method on the returned request object in order
  577. // to execute the request.
  578. //
  579. // // Example sending a request using the CreateLoadBalancerListenersRequest method.
  580. // req, resp := client.CreateLoadBalancerListenersRequest(params)
  581. //
  582. // err := req.Send()
  583. // if err == nil { // resp is now filled
  584. // fmt.Println(resp)
  585. // }
  586. //
  587. func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) {
  588. op := &request.Operation{
  589. Name: opCreateLoadBalancerListeners,
  590. HTTPMethod: "POST",
  591. HTTPPath: "/",
  592. }
  593. if input == nil {
  594. input = &CreateLoadBalancerListenersInput{}
  595. }
  596. req = c.newRequest(op, input, output)
  597. output = &CreateLoadBalancerListenersOutput{}
  598. req.Data = output
  599. return
  600. }
  601. // CreateLoadBalancerListeners API operation for Elastic Load Balancing.
  602. //
  603. // Creates one or more listeners for the specified load balancer. If a listener
  604. // with the specified port does not already exist, it is created; otherwise,
  605. // the properties of the new listener must match the properties of the existing
  606. // listener.
  607. //
  608. // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  609. // in the Classic Load Balancers Guide.
  610. //
  611. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  612. // with awserr.Error's Code and Message methods to get detailed information about
  613. // the error.
  614. //
  615. // See the AWS API reference guide for Elastic Load Balancing's
  616. // API operation CreateLoadBalancerListeners for usage and error information.
  617. //
  618. // Returned Error Codes:
  619. // * LoadBalancerNotFound
  620. // The specified load balancer does not exist.
  621. //
  622. // * DuplicateListener
  623. // A listener already exists for the specified load balancer name and port,
  624. // but with a different instance port, protocol, or SSL certificate.
  625. //
  626. // * CertificateNotFound
  627. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  628. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  629. // you recently uploaded the certificate to IAM, this error might indicate that
  630. // the certificate is not fully available yet.
  631. //
  632. // * InvalidConfigurationRequest
  633. // The requested configuration change is not valid.
  634. //
  635. // * UnsupportedProtocol
  636. //
  637. func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) {
  638. req, out := c.CreateLoadBalancerListenersRequest(input)
  639. err := req.Send()
  640. return out, err
  641. }
  642. const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy"
  643. // CreateLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
  644. // client's request for the CreateLoadBalancerPolicy operation. The "output" return
  645. // value can be used to capture response data after the request's "Send" method
  646. // is called.
  647. //
  648. // See CreateLoadBalancerPolicy for usage and error information.
  649. //
  650. // Creating a request object using this method should be used when you want to inject
  651. // custom logic into the request's lifecycle using a custom handler, or if you want to
  652. // access properties on the request object before or after sending the request. If
  653. // you just want the service response, call the CreateLoadBalancerPolicy method directly
  654. // instead.
  655. //
  656. // Note: You must call the "Send" method on the returned request object in order
  657. // to execute the request.
  658. //
  659. // // Example sending a request using the CreateLoadBalancerPolicyRequest method.
  660. // req, resp := client.CreateLoadBalancerPolicyRequest(params)
  661. //
  662. // err := req.Send()
  663. // if err == nil { // resp is now filled
  664. // fmt.Println(resp)
  665. // }
  666. //
  667. func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) {
  668. op := &request.Operation{
  669. Name: opCreateLoadBalancerPolicy,
  670. HTTPMethod: "POST",
  671. HTTPPath: "/",
  672. }
  673. if input == nil {
  674. input = &CreateLoadBalancerPolicyInput{}
  675. }
  676. req = c.newRequest(op, input, output)
  677. output = &CreateLoadBalancerPolicyOutput{}
  678. req.Data = output
  679. return
  680. }
  681. // CreateLoadBalancerPolicy API operation for Elastic Load Balancing.
  682. //
  683. // Creates a policy with the specified attributes for the specified load balancer.
  684. //
  685. // Policies are settings that are saved for your load balancer and that can
  686. // be applied to the listener or the application server, depending on the policy
  687. // type.
  688. //
  689. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  690. // with awserr.Error's Code and Message methods to get detailed information about
  691. // the error.
  692. //
  693. // See the AWS API reference guide for Elastic Load Balancing's
  694. // API operation CreateLoadBalancerPolicy for usage and error information.
  695. //
  696. // Returned Error Codes:
  697. // * LoadBalancerNotFound
  698. // The specified load balancer does not exist.
  699. //
  700. // * PolicyTypeNotFound
  701. // One or more of the specified policy types do not exist.
  702. //
  703. // * DuplicatePolicyName
  704. // A policy with the specified name already exists for this load balancer.
  705. //
  706. // * TooManyPolicies
  707. // The quota for the number of policies for this load balancer has been reached.
  708. //
  709. // * InvalidConfigurationRequest
  710. // The requested configuration change is not valid.
  711. //
  712. func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) {
  713. req, out := c.CreateLoadBalancerPolicyRequest(input)
  714. err := req.Send()
  715. return out, err
  716. }
  717. const opDeleteLoadBalancer = "DeleteLoadBalancer"
  718. // DeleteLoadBalancerRequest generates a "aws/request.Request" representing the
  719. // client's request for the DeleteLoadBalancer operation. The "output" return
  720. // value can be used to capture response data after the request's "Send" method
  721. // is called.
  722. //
  723. // See DeleteLoadBalancer for usage and error information.
  724. //
  725. // Creating a request object using this method should be used when you want to inject
  726. // custom logic into the request's lifecycle using a custom handler, or if you want to
  727. // access properties on the request object before or after sending the request. If
  728. // you just want the service response, call the DeleteLoadBalancer method directly
  729. // instead.
  730. //
  731. // Note: You must call the "Send" method on the returned request object in order
  732. // to execute the request.
  733. //
  734. // // Example sending a request using the DeleteLoadBalancerRequest method.
  735. // req, resp := client.DeleteLoadBalancerRequest(params)
  736. //
  737. // err := req.Send()
  738. // if err == nil { // resp is now filled
  739. // fmt.Println(resp)
  740. // }
  741. //
  742. func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
  743. op := &request.Operation{
  744. Name: opDeleteLoadBalancer,
  745. HTTPMethod: "POST",
  746. HTTPPath: "/",
  747. }
  748. if input == nil {
  749. input = &DeleteLoadBalancerInput{}
  750. }
  751. req = c.newRequest(op, input, output)
  752. output = &DeleteLoadBalancerOutput{}
  753. req.Data = output
  754. return
  755. }
  756. // DeleteLoadBalancer API operation for Elastic Load Balancing.
  757. //
  758. // Deletes the specified load balancer.
  759. //
  760. // If you are attempting to recreate a load balancer, you must reconfigure all
  761. // settings. The DNS name associated with a deleted load balancer are no longer
  762. // usable. The name and associated DNS record of the deleted load balancer no
  763. // longer exist and traffic sent to any of its IP addresses is no longer delivered
  764. // to your instances.
  765. //
  766. // If the load balancer does not exist or has already been deleted, the call
  767. // to DeleteLoadBalancer still succeeds.
  768. //
  769. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  770. // with awserr.Error's Code and Message methods to get detailed information about
  771. // the error.
  772. //
  773. // See the AWS API reference guide for Elastic Load Balancing's
  774. // API operation DeleteLoadBalancer for usage and error information.
  775. func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
  776. req, out := c.DeleteLoadBalancerRequest(input)
  777. err := req.Send()
  778. return out, err
  779. }
  780. const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners"
  781. // DeleteLoadBalancerListenersRequest generates a "aws/request.Request" representing the
  782. // client's request for the DeleteLoadBalancerListeners operation. The "output" return
  783. // value can be used to capture response data after the request's "Send" method
  784. // is called.
  785. //
  786. // See DeleteLoadBalancerListeners for usage and error information.
  787. //
  788. // Creating a request object using this method should be used when you want to inject
  789. // custom logic into the request's lifecycle using a custom handler, or if you want to
  790. // access properties on the request object before or after sending the request. If
  791. // you just want the service response, call the DeleteLoadBalancerListeners method directly
  792. // instead.
  793. //
  794. // Note: You must call the "Send" method on the returned request object in order
  795. // to execute the request.
  796. //
  797. // // Example sending a request using the DeleteLoadBalancerListenersRequest method.
  798. // req, resp := client.DeleteLoadBalancerListenersRequest(params)
  799. //
  800. // err := req.Send()
  801. // if err == nil { // resp is now filled
  802. // fmt.Println(resp)
  803. // }
  804. //
  805. func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) {
  806. op := &request.Operation{
  807. Name: opDeleteLoadBalancerListeners,
  808. HTTPMethod: "POST",
  809. HTTPPath: "/",
  810. }
  811. if input == nil {
  812. input = &DeleteLoadBalancerListenersInput{}
  813. }
  814. req = c.newRequest(op, input, output)
  815. output = &DeleteLoadBalancerListenersOutput{}
  816. req.Data = output
  817. return
  818. }
  819. // DeleteLoadBalancerListeners API operation for Elastic Load Balancing.
  820. //
  821. // Deletes the specified listeners from the specified load balancer.
  822. //
  823. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  824. // with awserr.Error's Code and Message methods to get detailed information about
  825. // the error.
  826. //
  827. // See the AWS API reference guide for Elastic Load Balancing's
  828. // API operation DeleteLoadBalancerListeners for usage and error information.
  829. //
  830. // Returned Error Codes:
  831. // * LoadBalancerNotFound
  832. // The specified load balancer does not exist.
  833. //
  834. func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) {
  835. req, out := c.DeleteLoadBalancerListenersRequest(input)
  836. err := req.Send()
  837. return out, err
  838. }
  839. const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy"
  840. // DeleteLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
  841. // client's request for the DeleteLoadBalancerPolicy operation. The "output" return
  842. // value can be used to capture response data after the request's "Send" method
  843. // is called.
  844. //
  845. // See DeleteLoadBalancerPolicy for usage and error information.
  846. //
  847. // Creating a request object using this method should be used when you want to inject
  848. // custom logic into the request's lifecycle using a custom handler, or if you want to
  849. // access properties on the request object before or after sending the request. If
  850. // you just want the service response, call the DeleteLoadBalancerPolicy method directly
  851. // instead.
  852. //
  853. // Note: You must call the "Send" method on the returned request object in order
  854. // to execute the request.
  855. //
  856. // // Example sending a request using the DeleteLoadBalancerPolicyRequest method.
  857. // req, resp := client.DeleteLoadBalancerPolicyRequest(params)
  858. //
  859. // err := req.Send()
  860. // if err == nil { // resp is now filled
  861. // fmt.Println(resp)
  862. // }
  863. //
  864. func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) {
  865. op := &request.Operation{
  866. Name: opDeleteLoadBalancerPolicy,
  867. HTTPMethod: "POST",
  868. HTTPPath: "/",
  869. }
  870. if input == nil {
  871. input = &DeleteLoadBalancerPolicyInput{}
  872. }
  873. req = c.newRequest(op, input, output)
  874. output = &DeleteLoadBalancerPolicyOutput{}
  875. req.Data = output
  876. return
  877. }
  878. // DeleteLoadBalancerPolicy API operation for Elastic Load Balancing.
  879. //
  880. // Deletes the specified policy from the specified load balancer. This policy
  881. // must not be enabled for any listeners.
  882. //
  883. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  884. // with awserr.Error's Code and Message methods to get detailed information about
  885. // the error.
  886. //
  887. // See the AWS API reference guide for Elastic Load Balancing's
  888. // API operation DeleteLoadBalancerPolicy for usage and error information.
  889. //
  890. // Returned Error Codes:
  891. // * LoadBalancerNotFound
  892. // The specified load balancer does not exist.
  893. //
  894. // * InvalidConfigurationRequest
  895. // The requested configuration change is not valid.
  896. //
  897. func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) {
  898. req, out := c.DeleteLoadBalancerPolicyRequest(input)
  899. err := req.Send()
  900. return out, err
  901. }
  902. const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalancer"
  903. // DeregisterInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the
  904. // client's request for the DeregisterInstancesFromLoadBalancer operation. The "output" return
  905. // value can be used to capture response data after the request's "Send" method
  906. // is called.
  907. //
  908. // See DeregisterInstancesFromLoadBalancer for usage and error information.
  909. //
  910. // Creating a request object using this method should be used when you want to inject
  911. // custom logic into the request's lifecycle using a custom handler, or if you want to
  912. // access properties on the request object before or after sending the request. If
  913. // you just want the service response, call the DeregisterInstancesFromLoadBalancer method directly
  914. // instead.
  915. //
  916. // Note: You must call the "Send" method on the returned request object in order
  917. // to execute the request.
  918. //
  919. // // Example sending a request using the DeregisterInstancesFromLoadBalancerRequest method.
  920. // req, resp := client.DeregisterInstancesFromLoadBalancerRequest(params)
  921. //
  922. // err := req.Send()
  923. // if err == nil { // resp is now filled
  924. // fmt.Println(resp)
  925. // }
  926. //
  927. func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) {
  928. op := &request.Operation{
  929. Name: opDeregisterInstancesFromLoadBalancer,
  930. HTTPMethod: "POST",
  931. HTTPPath: "/",
  932. }
  933. if input == nil {
  934. input = &DeregisterInstancesFromLoadBalancerInput{}
  935. }
  936. req = c.newRequest(op, input, output)
  937. output = &DeregisterInstancesFromLoadBalancerOutput{}
  938. req.Data = output
  939. return
  940. }
  941. // DeregisterInstancesFromLoadBalancer API operation for Elastic Load Balancing.
  942. //
  943. // Deregisters the specified instances from the specified load balancer. After
  944. // the instance is deregistered, it no longer receives traffic from the load
  945. // balancer.
  946. //
  947. // You can use DescribeLoadBalancers to verify that the instance is deregistered
  948. // from the load balancer.
  949. //
  950. // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
  951. // in the Classic Load Balancers Guide.
  952. //
  953. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  954. // with awserr.Error's Code and Message methods to get detailed information about
  955. // the error.
  956. //
  957. // See the AWS API reference guide for Elastic Load Balancing's
  958. // API operation DeregisterInstancesFromLoadBalancer for usage and error information.
  959. //
  960. // Returned Error Codes:
  961. // * LoadBalancerNotFound
  962. // The specified load balancer does not exist.
  963. //
  964. // * InvalidInstance
  965. // The specified endpoint is not valid.
  966. //
  967. func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) {
  968. req, out := c.DeregisterInstancesFromLoadBalancerRequest(input)
  969. err := req.Send()
  970. return out, err
  971. }
  972. const opDescribeInstanceHealth = "DescribeInstanceHealth"
  973. // DescribeInstanceHealthRequest generates a "aws/request.Request" representing the
  974. // client's request for the DescribeInstanceHealth operation. The "output" return
  975. // value can be used to capture response data after the request's "Send" method
  976. // is called.
  977. //
  978. // See DescribeInstanceHealth for usage and error information.
  979. //
  980. // Creating a request object using this method should be used when you want to inject
  981. // custom logic into the request's lifecycle using a custom handler, or if you want to
  982. // access properties on the request object before or after sending the request. If
  983. // you just want the service response, call the DescribeInstanceHealth method directly
  984. // instead.
  985. //
  986. // Note: You must call the "Send" method on the returned request object in order
  987. // to execute the request.
  988. //
  989. // // Example sending a request using the DescribeInstanceHealthRequest method.
  990. // req, resp := client.DescribeInstanceHealthRequest(params)
  991. //
  992. // err := req.Send()
  993. // if err == nil { // resp is now filled
  994. // fmt.Println(resp)
  995. // }
  996. //
  997. func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) {
  998. op := &request.Operation{
  999. Name: opDescribeInstanceHealth,
  1000. HTTPMethod: "POST",
  1001. HTTPPath: "/",
  1002. }
  1003. if input == nil {
  1004. input = &DescribeInstanceHealthInput{}
  1005. }
  1006. req = c.newRequest(op, input, output)
  1007. output = &DescribeInstanceHealthOutput{}
  1008. req.Data = output
  1009. return
  1010. }
  1011. // DescribeInstanceHealth API operation for Elastic Load Balancing.
  1012. //
  1013. // Describes the state of the specified instances with respect to the specified
  1014. // load balancer. If no instances are specified, the call describes the state
  1015. // of all instances that are currently registered with the load balancer. If
  1016. // instances are specified, their state is returned even if they are no longer
  1017. // registered with the load balancer. The state of terminated instances is not
  1018. // returned.
  1019. //
  1020. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1021. // with awserr.Error's Code and Message methods to get detailed information about
  1022. // the error.
  1023. //
  1024. // See the AWS API reference guide for Elastic Load Balancing's
  1025. // API operation DescribeInstanceHealth for usage and error information.
  1026. //
  1027. // Returned Error Codes:
  1028. // * LoadBalancerNotFound
  1029. // The specified load balancer does not exist.
  1030. //
  1031. // * InvalidInstance
  1032. // The specified endpoint is not valid.
  1033. //
  1034. func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) {
  1035. req, out := c.DescribeInstanceHealthRequest(input)
  1036. err := req.Send()
  1037. return out, err
  1038. }
  1039. const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
  1040. // DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
  1041. // client's request for the DescribeLoadBalancerAttributes operation. The "output" return
  1042. // value can be used to capture response data after the request's "Send" method
  1043. // is called.
  1044. //
  1045. // See DescribeLoadBalancerAttributes for usage and error information.
  1046. //
  1047. // Creating a request object using this method should be used when you want to inject
  1048. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1049. // access properties on the request object before or after sending the request. If
  1050. // you just want the service response, call the DescribeLoadBalancerAttributes method directly
  1051. // instead.
  1052. //
  1053. // Note: You must call the "Send" method on the returned request object in order
  1054. // to execute the request.
  1055. //
  1056. // // Example sending a request using the DescribeLoadBalancerAttributesRequest method.
  1057. // req, resp := client.DescribeLoadBalancerAttributesRequest(params)
  1058. //
  1059. // err := req.Send()
  1060. // if err == nil { // resp is now filled
  1061. // fmt.Println(resp)
  1062. // }
  1063. //
  1064. func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
  1065. op := &request.Operation{
  1066. Name: opDescribeLoadBalancerAttributes,
  1067. HTTPMethod: "POST",
  1068. HTTPPath: "/",
  1069. }
  1070. if input == nil {
  1071. input = &DescribeLoadBalancerAttributesInput{}
  1072. }
  1073. req = c.newRequest(op, input, output)
  1074. output = &DescribeLoadBalancerAttributesOutput{}
  1075. req.Data = output
  1076. return
  1077. }
  1078. // DescribeLoadBalancerAttributes API operation for Elastic Load Balancing.
  1079. //
  1080. // Describes the attributes for the specified load balancer.
  1081. //
  1082. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1083. // with awserr.Error's Code and Message methods to get detailed information about
  1084. // the error.
  1085. //
  1086. // See the AWS API reference guide for Elastic Load Balancing's
  1087. // API operation DescribeLoadBalancerAttributes for usage and error information.
  1088. //
  1089. // Returned Error Codes:
  1090. // * LoadBalancerNotFound
  1091. // The specified load balancer does not exist.
  1092. //
  1093. // * LoadBalancerAttributeNotFound
  1094. // The specified load balancer attribute does not exist.
  1095. //
  1096. func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
  1097. req, out := c.DescribeLoadBalancerAttributesRequest(input)
  1098. err := req.Send()
  1099. return out, err
  1100. }
  1101. const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies"
  1102. // DescribeLoadBalancerPoliciesRequest generates a "aws/request.Request" representing the
  1103. // client's request for the DescribeLoadBalancerPolicies operation. The "output" return
  1104. // value can be used to capture response data after the request's "Send" method
  1105. // is called.
  1106. //
  1107. // See DescribeLoadBalancerPolicies for usage and error information.
  1108. //
  1109. // Creating a request object using this method should be used when you want to inject
  1110. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1111. // access properties on the request object before or after sending the request. If
  1112. // you just want the service response, call the DescribeLoadBalancerPolicies method directly
  1113. // instead.
  1114. //
  1115. // Note: You must call the "Send" method on the returned request object in order
  1116. // to execute the request.
  1117. //
  1118. // // Example sending a request using the DescribeLoadBalancerPoliciesRequest method.
  1119. // req, resp := client.DescribeLoadBalancerPoliciesRequest(params)
  1120. //
  1121. // err := req.Send()
  1122. // if err == nil { // resp is now filled
  1123. // fmt.Println(resp)
  1124. // }
  1125. //
  1126. func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) {
  1127. op := &request.Operation{
  1128. Name: opDescribeLoadBalancerPolicies,
  1129. HTTPMethod: "POST",
  1130. HTTPPath: "/",
  1131. }
  1132. if input == nil {
  1133. input = &DescribeLoadBalancerPoliciesInput{}
  1134. }
  1135. req = c.newRequest(op, input, output)
  1136. output = &DescribeLoadBalancerPoliciesOutput{}
  1137. req.Data = output
  1138. return
  1139. }
  1140. // DescribeLoadBalancerPolicies API operation for Elastic Load Balancing.
  1141. //
  1142. // Describes the specified policies.
  1143. //
  1144. // If you specify a load balancer name, the action returns the descriptions
  1145. // of all policies created for the load balancer. If you specify a policy name
  1146. // associated with your load balancer, the action returns the description of
  1147. // that policy. If you don't specify a load balancer name, the action returns
  1148. // descriptions of the specified sample policies, or descriptions of all sample
  1149. // policies. The names of the sample policies have the ELBSample- prefix.
  1150. //
  1151. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1152. // with awserr.Error's Code and Message methods to get detailed information about
  1153. // the error.
  1154. //
  1155. // See the AWS API reference guide for Elastic Load Balancing's
  1156. // API operation DescribeLoadBalancerPolicies for usage and error information.
  1157. //
  1158. // Returned Error Codes:
  1159. // * LoadBalancerNotFound
  1160. // The specified load balancer does not exist.
  1161. //
  1162. // * PolicyNotFound
  1163. // One or more of the specified policies do not exist.
  1164. //
  1165. func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) {
  1166. req, out := c.DescribeLoadBalancerPoliciesRequest(input)
  1167. err := req.Send()
  1168. return out, err
  1169. }
  1170. const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes"
  1171. // DescribeLoadBalancerPolicyTypesRequest generates a "aws/request.Request" representing the
  1172. // client's request for the DescribeLoadBalancerPolicyTypes operation. The "output" return
  1173. // value can be used to capture response data after the request's "Send" method
  1174. // is called.
  1175. //
  1176. // See DescribeLoadBalancerPolicyTypes for usage and error information.
  1177. //
  1178. // Creating a request object using this method should be used when you want to inject
  1179. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1180. // access properties on the request object before or after sending the request. If
  1181. // you just want the service response, call the DescribeLoadBalancerPolicyTypes method directly
  1182. // instead.
  1183. //
  1184. // Note: You must call the "Send" method on the returned request object in order
  1185. // to execute the request.
  1186. //
  1187. // // Example sending a request using the DescribeLoadBalancerPolicyTypesRequest method.
  1188. // req, resp := client.DescribeLoadBalancerPolicyTypesRequest(params)
  1189. //
  1190. // err := req.Send()
  1191. // if err == nil { // resp is now filled
  1192. // fmt.Println(resp)
  1193. // }
  1194. //
  1195. func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) {
  1196. op := &request.Operation{
  1197. Name: opDescribeLoadBalancerPolicyTypes,
  1198. HTTPMethod: "POST",
  1199. HTTPPath: "/",
  1200. }
  1201. if input == nil {
  1202. input = &DescribeLoadBalancerPolicyTypesInput{}
  1203. }
  1204. req = c.newRequest(op, input, output)
  1205. output = &DescribeLoadBalancerPolicyTypesOutput{}
  1206. req.Data = output
  1207. return
  1208. }
  1209. // DescribeLoadBalancerPolicyTypes API operation for Elastic Load Balancing.
  1210. //
  1211. // Describes the specified load balancer policy types or all load balancer policy
  1212. // types.
  1213. //
  1214. // The description of each type indicates how it can be used. For example, some
  1215. // policies can be used only with layer 7 listeners, some policies can be used
  1216. // only with layer 4 listeners, and some policies can be used only with your
  1217. // EC2 instances.
  1218. //
  1219. // You can use CreateLoadBalancerPolicy to create a policy configuration for
  1220. // any of these policy types. Then, depending on the policy type, use either
  1221. // SetLoadBalancerPoliciesOfListener or SetLoadBalancerPoliciesForBackendServer
  1222. // to set the policy.
  1223. //
  1224. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1225. // with awserr.Error's Code and Message methods to get detailed information about
  1226. // the error.
  1227. //
  1228. // See the AWS API reference guide for Elastic Load Balancing's
  1229. // API operation DescribeLoadBalancerPolicyTypes for usage and error information.
  1230. //
  1231. // Returned Error Codes:
  1232. // * PolicyTypeNotFound
  1233. // One or more of the specified policy types do not exist.
  1234. //
  1235. func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) {
  1236. req, out := c.DescribeLoadBalancerPolicyTypesRequest(input)
  1237. err := req.Send()
  1238. return out, err
  1239. }
  1240. const opDescribeLoadBalancers = "DescribeLoadBalancers"
  1241. // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
  1242. // client's request for the DescribeLoadBalancers operation. The "output" return
  1243. // value can be used to capture response data after the request's "Send" method
  1244. // is called.
  1245. //
  1246. // See DescribeLoadBalancers for usage and error information.
  1247. //
  1248. // Creating a request object using this method should be used when you want to inject
  1249. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1250. // access properties on the request object before or after sending the request. If
  1251. // you just want the service response, call the DescribeLoadBalancers method directly
  1252. // instead.
  1253. //
  1254. // Note: You must call the "Send" method on the returned request object in order
  1255. // to execute the request.
  1256. //
  1257. // // Example sending a request using the DescribeLoadBalancersRequest method.
  1258. // req, resp := client.DescribeLoadBalancersRequest(params)
  1259. //
  1260. // err := req.Send()
  1261. // if err == nil { // resp is now filled
  1262. // fmt.Println(resp)
  1263. // }
  1264. //
  1265. func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
  1266. op := &request.Operation{
  1267. Name: opDescribeLoadBalancers,
  1268. HTTPMethod: "POST",
  1269. HTTPPath: "/",
  1270. Paginator: &request.Paginator{
  1271. InputTokens: []string{"Marker"},
  1272. OutputTokens: []string{"NextMarker"},
  1273. LimitToken: "",
  1274. TruncationToken: "",
  1275. },
  1276. }
  1277. if input == nil {
  1278. input = &DescribeLoadBalancersInput{}
  1279. }
  1280. req = c.newRequest(op, input, output)
  1281. output = &DescribeLoadBalancersOutput{}
  1282. req.Data = output
  1283. return
  1284. }
  1285. // DescribeLoadBalancers API operation for Elastic Load Balancing.
  1286. //
  1287. // Describes the specified the load balancers. If no load balancers are specified,
  1288. // the call describes all of your load balancers.
  1289. //
  1290. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1291. // with awserr.Error's Code and Message methods to get detailed information about
  1292. // the error.
  1293. //
  1294. // See the AWS API reference guide for Elastic Load Balancing's
  1295. // API operation DescribeLoadBalancers for usage and error information.
  1296. //
  1297. // Returned Error Codes:
  1298. // * LoadBalancerNotFound
  1299. // The specified load balancer does not exist.
  1300. //
  1301. // * DependencyThrottle
  1302. //
  1303. func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
  1304. req, out := c.DescribeLoadBalancersRequest(input)
  1305. err := req.Send()
  1306. return out, err
  1307. }
  1308. // DescribeLoadBalancersPages iterates over the pages of a DescribeLoadBalancers operation,
  1309. // calling the "fn" function with the response data for each page. To stop
  1310. // iterating, return false from the fn function.
  1311. //
  1312. // See DescribeLoadBalancers method for more information on how to use this operation.
  1313. //
  1314. // Note: This operation can generate multiple requests to a service.
  1315. //
  1316. // // Example iterating over at most 3 pages of a DescribeLoadBalancers operation.
  1317. // pageNum := 0
  1318. // err := client.DescribeLoadBalancersPages(params,
  1319. // func(page *DescribeLoadBalancersOutput, lastPage bool) bool {
  1320. // pageNum++
  1321. // fmt.Println(page)
  1322. // return pageNum <= 3
  1323. // })
  1324. //
  1325. func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error {
  1326. page, _ := c.DescribeLoadBalancersRequest(input)
  1327. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1328. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1329. return fn(p.(*DescribeLoadBalancersOutput), lastPage)
  1330. })
  1331. }
  1332. const opDescribeTags = "DescribeTags"
  1333. // DescribeTagsRequest generates a "aws/request.Request" representing the
  1334. // client's request for the DescribeTags operation. The "output" return
  1335. // value can be used to capture response data after the request's "Send" method
  1336. // is called.
  1337. //
  1338. // See DescribeTags for usage and error information.
  1339. //
  1340. // Creating a request object using this method should be used when you want to inject
  1341. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1342. // access properties on the request object before or after sending the request. If
  1343. // you just want the service response, call the DescribeTags method directly
  1344. // instead.
  1345. //
  1346. // Note: You must call the "Send" method on the returned request object in order
  1347. // to execute the request.
  1348. //
  1349. // // Example sending a request using the DescribeTagsRequest method.
  1350. // req, resp := client.DescribeTagsRequest(params)
  1351. //
  1352. // err := req.Send()
  1353. // if err == nil { // resp is now filled
  1354. // fmt.Println(resp)
  1355. // }
  1356. //
  1357. func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1358. op := &request.Operation{
  1359. Name: opDescribeTags,
  1360. HTTPMethod: "POST",
  1361. HTTPPath: "/",
  1362. }
  1363. if input == nil {
  1364. input = &DescribeTagsInput{}
  1365. }
  1366. req = c.newRequest(op, input, output)
  1367. output = &DescribeTagsOutput{}
  1368. req.Data = output
  1369. return
  1370. }
  1371. // DescribeTags API operation for Elastic Load Balancing.
  1372. //
  1373. // Describes the tags associated with the specified load balancers.
  1374. //
  1375. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1376. // with awserr.Error's Code and Message methods to get detailed information about
  1377. // the error.
  1378. //
  1379. // See the AWS API reference guide for Elastic Load Balancing's
  1380. // API operation DescribeTags for usage and error information.
  1381. //
  1382. // Returned Error Codes:
  1383. // * LoadBalancerNotFound
  1384. // The specified load balancer does not exist.
  1385. //
  1386. func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1387. req, out := c.DescribeTagsRequest(input)
  1388. err := req.Send()
  1389. return out, err
  1390. }
  1391. const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
  1392. // DetachLoadBalancerFromSubnetsRequest generates a "aws/request.Request" representing the
  1393. // client's request for the DetachLoadBalancerFromSubnets operation. The "output" return
  1394. // value can be used to capture response data after the request's "Send" method
  1395. // is called.
  1396. //
  1397. // See DetachLoadBalancerFromSubnets for usage and error information.
  1398. //
  1399. // Creating a request object using this method should be used when you want to inject
  1400. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1401. // access properties on the request object before or after sending the request. If
  1402. // you just want the service response, call the DetachLoadBalancerFromSubnets method directly
  1403. // instead.
  1404. //
  1405. // Note: You must call the "Send" method on the returned request object in order
  1406. // to execute the request.
  1407. //
  1408. // // Example sending a request using the DetachLoadBalancerFromSubnetsRequest method.
  1409. // req, resp := client.DetachLoadBalancerFromSubnetsRequest(params)
  1410. //
  1411. // err := req.Send()
  1412. // if err == nil { // resp is now filled
  1413. // fmt.Println(resp)
  1414. // }
  1415. //
  1416. func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
  1417. op := &request.Operation{
  1418. Name: opDetachLoadBalancerFromSubnets,
  1419. HTTPMethod: "POST",
  1420. HTTPPath: "/",
  1421. }
  1422. if input == nil {
  1423. input = &DetachLoadBalancerFromSubnetsInput{}
  1424. }
  1425. req = c.newRequest(op, input, output)
  1426. output = &DetachLoadBalancerFromSubnetsOutput{}
  1427. req.Data = output
  1428. return
  1429. }
  1430. // DetachLoadBalancerFromSubnets API operation for Elastic Load Balancing.
  1431. //
  1432. // Removes the specified subnets from the set of configured subnets for the
  1433. // load balancer.
  1434. //
  1435. // After a subnet is removed, all EC2 instances registered with the load balancer
  1436. // in the removed subnet go into the OutOfService state. Then, the load balancer
  1437. // balances the traffic among the remaining routable subnets.
  1438. //
  1439. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1440. // with awserr.Error's Code and Message methods to get detailed information about
  1441. // the error.
  1442. //
  1443. // See the AWS API reference guide for Elastic Load Balancing's
  1444. // API operation DetachLoadBalancerFromSubnets for usage and error information.
  1445. //
  1446. // Returned Error Codes:
  1447. // * LoadBalancerNotFound
  1448. // The specified load balancer does not exist.
  1449. //
  1450. // * InvalidConfigurationRequest
  1451. // The requested configuration change is not valid.
  1452. //
  1453. func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) {
  1454. req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
  1455. err := req.Send()
  1456. return out, err
  1457. }
  1458. const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
  1459. // DisableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
  1460. // client's request for the DisableAvailabilityZonesForLoadBalancer operation. The "output" return
  1461. // value can be used to capture response data after the request's "Send" method
  1462. // is called.
  1463. //
  1464. // See DisableAvailabilityZonesForLoadBalancer for usage and error information.
  1465. //
  1466. // Creating a request object using this method should be used when you want to inject
  1467. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1468. // access properties on the request object before or after sending the request. If
  1469. // you just want the service response, call the DisableAvailabilityZonesForLoadBalancer method directly
  1470. // instead.
  1471. //
  1472. // Note: You must call the "Send" method on the returned request object in order
  1473. // to execute the request.
  1474. //
  1475. // // Example sending a request using the DisableAvailabilityZonesForLoadBalancerRequest method.
  1476. // req, resp := client.DisableAvailabilityZonesForLoadBalancerRequest(params)
  1477. //
  1478. // err := req.Send()
  1479. // if err == nil { // resp is now filled
  1480. // fmt.Println(resp)
  1481. // }
  1482. //
  1483. func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
  1484. op := &request.Operation{
  1485. Name: opDisableAvailabilityZonesForLoadBalancer,
  1486. HTTPMethod: "POST",
  1487. HTTPPath: "/",
  1488. }
  1489. if input == nil {
  1490. input = &DisableAvailabilityZonesForLoadBalancerInput{}
  1491. }
  1492. req = c.newRequest(op, input, output)
  1493. output = &DisableAvailabilityZonesForLoadBalancerOutput{}
  1494. req.Data = output
  1495. return
  1496. }
  1497. // DisableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
  1498. //
  1499. // Removes the specified Availability Zones from the set of Availability Zones
  1500. // for the specified load balancer.
  1501. //
  1502. // There must be at least one Availability Zone registered with a load balancer
  1503. // at all times. After an Availability Zone is removed, all instances registered
  1504. // with the load balancer that are in the removed Availability Zone go into
  1505. // the OutOfService state. Then, the load balancer attempts to equally balance
  1506. // the traffic among its remaining Availability Zones.
  1507. //
  1508. // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
  1509. // in the Classic Load Balancers Guide.
  1510. //
  1511. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1512. // with awserr.Error's Code and Message methods to get detailed information about
  1513. // the error.
  1514. //
  1515. // See the AWS API reference guide for Elastic Load Balancing's
  1516. // API operation DisableAvailabilityZonesForLoadBalancer for usage and error information.
  1517. //
  1518. // Returned Error Codes:
  1519. // * LoadBalancerNotFound
  1520. // The specified load balancer does not exist.
  1521. //
  1522. // * InvalidConfigurationRequest
  1523. // The requested configuration change is not valid.
  1524. //
  1525. func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
  1526. req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
  1527. err := req.Send()
  1528. return out, err
  1529. }
  1530. const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
  1531. // EnableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
  1532. // client's request for the EnableAvailabilityZonesForLoadBalancer operation. The "output" return
  1533. // value can be used to capture response data after the request's "Send" method
  1534. // is called.
  1535. //
  1536. // See EnableAvailabilityZonesForLoadBalancer for usage and error information.
  1537. //
  1538. // Creating a request object using this method should be used when you want to inject
  1539. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1540. // access properties on the request object before or after sending the request. If
  1541. // you just want the service response, call the EnableAvailabilityZonesForLoadBalancer method directly
  1542. // instead.
  1543. //
  1544. // Note: You must call the "Send" method on the returned request object in order
  1545. // to execute the request.
  1546. //
  1547. // // Example sending a request using the EnableAvailabilityZonesForLoadBalancerRequest method.
  1548. // req, resp := client.EnableAvailabilityZonesForLoadBalancerRequest(params)
  1549. //
  1550. // err := req.Send()
  1551. // if err == nil { // resp is now filled
  1552. // fmt.Println(resp)
  1553. // }
  1554. //
  1555. func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
  1556. op := &request.Operation{
  1557. Name: opEnableAvailabilityZonesForLoadBalancer,
  1558. HTTPMethod: "POST",
  1559. HTTPPath: "/",
  1560. }
  1561. if input == nil {
  1562. input = &EnableAvailabilityZonesForLoadBalancerInput{}
  1563. }
  1564. req = c.newRequest(op, input, output)
  1565. output = &EnableAvailabilityZonesForLoadBalancerOutput{}
  1566. req.Data = output
  1567. return
  1568. }
  1569. // EnableAvailabilityZonesForLoadBalancer API operation for Elastic Load Balancing.
  1570. //
  1571. // Adds the specified Availability Zones to the set of Availability Zones for
  1572. // the specified load balancer.
  1573. //
  1574. // The load balancer evenly distributes requests across all its registered Availability
  1575. // Zones that contain instances.
  1576. //
  1577. // For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
  1578. // in the Classic Load Balancers Guide.
  1579. //
  1580. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1581. // with awserr.Error's Code and Message methods to get detailed information about
  1582. // the error.
  1583. //
  1584. // See the AWS API reference guide for Elastic Load Balancing's
  1585. // API operation EnableAvailabilityZonesForLoadBalancer for usage and error information.
  1586. //
  1587. // Returned Error Codes:
  1588. // * LoadBalancerNotFound
  1589. // The specified load balancer does not exist.
  1590. //
  1591. func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
  1592. req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
  1593. err := req.Send()
  1594. return out, err
  1595. }
  1596. const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
  1597. // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
  1598. // client's request for the ModifyLoadBalancerAttributes operation. The "output" return
  1599. // value can be used to capture response data after the request's "Send" method
  1600. // is called.
  1601. //
  1602. // See ModifyLoadBalancerAttributes for usage and error information.
  1603. //
  1604. // Creating a request object using this method should be used when you want to inject
  1605. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1606. // access properties on the request object before or after sending the request. If
  1607. // you just want the service response, call the ModifyLoadBalancerAttributes method directly
  1608. // instead.
  1609. //
  1610. // Note: You must call the "Send" method on the returned request object in order
  1611. // to execute the request.
  1612. //
  1613. // // Example sending a request using the ModifyLoadBalancerAttributesRequest method.
  1614. // req, resp := client.ModifyLoadBalancerAttributesRequest(params)
  1615. //
  1616. // err := req.Send()
  1617. // if err == nil { // resp is now filled
  1618. // fmt.Println(resp)
  1619. // }
  1620. //
  1621. func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
  1622. op := &request.Operation{
  1623. Name: opModifyLoadBalancerAttributes,
  1624. HTTPMethod: "POST",
  1625. HTTPPath: "/",
  1626. }
  1627. if input == nil {
  1628. input = &ModifyLoadBalancerAttributesInput{}
  1629. }
  1630. req = c.newRequest(op, input, output)
  1631. output = &ModifyLoadBalancerAttributesOutput{}
  1632. req.Data = output
  1633. return
  1634. }
  1635. // ModifyLoadBalancerAttributes API operation for Elastic Load Balancing.
  1636. //
  1637. // Modifies the attributes of the specified load balancer.
  1638. //
  1639. // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining,
  1640. // and CrossZoneLoadBalancing by either enabling or disabling them. Or, you
  1641. // can modify the load balancer attribute ConnectionSettings by specifying an
  1642. // idle connection timeout value for your load balancer.
  1643. //
  1644. // For more information, see the following in the Classic Load Balancers Guide:
  1645. //
  1646. // * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
  1647. //
  1648. // * Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
  1649. //
  1650. // * Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/access-log-collection.html)
  1651. //
  1652. // * Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
  1653. //
  1654. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1655. // with awserr.Error's Code and Message methods to get detailed information about
  1656. // the error.
  1657. //
  1658. // See the AWS API reference guide for Elastic Load Balancing's
  1659. // API operation ModifyLoadBalancerAttributes for usage and error information.
  1660. //
  1661. // Returned Error Codes:
  1662. // * LoadBalancerNotFound
  1663. // The specified load balancer does not exist.
  1664. //
  1665. // * LoadBalancerAttributeNotFound
  1666. // The specified load balancer attribute does not exist.
  1667. //
  1668. // * InvalidConfigurationRequest
  1669. // The requested configuration change is not valid.
  1670. //
  1671. func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
  1672. req, out := c.ModifyLoadBalancerAttributesRequest(input)
  1673. err := req.Send()
  1674. return out, err
  1675. }
  1676. const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
  1677. // RegisterInstancesWithLoadBalancerRequest generates a "aws/request.Request" representing the
  1678. // client's request for the RegisterInstancesWithLoadBalancer operation. The "output" return
  1679. // value can be used to capture response data after the request's "Send" method
  1680. // is called.
  1681. //
  1682. // See RegisterInstancesWithLoadBalancer for usage and error information.
  1683. //
  1684. // Creating a request object using this method should be used when you want to inject
  1685. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1686. // access properties on the request object before or after sending the request. If
  1687. // you just want the service response, call the RegisterInstancesWithLoadBalancer method directly
  1688. // instead.
  1689. //
  1690. // Note: You must call the "Send" method on the returned request object in order
  1691. // to execute the request.
  1692. //
  1693. // // Example sending a request using the RegisterInstancesWithLoadBalancerRequest method.
  1694. // req, resp := client.RegisterInstancesWithLoadBalancerRequest(params)
  1695. //
  1696. // err := req.Send()
  1697. // if err == nil { // resp is now filled
  1698. // fmt.Println(resp)
  1699. // }
  1700. //
  1701. func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
  1702. op := &request.Operation{
  1703. Name: opRegisterInstancesWithLoadBalancer,
  1704. HTTPMethod: "POST",
  1705. HTTPPath: "/",
  1706. }
  1707. if input == nil {
  1708. input = &RegisterInstancesWithLoadBalancerInput{}
  1709. }
  1710. req = c.newRequest(op, input, output)
  1711. output = &RegisterInstancesWithLoadBalancerOutput{}
  1712. req.Data = output
  1713. return
  1714. }
  1715. // RegisterInstancesWithLoadBalancer API operation for Elastic Load Balancing.
  1716. //
  1717. // Adds the specified instances to the specified load balancer.
  1718. //
  1719. // The instance must be a running instance in the same network as the load balancer
  1720. // (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load
  1721. // balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic
  1722. // instances to that VPC and then register the linked EC2-Classic instances
  1723. // with the load balancer in the VPC.
  1724. //
  1725. // Note that RegisterInstanceWithLoadBalancer completes when the request has
  1726. // been registered. Instance registration takes a little time to complete. To
  1727. // check the state of the registered instances, use DescribeLoadBalancers or
  1728. // DescribeInstanceHealth.
  1729. //
  1730. // After the instance is registered, it starts receiving traffic and requests
  1731. // from the load balancer. Any instance that is not in one of the Availability
  1732. // Zones registered for the load balancer is moved to the OutOfService state.
  1733. // If an Availability Zone is added to the load balancer later, any instances
  1734. // registered with the load balancer move to the InService state.
  1735. //
  1736. // To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
  1737. //
  1738. // For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
  1739. // in the Classic Load Balancers Guide.
  1740. //
  1741. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1742. // with awserr.Error's Code and Message methods to get detailed information about
  1743. // the error.
  1744. //
  1745. // See the AWS API reference guide for Elastic Load Balancing's
  1746. // API operation RegisterInstancesWithLoadBalancer for usage and error information.
  1747. //
  1748. // Returned Error Codes:
  1749. // * LoadBalancerNotFound
  1750. // The specified load balancer does not exist.
  1751. //
  1752. // * InvalidInstance
  1753. // The specified endpoint is not valid.
  1754. //
  1755. func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) {
  1756. req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
  1757. err := req.Send()
  1758. return out, err
  1759. }
  1760. const opRemoveTags = "RemoveTags"
  1761. // RemoveTagsRequest generates a "aws/request.Request" representing the
  1762. // client's request for the RemoveTags operation. The "output" return
  1763. // value can be used to capture response data after the request's "Send" method
  1764. // is called.
  1765. //
  1766. // See RemoveTags for usage and error information.
  1767. //
  1768. // Creating a request object using this method should be used when you want to inject
  1769. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1770. // access properties on the request object before or after sending the request. If
  1771. // you just want the service response, call the RemoveTags method directly
  1772. // instead.
  1773. //
  1774. // Note: You must call the "Send" method on the returned request object in order
  1775. // to execute the request.
  1776. //
  1777. // // Example sending a request using the RemoveTagsRequest method.
  1778. // req, resp := client.RemoveTagsRequest(params)
  1779. //
  1780. // err := req.Send()
  1781. // if err == nil { // resp is now filled
  1782. // fmt.Println(resp)
  1783. // }
  1784. //
  1785. func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
  1786. op := &request.Operation{
  1787. Name: opRemoveTags,
  1788. HTTPMethod: "POST",
  1789. HTTPPath: "/",
  1790. }
  1791. if input == nil {
  1792. input = &RemoveTagsInput{}
  1793. }
  1794. req = c.newRequest(op, input, output)
  1795. output = &RemoveTagsOutput{}
  1796. req.Data = output
  1797. return
  1798. }
  1799. // RemoveTags API operation for Elastic Load Balancing.
  1800. //
  1801. // Removes one or more tags from the specified load balancer.
  1802. //
  1803. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1804. // with awserr.Error's Code and Message methods to get detailed information about
  1805. // the error.
  1806. //
  1807. // See the AWS API reference guide for Elastic Load Balancing's
  1808. // API operation RemoveTags for usage and error information.
  1809. //
  1810. // Returned Error Codes:
  1811. // * LoadBalancerNotFound
  1812. // The specified load balancer does not exist.
  1813. //
  1814. func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
  1815. req, out := c.RemoveTagsRequest(input)
  1816. err := req.Send()
  1817. return out, err
  1818. }
  1819. const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
  1820. // SetLoadBalancerListenerSSLCertificateRequest generates a "aws/request.Request" representing the
  1821. // client's request for the SetLoadBalancerListenerSSLCertificate operation. The "output" return
  1822. // value can be used to capture response data after the request's "Send" method
  1823. // is called.
  1824. //
  1825. // See SetLoadBalancerListenerSSLCertificate for usage and error information.
  1826. //
  1827. // Creating a request object using this method should be used when you want to inject
  1828. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1829. // access properties on the request object before or after sending the request. If
  1830. // you just want the service response, call the SetLoadBalancerListenerSSLCertificate method directly
  1831. // instead.
  1832. //
  1833. // Note: You must call the "Send" method on the returned request object in order
  1834. // to execute the request.
  1835. //
  1836. // // Example sending a request using the SetLoadBalancerListenerSSLCertificateRequest method.
  1837. // req, resp := client.SetLoadBalancerListenerSSLCertificateRequest(params)
  1838. //
  1839. // err := req.Send()
  1840. // if err == nil { // resp is now filled
  1841. // fmt.Println(resp)
  1842. // }
  1843. //
  1844. func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
  1845. op := &request.Operation{
  1846. Name: opSetLoadBalancerListenerSSLCertificate,
  1847. HTTPMethod: "POST",
  1848. HTTPPath: "/",
  1849. }
  1850. if input == nil {
  1851. input = &SetLoadBalancerListenerSSLCertificateInput{}
  1852. }
  1853. req = c.newRequest(op, input, output)
  1854. output = &SetLoadBalancerListenerSSLCertificateOutput{}
  1855. req.Data = output
  1856. return
  1857. }
  1858. // SetLoadBalancerListenerSSLCertificate API operation for Elastic Load Balancing.
  1859. //
  1860. // Sets the certificate that terminates the specified listener's SSL connections.
  1861. // The specified certificate replaces any prior certificate that was used on
  1862. // the same load balancer and port.
  1863. //
  1864. // For more information about updating your SSL certificate, see Replace the
  1865. // SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html)
  1866. // in the Classic Load Balancers Guide.
  1867. //
  1868. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1869. // with awserr.Error's Code and Message methods to get detailed information about
  1870. // the error.
  1871. //
  1872. // See the AWS API reference guide for Elastic Load Balancing's
  1873. // API operation SetLoadBalancerListenerSSLCertificate for usage and error information.
  1874. //
  1875. // Returned Error Codes:
  1876. // * CertificateNotFound
  1877. // The specified ARN does not refer to a valid SSL certificate in AWS Identity
  1878. // and Access Management (IAM) or AWS Certificate Manager (ACM). Note that if
  1879. // you recently uploaded the certificate to IAM, this error might indicate that
  1880. // the certificate is not fully available yet.
  1881. //
  1882. // * LoadBalancerNotFound
  1883. // The specified load balancer does not exist.
  1884. //
  1885. // * ListenerNotFound
  1886. // The load balancer does not have a listener configured at the specified port.
  1887. //
  1888. // * InvalidConfigurationRequest
  1889. // The requested configuration change is not valid.
  1890. //
  1891. // * UnsupportedProtocol
  1892. //
  1893. func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
  1894. req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
  1895. err := req.Send()
  1896. return out, err
  1897. }
  1898. const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
  1899. // SetLoadBalancerPoliciesForBackendServerRequest generates a "aws/request.Request" representing the
  1900. // client's request for the SetLoadBalancerPoliciesForBackendServer operation. The "output" return
  1901. // value can be used to capture response data after the request's "Send" method
  1902. // is called.
  1903. //
  1904. // See SetLoadBalancerPoliciesForBackendServer for usage and error information.
  1905. //
  1906. // Creating a request object using this method should be used when you want to inject
  1907. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1908. // access properties on the request object before or after sending the request. If
  1909. // you just want the service response, call the SetLoadBalancerPoliciesForBackendServer method directly
  1910. // instead.
  1911. //
  1912. // Note: You must call the "Send" method on the returned request object in order
  1913. // to execute the request.
  1914. //
  1915. // // Example sending a request using the SetLoadBalancerPoliciesForBackendServerRequest method.
  1916. // req, resp := client.SetLoadBalancerPoliciesForBackendServerRequest(params)
  1917. //
  1918. // err := req.Send()
  1919. // if err == nil { // resp is now filled
  1920. // fmt.Println(resp)
  1921. // }
  1922. //
  1923. func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
  1924. op := &request.Operation{
  1925. Name: opSetLoadBalancerPoliciesForBackendServer,
  1926. HTTPMethod: "POST",
  1927. HTTPPath: "/",
  1928. }
  1929. if input == nil {
  1930. input = &SetLoadBalancerPoliciesForBackendServerInput{}
  1931. }
  1932. req = c.newRequest(op, input, output)
  1933. output = &SetLoadBalancerPoliciesForBackendServerOutput{}
  1934. req.Data = output
  1935. return
  1936. }
  1937. // SetLoadBalancerPoliciesForBackendServer API operation for Elastic Load Balancing.
  1938. //
  1939. // Replaces the set of policies associated with the specified port on which
  1940. // the EC2 instance is listening with a new set of policies. At this time, only
  1941. // the back-end server authentication policy type can be applied to the instance
  1942. // ports; this policy type is composed of multiple public key policies.
  1943. //
  1944. // Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies,
  1945. // use the PolicyNames parameter to list the policies that you want to enable.
  1946. //
  1947. // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify
  1948. // that the policy is associated with the EC2 instance.
  1949. //
  1950. // For more information about enabling back-end instance authentication, see
  1951. // Configure Back-end Instance Authentication (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.html#configure_backendauth_clt)
  1952. // in the Classic Load Balancers Guide. For more information about Proxy Protocol,
  1953. // see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html)
  1954. // in the Classic Load Balancers Guide.
  1955. //
  1956. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1957. // with awserr.Error's Code and Message methods to get detailed information about
  1958. // the error.
  1959. //
  1960. // See the AWS API reference guide for Elastic Load Balancing's
  1961. // API operation SetLoadBalancerPoliciesForBackendServer for usage and error information.
  1962. //
  1963. // Returned Error Codes:
  1964. // * LoadBalancerNotFound
  1965. // The specified load balancer does not exist.
  1966. //
  1967. // * PolicyNotFound
  1968. // One or more of the specified policies do not exist.
  1969. //
  1970. // * InvalidConfigurationRequest
  1971. // The requested configuration change is not valid.
  1972. //
  1973. func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
  1974. req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
  1975. err := req.Send()
  1976. return out, err
  1977. }
  1978. const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
  1979. // SetLoadBalancerPoliciesOfListenerRequest generates a "aws/request.Request" representing the
  1980. // client's request for the SetLoadBalancerPoliciesOfListener operation. The "output" return
  1981. // value can be used to capture response data after the request's "Send" method
  1982. // is called.
  1983. //
  1984. // See SetLoadBalancerPoliciesOfListener for usage and error information.
  1985. //
  1986. // Creating a request object using this method should be used when you want to inject
  1987. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1988. // access properties on the request object before or after sending the request. If
  1989. // you just want the service response, call the SetLoadBalancerPoliciesOfListener method directly
  1990. // instead.
  1991. //
  1992. // Note: You must call the "Send" method on the returned request object in order
  1993. // to execute the request.
  1994. //
  1995. // // Example sending a request using the SetLoadBalancerPoliciesOfListenerRequest method.
  1996. // req, resp := client.SetLoadBalancerPoliciesOfListenerRequest(params)
  1997. //
  1998. // err := req.Send()
  1999. // if err == nil { // resp is now filled
  2000. // fmt.Println(resp)
  2001. // }
  2002. //
  2003. func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
  2004. op := &request.Operation{
  2005. Name: opSetLoadBalancerPoliciesOfListener,
  2006. HTTPMethod: "POST",
  2007. HTTPPath: "/",
  2008. }
  2009. if input == nil {
  2010. input = &SetLoadBalancerPoliciesOfListenerInput{}
  2011. }
  2012. req = c.newRequest(op, input, output)
  2013. output = &SetLoadBalancerPoliciesOfListenerOutput{}
  2014. req.Data = output
  2015. return
  2016. }
  2017. // SetLoadBalancerPoliciesOfListener API operation for Elastic Load Balancing.
  2018. //
  2019. // Replaces the current set of policies for the specified load balancer port
  2020. // with the specified set of policies.
  2021. //
  2022. // To enable back-end server authentication, use SetLoadBalancerPoliciesForBackendServer.
  2023. //
  2024. // For more information about setting policies, see Update the SSL Negotiation
  2025. // Configuration (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ssl-config-update.html),
  2026. // Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration),
  2027. // and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
  2028. // in the Classic Load Balancers Guide.
  2029. //
  2030. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2031. // with awserr.Error's Code and Message methods to get detailed information about
  2032. // the error.
  2033. //
  2034. // See the AWS API reference guide for Elastic Load Balancing's
  2035. // API operation SetLoadBalancerPoliciesOfListener for usage and error information.
  2036. //
  2037. // Returned Error Codes:
  2038. // * LoadBalancerNotFound
  2039. // The specified load balancer does not exist.
  2040. //
  2041. // * PolicyNotFound
  2042. // One or more of the specified policies do not exist.
  2043. //
  2044. // * ListenerNotFound
  2045. // The load balancer does not have a listener configured at the specified port.
  2046. //
  2047. // * InvalidConfigurationRequest
  2048. // The requested configuration change is not valid.
  2049. //
  2050. func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
  2051. req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
  2052. err := req.Send()
  2053. return out, err
  2054. }
  2055. // Information about the AccessLog attribute.
  2056. type AccessLog struct {
  2057. _ struct{} `type:"structure"`
  2058. // The interval for publishing the access logs. You can specify an interval
  2059. // of either 5 minutes or 60 minutes.
  2060. //
  2061. // Default: 60 minutes
  2062. EmitInterval *int64 `type:"integer"`
  2063. // Specifies whether access logs are enabled for the load balancer.
  2064. //
  2065. // Enabled is a required field
  2066. Enabled *bool `type:"boolean" required:"true"`
  2067. // The name of the Amazon S3 bucket where the access logs are stored.
  2068. S3BucketName *string `type:"string"`
  2069. // The logical hierarchy you created for your Amazon S3 bucket, for example
  2070. // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
  2071. // the root level of the bucket.
  2072. S3BucketPrefix *string `type:"string"`
  2073. }
  2074. // String returns the string representation
  2075. func (s AccessLog) String() string {
  2076. return awsutil.Prettify(s)
  2077. }
  2078. // GoString returns the string representation
  2079. func (s AccessLog) GoString() string {
  2080. return s.String()
  2081. }
  2082. // Validate inspects the fields of the type to determine if they are valid.
  2083. func (s *AccessLog) Validate() error {
  2084. invalidParams := request.ErrInvalidParams{Context: "AccessLog"}
  2085. if s.Enabled == nil {
  2086. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2087. }
  2088. if invalidParams.Len() > 0 {
  2089. return invalidParams
  2090. }
  2091. return nil
  2092. }
  2093. // Contains the parameters for AddTags.
  2094. type AddTagsInput struct {
  2095. _ struct{} `type:"structure"`
  2096. // The name of the load balancer. You can specify one load balancer only.
  2097. //
  2098. // LoadBalancerNames is a required field
  2099. LoadBalancerNames []*string `type:"list" required:"true"`
  2100. // The tags.
  2101. //
  2102. // Tags is a required field
  2103. Tags []*Tag `min:"1" type:"list" required:"true"`
  2104. }
  2105. // String returns the string representation
  2106. func (s AddTagsInput) String() string {
  2107. return awsutil.Prettify(s)
  2108. }
  2109. // GoString returns the string representation
  2110. func (s AddTagsInput) GoString() string {
  2111. return s.String()
  2112. }
  2113. // Validate inspects the fields of the type to determine if they are valid.
  2114. func (s *AddTagsInput) Validate() error {
  2115. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  2116. if s.LoadBalancerNames == nil {
  2117. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  2118. }
  2119. if s.Tags == nil {
  2120. invalidParams.Add(request.NewErrParamRequired("Tags"))
  2121. }
  2122. if s.Tags != nil && len(s.Tags) < 1 {
  2123. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  2124. }
  2125. if s.Tags != nil {
  2126. for i, v := range s.Tags {
  2127. if v == nil {
  2128. continue
  2129. }
  2130. if err := v.Validate(); err != nil {
  2131. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2132. }
  2133. }
  2134. }
  2135. if invalidParams.Len() > 0 {
  2136. return invalidParams
  2137. }
  2138. return nil
  2139. }
  2140. // Contains the output of AddTags.
  2141. type AddTagsOutput struct {
  2142. _ struct{} `type:"structure"`
  2143. }
  2144. // String returns the string representation
  2145. func (s AddTagsOutput) String() string {
  2146. return awsutil.Prettify(s)
  2147. }
  2148. // GoString returns the string representation
  2149. func (s AddTagsOutput) GoString() string {
  2150. return s.String()
  2151. }
  2152. // This data type is reserved.
  2153. type AdditionalAttribute struct {
  2154. _ struct{} `type:"structure"`
  2155. // This parameter is reserved.
  2156. Key *string `type:"string"`
  2157. // This parameter is reserved.
  2158. Value *string `type:"string"`
  2159. }
  2160. // String returns the string representation
  2161. func (s AdditionalAttribute) String() string {
  2162. return awsutil.Prettify(s)
  2163. }
  2164. // GoString returns the string representation
  2165. func (s AdditionalAttribute) GoString() string {
  2166. return s.String()
  2167. }
  2168. // Information about a policy for application-controlled session stickiness.
  2169. type AppCookieStickinessPolicy struct {
  2170. _ struct{} `type:"structure"`
  2171. // The name of the application cookie used for stickiness.
  2172. CookieName *string `type:"string"`
  2173. // The mnemonic name for the policy being created. The name must be unique within
  2174. // a set of policies for this load balancer.
  2175. PolicyName *string `type:"string"`
  2176. }
  2177. // String returns the string representation
  2178. func (s AppCookieStickinessPolicy) String() string {
  2179. return awsutil.Prettify(s)
  2180. }
  2181. // GoString returns the string representation
  2182. func (s AppCookieStickinessPolicy) GoString() string {
  2183. return s.String()
  2184. }
  2185. // Contains the parameters for ApplySecurityGroupsToLoadBalancer.
  2186. type ApplySecurityGroupsToLoadBalancerInput struct {
  2187. _ struct{} `type:"structure"`
  2188. // The name of the load balancer.
  2189. //
  2190. // LoadBalancerName is a required field
  2191. LoadBalancerName *string `type:"string" required:"true"`
  2192. // The IDs of the security groups to associate with the load balancer. Note
  2193. // that you cannot specify the name of the security group.
  2194. //
  2195. // SecurityGroups is a required field
  2196. SecurityGroups []*string `type:"list" required:"true"`
  2197. }
  2198. // String returns the string representation
  2199. func (s ApplySecurityGroupsToLoadBalancerInput) String() string {
  2200. return awsutil.Prettify(s)
  2201. }
  2202. // GoString returns the string representation
  2203. func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string {
  2204. return s.String()
  2205. }
  2206. // Validate inspects the fields of the type to determine if they are valid.
  2207. func (s *ApplySecurityGroupsToLoadBalancerInput) Validate() error {
  2208. invalidParams := request.ErrInvalidParams{Context: "ApplySecurityGroupsToLoadBalancerInput"}
  2209. if s.LoadBalancerName == nil {
  2210. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2211. }
  2212. if s.SecurityGroups == nil {
  2213. invalidParams.Add(request.NewErrParamRequired("SecurityGroups"))
  2214. }
  2215. if invalidParams.Len() > 0 {
  2216. return invalidParams
  2217. }
  2218. return nil
  2219. }
  2220. // Contains the output of ApplySecurityGroupsToLoadBalancer.
  2221. type ApplySecurityGroupsToLoadBalancerOutput struct {
  2222. _ struct{} `type:"structure"`
  2223. // The IDs of the security groups associated with the load balancer.
  2224. SecurityGroups []*string `type:"list"`
  2225. }
  2226. // String returns the string representation
  2227. func (s ApplySecurityGroupsToLoadBalancerOutput) String() string {
  2228. return awsutil.Prettify(s)
  2229. }
  2230. // GoString returns the string representation
  2231. func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string {
  2232. return s.String()
  2233. }
  2234. // Contains the parameters for AttachLoaBalancerToSubnets.
  2235. type AttachLoadBalancerToSubnetsInput struct {
  2236. _ struct{} `type:"structure"`
  2237. // The name of the load balancer.
  2238. //
  2239. // LoadBalancerName is a required field
  2240. LoadBalancerName *string `type:"string" required:"true"`
  2241. // The IDs of the subnets to add. You can add only one subnet per Availability
  2242. // Zone.
  2243. //
  2244. // Subnets is a required field
  2245. Subnets []*string `type:"list" required:"true"`
  2246. }
  2247. // String returns the string representation
  2248. func (s AttachLoadBalancerToSubnetsInput) String() string {
  2249. return awsutil.Prettify(s)
  2250. }
  2251. // GoString returns the string representation
  2252. func (s AttachLoadBalancerToSubnetsInput) GoString() string {
  2253. return s.String()
  2254. }
  2255. // Validate inspects the fields of the type to determine if they are valid.
  2256. func (s *AttachLoadBalancerToSubnetsInput) Validate() error {
  2257. invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerToSubnetsInput"}
  2258. if s.LoadBalancerName == nil {
  2259. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2260. }
  2261. if s.Subnets == nil {
  2262. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  2263. }
  2264. if invalidParams.Len() > 0 {
  2265. return invalidParams
  2266. }
  2267. return nil
  2268. }
  2269. // Contains the output of AttachLoadBalancerToSubnets.
  2270. type AttachLoadBalancerToSubnetsOutput struct {
  2271. _ struct{} `type:"structure"`
  2272. // The IDs of the subnets attached to the load balancer.
  2273. Subnets []*string `type:"list"`
  2274. }
  2275. // String returns the string representation
  2276. func (s AttachLoadBalancerToSubnetsOutput) String() string {
  2277. return awsutil.Prettify(s)
  2278. }
  2279. // GoString returns the string representation
  2280. func (s AttachLoadBalancerToSubnetsOutput) GoString() string {
  2281. return s.String()
  2282. }
  2283. // Information about the configuration of an EC2 instance.
  2284. type BackendServerDescription struct {
  2285. _ struct{} `type:"structure"`
  2286. // The port on which the EC2 instance is listening.
  2287. InstancePort *int64 `min:"1" type:"integer"`
  2288. // The names of the policies enabled for the EC2 instance.
  2289. PolicyNames []*string `type:"list"`
  2290. }
  2291. // String returns the string representation
  2292. func (s BackendServerDescription) String() string {
  2293. return awsutil.Prettify(s)
  2294. }
  2295. // GoString returns the string representation
  2296. func (s BackendServerDescription) GoString() string {
  2297. return s.String()
  2298. }
  2299. // Contains the parameters for ConfigureHealthCheck.
  2300. type ConfigureHealthCheckInput struct {
  2301. _ struct{} `type:"structure"`
  2302. // The configuration information.
  2303. //
  2304. // HealthCheck is a required field
  2305. HealthCheck *HealthCheck `type:"structure" required:"true"`
  2306. // The name of the load balancer.
  2307. //
  2308. // LoadBalancerName is a required field
  2309. LoadBalancerName *string `type:"string" required:"true"`
  2310. }
  2311. // String returns the string representation
  2312. func (s ConfigureHealthCheckInput) String() string {
  2313. return awsutil.Prettify(s)
  2314. }
  2315. // GoString returns the string representation
  2316. func (s ConfigureHealthCheckInput) GoString() string {
  2317. return s.String()
  2318. }
  2319. // Validate inspects the fields of the type to determine if they are valid.
  2320. func (s *ConfigureHealthCheckInput) Validate() error {
  2321. invalidParams := request.ErrInvalidParams{Context: "ConfigureHealthCheckInput"}
  2322. if s.HealthCheck == nil {
  2323. invalidParams.Add(request.NewErrParamRequired("HealthCheck"))
  2324. }
  2325. if s.LoadBalancerName == nil {
  2326. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2327. }
  2328. if s.HealthCheck != nil {
  2329. if err := s.HealthCheck.Validate(); err != nil {
  2330. invalidParams.AddNested("HealthCheck", err.(request.ErrInvalidParams))
  2331. }
  2332. }
  2333. if invalidParams.Len() > 0 {
  2334. return invalidParams
  2335. }
  2336. return nil
  2337. }
  2338. // Contains the output of ConfigureHealthCheck.
  2339. type ConfigureHealthCheckOutput struct {
  2340. _ struct{} `type:"structure"`
  2341. // The updated health check.
  2342. HealthCheck *HealthCheck `type:"structure"`
  2343. }
  2344. // String returns the string representation
  2345. func (s ConfigureHealthCheckOutput) String() string {
  2346. return awsutil.Prettify(s)
  2347. }
  2348. // GoString returns the string representation
  2349. func (s ConfigureHealthCheckOutput) GoString() string {
  2350. return s.String()
  2351. }
  2352. // Information about the ConnectionDraining attribute.
  2353. type ConnectionDraining struct {
  2354. _ struct{} `type:"structure"`
  2355. // Specifies whether connection draining is enabled for the load balancer.
  2356. //
  2357. // Enabled is a required field
  2358. Enabled *bool `type:"boolean" required:"true"`
  2359. // The maximum time, in seconds, to keep the existing connections open before
  2360. // deregistering the instances.
  2361. Timeout *int64 `type:"integer"`
  2362. }
  2363. // String returns the string representation
  2364. func (s ConnectionDraining) String() string {
  2365. return awsutil.Prettify(s)
  2366. }
  2367. // GoString returns the string representation
  2368. func (s ConnectionDraining) GoString() string {
  2369. return s.String()
  2370. }
  2371. // Validate inspects the fields of the type to determine if they are valid.
  2372. func (s *ConnectionDraining) Validate() error {
  2373. invalidParams := request.ErrInvalidParams{Context: "ConnectionDraining"}
  2374. if s.Enabled == nil {
  2375. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2376. }
  2377. if invalidParams.Len() > 0 {
  2378. return invalidParams
  2379. }
  2380. return nil
  2381. }
  2382. // Information about the ConnectionSettings attribute.
  2383. type ConnectionSettings struct {
  2384. _ struct{} `type:"structure"`
  2385. // The time, in seconds, that the connection is allowed to be idle (no data
  2386. // has been sent over the connection) before it is closed by the load balancer.
  2387. //
  2388. // IdleTimeout is a required field
  2389. IdleTimeout *int64 `min:"1" type:"integer" required:"true"`
  2390. }
  2391. // String returns the string representation
  2392. func (s ConnectionSettings) String() string {
  2393. return awsutil.Prettify(s)
  2394. }
  2395. // GoString returns the string representation
  2396. func (s ConnectionSettings) GoString() string {
  2397. return s.String()
  2398. }
  2399. // Validate inspects the fields of the type to determine if they are valid.
  2400. func (s *ConnectionSettings) Validate() error {
  2401. invalidParams := request.ErrInvalidParams{Context: "ConnectionSettings"}
  2402. if s.IdleTimeout == nil {
  2403. invalidParams.Add(request.NewErrParamRequired("IdleTimeout"))
  2404. }
  2405. if s.IdleTimeout != nil && *s.IdleTimeout < 1 {
  2406. invalidParams.Add(request.NewErrParamMinValue("IdleTimeout", 1))
  2407. }
  2408. if invalidParams.Len() > 0 {
  2409. return invalidParams
  2410. }
  2411. return nil
  2412. }
  2413. // Contains the parameters for CreateAppCookieStickinessPolicy.
  2414. type CreateAppCookieStickinessPolicyInput struct {
  2415. _ struct{} `type:"structure"`
  2416. // The name of the application cookie used for stickiness.
  2417. //
  2418. // CookieName is a required field
  2419. CookieName *string `type:"string" required:"true"`
  2420. // The name of the load balancer.
  2421. //
  2422. // LoadBalancerName is a required field
  2423. LoadBalancerName *string `type:"string" required:"true"`
  2424. // The name of the policy being created. Policy names must consist of alphanumeric
  2425. // characters and dashes (-). This name must be unique within the set of policies
  2426. // for this load balancer.
  2427. //
  2428. // PolicyName is a required field
  2429. PolicyName *string `type:"string" required:"true"`
  2430. }
  2431. // String returns the string representation
  2432. func (s CreateAppCookieStickinessPolicyInput) String() string {
  2433. return awsutil.Prettify(s)
  2434. }
  2435. // GoString returns the string representation
  2436. func (s CreateAppCookieStickinessPolicyInput) GoString() string {
  2437. return s.String()
  2438. }
  2439. // Validate inspects the fields of the type to determine if they are valid.
  2440. func (s *CreateAppCookieStickinessPolicyInput) Validate() error {
  2441. invalidParams := request.ErrInvalidParams{Context: "CreateAppCookieStickinessPolicyInput"}
  2442. if s.CookieName == nil {
  2443. invalidParams.Add(request.NewErrParamRequired("CookieName"))
  2444. }
  2445. if s.LoadBalancerName == nil {
  2446. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2447. }
  2448. if s.PolicyName == nil {
  2449. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  2450. }
  2451. if invalidParams.Len() > 0 {
  2452. return invalidParams
  2453. }
  2454. return nil
  2455. }
  2456. // Contains the output for CreateAppCookieStickinessPolicy.
  2457. type CreateAppCookieStickinessPolicyOutput struct {
  2458. _ struct{} `type:"structure"`
  2459. }
  2460. // String returns the string representation
  2461. func (s CreateAppCookieStickinessPolicyOutput) String() string {
  2462. return awsutil.Prettify(s)
  2463. }
  2464. // GoString returns the string representation
  2465. func (s CreateAppCookieStickinessPolicyOutput) GoString() string {
  2466. return s.String()
  2467. }
  2468. // Contains the parameters for CreateLBCookieStickinessPolicy.
  2469. type CreateLBCookieStickinessPolicyInput struct {
  2470. _ struct{} `type:"structure"`
  2471. // The time period, in seconds, after which the cookie should be considered
  2472. // stale. If you do not specify this parameter, the default value is 0, which
  2473. // indicates that the sticky session should last for the duration of the browser
  2474. // session.
  2475. CookieExpirationPeriod *int64 `type:"long"`
  2476. // The name of the load balancer.
  2477. //
  2478. // LoadBalancerName is a required field
  2479. LoadBalancerName *string `type:"string" required:"true"`
  2480. // The name of the policy being created. Policy names must consist of alphanumeric
  2481. // characters and dashes (-). This name must be unique within the set of policies
  2482. // for this load balancer.
  2483. //
  2484. // PolicyName is a required field
  2485. PolicyName *string `type:"string" required:"true"`
  2486. }
  2487. // String returns the string representation
  2488. func (s CreateLBCookieStickinessPolicyInput) String() string {
  2489. return awsutil.Prettify(s)
  2490. }
  2491. // GoString returns the string representation
  2492. func (s CreateLBCookieStickinessPolicyInput) GoString() string {
  2493. return s.String()
  2494. }
  2495. // Validate inspects the fields of the type to determine if they are valid.
  2496. func (s *CreateLBCookieStickinessPolicyInput) Validate() error {
  2497. invalidParams := request.ErrInvalidParams{Context: "CreateLBCookieStickinessPolicyInput"}
  2498. if s.LoadBalancerName == nil {
  2499. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2500. }
  2501. if s.PolicyName == nil {
  2502. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  2503. }
  2504. if invalidParams.Len() > 0 {
  2505. return invalidParams
  2506. }
  2507. return nil
  2508. }
  2509. // Contains the output for CreateLBCookieStickinessPolicy.
  2510. type CreateLBCookieStickinessPolicyOutput struct {
  2511. _ struct{} `type:"structure"`
  2512. }
  2513. // String returns the string representation
  2514. func (s CreateLBCookieStickinessPolicyOutput) String() string {
  2515. return awsutil.Prettify(s)
  2516. }
  2517. // GoString returns the string representation
  2518. func (s CreateLBCookieStickinessPolicyOutput) GoString() string {
  2519. return s.String()
  2520. }
  2521. // Contains the parameters for CreateLoadBalancer.
  2522. type CreateLoadBalancerInput struct {
  2523. _ struct{} `type:"structure"`
  2524. // One or more Availability Zones from the same region as the load balancer.
  2525. //
  2526. // You must specify at least one Availability Zone.
  2527. //
  2528. // You can add more Availability Zones after you create the load balancer using
  2529. // EnableAvailabilityZonesForLoadBalancer.
  2530. AvailabilityZones []*string `type:"list"`
  2531. // The listeners.
  2532. //
  2533. // For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  2534. // in the Classic Load Balancers Guide.
  2535. //
  2536. // Listeners is a required field
  2537. Listeners []*Listener `type:"list" required:"true"`
  2538. // The name of the load balancer.
  2539. //
  2540. // This name must be unique within your set of load balancers for the region,
  2541. // must have a maximum of 32 characters, must contain only alphanumeric characters
  2542. // or hyphens, and cannot begin or end with a hyphen.
  2543. //
  2544. // LoadBalancerName is a required field
  2545. LoadBalancerName *string `type:"string" required:"true"`
  2546. // The type of a load balancer. Valid only for load balancers in a VPC.
  2547. //
  2548. // By default, Elastic Load Balancing creates an Internet-facing load balancer
  2549. // with a DNS name that resolves to public IP addresses. For more information
  2550. // about Internet-facing and Internal load balancers, see Load Balancer Scheme
  2551. // (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html#load-balancer-scheme)
  2552. // in the Elastic Load Balancing User Guide.
  2553. //
  2554. // Specify internal to create a load balancer with a DNS name that resolves
  2555. // to private IP addresses.
  2556. Scheme *string `type:"string"`
  2557. // The IDs of the security groups to assign to the load balancer.
  2558. SecurityGroups []*string `type:"list"`
  2559. // The IDs of the subnets in your VPC to attach to the load balancer. Specify
  2560. // one subnet per Availability Zone specified in AvailabilityZones.
  2561. Subnets []*string `type:"list"`
  2562. // A list of tags to assign to the load balancer.
  2563. //
  2564. // For more information about tagging your load balancer, see Tag Your Classic
  2565. // Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
  2566. // in the Classic Load Balancers Guide.
  2567. Tags []*Tag `min:"1" type:"list"`
  2568. }
  2569. // String returns the string representation
  2570. func (s CreateLoadBalancerInput) String() string {
  2571. return awsutil.Prettify(s)
  2572. }
  2573. // GoString returns the string representation
  2574. func (s CreateLoadBalancerInput) GoString() string {
  2575. return s.String()
  2576. }
  2577. // Validate inspects the fields of the type to determine if they are valid.
  2578. func (s *CreateLoadBalancerInput) Validate() error {
  2579. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"}
  2580. if s.Listeners == nil {
  2581. invalidParams.Add(request.NewErrParamRequired("Listeners"))
  2582. }
  2583. if s.LoadBalancerName == nil {
  2584. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2585. }
  2586. if s.Tags != nil && len(s.Tags) < 1 {
  2587. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  2588. }
  2589. if s.Listeners != nil {
  2590. for i, v := range s.Listeners {
  2591. if v == nil {
  2592. continue
  2593. }
  2594. if err := v.Validate(); err != nil {
  2595. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
  2596. }
  2597. }
  2598. }
  2599. if s.Tags != nil {
  2600. for i, v := range s.Tags {
  2601. if v == nil {
  2602. continue
  2603. }
  2604. if err := v.Validate(); err != nil {
  2605. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2606. }
  2607. }
  2608. }
  2609. if invalidParams.Len() > 0 {
  2610. return invalidParams
  2611. }
  2612. return nil
  2613. }
  2614. // Contains the parameters for CreateLoadBalancerListeners.
  2615. type CreateLoadBalancerListenersInput struct {
  2616. _ struct{} `type:"structure"`
  2617. // The listeners.
  2618. //
  2619. // Listeners is a required field
  2620. Listeners []*Listener `type:"list" required:"true"`
  2621. // The name of the load balancer.
  2622. //
  2623. // LoadBalancerName is a required field
  2624. LoadBalancerName *string `type:"string" required:"true"`
  2625. }
  2626. // String returns the string representation
  2627. func (s CreateLoadBalancerListenersInput) String() string {
  2628. return awsutil.Prettify(s)
  2629. }
  2630. // GoString returns the string representation
  2631. func (s CreateLoadBalancerListenersInput) GoString() string {
  2632. return s.String()
  2633. }
  2634. // Validate inspects the fields of the type to determine if they are valid.
  2635. func (s *CreateLoadBalancerListenersInput) Validate() error {
  2636. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerListenersInput"}
  2637. if s.Listeners == nil {
  2638. invalidParams.Add(request.NewErrParamRequired("Listeners"))
  2639. }
  2640. if s.LoadBalancerName == nil {
  2641. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2642. }
  2643. if s.Listeners != nil {
  2644. for i, v := range s.Listeners {
  2645. if v == nil {
  2646. continue
  2647. }
  2648. if err := v.Validate(); err != nil {
  2649. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams))
  2650. }
  2651. }
  2652. }
  2653. if invalidParams.Len() > 0 {
  2654. return invalidParams
  2655. }
  2656. return nil
  2657. }
  2658. // Contains the parameters for CreateLoadBalancerListener.
  2659. type CreateLoadBalancerListenersOutput struct {
  2660. _ struct{} `type:"structure"`
  2661. }
  2662. // String returns the string representation
  2663. func (s CreateLoadBalancerListenersOutput) String() string {
  2664. return awsutil.Prettify(s)
  2665. }
  2666. // GoString returns the string representation
  2667. func (s CreateLoadBalancerListenersOutput) GoString() string {
  2668. return s.String()
  2669. }
  2670. // Contains the output for CreateLoadBalancer.
  2671. type CreateLoadBalancerOutput struct {
  2672. _ struct{} `type:"structure"`
  2673. // The DNS name of the load balancer.
  2674. DNSName *string `type:"string"`
  2675. }
  2676. // String returns the string representation
  2677. func (s CreateLoadBalancerOutput) String() string {
  2678. return awsutil.Prettify(s)
  2679. }
  2680. // GoString returns the string representation
  2681. func (s CreateLoadBalancerOutput) GoString() string {
  2682. return s.String()
  2683. }
  2684. // Contains the parameters for CreateLoadBalancerPolicy.
  2685. type CreateLoadBalancerPolicyInput struct {
  2686. _ struct{} `type:"structure"`
  2687. // The name of the load balancer.
  2688. //
  2689. // LoadBalancerName is a required field
  2690. LoadBalancerName *string `type:"string" required:"true"`
  2691. // The policy attributes.
  2692. PolicyAttributes []*PolicyAttribute `type:"list"`
  2693. // The name of the load balancer policy to be created. This name must be unique
  2694. // within the set of policies for this load balancer.
  2695. //
  2696. // PolicyName is a required field
  2697. PolicyName *string `type:"string" required:"true"`
  2698. // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
  2699. //
  2700. // PolicyTypeName is a required field
  2701. PolicyTypeName *string `type:"string" required:"true"`
  2702. }
  2703. // String returns the string representation
  2704. func (s CreateLoadBalancerPolicyInput) String() string {
  2705. return awsutil.Prettify(s)
  2706. }
  2707. // GoString returns the string representation
  2708. func (s CreateLoadBalancerPolicyInput) GoString() string {
  2709. return s.String()
  2710. }
  2711. // Validate inspects the fields of the type to determine if they are valid.
  2712. func (s *CreateLoadBalancerPolicyInput) Validate() error {
  2713. invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerPolicyInput"}
  2714. if s.LoadBalancerName == nil {
  2715. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2716. }
  2717. if s.PolicyName == nil {
  2718. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  2719. }
  2720. if s.PolicyTypeName == nil {
  2721. invalidParams.Add(request.NewErrParamRequired("PolicyTypeName"))
  2722. }
  2723. if invalidParams.Len() > 0 {
  2724. return invalidParams
  2725. }
  2726. return nil
  2727. }
  2728. // Contains the output of CreateLoadBalancerPolicy.
  2729. type CreateLoadBalancerPolicyOutput struct {
  2730. _ struct{} `type:"structure"`
  2731. }
  2732. // String returns the string representation
  2733. func (s CreateLoadBalancerPolicyOutput) String() string {
  2734. return awsutil.Prettify(s)
  2735. }
  2736. // GoString returns the string representation
  2737. func (s CreateLoadBalancerPolicyOutput) GoString() string {
  2738. return s.String()
  2739. }
  2740. // Information about the CrossZoneLoadBalancing attribute.
  2741. type CrossZoneLoadBalancing struct {
  2742. _ struct{} `type:"structure"`
  2743. // Specifies whether cross-zone load balancing is enabled for the load balancer.
  2744. //
  2745. // Enabled is a required field
  2746. Enabled *bool `type:"boolean" required:"true"`
  2747. }
  2748. // String returns the string representation
  2749. func (s CrossZoneLoadBalancing) String() string {
  2750. return awsutil.Prettify(s)
  2751. }
  2752. // GoString returns the string representation
  2753. func (s CrossZoneLoadBalancing) GoString() string {
  2754. return s.String()
  2755. }
  2756. // Validate inspects the fields of the type to determine if they are valid.
  2757. func (s *CrossZoneLoadBalancing) Validate() error {
  2758. invalidParams := request.ErrInvalidParams{Context: "CrossZoneLoadBalancing"}
  2759. if s.Enabled == nil {
  2760. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  2761. }
  2762. if invalidParams.Len() > 0 {
  2763. return invalidParams
  2764. }
  2765. return nil
  2766. }
  2767. // Contains the parameters for DeleteLoadBalancer.
  2768. type DeleteLoadBalancerInput struct {
  2769. _ struct{} `type:"structure"`
  2770. // The name of the load balancer.
  2771. //
  2772. // LoadBalancerName is a required field
  2773. LoadBalancerName *string `type:"string" required:"true"`
  2774. }
  2775. // String returns the string representation
  2776. func (s DeleteLoadBalancerInput) String() string {
  2777. return awsutil.Prettify(s)
  2778. }
  2779. // GoString returns the string representation
  2780. func (s DeleteLoadBalancerInput) GoString() string {
  2781. return s.String()
  2782. }
  2783. // Validate inspects the fields of the type to determine if they are valid.
  2784. func (s *DeleteLoadBalancerInput) Validate() error {
  2785. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"}
  2786. if s.LoadBalancerName == nil {
  2787. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2788. }
  2789. if invalidParams.Len() > 0 {
  2790. return invalidParams
  2791. }
  2792. return nil
  2793. }
  2794. // Contains the parameters for DeleteLoadBalancerListeners.
  2795. type DeleteLoadBalancerListenersInput struct {
  2796. _ struct{} `type:"structure"`
  2797. // The name of the load balancer.
  2798. //
  2799. // LoadBalancerName is a required field
  2800. LoadBalancerName *string `type:"string" required:"true"`
  2801. // The client port numbers of the listeners.
  2802. //
  2803. // LoadBalancerPorts is a required field
  2804. LoadBalancerPorts []*int64 `type:"list" required:"true"`
  2805. }
  2806. // String returns the string representation
  2807. func (s DeleteLoadBalancerListenersInput) String() string {
  2808. return awsutil.Prettify(s)
  2809. }
  2810. // GoString returns the string representation
  2811. func (s DeleteLoadBalancerListenersInput) GoString() string {
  2812. return s.String()
  2813. }
  2814. // Validate inspects the fields of the type to determine if they are valid.
  2815. func (s *DeleteLoadBalancerListenersInput) Validate() error {
  2816. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerListenersInput"}
  2817. if s.LoadBalancerName == nil {
  2818. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2819. }
  2820. if s.LoadBalancerPorts == nil {
  2821. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPorts"))
  2822. }
  2823. if invalidParams.Len() > 0 {
  2824. return invalidParams
  2825. }
  2826. return nil
  2827. }
  2828. // Contains the output of DeleteLoadBalancerListeners.
  2829. type DeleteLoadBalancerListenersOutput struct {
  2830. _ struct{} `type:"structure"`
  2831. }
  2832. // String returns the string representation
  2833. func (s DeleteLoadBalancerListenersOutput) String() string {
  2834. return awsutil.Prettify(s)
  2835. }
  2836. // GoString returns the string representation
  2837. func (s DeleteLoadBalancerListenersOutput) GoString() string {
  2838. return s.String()
  2839. }
  2840. // Contains the output of DeleteLoadBalancer.
  2841. type DeleteLoadBalancerOutput struct {
  2842. _ struct{} `type:"structure"`
  2843. }
  2844. // String returns the string representation
  2845. func (s DeleteLoadBalancerOutput) String() string {
  2846. return awsutil.Prettify(s)
  2847. }
  2848. // GoString returns the string representation
  2849. func (s DeleteLoadBalancerOutput) GoString() string {
  2850. return s.String()
  2851. }
  2852. // Contains the parameters for DeleteLoadBalancerPolicy.
  2853. type DeleteLoadBalancerPolicyInput struct {
  2854. _ struct{} `type:"structure"`
  2855. // The name of the load balancer.
  2856. //
  2857. // LoadBalancerName is a required field
  2858. LoadBalancerName *string `type:"string" required:"true"`
  2859. // The name of the policy.
  2860. //
  2861. // PolicyName is a required field
  2862. PolicyName *string `type:"string" required:"true"`
  2863. }
  2864. // String returns the string representation
  2865. func (s DeleteLoadBalancerPolicyInput) String() string {
  2866. return awsutil.Prettify(s)
  2867. }
  2868. // GoString returns the string representation
  2869. func (s DeleteLoadBalancerPolicyInput) GoString() string {
  2870. return s.String()
  2871. }
  2872. // Validate inspects the fields of the type to determine if they are valid.
  2873. func (s *DeleteLoadBalancerPolicyInput) Validate() error {
  2874. invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerPolicyInput"}
  2875. if s.LoadBalancerName == nil {
  2876. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2877. }
  2878. if s.PolicyName == nil {
  2879. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  2880. }
  2881. if invalidParams.Len() > 0 {
  2882. return invalidParams
  2883. }
  2884. return nil
  2885. }
  2886. // Contains the output of DeleteLoadBalancerPolicy.
  2887. type DeleteLoadBalancerPolicyOutput struct {
  2888. _ struct{} `type:"structure"`
  2889. }
  2890. // String returns the string representation
  2891. func (s DeleteLoadBalancerPolicyOutput) String() string {
  2892. return awsutil.Prettify(s)
  2893. }
  2894. // GoString returns the string representation
  2895. func (s DeleteLoadBalancerPolicyOutput) GoString() string {
  2896. return s.String()
  2897. }
  2898. // Contains the parameters for DeregisterInstancesFromLoadBalancer.
  2899. type DeregisterInstancesFromLoadBalancerInput struct {
  2900. _ struct{} `type:"structure"`
  2901. // The IDs of the instances.
  2902. //
  2903. // Instances is a required field
  2904. Instances []*Instance `type:"list" required:"true"`
  2905. // The name of the load balancer.
  2906. //
  2907. // LoadBalancerName is a required field
  2908. LoadBalancerName *string `type:"string" required:"true"`
  2909. }
  2910. // String returns the string representation
  2911. func (s DeregisterInstancesFromLoadBalancerInput) String() string {
  2912. return awsutil.Prettify(s)
  2913. }
  2914. // GoString returns the string representation
  2915. func (s DeregisterInstancesFromLoadBalancerInput) GoString() string {
  2916. return s.String()
  2917. }
  2918. // Validate inspects the fields of the type to determine if they are valid.
  2919. func (s *DeregisterInstancesFromLoadBalancerInput) Validate() error {
  2920. invalidParams := request.ErrInvalidParams{Context: "DeregisterInstancesFromLoadBalancerInput"}
  2921. if s.Instances == nil {
  2922. invalidParams.Add(request.NewErrParamRequired("Instances"))
  2923. }
  2924. if s.LoadBalancerName == nil {
  2925. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2926. }
  2927. if invalidParams.Len() > 0 {
  2928. return invalidParams
  2929. }
  2930. return nil
  2931. }
  2932. // Contains the output of DeregisterInstancesFromLoadBalancer.
  2933. type DeregisterInstancesFromLoadBalancerOutput struct {
  2934. _ struct{} `type:"structure"`
  2935. // The remaining instances registered with the load balancer.
  2936. Instances []*Instance `type:"list"`
  2937. }
  2938. // String returns the string representation
  2939. func (s DeregisterInstancesFromLoadBalancerOutput) String() string {
  2940. return awsutil.Prettify(s)
  2941. }
  2942. // GoString returns the string representation
  2943. func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string {
  2944. return s.String()
  2945. }
  2946. // Contains the parameters for DescribeInstanceHealth.
  2947. type DescribeInstanceHealthInput struct {
  2948. _ struct{} `type:"structure"`
  2949. // The IDs of the instances.
  2950. Instances []*Instance `type:"list"`
  2951. // The name of the load balancer.
  2952. //
  2953. // LoadBalancerName is a required field
  2954. LoadBalancerName *string `type:"string" required:"true"`
  2955. }
  2956. // String returns the string representation
  2957. func (s DescribeInstanceHealthInput) String() string {
  2958. return awsutil.Prettify(s)
  2959. }
  2960. // GoString returns the string representation
  2961. func (s DescribeInstanceHealthInput) GoString() string {
  2962. return s.String()
  2963. }
  2964. // Validate inspects the fields of the type to determine if they are valid.
  2965. func (s *DescribeInstanceHealthInput) Validate() error {
  2966. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceHealthInput"}
  2967. if s.LoadBalancerName == nil {
  2968. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  2969. }
  2970. if invalidParams.Len() > 0 {
  2971. return invalidParams
  2972. }
  2973. return nil
  2974. }
  2975. // Contains the output for DescribeInstanceHealth.
  2976. type DescribeInstanceHealthOutput struct {
  2977. _ struct{} `type:"structure"`
  2978. // Information about the health of the instances.
  2979. InstanceStates []*InstanceState `type:"list"`
  2980. }
  2981. // String returns the string representation
  2982. func (s DescribeInstanceHealthOutput) String() string {
  2983. return awsutil.Prettify(s)
  2984. }
  2985. // GoString returns the string representation
  2986. func (s DescribeInstanceHealthOutput) GoString() string {
  2987. return s.String()
  2988. }
  2989. // Contains the parameters for DescribeLoadBalancerAttributes.
  2990. type DescribeLoadBalancerAttributesInput struct {
  2991. _ struct{} `type:"structure"`
  2992. // The name of the load balancer.
  2993. //
  2994. // LoadBalancerName is a required field
  2995. LoadBalancerName *string `type:"string" required:"true"`
  2996. }
  2997. // String returns the string representation
  2998. func (s DescribeLoadBalancerAttributesInput) String() string {
  2999. return awsutil.Prettify(s)
  3000. }
  3001. // GoString returns the string representation
  3002. func (s DescribeLoadBalancerAttributesInput) GoString() string {
  3003. return s.String()
  3004. }
  3005. // Validate inspects the fields of the type to determine if they are valid.
  3006. func (s *DescribeLoadBalancerAttributesInput) Validate() error {
  3007. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancerAttributesInput"}
  3008. if s.LoadBalancerName == nil {
  3009. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3010. }
  3011. if invalidParams.Len() > 0 {
  3012. return invalidParams
  3013. }
  3014. return nil
  3015. }
  3016. // Contains the output of DescribeLoadBalancerAttributes.
  3017. type DescribeLoadBalancerAttributesOutput struct {
  3018. _ struct{} `type:"structure"`
  3019. // Information about the load balancer attributes.
  3020. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  3021. }
  3022. // String returns the string representation
  3023. func (s DescribeLoadBalancerAttributesOutput) String() string {
  3024. return awsutil.Prettify(s)
  3025. }
  3026. // GoString returns the string representation
  3027. func (s DescribeLoadBalancerAttributesOutput) GoString() string {
  3028. return s.String()
  3029. }
  3030. // Contains the parameters for DescribeLoadBalancerPolicies.
  3031. type DescribeLoadBalancerPoliciesInput struct {
  3032. _ struct{} `type:"structure"`
  3033. // The name of the load balancer.
  3034. LoadBalancerName *string `type:"string"`
  3035. // The names of the policies.
  3036. PolicyNames []*string `type:"list"`
  3037. }
  3038. // String returns the string representation
  3039. func (s DescribeLoadBalancerPoliciesInput) String() string {
  3040. return awsutil.Prettify(s)
  3041. }
  3042. // GoString returns the string representation
  3043. func (s DescribeLoadBalancerPoliciesInput) GoString() string {
  3044. return s.String()
  3045. }
  3046. // Contains the output of DescribeLoadBalancerPolicies.
  3047. type DescribeLoadBalancerPoliciesOutput struct {
  3048. _ struct{} `type:"structure"`
  3049. // Information about the policies.
  3050. PolicyDescriptions []*PolicyDescription `type:"list"`
  3051. }
  3052. // String returns the string representation
  3053. func (s DescribeLoadBalancerPoliciesOutput) String() string {
  3054. return awsutil.Prettify(s)
  3055. }
  3056. // GoString returns the string representation
  3057. func (s DescribeLoadBalancerPoliciesOutput) GoString() string {
  3058. return s.String()
  3059. }
  3060. // Contains the parameters for DescribeLoadBalancerPolicyTypes.
  3061. type DescribeLoadBalancerPolicyTypesInput struct {
  3062. _ struct{} `type:"structure"`
  3063. // The names of the policy types. If no names are specified, describes all policy
  3064. // types defined by Elastic Load Balancing.
  3065. PolicyTypeNames []*string `type:"list"`
  3066. }
  3067. // String returns the string representation
  3068. func (s DescribeLoadBalancerPolicyTypesInput) String() string {
  3069. return awsutil.Prettify(s)
  3070. }
  3071. // GoString returns the string representation
  3072. func (s DescribeLoadBalancerPolicyTypesInput) GoString() string {
  3073. return s.String()
  3074. }
  3075. // Contains the output of DescribeLoadBalancerPolicyTypes.
  3076. type DescribeLoadBalancerPolicyTypesOutput struct {
  3077. _ struct{} `type:"structure"`
  3078. // Information about the policy types.
  3079. PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
  3080. }
  3081. // String returns the string representation
  3082. func (s DescribeLoadBalancerPolicyTypesOutput) String() string {
  3083. return awsutil.Prettify(s)
  3084. }
  3085. // GoString returns the string representation
  3086. func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string {
  3087. return s.String()
  3088. }
  3089. // Contains the parameters for DescribeLoadBalancers.
  3090. type DescribeLoadBalancersInput struct {
  3091. _ struct{} `type:"structure"`
  3092. // The names of the load balancers.
  3093. LoadBalancerNames []*string `type:"list"`
  3094. // The marker for the next set of results. (You received this marker from a
  3095. // previous call.)
  3096. Marker *string `type:"string"`
  3097. // The maximum number of results to return with this call (a number from 1 to
  3098. // 400). The default is 400.
  3099. PageSize *int64 `min:"1" type:"integer"`
  3100. }
  3101. // String returns the string representation
  3102. func (s DescribeLoadBalancersInput) String() string {
  3103. return awsutil.Prettify(s)
  3104. }
  3105. // GoString returns the string representation
  3106. func (s DescribeLoadBalancersInput) GoString() string {
  3107. return s.String()
  3108. }
  3109. // Validate inspects the fields of the type to determine if they are valid.
  3110. func (s *DescribeLoadBalancersInput) Validate() error {
  3111. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBalancersInput"}
  3112. if s.PageSize != nil && *s.PageSize < 1 {
  3113. invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
  3114. }
  3115. if invalidParams.Len() > 0 {
  3116. return invalidParams
  3117. }
  3118. return nil
  3119. }
  3120. // Contains the parameters for DescribeLoadBalancers.
  3121. type DescribeLoadBalancersOutput struct {
  3122. _ struct{} `type:"structure"`
  3123. // Information about the load balancers.
  3124. LoadBalancerDescriptions []*LoadBalancerDescription `type:"list"`
  3125. // The marker to use when requesting the next set of results. If there are no
  3126. // additional results, the string is empty.
  3127. NextMarker *string `type:"string"`
  3128. }
  3129. // String returns the string representation
  3130. func (s DescribeLoadBalancersOutput) String() string {
  3131. return awsutil.Prettify(s)
  3132. }
  3133. // GoString returns the string representation
  3134. func (s DescribeLoadBalancersOutput) GoString() string {
  3135. return s.String()
  3136. }
  3137. // Contains the parameters for DescribeTags.
  3138. type DescribeTagsInput struct {
  3139. _ struct{} `type:"structure"`
  3140. // The names of the load balancers.
  3141. //
  3142. // LoadBalancerNames is a required field
  3143. LoadBalancerNames []*string `min:"1" type:"list" required:"true"`
  3144. }
  3145. // String returns the string representation
  3146. func (s DescribeTagsInput) String() string {
  3147. return awsutil.Prettify(s)
  3148. }
  3149. // GoString returns the string representation
  3150. func (s DescribeTagsInput) GoString() string {
  3151. return s.String()
  3152. }
  3153. // Validate inspects the fields of the type to determine if they are valid.
  3154. func (s *DescribeTagsInput) Validate() error {
  3155. invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  3156. if s.LoadBalancerNames == nil {
  3157. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  3158. }
  3159. if s.LoadBalancerNames != nil && len(s.LoadBalancerNames) < 1 {
  3160. invalidParams.Add(request.NewErrParamMinLen("LoadBalancerNames", 1))
  3161. }
  3162. if invalidParams.Len() > 0 {
  3163. return invalidParams
  3164. }
  3165. return nil
  3166. }
  3167. // Contains the output for DescribeTags.
  3168. type DescribeTagsOutput struct {
  3169. _ struct{} `type:"structure"`
  3170. // Information about the tags.
  3171. TagDescriptions []*TagDescription `type:"list"`
  3172. }
  3173. // String returns the string representation
  3174. func (s DescribeTagsOutput) String() string {
  3175. return awsutil.Prettify(s)
  3176. }
  3177. // GoString returns the string representation
  3178. func (s DescribeTagsOutput) GoString() string {
  3179. return s.String()
  3180. }
  3181. // Contains the parameters for DetachLoadBalancerFromSubnets.
  3182. type DetachLoadBalancerFromSubnetsInput struct {
  3183. _ struct{} `type:"structure"`
  3184. // The name of the load balancer.
  3185. //
  3186. // LoadBalancerName is a required field
  3187. LoadBalancerName *string `type:"string" required:"true"`
  3188. // The IDs of the subnets.
  3189. //
  3190. // Subnets is a required field
  3191. Subnets []*string `type:"list" required:"true"`
  3192. }
  3193. // String returns the string representation
  3194. func (s DetachLoadBalancerFromSubnetsInput) String() string {
  3195. return awsutil.Prettify(s)
  3196. }
  3197. // GoString returns the string representation
  3198. func (s DetachLoadBalancerFromSubnetsInput) GoString() string {
  3199. return s.String()
  3200. }
  3201. // Validate inspects the fields of the type to determine if they are valid.
  3202. func (s *DetachLoadBalancerFromSubnetsInput) Validate() error {
  3203. invalidParams := request.ErrInvalidParams{Context: "DetachLoadBalancerFromSubnetsInput"}
  3204. if s.LoadBalancerName == nil {
  3205. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3206. }
  3207. if s.Subnets == nil {
  3208. invalidParams.Add(request.NewErrParamRequired("Subnets"))
  3209. }
  3210. if invalidParams.Len() > 0 {
  3211. return invalidParams
  3212. }
  3213. return nil
  3214. }
  3215. // Contains the output of DetachLoadBalancerFromSubnets.
  3216. type DetachLoadBalancerFromSubnetsOutput struct {
  3217. _ struct{} `type:"structure"`
  3218. // The IDs of the remaining subnets for the load balancer.
  3219. Subnets []*string `type:"list"`
  3220. }
  3221. // String returns the string representation
  3222. func (s DetachLoadBalancerFromSubnetsOutput) String() string {
  3223. return awsutil.Prettify(s)
  3224. }
  3225. // GoString returns the string representation
  3226. func (s DetachLoadBalancerFromSubnetsOutput) GoString() string {
  3227. return s.String()
  3228. }
  3229. // Contains the parameters for DisableAvailabilityZonesForLoadBalancer.
  3230. type DisableAvailabilityZonesForLoadBalancerInput struct {
  3231. _ struct{} `type:"structure"`
  3232. // The Availability Zones.
  3233. //
  3234. // AvailabilityZones is a required field
  3235. AvailabilityZones []*string `type:"list" required:"true"`
  3236. // The name of the load balancer.
  3237. //
  3238. // LoadBalancerName is a required field
  3239. LoadBalancerName *string `type:"string" required:"true"`
  3240. }
  3241. // String returns the string representation
  3242. func (s DisableAvailabilityZonesForLoadBalancerInput) String() string {
  3243. return awsutil.Prettify(s)
  3244. }
  3245. // GoString returns the string representation
  3246. func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string {
  3247. return s.String()
  3248. }
  3249. // Validate inspects the fields of the type to determine if they are valid.
  3250. func (s *DisableAvailabilityZonesForLoadBalancerInput) Validate() error {
  3251. invalidParams := request.ErrInvalidParams{Context: "DisableAvailabilityZonesForLoadBalancerInput"}
  3252. if s.AvailabilityZones == nil {
  3253. invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
  3254. }
  3255. if s.LoadBalancerName == nil {
  3256. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3257. }
  3258. if invalidParams.Len() > 0 {
  3259. return invalidParams
  3260. }
  3261. return nil
  3262. }
  3263. // Contains the output for DisableAvailabilityZonesForLoadBalancer.
  3264. type DisableAvailabilityZonesForLoadBalancerOutput struct {
  3265. _ struct{} `type:"structure"`
  3266. // The remaining Availability Zones for the load balancer.
  3267. AvailabilityZones []*string `type:"list"`
  3268. }
  3269. // String returns the string representation
  3270. func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string {
  3271. return awsutil.Prettify(s)
  3272. }
  3273. // GoString returns the string representation
  3274. func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  3275. return s.String()
  3276. }
  3277. // Contains the parameters for EnableAvailabilityZonesForLoadBalancer.
  3278. type EnableAvailabilityZonesForLoadBalancerInput struct {
  3279. _ struct{} `type:"structure"`
  3280. // The Availability Zones. These must be in the same region as the load balancer.
  3281. //
  3282. // AvailabilityZones is a required field
  3283. AvailabilityZones []*string `type:"list" required:"true"`
  3284. // The name of the load balancer.
  3285. //
  3286. // LoadBalancerName is a required field
  3287. LoadBalancerName *string `type:"string" required:"true"`
  3288. }
  3289. // String returns the string representation
  3290. func (s EnableAvailabilityZonesForLoadBalancerInput) String() string {
  3291. return awsutil.Prettify(s)
  3292. }
  3293. // GoString returns the string representation
  3294. func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string {
  3295. return s.String()
  3296. }
  3297. // Validate inspects the fields of the type to determine if they are valid.
  3298. func (s *EnableAvailabilityZonesForLoadBalancerInput) Validate() error {
  3299. invalidParams := request.ErrInvalidParams{Context: "EnableAvailabilityZonesForLoadBalancerInput"}
  3300. if s.AvailabilityZones == nil {
  3301. invalidParams.Add(request.NewErrParamRequired("AvailabilityZones"))
  3302. }
  3303. if s.LoadBalancerName == nil {
  3304. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3305. }
  3306. if invalidParams.Len() > 0 {
  3307. return invalidParams
  3308. }
  3309. return nil
  3310. }
  3311. // Contains the output of EnableAvailabilityZonesForLoadBalancer.
  3312. type EnableAvailabilityZonesForLoadBalancerOutput struct {
  3313. _ struct{} `type:"structure"`
  3314. // The updated list of Availability Zones for the load balancer.
  3315. AvailabilityZones []*string `type:"list"`
  3316. }
  3317. // String returns the string representation
  3318. func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string {
  3319. return awsutil.Prettify(s)
  3320. }
  3321. // GoString returns the string representation
  3322. func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  3323. return s.String()
  3324. }
  3325. // Information about a health check.
  3326. type HealthCheck struct {
  3327. _ struct{} `type:"structure"`
  3328. // The number of consecutive health checks successes required before moving
  3329. // the instance to the Healthy state.
  3330. //
  3331. // HealthyThreshold is a required field
  3332. HealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
  3333. // The approximate interval, in seconds, between health checks of an individual
  3334. // instance.
  3335. //
  3336. // Interval is a required field
  3337. Interval *int64 `min:"5" type:"integer" required:"true"`
  3338. // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
  3339. // The range of valid ports is one (1) through 65535.
  3340. //
  3341. // TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
  3342. // In this case, a health check simply attempts to open a TCP connection to
  3343. // the instance on the specified port. Failure to connect within the configured
  3344. // timeout is considered unhealthy.
  3345. //
  3346. // SSL is also specified as SSL: port pair, for example, SSL:5000.
  3347. //
  3348. // For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
  3349. // as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
  3350. // In this case, a HTTP GET request is issued to the instance on the given port
  3351. // and path. Any answer other than "200 OK" within the timeout period is considered
  3352. // unhealthy.
  3353. //
  3354. // The total length of the HTTP ping target must be 1024 16-bit Unicode characters
  3355. // or less.
  3356. //
  3357. // Target is a required field
  3358. Target *string `type:"string" required:"true"`
  3359. // The amount of time, in seconds, during which no response means a failed health
  3360. // check.
  3361. //
  3362. // This value must be less than the Interval value.
  3363. //
  3364. // Timeout is a required field
  3365. Timeout *int64 `min:"2" type:"integer" required:"true"`
  3366. // The number of consecutive health check failures required before moving the
  3367. // instance to the Unhealthy state.
  3368. //
  3369. // UnhealthyThreshold is a required field
  3370. UnhealthyThreshold *int64 `min:"2" type:"integer" required:"true"`
  3371. }
  3372. // String returns the string representation
  3373. func (s HealthCheck) String() string {
  3374. return awsutil.Prettify(s)
  3375. }
  3376. // GoString returns the string representation
  3377. func (s HealthCheck) GoString() string {
  3378. return s.String()
  3379. }
  3380. // Validate inspects the fields of the type to determine if they are valid.
  3381. func (s *HealthCheck) Validate() error {
  3382. invalidParams := request.ErrInvalidParams{Context: "HealthCheck"}
  3383. if s.HealthyThreshold == nil {
  3384. invalidParams.Add(request.NewErrParamRequired("HealthyThreshold"))
  3385. }
  3386. if s.HealthyThreshold != nil && *s.HealthyThreshold < 2 {
  3387. invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 2))
  3388. }
  3389. if s.Interval == nil {
  3390. invalidParams.Add(request.NewErrParamRequired("Interval"))
  3391. }
  3392. if s.Interval != nil && *s.Interval < 5 {
  3393. invalidParams.Add(request.NewErrParamMinValue("Interval", 5))
  3394. }
  3395. if s.Target == nil {
  3396. invalidParams.Add(request.NewErrParamRequired("Target"))
  3397. }
  3398. if s.Timeout == nil {
  3399. invalidParams.Add(request.NewErrParamRequired("Timeout"))
  3400. }
  3401. if s.Timeout != nil && *s.Timeout < 2 {
  3402. invalidParams.Add(request.NewErrParamMinValue("Timeout", 2))
  3403. }
  3404. if s.UnhealthyThreshold == nil {
  3405. invalidParams.Add(request.NewErrParamRequired("UnhealthyThreshold"))
  3406. }
  3407. if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 2 {
  3408. invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 2))
  3409. }
  3410. if invalidParams.Len() > 0 {
  3411. return invalidParams
  3412. }
  3413. return nil
  3414. }
  3415. // The ID of an EC2 instance.
  3416. type Instance struct {
  3417. _ struct{} `type:"structure"`
  3418. // The instance ID.
  3419. InstanceId *string `type:"string"`
  3420. }
  3421. // String returns the string representation
  3422. func (s Instance) String() string {
  3423. return awsutil.Prettify(s)
  3424. }
  3425. // GoString returns the string representation
  3426. func (s Instance) GoString() string {
  3427. return s.String()
  3428. }
  3429. // Information about the state of an EC2 instance.
  3430. type InstanceState struct {
  3431. _ struct{} `type:"structure"`
  3432. // A description of the instance state. This string can contain one or more
  3433. // of the following messages.
  3434. //
  3435. // * N/A
  3436. //
  3437. // * A transient error occurred. Please try again later.
  3438. //
  3439. // * Instance has failed at least the UnhealthyThreshold number of health
  3440. // checks consecutively.
  3441. //
  3442. // * Instance has not passed the configured HealthyThreshold number of health
  3443. // checks consecutively.
  3444. //
  3445. // * Instance registration is still in progress.
  3446. //
  3447. // * Instance is in the EC2 Availability Zone for which LoadBalancer is not
  3448. // configured to route traffic to.
  3449. //
  3450. // * Instance is not currently registered with the LoadBalancer.
  3451. //
  3452. // * Instance deregistration currently in progress.
  3453. //
  3454. // * Disable Availability Zone is currently in progress.
  3455. //
  3456. // * Instance is in pending state.
  3457. //
  3458. // * Instance is in stopped state.
  3459. //
  3460. // * Instance is in terminated state.
  3461. Description *string `type:"string"`
  3462. // The ID of the instance.
  3463. InstanceId *string `type:"string"`
  3464. // Information about the cause of OutOfService instances. Specifically, whether
  3465. // the cause is Elastic Load Balancing or the instance.
  3466. //
  3467. // Valid values: ELB | Instance | N/A
  3468. ReasonCode *string `type:"string"`
  3469. // The current state of the instance.
  3470. //
  3471. // Valid values: InService | OutOfService | Unknown
  3472. State *string `type:"string"`
  3473. }
  3474. // String returns the string representation
  3475. func (s InstanceState) String() string {
  3476. return awsutil.Prettify(s)
  3477. }
  3478. // GoString returns the string representation
  3479. func (s InstanceState) GoString() string {
  3480. return s.String()
  3481. }
  3482. // Information about a policy for duration-based session stickiness.
  3483. type LBCookieStickinessPolicy struct {
  3484. _ struct{} `type:"structure"`
  3485. // The time period, in seconds, after which the cookie should be considered
  3486. // stale. If this parameter is not specified, the stickiness session lasts for
  3487. // the duration of the browser session.
  3488. CookieExpirationPeriod *int64 `type:"long"`
  3489. // The name of the policy. This name must be unique within the set of policies
  3490. // for this load balancer.
  3491. PolicyName *string `type:"string"`
  3492. }
  3493. // String returns the string representation
  3494. func (s LBCookieStickinessPolicy) String() string {
  3495. return awsutil.Prettify(s)
  3496. }
  3497. // GoString returns the string representation
  3498. func (s LBCookieStickinessPolicy) GoString() string {
  3499. return s.String()
  3500. }
  3501. // Information about a listener.
  3502. //
  3503. // For information about the protocols and the ports supported by Elastic Load
  3504. // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  3505. // in the Classic Load Balancers Guide.
  3506. type Listener struct {
  3507. _ struct{} `type:"structure"`
  3508. // The port on which the instance is listening.
  3509. //
  3510. // InstancePort is a required field
  3511. InstancePort *int64 `min:"1" type:"integer" required:"true"`
  3512. // The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or
  3513. // SSL.
  3514. //
  3515. // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must
  3516. // be at the same protocol.
  3517. //
  3518. // If there is another listener with the same InstancePort whose InstanceProtocol
  3519. // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
  3520. //
  3521. // If there is another listener with the same InstancePort whose InstanceProtocol
  3522. // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
  3523. InstanceProtocol *string `type:"string"`
  3524. // The port on which the load balancer is listening. On EC2-VPC, you can specify
  3525. // any port from the range 1-65535. On EC2-Classic, you can specify any port
  3526. // from the following list: 25, 80, 443, 465, 587, 1024-65535.
  3527. //
  3528. // LoadBalancerPort is a required field
  3529. LoadBalancerPort *int64 `type:"integer" required:"true"`
  3530. // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
  3531. // or SSL.
  3532. //
  3533. // Protocol is a required field
  3534. Protocol *string `type:"string" required:"true"`
  3535. // The Amazon Resource Name (ARN) of the server certificate.
  3536. SSLCertificateId *string `type:"string"`
  3537. }
  3538. // String returns the string representation
  3539. func (s Listener) String() string {
  3540. return awsutil.Prettify(s)
  3541. }
  3542. // GoString returns the string representation
  3543. func (s Listener) GoString() string {
  3544. return s.String()
  3545. }
  3546. // Validate inspects the fields of the type to determine if they are valid.
  3547. func (s *Listener) Validate() error {
  3548. invalidParams := request.ErrInvalidParams{Context: "Listener"}
  3549. if s.InstancePort == nil {
  3550. invalidParams.Add(request.NewErrParamRequired("InstancePort"))
  3551. }
  3552. if s.InstancePort != nil && *s.InstancePort < 1 {
  3553. invalidParams.Add(request.NewErrParamMinValue("InstancePort", 1))
  3554. }
  3555. if s.LoadBalancerPort == nil {
  3556. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  3557. }
  3558. if s.Protocol == nil {
  3559. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  3560. }
  3561. if invalidParams.Len() > 0 {
  3562. return invalidParams
  3563. }
  3564. return nil
  3565. }
  3566. // The policies enabled for a listener.
  3567. type ListenerDescription struct {
  3568. _ struct{} `type:"structure"`
  3569. // Information about a listener.
  3570. //
  3571. // For information about the protocols and the ports supported by Elastic Load
  3572. // Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
  3573. // in the Classic Load Balancers Guide.
  3574. Listener *Listener `type:"structure"`
  3575. // The policies. If there are no policies enabled, the list is empty.
  3576. PolicyNames []*string `type:"list"`
  3577. }
  3578. // String returns the string representation
  3579. func (s ListenerDescription) String() string {
  3580. return awsutil.Prettify(s)
  3581. }
  3582. // GoString returns the string representation
  3583. func (s ListenerDescription) GoString() string {
  3584. return s.String()
  3585. }
  3586. // The attributes for a load balancer.
  3587. type LoadBalancerAttributes struct {
  3588. _ struct{} `type:"structure"`
  3589. // If enabled, the load balancer captures detailed information of all requests
  3590. // and delivers the information to the Amazon S3 bucket that you specify.
  3591. //
  3592. // For more information, see Enable Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html)
  3593. // in the Classic Load Balancers Guide.
  3594. AccessLog *AccessLog `type:"structure"`
  3595. // This parameter is reserved.
  3596. AdditionalAttributes []*AdditionalAttribute `type:"list"`
  3597. // If enabled, the load balancer allows existing requests to complete before
  3598. // the load balancer shifts traffic away from a deregistered or unhealthy instance.
  3599. //
  3600. // For more information, see Configure Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
  3601. // in the Classic Load Balancers Guide.
  3602. ConnectionDraining *ConnectionDraining `type:"structure"`
  3603. // If enabled, the load balancer allows the connections to remain idle (no data
  3604. // is sent over the connection) for the specified duration.
  3605. //
  3606. // By default, Elastic Load Balancing maintains a 60-second idle connection
  3607. // timeout for both front-end and back-end connections of your load balancer.
  3608. // For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
  3609. // in the Classic Load Balancers Guide.
  3610. ConnectionSettings *ConnectionSettings `type:"structure"`
  3611. // If enabled, the load balancer routes the request traffic evenly across all
  3612. // instances regardless of the Availability Zones.
  3613. //
  3614. // For more information, see Configure Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
  3615. // in the Classic Load Balancers Guide.
  3616. CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
  3617. }
  3618. // String returns the string representation
  3619. func (s LoadBalancerAttributes) String() string {
  3620. return awsutil.Prettify(s)
  3621. }
  3622. // GoString returns the string representation
  3623. func (s LoadBalancerAttributes) GoString() string {
  3624. return s.String()
  3625. }
  3626. // Validate inspects the fields of the type to determine if they are valid.
  3627. func (s *LoadBalancerAttributes) Validate() error {
  3628. invalidParams := request.ErrInvalidParams{Context: "LoadBalancerAttributes"}
  3629. if s.AccessLog != nil {
  3630. if err := s.AccessLog.Validate(); err != nil {
  3631. invalidParams.AddNested("AccessLog", err.(request.ErrInvalidParams))
  3632. }
  3633. }
  3634. if s.ConnectionDraining != nil {
  3635. if err := s.ConnectionDraining.Validate(); err != nil {
  3636. invalidParams.AddNested("ConnectionDraining", err.(request.ErrInvalidParams))
  3637. }
  3638. }
  3639. if s.ConnectionSettings != nil {
  3640. if err := s.ConnectionSettings.Validate(); err != nil {
  3641. invalidParams.AddNested("ConnectionSettings", err.(request.ErrInvalidParams))
  3642. }
  3643. }
  3644. if s.CrossZoneLoadBalancing != nil {
  3645. if err := s.CrossZoneLoadBalancing.Validate(); err != nil {
  3646. invalidParams.AddNested("CrossZoneLoadBalancing", err.(request.ErrInvalidParams))
  3647. }
  3648. }
  3649. if invalidParams.Len() > 0 {
  3650. return invalidParams
  3651. }
  3652. return nil
  3653. }
  3654. // Information about a load balancer.
  3655. type LoadBalancerDescription struct {
  3656. _ struct{} `type:"structure"`
  3657. // The Availability Zones for the load balancer.
  3658. AvailabilityZones []*string `type:"list"`
  3659. // Information about your EC2 instances.
  3660. BackendServerDescriptions []*BackendServerDescription `type:"list"`
  3661. // The DNS name of the load balancer.
  3662. //
  3663. // For more information, see Configure a Custom Domain Name (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html)
  3664. // in the Classic Load Balancers Guide.
  3665. CanonicalHostedZoneName *string `type:"string"`
  3666. // The ID of the Amazon Route 53 hosted zone for the load balancer.
  3667. CanonicalHostedZoneNameID *string `type:"string"`
  3668. // The date and time the load balancer was created.
  3669. CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3670. // The DNS name of the load balancer.
  3671. DNSName *string `type:"string"`
  3672. // Information about the health checks conducted on the load balancer.
  3673. HealthCheck *HealthCheck `type:"structure"`
  3674. // The IDs of the instances for the load balancer.
  3675. Instances []*Instance `type:"list"`
  3676. // The listeners for the load balancer.
  3677. ListenerDescriptions []*ListenerDescription `type:"list"`
  3678. // The name of the load balancer.
  3679. LoadBalancerName *string `type:"string"`
  3680. // The policies defined for the load balancer.
  3681. Policies *Policies `type:"structure"`
  3682. // The type of load balancer. Valid only for load balancers in a VPC.
  3683. //
  3684. // If Scheme is internet-facing, the load balancer has a public DNS name that
  3685. // resolves to a public IP address.
  3686. //
  3687. // If Scheme is internal, the load balancer has a public DNS name that resolves
  3688. // to a private IP address.
  3689. Scheme *string `type:"string"`
  3690. // The security groups for the load balancer. Valid only for load balancers
  3691. // in a VPC.
  3692. SecurityGroups []*string `type:"list"`
  3693. // The security group for the load balancer, which you can use as part of your
  3694. // inbound rules for your registered instances. To only allow traffic from load
  3695. // balancers, add a security group rule that specifies this source security
  3696. // group as the inbound source.
  3697. SourceSecurityGroup *SourceSecurityGroup `type:"structure"`
  3698. // The IDs of the subnets for the load balancer.
  3699. Subnets []*string `type:"list"`
  3700. // The ID of the VPC for the load balancer.
  3701. VPCId *string `type:"string"`
  3702. }
  3703. // String returns the string representation
  3704. func (s LoadBalancerDescription) String() string {
  3705. return awsutil.Prettify(s)
  3706. }
  3707. // GoString returns the string representation
  3708. func (s LoadBalancerDescription) GoString() string {
  3709. return s.String()
  3710. }
  3711. // Contains the parameters for ModifyLoadBalancerAttributes.
  3712. type ModifyLoadBalancerAttributesInput struct {
  3713. _ struct{} `type:"structure"`
  3714. // The attributes of the load balancer.
  3715. //
  3716. // LoadBalancerAttributes is a required field
  3717. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
  3718. // The name of the load balancer.
  3719. //
  3720. // LoadBalancerName is a required field
  3721. LoadBalancerName *string `type:"string" required:"true"`
  3722. }
  3723. // String returns the string representation
  3724. func (s ModifyLoadBalancerAttributesInput) String() string {
  3725. return awsutil.Prettify(s)
  3726. }
  3727. // GoString returns the string representation
  3728. func (s ModifyLoadBalancerAttributesInput) GoString() string {
  3729. return s.String()
  3730. }
  3731. // Validate inspects the fields of the type to determine if they are valid.
  3732. func (s *ModifyLoadBalancerAttributesInput) Validate() error {
  3733. invalidParams := request.ErrInvalidParams{Context: "ModifyLoadBalancerAttributesInput"}
  3734. if s.LoadBalancerAttributes == nil {
  3735. invalidParams.Add(request.NewErrParamRequired("LoadBalancerAttributes"))
  3736. }
  3737. if s.LoadBalancerName == nil {
  3738. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3739. }
  3740. if s.LoadBalancerAttributes != nil {
  3741. if err := s.LoadBalancerAttributes.Validate(); err != nil {
  3742. invalidParams.AddNested("LoadBalancerAttributes", err.(request.ErrInvalidParams))
  3743. }
  3744. }
  3745. if invalidParams.Len() > 0 {
  3746. return invalidParams
  3747. }
  3748. return nil
  3749. }
  3750. // Contains the output of ModifyLoadBalancerAttributes.
  3751. type ModifyLoadBalancerAttributesOutput struct {
  3752. _ struct{} `type:"structure"`
  3753. // The attributes for a load balancer.
  3754. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  3755. // The name of the load balancer.
  3756. LoadBalancerName *string `type:"string"`
  3757. }
  3758. // String returns the string representation
  3759. func (s ModifyLoadBalancerAttributesOutput) String() string {
  3760. return awsutil.Prettify(s)
  3761. }
  3762. // GoString returns the string representation
  3763. func (s ModifyLoadBalancerAttributesOutput) GoString() string {
  3764. return s.String()
  3765. }
  3766. // The policies for a load balancer.
  3767. type Policies struct {
  3768. _ struct{} `type:"structure"`
  3769. // The stickiness policies created using CreateAppCookieStickinessPolicy.
  3770. AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`
  3771. // The stickiness policies created using CreateLBCookieStickinessPolicy.
  3772. LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`
  3773. // The policies other than the stickiness policies.
  3774. OtherPolicies []*string `type:"list"`
  3775. }
  3776. // String returns the string representation
  3777. func (s Policies) String() string {
  3778. return awsutil.Prettify(s)
  3779. }
  3780. // GoString returns the string representation
  3781. func (s Policies) GoString() string {
  3782. return s.String()
  3783. }
  3784. // Information about a policy attribute.
  3785. type PolicyAttribute struct {
  3786. _ struct{} `type:"structure"`
  3787. // The name of the attribute.
  3788. AttributeName *string `type:"string"`
  3789. // The value of the attribute.
  3790. AttributeValue *string `type:"string"`
  3791. }
  3792. // String returns the string representation
  3793. func (s PolicyAttribute) String() string {
  3794. return awsutil.Prettify(s)
  3795. }
  3796. // GoString returns the string representation
  3797. func (s PolicyAttribute) GoString() string {
  3798. return s.String()
  3799. }
  3800. // Information about a policy attribute.
  3801. type PolicyAttributeDescription struct {
  3802. _ struct{} `type:"structure"`
  3803. // The name of the attribute.
  3804. AttributeName *string `type:"string"`
  3805. // The value of the attribute.
  3806. AttributeValue *string `type:"string"`
  3807. }
  3808. // String returns the string representation
  3809. func (s PolicyAttributeDescription) String() string {
  3810. return awsutil.Prettify(s)
  3811. }
  3812. // GoString returns the string representation
  3813. func (s PolicyAttributeDescription) GoString() string {
  3814. return s.String()
  3815. }
  3816. // Information about a policy attribute type.
  3817. type PolicyAttributeTypeDescription struct {
  3818. _ struct{} `type:"structure"`
  3819. // The name of the attribute.
  3820. AttributeName *string `type:"string"`
  3821. // The type of the attribute. For example, Boolean or Integer.
  3822. AttributeType *string `type:"string"`
  3823. // The cardinality of the attribute.
  3824. //
  3825. // Valid values:
  3826. //
  3827. // * ONE(1) : Single value required
  3828. //
  3829. // * ZERO_OR_ONE(0..1) : Up to one value is allowed
  3830. //
  3831. // * ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
  3832. //
  3833. // * ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
  3834. Cardinality *string `type:"string"`
  3835. // The default value of the attribute, if applicable.
  3836. DefaultValue *string `type:"string"`
  3837. // A description of the attribute.
  3838. Description *string `type:"string"`
  3839. }
  3840. // String returns the string representation
  3841. func (s PolicyAttributeTypeDescription) String() string {
  3842. return awsutil.Prettify(s)
  3843. }
  3844. // GoString returns the string representation
  3845. func (s PolicyAttributeTypeDescription) GoString() string {
  3846. return s.String()
  3847. }
  3848. // Information about a policy.
  3849. type PolicyDescription struct {
  3850. _ struct{} `type:"structure"`
  3851. // The policy attributes.
  3852. PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`
  3853. // The name of the policy.
  3854. PolicyName *string `type:"string"`
  3855. // The name of the policy type.
  3856. PolicyTypeName *string `type:"string"`
  3857. }
  3858. // String returns the string representation
  3859. func (s PolicyDescription) String() string {
  3860. return awsutil.Prettify(s)
  3861. }
  3862. // GoString returns the string representation
  3863. func (s PolicyDescription) GoString() string {
  3864. return s.String()
  3865. }
  3866. // Information about a policy type.
  3867. type PolicyTypeDescription struct {
  3868. _ struct{} `type:"structure"`
  3869. // A description of the policy type.
  3870. Description *string `type:"string"`
  3871. // The description of the policy attributes associated with the policies defined
  3872. // by Elastic Load Balancing.
  3873. PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`
  3874. // The name of the policy type.
  3875. PolicyTypeName *string `type:"string"`
  3876. }
  3877. // String returns the string representation
  3878. func (s PolicyTypeDescription) String() string {
  3879. return awsutil.Prettify(s)
  3880. }
  3881. // GoString returns the string representation
  3882. func (s PolicyTypeDescription) GoString() string {
  3883. return s.String()
  3884. }
  3885. // Contains the parameters for RegisterInstancesWithLoadBalancer.
  3886. type RegisterInstancesWithLoadBalancerInput struct {
  3887. _ struct{} `type:"structure"`
  3888. // The IDs of the instances.
  3889. //
  3890. // Instances is a required field
  3891. Instances []*Instance `type:"list" required:"true"`
  3892. // The name of the load balancer.
  3893. //
  3894. // LoadBalancerName is a required field
  3895. LoadBalancerName *string `type:"string" required:"true"`
  3896. }
  3897. // String returns the string representation
  3898. func (s RegisterInstancesWithLoadBalancerInput) String() string {
  3899. return awsutil.Prettify(s)
  3900. }
  3901. // GoString returns the string representation
  3902. func (s RegisterInstancesWithLoadBalancerInput) GoString() string {
  3903. return s.String()
  3904. }
  3905. // Validate inspects the fields of the type to determine if they are valid.
  3906. func (s *RegisterInstancesWithLoadBalancerInput) Validate() error {
  3907. invalidParams := request.ErrInvalidParams{Context: "RegisterInstancesWithLoadBalancerInput"}
  3908. if s.Instances == nil {
  3909. invalidParams.Add(request.NewErrParamRequired("Instances"))
  3910. }
  3911. if s.LoadBalancerName == nil {
  3912. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  3913. }
  3914. if invalidParams.Len() > 0 {
  3915. return invalidParams
  3916. }
  3917. return nil
  3918. }
  3919. // Contains the output of RegisterInstancesWithLoadBalancer.
  3920. type RegisterInstancesWithLoadBalancerOutput struct {
  3921. _ struct{} `type:"structure"`
  3922. // The updated list of instances for the load balancer.
  3923. Instances []*Instance `type:"list"`
  3924. }
  3925. // String returns the string representation
  3926. func (s RegisterInstancesWithLoadBalancerOutput) String() string {
  3927. return awsutil.Prettify(s)
  3928. }
  3929. // GoString returns the string representation
  3930. func (s RegisterInstancesWithLoadBalancerOutput) GoString() string {
  3931. return s.String()
  3932. }
  3933. // Contains the parameters for RemoveTags.
  3934. type RemoveTagsInput struct {
  3935. _ struct{} `type:"structure"`
  3936. // The name of the load balancer. You can specify a maximum of one load balancer
  3937. // name.
  3938. //
  3939. // LoadBalancerNames is a required field
  3940. LoadBalancerNames []*string `type:"list" required:"true"`
  3941. // The list of tag keys to remove.
  3942. //
  3943. // Tags is a required field
  3944. Tags []*TagKeyOnly `min:"1" type:"list" required:"true"`
  3945. }
  3946. // String returns the string representation
  3947. func (s RemoveTagsInput) String() string {
  3948. return awsutil.Prettify(s)
  3949. }
  3950. // GoString returns the string representation
  3951. func (s RemoveTagsInput) GoString() string {
  3952. return s.String()
  3953. }
  3954. // Validate inspects the fields of the type to determine if they are valid.
  3955. func (s *RemoveTagsInput) Validate() error {
  3956. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
  3957. if s.LoadBalancerNames == nil {
  3958. invalidParams.Add(request.NewErrParamRequired("LoadBalancerNames"))
  3959. }
  3960. if s.Tags == nil {
  3961. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3962. }
  3963. if s.Tags != nil && len(s.Tags) < 1 {
  3964. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  3965. }
  3966. if s.Tags != nil {
  3967. for i, v := range s.Tags {
  3968. if v == nil {
  3969. continue
  3970. }
  3971. if err := v.Validate(); err != nil {
  3972. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3973. }
  3974. }
  3975. }
  3976. if invalidParams.Len() > 0 {
  3977. return invalidParams
  3978. }
  3979. return nil
  3980. }
  3981. // Contains the output of RemoveTags.
  3982. type RemoveTagsOutput struct {
  3983. _ struct{} `type:"structure"`
  3984. }
  3985. // String returns the string representation
  3986. func (s RemoveTagsOutput) String() string {
  3987. return awsutil.Prettify(s)
  3988. }
  3989. // GoString returns the string representation
  3990. func (s RemoveTagsOutput) GoString() string {
  3991. return s.String()
  3992. }
  3993. // Contains the parameters for SetLoadBalancerListenerSSLCertificate.
  3994. type SetLoadBalancerListenerSSLCertificateInput struct {
  3995. _ struct{} `type:"structure"`
  3996. // The name of the load balancer.
  3997. //
  3998. // LoadBalancerName is a required field
  3999. LoadBalancerName *string `type:"string" required:"true"`
  4000. // The port that uses the specified SSL certificate.
  4001. //
  4002. // LoadBalancerPort is a required field
  4003. LoadBalancerPort *int64 `type:"integer" required:"true"`
  4004. // The Amazon Resource Name (ARN) of the SSL certificate.
  4005. //
  4006. // SSLCertificateId is a required field
  4007. SSLCertificateId *string `type:"string" required:"true"`
  4008. }
  4009. // String returns the string representation
  4010. func (s SetLoadBalancerListenerSSLCertificateInput) String() string {
  4011. return awsutil.Prettify(s)
  4012. }
  4013. // GoString returns the string representation
  4014. func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string {
  4015. return s.String()
  4016. }
  4017. // Validate inspects the fields of the type to determine if they are valid.
  4018. func (s *SetLoadBalancerListenerSSLCertificateInput) Validate() error {
  4019. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerListenerSSLCertificateInput"}
  4020. if s.LoadBalancerName == nil {
  4021. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4022. }
  4023. if s.LoadBalancerPort == nil {
  4024. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  4025. }
  4026. if s.SSLCertificateId == nil {
  4027. invalidParams.Add(request.NewErrParamRequired("SSLCertificateId"))
  4028. }
  4029. if invalidParams.Len() > 0 {
  4030. return invalidParams
  4031. }
  4032. return nil
  4033. }
  4034. // Contains the output of SetLoadBalancerListenerSSLCertificate.
  4035. type SetLoadBalancerListenerSSLCertificateOutput struct {
  4036. _ struct{} `type:"structure"`
  4037. }
  4038. // String returns the string representation
  4039. func (s SetLoadBalancerListenerSSLCertificateOutput) String() string {
  4040. return awsutil.Prettify(s)
  4041. }
  4042. // GoString returns the string representation
  4043. func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string {
  4044. return s.String()
  4045. }
  4046. // Contains the parameters for SetLoadBalancerPoliciesForBackendServer.
  4047. type SetLoadBalancerPoliciesForBackendServerInput struct {
  4048. _ struct{} `type:"structure"`
  4049. // The port number associated with the EC2 instance.
  4050. //
  4051. // InstancePort is a required field
  4052. InstancePort *int64 `type:"integer" required:"true"`
  4053. // The name of the load balancer.
  4054. //
  4055. // LoadBalancerName is a required field
  4056. LoadBalancerName *string `type:"string" required:"true"`
  4057. // The names of the policies. If the list is empty, then all current polices
  4058. // are removed from the EC2 instance.
  4059. //
  4060. // PolicyNames is a required field
  4061. PolicyNames []*string `type:"list" required:"true"`
  4062. }
  4063. // String returns the string representation
  4064. func (s SetLoadBalancerPoliciesForBackendServerInput) String() string {
  4065. return awsutil.Prettify(s)
  4066. }
  4067. // GoString returns the string representation
  4068. func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string {
  4069. return s.String()
  4070. }
  4071. // Validate inspects the fields of the type to determine if they are valid.
  4072. func (s *SetLoadBalancerPoliciesForBackendServerInput) Validate() error {
  4073. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesForBackendServerInput"}
  4074. if s.InstancePort == nil {
  4075. invalidParams.Add(request.NewErrParamRequired("InstancePort"))
  4076. }
  4077. if s.LoadBalancerName == nil {
  4078. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4079. }
  4080. if s.PolicyNames == nil {
  4081. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  4082. }
  4083. if invalidParams.Len() > 0 {
  4084. return invalidParams
  4085. }
  4086. return nil
  4087. }
  4088. // Contains the output of SetLoadBalancerPoliciesForBackendServer.
  4089. type SetLoadBalancerPoliciesForBackendServerOutput struct {
  4090. _ struct{} `type:"structure"`
  4091. }
  4092. // String returns the string representation
  4093. func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string {
  4094. return awsutil.Prettify(s)
  4095. }
  4096. // GoString returns the string representation
  4097. func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string {
  4098. return s.String()
  4099. }
  4100. // Contains the parameters for SetLoadBalancePoliciesOfListener.
  4101. type SetLoadBalancerPoliciesOfListenerInput struct {
  4102. _ struct{} `type:"structure"`
  4103. // The name of the load balancer.
  4104. //
  4105. // LoadBalancerName is a required field
  4106. LoadBalancerName *string `type:"string" required:"true"`
  4107. // The external port of the load balancer.
  4108. //
  4109. // LoadBalancerPort is a required field
  4110. LoadBalancerPort *int64 `type:"integer" required:"true"`
  4111. // The names of the policies. This list must include all policies to be enabled.
  4112. // If you omit a policy that is currently enabled, it is disabled. If the list
  4113. // is empty, all current policies are disabled.
  4114. //
  4115. // PolicyNames is a required field
  4116. PolicyNames []*string `type:"list" required:"true"`
  4117. }
  4118. // String returns the string representation
  4119. func (s SetLoadBalancerPoliciesOfListenerInput) String() string {
  4120. return awsutil.Prettify(s)
  4121. }
  4122. // GoString returns the string representation
  4123. func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string {
  4124. return s.String()
  4125. }
  4126. // Validate inspects the fields of the type to determine if they are valid.
  4127. func (s *SetLoadBalancerPoliciesOfListenerInput) Validate() error {
  4128. invalidParams := request.ErrInvalidParams{Context: "SetLoadBalancerPoliciesOfListenerInput"}
  4129. if s.LoadBalancerName == nil {
  4130. invalidParams.Add(request.NewErrParamRequired("LoadBalancerName"))
  4131. }
  4132. if s.LoadBalancerPort == nil {
  4133. invalidParams.Add(request.NewErrParamRequired("LoadBalancerPort"))
  4134. }
  4135. if s.PolicyNames == nil {
  4136. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  4137. }
  4138. if invalidParams.Len() > 0 {
  4139. return invalidParams
  4140. }
  4141. return nil
  4142. }
  4143. // Contains the output of SetLoadBalancePoliciesOfListener.
  4144. type SetLoadBalancerPoliciesOfListenerOutput struct {
  4145. _ struct{} `type:"structure"`
  4146. }
  4147. // String returns the string representation
  4148. func (s SetLoadBalancerPoliciesOfListenerOutput) String() string {
  4149. return awsutil.Prettify(s)
  4150. }
  4151. // GoString returns the string representation
  4152. func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string {
  4153. return s.String()
  4154. }
  4155. // Information about a source security group.
  4156. type SourceSecurityGroup struct {
  4157. _ struct{} `type:"structure"`
  4158. // The name of the security group.
  4159. GroupName *string `type:"string"`
  4160. // The owner of the security group.
  4161. OwnerAlias *string `type:"string"`
  4162. }
  4163. // String returns the string representation
  4164. func (s SourceSecurityGroup) String() string {
  4165. return awsutil.Prettify(s)
  4166. }
  4167. // GoString returns the string representation
  4168. func (s SourceSecurityGroup) GoString() string {
  4169. return s.String()
  4170. }
  4171. // Information about a tag.
  4172. type Tag struct {
  4173. _ struct{} `type:"structure"`
  4174. // The key of the tag.
  4175. //
  4176. // Key is a required field
  4177. Key *string `min:"1" type:"string" required:"true"`
  4178. // The value of the tag.
  4179. Value *string `type:"string"`
  4180. }
  4181. // String returns the string representation
  4182. func (s Tag) String() string {
  4183. return awsutil.Prettify(s)
  4184. }
  4185. // GoString returns the string representation
  4186. func (s Tag) GoString() string {
  4187. return s.String()
  4188. }
  4189. // Validate inspects the fields of the type to determine if they are valid.
  4190. func (s *Tag) Validate() error {
  4191. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  4192. if s.Key == nil {
  4193. invalidParams.Add(request.NewErrParamRequired("Key"))
  4194. }
  4195. if s.Key != nil && len(*s.Key) < 1 {
  4196. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  4197. }
  4198. if invalidParams.Len() > 0 {
  4199. return invalidParams
  4200. }
  4201. return nil
  4202. }
  4203. // The tags associated with a load balancer.
  4204. type TagDescription struct {
  4205. _ struct{} `type:"structure"`
  4206. // The name of the load balancer.
  4207. LoadBalancerName *string `type:"string"`
  4208. // The tags.
  4209. Tags []*Tag `min:"1" type:"list"`
  4210. }
  4211. // String returns the string representation
  4212. func (s TagDescription) String() string {
  4213. return awsutil.Prettify(s)
  4214. }
  4215. // GoString returns the string representation
  4216. func (s TagDescription) GoString() string {
  4217. return s.String()
  4218. }
  4219. // The key of a tag.
  4220. type TagKeyOnly struct {
  4221. _ struct{} `type:"structure"`
  4222. // The name of the key.
  4223. Key *string `min:"1" type:"string"`
  4224. }
  4225. // String returns the string representation
  4226. func (s TagKeyOnly) String() string {
  4227. return awsutil.Prettify(s)
  4228. }
  4229. // GoString returns the string representation
  4230. func (s TagKeyOnly) GoString() string {
  4231. return s.String()
  4232. }
  4233. // Validate inspects the fields of the type to determine if they are valid.
  4234. func (s *TagKeyOnly) Validate() error {
  4235. invalidParams := request.ErrInvalidParams{Context: "TagKeyOnly"}
  4236. if s.Key != nil && len(*s.Key) < 1 {
  4237. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  4238. }
  4239. if invalidParams.Len() > 0 {
  4240. return invalidParams
  4241. }
  4242. return nil
  4243. }