api.go 138 KB

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