12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package elb provides a client for Elastic Load Balancing.
- package elb
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opAddTags = "AddTags"
- // AddTagsRequest generates a request for the AddTags operation.
- func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
- op := &request.Operation{
- Name: opAddTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddTagsOutput{}
- req.Data = output
- return
- }
- // Adds the specified tags to the specified load balancer. Each load balancer
- // can have a maximum of 10 tags.
- //
- // Each tag consists of a key and an optional value. If a tag with the same
- // key is already associated with the load balancer, AddTags updates its value.
- //
- // For more information, see Tag Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/add-remove-tags.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- err := req.Send()
- return out, err
- }
- const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer"
- // ApplySecurityGroupsToLoadBalancerRequest generates a request for the ApplySecurityGroupsToLoadBalancer operation.
- func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) {
- op := &request.Operation{
- Name: opApplySecurityGroupsToLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ApplySecurityGroupsToLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ApplySecurityGroupsToLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Associates one or more security groups with your load balancer in a virtual
- // private cloud (VPC). The specified security groups override the previously
- // associated security groups.
- //
- // For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-groups.html#elb-vpc-security-groups)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoadBalancerInput) (*ApplySecurityGroupsToLoadBalancerOutput, error) {
- req, out := c.ApplySecurityGroupsToLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets"
- // AttachLoadBalancerToSubnetsRequest generates a request for the AttachLoadBalancerToSubnets operation.
- func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) {
- op := &request.Operation{
- Name: opAttachLoadBalancerToSubnets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AttachLoadBalancerToSubnetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AttachLoadBalancerToSubnetsOutput{}
- req.Data = output
- return
- }
- // Adds one or more subnets to the set of configured subnets for the specified
- // load balancer.
- //
- // The load balancer evenly distributes requests across all registered subnets.
- // For more information, see Add or Remove Subnets for Your Load Balancer in
- // a VPC (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-manage-subnets.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInput) (*AttachLoadBalancerToSubnetsOutput, error) {
- req, out := c.AttachLoadBalancerToSubnetsRequest(input)
- err := req.Send()
- return out, err
- }
- const opConfigureHealthCheck = "ConfigureHealthCheck"
- // ConfigureHealthCheckRequest generates a request for the ConfigureHealthCheck operation.
- func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) {
- op := &request.Operation{
- Name: opConfigureHealthCheck,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ConfigureHealthCheckInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ConfigureHealthCheckOutput{}
- req.Data = output
- return
- }
- // Specifies the health check settings to use when evaluating the health state
- // of your back-end instances.
- //
- // For more information, see Configure Health Checks (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-healthchecks.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*ConfigureHealthCheckOutput, error) {
- req, out := c.ConfigureHealthCheckRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy"
- // CreateAppCookieStickinessPolicyRequest generates a request for the CreateAppCookieStickinessPolicy operation.
- func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) {
- op := &request.Operation{
- Name: opCreateAppCookieStickinessPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAppCookieStickinessPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateAppCookieStickinessPolicyOutput{}
- req.Data = output
- return
- }
- // Generates a stickiness policy with sticky session lifetimes that follow that
- // of an application-generated cookie. This policy can be associated only with
- // HTTP/HTTPS listeners.
- //
- // This policy is similar to the policy created by CreateLBCookieStickinessPolicy,
- // except that the lifetime of the special Elastic Load Balancing cookie, AWSELB,
- // follows the lifetime of the application-generated cookie specified in the
- // policy configuration. The load balancer only inserts a new stickiness cookie
- // when the application response includes a new application cookie.
- //
- // If the application cookie is explicitly removed or expires, the session
- // stops being sticky until a new application cookie is issued.
- //
- // For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html#enable-sticky-sessions-application)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPolicyInput) (*CreateAppCookieStickinessPolicyOutput, error) {
- req, out := c.CreateAppCookieStickinessPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy"
- // CreateLBCookieStickinessPolicyRequest generates a request for the CreateLBCookieStickinessPolicy operation.
- func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) {
- op := &request.Operation{
- Name: opCreateLBCookieStickinessPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLBCookieStickinessPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLBCookieStickinessPolicyOutput{}
- req.Data = output
- return
- }
- // Generates a stickiness policy with sticky session lifetimes controlled by
- // the lifetime of the browser (user-agent) or a specified expiration period.
- // This policy can be associated only with HTTP/HTTPS listeners.
- //
- // When a load balancer implements this policy, the load balancer uses a special
- // cookie to track the back-end server instance for each request. When the load
- // balancer receives a request, it first checks to see if this cookie is present
- // in the request. If so, the load balancer sends the request to the application
- // server specified in the cookie. If not, the load balancer sends the request
- // to a server that is chosen based on the existing load-balancing algorithm.
- //
- // A cookie is inserted into the response for binding subsequent requests from
- // the same user to that server. The validity of the cookie is based on the
- // cookie expiration time, which is specified in the policy configuration.
- //
- // For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html#enable-sticky-sessions-duration)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPolicyInput) (*CreateLBCookieStickinessPolicyOutput, error) {
- req, out := c.CreateLBCookieStickinessPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLoadBalancer = "CreateLoadBalancer"
- // CreateLoadBalancerRequest generates a request for the CreateLoadBalancer operation.
- func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Creates a load balancer.
- //
- // If the call completes successfully, a new load balancer is created with
- // a unique Domain Name Service (DNS) name. The load balancer receives incoming
- // traffic and routes it to the registered instances. For more information,
- // see How Elastic Load Balancing Works (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/how-elb-works.html)
- // in the Elastic Load Balancing Developer Guide.
- //
- // You can create up to 20 load balancers per region per account. You can request
- // an increase for the number of load balancers for your account. For more information,
- // see Elastic Load Balancing Limits (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-limits.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
- req, out := c.CreateLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners"
- // CreateLoadBalancerListenersRequest generates a request for the CreateLoadBalancerListeners operation.
- func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancerListeners,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerListenersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLoadBalancerListenersOutput{}
- req.Data = output
- return
- }
- // Creates one or more listeners for the specified load balancer. If a listener
- // with the specified port does not already exist, it is created; otherwise,
- // the properties of the new listener must match the properties of the existing
- // listener.
- //
- // For more information, see Add a Listener to Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/us-add-listener.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) {
- req, out := c.CreateLoadBalancerListenersRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy"
- // CreateLoadBalancerPolicyRequest generates a request for the CreateLoadBalancerPolicy operation.
- func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) {
- op := &request.Operation{
- Name: opCreateLoadBalancerPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLoadBalancerPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLoadBalancerPolicyOutput{}
- req.Data = output
- return
- }
- // Creates a policy with the specified attributes for the specified load balancer.
- //
- // Policies are settings that are saved for your load balancer and that can
- // be applied to the front-end listener or the back-end application server,
- // depending on the policy type.
- func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*CreateLoadBalancerPolicyOutput, error) {
- req, out := c.CreateLoadBalancerPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLoadBalancer = "DeleteLoadBalancer"
- // DeleteLoadBalancerRequest generates a request for the DeleteLoadBalancer operation.
- func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Deletes the specified load balancer.
- //
- // If you are attempting to recreate a load balancer, you must reconfigure
- // all settings. The DNS name associated with a deleted load balancer are no
- // longer usable. The name and associated DNS record of the deleted load balancer
- // no longer exist and traffic sent to any of its IP addresses is no longer
- // delivered to back-end instances.
- //
- // If the load balancer does not exist or has already been deleted, the call
- // to DeleteLoadBalancer still succeeds.
- func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) {
- req, out := c.DeleteLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners"
- // DeleteLoadBalancerListenersRequest generates a request for the DeleteLoadBalancerListeners operation.
- func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancerListeners,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerListenersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLoadBalancerListenersOutput{}
- req.Data = output
- return
- }
- // Deletes the specified listeners from the specified load balancer.
- func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInput) (*DeleteLoadBalancerListenersOutput, error) {
- req, out := c.DeleteLoadBalancerListenersRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy"
- // DeleteLoadBalancerPolicyRequest generates a request for the DeleteLoadBalancerPolicy operation.
- func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) {
- op := &request.Operation{
- Name: opDeleteLoadBalancerPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLoadBalancerPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLoadBalancerPolicyOutput{}
- req.Data = output
- return
- }
- // Deletes the specified policy from the specified load balancer. This policy
- // must not be enabled for any listeners.
- func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*DeleteLoadBalancerPolicyOutput, error) {
- req, out := c.DeleteLoadBalancerPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalancer"
- // DeregisterInstancesFromLoadBalancerRequest generates a request for the DeregisterInstancesFromLoadBalancer operation.
- func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDeregisterInstancesFromLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeregisterInstancesFromLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeregisterInstancesFromLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Deregisters the specified instances from the specified load balancer. After
- // the instance is deregistered, it no longer receives traffic from the load
- // balancer.
- //
- // You can use DescribeLoadBalancers to verify that the instance is deregistered
- // from the load balancer.
- //
- // For more information, see Deregister and Register Amazon EC2 Instances (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFromLoadBalancerInput) (*DeregisterInstancesFromLoadBalancerOutput, error) {
- req, out := c.DeregisterInstancesFromLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeInstanceHealth = "DescribeInstanceHealth"
- // DescribeInstanceHealthRequest generates a request for the DescribeInstanceHealth operation.
- func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) {
- op := &request.Operation{
- Name: opDescribeInstanceHealth,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeInstanceHealthInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeInstanceHealthOutput{}
- req.Data = output
- return
- }
- // Describes the state of the specified instances registered with the specified
- // load balancer. If no instances are specified, the call describes the state
- // of all instances registered with the load balancer, not including any terminated
- // instances.
- func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*DescribeInstanceHealthOutput, error) {
- req, out := c.DescribeInstanceHealthRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
- // DescribeLoadBalancerAttributesRequest generates a request for the DescribeLoadBalancerAttributes operation.
- func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancerAttributesOutput{}
- req.Data = output
- return
- }
- // Describes the attributes for the specified load balancer.
- func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttributesInput) (*DescribeLoadBalancerAttributesOutput, error) {
- req, out := c.DescribeLoadBalancerAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies"
- // DescribeLoadBalancerPoliciesRequest generates a request for the DescribeLoadBalancerPolicies operation.
- func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerPolicies,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerPoliciesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancerPoliciesOutput{}
- req.Data = output
- return
- }
- // Describes the specified policies.
- //
- // If you specify a load balancer name, the action returns the descriptions
- // of all policies created for the load balancer. If you specify a policy name
- // associated with your load balancer, the action returns the description of
- // that policy. If you don't specify a load balancer name, the action returns
- // descriptions of the specified sample policies, or descriptions of all sample
- // policies. The names of the sample policies have the ELBSample- prefix.
- func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesInput) (*DescribeLoadBalancerPoliciesOutput, error) {
- req, out := c.DescribeLoadBalancerPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes"
- // DescribeLoadBalancerPolicyTypesRequest generates a request for the DescribeLoadBalancerPolicyTypes operation.
- func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancerPolicyTypes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoadBalancerPolicyTypesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancerPolicyTypesOutput{}
- req.Data = output
- return
- }
- // Describes the specified load balancer policy types.
- //
- // You can use these policy types with CreateLoadBalancerPolicy to create policy
- // configurations for a load balancer.
- func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyTypesInput) (*DescribeLoadBalancerPolicyTypesOutput, error) {
- req, out := c.DescribeLoadBalancerPolicyTypesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLoadBalancers = "DescribeLoadBalancers"
- // DescribeLoadBalancersRequest generates a request for the DescribeLoadBalancers operation.
- func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
- op := &request.Operation{
- Name: opDescribeLoadBalancers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"NextMarker"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeLoadBalancersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLoadBalancersOutput{}
- req.Data = output
- return
- }
- // Describes the specified the load balancers. If no load balancers are specified,
- // the call describes all of your load balancers.
- func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*DescribeLoadBalancersOutput, error) {
- req, out := c.DescribeLoadBalancersRequest(input)
- err := req.Send()
- return out, err
- }
- func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeLoadBalancersRequest(input)
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeLoadBalancersOutput), lastPage)
- })
- }
- const opDescribeTags = "DescribeTags"
- // DescribeTagsRequest generates a request for the DescribeTags operation.
- func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
- op := &request.Operation{
- Name: opDescribeTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTagsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeTagsOutput{}
- req.Data = output
- return
- }
- // Describes the tags associated with the specified load balancers.
- func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
- req, out := c.DescribeTagsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
- // DetachLoadBalancerFromSubnetsRequest generates a request for the DetachLoadBalancerFromSubnets operation.
- func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
- op := &request.Operation{
- Name: opDetachLoadBalancerFromSubnets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DetachLoadBalancerFromSubnetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DetachLoadBalancerFromSubnetsOutput{}
- req.Data = output
- return
- }
- // Removes the specified subnets from the set of configured subnets for the
- // load balancer.
- //
- // After a subnet is removed, all EC2 instances registered with the load balancer
- // in the removed subnet go into the OutOfService state. Then, the load balancer
- // balances the traffic among the remaining routable subnets.
- func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnetsInput) (*DetachLoadBalancerFromSubnetsOutput, error) {
- req, out := c.DetachLoadBalancerFromSubnetsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
- // DisableAvailabilityZonesForLoadBalancerRequest generates a request for the DisableAvailabilityZonesForLoadBalancer operation.
- func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
- op := &request.Operation{
- Name: opDisableAvailabilityZonesForLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableAvailabilityZonesForLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DisableAvailabilityZonesForLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Removes the specified Availability Zones from the set of Availability Zones
- // for the specified load balancer.
- //
- // There must be at least one Availability Zone registered with a load balancer
- // at all times. After an Availability Zone is removed, all instances registered
- // with the load balancer that are in the removed Availability Zone go into
- // the OutOfService state. Then, the load balancer attempts to equally balance
- // the traffic among its remaining Availability Zones.
- //
- // For more information, see Disable an Availability Zone from a Load-Balanced
- // Application (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_ShrinkLBApp04.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailabilityZonesForLoadBalancerInput) (*DisableAvailabilityZonesForLoadBalancerOutput, error) {
- req, out := c.DisableAvailabilityZonesForLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
- // EnableAvailabilityZonesForLoadBalancerRequest generates a request for the EnableAvailabilityZonesForLoadBalancer operation.
- func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
- op := &request.Operation{
- Name: opEnableAvailabilityZonesForLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableAvailabilityZonesForLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &EnableAvailabilityZonesForLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Adds the specified Availability Zones to the set of Availability Zones for
- // the specified load balancer.
- //
- // The load balancer evenly distributes requests across all its registered
- // Availability Zones that contain instances.
- //
- // For more information, see Add Availability Zone (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_AddLBAvailabilityZone.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZonesForLoadBalancerInput) (*EnableAvailabilityZonesForLoadBalancerOutput, error) {
- req, out := c.EnableAvailabilityZonesForLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
- // ModifyLoadBalancerAttributesRequest generates a request for the ModifyLoadBalancerAttributes operation.
- func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
- op := &request.Operation{
- Name: opModifyLoadBalancerAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyLoadBalancerAttributesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ModifyLoadBalancerAttributesOutput{}
- req.Data = output
- return
- }
- // Modifies the attributes of the specified load balancer.
- //
- // You can modify the load balancer attributes, such as AccessLogs, ConnectionDraining,
- // and CrossZoneLoadBalancing by either enabling or disabling them. Or, you
- // can modify the load balancer attribute ConnectionSettings by specifying an
- // idle connection timeout value for your load balancer.
- //
- // For more information, see the following in the Elastic Load Balancing Developer
- // Guide:
- //
- // Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#request-routing)
- // Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
- // Access Logs (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/access-log-collection.html)
- // Idle Connection Timeout (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#idle-timeout)
- func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesInput) (*ModifyLoadBalancerAttributesOutput, error) {
- req, out := c.ModifyLoadBalancerAttributesRequest(input)
- err := req.Send()
- return out, err
- }
- const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
- // RegisterInstancesWithLoadBalancerRequest generates a request for the RegisterInstancesWithLoadBalancer operation.
- func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
- op := &request.Operation{
- Name: opRegisterInstancesWithLoadBalancer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RegisterInstancesWithLoadBalancerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RegisterInstancesWithLoadBalancerOutput{}
- req.Data = output
- return
- }
- // Adds the specified instances to the specified load balancer.
- //
- // The instance must be a running instance in the same network as the load
- // balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances
- // and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic
- // instances to that VPC and then register the linked EC2-Classic instances
- // with the load balancer in the VPC.
- //
- // Note that RegisterInstanceWithLoadBalancer completes when the request has
- // been registered. Instance registration happens shortly afterwards. To check
- // the state of the registered instances, use DescribeLoadBalancers or DescribeInstanceHealth.
- //
- // After the instance is registered, it starts receiving traffic and requests
- // from the load balancer. Any instance that is not in one of the Availability
- // Zones registered for the load balancer is moved to the OutOfService state.
- // If an Availability Zone is added to the load balancer later, any instances
- // registered with the load balancer move to the InService state.
- //
- // If you stop an instance registered with a load balancer and then start it,
- // the IP addresses associated with the instance changes. Elastic Load Balancing
- // cannot recognize the new IP address, which prevents it from routing traffic
- // to the instances. We recommend that you use the following sequence: stop
- // the instance, deregister the instance, start the instance, and then register
- // the instance. To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
- //
- // For more information, see Deregister and Register EC2 Instances (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_DeReg_Reg_Instances.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoadBalancerInput) (*RegisterInstancesWithLoadBalancerOutput, error) {
- req, out := c.RegisterInstancesWithLoadBalancerRequest(input)
- err := req.Send()
- return out, err
- }
- const opRemoveTags = "RemoveTags"
- // RemoveTagsRequest generates a request for the RemoveTags operation.
- func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
- op := &request.Operation{
- Name: opRemoveTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RemoveTagsOutput{}
- req.Data = output
- return
- }
- // Removes one or more tags from the specified load balancer.
- func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
- req, out := c.RemoveTagsRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
- // SetLoadBalancerListenerSSLCertificateRequest generates a request for the SetLoadBalancerListenerSSLCertificate operation.
- func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
- op := &request.Operation{
- Name: opSetLoadBalancerListenerSSLCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLoadBalancerListenerSSLCertificateInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLoadBalancerListenerSSLCertificateOutput{}
- req.Data = output
- return
- }
- // Sets the certificate that terminates the specified listener's SSL connections.
- // The specified certificate replaces any prior certificate that was used on
- // the same load balancer and port.
- //
- // For more information about updating your SSL certificate, see Updating an
- // SSL Certificate for a Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_UpdatingLoadBalancerSSL.html)
- // in the Elastic Load Balancing Developer Guide.
- func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
- req, out := c.SetLoadBalancerListenerSSLCertificateRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
- // SetLoadBalancerPoliciesForBackendServerRequest generates a request for the SetLoadBalancerPoliciesForBackendServer operation.
- func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
- op := &request.Operation{
- Name: opSetLoadBalancerPoliciesForBackendServer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLoadBalancerPoliciesForBackendServerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLoadBalancerPoliciesForBackendServerOutput{}
- req.Data = output
- return
- }
- // Replaces the set of policies associated with the specified port on which
- // the back-end server is listening with a new set of policies. At this time,
- // only the back-end server authentication policy type can be applied to the
- // back-end ports; this policy type is composed of multiple public key policies.
- //
- // Each time you use SetLoadBalancerPoliciesForBackendServer to enable the
- // policies, use the PolicyNames parameter to list the policies that you want
- // to enable.
- //
- // You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify
- // that the policy is associated with the back-end server.
- func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoliciesForBackendServerInput) (*SetLoadBalancerPoliciesForBackendServerOutput, error) {
- req, out := c.SetLoadBalancerPoliciesForBackendServerRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
- // SetLoadBalancerPoliciesOfListenerRequest generates a request for the SetLoadBalancerPoliciesOfListener operation.
- func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
- op := &request.Operation{
- Name: opSetLoadBalancerPoliciesOfListener,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLoadBalancerPoliciesOfListenerInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLoadBalancerPoliciesOfListenerOutput{}
- req.Data = output
- return
- }
- // Associates, updates, or disables a policy with a listener for the specified
- // load balancer. You can associate multiple policies with a listener.
- func (c *ELB) SetLoadBalancerPoliciesOfListener(input *SetLoadBalancerPoliciesOfListenerInput) (*SetLoadBalancerPoliciesOfListenerOutput, error) {
- req, out := c.SetLoadBalancerPoliciesOfListenerRequest(input)
- err := req.Send()
- return out, err
- }
- // Information about the AccessLog attribute.
- type AccessLog struct {
- // The interval for publishing the access logs. You can specify an interval
- // of either 5 minutes or 60 minutes.
- //
- // Default: 60 minutes
- EmitInterval *int64 `type:"integer"`
- // Specifies whether access log is enabled for the load balancer.
- Enabled *bool `type:"boolean" required:"true"`
- // The name of the Amazon S3 bucket where the access logs are stored.
- S3BucketName *string `type:"string"`
- // The logical hierarchy you created for your Amazon S3 bucket, for example
- // my-bucket-prefix/prod. If the prefix is not provided, the log is placed at
- // the root level of the bucket.
- S3BucketPrefix *string `type:"string"`
- metadataAccessLog `json:"-" xml:"-"`
- }
- type metadataAccessLog struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AccessLog) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AccessLog) GoString() string {
- return s.String()
- }
- type AddTagsInput struct {
- // The name of the load balancer. You can specify one load balancer only.
- LoadBalancerNames []*string `type:"list" required:"true"`
- // The tags.
- Tags []*Tag `type:"list" required:"true"`
- metadataAddTagsInput `json:"-" xml:"-"`
- }
- type metadataAddTagsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AddTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsInput) GoString() string {
- return s.String()
- }
- type AddTagsOutput struct {
- metadataAddTagsOutput `json:"-" xml:"-"`
- }
- type metadataAddTagsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AddTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsOutput) GoString() string {
- return s.String()
- }
- // This data type is reserved.
- type AdditionalAttribute struct {
- // This parameter is reserved.
- Key *string `type:"string"`
- // This parameter is reserved.
- Value *string `type:"string"`
- metadataAdditionalAttribute `json:"-" xml:"-"`
- }
- type metadataAdditionalAttribute struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AdditionalAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AdditionalAttribute) GoString() string {
- return s.String()
- }
- // Information about a policy for application-controlled session stickiness.
- type AppCookieStickinessPolicy struct {
- // The name of the application cookie used for stickiness.
- CookieName *string `type:"string"`
- // The mnemonic name for the policy being created. The name must be unique within
- // a set of policies for this load balancer.
- PolicyName *string `type:"string"`
- metadataAppCookieStickinessPolicy `json:"-" xml:"-"`
- }
- type metadataAppCookieStickinessPolicy struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AppCookieStickinessPolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AppCookieStickinessPolicy) GoString() string {
- return s.String()
- }
- type ApplySecurityGroupsToLoadBalancerInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The IDs of the security groups to associate with the load balancer. Note
- // that you cannot specify the name of the security group.
- SecurityGroups []*string `type:"list" required:"true"`
- metadataApplySecurityGroupsToLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataApplySecurityGroupsToLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerInput) GoString() string {
- return s.String()
- }
- type ApplySecurityGroupsToLoadBalancerOutput struct {
- // The IDs of the security groups associated with the load balancer.
- SecurityGroups []*string `type:"list"`
- metadataApplySecurityGroupsToLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataApplySecurityGroupsToLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplySecurityGroupsToLoadBalancerOutput) GoString() string {
- return s.String()
- }
- type AttachLoadBalancerToSubnetsInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The IDs of the subnets to add for the load balancer. You can add only one
- // subnet per Availability Zone.
- Subnets []*string `type:"list" required:"true"`
- metadataAttachLoadBalancerToSubnetsInput `json:"-" xml:"-"`
- }
- type metadataAttachLoadBalancerToSubnetsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AttachLoadBalancerToSubnetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachLoadBalancerToSubnetsInput) GoString() string {
- return s.String()
- }
- type AttachLoadBalancerToSubnetsOutput struct {
- // The IDs of the subnets attached to the load balancer.
- Subnets []*string `type:"list"`
- metadataAttachLoadBalancerToSubnetsOutput `json:"-" xml:"-"`
- }
- type metadataAttachLoadBalancerToSubnetsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s AttachLoadBalancerToSubnetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttachLoadBalancerToSubnetsOutput) GoString() string {
- return s.String()
- }
- // Information about the configuration of a back-end server.
- type BackendServerDescription struct {
- // The port on which the back-end server is listening.
- InstancePort *int64 `type:"integer"`
- // The names of the policies enabled for the back-end server.
- PolicyNames []*string `type:"list"`
- metadataBackendServerDescription `json:"-" xml:"-"`
- }
- type metadataBackendServerDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s BackendServerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BackendServerDescription) GoString() string {
- return s.String()
- }
- type ConfigureHealthCheckInput struct {
- // The configuration information for the new health check.
- HealthCheck *HealthCheck `type:"structure" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataConfigureHealthCheckInput `json:"-" xml:"-"`
- }
- type metadataConfigureHealthCheckInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ConfigureHealthCheckInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfigureHealthCheckInput) GoString() string {
- return s.String()
- }
- type ConfigureHealthCheckOutput struct {
- // The updated health check.
- HealthCheck *HealthCheck `type:"structure"`
- metadataConfigureHealthCheckOutput `json:"-" xml:"-"`
- }
- type metadataConfigureHealthCheckOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ConfigureHealthCheckOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConfigureHealthCheckOutput) GoString() string {
- return s.String()
- }
- // Information about the ConnectionDraining attribute.
- type ConnectionDraining struct {
- // Specifies whether connection draining is enabled for the load balancer.
- Enabled *bool `type:"boolean" required:"true"`
- // The maximum time, in seconds, to keep the existing connections open before
- // deregistering the instances.
- Timeout *int64 `type:"integer"`
- metadataConnectionDraining `json:"-" xml:"-"`
- }
- type metadataConnectionDraining struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ConnectionDraining) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConnectionDraining) GoString() string {
- return s.String()
- }
- // Information about the ConnectionSettings attribute.
- type ConnectionSettings struct {
- // The time, in seconds, that the connection is allowed to be idle (no data
- // has been sent over the connection) before it is closed by the load balancer.
- IdleTimeout *int64 `type:"integer" required:"true"`
- metadataConnectionSettings `json:"-" xml:"-"`
- }
- type metadataConnectionSettings struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ConnectionSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ConnectionSettings) GoString() string {
- return s.String()
- }
- type CreateAppCookieStickinessPolicyInput struct {
- // The name of the application cookie used for stickiness.
- CookieName *string `type:"string" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The name of the policy being created. This name must be unique within the
- // set of policies for this load balancer.
- PolicyName *string `type:"string" required:"true"`
- metadataCreateAppCookieStickinessPolicyInput `json:"-" xml:"-"`
- }
- type metadataCreateAppCookieStickinessPolicyInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAppCookieStickinessPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAppCookieStickinessPolicyInput) GoString() string {
- return s.String()
- }
- type CreateAppCookieStickinessPolicyOutput struct {
- metadataCreateAppCookieStickinessPolicyOutput `json:"-" xml:"-"`
- }
- type metadataCreateAppCookieStickinessPolicyOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAppCookieStickinessPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAppCookieStickinessPolicyOutput) GoString() string {
- return s.String()
- }
- type CreateLBCookieStickinessPolicyInput struct {
- // The time period, in seconds, after which the cookie should be considered
- // stale. If you do not specify this parameter, the sticky session lasts for
- // the duration of the browser session.
- CookieExpirationPeriod *int64 `type:"long"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The name of the policy being created. This name must be unique within the
- // set of policies for this load balancer.
- PolicyName *string `type:"string" required:"true"`
- metadataCreateLBCookieStickinessPolicyInput `json:"-" xml:"-"`
- }
- type metadataCreateLBCookieStickinessPolicyInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLBCookieStickinessPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLBCookieStickinessPolicyInput) GoString() string {
- return s.String()
- }
- type CreateLBCookieStickinessPolicyOutput struct {
- metadataCreateLBCookieStickinessPolicyOutput `json:"-" xml:"-"`
- }
- type metadataCreateLBCookieStickinessPolicyOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLBCookieStickinessPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLBCookieStickinessPolicyOutput) GoString() string {
- return s.String()
- }
- type CreateLoadBalancerInput struct {
- // One or more Availability Zones from the same region as the load balancer.
- // Traffic is equally distributed across all specified Availability Zones.
- //
- // You must specify at least one Availability Zone.
- //
- // You can add more Availability Zones after you create the load balancer using
- // EnableAvailabilityZonesForLoadBalancer.
- AvailabilityZones []*string `type:"list"`
- // The listeners.
- //
- // For more information, see Listeners for Your Load Balancer (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
- // in the Elastic Load Balancing Developer Guide.
- Listeners []*Listener `type:"list" required:"true"`
- // The name of the load balancer.
- //
- // This name must be unique within your AWS account, must have a maximum of
- // 32 characters, must contain only alphanumeric characters or hyphens, and
- // cannot begin or end with a hyphen.
- LoadBalancerName *string `type:"string" required:"true"`
- // The type of a load balancer. Valid only for load balancers in a VPC.
- //
- // By default, Elastic Load Balancing creates an Internet-facing load balancer
- // with a publicly resolvable DNS name, which resolves to public IP addresses.
- // For more information about Internet-facing and Internal load balancers, see
- // Internet-facing and Internal Load Balancers (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/vpc-loadbalancer-types.html)
- // in the Elastic Load Balancing Developer Guide.
- //
- // Specify internal to create an internal load balancer with a DNS name that
- // resolves to private IP addresses.
- Scheme *string `type:"string"`
- // The IDs of the security groups to assign to the load balancer.
- SecurityGroups []*string `type:"list"`
- // The IDs of the subnets in your VPC to attach to the load balancer. Specify
- // one subnet per Availability Zone specified in AvailabilityZones.
- Subnets []*string `type:"list"`
- // A list of tags to assign to the load balancer.
- //
- // For more information about tagging your load balancer, see Tagging (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#tagging-elb)
- // in the Elastic Load Balancing Developer Guide.
- Tags []*Tag `type:"list"`
- metadataCreateLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataCreateLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerInput) GoString() string {
- return s.String()
- }
- type CreateLoadBalancerListenersInput struct {
- // The listeners.
- Listeners []*Listener `type:"list" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataCreateLoadBalancerListenersInput `json:"-" xml:"-"`
- }
- type metadataCreateLoadBalancerListenersInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerListenersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerListenersInput) GoString() string {
- return s.String()
- }
- type CreateLoadBalancerListenersOutput struct {
- metadataCreateLoadBalancerListenersOutput `json:"-" xml:"-"`
- }
- type metadataCreateLoadBalancerListenersOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerListenersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerListenersOutput) GoString() string {
- return s.String()
- }
- type CreateLoadBalancerOutput struct {
- // The DNS name of the load balancer.
- DNSName *string `type:"string"`
- metadataCreateLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataCreateLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerOutput) GoString() string {
- return s.String()
- }
- type CreateLoadBalancerPolicyInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The attributes for the policy.
- PolicyAttributes []*PolicyAttribute `type:"list"`
- // The name of the load balancer policy to be created. This name must be unique
- // within the set of policies for this load balancer.
- PolicyName *string `type:"string" required:"true"`
- // The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
- PolicyTypeName *string `type:"string" required:"true"`
- metadataCreateLoadBalancerPolicyInput `json:"-" xml:"-"`
- }
- type metadataCreateLoadBalancerPolicyInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerPolicyInput) GoString() string {
- return s.String()
- }
- type CreateLoadBalancerPolicyOutput struct {
- metadataCreateLoadBalancerPolicyOutput `json:"-" xml:"-"`
- }
- type metadataCreateLoadBalancerPolicyOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CreateLoadBalancerPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLoadBalancerPolicyOutput) GoString() string {
- return s.String()
- }
- // Information about the CrossZoneLoadBalancing attribute.
- type CrossZoneLoadBalancing struct {
- // Specifies whether cross-zone load balancing is enabled for the load balancer.
- Enabled *bool `type:"boolean" required:"true"`
- metadataCrossZoneLoadBalancing `json:"-" xml:"-"`
- }
- type metadataCrossZoneLoadBalancing struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s CrossZoneLoadBalancing) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CrossZoneLoadBalancing) GoString() string {
- return s.String()
- }
- type DeleteLoadBalancerInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataDeleteLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataDeleteLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerInput) GoString() string {
- return s.String()
- }
- type DeleteLoadBalancerListenersInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The client port numbers of the listeners.
- LoadBalancerPorts []*int64 `type:"list" required:"true"`
- metadataDeleteLoadBalancerListenersInput `json:"-" xml:"-"`
- }
- type metadataDeleteLoadBalancerListenersInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerListenersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerListenersInput) GoString() string {
- return s.String()
- }
- type DeleteLoadBalancerListenersOutput struct {
- metadataDeleteLoadBalancerListenersOutput `json:"-" xml:"-"`
- }
- type metadataDeleteLoadBalancerListenersOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerListenersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerListenersOutput) GoString() string {
- return s.String()
- }
- type DeleteLoadBalancerOutput struct {
- metadataDeleteLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataDeleteLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // =
- type DeleteLoadBalancerPolicyInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The name of the policy.
- PolicyName *string `type:"string" required:"true"`
- metadataDeleteLoadBalancerPolicyInput `json:"-" xml:"-"`
- }
- type metadataDeleteLoadBalancerPolicyInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerPolicyInput) GoString() string {
- return s.String()
- }
- type DeleteLoadBalancerPolicyOutput struct {
- metadataDeleteLoadBalancerPolicyOutput `json:"-" xml:"-"`
- }
- type metadataDeleteLoadBalancerPolicyOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteLoadBalancerPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLoadBalancerPolicyOutput) GoString() string {
- return s.String()
- }
- type DeregisterInstancesFromLoadBalancerInput struct {
- // The IDs of the instances.
- Instances []*Instance `type:"list" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataDeregisterInstancesFromLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataDeregisterInstancesFromLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeregisterInstancesFromLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterInstancesFromLoadBalancerInput) GoString() string {
- return s.String()
- }
- type DeregisterInstancesFromLoadBalancerOutput struct {
- // The remaining instances registered with the load balancer.
- Instances []*Instance `type:"list"`
- metadataDeregisterInstancesFromLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataDeregisterInstancesFromLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DeregisterInstancesFromLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterInstancesFromLoadBalancerOutput) GoString() string {
- return s.String()
- }
- type DescribeInstanceHealthInput struct {
- // The IDs of the instances.
- Instances []*Instance `type:"list"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataDescribeInstanceHealthInput `json:"-" xml:"-"`
- }
- type metadataDescribeInstanceHealthInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeInstanceHealthInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeInstanceHealthInput) GoString() string {
- return s.String()
- }
- type DescribeInstanceHealthOutput struct {
- // Information about the health of the instances.
- InstanceStates []*InstanceState `type:"list"`
- metadataDescribeInstanceHealthOutput `json:"-" xml:"-"`
- }
- type metadataDescribeInstanceHealthOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeInstanceHealthOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeInstanceHealthOutput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancerAttributesInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataDescribeLoadBalancerAttributesInput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancerAttributesInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerAttributesInput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancerAttributesOutput struct {
- // Information about the load balancer attributes.
- LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
- metadataDescribeLoadBalancerAttributesOutput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancerAttributesOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerAttributesOutput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancerPoliciesInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // The names of the policies.
- PolicyNames []*string `type:"list"`
- metadataDescribeLoadBalancerPoliciesInput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancerPoliciesInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPoliciesInput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancerPoliciesOutput struct {
- // Information about the policies.
- PolicyDescriptions []*PolicyDescription `type:"list"`
- metadataDescribeLoadBalancerPoliciesOutput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancerPoliciesOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPoliciesOutput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancerPolicyTypesInput struct {
- // The names of the policy types. If no names are specified, describes all policy
- // types defined by Elastic Load Balancing.
- PolicyTypeNames []*string `type:"list"`
- metadataDescribeLoadBalancerPolicyTypesInput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancerPolicyTypesInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPolicyTypesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPolicyTypesInput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancerPolicyTypesOutput struct {
- // Information about the policy types.
- PolicyTypeDescriptions []*PolicyTypeDescription `type:"list"`
- metadataDescribeLoadBalancerPolicyTypesOutput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancerPolicyTypesOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancerPolicyTypesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancerPolicyTypesOutput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancersInput struct {
- // The names of the load balancers.
- LoadBalancerNames []*string `type:"list"`
- // The marker for the next set of results. (You received this marker from a
- // previous call.)
- Marker *string `type:"string"`
- // The maximum number of results to return with this call (a number from 1 to
- // 400). The default is 400.
- PageSize *int64 `type:"integer"`
- metadataDescribeLoadBalancersInput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancersInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancersInput) GoString() string {
- return s.String()
- }
- type DescribeLoadBalancersOutput struct {
- // Information about the load balancers.
- LoadBalancerDescriptions []*LoadBalancerDescription `type:"list"`
- // The marker to use when requesting the next set of results. If there are no
- // additional results, the string is empty.
- NextMarker *string `type:"string"`
- metadataDescribeLoadBalancersOutput `json:"-" xml:"-"`
- }
- type metadataDescribeLoadBalancersOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeLoadBalancersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoadBalancersOutput) GoString() string {
- return s.String()
- }
- type DescribeTagsInput struct {
- // The names of the load balancers.
- LoadBalancerNames []*string `type:"list" required:"true"`
- metadataDescribeTagsInput `json:"-" xml:"-"`
- }
- type metadataDescribeTagsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTagsInput) GoString() string {
- return s.String()
- }
- type DescribeTagsOutput struct {
- // Information about the tags.
- TagDescriptions []*TagDescription `type:"list"`
- metadataDescribeTagsOutput `json:"-" xml:"-"`
- }
- type metadataDescribeTagsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTagsOutput) GoString() string {
- return s.String()
- }
- type DetachLoadBalancerFromSubnetsInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The IDs of the subnets.
- Subnets []*string `type:"list" required:"true"`
- metadataDetachLoadBalancerFromSubnetsInput `json:"-" xml:"-"`
- }
- type metadataDetachLoadBalancerFromSubnetsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DetachLoadBalancerFromSubnetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachLoadBalancerFromSubnetsInput) GoString() string {
- return s.String()
- }
- type DetachLoadBalancerFromSubnetsOutput struct {
- // The IDs of the remaining subnets for the load balancer.
- Subnets []*string `type:"list"`
- metadataDetachLoadBalancerFromSubnetsOutput `json:"-" xml:"-"`
- }
- type metadataDetachLoadBalancerFromSubnetsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DetachLoadBalancerFromSubnetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetachLoadBalancerFromSubnetsOutput) GoString() string {
- return s.String()
- }
- type DisableAvailabilityZonesForLoadBalancerInput struct {
- // The Availability Zones.
- AvailabilityZones []*string `type:"list" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataDisableAvailabilityZonesForLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataDisableAvailabilityZonesForLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerInput) GoString() string {
- return s.String()
- }
- type DisableAvailabilityZonesForLoadBalancerOutput struct {
- // The remaining Availability Zones for the load balancer.
- AvailabilityZones []*string `type:"list"`
- metadataDisableAvailabilityZonesForLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataDisableAvailabilityZonesForLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableAvailabilityZonesForLoadBalancerOutput) GoString() string {
- return s.String()
- }
- type EnableAvailabilityZonesForLoadBalancerInput struct {
- // The Availability Zones. These must be in the same region as the load balancer.
- AvailabilityZones []*string `type:"list" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataEnableAvailabilityZonesForLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataEnableAvailabilityZonesForLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerInput) GoString() string {
- return s.String()
- }
- type EnableAvailabilityZonesForLoadBalancerOutput struct {
- // The updated list of Availability Zones for the load balancer.
- AvailabilityZones []*string `type:"list"`
- metadataEnableAvailabilityZonesForLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataEnableAvailabilityZonesForLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableAvailabilityZonesForLoadBalancerOutput) GoString() string {
- return s.String()
- }
- // Information about a health check.
- type HealthCheck struct {
- // The number of consecutive health checks successes required before moving
- // the instance to the Healthy state.
- HealthyThreshold *int64 `type:"integer" required:"true"`
- // The approximate interval, in seconds, between health checks of an individual
- // instance.
- Interval *int64 `type:"integer" required:"true"`
- // The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL.
- // The range of valid ports is one (1) through 65535.
- //
- // TCP is the default, specified as a TCP: port pair, for example "TCP:5000".
- // In this case, a health check simply attempts to open a TCP connection to
- // the instance on the specified port. Failure to connect within the configured
- // timeout is considered unhealthy.
- //
- // SSL is also specified as SSL: port pair, for example, SSL:5000.
- //
- // For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified
- // as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle".
- // In this case, a HTTP GET request is issued to the instance on the given port
- // and path. Any answer other than "200 OK" within the timeout period is considered
- // unhealthy.
- //
- // The total length of the HTTP ping target must be 1024 16-bit Unicode characters
- // or less.
- Target *string `type:"string" required:"true"`
- // The amount of time, in seconds, during which no response means a failed health
- // check.
- //
- // This value must be less than the Interval value.
- Timeout *int64 `type:"integer" required:"true"`
- // The number of consecutive health check failures required before moving the
- // instance to the Unhealthy state.
- UnhealthyThreshold *int64 `type:"integer" required:"true"`
- metadataHealthCheck `json:"-" xml:"-"`
- }
- type metadataHealthCheck struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s HealthCheck) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HealthCheck) GoString() string {
- return s.String()
- }
- // The ID of a back-end instance.
- type Instance struct {
- // The ID of the instance.
- InstanceId *string `type:"string"`
- metadataInstance `json:"-" xml:"-"`
- }
- type metadataInstance struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s Instance) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Instance) GoString() string {
- return s.String()
- }
- // Information about the state of a back-end instance.
- type InstanceState struct {
- // A description of the instance state. This string can contain one or more
- // of the following messages.
- //
- // N/A
- //
- // A transient error occurred. Please try again later.
- //
- // Instance has failed at least the UnhealthyThreshold number of health checks
- // consecutively.
- //
- // Instance has not passed the configured HealthyThreshold number of health
- // checks consecutively.
- //
- // Instance registration is still in progress.
- //
- // Instance is in the EC2 Availability Zone for which LoadBalancer is not
- // configured to route traffic to.
- //
- // Instance is not currently registered with the LoadBalancer.
- //
- // Instance deregistration currently in progress.
- //
- // Disable Availability Zone is currently in progress.
- //
- // Instance is in pending state.
- //
- // Instance is in stopped state.
- //
- // Instance is in terminated state.
- Description *string `type:"string"`
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // Information about the cause of OutOfService instances. Specifically, whether
- // the cause is Elastic Load Balancing or the instance.
- //
- // Valid values: ELB | Instance | N/A
- ReasonCode *string `type:"string"`
- // The current state of the instance.
- //
- // Valid values: InService | OutOfService | Unknown
- State *string `type:"string"`
- metadataInstanceState `json:"-" xml:"-"`
- }
- type metadataInstanceState struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s InstanceState) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceState) GoString() string {
- return s.String()
- }
- // Information about a policy for duration-based session stickiness.
- type LBCookieStickinessPolicy struct {
- // The time period, in seconds, after which the cookie should be considered
- // stale. If this parameter is not specified, the stickiness session lasts for
- // the duration of the browser session.
- CookieExpirationPeriod *int64 `type:"long"`
- // The name for the policy being created. The name must be unique within the
- // set of policies for this load balancer.
- PolicyName *string `type:"string"`
- metadataLBCookieStickinessPolicy `json:"-" xml:"-"`
- }
- type metadataLBCookieStickinessPolicy struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s LBCookieStickinessPolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LBCookieStickinessPolicy) GoString() string {
- return s.String()
- }
- // Information about a listener.
- //
- // For information about the protocols and the ports supported by Elastic Load
- // Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
- // in the Elastic Load Balancing Developer Guide.
- type Listener struct {
- // The port on which the instance is listening.
- InstancePort *int64 `type:"integer" required:"true"`
- // The protocol to use for routing traffic to back-end instances: HTTP, HTTPS,
- // TCP, or SSL.
- //
- // If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol
- // must be at the same protocol.
- //
- // If there is another listener with the same InstancePort whose InstanceProtocol
- // is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
- //
- // If there is another listener with the same InstancePort whose InstanceProtocol
- // is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
- InstanceProtocol *string `type:"string"`
- // The port on which the load balancer is listening. The supported ports are:
- // 25, 80, 443, 465, 587, and 1024-65535.
- LoadBalancerPort *int64 `type:"integer" required:"true"`
- // The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP,
- // or SSL.
- Protocol *string `type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the server certificate.
- SSLCertificateId *string `type:"string"`
- metadataListener `json:"-" xml:"-"`
- }
- type metadataListener struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s Listener) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Listener) GoString() string {
- return s.String()
- }
- // The policies enabled for a listener.
- type ListenerDescription struct {
- // Information about a listener.
- //
- // For information about the protocols and the ports supported by Elastic Load
- // Balancing, see Listener Configurations for Elastic Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-listener-config.html)
- // in the Elastic Load Balancing Developer Guide.
- Listener *Listener `type:"structure"`
- // The policies. If there are no policies enabled, the list is empty.
- PolicyNames []*string `type:"list"`
- metadataListenerDescription `json:"-" xml:"-"`
- }
- type metadataListenerDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ListenerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListenerDescription) GoString() string {
- return s.String()
- }
- // The attributes for a load balancer.
- type LoadBalancerAttributes struct {
- // If enabled, the load balancer captures detailed information of all requests
- // and delivers the information to the Amazon S3 bucket that you specify.
- //
- // For more information, see Enable Access Logs (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-access-logs.html)
- // in the Elastic Load Balancing Developer Guide.
- AccessLog *AccessLog `type:"structure"`
- // This parameter is reserved.
- AdditionalAttributes []*AdditionalAttribute `type:"list"`
- // If enabled, the load balancer allows existing requests to complete before
- // the load balancer shifts traffic away from a deregistered or unhealthy back-end
- // instance.
- //
- // For more information, see Enable Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-conn-drain.html)
- // in the Elastic Load Balancing Developer Guide.
- ConnectionDraining *ConnectionDraining `type:"structure"`
- // If enabled, the load balancer allows the connections to remain idle (no data
- // is sent over the connection) for the specified duration.
- //
- // By default, Elastic Load Balancing maintains a 60-second idle connection
- // timeout for both front-end and back-end connections of your load balancer.
- // For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-idle-timeout.html)
- // in the Elastic Load Balancing Developer Guide.
- ConnectionSettings *ConnectionSettings `type:"structure"`
- // If enabled, the load balancer routes the request traffic evenly across all
- // back-end instances regardless of the Availability Zones.
- //
- // For more information, see Enable Cross-Zone Load Balancing (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-disable-crosszone-lb.html)
- // in the Elastic Load Balancing Developer Guide.
- CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
- metadataLoadBalancerAttributes `json:"-" xml:"-"`
- }
- type metadataLoadBalancerAttributes struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s LoadBalancerAttributes) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerAttributes) GoString() string {
- return s.String()
- }
- // Information about a load balancer.
- type LoadBalancerDescription struct {
- // The Availability Zones for the load balancer.
- AvailabilityZones []*string `type:"list"`
- // Information about the back-end servers.
- BackendServerDescriptions []*BackendServerDescription `type:"list"`
- // The Amazon Route 53 hosted zone associated with the load balancer.
- //
- // For more information, see Using Domain Names With Elastic Load Balancing
- // (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html)
- // in the Elastic Load Balancing Developer Guide.
- CanonicalHostedZoneName *string `type:"string"`
- // The ID of the Amazon Route 53 hosted zone name associated with the load balancer.
- CanonicalHostedZoneNameID *string `type:"string"`
- // The date and time the load balancer was created.
- CreatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
- // The external DNS name of the load balancer.
- DNSName *string `type:"string"`
- // Information about the health checks conducted on the load balancer.
- HealthCheck *HealthCheck `type:"structure"`
- // The IDs of the instances for the load balancer.
- Instances []*Instance `type:"list"`
- // The listeners for the load balancer.
- ListenerDescriptions []*ListenerDescription `type:"list"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // The policies defined for the load balancer.
- Policies *Policies `type:"structure"`
- // The type of load balancer. Valid only for load balancers in a VPC.
- //
- // If Scheme is internet-facing, the load balancer has a public DNS name that
- // resolves to a public IP address.
- //
- // If Scheme is internal, the load balancer has a public DNS name that resolves
- // to a private IP address.
- Scheme *string `type:"string"`
- // The security groups for the load balancer. Valid only for load balancers
- // in a VPC.
- SecurityGroups []*string `type:"list"`
- // The security group that you can use as part of your inbound rules for your
- // load balancer's back-end application instances. To only allow traffic from
- // load balancers, add a security group rule to your back end instance that
- // specifies this source security group as the inbound source.
- SourceSecurityGroup *SourceSecurityGroup `type:"structure"`
- // The IDs of the subnets for the load balancer.
- Subnets []*string `type:"list"`
- // The ID of the VPC for the load balancer.
- VPCId *string `type:"string"`
- metadataLoadBalancerDescription `json:"-" xml:"-"`
- }
- type metadataLoadBalancerDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s LoadBalancerDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoadBalancerDescription) GoString() string {
- return s.String()
- }
- type ModifyLoadBalancerAttributesInput struct {
- // The attributes of the load balancer.
- LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataModifyLoadBalancerAttributesInput `json:"-" xml:"-"`
- }
- type metadataModifyLoadBalancerAttributesInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyLoadBalancerAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyLoadBalancerAttributesInput) GoString() string {
- return s.String()
- }
- type ModifyLoadBalancerAttributesOutput struct {
- // The attributes for a load balancer.
- LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- metadataModifyLoadBalancerAttributesOutput `json:"-" xml:"-"`
- }
- type metadataModifyLoadBalancerAttributesOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyLoadBalancerAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyLoadBalancerAttributesOutput) GoString() string {
- return s.String()
- }
- // The policies for a load balancer.
- type Policies struct {
- // The stickiness policies created using CreateAppCookieStickinessPolicy.
- AppCookieStickinessPolicies []*AppCookieStickinessPolicy `type:"list"`
- // The stickiness policies created using CreateLBCookieStickinessPolicy.
- LBCookieStickinessPolicies []*LBCookieStickinessPolicy `type:"list"`
- // The policies other than the stickiness policies.
- OtherPolicies []*string `type:"list"`
- metadataPolicies `json:"-" xml:"-"`
- }
- type metadataPolicies struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s Policies) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Policies) GoString() string {
- return s.String()
- }
- // Information about a policy attribute.
- type PolicyAttribute struct {
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // The value of the attribute.
- AttributeValue *string `type:"string"`
- metadataPolicyAttribute `json:"-" xml:"-"`
- }
- type metadataPolicyAttribute struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s PolicyAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyAttribute) GoString() string {
- return s.String()
- }
- // Information about a policy attribute.
- type PolicyAttributeDescription struct {
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // The value of the attribute.
- AttributeValue *string `type:"string"`
- metadataPolicyAttributeDescription `json:"-" xml:"-"`
- }
- type metadataPolicyAttributeDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s PolicyAttributeDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyAttributeDescription) GoString() string {
- return s.String()
- }
- // Information about a policy attribute type.
- type PolicyAttributeTypeDescription struct {
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // The type of the attribute. For example, Boolean or Integer.
- AttributeType *string `type:"string"`
- // The cardinality of the attribute.
- //
- // Valid values:
- //
- // ONE(1) : Single value required ZERO_OR_ONE(0..1) : Up to one value can
- // be supplied ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed ONE_OR_MORE(1..*0)
- // : Required. Multiple values are allowed
- Cardinality *string `type:"string"`
- // The default value of the attribute, if applicable.
- DefaultValue *string `type:"string"`
- // A description of the attribute.
- Description *string `type:"string"`
- metadataPolicyAttributeTypeDescription `json:"-" xml:"-"`
- }
- type metadataPolicyAttributeTypeDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s PolicyAttributeTypeDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyAttributeTypeDescription) GoString() string {
- return s.String()
- }
- // Information about a policy.
- type PolicyDescription struct {
- // The policy attributes.
- PolicyAttributeDescriptions []*PolicyAttributeDescription `type:"list"`
- // The name of the policy.
- PolicyName *string `type:"string"`
- // The name of the policy type.
- PolicyTypeName *string `type:"string"`
- metadataPolicyDescription `json:"-" xml:"-"`
- }
- type metadataPolicyDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s PolicyDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyDescription) GoString() string {
- return s.String()
- }
- // Information about a policy type.
- type PolicyTypeDescription struct {
- // A description of the policy type.
- Description *string `type:"string"`
- // The description of the policy attributes associated with the policies defined
- // by Elastic Load Balancing.
- PolicyAttributeTypeDescriptions []*PolicyAttributeTypeDescription `type:"list"`
- // The name of the policy type.
- PolicyTypeName *string `type:"string"`
- metadataPolicyTypeDescription `json:"-" xml:"-"`
- }
- type metadataPolicyTypeDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s PolicyTypeDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PolicyTypeDescription) GoString() string {
- return s.String()
- }
- type RegisterInstancesWithLoadBalancerInput struct {
- // The IDs of the instances.
- Instances []*Instance `type:"list" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- metadataRegisterInstancesWithLoadBalancerInput `json:"-" xml:"-"`
- }
- type metadataRegisterInstancesWithLoadBalancerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s RegisterInstancesWithLoadBalancerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterInstancesWithLoadBalancerInput) GoString() string {
- return s.String()
- }
- type RegisterInstancesWithLoadBalancerOutput struct {
- // The updated list of instances for the load balancer.
- Instances []*Instance `type:"list"`
- metadataRegisterInstancesWithLoadBalancerOutput `json:"-" xml:"-"`
- }
- type metadataRegisterInstancesWithLoadBalancerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s RegisterInstancesWithLoadBalancerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RegisterInstancesWithLoadBalancerOutput) GoString() string {
- return s.String()
- }
- type RemoveTagsInput struct {
- // The name of the load balancer. You can specify a maximum of one load balancer
- // name.
- LoadBalancerNames []*string `type:"list" required:"true"`
- // The list of tag keys to remove.
- Tags []*TagKeyOnly `type:"list" required:"true"`
- metadataRemoveTagsInput `json:"-" xml:"-"`
- }
- type metadataRemoveTagsInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsInput) GoString() string {
- return s.String()
- }
- type RemoveTagsOutput struct {
- metadataRemoveTagsOutput `json:"-" xml:"-"`
- }
- type metadataRemoveTagsOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsOutput) GoString() string {
- return s.String()
- }
- type SetLoadBalancerListenerSSLCertificateInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The port that uses the specified SSL certificate.
- LoadBalancerPort *int64 `type:"integer" required:"true"`
- // The Amazon Resource Name (ARN) of the SSL certificate.
- SSLCertificateId *string `type:"string" required:"true"`
- metadataSetLoadBalancerListenerSSLCertificateInput `json:"-" xml:"-"`
- }
- type metadataSetLoadBalancerListenerSSLCertificateInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateInput) GoString() string {
- return s.String()
- }
- type SetLoadBalancerListenerSSLCertificateOutput struct {
- metadataSetLoadBalancerListenerSSLCertificateOutput `json:"-" xml:"-"`
- }
- type metadataSetLoadBalancerListenerSSLCertificateOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerListenerSSLCertificateOutput) GoString() string {
- return s.String()
- }
- type SetLoadBalancerPoliciesForBackendServerInput struct {
- // The port number associated with the back-end server.
- InstancePort *int64 `type:"integer" required:"true"`
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The names of the policies. If the list is empty, then all current polices
- // are removed from the back-end server.
- PolicyNames []*string `type:"list" required:"true"`
- metadataSetLoadBalancerPoliciesForBackendServerInput `json:"-" xml:"-"`
- }
- type metadataSetLoadBalancerPoliciesForBackendServerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerInput) GoString() string {
- return s.String()
- }
- type SetLoadBalancerPoliciesForBackendServerOutput struct {
- metadataSetLoadBalancerPoliciesForBackendServerOutput `json:"-" xml:"-"`
- }
- type metadataSetLoadBalancerPoliciesForBackendServerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesForBackendServerOutput) GoString() string {
- return s.String()
- }
- type SetLoadBalancerPoliciesOfListenerInput struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string" required:"true"`
- // The external port of the load balancer for the policy.
- LoadBalancerPort *int64 `type:"integer" required:"true"`
- // The names of the policies. If the list is empty, the current policy is removed
- // from the listener.
- PolicyNames []*string `type:"list" required:"true"`
- metadataSetLoadBalancerPoliciesOfListenerInput `json:"-" xml:"-"`
- }
- type metadataSetLoadBalancerPoliciesOfListenerInput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerInput) GoString() string {
- return s.String()
- }
- type SetLoadBalancerPoliciesOfListenerOutput struct {
- metadataSetLoadBalancerPoliciesOfListenerOutput `json:"-" xml:"-"`
- }
- type metadataSetLoadBalancerPoliciesOfListenerOutput struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLoadBalancerPoliciesOfListenerOutput) GoString() string {
- return s.String()
- }
- // Information about a source security group.
- type SourceSecurityGroup struct {
- // The name of the security group.
- GroupName *string `type:"string"`
- // The owner of the security group.
- OwnerAlias *string `type:"string"`
- metadataSourceSecurityGroup `json:"-" xml:"-"`
- }
- type metadataSourceSecurityGroup struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s SourceSecurityGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SourceSecurityGroup) GoString() string {
- return s.String()
- }
- // Information about a tag.
- type Tag struct {
- // The key of the tag.
- Key *string `type:"string" required:"true"`
- // The value of the tag.
- Value *string `type:"string"`
- metadataTag `json:"-" xml:"-"`
- }
- type metadataTag struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // The tags associated with a load balancer.
- type TagDescription struct {
- // The name of the load balancer.
- LoadBalancerName *string `type:"string"`
- // The tags.
- Tags []*Tag `type:"list"`
- metadataTagDescription `json:"-" xml:"-"`
- }
- type metadataTagDescription struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s TagDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagDescription) GoString() string {
- return s.String()
- }
- // The key of a tag.
- type TagKeyOnly struct {
- // The name of the key.
- Key *string `type:"string"`
- metadataTagKeyOnly `json:"-" xml:"-"`
- }
- type metadataTagKeyOnly struct {
- SDKShapeTraits bool `type:"structure"`
- }
- // String returns the string representation
- func (s TagKeyOnly) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagKeyOnly) GoString() string {
- return s.String()
- }
|