api.go 98 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101
  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. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opAddTags = "AddTags"
  10. // AddTagsRequest generates a request for the AddTags operation.
  11. func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  12. op := &request.Operation{
  13. Name: opAddTags,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &AddTagsInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &AddTagsOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Adds the specified tags to the specified load balancer. Each load balancer
  26. // can have a maximum of 10 tags.
  27. //
  28. // Each tag consists of a key and an optional value. If a tag with the same
  29. // key is already associated with the load balancer, AddTags updates its value.
  30. //
  31. // For more information, see Tag Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/add-remove-tags.html)
  32. // in the Elastic Load Balancing Developer Guide.
  33. func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  34. req, out := c.AddTagsRequest(input)
  35. err := req.Send()
  36. return out, err
  37. }
  38. const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer"
  39. // ApplySecurityGroupsToLoadBalancerRequest generates a request for the ApplySecurityGroupsToLoadBalancer operation.
  40. func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) {
  41. op := &request.Operation{
  42. Name: opApplySecurityGroupsToLoadBalancer,
  43. HTTPMethod: "POST",
  44. HTTPPath: "/",
  45. }
  46. if input == nil {
  47. input = &ApplySecurityGroupsToLoadBalancerInput{}
  48. }
  49. req = c.newRequest(op, input, output)
  50. output = &ApplySecurityGroupsToLoadBalancerOutput{}
  51. req.Data = output
  52. return
  53. }
  54. // Associates one or more security groups with your load balancer in a virtual
  55. // private cloud (VPC). The specified security groups override the previously
  56. // associated security groups.
  57. //
  58. // For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-groups.html#elb-vpc-security-groups)
  59. // in the Elastic Load Balancing Developer Guide.
  60. func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) {
  61. req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input)
  62. err := req.Send()
  63. return out, err
  64. }
  65. const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets"
  66. // AttachLoadBalancerToSubnetsRequest generates a request for the AttachLoadBalancerToSubnets operation.
  67. func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) {
  68. op := &request.Operation{
  69. Name: opAttachLoadBalancerToSubnets,
  70. HTTPMethod: "POST",
  71. HTTPPath: "/",
  72. }
  73. if input == nil {
  74. input = &AttachLoadBalancerToSubnetsInput{}
  75. }
  76. req = c.newRequest(op, input, output)
  77. output = &AttachLoadBalancerToSubnetsOutput{}
  78. req.Data = output
  79. return
  80. }
  81. // Adds one or more subnets to the set of configured subnets for the specified
  82. // load balancer.
  83. //
  84. // The load balancer evenly distributes requests across all registered subnets.
  85. // For more information, see Add or Remove Subnets for Your Load Balancer in
  86. // a VPC (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-manage-subnets.html)
  87. // in the Elastic Load Balancing Developer Guide.
  88. func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) {
  89. req, out := c.AttachLoadBalancerToSubnetsRequest(input)
  90. err := req.Send()
  91. return out, err
  92. }
  93. const opConfigureHealthCheck = "ConfigureHealthCheck"
  94. // ConfigureHealthCheckRequest generates a request for the ConfigureHealthCheck operation.
  95. func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) {
  96. op := &request.Operation{
  97. Name: opConfigureHealthCheck,
  98. HTTPMethod: "POST",
  99. HTTPPath: "/",
  100. }
  101. if input == nil {
  102. input = &ConfigureHealthCheckInput{}
  103. }
  104. req = c.newRequest(op, input, output)
  105. output = &ConfigureHealthCheckOutput{}
  106. req.Data = output
  107. return
  108. }
  109. // Specifies the health check settings to use when evaluating the health state
  110. // of your back-end instances.
  111. //
  112. // For more information, see Configure Health Checks (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-healthchecks.html)
  113. // in the Elastic Load Balancing Developer Guide.
  114. func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) {
  115. req, out := c.ConfigureHealthCheckRequest(input)
  116. err := req.Send()
  117. return out, err
  118. }
  119. const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy"
  120. // CreateAppCookieStickinessPolicyRequest generates a request for the CreateAppCookieStickinessPolicy operation.
  121. func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) {
  122. op := &request.Operation{
  123. Name: opCreateAppCookieStickinessPolicy,
  124. HTTPMethod: "POST",
  125. HTTPPath: "/",
  126. }
  127. if input == nil {
  128. input = &CreateAppCookieStickinessPolicyInput{}
  129. }
  130. req = c.newRequest(op, input, output)
  131. output = &CreateAppCookieStickinessPolicyOutput{}
  132. req.Data = output
  133. return
  134. }
  135. // Generates a stickiness policy with sticky session lifetimes that follow that
  136. // of an application-generated cookie. This policy can be associated only with
  137. // HTTP/HTTPS listeners.
  138. //
  139. // This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
  140. // except that the lifetime of the special Elastic Load Balancing cookie, AWSELB,
  141. // follows the lifetime of the application-generated cookie specified in the
  142. // policy configuration. The load balancer only inserts a new stickiness cookie
  143. // when the application response includes a new application cookie.
  144. //
  145. // If the application cookie is explicitly removed or expires, the session
  146. // stops being sticky until a new application cookie is issued.
  147. //
  148. // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html#enable-sticky-sessions-application)
  149. // in the Elastic Load Balancing Developer Guide.
  150. func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) {
  151. req, out := c.CreateAppCookieStickinessPolicyRequest(input)
  152. err := req.Send()
  153. return out, err
  154. }
  155. const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy"
  156. // CreateLBCookieStickinessPolicyRequest generates a request for the CreateLBCookieStickinessPolicy operation.
  157. func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) {
  158. op := &request.Operation{
  159. Name: opCreateLBCookieStickinessPolicy,
  160. HTTPMethod: "POST",
  161. HTTPPath: "/",
  162. }
  163. if input == nil {
  164. input = &CreateLBCookieStickinessPolicyInput{}
  165. }
  166. req = c.newRequest(op, input, output)
  167. output = &CreateLBCookieStickinessPolicyOutput{}
  168. req.Data = output
  169. return
  170. }
  171. // Generates a stickiness policy with sticky session lifetimes controlled by
  172. // the lifetime of the browser (user-agent) or a specified expiration period.
  173. // This policy can be associated only with HTTP/HTTPS listeners.
  174. //
  175. // When a load balancer implements this policy, the load balancer uses a special
  176. // cookie to track the back-end server instance for each request. When the load
  177. // balancer receives a request, it first checks to see if this cookie is present
  178. // in the request. If so, the load balancer sends the request to the application
  179. // server specified in the cookie. If not, the load balancer sends the request
  180. // to a server that is chosen based on the existing load-balancing algorithm.
  181. //
  182. // A cookie is inserted into the response for binding subsequent requests from
  183. // the same user to that server. The validity of the cookie is based on the
  184. // cookie expiration time, which is specified in the policy configuration.
  185. //
  186. // For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html#enable-sticky-sessions-duration)
  187. // in the Elastic Load Balancing Developer Guide.
  188. func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) {
  189. req, out := c.CreateLBCookieStickinessPolicyRequest(input)
  190. err := req.Send()
  191. return out, err
  192. }
  193. const opCreateLoadBalancer = "CreateLoadBalancer"
  194. // CreateLoadBalancerRequest generates a request for the CreateLoadBalancer operation.
  195. func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
  196. op := &request.Operation{
  197. Name: opCreateLoadBalancer,
  198. HTTPMethod: "POST",
  199. HTTPPath: "/",
  200. }
  201. if input == nil {
  202. input = &CreateLoadBalancerInput{}
  203. }
  204. req = c.newRequest(op, input, output)
  205. output = &CreateLoadBalancerOutput{}
  206. req.Data = output
  207. return
  208. }
  209. // Creates a load balancer.
  210. //
  211. // If the call completes successfully, a new load balancer is created with
  212. // a unique Domain Name Service (DNS) name. The load balancer receives incoming
  213. // traffic and routes it to the registered instances. For more information,
  214. // see How Elastic Load Balancing Works (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/how-elb-works.html)
  215. // in the Elastic Load Balancing Developer Guide.
  216. //
  217. // You can create up to 20 load balancers per region per account. You can request
  218. // an increase for the number of load balancers for your account. For more information,
  219. // see Elastic Load Balancing Limits (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-limits.html)
  220. // in the Elastic Load Balancing Developer Guide.
  221. func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
  222. req, out := c.CreateLoadBalancerRequest(input)
  223. err := req.Send()
  224. return out, err
  225. }
  226. const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners"
  227. // CreateLoadBalancerListenersRequest generates a request for the CreateLoadBalancerListeners operation.
  228. func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) {
  229. op := &request.Operation{
  230. Name: opCreateLoadBalancerListeners,
  231. HTTPMethod: "POST",
  232. HTTPPath: "/",
  233. }
  234. if input == nil {
  235. input = &CreateLoadBalancerListenersInput{}
  236. }
  237. req = c.newRequest(op, input, output)
  238. output = &CreateLoadBalancerListenersOutput{}
  239. req.Data = output
  240. return
  241. }
  242. // Creates one or more listeners for the specified load balancer. If a listener
  243. // with the specified port does not already exist, it is created; otherwise,
  244. // the properties of the new listener must match the properties of the existing
  245. // listener.
  246. //
  247. // For more information, see Add a Listener to Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/us-add-listener.html)
  248. // in the Elastic Load Balancing Developer Guide.
  249. func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) {
  250. req, out := c.CreateLoadBalancerListenersRequest(input)
  251. err := req.Send()
  252. return out, err
  253. }
  254. const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy"
  255. // CreateLoadBalancerPolicyRequest generates a request for the CreateLoadBalancerPolicy operation.
  256. func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) {
  257. op := &request.Operation{
  258. Name: opCreateLoadBalancerPolicy,
  259. HTTPMethod: "POST",
  260. HTTPPath: "/",
  261. }
  262. if input == nil {
  263. input = &CreateLoadBalancerPolicyInput{}
  264. }
  265. req = c.newRequest(op, input, output)
  266. output = &CreateLoadBalancerPolicyOutput{}
  267. req.Data = output
  268. return
  269. }
  270. // Creates a policy with the specified attributes for the specified load balancer.
  271. //
  272. // Policies are settings that are saved for your load balancer and that can
  273. // be applied to the front-end listener or the back-end application server,
  274. // depending on the policy type.
  275. func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) {
  276. req, out := c.CreateLoadBalancerPolicyRequest(input)
  277. err := req.Send()
  278. return out, err
  279. }
  280. const opDeleteLoadBalancer = "DeleteLoadBalancer"
  281. // DeleteLoadBalancerRequest generates a request for the DeleteLoadBalancer operation.
  282. func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
  283. op := &request.Operation{
  284. Name: opDeleteLoadBalancer,
  285. HTTPMethod: "POST",
  286. HTTPPath: "/",
  287. }
  288. if input == nil {
  289. input = &DeleteLoadBalancerInput{}
  290. }
  291. req = c.newRequest(op, input, output)
  292. output = &DeleteLoadBalancerOutput{}
  293. req.Data = output
  294. return
  295. }
  296. // Deletes the specified load balancer.
  297. //
  298. // If you are attempting to recreate a load balancer, you must reconfigure
  299. // all settings. The DNS name associated with a deleted load balancer are no
  300. // longer usable. The name and associated DNS record of the deleted load balancer
  301. // no longer exist and traffic sent to any of its IP addresses is no longer
  302. // delivered to back-end instances.
  303. //
  304. // If the load balancer does not exist or has already been deleted, the call
  305. // to DeleteLoadBalancer still succeeds.
  306. func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
  307. req, out := c.DeleteLoadBalancerRequest(input)
  308. err := req.Send()
  309. return out, err
  310. }
  311. const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners"
  312. // DeleteLoadBalancerListenersRequest generates a request for the DeleteLoadBalancerListeners operation.
  313. func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) {
  314. op := &request.Operation{
  315. Name: opDeleteLoadBalancerListeners,
  316. HTTPMethod: "POST",
  317. HTTPPath: "/",
  318. }
  319. if input == nil {
  320. input = &DeleteLoadBalancerListenersInput{}
  321. }
  322. req = c.newRequest(op, input, output)
  323. output = &DeleteLoadBalancerListenersOutput{}
  324. req.Data = output
  325. return
  326. }
  327. // Deletes the specified listeners from the specified load balancer.
  328. func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) {
  329. req, out := c.DeleteLoadBalancerListenersRequest(input)
  330. err := req.Send()
  331. return out, err
  332. }
  333. const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy"
  334. // DeleteLoadBalancerPolicyRequest generates a request for the DeleteLoadBalancerPolicy operation.
  335. func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) {
  336. op := &request.Operation{
  337. Name: opDeleteLoadBalancerPolicy,
  338. HTTPMethod: "POST",
  339. HTTPPath: "/",
  340. }
  341. if input == nil {
  342. input = &DeleteLoadBalancerPolicyInput{}
  343. }
  344. req = c.newRequest(op, input, output)
  345. output = &DeleteLoadBalancerPolicyOutput{}
  346. req.Data = output
  347. return
  348. }
  349. // Deletes the specified policy from the specified load balancer. This policy
  350. // must not be enabled for any listeners.
  351. func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) {
  352. req, out := c.DeleteLoadBalancerPolicyRequest(input)
  353. err := req.Send()
  354. return out, err
  355. }
  356. const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalancer"
  357. // DeregisterInstancesFromLoadBalancerRequest generates a request for the DeregisterInstancesFromLoadBalancer operation.
  358. func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) {
  359. op := &request.Operation{
  360. Name: opDeregisterInstancesFromLoadBalancer,
  361. HTTPMethod: "POST",
  362. HTTPPath: "/",
  363. }
  364. if input == nil {
  365. input = &DeregisterInstancesFromLoadBalancerInput{}
  366. }
  367. req = c.newRequest(op, input, output)
  368. output = &DeregisterInstancesFromLoadBalancerOutput{}
  369. req.Data = output
  370. return
  371. }
  372. // Deregisters the specified instances from the specified load balancer. After
  373. // the instance is deregistered, it no longer receives traffic from the load
  374. // balancer.
  375. //
  376. // You can use DescribeLoadBalancers to verify that the instance is deregistered
  377. // from the load balancer.
  378. //
  379. // For more information, see Deregister and Register Amazon EC2 Instances (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html)
  380. // in the Elastic Load Balancing Developer Guide.
  381. func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) {
  382. req, out := c.DeregisterInstancesFromLoadBalancerRequest(input)
  383. err := req.Send()
  384. return out, err
  385. }
  386. const opDescribeInstanceHealth = "DescribeInstanceHealth"
  387. // DescribeInstanceHealthRequest generates a request for the DescribeInstanceHealth operation.
  388. func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) {
  389. op := &request.Operation{
  390. Name: opDescribeInstanceHealth,
  391. HTTPMethod: "POST",
  392. HTTPPath: "/",
  393. }
  394. if input == nil {
  395. input = &DescribeInstanceHealthInput{}
  396. }
  397. req = c.newRequest(op, input, output)
  398. output = &DescribeInstanceHealthOutput{}
  399. req.Data = output
  400. return
  401. }
  402. // Describes the state of the specified instances registered with the specified
  403. // load balancer. If no instances are specified, the call describes the state
  404. // of all instances registered with the load balancer, not including any terminated
  405. // instances.
  406. func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) {
  407. req, out := c.DescribeInstanceHealthRequest(input)
  408. err := req.Send()
  409. return out, err
  410. }
  411. const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
  412. // DescribeLoadBalancerAttributesRequest generates a request for the DescribeLoadBalancerAttributes operation.
  413. func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
  414. op := &request.Operation{
  415. Name: opDescribeLoadBalancerAttributes,
  416. HTTPMethod: "POST",
  417. HTTPPath: "/",
  418. }
  419. if input == nil {
  420. input = &DescribeLoadBalancerAttributesInput{}
  421. }
  422. req = c.newRequest(op, input, output)
  423. output = &DescribeLoadBalancerAttributesOutput{}
  424. req.Data = output
  425. return
  426. }
  427. // Describes the attributes for the specified load balancer.
  428. func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
  429. req, out := c.DescribeLoadBalancerAttributesRequest(input)
  430. err := req.Send()
  431. return out, err
  432. }
  433. const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies"
  434. // DescribeLoadBalancerPoliciesRequest generates a request for the DescribeLoadBalancerPolicies operation.
  435. func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) {
  436. op := &request.Operation{
  437. Name: opDescribeLoadBalancerPolicies,
  438. HTTPMethod: "POST",
  439. HTTPPath: "/",
  440. }
  441. if input == nil {
  442. input = &DescribeLoadBalancerPoliciesInput{}
  443. }
  444. req = c.newRequest(op, input, output)
  445. output = &DescribeLoadBalancerPoliciesOutput{}
  446. req.Data = output
  447. return
  448. }
  449. // Describes the specified policies.
  450. //
  451. // If you specify a load balancer name, the action returns the descriptions
  452. // of all policies created for the load balancer. If you specify a policy name
  453. // associated with your load balancer, the action returns the description of
  454. // that policy. If you don't specify a load balancer name, the action returns
  455. // descriptions of the specified sample policies, or descriptions of all sample
  456. // policies. The names of the sample policies have the ELBSample- prefix.
  457. func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) {
  458. req, out := c.DescribeLoadBalancerPoliciesRequest(input)
  459. err := req.Send()
  460. return out, err
  461. }
  462. const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes"
  463. // DescribeLoadBalancerPolicyTypesRequest generates a request for the DescribeLoadBalancerPolicyTypes operation.
  464. func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) {
  465. op := &request.Operation{
  466. Name: opDescribeLoadBalancerPolicyTypes,
  467. HTTPMethod: "POST",
  468. HTTPPath: "/",
  469. }
  470. if input == nil {
  471. input = &DescribeLoadBalancerPolicyTypesInput{}
  472. }
  473. req = c.newRequest(op, input, output)
  474. output = &DescribeLoadBalancerPolicyTypesOutput{}
  475. req.Data = output
  476. return
  477. }
  478. // Describes the specified load balancer policy types.
  479. //
  480. // You can use these policy types with CreateLoadBalancerPolicy to create policy
  481. // configurations for a load balancer.
  482. func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) {
  483. req, out := c.DescribeLoadBalancerPolicyTypesRequest(input)
  484. err := req.Send()
  485. return out, err
  486. }
  487. const opDescribeLoadBalancers = "DescribeLoadBalancers"
  488. // DescribeLoadBalancersRequest generates a request for the DescribeLoadBalancers operation.
  489. func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
  490. op := &request.Operation{
  491. Name: opDescribeLoadBalancers,
  492. HTTPMethod: "POST",
  493. HTTPPath: "/",
  494. Paginator: &request.Paginator{
  495. InputTokens: []string{"Marker"},
  496. OutputTokens: []string{"NextMarker"},
  497. LimitToken: "",
  498. TruncationToken: "",
  499. },
  500. }
  501. if input == nil {
  502. input = &DescribeLoadBalancersInput{}
  503. }
  504. req = c.newRequest(op, input, output)
  505. output = &DescribeLoadBalancersOutput{}
  506. req.Data = output
  507. return
  508. }
  509. // Describes the specified the load balancers. If no load balancers are specified,
  510. // the call describes all of your load balancers.
  511. func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
  512. req, out := c.DescribeLoadBalancersRequest(input)
  513. err := req.Send()
  514. return out, err
  515. }
  516. func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error {
  517. page, _ := c.DescribeLoadBalancersRequest(input)
  518. return page.EachPage(func(p interface{}, lastPage bool) bool {
  519. return fn(p.(*DescribeLoadBalancersOutput), lastPage)
  520. })
  521. }
  522. const opDescribeTags = "DescribeTags"
  523. // DescribeTagsRequest generates a request for the DescribeTags operation.
  524. func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  525. op := &request.Operation{
  526. Name: opDescribeTags,
  527. HTTPMethod: "POST",
  528. HTTPPath: "/",
  529. }
  530. if input == nil {
  531. input = &DescribeTagsInput{}
  532. }
  533. req = c.newRequest(op, input, output)
  534. output = &DescribeTagsOutput{}
  535. req.Data = output
  536. return
  537. }
  538. // Describes the tags associated with the specified load balancers.
  539. func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  540. req, out := c.DescribeTagsRequest(input)
  541. err := req.Send()
  542. return out, err
  543. }
  544. const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
  545. // DetachLoadBalancerFromSubnetsRequest generates a request for the DetachLoadBalancerFromSubnets operation.
  546. func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
  547. op := &request.Operation{
  548. Name: opDetachLoadBalancerFromSubnets,
  549. HTTPMethod: "POST",
  550. HTTPPath: "/",
  551. }
  552. if input == nil {
  553. input = &DetachLoadBalancerFromSubnetsInput{}
  554. }
  555. req = c.newRequest(op, input, output)
  556. output = &DetachLoadBalancerFromSubnetsOutput{}
  557. req.Data = output
  558. return
  559. }
  560. // Removes the specified subnets from the set of configured subnets for the
  561. // load balancer.
  562. //
  563. // After a subnet is removed, all EC2 instances registered with the load balancer
  564. // in the removed subnet go into the OutOfService state. Then, the load balancer
  565. // balances the traffic among the remaining routable subnets.
  566. func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) {
  567. req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
  568. err := req.Send()
  569. return out, err
  570. }
  571. const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
  572. // DisableAvailabilityZonesForLoadBalancerRequest generates a request for the DisableAvailabilityZonesForLoadBalancer operation.
  573. func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
  574. op := &request.Operation{
  575. Name: opDisableAvailabilityZonesForLoadBalancer,
  576. HTTPMethod: "POST",
  577. HTTPPath: "/",
  578. }
  579. if input == nil {
  580. input = &DisableAvailabilityZonesForLoadBalancerInput{}
  581. }
  582. req = c.newRequest(op, input, output)
  583. output = &DisableAvailabilityZonesForLoadBalancerOutput{}
  584. req.Data = output
  585. return
  586. }
  587. // Removes the specified Availability Zones from the set of Availability Zones
  588. // for the specified load balancer.
  589. //
  590. // There must be at least one Availability Zone registered with a load balancer
  591. // at all times. After an Availability Zone is removed, all instances registered
  592. // with the load balancer that are in the removed Availability Zone go into
  593. // the OutOfService state. Then, the load balancer attempts to equally balance
  594. // the traffic among its remaining Availability Zones.
  595. //
  596. // For more information, see Disable an Availability Zone from a Load-Balanced
  597. // Application (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_ShrinkLBApp04.html)
  598. // in the Elastic Load Balancing Developer Guide.
  599. func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
  600. req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
  601. err := req.Send()
  602. return out, err
  603. }
  604. const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
  605. // EnableAvailabilityZonesForLoadBalancerRequest generates a request for the EnableAvailabilityZonesForLoadBalancer operation.
  606. func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
  607. op := &request.Operation{
  608. Name: opEnableAvailabilityZonesForLoadBalancer,
  609. HTTPMethod: "POST",
  610. HTTPPath: "/",
  611. }
  612. if input == nil {
  613. input = &EnableAvailabilityZonesForLoadBalancerInput{}
  614. }
  615. req = c.newRequest(op, input, output)
  616. output = &EnableAvailabilityZonesForLoadBalancerOutput{}
  617. req.Data = output
  618. return
  619. }
  620. // Adds the specified Availability Zones to the set of Availability Zones for
  621. // the specified load balancer.
  622. //
  623. // The load balancer evenly distributes requests across all its registered
  624. // Availability Zones that contain instances.
  625. //
  626. // For more information, see Add Availability Zone (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_AddLBAvailabilityZone.html)
  627. // in the Elastic Load Balancing Developer Guide.
  628. func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
  629. req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
  630. err := req.Send()
  631. return out, err
  632. }
  633. const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
  634. // ModifyLoadBalancerAttributesRequest generates a request for the ModifyLoadBalancerAttributes operation.
  635. func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
  636. op := &request.Operation{
  637. Name: opModifyLoadBalancerAttributes,
  638. HTTPMethod: "POST",
  639. HTTPPath: "/",
  640. }
  641. if input == nil {
  642. input = &ModifyLoadBalancerAttributesInput{}
  643. }
  644. req = c.newRequest(op, input, output)
  645. output = &ModifyLoadBalancerAttributesOutput{}
  646. req.Data = output
  647. return
  648. }
  649. // Modifies the attributes of the specified load balancer.
  650. //
  651. // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining,
  652. // and CrossZoneLoadBalancing by either enabling or disabling them. Or, you
  653. // can modify the load balancer attribute ConnectionSettings by specifying an
  654. // idle connection timeout value for your load balancer.
  655. //
  656. // For more information, see the following in the Elastic Load Balancing Developer
  657. // Guide:
  658. //
  659. // Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#request-routing)
  660. // Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
  661. // Access Logs (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/access-log-collection.html)
  662. // Idle Connection Timeout (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#idle-timeout)
  663. func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
  664. req, out := c.ModifyLoadBalancerAttributesRequest(input)
  665. err := req.Send()
  666. return out, err
  667. }
  668. const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
  669. // RegisterInstancesWithLoadBalancerRequest generates a request for the RegisterInstancesWithLoadBalancer operation.
  670. func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
  671. op := &request.Operation{
  672. Name: opRegisterInstancesWithLoadBalancer,
  673. HTTPMethod: "POST",
  674. HTTPPath: "/",
  675. }
  676. if input == nil {
  677. input = &RegisterInstancesWithLoadBalancerInput{}
  678. }
  679. req = c.newRequest(op, input, output)
  680. output = &RegisterInstancesWithLoadBalancerOutput{}
  681. req.Data = output
  682. return
  683. }
  684. // Adds the specified instances to the specified load balancer.
  685. //
  686. // The instance must be a running instance in the same network as the load
  687. // balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances
  688. // and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic
  689. // instances to that VPC and then register the linked EC2-Classic instances
  690. // with the load balancer in the VPC.
  691. //
  692. // Note that RegisterInstanceWithLoadBalancer completes when the request has
  693. // been registered. Instance registration happens shortly afterwards. To check
  694. // the state of the registered instances, use DescribeLoadBalancers or DescribeInstanceHealth.
  695. //
  696. // After the instance is registered, it starts receiving traffic and requests
  697. // from the load balancer. Any instance that is not in one of the Availability
  698. // Zones registered for the load balancer is moved to the OutOfService state.
  699. // If an Availability Zone is added to the load balancer later, any instances
  700. // registered with the load balancer move to the InService state.
  701. //
  702. // If you stop an instance registered with a load balancer and then start it,
  703. // the IP addresses associated with the instance changes. Elastic Load Balancing
  704. // cannot recognize the new IP address, which prevents it from routing traffic
  705. // to the instances. We recommend that you use the following sequence: stop
  706. // the instance, deregister the instance, start the instance, and then register
  707. // the instance. To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
  708. //
  709. // For more information, see Deregister and Register EC2 Instances (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html)
  710. // in the Elastic Load Balancing Developer Guide.
  711. func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) {
  712. req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
  713. err := req.Send()
  714. return out, err
  715. }
  716. const opRemoveTags = "RemoveTags"
  717. // RemoveTagsRequest generates a request for the RemoveTags operation.
  718. func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
  719. op := &request.Operation{
  720. Name: opRemoveTags,
  721. HTTPMethod: "POST",
  722. HTTPPath: "/",
  723. }
  724. if input == nil {
  725. input = &RemoveTagsInput{}
  726. }
  727. req = c.newRequest(op, input, output)
  728. output = &RemoveTagsOutput{}
  729. req.Data = output
  730. return
  731. }
  732. // Removes one or more tags from the specified load balancer.
  733. func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
  734. req, out := c.RemoveTagsRequest(input)
  735. err := req.Send()
  736. return out, err
  737. }
  738. const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
  739. // SetLoadBalancerListenerSSLCertificateRequest generates a request for the SetLoadBalancerListenerSSLCertificate operation.
  740. func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
  741. op := &request.Operation{
  742. Name: opSetLoadBalancerListenerSSLCertificate,
  743. HTTPMethod: "POST",
  744. HTTPPath: "/",
  745. }
  746. if input == nil {
  747. input = &SetLoadBalancerListenerSSLCertificateInput{}
  748. }
  749. req = c.newRequest(op, input, output)
  750. output = &SetLoadBalancerListenerSSLCertificateOutput{}
  751. req.Data = output
  752. return
  753. }
  754. // Sets the certificate that terminates the specified listener's SSL connections.
  755. // The specified certificate replaces any prior certificate that was used on
  756. // the same load balancer and port.
  757. //
  758. // For more information about updating your SSL certificate, see Updating an
  759. // SSL Certificate for a Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_UpdatingLoadBalancerSSL.html)
  760. // in the Elastic Load Balancing Developer Guide.
  761. func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
  762. req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
  763. err := req.Send()
  764. return out, err
  765. }
  766. const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
  767. // SetLoadBalancerPoliciesForBackendServerRequest generates a request for the SetLoadBalancerPoliciesForBackendServer operation.
  768. func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
  769. op := &request.Operation{
  770. Name: opSetLoadBalancerPoliciesForBackendServer,
  771. HTTPMethod: "POST",
  772. HTTPPath: "/",
  773. }
  774. if input == nil {
  775. input = &SetLoadBalancerPoliciesForBackendServerInput{}
  776. }
  777. req = c.newRequest(op, input, output)
  778. output = &SetLoadBalancerPoliciesForBackendServerOutput{}
  779. req.Data = output
  780. return
  781. }
  782. // Replaces the set of policies associated with the specified port on which
  783. // the back-end server is listening with a new set of policies. At this time,
  784. // only the back-end server authentication policy type can be applied to the
  785. // back-end ports; this policy type is composed of multiple public key policies.
  786. //
  787. // Each time you use SetLoadBalancerPoliciesForBackendServer to enable the
  788. // policies, use the PolicyNames parameter to list the policies that you want
  789. // to enable.
  790. //
  791. // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify
  792. // that the policy is associated with the back-end server.
  793. func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
  794. req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
  795. err := req.Send()
  796. return out, err
  797. }
  798. const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
  799. // SetLoadBalancerPoliciesOfListenerRequest generates a request for the SetLoadBalancerPoliciesOfListener operation.
  800. func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
  801. op := &request.Operation{
  802. Name: opSetLoadBalancerPoliciesOfListener,
  803. HTTPMethod: "POST",
  804. HTTPPath: "/",
  805. }
  806. if input == nil {
  807. input = &SetLoadBalancerPoliciesOfListenerInput{}
  808. }
  809. req = c.newRequest(op, input, output)
  810. output = &SetLoadBalancerPoliciesOfListenerOutput{}
  811. req.Data = output
  812. return
  813. }
  814. // Associates, updates, or disables a policy with a listener for the specified
  815. // load balancer. You can associate multiple policies with a listener.
  816. func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
  817. req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
  818. err := req.Send()
  819. return out, err
  820. }
  821. // Information about the AccessLog attribute.
  822. type AccessLog struct {
  823. // The interval for publishing the access logs. You can specify an interval
  824. // of either 5 minutes or 60 minutes.
  825. //
  826. // Default: 60 minutes
  827. EmitInterval *int64 `type:"integer"`
  828. // Specifies whether access log is enabled for the load balancer.
  829. Enabled *bool `type:"boolean" required:"true"`
  830. // The name of the Amazon S3 bucket where the access logs are stored.
  831. S3BucketName *string `type:"string"`
  832. // The logical hierarchy you created for your Amazon S3 bucket, for example
  833. // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
  834. // the root level of the bucket.
  835. S3BucketPrefix *string `type:"string"`
  836. metadataAccessLog `json:"-" xml:"-"`
  837. }
  838. type metadataAccessLog struct {
  839. SDKShapeTraits bool `type:"structure"`
  840. }
  841. // String returns the string representation
  842. func (s AccessLog) String() string {
  843. return awsutil.Prettify(s)
  844. }
  845. // GoString returns the string representation
  846. func (s AccessLog) GoString() string {
  847. return s.String()
  848. }
  849. type AddTagsInput struct {
  850. // The name of the load balancer. You can specify one load balancer only.
  851. LoadBalancerNames []*string `type:"list" required:"true"`
  852. // The tags.
  853. Tags []*Tag `type:"list" required:"true"`
  854. metadataAddTagsInput `json:"-" xml:"-"`
  855. }
  856. type metadataAddTagsInput struct {
  857. SDKShapeTraits bool `type:"structure"`
  858. }
  859. // String returns the string representation
  860. func (s AddTagsInput) String() string {
  861. return awsutil.Prettify(s)
  862. }
  863. // GoString returns the string representation
  864. func (s AddTagsInput) GoString() string {
  865. return s.String()
  866. }
  867. type AddTagsOutput struct {
  868. metadataAddTagsOutput `json:"-" xml:"-"`
  869. }
  870. type metadataAddTagsOutput struct {
  871. SDKShapeTraits bool `type:"structure"`
  872. }
  873. // String returns the string representation
  874. func (s AddTagsOutput) String() string {
  875. return awsutil.Prettify(s)
  876. }
  877. // GoString returns the string representation
  878. func (s AddTagsOutput) GoString() string {
  879. return s.String()
  880. }
  881. // This data type is reserved.
  882. type AdditionalAttribute struct {
  883. // This parameter is reserved.
  884. Key *string `type:"string"`
  885. // This parameter is reserved.
  886. Value *string `type:"string"`
  887. metadataAdditionalAttribute `json:"-" xml:"-"`
  888. }
  889. type metadataAdditionalAttribute struct {
  890. SDKShapeTraits bool `type:"structure"`
  891. }
  892. // String returns the string representation
  893. func (s AdditionalAttribute) String() string {
  894. return awsutil.Prettify(s)
  895. }
  896. // GoString returns the string representation
  897. func (s AdditionalAttribute) GoString() string {
  898. return s.String()
  899. }
  900. // Information about a policy for application-controlled session stickiness.
  901. type AppCookieStickinessPolicy struct {
  902. // The name of the application cookie used for stickiness.
  903. CookieName *string `type:"string"`
  904. // The mnemonic name for the policy being created. The name must be unique within
  905. // a set of policies for this load balancer.
  906. PolicyName *string `type:"string"`
  907. metadataAppCookieStickinessPolicy `json:"-" xml:"-"`
  908. }
  909. type metadataAppCookieStickinessPolicy struct {
  910. SDKShapeTraits bool `type:"structure"`
  911. }
  912. // String returns the string representation
  913. func (s AppCookieStickinessPolicy) String() string {
  914. return awsutil.Prettify(s)
  915. }
  916. // GoString returns the string representation
  917. func (s AppCookieStickinessPolicy) GoString() string {
  918. return s.String()
  919. }
  920. type ApplySecurityGroupsToLoadBalancerInput struct {
  921. // The name of the load balancer.
  922. LoadBalancerName *string `type:"string" required:"true"`
  923. // The IDs of the security groups to associate with the load balancer. Note
  924. // that you cannot specify the name of the security group.
  925. SecurityGroups []*string `type:"list" required:"true"`
  926. metadataApplySecurityGroupsToLoadBalancerInput `json:"-" xml:"-"`
  927. }
  928. type metadataApplySecurityGroupsToLoadBalancerInput struct {
  929. SDKShapeTraits bool `type:"structure"`
  930. }
  931. // String returns the string representation
  932. func (s ApplySecurityGroupsToLoadBalancerInput) String() string {
  933. return awsutil.Prettify(s)
  934. }
  935. // GoString returns the string representation
  936. func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string {
  937. return s.String()
  938. }
  939. type ApplySecurityGroupsToLoadBalancerOutput struct {
  940. // The IDs of the security groups associated with the load balancer.
  941. SecurityGroups []*string `type:"list"`
  942. metadataApplySecurityGroupsToLoadBalancerOutput `json:"-" xml:"-"`
  943. }
  944. type metadataApplySecurityGroupsToLoadBalancerOutput struct {
  945. SDKShapeTraits bool `type:"structure"`
  946. }
  947. // String returns the string representation
  948. func (s ApplySecurityGroupsToLoadBalancerOutput) String() string {
  949. return awsutil.Prettify(s)
  950. }
  951. // GoString returns the string representation
  952. func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string {
  953. return s.String()
  954. }
  955. type AttachLoadBalancerToSubnetsInput struct {
  956. // The name of the load balancer.
  957. LoadBalancerName *string `type:"string" required:"true"`
  958. // The IDs of the subnets to add for the load balancer. You can add only one
  959. // subnet per Availability Zone.
  960. Subnets []*string `type:"list" required:"true"`
  961. metadataAttachLoadBalancerToSubnetsInput `json:"-" xml:"-"`
  962. }
  963. type metadataAttachLoadBalancerToSubnetsInput struct {
  964. SDKShapeTraits bool `type:"structure"`
  965. }
  966. // String returns the string representation
  967. func (s AttachLoadBalancerToSubnetsInput) String() string {
  968. return awsutil.Prettify(s)
  969. }
  970. // GoString returns the string representation
  971. func (s AttachLoadBalancerToSubnetsInput) GoString() string {
  972. return s.String()
  973. }
  974. type AttachLoadBalancerToSubnetsOutput struct {
  975. // The IDs of the subnets attached to the load balancer.
  976. Subnets []*string `type:"list"`
  977. metadataAttachLoadBalancerToSubnetsOutput `json:"-" xml:"-"`
  978. }
  979. type metadataAttachLoadBalancerToSubnetsOutput struct {
  980. SDKShapeTraits bool `type:"structure"`
  981. }
  982. // String returns the string representation
  983. func (s AttachLoadBalancerToSubnetsOutput) String() string {
  984. return awsutil.Prettify(s)
  985. }
  986. // GoString returns the string representation
  987. func (s AttachLoadBalancerToSubnetsOutput) GoString() string {
  988. return s.String()
  989. }
  990. // Information about the configuration of a back-end server.
  991. type BackendServerDescription struct {
  992. // The port on which the back-end server is listening.
  993. InstancePort *int64 `type:"integer"`
  994. // The names of the policies enabled for the back-end server.
  995. PolicyNames []*string `type:"list"`
  996. metadataBackendServerDescription `json:"-" xml:"-"`
  997. }
  998. type metadataBackendServerDescription struct {
  999. SDKShapeTraits bool `type:"structure"`
  1000. }
  1001. // String returns the string representation
  1002. func (s BackendServerDescription) String() string {
  1003. return awsutil.Prettify(s)
  1004. }
  1005. // GoString returns the string representation
  1006. func (s BackendServerDescription) GoString() string {
  1007. return s.String()
  1008. }
  1009. type ConfigureHealthCheckInput struct {
  1010. // The configuration information for the new health check.
  1011. HealthCheck *HealthCheck `type:"structure" required:"true"`
  1012. // The name of the load balancer.
  1013. LoadBalancerName *string `type:"string" required:"true"`
  1014. metadataConfigureHealthCheckInput `json:"-" xml:"-"`
  1015. }
  1016. type metadataConfigureHealthCheckInput struct {
  1017. SDKShapeTraits bool `type:"structure"`
  1018. }
  1019. // String returns the string representation
  1020. func (s ConfigureHealthCheckInput) String() string {
  1021. return awsutil.Prettify(s)
  1022. }
  1023. // GoString returns the string representation
  1024. func (s ConfigureHealthCheckInput) GoString() string {
  1025. return s.String()
  1026. }
  1027. type ConfigureHealthCheckOutput struct {
  1028. // The updated health check.
  1029. HealthCheck *HealthCheck `type:"structure"`
  1030. metadataConfigureHealthCheckOutput `json:"-" xml:"-"`
  1031. }
  1032. type metadataConfigureHealthCheckOutput struct {
  1033. SDKShapeTraits bool `type:"structure"`
  1034. }
  1035. // String returns the string representation
  1036. func (s ConfigureHealthCheckOutput) String() string {
  1037. return awsutil.Prettify(s)
  1038. }
  1039. // GoString returns the string representation
  1040. func (s ConfigureHealthCheckOutput) GoString() string {
  1041. return s.String()
  1042. }
  1043. // Information about the ConnectionDraining attribute.
  1044. type ConnectionDraining struct {
  1045. // Specifies whether connection draining is enabled for the load balancer.
  1046. Enabled *bool `type:"boolean" required:"true"`
  1047. // The maximum time, in seconds, to keep the existing connections open before
  1048. // deregistering the instances.
  1049. Timeout *int64 `type:"integer"`
  1050. metadataConnectionDraining `json:"-" xml:"-"`
  1051. }
  1052. type metadataConnectionDraining struct {
  1053. SDKShapeTraits bool `type:"structure"`
  1054. }
  1055. // String returns the string representation
  1056. func (s ConnectionDraining) String() string {
  1057. return awsutil.Prettify(s)
  1058. }
  1059. // GoString returns the string representation
  1060. func (s ConnectionDraining) GoString() string {
  1061. return s.String()
  1062. }
  1063. // Information about the ConnectionSettings attribute.
  1064. type ConnectionSettings struct {
  1065. // The time, in seconds, that the connection is allowed to be idle (no data
  1066. // has been sent over the connection) before it is closed by the load balancer.
  1067. IdleTimeout *int64 `type:"integer" required:"true"`
  1068. metadataConnectionSettings `json:"-" xml:"-"`
  1069. }
  1070. type metadataConnectionSettings struct {
  1071. SDKShapeTraits bool `type:"structure"`
  1072. }
  1073. // String returns the string representation
  1074. func (s ConnectionSettings) String() string {
  1075. return awsutil.Prettify(s)
  1076. }
  1077. // GoString returns the string representation
  1078. func (s ConnectionSettings) GoString() string {
  1079. return s.String()
  1080. }
  1081. type CreateAppCookieStickinessPolicyInput struct {
  1082. // The name of the application cookie used for stickiness.
  1083. CookieName *string `type:"string" required:"true"`
  1084. // The name of the load balancer.
  1085. LoadBalancerName *string `type:"string" required:"true"`
  1086. // The name of the policy being created. This name must be unique within the
  1087. // set of policies for this load balancer.
  1088. PolicyName *string `type:"string" required:"true"`
  1089. metadataCreateAppCookieStickinessPolicyInput `json:"-" xml:"-"`
  1090. }
  1091. type metadataCreateAppCookieStickinessPolicyInput struct {
  1092. SDKShapeTraits bool `type:"structure"`
  1093. }
  1094. // String returns the string representation
  1095. func (s CreateAppCookieStickinessPolicyInput) String() string {
  1096. return awsutil.Prettify(s)
  1097. }
  1098. // GoString returns the string representation
  1099. func (s CreateAppCookieStickinessPolicyInput) GoString() string {
  1100. return s.String()
  1101. }
  1102. type CreateAppCookieStickinessPolicyOutput struct {
  1103. metadataCreateAppCookieStickinessPolicyOutput `json:"-" xml:"-"`
  1104. }
  1105. type metadataCreateAppCookieStickinessPolicyOutput struct {
  1106. SDKShapeTraits bool `type:"structure"`
  1107. }
  1108. // String returns the string representation
  1109. func (s CreateAppCookieStickinessPolicyOutput) String() string {
  1110. return awsutil.Prettify(s)
  1111. }
  1112. // GoString returns the string representation
  1113. func (s CreateAppCookieStickinessPolicyOutput) GoString() string {
  1114. return s.String()
  1115. }
  1116. type CreateLBCookieStickinessPolicyInput struct {
  1117. // The time period, in seconds, after which the cookie should be considered
  1118. // stale. If you do not specify this parameter, the sticky session lasts for
  1119. // the duration of the browser session.
  1120. CookieExpirationPeriod *int64 `type:"long"`
  1121. // The name of the load balancer.
  1122. LoadBalancerName *string `type:"string" required:"true"`
  1123. // The name of the policy being created. This name must be unique within the
  1124. // set of policies for this load balancer.
  1125. PolicyName *string `type:"string" required:"true"`
  1126. metadataCreateLBCookieStickinessPolicyInput `json:"-" xml:"-"`
  1127. }
  1128. type metadataCreateLBCookieStickinessPolicyInput struct {
  1129. SDKShapeTraits bool `type:"structure"`
  1130. }
  1131. // String returns the string representation
  1132. func (s CreateLBCookieStickinessPolicyInput) String() string {
  1133. return awsutil.Prettify(s)
  1134. }
  1135. // GoString returns the string representation
  1136. func (s CreateLBCookieStickinessPolicyInput) GoString() string {
  1137. return s.String()
  1138. }
  1139. type CreateLBCookieStickinessPolicyOutput struct {
  1140. metadataCreateLBCookieStickinessPolicyOutput `json:"-" xml:"-"`
  1141. }
  1142. type metadataCreateLBCookieStickinessPolicyOutput struct {
  1143. SDKShapeTraits bool `type:"structure"`
  1144. }
  1145. // String returns the string representation
  1146. func (s CreateLBCookieStickinessPolicyOutput) String() string {
  1147. return awsutil.Prettify(s)
  1148. }
  1149. // GoString returns the string representation
  1150. func (s CreateLBCookieStickinessPolicyOutput) GoString() string {
  1151. return s.String()
  1152. }
  1153. type CreateLoadBalancerInput struct {
  1154. // One or more Availability Zones from the same region as the load balancer.
  1155. // Traffic is equally distributed across all specified Availability Zones.
  1156. //
  1157. // You must specify at least one Availability Zone.
  1158. //
  1159. // You can add more Availability Zones after you create the load balancer using
  1160. // EnableAvailabilityZonesForLoadBalancer.
  1161. AvailabilityZones []*string `type:"list"`
  1162. // The listeners.
  1163. //
  1164. // For more information, see Listeners for Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
  1165. // in the Elastic Load Balancing Developer Guide.
  1166. Listeners []*Listener `type:"list" required:"true"`
  1167. // The name of the load balancer.
  1168. //
  1169. // This name must be unique within your AWS account, must have a maximum of
  1170. // 32 characters, must contain only alphanumeric characters or hyphens, and
  1171. // cannot begin or end with a hyphen.
  1172. LoadBalancerName *string `type:"string" required:"true"`
  1173. // The type of a load balancer. Valid only for load balancers in a VPC.
  1174. //
  1175. // By default, Elastic Load Balancing creates an Internet-facing load balancer
  1176. // with a publicly resolvable DNS name, which resolves to public IP addresses.
  1177. // For more information about Internet-facing and Internal load balancers, see
  1178. // Internet-facing and Internal Load Balancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/vpc-loadbalancer-types.html)
  1179. // in the Elastic Load Balancing Developer Guide.
  1180. //
  1181. // Specify internal to create an internal load balancer with a DNS name that
  1182. // resolves to private IP addresses.
  1183. Scheme *string `type:"string"`
  1184. // The IDs of the security groups to assign to the load balancer.
  1185. SecurityGroups []*string `type:"list"`
  1186. // The IDs of the subnets in your VPC to attach to the load balancer. Specify
  1187. // one subnet per Availability Zone specified in AvailabilityZones.
  1188. Subnets []*string `type:"list"`
  1189. // A list of tags to assign to the load balancer.
  1190. //
  1191. // For more information about tagging your load balancer, see Tagging (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#tagging-elb)
  1192. // in the Elastic Load Balancing Developer Guide.
  1193. Tags []*Tag `type:"list"`
  1194. metadataCreateLoadBalancerInput `json:"-" xml:"-"`
  1195. }
  1196. type metadataCreateLoadBalancerInput struct {
  1197. SDKShapeTraits bool `type:"structure"`
  1198. }
  1199. // String returns the string representation
  1200. func (s CreateLoadBalancerInput) String() string {
  1201. return awsutil.Prettify(s)
  1202. }
  1203. // GoString returns the string representation
  1204. func (s CreateLoadBalancerInput) GoString() string {
  1205. return s.String()
  1206. }
  1207. type CreateLoadBalancerListenersInput struct {
  1208. // The listeners.
  1209. Listeners []*Listener `type:"list" required:"true"`
  1210. // The name of the load balancer.
  1211. LoadBalancerName *string `type:"string" required:"true"`
  1212. metadataCreateLoadBalancerListenersInput `json:"-" xml:"-"`
  1213. }
  1214. type metadataCreateLoadBalancerListenersInput struct {
  1215. SDKShapeTraits bool `type:"structure"`
  1216. }
  1217. // String returns the string representation
  1218. func (s CreateLoadBalancerListenersInput) String() string {
  1219. return awsutil.Prettify(s)
  1220. }
  1221. // GoString returns the string representation
  1222. func (s CreateLoadBalancerListenersInput) GoString() string {
  1223. return s.String()
  1224. }
  1225. type CreateLoadBalancerListenersOutput struct {
  1226. metadataCreateLoadBalancerListenersOutput `json:"-" xml:"-"`
  1227. }
  1228. type metadataCreateLoadBalancerListenersOutput struct {
  1229. SDKShapeTraits bool `type:"structure"`
  1230. }
  1231. // String returns the string representation
  1232. func (s CreateLoadBalancerListenersOutput) String() string {
  1233. return awsutil.Prettify(s)
  1234. }
  1235. // GoString returns the string representation
  1236. func (s CreateLoadBalancerListenersOutput) GoString() string {
  1237. return s.String()
  1238. }
  1239. type CreateLoadBalancerOutput struct {
  1240. // The DNS name of the load balancer.
  1241. DNSName *string `type:"string"`
  1242. metadataCreateLoadBalancerOutput `json:"-" xml:"-"`
  1243. }
  1244. type metadataCreateLoadBalancerOutput struct {
  1245. SDKShapeTraits bool `type:"structure"`
  1246. }
  1247. // String returns the string representation
  1248. func (s CreateLoadBalancerOutput) String() string {
  1249. return awsutil.Prettify(s)
  1250. }
  1251. // GoString returns the string representation
  1252. func (s CreateLoadBalancerOutput) GoString() string {
  1253. return s.String()
  1254. }
  1255. type CreateLoadBalancerPolicyInput struct {
  1256. // The name of the load balancer.
  1257. LoadBalancerName *string `type:"string" required:"true"`
  1258. // The attributes for the policy.
  1259. PolicyAttributes []*PolicyAttribute `type:"list"`
  1260. // The name of the load balancer policy to be created. This name must be unique
  1261. // within the set of policies for this load balancer.
  1262. PolicyName *string `type:"string" required:"true"`
  1263. // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
  1264. PolicyTypeName *string `type:"string" required:"true"`
  1265. metadataCreateLoadBalancerPolicyInput `json:"-" xml:"-"`
  1266. }
  1267. type metadataCreateLoadBalancerPolicyInput struct {
  1268. SDKShapeTraits bool `type:"structure"`
  1269. }
  1270. // String returns the string representation
  1271. func (s CreateLoadBalancerPolicyInput) String() string {
  1272. return awsutil.Prettify(s)
  1273. }
  1274. // GoString returns the string representation
  1275. func (s CreateLoadBalancerPolicyInput) GoString() string {
  1276. return s.String()
  1277. }
  1278. type CreateLoadBalancerPolicyOutput struct {
  1279. metadataCreateLoadBalancerPolicyOutput `json:"-" xml:"-"`
  1280. }
  1281. type metadataCreateLoadBalancerPolicyOutput struct {
  1282. SDKShapeTraits bool `type:"structure"`
  1283. }
  1284. // String returns the string representation
  1285. func (s CreateLoadBalancerPolicyOutput) String() string {
  1286. return awsutil.Prettify(s)
  1287. }
  1288. // GoString returns the string representation
  1289. func (s CreateLoadBalancerPolicyOutput) GoString() string {
  1290. return s.String()
  1291. }
  1292. // Information about the CrossZoneLoadBalancing attribute.
  1293. type CrossZoneLoadBalancing struct {
  1294. // Specifies whether cross-zone load balancing is enabled for the load balancer.
  1295. Enabled *bool `type:"boolean" required:"true"`
  1296. metadataCrossZoneLoadBalancing `json:"-" xml:"-"`
  1297. }
  1298. type metadataCrossZoneLoadBalancing struct {
  1299. SDKShapeTraits bool `type:"structure"`
  1300. }
  1301. // String returns the string representation
  1302. func (s CrossZoneLoadBalancing) String() string {
  1303. return awsutil.Prettify(s)
  1304. }
  1305. // GoString returns the string representation
  1306. func (s CrossZoneLoadBalancing) GoString() string {
  1307. return s.String()
  1308. }
  1309. type DeleteLoadBalancerInput struct {
  1310. // The name of the load balancer.
  1311. LoadBalancerName *string `type:"string" required:"true"`
  1312. metadataDeleteLoadBalancerInput `json:"-" xml:"-"`
  1313. }
  1314. type metadataDeleteLoadBalancerInput struct {
  1315. SDKShapeTraits bool `type:"structure"`
  1316. }
  1317. // String returns the string representation
  1318. func (s DeleteLoadBalancerInput) String() string {
  1319. return awsutil.Prettify(s)
  1320. }
  1321. // GoString returns the string representation
  1322. func (s DeleteLoadBalancerInput) GoString() string {
  1323. return s.String()
  1324. }
  1325. type DeleteLoadBalancerListenersInput struct {
  1326. // The name of the load balancer.
  1327. LoadBalancerName *string `type:"string" required:"true"`
  1328. // The client port numbers of the listeners.
  1329. LoadBalancerPorts []*int64 `type:"list" required:"true"`
  1330. metadataDeleteLoadBalancerListenersInput `json:"-" xml:"-"`
  1331. }
  1332. type metadataDeleteLoadBalancerListenersInput struct {
  1333. SDKShapeTraits bool `type:"structure"`
  1334. }
  1335. // String returns the string representation
  1336. func (s DeleteLoadBalancerListenersInput) String() string {
  1337. return awsutil.Prettify(s)
  1338. }
  1339. // GoString returns the string representation
  1340. func (s DeleteLoadBalancerListenersInput) GoString() string {
  1341. return s.String()
  1342. }
  1343. type DeleteLoadBalancerListenersOutput struct {
  1344. metadataDeleteLoadBalancerListenersOutput `json:"-" xml:"-"`
  1345. }
  1346. type metadataDeleteLoadBalancerListenersOutput struct {
  1347. SDKShapeTraits bool `type:"structure"`
  1348. }
  1349. // String returns the string representation
  1350. func (s DeleteLoadBalancerListenersOutput) String() string {
  1351. return awsutil.Prettify(s)
  1352. }
  1353. // GoString returns the string representation
  1354. func (s DeleteLoadBalancerListenersOutput) GoString() string {
  1355. return s.String()
  1356. }
  1357. type DeleteLoadBalancerOutput struct {
  1358. metadataDeleteLoadBalancerOutput `json:"-" xml:"-"`
  1359. }
  1360. type metadataDeleteLoadBalancerOutput struct {
  1361. SDKShapeTraits bool `type:"structure"`
  1362. }
  1363. // String returns the string representation
  1364. func (s DeleteLoadBalancerOutput) String() string {
  1365. return awsutil.Prettify(s)
  1366. }
  1367. // GoString returns the string representation
  1368. func (s DeleteLoadBalancerOutput) GoString() string {
  1369. return s.String()
  1370. }
  1371. // =
  1372. type DeleteLoadBalancerPolicyInput struct {
  1373. // The name of the load balancer.
  1374. LoadBalancerName *string `type:"string" required:"true"`
  1375. // The name of the policy.
  1376. PolicyName *string `type:"string" required:"true"`
  1377. metadataDeleteLoadBalancerPolicyInput `json:"-" xml:"-"`
  1378. }
  1379. type metadataDeleteLoadBalancerPolicyInput struct {
  1380. SDKShapeTraits bool `type:"structure"`
  1381. }
  1382. // String returns the string representation
  1383. func (s DeleteLoadBalancerPolicyInput) String() string {
  1384. return awsutil.Prettify(s)
  1385. }
  1386. // GoString returns the string representation
  1387. func (s DeleteLoadBalancerPolicyInput) GoString() string {
  1388. return s.String()
  1389. }
  1390. type DeleteLoadBalancerPolicyOutput struct {
  1391. metadataDeleteLoadBalancerPolicyOutput `json:"-" xml:"-"`
  1392. }
  1393. type metadataDeleteLoadBalancerPolicyOutput struct {
  1394. SDKShapeTraits bool `type:"structure"`
  1395. }
  1396. // String returns the string representation
  1397. func (s DeleteLoadBalancerPolicyOutput) String() string {
  1398. return awsutil.Prettify(s)
  1399. }
  1400. // GoString returns the string representation
  1401. func (s DeleteLoadBalancerPolicyOutput) GoString() string {
  1402. return s.String()
  1403. }
  1404. type DeregisterInstancesFromLoadBalancerInput struct {
  1405. // The IDs of the instances.
  1406. Instances []*Instance `type:"list" required:"true"`
  1407. // The name of the load balancer.
  1408. LoadBalancerName *string `type:"string" required:"true"`
  1409. metadataDeregisterInstancesFromLoadBalancerInput `json:"-" xml:"-"`
  1410. }
  1411. type metadataDeregisterInstancesFromLoadBalancerInput struct {
  1412. SDKShapeTraits bool `type:"structure"`
  1413. }
  1414. // String returns the string representation
  1415. func (s DeregisterInstancesFromLoadBalancerInput) String() string {
  1416. return awsutil.Prettify(s)
  1417. }
  1418. // GoString returns the string representation
  1419. func (s DeregisterInstancesFromLoadBalancerInput) GoString() string {
  1420. return s.String()
  1421. }
  1422. type DeregisterInstancesFromLoadBalancerOutput struct {
  1423. // The remaining instances registered with the load balancer.
  1424. Instances []*Instance `type:"list"`
  1425. metadataDeregisterInstancesFromLoadBalancerOutput `json:"-" xml:"-"`
  1426. }
  1427. type metadataDeregisterInstancesFromLoadBalancerOutput struct {
  1428. SDKShapeTraits bool `type:"structure"`
  1429. }
  1430. // String returns the string representation
  1431. func (s DeregisterInstancesFromLoadBalancerOutput) String() string {
  1432. return awsutil.Prettify(s)
  1433. }
  1434. // GoString returns the string representation
  1435. func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string {
  1436. return s.String()
  1437. }
  1438. type DescribeInstanceHealthInput struct {
  1439. // The IDs of the instances.
  1440. Instances []*Instance `type:"list"`
  1441. // The name of the load balancer.
  1442. LoadBalancerName *string `type:"string" required:"true"`
  1443. metadataDescribeInstanceHealthInput `json:"-" xml:"-"`
  1444. }
  1445. type metadataDescribeInstanceHealthInput struct {
  1446. SDKShapeTraits bool `type:"structure"`
  1447. }
  1448. // String returns the string representation
  1449. func (s DescribeInstanceHealthInput) String() string {
  1450. return awsutil.Prettify(s)
  1451. }
  1452. // GoString returns the string representation
  1453. func (s DescribeInstanceHealthInput) GoString() string {
  1454. return s.String()
  1455. }
  1456. type DescribeInstanceHealthOutput struct {
  1457. // Information about the health of the instances.
  1458. InstanceStates []*InstanceState `type:"list"`
  1459. metadataDescribeInstanceHealthOutput `json:"-" xml:"-"`
  1460. }
  1461. type metadataDescribeInstanceHealthOutput struct {
  1462. SDKShapeTraits bool `type:"structure"`
  1463. }
  1464. // String returns the string representation
  1465. func (s DescribeInstanceHealthOutput) String() string {
  1466. return awsutil.Prettify(s)
  1467. }
  1468. // GoString returns the string representation
  1469. func (s DescribeInstanceHealthOutput) GoString() string {
  1470. return s.String()
  1471. }
  1472. type DescribeLoadBalancerAttributesInput struct {
  1473. // The name of the load balancer.
  1474. LoadBalancerName *string `type:"string" required:"true"`
  1475. metadataDescribeLoadBalancerAttributesInput `json:"-" xml:"-"`
  1476. }
  1477. type metadataDescribeLoadBalancerAttributesInput struct {
  1478. SDKShapeTraits bool `type:"structure"`
  1479. }
  1480. // String returns the string representation
  1481. func (s DescribeLoadBalancerAttributesInput) String() string {
  1482. return awsutil.Prettify(s)
  1483. }
  1484. // GoString returns the string representation
  1485. func (s DescribeLoadBalancerAttributesInput) GoString() string {
  1486. return s.String()
  1487. }
  1488. type DescribeLoadBalancerAttributesOutput struct {
  1489. // Information about the load balancer attributes.
  1490. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  1491. metadataDescribeLoadBalancerAttributesOutput `json:"-" xml:"-"`
  1492. }
  1493. type metadataDescribeLoadBalancerAttributesOutput struct {
  1494. SDKShapeTraits bool `type:"structure"`
  1495. }
  1496. // String returns the string representation
  1497. func (s DescribeLoadBalancerAttributesOutput) String() string {
  1498. return awsutil.Prettify(s)
  1499. }
  1500. // GoString returns the string representation
  1501. func (s DescribeLoadBalancerAttributesOutput) GoString() string {
  1502. return s.String()
  1503. }
  1504. type DescribeLoadBalancerPoliciesInput struct {
  1505. // The name of the load balancer.
  1506. LoadBalancerName *string `type:"string"`
  1507. // The names of the policies.
  1508. PolicyNames []*string `type:"list"`
  1509. metadataDescribeLoadBalancerPoliciesInput `json:"-" xml:"-"`
  1510. }
  1511. type metadataDescribeLoadBalancerPoliciesInput struct {
  1512. SDKShapeTraits bool `type:"structure"`
  1513. }
  1514. // String returns the string representation
  1515. func (s DescribeLoadBalancerPoliciesInput) String() string {
  1516. return awsutil.Prettify(s)
  1517. }
  1518. // GoString returns the string representation
  1519. func (s DescribeLoadBalancerPoliciesInput) GoString() string {
  1520. return s.String()
  1521. }
  1522. type DescribeLoadBalancerPoliciesOutput struct {
  1523. // Information about the policies.
  1524. PolicyDescriptions []*PolicyDescription `type:"list"`
  1525. metadataDescribeLoadBalancerPoliciesOutput `json:"-" xml:"-"`
  1526. }
  1527. type metadataDescribeLoadBalancerPoliciesOutput struct {
  1528. SDKShapeTraits bool `type:"structure"`
  1529. }
  1530. // String returns the string representation
  1531. func (s DescribeLoadBalancerPoliciesOutput) String() string {
  1532. return awsutil.Prettify(s)
  1533. }
  1534. // GoString returns the string representation
  1535. func (s DescribeLoadBalancerPoliciesOutput) GoString() string {
  1536. return s.String()
  1537. }
  1538. type DescribeLoadBalancerPolicyTypesInput struct {
  1539. // The names of the policy types. If no names are specified, describes all policy
  1540. // types defined by Elastic Load Balancing.
  1541. PolicyTypeNames []*string `type:"list"`
  1542. metadataDescribeLoadBalancerPolicyTypesInput `json:"-" xml:"-"`
  1543. }
  1544. type metadataDescribeLoadBalancerPolicyTypesInput struct {
  1545. SDKShapeTraits bool `type:"structure"`
  1546. }
  1547. // String returns the string representation
  1548. func (s DescribeLoadBalancerPolicyTypesInput) String() string {
  1549. return awsutil.Prettify(s)
  1550. }
  1551. // GoString returns the string representation
  1552. func (s DescribeLoadBalancerPolicyTypesInput) GoString() string {
  1553. return s.String()
  1554. }
  1555. type DescribeLoadBalancerPolicyTypesOutput struct {
  1556. // Information about the policy types.
  1557. PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
  1558. metadataDescribeLoadBalancerPolicyTypesOutput `json:"-" xml:"-"`
  1559. }
  1560. type metadataDescribeLoadBalancerPolicyTypesOutput struct {
  1561. SDKShapeTraits bool `type:"structure"`
  1562. }
  1563. // String returns the string representation
  1564. func (s DescribeLoadBalancerPolicyTypesOutput) String() string {
  1565. return awsutil.Prettify(s)
  1566. }
  1567. // GoString returns the string representation
  1568. func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string {
  1569. return s.String()
  1570. }
  1571. type DescribeLoadBalancersInput struct {
  1572. // The names of the load balancers.
  1573. LoadBalancerNames []*string `type:"list"`
  1574. // The marker for the next set of results. (You received this marker from a
  1575. // previous call.)
  1576. Marker *string `type:"string"`
  1577. // The maximum number of results to return with this call (a number from 1 to
  1578. // 400). The default is 400.
  1579. PageSize *int64 `type:"integer"`
  1580. metadataDescribeLoadBalancersInput `json:"-" xml:"-"`
  1581. }
  1582. type metadataDescribeLoadBalancersInput struct {
  1583. SDKShapeTraits bool `type:"structure"`
  1584. }
  1585. // String returns the string representation
  1586. func (s DescribeLoadBalancersInput) String() string {
  1587. return awsutil.Prettify(s)
  1588. }
  1589. // GoString returns the string representation
  1590. func (s DescribeLoadBalancersInput) GoString() string {
  1591. return s.String()
  1592. }
  1593. type DescribeLoadBalancersOutput struct {
  1594. // Information about the load balancers.
  1595. LoadBalancerDescriptions []*LoadBalancerDescription `type:"list"`
  1596. // The marker to use when requesting the next set of results. If there are no
  1597. // additional results, the string is empty.
  1598. NextMarker *string `type:"string"`
  1599. metadataDescribeLoadBalancersOutput `json:"-" xml:"-"`
  1600. }
  1601. type metadataDescribeLoadBalancersOutput struct {
  1602. SDKShapeTraits bool `type:"structure"`
  1603. }
  1604. // String returns the string representation
  1605. func (s DescribeLoadBalancersOutput) String() string {
  1606. return awsutil.Prettify(s)
  1607. }
  1608. // GoString returns the string representation
  1609. func (s DescribeLoadBalancersOutput) GoString() string {
  1610. return s.String()
  1611. }
  1612. type DescribeTagsInput struct {
  1613. // The names of the load balancers.
  1614. LoadBalancerNames []*string `type:"list" required:"true"`
  1615. metadataDescribeTagsInput `json:"-" xml:"-"`
  1616. }
  1617. type metadataDescribeTagsInput struct {
  1618. SDKShapeTraits bool `type:"structure"`
  1619. }
  1620. // String returns the string representation
  1621. func (s DescribeTagsInput) String() string {
  1622. return awsutil.Prettify(s)
  1623. }
  1624. // GoString returns the string representation
  1625. func (s DescribeTagsInput) GoString() string {
  1626. return s.String()
  1627. }
  1628. type DescribeTagsOutput struct {
  1629. // Information about the tags.
  1630. TagDescriptions []*TagDescription `type:"list"`
  1631. metadataDescribeTagsOutput `json:"-" xml:"-"`
  1632. }
  1633. type metadataDescribeTagsOutput struct {
  1634. SDKShapeTraits bool `type:"structure"`
  1635. }
  1636. // String returns the string representation
  1637. func (s DescribeTagsOutput) String() string {
  1638. return awsutil.Prettify(s)
  1639. }
  1640. // GoString returns the string representation
  1641. func (s DescribeTagsOutput) GoString() string {
  1642. return s.String()
  1643. }
  1644. type DetachLoadBalancerFromSubnetsInput struct {
  1645. // The name of the load balancer.
  1646. LoadBalancerName *string `type:"string" required:"true"`
  1647. // The IDs of the subnets.
  1648. Subnets []*string `type:"list" required:"true"`
  1649. metadataDetachLoadBalancerFromSubnetsInput `json:"-" xml:"-"`
  1650. }
  1651. type metadataDetachLoadBalancerFromSubnetsInput struct {
  1652. SDKShapeTraits bool `type:"structure"`
  1653. }
  1654. // String returns the string representation
  1655. func (s DetachLoadBalancerFromSubnetsInput) String() string {
  1656. return awsutil.Prettify(s)
  1657. }
  1658. // GoString returns the string representation
  1659. func (s DetachLoadBalancerFromSubnetsInput) GoString() string {
  1660. return s.String()
  1661. }
  1662. type DetachLoadBalancerFromSubnetsOutput struct {
  1663. // The IDs of the remaining subnets for the load balancer.
  1664. Subnets []*string `type:"list"`
  1665. metadataDetachLoadBalancerFromSubnetsOutput `json:"-" xml:"-"`
  1666. }
  1667. type metadataDetachLoadBalancerFromSubnetsOutput struct {
  1668. SDKShapeTraits bool `type:"structure"`
  1669. }
  1670. // String returns the string representation
  1671. func (s DetachLoadBalancerFromSubnetsOutput) String() string {
  1672. return awsutil.Prettify(s)
  1673. }
  1674. // GoString returns the string representation
  1675. func (s DetachLoadBalancerFromSubnetsOutput) GoString() string {
  1676. return s.String()
  1677. }
  1678. type DisableAvailabilityZonesForLoadBalancerInput struct {
  1679. // The Availability Zones.
  1680. AvailabilityZones []*string `type:"list" required:"true"`
  1681. // The name of the load balancer.
  1682. LoadBalancerName *string `type:"string" required:"true"`
  1683. metadataDisableAvailabilityZonesForLoadBalancerInput `json:"-" xml:"-"`
  1684. }
  1685. type metadataDisableAvailabilityZonesForLoadBalancerInput struct {
  1686. SDKShapeTraits bool `type:"structure"`
  1687. }
  1688. // String returns the string representation
  1689. func (s DisableAvailabilityZonesForLoadBalancerInput) String() string {
  1690. return awsutil.Prettify(s)
  1691. }
  1692. // GoString returns the string representation
  1693. func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string {
  1694. return s.String()
  1695. }
  1696. type DisableAvailabilityZonesForLoadBalancerOutput struct {
  1697. // The remaining Availability Zones for the load balancer.
  1698. AvailabilityZones []*string `type:"list"`
  1699. metadataDisableAvailabilityZonesForLoadBalancerOutput `json:"-" xml:"-"`
  1700. }
  1701. type metadataDisableAvailabilityZonesForLoadBalancerOutput struct {
  1702. SDKShapeTraits bool `type:"structure"`
  1703. }
  1704. // String returns the string representation
  1705. func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string {
  1706. return awsutil.Prettify(s)
  1707. }
  1708. // GoString returns the string representation
  1709. func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  1710. return s.String()
  1711. }
  1712. type EnableAvailabilityZonesForLoadBalancerInput struct {
  1713. // The Availability Zones. These must be in the same region as the load balancer.
  1714. AvailabilityZones []*string `type:"list" required:"true"`
  1715. // The name of the load balancer.
  1716. LoadBalancerName *string `type:"string" required:"true"`
  1717. metadataEnableAvailabilityZonesForLoadBalancerInput `json:"-" xml:"-"`
  1718. }
  1719. type metadataEnableAvailabilityZonesForLoadBalancerInput struct {
  1720. SDKShapeTraits bool `type:"structure"`
  1721. }
  1722. // String returns the string representation
  1723. func (s EnableAvailabilityZonesForLoadBalancerInput) String() string {
  1724. return awsutil.Prettify(s)
  1725. }
  1726. // GoString returns the string representation
  1727. func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string {
  1728. return s.String()
  1729. }
  1730. type EnableAvailabilityZonesForLoadBalancerOutput struct {
  1731. // The updated list of Availability Zones for the load balancer.
  1732. AvailabilityZones []*string `type:"list"`
  1733. metadataEnableAvailabilityZonesForLoadBalancerOutput `json:"-" xml:"-"`
  1734. }
  1735. type metadataEnableAvailabilityZonesForLoadBalancerOutput struct {
  1736. SDKShapeTraits bool `type:"structure"`
  1737. }
  1738. // String returns the string representation
  1739. func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string {
  1740. return awsutil.Prettify(s)
  1741. }
  1742. // GoString returns the string representation
  1743. func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string {
  1744. return s.String()
  1745. }
  1746. // Information about a health check.
  1747. type HealthCheck struct {
  1748. // The number of consecutive health checks successes required before moving
  1749. // the instance to the Healthy state.
  1750. HealthyThreshold *int64 `type:"integer" required:"true"`
  1751. // The approximate interval, in seconds, between health checks of an individual
  1752. // instance.
  1753. Interval *int64 `type:"integer" required:"true"`
  1754. // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
  1755. // The range of valid ports is one (1) through 65535.
  1756. //
  1757. // TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
  1758. // In this case, a health check simply attempts to open a TCP connection to
  1759. // the instance on the specified port. Failure to connect within the configured
  1760. // timeout is considered unhealthy.
  1761. //
  1762. // SSL is also specified as SSL: port pair, for example, SSL:5000.
  1763. //
  1764. // For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
  1765. // as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
  1766. // In this case, a HTTP GET request is issued to the instance on the given port
  1767. // and path. Any answer other than "200 OK" within the timeout period is considered
  1768. // unhealthy.
  1769. //
  1770. // The total length of the HTTP ping target must be 1024 16-bit Unicode characters
  1771. // or less.
  1772. Target *string `type:"string" required:"true"`
  1773. // The amount of time, in seconds, during which no response means a failed health
  1774. // check.
  1775. //
  1776. // This value must be less than the Interval value.
  1777. Timeout *int64 `type:"integer" required:"true"`
  1778. // The number of consecutive health check failures required before moving the
  1779. // instance to the Unhealthy state.
  1780. UnhealthyThreshold *int64 `type:"integer" required:"true"`
  1781. metadataHealthCheck `json:"-" xml:"-"`
  1782. }
  1783. type metadataHealthCheck struct {
  1784. SDKShapeTraits bool `type:"structure"`
  1785. }
  1786. // String returns the string representation
  1787. func (s HealthCheck) String() string {
  1788. return awsutil.Prettify(s)
  1789. }
  1790. // GoString returns the string representation
  1791. func (s HealthCheck) GoString() string {
  1792. return s.String()
  1793. }
  1794. // The ID of a back-end instance.
  1795. type Instance struct {
  1796. // The ID of the instance.
  1797. InstanceId *string `type:"string"`
  1798. metadataInstance `json:"-" xml:"-"`
  1799. }
  1800. type metadataInstance struct {
  1801. SDKShapeTraits bool `type:"structure"`
  1802. }
  1803. // String returns the string representation
  1804. func (s Instance) String() string {
  1805. return awsutil.Prettify(s)
  1806. }
  1807. // GoString returns the string representation
  1808. func (s Instance) GoString() string {
  1809. return s.String()
  1810. }
  1811. // Information about the state of a back-end instance.
  1812. type InstanceState struct {
  1813. // A description of the instance state. This string can contain one or more
  1814. // of the following messages.
  1815. //
  1816. // N/A
  1817. //
  1818. // A transient error occurred. Please try again later.
  1819. //
  1820. // Instance has failed at least the UnhealthyThreshold number of health checks
  1821. // consecutively.
  1822. //
  1823. // Instance has not passed the configured HealthyThreshold number of health
  1824. // checks consecutively.
  1825. //
  1826. // Instance registration is still in progress.
  1827. //
  1828. // Instance is in the EC2 Availability Zone for which LoadBalancer is not
  1829. // configured to route traffic to.
  1830. //
  1831. // Instance is not currently registered with the LoadBalancer.
  1832. //
  1833. // Instance deregistration currently in progress.
  1834. //
  1835. // Disable Availability Zone is currently in progress.
  1836. //
  1837. // Instance is in pending state.
  1838. //
  1839. // Instance is in stopped state.
  1840. //
  1841. // Instance is in terminated state.
  1842. Description *string `type:"string"`
  1843. // The ID of the instance.
  1844. InstanceId *string `type:"string"`
  1845. // Information about the cause of OutOfService instances. Specifically, whether
  1846. // the cause is Elastic Load Balancing or the instance.
  1847. //
  1848. // Valid values: ELB | Instance | N/A
  1849. ReasonCode *string `type:"string"`
  1850. // The current state of the instance.
  1851. //
  1852. // Valid values: InService | OutOfService | Unknown
  1853. State *string `type:"string"`
  1854. metadataInstanceState `json:"-" xml:"-"`
  1855. }
  1856. type metadataInstanceState struct {
  1857. SDKShapeTraits bool `type:"structure"`
  1858. }
  1859. // String returns the string representation
  1860. func (s InstanceState) String() string {
  1861. return awsutil.Prettify(s)
  1862. }
  1863. // GoString returns the string representation
  1864. func (s InstanceState) GoString() string {
  1865. return s.String()
  1866. }
  1867. // Information about a policy for duration-based session stickiness.
  1868. type LBCookieStickinessPolicy struct {
  1869. // The time period, in seconds, after which the cookie should be considered
  1870. // stale. If this parameter is not specified, the stickiness session lasts for
  1871. // the duration of the browser session.
  1872. CookieExpirationPeriod *int64 `type:"long"`
  1873. // The name for the policy being created. The name must be unique within the
  1874. // set of policies for this load balancer.
  1875. PolicyName *string `type:"string"`
  1876. metadataLBCookieStickinessPolicy `json:"-" xml:"-"`
  1877. }
  1878. type metadataLBCookieStickinessPolicy struct {
  1879. SDKShapeTraits bool `type:"structure"`
  1880. }
  1881. // String returns the string representation
  1882. func (s LBCookieStickinessPolicy) String() string {
  1883. return awsutil.Prettify(s)
  1884. }
  1885. // GoString returns the string representation
  1886. func (s LBCookieStickinessPolicy) GoString() string {
  1887. return s.String()
  1888. }
  1889. // Information about a listener.
  1890. //
  1891. // For information about the protocols and the ports supported by Elastic Load
  1892. // Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
  1893. // in the Elastic Load Balancing Developer Guide.
  1894. type Listener struct {
  1895. // The port on which the instance is listening.
  1896. InstancePort *int64 `type:"integer" required:"true"`
  1897. // The protocol to use for routing traffic to back-end instances: HTTP, HTTPS,
  1898. // TCP, or SSL.
  1899. //
  1900. // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol
  1901. // must be at the same protocol.
  1902. //
  1903. // If there is another listener with the same InstancePort whose InstanceProtocol
  1904. // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
  1905. //
  1906. // If there is another listener with the same InstancePort whose InstanceProtocol
  1907. // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
  1908. InstanceProtocol *string `type:"string"`
  1909. // The port on which the load balancer is listening. The supported ports are:
  1910. // 25, 80, 443, 465, 587, and 1024-65535.
  1911. LoadBalancerPort *int64 `type:"integer" required:"true"`
  1912. // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
  1913. // or SSL.
  1914. Protocol *string `type:"string" required:"true"`
  1915. // The Amazon Resource Name (ARN) of the server certificate.
  1916. SSLCertificateId *string `type:"string"`
  1917. metadataListener `json:"-" xml:"-"`
  1918. }
  1919. type metadataListener struct {
  1920. SDKShapeTraits bool `type:"structure"`
  1921. }
  1922. // String returns the string representation
  1923. func (s Listener) String() string {
  1924. return awsutil.Prettify(s)
  1925. }
  1926. // GoString returns the string representation
  1927. func (s Listener) GoString() string {
  1928. return s.String()
  1929. }
  1930. // The policies enabled for a listener.
  1931. type ListenerDescription struct {
  1932. // Information about a listener.
  1933. //
  1934. // For information about the protocols and the ports supported by Elastic Load
  1935. // Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
  1936. // in the Elastic Load Balancing Developer Guide.
  1937. Listener *Listener `type:"structure"`
  1938. // The policies. If there are no policies enabled, the list is empty.
  1939. PolicyNames []*string `type:"list"`
  1940. metadataListenerDescription `json:"-" xml:"-"`
  1941. }
  1942. type metadataListenerDescription struct {
  1943. SDKShapeTraits bool `type:"structure"`
  1944. }
  1945. // String returns the string representation
  1946. func (s ListenerDescription) String() string {
  1947. return awsutil.Prettify(s)
  1948. }
  1949. // GoString returns the string representation
  1950. func (s ListenerDescription) GoString() string {
  1951. return s.String()
  1952. }
  1953. // The attributes for a load balancer.
  1954. type LoadBalancerAttributes struct {
  1955. // If enabled, the load balancer captures detailed information of all requests
  1956. // and delivers the information to the Amazon S3 bucket that you specify.
  1957. //
  1958. // For more information, see Enable Access Logs (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-access-logs.html)
  1959. // in the Elastic Load Balancing Developer Guide.
  1960. AccessLog *AccessLog `type:"structure"`
  1961. // This parameter is reserved.
  1962. AdditionalAttributes []*AdditionalAttribute `type:"list"`
  1963. // If enabled, the load balancer allows existing requests to complete before
  1964. // the load balancer shifts traffic away from a deregistered or unhealthy back-end
  1965. // instance.
  1966. //
  1967. // For more information, see Enable Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-conn-drain.html)
  1968. // in the Elastic Load Balancing Developer Guide.
  1969. ConnectionDraining *ConnectionDraining `type:"structure"`
  1970. // If enabled, the load balancer allows the connections to remain idle (no data
  1971. // is sent over the connection) for the specified duration.
  1972. //
  1973. // By default, Elastic Load Balancing maintains a 60-second idle connection
  1974. // timeout for both front-end and back-end connections of your load balancer.
  1975. // For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-idle-timeout.html)
  1976. // in the Elastic Load Balancing Developer Guide.
  1977. ConnectionSettings *ConnectionSettings `type:"structure"`
  1978. // If enabled, the load balancer routes the request traffic evenly across all
  1979. // back-end instances regardless of the Availability Zones.
  1980. //
  1981. // For more information, see Enable Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-disable-crosszone-lb.html)
  1982. // in the Elastic Load Balancing Developer Guide.
  1983. CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
  1984. metadataLoadBalancerAttributes `json:"-" xml:"-"`
  1985. }
  1986. type metadataLoadBalancerAttributes struct {
  1987. SDKShapeTraits bool `type:"structure"`
  1988. }
  1989. // String returns the string representation
  1990. func (s LoadBalancerAttributes) String() string {
  1991. return awsutil.Prettify(s)
  1992. }
  1993. // GoString returns the string representation
  1994. func (s LoadBalancerAttributes) GoString() string {
  1995. return s.String()
  1996. }
  1997. // Information about a load balancer.
  1998. type LoadBalancerDescription struct {
  1999. // The Availability Zones for the load balancer.
  2000. AvailabilityZones []*string `type:"list"`
  2001. // Information about the back-end servers.
  2002. BackendServerDescriptions []*BackendServerDescription `type:"list"`
  2003. // The Amazon Route 53 hosted zone associated with the load balancer.
  2004. //
  2005. // For more information, see Using Domain Names With Elastic Load Balancing
  2006. // (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html)
  2007. // in the Elastic Load Balancing Developer Guide.
  2008. CanonicalHostedZoneName *string `type:"string"`
  2009. // The ID of the Amazon Route 53 hosted zone name associated with the load balancer.
  2010. CanonicalHostedZoneNameID *string `type:"string"`
  2011. // The date and time the load balancer was created.
  2012. CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2013. // The external DNS name of the load balancer.
  2014. DNSName *string `type:"string"`
  2015. // Information about the health checks conducted on the load balancer.
  2016. HealthCheck *HealthCheck `type:"structure"`
  2017. // The IDs of the instances for the load balancer.
  2018. Instances []*Instance `type:"list"`
  2019. // The listeners for the load balancer.
  2020. ListenerDescriptions []*ListenerDescription `type:"list"`
  2021. // The name of the load balancer.
  2022. LoadBalancerName *string `type:"string"`
  2023. // The policies defined for the load balancer.
  2024. Policies *Policies `type:"structure"`
  2025. // The type of load balancer. Valid only for load balancers in a VPC.
  2026. //
  2027. // If Scheme is internet-facing, the load balancer has a public DNS name that
  2028. // resolves to a public IP address.
  2029. //
  2030. // If Scheme is internal, the load balancer has a public DNS name that resolves
  2031. // to a private IP address.
  2032. Scheme *string `type:"string"`
  2033. // The security groups for the load balancer. Valid only for load balancers
  2034. // in a VPC.
  2035. SecurityGroups []*string `type:"list"`
  2036. // The security group that you can use as part of your inbound rules for your
  2037. // load balancer's back-end application instances. To only allow traffic from
  2038. // load balancers, add a security group rule to your back end instance that
  2039. // specifies this source security group as the inbound source.
  2040. SourceSecurityGroup *SourceSecurityGroup `type:"structure"`
  2041. // The IDs of the subnets for the load balancer.
  2042. Subnets []*string `type:"list"`
  2043. // The ID of the VPC for the load balancer.
  2044. VPCId *string `type:"string"`
  2045. metadataLoadBalancerDescription `json:"-" xml:"-"`
  2046. }
  2047. type metadataLoadBalancerDescription struct {
  2048. SDKShapeTraits bool `type:"structure"`
  2049. }
  2050. // String returns the string representation
  2051. func (s LoadBalancerDescription) String() string {
  2052. return awsutil.Prettify(s)
  2053. }
  2054. // GoString returns the string representation
  2055. func (s LoadBalancerDescription) GoString() string {
  2056. return s.String()
  2057. }
  2058. type ModifyLoadBalancerAttributesInput struct {
  2059. // The attributes of the load balancer.
  2060. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
  2061. // The name of the load balancer.
  2062. LoadBalancerName *string `type:"string" required:"true"`
  2063. metadataModifyLoadBalancerAttributesInput `json:"-" xml:"-"`
  2064. }
  2065. type metadataModifyLoadBalancerAttributesInput struct {
  2066. SDKShapeTraits bool `type:"structure"`
  2067. }
  2068. // String returns the string representation
  2069. func (s ModifyLoadBalancerAttributesInput) String() string {
  2070. return awsutil.Prettify(s)
  2071. }
  2072. // GoString returns the string representation
  2073. func (s ModifyLoadBalancerAttributesInput) GoString() string {
  2074. return s.String()
  2075. }
  2076. type ModifyLoadBalancerAttributesOutput struct {
  2077. // The attributes for a load balancer.
  2078. LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
  2079. // The name of the load balancer.
  2080. LoadBalancerName *string `type:"string"`
  2081. metadataModifyLoadBalancerAttributesOutput `json:"-" xml:"-"`
  2082. }
  2083. type metadataModifyLoadBalancerAttributesOutput struct {
  2084. SDKShapeTraits bool `type:"structure"`
  2085. }
  2086. // String returns the string representation
  2087. func (s ModifyLoadBalancerAttributesOutput) String() string {
  2088. return awsutil.Prettify(s)
  2089. }
  2090. // GoString returns the string representation
  2091. func (s ModifyLoadBalancerAttributesOutput) GoString() string {
  2092. return s.String()
  2093. }
  2094. // The policies for a load balancer.
  2095. type Policies struct {
  2096. // The stickiness policies created using CreateAppCookieStickinessPolicy.
  2097. AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`
  2098. // The stickiness policies created using CreateLBCookieStickinessPolicy.
  2099. LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`
  2100. // The policies other than the stickiness policies.
  2101. OtherPolicies []*string `type:"list"`
  2102. metadataPolicies `json:"-" xml:"-"`
  2103. }
  2104. type metadataPolicies struct {
  2105. SDKShapeTraits bool `type:"structure"`
  2106. }
  2107. // String returns the string representation
  2108. func (s Policies) String() string {
  2109. return awsutil.Prettify(s)
  2110. }
  2111. // GoString returns the string representation
  2112. func (s Policies) GoString() string {
  2113. return s.String()
  2114. }
  2115. // Information about a policy attribute.
  2116. type PolicyAttribute struct {
  2117. // The name of the attribute.
  2118. AttributeName *string `type:"string"`
  2119. // The value of the attribute.
  2120. AttributeValue *string `type:"string"`
  2121. metadataPolicyAttribute `json:"-" xml:"-"`
  2122. }
  2123. type metadataPolicyAttribute struct {
  2124. SDKShapeTraits bool `type:"structure"`
  2125. }
  2126. // String returns the string representation
  2127. func (s PolicyAttribute) String() string {
  2128. return awsutil.Prettify(s)
  2129. }
  2130. // GoString returns the string representation
  2131. func (s PolicyAttribute) GoString() string {
  2132. return s.String()
  2133. }
  2134. // Information about a policy attribute.
  2135. type PolicyAttributeDescription struct {
  2136. // The name of the attribute.
  2137. AttributeName *string `type:"string"`
  2138. // The value of the attribute.
  2139. AttributeValue *string `type:"string"`
  2140. metadataPolicyAttributeDescription `json:"-" xml:"-"`
  2141. }
  2142. type metadataPolicyAttributeDescription struct {
  2143. SDKShapeTraits bool `type:"structure"`
  2144. }
  2145. // String returns the string representation
  2146. func (s PolicyAttributeDescription) String() string {
  2147. return awsutil.Prettify(s)
  2148. }
  2149. // GoString returns the string representation
  2150. func (s PolicyAttributeDescription) GoString() string {
  2151. return s.String()
  2152. }
  2153. // Information about a policy attribute type.
  2154. type PolicyAttributeTypeDescription struct {
  2155. // The name of the attribute.
  2156. AttributeName *string `type:"string"`
  2157. // The type of the attribute. For example, Boolean or Integer.
  2158. AttributeType *string `type:"string"`
  2159. // The cardinality of the attribute.
  2160. //
  2161. // Valid values:
  2162. //
  2163. // ONE(1) : Single value required ZERO_OR_ONE(0..1) : Up to one value can
  2164. // be supplied ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed ONE_OR_MORE(1..*0)
  2165. // : Required. Multiple values are allowed
  2166. Cardinality *string `type:"string"`
  2167. // The default value of the attribute, if applicable.
  2168. DefaultValue *string `type:"string"`
  2169. // A description of the attribute.
  2170. Description *string `type:"string"`
  2171. metadataPolicyAttributeTypeDescription `json:"-" xml:"-"`
  2172. }
  2173. type metadataPolicyAttributeTypeDescription struct {
  2174. SDKShapeTraits bool `type:"structure"`
  2175. }
  2176. // String returns the string representation
  2177. func (s PolicyAttributeTypeDescription) String() string {
  2178. return awsutil.Prettify(s)
  2179. }
  2180. // GoString returns the string representation
  2181. func (s PolicyAttributeTypeDescription) GoString() string {
  2182. return s.String()
  2183. }
  2184. // Information about a policy.
  2185. type PolicyDescription struct {
  2186. // The policy attributes.
  2187. PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`
  2188. // The name of the policy.
  2189. PolicyName *string `type:"string"`
  2190. // The name of the policy type.
  2191. PolicyTypeName *string `type:"string"`
  2192. metadataPolicyDescription `json:"-" xml:"-"`
  2193. }
  2194. type metadataPolicyDescription struct {
  2195. SDKShapeTraits bool `type:"structure"`
  2196. }
  2197. // String returns the string representation
  2198. func (s PolicyDescription) String() string {
  2199. return awsutil.Prettify(s)
  2200. }
  2201. // GoString returns the string representation
  2202. func (s PolicyDescription) GoString() string {
  2203. return s.String()
  2204. }
  2205. // Information about a policy type.
  2206. type PolicyTypeDescription struct {
  2207. // A description of the policy type.
  2208. Description *string `type:"string"`
  2209. // The description of the policy attributes associated with the policies defined
  2210. // by Elastic Load Balancing.
  2211. PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`
  2212. // The name of the policy type.
  2213. PolicyTypeName *string `type:"string"`
  2214. metadataPolicyTypeDescription `json:"-" xml:"-"`
  2215. }
  2216. type metadataPolicyTypeDescription struct {
  2217. SDKShapeTraits bool `type:"structure"`
  2218. }
  2219. // String returns the string representation
  2220. func (s PolicyTypeDescription) String() string {
  2221. return awsutil.Prettify(s)
  2222. }
  2223. // GoString returns the string representation
  2224. func (s PolicyTypeDescription) GoString() string {
  2225. return s.String()
  2226. }
  2227. type RegisterInstancesWithLoadBalancerInput struct {
  2228. // The IDs of the instances.
  2229. Instances []*Instance `type:"list" required:"true"`
  2230. // The name of the load balancer.
  2231. LoadBalancerName *string `type:"string" required:"true"`
  2232. metadataRegisterInstancesWithLoadBalancerInput `json:"-" xml:"-"`
  2233. }
  2234. type metadataRegisterInstancesWithLoadBalancerInput struct {
  2235. SDKShapeTraits bool `type:"structure"`
  2236. }
  2237. // String returns the string representation
  2238. func (s RegisterInstancesWithLoadBalancerInput) String() string {
  2239. return awsutil.Prettify(s)
  2240. }
  2241. // GoString returns the string representation
  2242. func (s RegisterInstancesWithLoadBalancerInput) GoString() string {
  2243. return s.String()
  2244. }
  2245. type RegisterInstancesWithLoadBalancerOutput struct {
  2246. // The updated list of instances for the load balancer.
  2247. Instances []*Instance `type:"list"`
  2248. metadataRegisterInstancesWithLoadBalancerOutput `json:"-" xml:"-"`
  2249. }
  2250. type metadataRegisterInstancesWithLoadBalancerOutput struct {
  2251. SDKShapeTraits bool `type:"structure"`
  2252. }
  2253. // String returns the string representation
  2254. func (s RegisterInstancesWithLoadBalancerOutput) String() string {
  2255. return awsutil.Prettify(s)
  2256. }
  2257. // GoString returns the string representation
  2258. func (s RegisterInstancesWithLoadBalancerOutput) GoString() string {
  2259. return s.String()
  2260. }
  2261. type RemoveTagsInput struct {
  2262. // The name of the load balancer. You can specify a maximum of one load balancer
  2263. // name.
  2264. LoadBalancerNames []*string `type:"list" required:"true"`
  2265. // The list of tag keys to remove.
  2266. Tags []*TagKeyOnly `type:"list" required:"true"`
  2267. metadataRemoveTagsInput `json:"-" xml:"-"`
  2268. }
  2269. type metadataRemoveTagsInput struct {
  2270. SDKShapeTraits bool `type:"structure"`
  2271. }
  2272. // String returns the string representation
  2273. func (s RemoveTagsInput) String() string {
  2274. return awsutil.Prettify(s)
  2275. }
  2276. // GoString returns the string representation
  2277. func (s RemoveTagsInput) GoString() string {
  2278. return s.String()
  2279. }
  2280. type RemoveTagsOutput struct {
  2281. metadataRemoveTagsOutput `json:"-" xml:"-"`
  2282. }
  2283. type metadataRemoveTagsOutput struct {
  2284. SDKShapeTraits bool `type:"structure"`
  2285. }
  2286. // String returns the string representation
  2287. func (s RemoveTagsOutput) String() string {
  2288. return awsutil.Prettify(s)
  2289. }
  2290. // GoString returns the string representation
  2291. func (s RemoveTagsOutput) GoString() string {
  2292. return s.String()
  2293. }
  2294. type SetLoadBalancerListenerSSLCertificateInput struct {
  2295. // The name of the load balancer.
  2296. LoadBalancerName *string `type:"string" required:"true"`
  2297. // The port that uses the specified SSL certificate.
  2298. LoadBalancerPort *int64 `type:"integer" required:"true"`
  2299. // The Amazon Resource Name (ARN) of the SSL certificate.
  2300. SSLCertificateId *string `type:"string" required:"true"`
  2301. metadataSetLoadBalancerListenerSSLCertificateInput `json:"-" xml:"-"`
  2302. }
  2303. type metadataSetLoadBalancerListenerSSLCertificateInput struct {
  2304. SDKShapeTraits bool `type:"structure"`
  2305. }
  2306. // String returns the string representation
  2307. func (s SetLoadBalancerListenerSSLCertificateInput) String() string {
  2308. return awsutil.Prettify(s)
  2309. }
  2310. // GoString returns the string representation
  2311. func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string {
  2312. return s.String()
  2313. }
  2314. type SetLoadBalancerListenerSSLCertificateOutput struct {
  2315. metadataSetLoadBalancerListenerSSLCertificateOutput `json:"-" xml:"-"`
  2316. }
  2317. type metadataSetLoadBalancerListenerSSLCertificateOutput struct {
  2318. SDKShapeTraits bool `type:"structure"`
  2319. }
  2320. // String returns the string representation
  2321. func (s SetLoadBalancerListenerSSLCertificateOutput) String() string {
  2322. return awsutil.Prettify(s)
  2323. }
  2324. // GoString returns the string representation
  2325. func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string {
  2326. return s.String()
  2327. }
  2328. type SetLoadBalancerPoliciesForBackendServerInput struct {
  2329. // The port number associated with the back-end server.
  2330. InstancePort *int64 `type:"integer" required:"true"`
  2331. // The name of the load balancer.
  2332. LoadBalancerName *string `type:"string" required:"true"`
  2333. // The names of the policies. If the list is empty, then all current polices
  2334. // are removed from the back-end server.
  2335. PolicyNames []*string `type:"list" required:"true"`
  2336. metadataSetLoadBalancerPoliciesForBackendServerInput `json:"-" xml:"-"`
  2337. }
  2338. type metadataSetLoadBalancerPoliciesForBackendServerInput struct {
  2339. SDKShapeTraits bool `type:"structure"`
  2340. }
  2341. // String returns the string representation
  2342. func (s SetLoadBalancerPoliciesForBackendServerInput) String() string {
  2343. return awsutil.Prettify(s)
  2344. }
  2345. // GoString returns the string representation
  2346. func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string {
  2347. return s.String()
  2348. }
  2349. type SetLoadBalancerPoliciesForBackendServerOutput struct {
  2350. metadataSetLoadBalancerPoliciesForBackendServerOutput `json:"-" xml:"-"`
  2351. }
  2352. type metadataSetLoadBalancerPoliciesForBackendServerOutput struct {
  2353. SDKShapeTraits bool `type:"structure"`
  2354. }
  2355. // String returns the string representation
  2356. func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string {
  2357. return awsutil.Prettify(s)
  2358. }
  2359. // GoString returns the string representation
  2360. func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string {
  2361. return s.String()
  2362. }
  2363. type SetLoadBalancerPoliciesOfListenerInput struct {
  2364. // The name of the load balancer.
  2365. LoadBalancerName *string `type:"string" required:"true"`
  2366. // The external port of the load balancer for the policy.
  2367. LoadBalancerPort *int64 `type:"integer" required:"true"`
  2368. // The names of the policies. If the list is empty, the current policy is removed
  2369. // from the listener.
  2370. PolicyNames []*string `type:"list" required:"true"`
  2371. metadataSetLoadBalancerPoliciesOfListenerInput `json:"-" xml:"-"`
  2372. }
  2373. type metadataSetLoadBalancerPoliciesOfListenerInput struct {
  2374. SDKShapeTraits bool `type:"structure"`
  2375. }
  2376. // String returns the string representation
  2377. func (s SetLoadBalancerPoliciesOfListenerInput) String() string {
  2378. return awsutil.Prettify(s)
  2379. }
  2380. // GoString returns the string representation
  2381. func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string {
  2382. return s.String()
  2383. }
  2384. type SetLoadBalancerPoliciesOfListenerOutput struct {
  2385. metadataSetLoadBalancerPoliciesOfListenerOutput `json:"-" xml:"-"`
  2386. }
  2387. type metadataSetLoadBalancerPoliciesOfListenerOutput struct {
  2388. SDKShapeTraits bool `type:"structure"`
  2389. }
  2390. // String returns the string representation
  2391. func (s SetLoadBalancerPoliciesOfListenerOutput) String() string {
  2392. return awsutil.Prettify(s)
  2393. }
  2394. // GoString returns the string representation
  2395. func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string {
  2396. return s.String()
  2397. }
  2398. // Information about a source security group.
  2399. type SourceSecurityGroup struct {
  2400. // The name of the security group.
  2401. GroupName *string `type:"string"`
  2402. // The owner of the security group.
  2403. OwnerAlias *string `type:"string"`
  2404. metadataSourceSecurityGroup `json:"-" xml:"-"`
  2405. }
  2406. type metadataSourceSecurityGroup struct {
  2407. SDKShapeTraits bool `type:"structure"`
  2408. }
  2409. // String returns the string representation
  2410. func (s SourceSecurityGroup) String() string {
  2411. return awsutil.Prettify(s)
  2412. }
  2413. // GoString returns the string representation
  2414. func (s SourceSecurityGroup) GoString() string {
  2415. return s.String()
  2416. }
  2417. // Information about a tag.
  2418. type Tag struct {
  2419. // The key of the tag.
  2420. Key *string `type:"string" required:"true"`
  2421. // The value of the tag.
  2422. Value *string `type:"string"`
  2423. metadataTag `json:"-" xml:"-"`
  2424. }
  2425. type metadataTag struct {
  2426. SDKShapeTraits bool `type:"structure"`
  2427. }
  2428. // String returns the string representation
  2429. func (s Tag) String() string {
  2430. return awsutil.Prettify(s)
  2431. }
  2432. // GoString returns the string representation
  2433. func (s Tag) GoString() string {
  2434. return s.String()
  2435. }
  2436. // The tags associated with a load balancer.
  2437. type TagDescription struct {
  2438. // The name of the load balancer.
  2439. LoadBalancerName *string `type:"string"`
  2440. // The tags.
  2441. Tags []*Tag `type:"list"`
  2442. metadataTagDescription `json:"-" xml:"-"`
  2443. }
  2444. type metadataTagDescription struct {
  2445. SDKShapeTraits bool `type:"structure"`
  2446. }
  2447. // String returns the string representation
  2448. func (s TagDescription) String() string {
  2449. return awsutil.Prettify(s)
  2450. }
  2451. // GoString returns the string representation
  2452. func (s TagDescription) GoString() string {
  2453. return s.String()
  2454. }
  2455. // The key of a tag.
  2456. type TagKeyOnly struct {
  2457. // The name of the key.
  2458. Key *string `type:"string"`
  2459. metadataTagKeyOnly `json:"-" xml:"-"`
  2460. }
  2461. type metadataTagKeyOnly struct {
  2462. SDKShapeTraits bool `type:"structure"`
  2463. }
  2464. // String returns the string representation
  2465. func (s TagKeyOnly) String() string {
  2466. return awsutil.Prettify(s)
  2467. }
  2468. // GoString returns the string representation
  2469. func (s TagKeyOnly) GoString() string {
  2470. return s.String()
  2471. }