api.go 195 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package elasticbeanstalk provides a client for AWS Elastic Beanstalk.
  3. package elasticbeanstalk
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/query"
  11. )
  12. const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate"
  13. // AbortEnvironmentUpdateRequest generates a "aws/request.Request" representing the
  14. // client's request for the AbortEnvironmentUpdate operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the AbortEnvironmentUpdate method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the AbortEnvironmentUpdateRequest method.
  28. // req, resp := client.AbortEnvironmentUpdateRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *ElasticBeanstalk) AbortEnvironmentUpdateRequest(input *AbortEnvironmentUpdateInput) (req *request.Request, output *AbortEnvironmentUpdateOutput) {
  36. op := &request.Operation{
  37. Name: opAbortEnvironmentUpdate,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AbortEnvironmentUpdateInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  46. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  47. output = &AbortEnvironmentUpdateOutput{}
  48. req.Data = output
  49. return
  50. }
  51. // Cancels in-progress environment configuration update or application version
  52. // deployment.
  53. func (c *ElasticBeanstalk) AbortEnvironmentUpdate(input *AbortEnvironmentUpdateInput) (*AbortEnvironmentUpdateOutput, error) {
  54. req, out := c.AbortEnvironmentUpdateRequest(input)
  55. err := req.Send()
  56. return out, err
  57. }
  58. const opApplyEnvironmentManagedAction = "ApplyEnvironmentManagedAction"
  59. // ApplyEnvironmentManagedActionRequest generates a "aws/request.Request" representing the
  60. // client's request for the ApplyEnvironmentManagedAction operation. The "output" return
  61. // value can be used to capture response data after the request's "Send" method
  62. // is called.
  63. //
  64. // Creating a request object using this method should be used when you want to inject
  65. // custom logic into the request's lifecycle using a custom handler, or if you want to
  66. // access properties on the request object before or after sending the request. If
  67. // you just want the service response, call the ApplyEnvironmentManagedAction method directly
  68. // instead.
  69. //
  70. // Note: You must call the "Send" method on the returned request object in order
  71. // to execute the request.
  72. //
  73. // // Example sending a request using the ApplyEnvironmentManagedActionRequest method.
  74. // req, resp := client.ApplyEnvironmentManagedActionRequest(params)
  75. //
  76. // err := req.Send()
  77. // if err == nil { // resp is now filled
  78. // fmt.Println(resp)
  79. // }
  80. //
  81. func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvironmentManagedActionInput) (req *request.Request, output *ApplyEnvironmentManagedActionOutput) {
  82. op := &request.Operation{
  83. Name: opApplyEnvironmentManagedAction,
  84. HTTPMethod: "POST",
  85. HTTPPath: "/",
  86. }
  87. if input == nil {
  88. input = &ApplyEnvironmentManagedActionInput{}
  89. }
  90. req = c.newRequest(op, input, output)
  91. output = &ApplyEnvironmentManagedActionOutput{}
  92. req.Data = output
  93. return
  94. }
  95. // Applies a scheduled managed action immediately. A managed action can be applied
  96. // only if its status is Scheduled. Get the status and action ID of a managed
  97. // action with DescribeEnvironmentManagedActions.
  98. func (c *ElasticBeanstalk) ApplyEnvironmentManagedAction(input *ApplyEnvironmentManagedActionInput) (*ApplyEnvironmentManagedActionOutput, error) {
  99. req, out := c.ApplyEnvironmentManagedActionRequest(input)
  100. err := req.Send()
  101. return out, err
  102. }
  103. const opCheckDNSAvailability = "CheckDNSAvailability"
  104. // CheckDNSAvailabilityRequest generates a "aws/request.Request" representing the
  105. // client's request for the CheckDNSAvailability operation. The "output" return
  106. // value can be used to capture response data after the request's "Send" method
  107. // is called.
  108. //
  109. // Creating a request object using this method should be used when you want to inject
  110. // custom logic into the request's lifecycle using a custom handler, or if you want to
  111. // access properties on the request object before or after sending the request. If
  112. // you just want the service response, call the CheckDNSAvailability method directly
  113. // instead.
  114. //
  115. // Note: You must call the "Send" method on the returned request object in order
  116. // to execute the request.
  117. //
  118. // // Example sending a request using the CheckDNSAvailabilityRequest method.
  119. // req, resp := client.CheckDNSAvailabilityRequest(params)
  120. //
  121. // err := req.Send()
  122. // if err == nil { // resp is now filled
  123. // fmt.Println(resp)
  124. // }
  125. //
  126. func (c *ElasticBeanstalk) CheckDNSAvailabilityRequest(input *CheckDNSAvailabilityInput) (req *request.Request, output *CheckDNSAvailabilityOutput) {
  127. op := &request.Operation{
  128. Name: opCheckDNSAvailability,
  129. HTTPMethod: "POST",
  130. HTTPPath: "/",
  131. }
  132. if input == nil {
  133. input = &CheckDNSAvailabilityInput{}
  134. }
  135. req = c.newRequest(op, input, output)
  136. output = &CheckDNSAvailabilityOutput{}
  137. req.Data = output
  138. return
  139. }
  140. // Checks if the specified CNAME is available.
  141. func (c *ElasticBeanstalk) CheckDNSAvailability(input *CheckDNSAvailabilityInput) (*CheckDNSAvailabilityOutput, error) {
  142. req, out := c.CheckDNSAvailabilityRequest(input)
  143. err := req.Send()
  144. return out, err
  145. }
  146. const opComposeEnvironments = "ComposeEnvironments"
  147. // ComposeEnvironmentsRequest generates a "aws/request.Request" representing the
  148. // client's request for the ComposeEnvironments operation. The "output" return
  149. // value can be used to capture response data after the request's "Send" method
  150. // is called.
  151. //
  152. // Creating a request object using this method should be used when you want to inject
  153. // custom logic into the request's lifecycle using a custom handler, or if you want to
  154. // access properties on the request object before or after sending the request. If
  155. // you just want the service response, call the ComposeEnvironments method directly
  156. // instead.
  157. //
  158. // Note: You must call the "Send" method on the returned request object in order
  159. // to execute the request.
  160. //
  161. // // Example sending a request using the ComposeEnvironmentsRequest method.
  162. // req, resp := client.ComposeEnvironmentsRequest(params)
  163. //
  164. // err := req.Send()
  165. // if err == nil { // resp is now filled
  166. // fmt.Println(resp)
  167. // }
  168. //
  169. func (c *ElasticBeanstalk) ComposeEnvironmentsRequest(input *ComposeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) {
  170. op := &request.Operation{
  171. Name: opComposeEnvironments,
  172. HTTPMethod: "POST",
  173. HTTPPath: "/",
  174. }
  175. if input == nil {
  176. input = &ComposeEnvironmentsInput{}
  177. }
  178. req = c.newRequest(op, input, output)
  179. output = &EnvironmentDescriptionsMessage{}
  180. req.Data = output
  181. return
  182. }
  183. // Create or update a group of environments that each run a separate component
  184. // of a single application. Takes a list of version labels that specify application
  185. // source bundles for each of the environments to create or update. The name
  186. // of each environment and other required information must be included in the
  187. // source bundles in an environment manifest named env.yaml. See Compose Environments
  188. // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-mgmt-compose.html)
  189. // for details.
  190. func (c *ElasticBeanstalk) ComposeEnvironments(input *ComposeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) {
  191. req, out := c.ComposeEnvironmentsRequest(input)
  192. err := req.Send()
  193. return out, err
  194. }
  195. const opCreateApplication = "CreateApplication"
  196. // CreateApplicationRequest generates a "aws/request.Request" representing the
  197. // client's request for the CreateApplication operation. The "output" return
  198. // value can be used to capture response data after the request's "Send" method
  199. // is called.
  200. //
  201. // Creating a request object using this method should be used when you want to inject
  202. // custom logic into the request's lifecycle using a custom handler, or if you want to
  203. // access properties on the request object before or after sending the request. If
  204. // you just want the service response, call the CreateApplication method directly
  205. // instead.
  206. //
  207. // Note: You must call the "Send" method on the returned request object in order
  208. // to execute the request.
  209. //
  210. // // Example sending a request using the CreateApplicationRequest method.
  211. // req, resp := client.CreateApplicationRequest(params)
  212. //
  213. // err := req.Send()
  214. // if err == nil { // resp is now filled
  215. // fmt.Println(resp)
  216. // }
  217. //
  218. func (c *ElasticBeanstalk) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *ApplicationDescriptionMessage) {
  219. op := &request.Operation{
  220. Name: opCreateApplication,
  221. HTTPMethod: "POST",
  222. HTTPPath: "/",
  223. }
  224. if input == nil {
  225. input = &CreateApplicationInput{}
  226. }
  227. req = c.newRequest(op, input, output)
  228. output = &ApplicationDescriptionMessage{}
  229. req.Data = output
  230. return
  231. }
  232. // Creates an application that has one configuration template named default
  233. // and no application versions.
  234. func (c *ElasticBeanstalk) CreateApplication(input *CreateApplicationInput) (*ApplicationDescriptionMessage, error) {
  235. req, out := c.CreateApplicationRequest(input)
  236. err := req.Send()
  237. return out, err
  238. }
  239. const opCreateApplicationVersion = "CreateApplicationVersion"
  240. // CreateApplicationVersionRequest generates a "aws/request.Request" representing the
  241. // client's request for the CreateApplicationVersion operation. The "output" return
  242. // value can be used to capture response data after the request's "Send" method
  243. // is called.
  244. //
  245. // Creating a request object using this method should be used when you want to inject
  246. // custom logic into the request's lifecycle using a custom handler, or if you want to
  247. // access properties on the request object before or after sending the request. If
  248. // you just want the service response, call the CreateApplicationVersion method directly
  249. // instead.
  250. //
  251. // Note: You must call the "Send" method on the returned request object in order
  252. // to execute the request.
  253. //
  254. // // Example sending a request using the CreateApplicationVersionRequest method.
  255. // req, resp := client.CreateApplicationVersionRequest(params)
  256. //
  257. // err := req.Send()
  258. // if err == nil { // resp is now filled
  259. // fmt.Println(resp)
  260. // }
  261. //
  262. func (c *ElasticBeanstalk) CreateApplicationVersionRequest(input *CreateApplicationVersionInput) (req *request.Request, output *ApplicationVersionDescriptionMessage) {
  263. op := &request.Operation{
  264. Name: opCreateApplicationVersion,
  265. HTTPMethod: "POST",
  266. HTTPPath: "/",
  267. }
  268. if input == nil {
  269. input = &CreateApplicationVersionInput{}
  270. }
  271. req = c.newRequest(op, input, output)
  272. output = &ApplicationVersionDescriptionMessage{}
  273. req.Data = output
  274. return
  275. }
  276. // Creates an application version for the specified application.
  277. //
  278. // Once you create an application version with a specified Amazon S3 bucket
  279. // and key location, you cannot change that Amazon S3 location. If you change
  280. // the Amazon S3 location, you receive an exception when you attempt to launch
  281. // an environment from the application version.
  282. func (c *ElasticBeanstalk) CreateApplicationVersion(input *CreateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) {
  283. req, out := c.CreateApplicationVersionRequest(input)
  284. err := req.Send()
  285. return out, err
  286. }
  287. const opCreateConfigurationTemplate = "CreateConfigurationTemplate"
  288. // CreateConfigurationTemplateRequest generates a "aws/request.Request" representing the
  289. // client's request for the CreateConfigurationTemplate operation. The "output" return
  290. // value can be used to capture response data after the request's "Send" method
  291. // is called.
  292. //
  293. // Creating a request object using this method should be used when you want to inject
  294. // custom logic into the request's lifecycle using a custom handler, or if you want to
  295. // access properties on the request object before or after sending the request. If
  296. // you just want the service response, call the CreateConfigurationTemplate method directly
  297. // instead.
  298. //
  299. // Note: You must call the "Send" method on the returned request object in order
  300. // to execute the request.
  301. //
  302. // // Example sending a request using the CreateConfigurationTemplateRequest method.
  303. // req, resp := client.CreateConfigurationTemplateRequest(params)
  304. //
  305. // err := req.Send()
  306. // if err == nil { // resp is now filled
  307. // fmt.Println(resp)
  308. // }
  309. //
  310. func (c *ElasticBeanstalk) CreateConfigurationTemplateRequest(input *CreateConfigurationTemplateInput) (req *request.Request, output *ConfigurationSettingsDescription) {
  311. op := &request.Operation{
  312. Name: opCreateConfigurationTemplate,
  313. HTTPMethod: "POST",
  314. HTTPPath: "/",
  315. }
  316. if input == nil {
  317. input = &CreateConfigurationTemplateInput{}
  318. }
  319. req = c.newRequest(op, input, output)
  320. output = &ConfigurationSettingsDescription{}
  321. req.Data = output
  322. return
  323. }
  324. // Creates a configuration template. Templates are associated with a specific
  325. // application and are used to deploy different versions of the application
  326. // with the same configuration settings.
  327. //
  328. // Related Topics
  329. //
  330. // DescribeConfigurationOptions DescribeConfigurationSettings ListAvailableSolutionStacks
  331. func (c *ElasticBeanstalk) CreateConfigurationTemplate(input *CreateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) {
  332. req, out := c.CreateConfigurationTemplateRequest(input)
  333. err := req.Send()
  334. return out, err
  335. }
  336. const opCreateEnvironment = "CreateEnvironment"
  337. // CreateEnvironmentRequest generates a "aws/request.Request" representing the
  338. // client's request for the CreateEnvironment operation. The "output" return
  339. // value can be used to capture response data after the request's "Send" method
  340. // is called.
  341. //
  342. // Creating a request object using this method should be used when you want to inject
  343. // custom logic into the request's lifecycle using a custom handler, or if you want to
  344. // access properties on the request object before or after sending the request. If
  345. // you just want the service response, call the CreateEnvironment method directly
  346. // instead.
  347. //
  348. // Note: You must call the "Send" method on the returned request object in order
  349. // to execute the request.
  350. //
  351. // // Example sending a request using the CreateEnvironmentRequest method.
  352. // req, resp := client.CreateEnvironmentRequest(params)
  353. //
  354. // err := req.Send()
  355. // if err == nil { // resp is now filled
  356. // fmt.Println(resp)
  357. // }
  358. //
  359. func (c *ElasticBeanstalk) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) {
  360. op := &request.Operation{
  361. Name: opCreateEnvironment,
  362. HTTPMethod: "POST",
  363. HTTPPath: "/",
  364. }
  365. if input == nil {
  366. input = &CreateEnvironmentInput{}
  367. }
  368. req = c.newRequest(op, input, output)
  369. output = &EnvironmentDescription{}
  370. req.Data = output
  371. return
  372. }
  373. // Launches an environment for the specified application using the specified
  374. // configuration.
  375. func (c *ElasticBeanstalk) CreateEnvironment(input *CreateEnvironmentInput) (*EnvironmentDescription, error) {
  376. req, out := c.CreateEnvironmentRequest(input)
  377. err := req.Send()
  378. return out, err
  379. }
  380. const opCreateStorageLocation = "CreateStorageLocation"
  381. // CreateStorageLocationRequest generates a "aws/request.Request" representing the
  382. // client's request for the CreateStorageLocation operation. The "output" return
  383. // value can be used to capture response data after the request's "Send" method
  384. // is called.
  385. //
  386. // Creating a request object using this method should be used when you want to inject
  387. // custom logic into the request's lifecycle using a custom handler, or if you want to
  388. // access properties on the request object before or after sending the request. If
  389. // you just want the service response, call the CreateStorageLocation method directly
  390. // instead.
  391. //
  392. // Note: You must call the "Send" method on the returned request object in order
  393. // to execute the request.
  394. //
  395. // // Example sending a request using the CreateStorageLocationRequest method.
  396. // req, resp := client.CreateStorageLocationRequest(params)
  397. //
  398. // err := req.Send()
  399. // if err == nil { // resp is now filled
  400. // fmt.Println(resp)
  401. // }
  402. //
  403. func (c *ElasticBeanstalk) CreateStorageLocationRequest(input *CreateStorageLocationInput) (req *request.Request, output *CreateStorageLocationOutput) {
  404. op := &request.Operation{
  405. Name: opCreateStorageLocation,
  406. HTTPMethod: "POST",
  407. HTTPPath: "/",
  408. }
  409. if input == nil {
  410. input = &CreateStorageLocationInput{}
  411. }
  412. req = c.newRequest(op, input, output)
  413. output = &CreateStorageLocationOutput{}
  414. req.Data = output
  415. return
  416. }
  417. // Creates the Amazon S3 storage location for the account.
  418. //
  419. // This location is used to store user log files.
  420. func (c *ElasticBeanstalk) CreateStorageLocation(input *CreateStorageLocationInput) (*CreateStorageLocationOutput, error) {
  421. req, out := c.CreateStorageLocationRequest(input)
  422. err := req.Send()
  423. return out, err
  424. }
  425. const opDeleteApplication = "DeleteApplication"
  426. // DeleteApplicationRequest generates a "aws/request.Request" representing the
  427. // client's request for the DeleteApplication operation. The "output" return
  428. // value can be used to capture response data after the request's "Send" method
  429. // is called.
  430. //
  431. // Creating a request object using this method should be used when you want to inject
  432. // custom logic into the request's lifecycle using a custom handler, or if you want to
  433. // access properties on the request object before or after sending the request. If
  434. // you just want the service response, call the DeleteApplication method directly
  435. // instead.
  436. //
  437. // Note: You must call the "Send" method on the returned request object in order
  438. // to execute the request.
  439. //
  440. // // Example sending a request using the DeleteApplicationRequest method.
  441. // req, resp := client.DeleteApplicationRequest(params)
  442. //
  443. // err := req.Send()
  444. // if err == nil { // resp is now filled
  445. // fmt.Println(resp)
  446. // }
  447. //
  448. func (c *ElasticBeanstalk) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
  449. op := &request.Operation{
  450. Name: opDeleteApplication,
  451. HTTPMethod: "POST",
  452. HTTPPath: "/",
  453. }
  454. if input == nil {
  455. input = &DeleteApplicationInput{}
  456. }
  457. req = c.newRequest(op, input, output)
  458. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  459. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  460. output = &DeleteApplicationOutput{}
  461. req.Data = output
  462. return
  463. }
  464. // Deletes the specified application along with all associated versions and
  465. // configurations. The application versions will not be deleted from your Amazon
  466. // S3 bucket.
  467. //
  468. // You cannot delete an application that has a running environment.
  469. func (c *ElasticBeanstalk) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
  470. req, out := c.DeleteApplicationRequest(input)
  471. err := req.Send()
  472. return out, err
  473. }
  474. const opDeleteApplicationVersion = "DeleteApplicationVersion"
  475. // DeleteApplicationVersionRequest generates a "aws/request.Request" representing the
  476. // client's request for the DeleteApplicationVersion operation. The "output" return
  477. // value can be used to capture response data after the request's "Send" method
  478. // is called.
  479. //
  480. // Creating a request object using this method should be used when you want to inject
  481. // custom logic into the request's lifecycle using a custom handler, or if you want to
  482. // access properties on the request object before or after sending the request. If
  483. // you just want the service response, call the DeleteApplicationVersion method directly
  484. // instead.
  485. //
  486. // Note: You must call the "Send" method on the returned request object in order
  487. // to execute the request.
  488. //
  489. // // Example sending a request using the DeleteApplicationVersionRequest method.
  490. // req, resp := client.DeleteApplicationVersionRequest(params)
  491. //
  492. // err := req.Send()
  493. // if err == nil { // resp is now filled
  494. // fmt.Println(resp)
  495. // }
  496. //
  497. func (c *ElasticBeanstalk) DeleteApplicationVersionRequest(input *DeleteApplicationVersionInput) (req *request.Request, output *DeleteApplicationVersionOutput) {
  498. op := &request.Operation{
  499. Name: opDeleteApplicationVersion,
  500. HTTPMethod: "POST",
  501. HTTPPath: "/",
  502. }
  503. if input == nil {
  504. input = &DeleteApplicationVersionInput{}
  505. }
  506. req = c.newRequest(op, input, output)
  507. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  508. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  509. output = &DeleteApplicationVersionOutput{}
  510. req.Data = output
  511. return
  512. }
  513. // Deletes the specified version from the specified application.
  514. //
  515. // You cannot delete an application version that is associated with a running
  516. // environment.
  517. func (c *ElasticBeanstalk) DeleteApplicationVersion(input *DeleteApplicationVersionInput) (*DeleteApplicationVersionOutput, error) {
  518. req, out := c.DeleteApplicationVersionRequest(input)
  519. err := req.Send()
  520. return out, err
  521. }
  522. const opDeleteConfigurationTemplate = "DeleteConfigurationTemplate"
  523. // DeleteConfigurationTemplateRequest generates a "aws/request.Request" representing the
  524. // client's request for the DeleteConfigurationTemplate operation. The "output" return
  525. // value can be used to capture response data after the request's "Send" method
  526. // is called.
  527. //
  528. // Creating a request object using this method should be used when you want to inject
  529. // custom logic into the request's lifecycle using a custom handler, or if you want to
  530. // access properties on the request object before or after sending the request. If
  531. // you just want the service response, call the DeleteConfigurationTemplate method directly
  532. // instead.
  533. //
  534. // Note: You must call the "Send" method on the returned request object in order
  535. // to execute the request.
  536. //
  537. // // Example sending a request using the DeleteConfigurationTemplateRequest method.
  538. // req, resp := client.DeleteConfigurationTemplateRequest(params)
  539. //
  540. // err := req.Send()
  541. // if err == nil { // resp is now filled
  542. // fmt.Println(resp)
  543. // }
  544. //
  545. func (c *ElasticBeanstalk) DeleteConfigurationTemplateRequest(input *DeleteConfigurationTemplateInput) (req *request.Request, output *DeleteConfigurationTemplateOutput) {
  546. op := &request.Operation{
  547. Name: opDeleteConfigurationTemplate,
  548. HTTPMethod: "POST",
  549. HTTPPath: "/",
  550. }
  551. if input == nil {
  552. input = &DeleteConfigurationTemplateInput{}
  553. }
  554. req = c.newRequest(op, input, output)
  555. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  556. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  557. output = &DeleteConfigurationTemplateOutput{}
  558. req.Data = output
  559. return
  560. }
  561. // Deletes the specified configuration template.
  562. //
  563. // When you launch an environment using a configuration template, the environment
  564. // gets a copy of the template. You can delete or modify the environment's copy
  565. // of the template without affecting the running environment.
  566. func (c *ElasticBeanstalk) DeleteConfigurationTemplate(input *DeleteConfigurationTemplateInput) (*DeleteConfigurationTemplateOutput, error) {
  567. req, out := c.DeleteConfigurationTemplateRequest(input)
  568. err := req.Send()
  569. return out, err
  570. }
  571. const opDeleteEnvironmentConfiguration = "DeleteEnvironmentConfiguration"
  572. // DeleteEnvironmentConfigurationRequest generates a "aws/request.Request" representing the
  573. // client's request for the DeleteEnvironmentConfiguration operation. The "output" return
  574. // value can be used to capture response data after the request's "Send" method
  575. // is called.
  576. //
  577. // Creating a request object using this method should be used when you want to inject
  578. // custom logic into the request's lifecycle using a custom handler, or if you want to
  579. // access properties on the request object before or after sending the request. If
  580. // you just want the service response, call the DeleteEnvironmentConfiguration method directly
  581. // instead.
  582. //
  583. // Note: You must call the "Send" method on the returned request object in order
  584. // to execute the request.
  585. //
  586. // // Example sending a request using the DeleteEnvironmentConfigurationRequest method.
  587. // req, resp := client.DeleteEnvironmentConfigurationRequest(params)
  588. //
  589. // err := req.Send()
  590. // if err == nil { // resp is now filled
  591. // fmt.Println(resp)
  592. // }
  593. //
  594. func (c *ElasticBeanstalk) DeleteEnvironmentConfigurationRequest(input *DeleteEnvironmentConfigurationInput) (req *request.Request, output *DeleteEnvironmentConfigurationOutput) {
  595. op := &request.Operation{
  596. Name: opDeleteEnvironmentConfiguration,
  597. HTTPMethod: "POST",
  598. HTTPPath: "/",
  599. }
  600. if input == nil {
  601. input = &DeleteEnvironmentConfigurationInput{}
  602. }
  603. req = c.newRequest(op, input, output)
  604. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  605. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  606. output = &DeleteEnvironmentConfigurationOutput{}
  607. req.Data = output
  608. return
  609. }
  610. // Deletes the draft configuration associated with the running environment.
  611. //
  612. // Updating a running environment with any configuration changes creates a
  613. // draft configuration set. You can get the draft configuration using DescribeConfigurationSettings
  614. // while the update is in progress or if the update fails. The DeploymentStatus
  615. // for the draft configuration indicates whether the deployment is in process
  616. // or has failed. The draft configuration remains in existence until it is deleted
  617. // with this action.
  618. func (c *ElasticBeanstalk) DeleteEnvironmentConfiguration(input *DeleteEnvironmentConfigurationInput) (*DeleteEnvironmentConfigurationOutput, error) {
  619. req, out := c.DeleteEnvironmentConfigurationRequest(input)
  620. err := req.Send()
  621. return out, err
  622. }
  623. const opDescribeApplicationVersions = "DescribeApplicationVersions"
  624. // DescribeApplicationVersionsRequest generates a "aws/request.Request" representing the
  625. // client's request for the DescribeApplicationVersions operation. The "output" return
  626. // value can be used to capture response data after the request's "Send" method
  627. // is called.
  628. //
  629. // Creating a request object using this method should be used when you want to inject
  630. // custom logic into the request's lifecycle using a custom handler, or if you want to
  631. // access properties on the request object before or after sending the request. If
  632. // you just want the service response, call the DescribeApplicationVersions method directly
  633. // instead.
  634. //
  635. // Note: You must call the "Send" method on the returned request object in order
  636. // to execute the request.
  637. //
  638. // // Example sending a request using the DescribeApplicationVersionsRequest method.
  639. // req, resp := client.DescribeApplicationVersionsRequest(params)
  640. //
  641. // err := req.Send()
  642. // if err == nil { // resp is now filled
  643. // fmt.Println(resp)
  644. // }
  645. //
  646. func (c *ElasticBeanstalk) DescribeApplicationVersionsRequest(input *DescribeApplicationVersionsInput) (req *request.Request, output *DescribeApplicationVersionsOutput) {
  647. op := &request.Operation{
  648. Name: opDescribeApplicationVersions,
  649. HTTPMethod: "POST",
  650. HTTPPath: "/",
  651. }
  652. if input == nil {
  653. input = &DescribeApplicationVersionsInput{}
  654. }
  655. req = c.newRequest(op, input, output)
  656. output = &DescribeApplicationVersionsOutput{}
  657. req.Data = output
  658. return
  659. }
  660. // Retrieve a list of application versions stored in your AWS Elastic Beanstalk
  661. // storage bucket.
  662. func (c *ElasticBeanstalk) DescribeApplicationVersions(input *DescribeApplicationVersionsInput) (*DescribeApplicationVersionsOutput, error) {
  663. req, out := c.DescribeApplicationVersionsRequest(input)
  664. err := req.Send()
  665. return out, err
  666. }
  667. const opDescribeApplications = "DescribeApplications"
  668. // DescribeApplicationsRequest generates a "aws/request.Request" representing the
  669. // client's request for the DescribeApplications operation. The "output" return
  670. // value can be used to capture response data after the request's "Send" method
  671. // is called.
  672. //
  673. // Creating a request object using this method should be used when you want to inject
  674. // custom logic into the request's lifecycle using a custom handler, or if you want to
  675. // access properties on the request object before or after sending the request. If
  676. // you just want the service response, call the DescribeApplications method directly
  677. // instead.
  678. //
  679. // Note: You must call the "Send" method on the returned request object in order
  680. // to execute the request.
  681. //
  682. // // Example sending a request using the DescribeApplicationsRequest method.
  683. // req, resp := client.DescribeApplicationsRequest(params)
  684. //
  685. // err := req.Send()
  686. // if err == nil { // resp is now filled
  687. // fmt.Println(resp)
  688. // }
  689. //
  690. func (c *ElasticBeanstalk) DescribeApplicationsRequest(input *DescribeApplicationsInput) (req *request.Request, output *DescribeApplicationsOutput) {
  691. op := &request.Operation{
  692. Name: opDescribeApplications,
  693. HTTPMethod: "POST",
  694. HTTPPath: "/",
  695. }
  696. if input == nil {
  697. input = &DescribeApplicationsInput{}
  698. }
  699. req = c.newRequest(op, input, output)
  700. output = &DescribeApplicationsOutput{}
  701. req.Data = output
  702. return
  703. }
  704. // Returns the descriptions of existing applications.
  705. func (c *ElasticBeanstalk) DescribeApplications(input *DescribeApplicationsInput) (*DescribeApplicationsOutput, error) {
  706. req, out := c.DescribeApplicationsRequest(input)
  707. err := req.Send()
  708. return out, err
  709. }
  710. const opDescribeConfigurationOptions = "DescribeConfigurationOptions"
  711. // DescribeConfigurationOptionsRequest generates a "aws/request.Request" representing the
  712. // client's request for the DescribeConfigurationOptions operation. The "output" return
  713. // value can be used to capture response data after the request's "Send" method
  714. // is called.
  715. //
  716. // Creating a request object using this method should be used when you want to inject
  717. // custom logic into the request's lifecycle using a custom handler, or if you want to
  718. // access properties on the request object before or after sending the request. If
  719. // you just want the service response, call the DescribeConfigurationOptions method directly
  720. // instead.
  721. //
  722. // Note: You must call the "Send" method on the returned request object in order
  723. // to execute the request.
  724. //
  725. // // Example sending a request using the DescribeConfigurationOptionsRequest method.
  726. // req, resp := client.DescribeConfigurationOptionsRequest(params)
  727. //
  728. // err := req.Send()
  729. // if err == nil { // resp is now filled
  730. // fmt.Println(resp)
  731. // }
  732. //
  733. func (c *ElasticBeanstalk) DescribeConfigurationOptionsRequest(input *DescribeConfigurationOptionsInput) (req *request.Request, output *DescribeConfigurationOptionsOutput) {
  734. op := &request.Operation{
  735. Name: opDescribeConfigurationOptions,
  736. HTTPMethod: "POST",
  737. HTTPPath: "/",
  738. }
  739. if input == nil {
  740. input = &DescribeConfigurationOptionsInput{}
  741. }
  742. req = c.newRequest(op, input, output)
  743. output = &DescribeConfigurationOptionsOutput{}
  744. req.Data = output
  745. return
  746. }
  747. // Describes the configuration options that are used in a particular configuration
  748. // template or environment, or that a specified solution stack defines. The
  749. // description includes the values the options, their default values, and an
  750. // indication of the required action on a running environment if an option value
  751. // is changed.
  752. func (c *ElasticBeanstalk) DescribeConfigurationOptions(input *DescribeConfigurationOptionsInput) (*DescribeConfigurationOptionsOutput, error) {
  753. req, out := c.DescribeConfigurationOptionsRequest(input)
  754. err := req.Send()
  755. return out, err
  756. }
  757. const opDescribeConfigurationSettings = "DescribeConfigurationSettings"
  758. // DescribeConfigurationSettingsRequest generates a "aws/request.Request" representing the
  759. // client's request for the DescribeConfigurationSettings operation. The "output" return
  760. // value can be used to capture response data after the request's "Send" method
  761. // is called.
  762. //
  763. // Creating a request object using this method should be used when you want to inject
  764. // custom logic into the request's lifecycle using a custom handler, or if you want to
  765. // access properties on the request object before or after sending the request. If
  766. // you just want the service response, call the DescribeConfigurationSettings method directly
  767. // instead.
  768. //
  769. // Note: You must call the "Send" method on the returned request object in order
  770. // to execute the request.
  771. //
  772. // // Example sending a request using the DescribeConfigurationSettingsRequest method.
  773. // req, resp := client.DescribeConfigurationSettingsRequest(params)
  774. //
  775. // err := req.Send()
  776. // if err == nil { // resp is now filled
  777. // fmt.Println(resp)
  778. // }
  779. //
  780. func (c *ElasticBeanstalk) DescribeConfigurationSettingsRequest(input *DescribeConfigurationSettingsInput) (req *request.Request, output *DescribeConfigurationSettingsOutput) {
  781. op := &request.Operation{
  782. Name: opDescribeConfigurationSettings,
  783. HTTPMethod: "POST",
  784. HTTPPath: "/",
  785. }
  786. if input == nil {
  787. input = &DescribeConfigurationSettingsInput{}
  788. }
  789. req = c.newRequest(op, input, output)
  790. output = &DescribeConfigurationSettingsOutput{}
  791. req.Data = output
  792. return
  793. }
  794. // Returns a description of the settings for the specified configuration set,
  795. // that is, either a configuration template or the configuration set associated
  796. // with a running environment.
  797. //
  798. // When describing the settings for the configuration set associated with
  799. // a running environment, it is possible to receive two sets of setting descriptions.
  800. // One is the deployed configuration set, and the other is a draft configuration
  801. // of an environment that is either in the process of deployment or that failed
  802. // to deploy.
  803. //
  804. // Related Topics
  805. //
  806. // DeleteEnvironmentConfiguration
  807. func (c *ElasticBeanstalk) DescribeConfigurationSettings(input *DescribeConfigurationSettingsInput) (*DescribeConfigurationSettingsOutput, error) {
  808. req, out := c.DescribeConfigurationSettingsRequest(input)
  809. err := req.Send()
  810. return out, err
  811. }
  812. const opDescribeEnvironmentHealth = "DescribeEnvironmentHealth"
  813. // DescribeEnvironmentHealthRequest generates a "aws/request.Request" representing the
  814. // client's request for the DescribeEnvironmentHealth operation. The "output" return
  815. // value can be used to capture response data after the request's "Send" method
  816. // is called.
  817. //
  818. // Creating a request object using this method should be used when you want to inject
  819. // custom logic into the request's lifecycle using a custom handler, or if you want to
  820. // access properties on the request object before or after sending the request. If
  821. // you just want the service response, call the DescribeEnvironmentHealth method directly
  822. // instead.
  823. //
  824. // Note: You must call the "Send" method on the returned request object in order
  825. // to execute the request.
  826. //
  827. // // Example sending a request using the DescribeEnvironmentHealthRequest method.
  828. // req, resp := client.DescribeEnvironmentHealthRequest(params)
  829. //
  830. // err := req.Send()
  831. // if err == nil { // resp is now filled
  832. // fmt.Println(resp)
  833. // }
  834. //
  835. func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvironmentHealthInput) (req *request.Request, output *DescribeEnvironmentHealthOutput) {
  836. op := &request.Operation{
  837. Name: opDescribeEnvironmentHealth,
  838. HTTPMethod: "POST",
  839. HTTPPath: "/",
  840. }
  841. if input == nil {
  842. input = &DescribeEnvironmentHealthInput{}
  843. }
  844. req = c.newRequest(op, input, output)
  845. output = &DescribeEnvironmentHealthOutput{}
  846. req.Data = output
  847. return
  848. }
  849. // Returns information about the overall health of the specified environment.
  850. // The DescribeEnvironmentHealth operation is only available with AWS Elastic
  851. // Beanstalk Enhanced Health.
  852. func (c *ElasticBeanstalk) DescribeEnvironmentHealth(input *DescribeEnvironmentHealthInput) (*DescribeEnvironmentHealthOutput, error) {
  853. req, out := c.DescribeEnvironmentHealthRequest(input)
  854. err := req.Send()
  855. return out, err
  856. }
  857. const opDescribeEnvironmentManagedActionHistory = "DescribeEnvironmentManagedActionHistory"
  858. // DescribeEnvironmentManagedActionHistoryRequest generates a "aws/request.Request" representing the
  859. // client's request for the DescribeEnvironmentManagedActionHistory operation. The "output" return
  860. // value can be used to capture response data after the request's "Send" method
  861. // is called.
  862. //
  863. // Creating a request object using this method should be used when you want to inject
  864. // custom logic into the request's lifecycle using a custom handler, or if you want to
  865. // access properties on the request object before or after sending the request. If
  866. // you just want the service response, call the DescribeEnvironmentManagedActionHistory method directly
  867. // instead.
  868. //
  869. // Note: You must call the "Send" method on the returned request object in order
  870. // to execute the request.
  871. //
  872. // // Example sending a request using the DescribeEnvironmentManagedActionHistoryRequest method.
  873. // req, resp := client.DescribeEnvironmentManagedActionHistoryRequest(params)
  874. //
  875. // err := req.Send()
  876. // if err == nil { // resp is now filled
  877. // fmt.Println(resp)
  878. // }
  879. //
  880. func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input *DescribeEnvironmentManagedActionHistoryInput) (req *request.Request, output *DescribeEnvironmentManagedActionHistoryOutput) {
  881. op := &request.Operation{
  882. Name: opDescribeEnvironmentManagedActionHistory,
  883. HTTPMethod: "POST",
  884. HTTPPath: "/",
  885. }
  886. if input == nil {
  887. input = &DescribeEnvironmentManagedActionHistoryInput{}
  888. }
  889. req = c.newRequest(op, input, output)
  890. output = &DescribeEnvironmentManagedActionHistoryOutput{}
  891. req.Data = output
  892. return
  893. }
  894. // Lists an environment's completed and failed managed actions.
  895. func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistory(input *DescribeEnvironmentManagedActionHistoryInput) (*DescribeEnvironmentManagedActionHistoryOutput, error) {
  896. req, out := c.DescribeEnvironmentManagedActionHistoryRequest(input)
  897. err := req.Send()
  898. return out, err
  899. }
  900. const opDescribeEnvironmentManagedActions = "DescribeEnvironmentManagedActions"
  901. // DescribeEnvironmentManagedActionsRequest generates a "aws/request.Request" representing the
  902. // client's request for the DescribeEnvironmentManagedActions operation. The "output" return
  903. // value can be used to capture response data after the request's "Send" method
  904. // is called.
  905. //
  906. // Creating a request object using this method should be used when you want to inject
  907. // custom logic into the request's lifecycle using a custom handler, or if you want to
  908. // access properties on the request object before or after sending the request. If
  909. // you just want the service response, call the DescribeEnvironmentManagedActions method directly
  910. // instead.
  911. //
  912. // Note: You must call the "Send" method on the returned request object in order
  913. // to execute the request.
  914. //
  915. // // Example sending a request using the DescribeEnvironmentManagedActionsRequest method.
  916. // req, resp := client.DescribeEnvironmentManagedActionsRequest(params)
  917. //
  918. // err := req.Send()
  919. // if err == nil { // resp is now filled
  920. // fmt.Println(resp)
  921. // }
  922. //
  923. func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *DescribeEnvironmentManagedActionsInput) (req *request.Request, output *DescribeEnvironmentManagedActionsOutput) {
  924. op := &request.Operation{
  925. Name: opDescribeEnvironmentManagedActions,
  926. HTTPMethod: "POST",
  927. HTTPPath: "/",
  928. }
  929. if input == nil {
  930. input = &DescribeEnvironmentManagedActionsInput{}
  931. }
  932. req = c.newRequest(op, input, output)
  933. output = &DescribeEnvironmentManagedActionsOutput{}
  934. req.Data = output
  935. return
  936. }
  937. // Lists an environment's upcoming and in-progress managed actions.
  938. func (c *ElasticBeanstalk) DescribeEnvironmentManagedActions(input *DescribeEnvironmentManagedActionsInput) (*DescribeEnvironmentManagedActionsOutput, error) {
  939. req, out := c.DescribeEnvironmentManagedActionsRequest(input)
  940. err := req.Send()
  941. return out, err
  942. }
  943. const opDescribeEnvironmentResources = "DescribeEnvironmentResources"
  944. // DescribeEnvironmentResourcesRequest generates a "aws/request.Request" representing the
  945. // client's request for the DescribeEnvironmentResources operation. The "output" return
  946. // value can be used to capture response data after the request's "Send" method
  947. // is called.
  948. //
  949. // Creating a request object using this method should be used when you want to inject
  950. // custom logic into the request's lifecycle using a custom handler, or if you want to
  951. // access properties on the request object before or after sending the request. If
  952. // you just want the service response, call the DescribeEnvironmentResources method directly
  953. // instead.
  954. //
  955. // Note: You must call the "Send" method on the returned request object in order
  956. // to execute the request.
  957. //
  958. // // Example sending a request using the DescribeEnvironmentResourcesRequest method.
  959. // req, resp := client.DescribeEnvironmentResourcesRequest(params)
  960. //
  961. // err := req.Send()
  962. // if err == nil { // resp is now filled
  963. // fmt.Println(resp)
  964. // }
  965. //
  966. func (c *ElasticBeanstalk) DescribeEnvironmentResourcesRequest(input *DescribeEnvironmentResourcesInput) (req *request.Request, output *DescribeEnvironmentResourcesOutput) {
  967. op := &request.Operation{
  968. Name: opDescribeEnvironmentResources,
  969. HTTPMethod: "POST",
  970. HTTPPath: "/",
  971. }
  972. if input == nil {
  973. input = &DescribeEnvironmentResourcesInput{}
  974. }
  975. req = c.newRequest(op, input, output)
  976. output = &DescribeEnvironmentResourcesOutput{}
  977. req.Data = output
  978. return
  979. }
  980. // Returns AWS resources for this environment.
  981. func (c *ElasticBeanstalk) DescribeEnvironmentResources(input *DescribeEnvironmentResourcesInput) (*DescribeEnvironmentResourcesOutput, error) {
  982. req, out := c.DescribeEnvironmentResourcesRequest(input)
  983. err := req.Send()
  984. return out, err
  985. }
  986. const opDescribeEnvironments = "DescribeEnvironments"
  987. // DescribeEnvironmentsRequest generates a "aws/request.Request" representing the
  988. // client's request for the DescribeEnvironments operation. The "output" return
  989. // value can be used to capture response data after the request's "Send" method
  990. // is called.
  991. //
  992. // Creating a request object using this method should be used when you want to inject
  993. // custom logic into the request's lifecycle using a custom handler, or if you want to
  994. // access properties on the request object before or after sending the request. If
  995. // you just want the service response, call the DescribeEnvironments method directly
  996. // instead.
  997. //
  998. // Note: You must call the "Send" method on the returned request object in order
  999. // to execute the request.
  1000. //
  1001. // // Example sending a request using the DescribeEnvironmentsRequest method.
  1002. // req, resp := client.DescribeEnvironmentsRequest(params)
  1003. //
  1004. // err := req.Send()
  1005. // if err == nil { // resp is now filled
  1006. // fmt.Println(resp)
  1007. // }
  1008. //
  1009. func (c *ElasticBeanstalk) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) (req *request.Request, output *EnvironmentDescriptionsMessage) {
  1010. op := &request.Operation{
  1011. Name: opDescribeEnvironments,
  1012. HTTPMethod: "POST",
  1013. HTTPPath: "/",
  1014. }
  1015. if input == nil {
  1016. input = &DescribeEnvironmentsInput{}
  1017. }
  1018. req = c.newRequest(op, input, output)
  1019. output = &EnvironmentDescriptionsMessage{}
  1020. req.Data = output
  1021. return
  1022. }
  1023. // Returns descriptions for existing environments.
  1024. func (c *ElasticBeanstalk) DescribeEnvironments(input *DescribeEnvironmentsInput) (*EnvironmentDescriptionsMessage, error) {
  1025. req, out := c.DescribeEnvironmentsRequest(input)
  1026. err := req.Send()
  1027. return out, err
  1028. }
  1029. const opDescribeEvents = "DescribeEvents"
  1030. // DescribeEventsRequest generates a "aws/request.Request" representing the
  1031. // client's request for the DescribeEvents operation. The "output" return
  1032. // value can be used to capture response data after the request's "Send" method
  1033. // is called.
  1034. //
  1035. // Creating a request object using this method should be used when you want to inject
  1036. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1037. // access properties on the request object before or after sending the request. If
  1038. // you just want the service response, call the DescribeEvents method directly
  1039. // instead.
  1040. //
  1041. // Note: You must call the "Send" method on the returned request object in order
  1042. // to execute the request.
  1043. //
  1044. // // Example sending a request using the DescribeEventsRequest method.
  1045. // req, resp := client.DescribeEventsRequest(params)
  1046. //
  1047. // err := req.Send()
  1048. // if err == nil { // resp is now filled
  1049. // fmt.Println(resp)
  1050. // }
  1051. //
  1052. func (c *ElasticBeanstalk) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
  1053. op := &request.Operation{
  1054. Name: opDescribeEvents,
  1055. HTTPMethod: "POST",
  1056. HTTPPath: "/",
  1057. Paginator: &request.Paginator{
  1058. InputTokens: []string{"NextToken"},
  1059. OutputTokens: []string{"NextToken"},
  1060. LimitToken: "MaxRecords",
  1061. TruncationToken: "",
  1062. },
  1063. }
  1064. if input == nil {
  1065. input = &DescribeEventsInput{}
  1066. }
  1067. req = c.newRequest(op, input, output)
  1068. output = &DescribeEventsOutput{}
  1069. req.Data = output
  1070. return
  1071. }
  1072. // Returns list of event descriptions matching criteria up to the last 6 weeks.
  1073. //
  1074. // This action returns the most recent 1,000 events from the specified NextToken.
  1075. func (c *ElasticBeanstalk) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
  1076. req, out := c.DescribeEventsRequest(input)
  1077. err := req.Send()
  1078. return out, err
  1079. }
  1080. // DescribeEventsPages iterates over the pages of a DescribeEvents operation,
  1081. // calling the "fn" function with the response data for each page. To stop
  1082. // iterating, return false from the fn function.
  1083. //
  1084. // See DescribeEvents method for more information on how to use this operation.
  1085. //
  1086. // Note: This operation can generate multiple requests to a service.
  1087. //
  1088. // // Example iterating over at most 3 pages of a DescribeEvents operation.
  1089. // pageNum := 0
  1090. // err := client.DescribeEventsPages(params,
  1091. // func(page *DescribeEventsOutput, lastPage bool) bool {
  1092. // pageNum++
  1093. // fmt.Println(page)
  1094. // return pageNum <= 3
  1095. // })
  1096. //
  1097. func (c *ElasticBeanstalk) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error {
  1098. page, _ := c.DescribeEventsRequest(input)
  1099. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1100. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1101. return fn(p.(*DescribeEventsOutput), lastPage)
  1102. })
  1103. }
  1104. const opDescribeInstancesHealth = "DescribeInstancesHealth"
  1105. // DescribeInstancesHealthRequest generates a "aws/request.Request" representing the
  1106. // client's request for the DescribeInstancesHealth operation. The "output" return
  1107. // value can be used to capture response data after the request's "Send" method
  1108. // is called.
  1109. //
  1110. // Creating a request object using this method should be used when you want to inject
  1111. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1112. // access properties on the request object before or after sending the request. If
  1113. // you just want the service response, call the DescribeInstancesHealth method directly
  1114. // instead.
  1115. //
  1116. // Note: You must call the "Send" method on the returned request object in order
  1117. // to execute the request.
  1118. //
  1119. // // Example sending a request using the DescribeInstancesHealthRequest method.
  1120. // req, resp := client.DescribeInstancesHealthRequest(params)
  1121. //
  1122. // err := req.Send()
  1123. // if err == nil { // resp is now filled
  1124. // fmt.Println(resp)
  1125. // }
  1126. //
  1127. func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstancesHealthInput) (req *request.Request, output *DescribeInstancesHealthOutput) {
  1128. op := &request.Operation{
  1129. Name: opDescribeInstancesHealth,
  1130. HTTPMethod: "POST",
  1131. HTTPPath: "/",
  1132. }
  1133. if input == nil {
  1134. input = &DescribeInstancesHealthInput{}
  1135. }
  1136. req = c.newRequest(op, input, output)
  1137. output = &DescribeInstancesHealthOutput{}
  1138. req.Data = output
  1139. return
  1140. }
  1141. // Returns more detailed information about the health of the specified instances
  1142. // (for example, CPU utilization, load average, and causes). The DescribeInstancesHealth
  1143. // operation is only available with AWS Elastic Beanstalk Enhanced Health.
  1144. func (c *ElasticBeanstalk) DescribeInstancesHealth(input *DescribeInstancesHealthInput) (*DescribeInstancesHealthOutput, error) {
  1145. req, out := c.DescribeInstancesHealthRequest(input)
  1146. err := req.Send()
  1147. return out, err
  1148. }
  1149. const opListAvailableSolutionStacks = "ListAvailableSolutionStacks"
  1150. // ListAvailableSolutionStacksRequest generates a "aws/request.Request" representing the
  1151. // client's request for the ListAvailableSolutionStacks operation. The "output" return
  1152. // value can be used to capture response data after the request's "Send" method
  1153. // is called.
  1154. //
  1155. // Creating a request object using this method should be used when you want to inject
  1156. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1157. // access properties on the request object before or after sending the request. If
  1158. // you just want the service response, call the ListAvailableSolutionStacks method directly
  1159. // instead.
  1160. //
  1161. // Note: You must call the "Send" method on the returned request object in order
  1162. // to execute the request.
  1163. //
  1164. // // Example sending a request using the ListAvailableSolutionStacksRequest method.
  1165. // req, resp := client.ListAvailableSolutionStacksRequest(params)
  1166. //
  1167. // err := req.Send()
  1168. // if err == nil { // resp is now filled
  1169. // fmt.Println(resp)
  1170. // }
  1171. //
  1172. func (c *ElasticBeanstalk) ListAvailableSolutionStacksRequest(input *ListAvailableSolutionStacksInput) (req *request.Request, output *ListAvailableSolutionStacksOutput) {
  1173. op := &request.Operation{
  1174. Name: opListAvailableSolutionStacks,
  1175. HTTPMethod: "POST",
  1176. HTTPPath: "/",
  1177. }
  1178. if input == nil {
  1179. input = &ListAvailableSolutionStacksInput{}
  1180. }
  1181. req = c.newRequest(op, input, output)
  1182. output = &ListAvailableSolutionStacksOutput{}
  1183. req.Data = output
  1184. return
  1185. }
  1186. // Returns a list of the available solution stack names.
  1187. func (c *ElasticBeanstalk) ListAvailableSolutionStacks(input *ListAvailableSolutionStacksInput) (*ListAvailableSolutionStacksOutput, error) {
  1188. req, out := c.ListAvailableSolutionStacksRequest(input)
  1189. err := req.Send()
  1190. return out, err
  1191. }
  1192. const opRebuildEnvironment = "RebuildEnvironment"
  1193. // RebuildEnvironmentRequest generates a "aws/request.Request" representing the
  1194. // client's request for the RebuildEnvironment operation. The "output" return
  1195. // value can be used to capture response data after the request's "Send" method
  1196. // is called.
  1197. //
  1198. // Creating a request object using this method should be used when you want to inject
  1199. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1200. // access properties on the request object before or after sending the request. If
  1201. // you just want the service response, call the RebuildEnvironment method directly
  1202. // instead.
  1203. //
  1204. // Note: You must call the "Send" method on the returned request object in order
  1205. // to execute the request.
  1206. //
  1207. // // Example sending a request using the RebuildEnvironmentRequest method.
  1208. // req, resp := client.RebuildEnvironmentRequest(params)
  1209. //
  1210. // err := req.Send()
  1211. // if err == nil { // resp is now filled
  1212. // fmt.Println(resp)
  1213. // }
  1214. //
  1215. func (c *ElasticBeanstalk) RebuildEnvironmentRequest(input *RebuildEnvironmentInput) (req *request.Request, output *RebuildEnvironmentOutput) {
  1216. op := &request.Operation{
  1217. Name: opRebuildEnvironment,
  1218. HTTPMethod: "POST",
  1219. HTTPPath: "/",
  1220. }
  1221. if input == nil {
  1222. input = &RebuildEnvironmentInput{}
  1223. }
  1224. req = c.newRequest(op, input, output)
  1225. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1226. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1227. output = &RebuildEnvironmentOutput{}
  1228. req.Data = output
  1229. return
  1230. }
  1231. // Deletes and recreates all of the AWS resources (for example: the Auto Scaling
  1232. // group, load balancer, etc.) for a specified environment and forces a restart.
  1233. func (c *ElasticBeanstalk) RebuildEnvironment(input *RebuildEnvironmentInput) (*RebuildEnvironmentOutput, error) {
  1234. req, out := c.RebuildEnvironmentRequest(input)
  1235. err := req.Send()
  1236. return out, err
  1237. }
  1238. const opRequestEnvironmentInfo = "RequestEnvironmentInfo"
  1239. // RequestEnvironmentInfoRequest generates a "aws/request.Request" representing the
  1240. // client's request for the RequestEnvironmentInfo operation. The "output" return
  1241. // value can be used to capture response data after the request's "Send" method
  1242. // is called.
  1243. //
  1244. // Creating a request object using this method should be used when you want to inject
  1245. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1246. // access properties on the request object before or after sending the request. If
  1247. // you just want the service response, call the RequestEnvironmentInfo method directly
  1248. // instead.
  1249. //
  1250. // Note: You must call the "Send" method on the returned request object in order
  1251. // to execute the request.
  1252. //
  1253. // // Example sending a request using the RequestEnvironmentInfoRequest method.
  1254. // req, resp := client.RequestEnvironmentInfoRequest(params)
  1255. //
  1256. // err := req.Send()
  1257. // if err == nil { // resp is now filled
  1258. // fmt.Println(resp)
  1259. // }
  1260. //
  1261. func (c *ElasticBeanstalk) RequestEnvironmentInfoRequest(input *RequestEnvironmentInfoInput) (req *request.Request, output *RequestEnvironmentInfoOutput) {
  1262. op := &request.Operation{
  1263. Name: opRequestEnvironmentInfo,
  1264. HTTPMethod: "POST",
  1265. HTTPPath: "/",
  1266. }
  1267. if input == nil {
  1268. input = &RequestEnvironmentInfoInput{}
  1269. }
  1270. req = c.newRequest(op, input, output)
  1271. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1272. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1273. output = &RequestEnvironmentInfoOutput{}
  1274. req.Data = output
  1275. return
  1276. }
  1277. // Initiates a request to compile the specified type of information of the deployed
  1278. // environment.
  1279. //
  1280. // Setting the InfoType to tail compiles the last lines from the application
  1281. // server log files of every Amazon EC2 instance in your environment.
  1282. //
  1283. // Setting the InfoType to bundle compresses the application server log files
  1284. // for every Amazon EC2 instance into a .zip file. Legacy and .NET containers
  1285. // do not support bundle logs.
  1286. //
  1287. // Use RetrieveEnvironmentInfo to obtain the set of logs.
  1288. //
  1289. // Related Topics
  1290. //
  1291. // RetrieveEnvironmentInfo
  1292. func (c *ElasticBeanstalk) RequestEnvironmentInfo(input *RequestEnvironmentInfoInput) (*RequestEnvironmentInfoOutput, error) {
  1293. req, out := c.RequestEnvironmentInfoRequest(input)
  1294. err := req.Send()
  1295. return out, err
  1296. }
  1297. const opRestartAppServer = "RestartAppServer"
  1298. // RestartAppServerRequest generates a "aws/request.Request" representing the
  1299. // client's request for the RestartAppServer operation. The "output" return
  1300. // value can be used to capture response data after the request's "Send" method
  1301. // is called.
  1302. //
  1303. // Creating a request object using this method should be used when you want to inject
  1304. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1305. // access properties on the request object before or after sending the request. If
  1306. // you just want the service response, call the RestartAppServer method directly
  1307. // instead.
  1308. //
  1309. // Note: You must call the "Send" method on the returned request object in order
  1310. // to execute the request.
  1311. //
  1312. // // Example sending a request using the RestartAppServerRequest method.
  1313. // req, resp := client.RestartAppServerRequest(params)
  1314. //
  1315. // err := req.Send()
  1316. // if err == nil { // resp is now filled
  1317. // fmt.Println(resp)
  1318. // }
  1319. //
  1320. func (c *ElasticBeanstalk) RestartAppServerRequest(input *RestartAppServerInput) (req *request.Request, output *RestartAppServerOutput) {
  1321. op := &request.Operation{
  1322. Name: opRestartAppServer,
  1323. HTTPMethod: "POST",
  1324. HTTPPath: "/",
  1325. }
  1326. if input == nil {
  1327. input = &RestartAppServerInput{}
  1328. }
  1329. req = c.newRequest(op, input, output)
  1330. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1331. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1332. output = &RestartAppServerOutput{}
  1333. req.Data = output
  1334. return
  1335. }
  1336. // Causes the environment to restart the application container server running
  1337. // on each Amazon EC2 instance.
  1338. func (c *ElasticBeanstalk) RestartAppServer(input *RestartAppServerInput) (*RestartAppServerOutput, error) {
  1339. req, out := c.RestartAppServerRequest(input)
  1340. err := req.Send()
  1341. return out, err
  1342. }
  1343. const opRetrieveEnvironmentInfo = "RetrieveEnvironmentInfo"
  1344. // RetrieveEnvironmentInfoRequest generates a "aws/request.Request" representing the
  1345. // client's request for the RetrieveEnvironmentInfo operation. The "output" return
  1346. // value can be used to capture response data after the request's "Send" method
  1347. // is called.
  1348. //
  1349. // Creating a request object using this method should be used when you want to inject
  1350. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1351. // access properties on the request object before or after sending the request. If
  1352. // you just want the service response, call the RetrieveEnvironmentInfo method directly
  1353. // instead.
  1354. //
  1355. // Note: You must call the "Send" method on the returned request object in order
  1356. // to execute the request.
  1357. //
  1358. // // Example sending a request using the RetrieveEnvironmentInfoRequest method.
  1359. // req, resp := client.RetrieveEnvironmentInfoRequest(params)
  1360. //
  1361. // err := req.Send()
  1362. // if err == nil { // resp is now filled
  1363. // fmt.Println(resp)
  1364. // }
  1365. //
  1366. func (c *ElasticBeanstalk) RetrieveEnvironmentInfoRequest(input *RetrieveEnvironmentInfoInput) (req *request.Request, output *RetrieveEnvironmentInfoOutput) {
  1367. op := &request.Operation{
  1368. Name: opRetrieveEnvironmentInfo,
  1369. HTTPMethod: "POST",
  1370. HTTPPath: "/",
  1371. }
  1372. if input == nil {
  1373. input = &RetrieveEnvironmentInfoInput{}
  1374. }
  1375. req = c.newRequest(op, input, output)
  1376. output = &RetrieveEnvironmentInfoOutput{}
  1377. req.Data = output
  1378. return
  1379. }
  1380. // Retrieves the compiled information from a RequestEnvironmentInfo request.
  1381. //
  1382. // Related Topics
  1383. //
  1384. // RequestEnvironmentInfo
  1385. func (c *ElasticBeanstalk) RetrieveEnvironmentInfo(input *RetrieveEnvironmentInfoInput) (*RetrieveEnvironmentInfoOutput, error) {
  1386. req, out := c.RetrieveEnvironmentInfoRequest(input)
  1387. err := req.Send()
  1388. return out, err
  1389. }
  1390. const opSwapEnvironmentCNAMEs = "SwapEnvironmentCNAMEs"
  1391. // SwapEnvironmentCNAMEsRequest generates a "aws/request.Request" representing the
  1392. // client's request for the SwapEnvironmentCNAMEs operation. The "output" return
  1393. // value can be used to capture response data after the request's "Send" method
  1394. // is called.
  1395. //
  1396. // Creating a request object using this method should be used when you want to inject
  1397. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1398. // access properties on the request object before or after sending the request. If
  1399. // you just want the service response, call the SwapEnvironmentCNAMEs method directly
  1400. // instead.
  1401. //
  1402. // Note: You must call the "Send" method on the returned request object in order
  1403. // to execute the request.
  1404. //
  1405. // // Example sending a request using the SwapEnvironmentCNAMEsRequest method.
  1406. // req, resp := client.SwapEnvironmentCNAMEsRequest(params)
  1407. //
  1408. // err := req.Send()
  1409. // if err == nil { // resp is now filled
  1410. // fmt.Println(resp)
  1411. // }
  1412. //
  1413. func (c *ElasticBeanstalk) SwapEnvironmentCNAMEsRequest(input *SwapEnvironmentCNAMEsInput) (req *request.Request, output *SwapEnvironmentCNAMEsOutput) {
  1414. op := &request.Operation{
  1415. Name: opSwapEnvironmentCNAMEs,
  1416. HTTPMethod: "POST",
  1417. HTTPPath: "/",
  1418. }
  1419. if input == nil {
  1420. input = &SwapEnvironmentCNAMEsInput{}
  1421. }
  1422. req = c.newRequest(op, input, output)
  1423. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1424. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1425. output = &SwapEnvironmentCNAMEsOutput{}
  1426. req.Data = output
  1427. return
  1428. }
  1429. // Swaps the CNAMEs of two environments.
  1430. func (c *ElasticBeanstalk) SwapEnvironmentCNAMEs(input *SwapEnvironmentCNAMEsInput) (*SwapEnvironmentCNAMEsOutput, error) {
  1431. req, out := c.SwapEnvironmentCNAMEsRequest(input)
  1432. err := req.Send()
  1433. return out, err
  1434. }
  1435. const opTerminateEnvironment = "TerminateEnvironment"
  1436. // TerminateEnvironmentRequest generates a "aws/request.Request" representing the
  1437. // client's request for the TerminateEnvironment operation. The "output" return
  1438. // value can be used to capture response data after the request's "Send" method
  1439. // is called.
  1440. //
  1441. // Creating a request object using this method should be used when you want to inject
  1442. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1443. // access properties on the request object before or after sending the request. If
  1444. // you just want the service response, call the TerminateEnvironment method directly
  1445. // instead.
  1446. //
  1447. // Note: You must call the "Send" method on the returned request object in order
  1448. // to execute the request.
  1449. //
  1450. // // Example sending a request using the TerminateEnvironmentRequest method.
  1451. // req, resp := client.TerminateEnvironmentRequest(params)
  1452. //
  1453. // err := req.Send()
  1454. // if err == nil { // resp is now filled
  1455. // fmt.Println(resp)
  1456. // }
  1457. //
  1458. func (c *ElasticBeanstalk) TerminateEnvironmentRequest(input *TerminateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) {
  1459. op := &request.Operation{
  1460. Name: opTerminateEnvironment,
  1461. HTTPMethod: "POST",
  1462. HTTPPath: "/",
  1463. }
  1464. if input == nil {
  1465. input = &TerminateEnvironmentInput{}
  1466. }
  1467. req = c.newRequest(op, input, output)
  1468. output = &EnvironmentDescription{}
  1469. req.Data = output
  1470. return
  1471. }
  1472. // Terminates the specified environment.
  1473. func (c *ElasticBeanstalk) TerminateEnvironment(input *TerminateEnvironmentInput) (*EnvironmentDescription, error) {
  1474. req, out := c.TerminateEnvironmentRequest(input)
  1475. err := req.Send()
  1476. return out, err
  1477. }
  1478. const opUpdateApplication = "UpdateApplication"
  1479. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  1480. // client's request for the UpdateApplication operation. The "output" return
  1481. // value can be used to capture response data after the request's "Send" method
  1482. // is called.
  1483. //
  1484. // Creating a request object using this method should be used when you want to inject
  1485. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1486. // access properties on the request object before or after sending the request. If
  1487. // you just want the service response, call the UpdateApplication method directly
  1488. // instead.
  1489. //
  1490. // Note: You must call the "Send" method on the returned request object in order
  1491. // to execute the request.
  1492. //
  1493. // // Example sending a request using the UpdateApplicationRequest method.
  1494. // req, resp := client.UpdateApplicationRequest(params)
  1495. //
  1496. // err := req.Send()
  1497. // if err == nil { // resp is now filled
  1498. // fmt.Println(resp)
  1499. // }
  1500. //
  1501. func (c *ElasticBeanstalk) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *ApplicationDescriptionMessage) {
  1502. op := &request.Operation{
  1503. Name: opUpdateApplication,
  1504. HTTPMethod: "POST",
  1505. HTTPPath: "/",
  1506. }
  1507. if input == nil {
  1508. input = &UpdateApplicationInput{}
  1509. }
  1510. req = c.newRequest(op, input, output)
  1511. output = &ApplicationDescriptionMessage{}
  1512. req.Data = output
  1513. return
  1514. }
  1515. // Updates the specified application to have the specified properties.
  1516. //
  1517. // If a property (for example, description) is not provided, the value remains
  1518. // unchanged. To clear these properties, specify an empty string.
  1519. func (c *ElasticBeanstalk) UpdateApplication(input *UpdateApplicationInput) (*ApplicationDescriptionMessage, error) {
  1520. req, out := c.UpdateApplicationRequest(input)
  1521. err := req.Send()
  1522. return out, err
  1523. }
  1524. const opUpdateApplicationVersion = "UpdateApplicationVersion"
  1525. // UpdateApplicationVersionRequest generates a "aws/request.Request" representing the
  1526. // client's request for the UpdateApplicationVersion operation. The "output" return
  1527. // value can be used to capture response data after the request's "Send" method
  1528. // is called.
  1529. //
  1530. // Creating a request object using this method should be used when you want to inject
  1531. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1532. // access properties on the request object before or after sending the request. If
  1533. // you just want the service response, call the UpdateApplicationVersion method directly
  1534. // instead.
  1535. //
  1536. // Note: You must call the "Send" method on the returned request object in order
  1537. // to execute the request.
  1538. //
  1539. // // Example sending a request using the UpdateApplicationVersionRequest method.
  1540. // req, resp := client.UpdateApplicationVersionRequest(params)
  1541. //
  1542. // err := req.Send()
  1543. // if err == nil { // resp is now filled
  1544. // fmt.Println(resp)
  1545. // }
  1546. //
  1547. func (c *ElasticBeanstalk) UpdateApplicationVersionRequest(input *UpdateApplicationVersionInput) (req *request.Request, output *ApplicationVersionDescriptionMessage) {
  1548. op := &request.Operation{
  1549. Name: opUpdateApplicationVersion,
  1550. HTTPMethod: "POST",
  1551. HTTPPath: "/",
  1552. }
  1553. if input == nil {
  1554. input = &UpdateApplicationVersionInput{}
  1555. }
  1556. req = c.newRequest(op, input, output)
  1557. output = &ApplicationVersionDescriptionMessage{}
  1558. req.Data = output
  1559. return
  1560. }
  1561. // Updates the specified application version to have the specified properties.
  1562. //
  1563. // If a property (for example, description) is not provided, the value remains
  1564. // unchanged. To clear properties, specify an empty string.
  1565. func (c *ElasticBeanstalk) UpdateApplicationVersion(input *UpdateApplicationVersionInput) (*ApplicationVersionDescriptionMessage, error) {
  1566. req, out := c.UpdateApplicationVersionRequest(input)
  1567. err := req.Send()
  1568. return out, err
  1569. }
  1570. const opUpdateConfigurationTemplate = "UpdateConfigurationTemplate"
  1571. // UpdateConfigurationTemplateRequest generates a "aws/request.Request" representing the
  1572. // client's request for the UpdateConfigurationTemplate operation. The "output" return
  1573. // value can be used to capture response data after the request's "Send" method
  1574. // is called.
  1575. //
  1576. // Creating a request object using this method should be used when you want to inject
  1577. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1578. // access properties on the request object before or after sending the request. If
  1579. // you just want the service response, call the UpdateConfigurationTemplate method directly
  1580. // instead.
  1581. //
  1582. // Note: You must call the "Send" method on the returned request object in order
  1583. // to execute the request.
  1584. //
  1585. // // Example sending a request using the UpdateConfigurationTemplateRequest method.
  1586. // req, resp := client.UpdateConfigurationTemplateRequest(params)
  1587. //
  1588. // err := req.Send()
  1589. // if err == nil { // resp is now filled
  1590. // fmt.Println(resp)
  1591. // }
  1592. //
  1593. func (c *ElasticBeanstalk) UpdateConfigurationTemplateRequest(input *UpdateConfigurationTemplateInput) (req *request.Request, output *ConfigurationSettingsDescription) {
  1594. op := &request.Operation{
  1595. Name: opUpdateConfigurationTemplate,
  1596. HTTPMethod: "POST",
  1597. HTTPPath: "/",
  1598. }
  1599. if input == nil {
  1600. input = &UpdateConfigurationTemplateInput{}
  1601. }
  1602. req = c.newRequest(op, input, output)
  1603. output = &ConfigurationSettingsDescription{}
  1604. req.Data = output
  1605. return
  1606. }
  1607. // Updates the specified configuration template to have the specified properties
  1608. // or configuration option values.
  1609. //
  1610. // If a property (for example, ApplicationName) is not provided, its value
  1611. // remains unchanged. To clear such properties, specify an empty string. Related
  1612. // Topics
  1613. //
  1614. // DescribeConfigurationOptions
  1615. func (c *ElasticBeanstalk) UpdateConfigurationTemplate(input *UpdateConfigurationTemplateInput) (*ConfigurationSettingsDescription, error) {
  1616. req, out := c.UpdateConfigurationTemplateRequest(input)
  1617. err := req.Send()
  1618. return out, err
  1619. }
  1620. const opUpdateEnvironment = "UpdateEnvironment"
  1621. // UpdateEnvironmentRequest generates a "aws/request.Request" representing the
  1622. // client's request for the UpdateEnvironment operation. The "output" return
  1623. // value can be used to capture response data after the request's "Send" method
  1624. // is called.
  1625. //
  1626. // Creating a request object using this method should be used when you want to inject
  1627. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1628. // access properties on the request object before or after sending the request. If
  1629. // you just want the service response, call the UpdateEnvironment method directly
  1630. // instead.
  1631. //
  1632. // Note: You must call the "Send" method on the returned request object in order
  1633. // to execute the request.
  1634. //
  1635. // // Example sending a request using the UpdateEnvironmentRequest method.
  1636. // req, resp := client.UpdateEnvironmentRequest(params)
  1637. //
  1638. // err := req.Send()
  1639. // if err == nil { // resp is now filled
  1640. // fmt.Println(resp)
  1641. // }
  1642. //
  1643. func (c *ElasticBeanstalk) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *EnvironmentDescription) {
  1644. op := &request.Operation{
  1645. Name: opUpdateEnvironment,
  1646. HTTPMethod: "POST",
  1647. HTTPPath: "/",
  1648. }
  1649. if input == nil {
  1650. input = &UpdateEnvironmentInput{}
  1651. }
  1652. req = c.newRequest(op, input, output)
  1653. output = &EnvironmentDescription{}
  1654. req.Data = output
  1655. return
  1656. }
  1657. // Updates the environment description, deploys a new application version, updates
  1658. // the configuration settings to an entirely new configuration template, or
  1659. // updates select configuration option values in the running environment.
  1660. //
  1661. // Attempting to update both the release and configuration is not allowed
  1662. // and AWS Elastic Beanstalk returns an InvalidParameterCombination error.
  1663. //
  1664. // When updating the configuration settings to a new template or individual
  1665. // settings, a draft configuration is created and DescribeConfigurationSettings
  1666. // for this environment returns two setting descriptions with different DeploymentStatus
  1667. // values.
  1668. func (c *ElasticBeanstalk) UpdateEnvironment(input *UpdateEnvironmentInput) (*EnvironmentDescription, error) {
  1669. req, out := c.UpdateEnvironmentRequest(input)
  1670. err := req.Send()
  1671. return out, err
  1672. }
  1673. const opValidateConfigurationSettings = "ValidateConfigurationSettings"
  1674. // ValidateConfigurationSettingsRequest generates a "aws/request.Request" representing the
  1675. // client's request for the ValidateConfigurationSettings operation. The "output" return
  1676. // value can be used to capture response data after the request's "Send" method
  1677. // is called.
  1678. //
  1679. // Creating a request object using this method should be used when you want to inject
  1680. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1681. // access properties on the request object before or after sending the request. If
  1682. // you just want the service response, call the ValidateConfigurationSettings method directly
  1683. // instead.
  1684. //
  1685. // Note: You must call the "Send" method on the returned request object in order
  1686. // to execute the request.
  1687. //
  1688. // // Example sending a request using the ValidateConfigurationSettingsRequest method.
  1689. // req, resp := client.ValidateConfigurationSettingsRequest(params)
  1690. //
  1691. // err := req.Send()
  1692. // if err == nil { // resp is now filled
  1693. // fmt.Println(resp)
  1694. // }
  1695. //
  1696. func (c *ElasticBeanstalk) ValidateConfigurationSettingsRequest(input *ValidateConfigurationSettingsInput) (req *request.Request, output *ValidateConfigurationSettingsOutput) {
  1697. op := &request.Operation{
  1698. Name: opValidateConfigurationSettings,
  1699. HTTPMethod: "POST",
  1700. HTTPPath: "/",
  1701. }
  1702. if input == nil {
  1703. input = &ValidateConfigurationSettingsInput{}
  1704. }
  1705. req = c.newRequest(op, input, output)
  1706. output = &ValidateConfigurationSettingsOutput{}
  1707. req.Data = output
  1708. return
  1709. }
  1710. // Takes a set of configuration settings and either a configuration template
  1711. // or environment, and determines whether those values are valid.
  1712. //
  1713. // This action returns a list of messages indicating any errors or warnings
  1714. // associated with the selection of option values.
  1715. func (c *ElasticBeanstalk) ValidateConfigurationSettings(input *ValidateConfigurationSettingsInput) (*ValidateConfigurationSettingsOutput, error) {
  1716. req, out := c.ValidateConfigurationSettingsRequest(input)
  1717. err := req.Send()
  1718. return out, err
  1719. }
  1720. type AbortEnvironmentUpdateInput struct {
  1721. _ struct{} `type:"structure"`
  1722. // This specifies the ID of the environment with the in-progress update that
  1723. // you want to cancel.
  1724. EnvironmentId *string `type:"string"`
  1725. // This specifies the name of the environment with the in-progress update that
  1726. // you want to cancel.
  1727. EnvironmentName *string `min:"4" type:"string"`
  1728. }
  1729. // String returns the string representation
  1730. func (s AbortEnvironmentUpdateInput) String() string {
  1731. return awsutil.Prettify(s)
  1732. }
  1733. // GoString returns the string representation
  1734. func (s AbortEnvironmentUpdateInput) GoString() string {
  1735. return s.String()
  1736. }
  1737. // Validate inspects the fields of the type to determine if they are valid.
  1738. func (s *AbortEnvironmentUpdateInput) Validate() error {
  1739. invalidParams := request.ErrInvalidParams{Context: "AbortEnvironmentUpdateInput"}
  1740. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  1741. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  1742. }
  1743. if invalidParams.Len() > 0 {
  1744. return invalidParams
  1745. }
  1746. return nil
  1747. }
  1748. type AbortEnvironmentUpdateOutput struct {
  1749. _ struct{} `type:"structure"`
  1750. }
  1751. // String returns the string representation
  1752. func (s AbortEnvironmentUpdateOutput) String() string {
  1753. return awsutil.Prettify(s)
  1754. }
  1755. // GoString returns the string representation
  1756. func (s AbortEnvironmentUpdateOutput) GoString() string {
  1757. return s.String()
  1758. }
  1759. // Describes the properties of an application.
  1760. type ApplicationDescription struct {
  1761. _ struct{} `type:"structure"`
  1762. // The name of the application.
  1763. ApplicationName *string `min:"1" type:"string"`
  1764. // The names of the configuration templates associated with this application.
  1765. ConfigurationTemplates []*string `type:"list"`
  1766. // The date when the application was created.
  1767. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1768. // The date when the application was last modified.
  1769. DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1770. // User-defined description of the application.
  1771. Description *string `type:"string"`
  1772. // The names of the versions for this application.
  1773. Versions []*string `type:"list"`
  1774. }
  1775. // String returns the string representation
  1776. func (s ApplicationDescription) String() string {
  1777. return awsutil.Prettify(s)
  1778. }
  1779. // GoString returns the string representation
  1780. func (s ApplicationDescription) GoString() string {
  1781. return s.String()
  1782. }
  1783. // Result message containing a single description of an application.
  1784. type ApplicationDescriptionMessage struct {
  1785. _ struct{} `type:"structure"`
  1786. // The ApplicationDescription of the application.
  1787. Application *ApplicationDescription `type:"structure"`
  1788. }
  1789. // String returns the string representation
  1790. func (s ApplicationDescriptionMessage) String() string {
  1791. return awsutil.Prettify(s)
  1792. }
  1793. // GoString returns the string representation
  1794. func (s ApplicationDescriptionMessage) GoString() string {
  1795. return s.String()
  1796. }
  1797. // Represents the application metrics for a specified environment.
  1798. type ApplicationMetrics struct {
  1799. _ struct{} `type:"structure"`
  1800. // The amount of time that the metrics cover (usually 10 seconds). For example,
  1801. // you might have 5 requests (request_count) within the most recent time slice
  1802. // of 10 seconds (duration).
  1803. Duration *int64 `type:"integer"`
  1804. // Represents the average latency for the slowest X percent of requests over
  1805. // the last 10 seconds. Latencies are in seconds with one milisecond resolution.
  1806. Latency *Latency `type:"structure"`
  1807. // Average number of requests handled by the web server per second over the
  1808. // last 10 seconds.
  1809. RequestCount *int64 `type:"integer"`
  1810. // Represents the percentage of requests over the last 10 seconds that resulted
  1811. // in each type of status code response.
  1812. StatusCodes *StatusCodes `type:"structure"`
  1813. }
  1814. // String returns the string representation
  1815. func (s ApplicationMetrics) String() string {
  1816. return awsutil.Prettify(s)
  1817. }
  1818. // GoString returns the string representation
  1819. func (s ApplicationMetrics) GoString() string {
  1820. return s.String()
  1821. }
  1822. // Describes the properties of an application version.
  1823. type ApplicationVersionDescription struct {
  1824. _ struct{} `type:"structure"`
  1825. // The name of the application associated with this release.
  1826. ApplicationName *string `min:"1" type:"string"`
  1827. // The creation date of the application version.
  1828. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1829. // The last modified date of the application version.
  1830. DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1831. // The description of this application version.
  1832. Description *string `type:"string"`
  1833. // The location where the source bundle is located for this version.
  1834. SourceBundle *S3Location `type:"structure"`
  1835. // The processing status of the application version.
  1836. Status *string `type:"string" enum:"ApplicationVersionStatus"`
  1837. // A label uniquely identifying the version for the associated application.
  1838. VersionLabel *string `min:"1" type:"string"`
  1839. }
  1840. // String returns the string representation
  1841. func (s ApplicationVersionDescription) String() string {
  1842. return awsutil.Prettify(s)
  1843. }
  1844. // GoString returns the string representation
  1845. func (s ApplicationVersionDescription) GoString() string {
  1846. return s.String()
  1847. }
  1848. // Result message wrapping a single description of an application version.
  1849. type ApplicationVersionDescriptionMessage struct {
  1850. _ struct{} `type:"structure"`
  1851. // The ApplicationVersionDescription of the application version.
  1852. ApplicationVersion *ApplicationVersionDescription `type:"structure"`
  1853. }
  1854. // String returns the string representation
  1855. func (s ApplicationVersionDescriptionMessage) String() string {
  1856. return awsutil.Prettify(s)
  1857. }
  1858. // GoString returns the string representation
  1859. func (s ApplicationVersionDescriptionMessage) GoString() string {
  1860. return s.String()
  1861. }
  1862. // Request to execute a scheduled managed action immediately.
  1863. type ApplyEnvironmentManagedActionInput struct {
  1864. _ struct{} `type:"structure"`
  1865. // The action ID of the scheduled managed action to execute.
  1866. ActionId *string `type:"string" required:"true"`
  1867. // The environment ID of the target environment.
  1868. EnvironmentId *string `type:"string"`
  1869. // The name of the target environment.
  1870. EnvironmentName *string `type:"string"`
  1871. }
  1872. // String returns the string representation
  1873. func (s ApplyEnvironmentManagedActionInput) String() string {
  1874. return awsutil.Prettify(s)
  1875. }
  1876. // GoString returns the string representation
  1877. func (s ApplyEnvironmentManagedActionInput) GoString() string {
  1878. return s.String()
  1879. }
  1880. // Validate inspects the fields of the type to determine if they are valid.
  1881. func (s *ApplyEnvironmentManagedActionInput) Validate() error {
  1882. invalidParams := request.ErrInvalidParams{Context: "ApplyEnvironmentManagedActionInput"}
  1883. if s.ActionId == nil {
  1884. invalidParams.Add(request.NewErrParamRequired("ActionId"))
  1885. }
  1886. if invalidParams.Len() > 0 {
  1887. return invalidParams
  1888. }
  1889. return nil
  1890. }
  1891. // The result message containing information about the managed action.
  1892. type ApplyEnvironmentManagedActionOutput struct {
  1893. _ struct{} `type:"structure"`
  1894. // A description of the managed action.
  1895. ActionDescription *string `type:"string"`
  1896. // The action ID of the managed action.
  1897. ActionId *string `type:"string"`
  1898. // The type of managed action.
  1899. ActionType *string `type:"string" enum:"ActionType"`
  1900. // The status of the managed action.
  1901. Status *string `type:"string"`
  1902. }
  1903. // String returns the string representation
  1904. func (s ApplyEnvironmentManagedActionOutput) String() string {
  1905. return awsutil.Prettify(s)
  1906. }
  1907. // GoString returns the string representation
  1908. func (s ApplyEnvironmentManagedActionOutput) GoString() string {
  1909. return s.String()
  1910. }
  1911. // Describes an Auto Scaling launch configuration.
  1912. type AutoScalingGroup struct {
  1913. _ struct{} `type:"structure"`
  1914. // The name of the AutoScalingGroup .
  1915. Name *string `type:"string"`
  1916. }
  1917. // String returns the string representation
  1918. func (s AutoScalingGroup) String() string {
  1919. return awsutil.Prettify(s)
  1920. }
  1921. // GoString returns the string representation
  1922. func (s AutoScalingGroup) GoString() string {
  1923. return s.String()
  1924. }
  1925. // Represents CPU utilization information from the specified instance that belongs
  1926. // to the AWS Elastic Beanstalk environment. Use the instanceId property to
  1927. // specify the application instance for which you'd like to return data.
  1928. type CPUUtilization struct {
  1929. _ struct{} `type:"structure"`
  1930. // Percentage of time that the CPU has spent in the I/O Wait state over the
  1931. // last 10 seconds.
  1932. IOWait *float64 `type:"double"`
  1933. // Percentage of time that the CPU has spent in the IRQ state over the last
  1934. // 10 seconds.
  1935. IRQ *float64 `type:"double"`
  1936. // Percentage of time that the CPU has spent in the Idle state over the last
  1937. // 10 seconds.
  1938. Idle *float64 `type:"double"`
  1939. // Percentage of time that the CPU has spent in the Nice state over the last
  1940. // 10 seconds.
  1941. Nice *float64 `type:"double"`
  1942. // Percentage of time that the CPU has spent in the SoftIRQ state over the last
  1943. // 10 seconds.
  1944. SoftIRQ *float64 `type:"double"`
  1945. // Percentage of time that the CPU has spent in the System state over the last
  1946. // 10 seconds.
  1947. System *float64 `type:"double"`
  1948. // Percentage of time that the CPU has spent in the User state over the last
  1949. // 10 seconds.
  1950. User *float64 `type:"double"`
  1951. }
  1952. // String returns the string representation
  1953. func (s CPUUtilization) String() string {
  1954. return awsutil.Prettify(s)
  1955. }
  1956. // GoString returns the string representation
  1957. func (s CPUUtilization) GoString() string {
  1958. return s.String()
  1959. }
  1960. // Results message indicating whether a CNAME is available.
  1961. type CheckDNSAvailabilityInput struct {
  1962. _ struct{} `type:"structure"`
  1963. // The prefix used when this CNAME is reserved.
  1964. CNAMEPrefix *string `min:"4" type:"string" required:"true"`
  1965. }
  1966. // String returns the string representation
  1967. func (s CheckDNSAvailabilityInput) String() string {
  1968. return awsutil.Prettify(s)
  1969. }
  1970. // GoString returns the string representation
  1971. func (s CheckDNSAvailabilityInput) GoString() string {
  1972. return s.String()
  1973. }
  1974. // Validate inspects the fields of the type to determine if they are valid.
  1975. func (s *CheckDNSAvailabilityInput) Validate() error {
  1976. invalidParams := request.ErrInvalidParams{Context: "CheckDNSAvailabilityInput"}
  1977. if s.CNAMEPrefix == nil {
  1978. invalidParams.Add(request.NewErrParamRequired("CNAMEPrefix"))
  1979. }
  1980. if s.CNAMEPrefix != nil && len(*s.CNAMEPrefix) < 4 {
  1981. invalidParams.Add(request.NewErrParamMinLen("CNAMEPrefix", 4))
  1982. }
  1983. if invalidParams.Len() > 0 {
  1984. return invalidParams
  1985. }
  1986. return nil
  1987. }
  1988. // Indicates if the specified CNAME is available.
  1989. type CheckDNSAvailabilityOutput struct {
  1990. _ struct{} `type:"structure"`
  1991. // Indicates if the specified CNAME is available:
  1992. //
  1993. // true : The CNAME is available. false : The CNAME is not available.
  1994. Available *bool `type:"boolean"`
  1995. // The fully qualified CNAME to reserve when CreateEnvironment is called with
  1996. // the provided prefix.
  1997. FullyQualifiedCNAME *string `min:"1" type:"string"`
  1998. }
  1999. // String returns the string representation
  2000. func (s CheckDNSAvailabilityOutput) String() string {
  2001. return awsutil.Prettify(s)
  2002. }
  2003. // GoString returns the string representation
  2004. func (s CheckDNSAvailabilityOutput) GoString() string {
  2005. return s.String()
  2006. }
  2007. // Request to create or update a group of environments.
  2008. type ComposeEnvironmentsInput struct {
  2009. _ struct{} `type:"structure"`
  2010. // The name of the application to which the specified source bundles belong.
  2011. ApplicationName *string `min:"1" type:"string"`
  2012. // The name of the group to which the target environments belong. Specify a
  2013. // group name only if the environment name defined in each target environment's
  2014. // manifest ends with a + (plus) character. See Environment Manifest (env.yaml)
  2015. // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html)
  2016. // for details.
  2017. GroupName *string `min:"1" type:"string"`
  2018. // A list of version labels, specifying one or more application source bundles
  2019. // that belong to the target application. Each source bundle must include an
  2020. // environment manifest that specifies the name of the environment and the name
  2021. // of the solution stack to use, and optionally can specify environment links
  2022. // to create.
  2023. VersionLabels []*string `type:"list"`
  2024. }
  2025. // String returns the string representation
  2026. func (s ComposeEnvironmentsInput) String() string {
  2027. return awsutil.Prettify(s)
  2028. }
  2029. // GoString returns the string representation
  2030. func (s ComposeEnvironmentsInput) GoString() string {
  2031. return s.String()
  2032. }
  2033. // Validate inspects the fields of the type to determine if they are valid.
  2034. func (s *ComposeEnvironmentsInput) Validate() error {
  2035. invalidParams := request.ErrInvalidParams{Context: "ComposeEnvironmentsInput"}
  2036. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2037. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2038. }
  2039. if s.GroupName != nil && len(*s.GroupName) < 1 {
  2040. invalidParams.Add(request.NewErrParamMinLen("GroupName", 1))
  2041. }
  2042. if invalidParams.Len() > 0 {
  2043. return invalidParams
  2044. }
  2045. return nil
  2046. }
  2047. // Describes the possible values for a configuration option.
  2048. type ConfigurationOptionDescription struct {
  2049. _ struct{} `type:"structure"`
  2050. // An indication of which action is required if the value for this configuration
  2051. // option changes:
  2052. //
  2053. // NoInterruption : There is no interruption to the environment or application
  2054. // availability. RestartEnvironment : The environment is entirely restarted,
  2055. // all AWS resources are deleted and recreated, and the environment is unavailable
  2056. // during the process. RestartApplicationServer : The environment is available
  2057. // the entire time. However, a short application outage occurs when the application
  2058. // servers on the running Amazon EC2 instances are restarted.
  2059. ChangeSeverity *string `type:"string"`
  2060. // The default value for this configuration option.
  2061. DefaultValue *string `type:"string"`
  2062. // If specified, the configuration option must be a string value no longer than
  2063. // this value.
  2064. MaxLength *int64 `type:"integer"`
  2065. // If specified, the configuration option must be a numeric value less than
  2066. // this value.
  2067. MaxValue *int64 `type:"integer"`
  2068. // If specified, the configuration option must be a numeric value greater than
  2069. // this value.
  2070. MinValue *int64 `type:"integer"`
  2071. // The name of the configuration option.
  2072. Name *string `type:"string"`
  2073. // A unique namespace identifying the option's associated AWS resource.
  2074. Namespace *string `type:"string"`
  2075. // If specified, the configuration option must be a string value that satisfies
  2076. // this regular expression.
  2077. Regex *OptionRestrictionRegex `type:"structure"`
  2078. // An indication of whether the user defined this configuration option:
  2079. //
  2080. // true : This configuration option was defined by the user. It is a valid
  2081. // choice for specifying if this as an Option to Remove when updating configuration
  2082. // settings.
  2083. //
  2084. // false : This configuration was not defined by the user. Constraint:
  2085. // You can remove only UserDefined options from a configuration.
  2086. //
  2087. // Valid Values: true | false
  2088. UserDefined *bool `type:"boolean"`
  2089. // If specified, values for the configuration option are selected from this
  2090. // list.
  2091. ValueOptions []*string `type:"list"`
  2092. // An indication of which type of values this option has and whether it is allowable
  2093. // to select one or more than one of the possible values:
  2094. //
  2095. // Scalar : Values for this option are a single selection from the possible
  2096. // values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex
  2097. // constraints. List : Values for this option are multiple selections from
  2098. // the possible values. Boolean : Values for this option are either true or
  2099. // false . Json : Values for this option are a JSON representation of a ConfigDocument.
  2100. ValueType *string `type:"string" enum:"ConfigurationOptionValueType"`
  2101. }
  2102. // String returns the string representation
  2103. func (s ConfigurationOptionDescription) String() string {
  2104. return awsutil.Prettify(s)
  2105. }
  2106. // GoString returns the string representation
  2107. func (s ConfigurationOptionDescription) GoString() string {
  2108. return s.String()
  2109. }
  2110. // A specification identifying an individual configuration option along with
  2111. // its current value. For a list of possible option values, go to Option Values
  2112. // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html)
  2113. // in the AWS Elastic Beanstalk Developer Guide.
  2114. type ConfigurationOptionSetting struct {
  2115. _ struct{} `type:"structure"`
  2116. // A unique namespace identifying the option's associated AWS resource.
  2117. Namespace *string `type:"string"`
  2118. // The name of the configuration option.
  2119. OptionName *string `type:"string"`
  2120. // A unique resource name for a time-based scaling configuration option.
  2121. ResourceName *string `min:"1" type:"string"`
  2122. // The current value for the configuration option.
  2123. Value *string `type:"string"`
  2124. }
  2125. // String returns the string representation
  2126. func (s ConfigurationOptionSetting) String() string {
  2127. return awsutil.Prettify(s)
  2128. }
  2129. // GoString returns the string representation
  2130. func (s ConfigurationOptionSetting) GoString() string {
  2131. return s.String()
  2132. }
  2133. // Validate inspects the fields of the type to determine if they are valid.
  2134. func (s *ConfigurationOptionSetting) Validate() error {
  2135. invalidParams := request.ErrInvalidParams{Context: "ConfigurationOptionSetting"}
  2136. if s.ResourceName != nil && len(*s.ResourceName) < 1 {
  2137. invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1))
  2138. }
  2139. if invalidParams.Len() > 0 {
  2140. return invalidParams
  2141. }
  2142. return nil
  2143. }
  2144. // Describes the settings for a configuration set.
  2145. type ConfigurationSettingsDescription struct {
  2146. _ struct{} `type:"structure"`
  2147. // The name of the application associated with this configuration set.
  2148. ApplicationName *string `min:"1" type:"string"`
  2149. // The date (in UTC time) when this configuration set was created.
  2150. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2151. // The date (in UTC time) when this configuration set was last modified.
  2152. DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2153. // If this configuration set is associated with an environment, the DeploymentStatus
  2154. // parameter indicates the deployment status of this configuration set:
  2155. //
  2156. // null: This configuration is not associated with a running environment.
  2157. // pending: This is a draft configuration that is not deployed to the associated
  2158. // environment but is in the process of deploying. deployed: This is the configuration
  2159. // that is currently deployed to the associated running environment. failed:
  2160. // This is a draft configuration that failed to successfully deploy.
  2161. DeploymentStatus *string `type:"string" enum:"ConfigurationDeploymentStatus"`
  2162. // Describes this configuration set.
  2163. Description *string `type:"string"`
  2164. // If not null, the name of the environment for this configuration set.
  2165. EnvironmentName *string `min:"4" type:"string"`
  2166. // A list of the configuration options and their values in this configuration
  2167. // set.
  2168. OptionSettings []*ConfigurationOptionSetting `type:"list"`
  2169. // The name of the solution stack this configuration set uses.
  2170. SolutionStackName *string `type:"string"`
  2171. // If not null, the name of the configuration template for this configuration
  2172. // set.
  2173. TemplateName *string `min:"1" type:"string"`
  2174. }
  2175. // String returns the string representation
  2176. func (s ConfigurationSettingsDescription) String() string {
  2177. return awsutil.Prettify(s)
  2178. }
  2179. // GoString returns the string representation
  2180. func (s ConfigurationSettingsDescription) GoString() string {
  2181. return s.String()
  2182. }
  2183. // Request to create an application.
  2184. type CreateApplicationInput struct {
  2185. _ struct{} `type:"structure"`
  2186. // The name of the application.
  2187. //
  2188. // Constraint: This name must be unique within your account. If the specified
  2189. // name already exists, the action returns an InvalidParameterValue error.
  2190. ApplicationName *string `min:"1" type:"string" required:"true"`
  2191. // Describes the application.
  2192. Description *string `type:"string"`
  2193. }
  2194. // String returns the string representation
  2195. func (s CreateApplicationInput) String() string {
  2196. return awsutil.Prettify(s)
  2197. }
  2198. // GoString returns the string representation
  2199. func (s CreateApplicationInput) GoString() string {
  2200. return s.String()
  2201. }
  2202. // Validate inspects the fields of the type to determine if they are valid.
  2203. func (s *CreateApplicationInput) Validate() error {
  2204. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  2205. if s.ApplicationName == nil {
  2206. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2207. }
  2208. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2209. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2210. }
  2211. if invalidParams.Len() > 0 {
  2212. return invalidParams
  2213. }
  2214. return nil
  2215. }
  2216. type CreateApplicationVersionInput struct {
  2217. _ struct{} `type:"structure"`
  2218. // The name of the application. If no application is found with this name, and
  2219. // AutoCreateApplication is false, returns an InvalidParameterValue error.
  2220. ApplicationName *string `min:"1" type:"string" required:"true"`
  2221. // Determines how the system behaves if the specified application for this version
  2222. // does not already exist:
  2223. //
  2224. // true : Automatically creates the specified application for this release
  2225. // if it does not already exist. false : Throws an InvalidParameterValue if
  2226. // the specified application for this release does not already exist. Default:
  2227. // false
  2228. //
  2229. // Valid Values: true | false
  2230. AutoCreateApplication *bool `type:"boolean"`
  2231. // Describes this version.
  2232. Description *string `type:"string"`
  2233. // Preprocesses and validates the environment manifest and configuration files
  2234. // in the source bundle. Validating configuration files can identify issues
  2235. // prior to deploying the application version to an environment.
  2236. Process *bool `type:"boolean"`
  2237. // The Amazon S3 bucket and key that identify the location of the source bundle
  2238. // for this version.
  2239. //
  2240. // If data found at the Amazon S3 location exceeds the maximum allowed source
  2241. // bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error.
  2242. // The maximum size allowed is 512 MB.
  2243. //
  2244. // Default: If not specified, AWS Elastic Beanstalk uses a sample application.
  2245. // If only partially specified (for example, a bucket is provided but not the
  2246. // key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk
  2247. // returns an InvalidParameterCombination error.
  2248. SourceBundle *S3Location `type:"structure"`
  2249. // A label identifying this version.
  2250. //
  2251. // Constraint: Must be unique per application. If an application version already
  2252. // exists with this label for the specified application, AWS Elastic Beanstalk
  2253. // returns an InvalidParameterValue error.
  2254. VersionLabel *string `min:"1" type:"string" required:"true"`
  2255. }
  2256. // String returns the string representation
  2257. func (s CreateApplicationVersionInput) String() string {
  2258. return awsutil.Prettify(s)
  2259. }
  2260. // GoString returns the string representation
  2261. func (s CreateApplicationVersionInput) GoString() string {
  2262. return s.String()
  2263. }
  2264. // Validate inspects the fields of the type to determine if they are valid.
  2265. func (s *CreateApplicationVersionInput) Validate() error {
  2266. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationVersionInput"}
  2267. if s.ApplicationName == nil {
  2268. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2269. }
  2270. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2271. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2272. }
  2273. if s.VersionLabel == nil {
  2274. invalidParams.Add(request.NewErrParamRequired("VersionLabel"))
  2275. }
  2276. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  2277. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  2278. }
  2279. if invalidParams.Len() > 0 {
  2280. return invalidParams
  2281. }
  2282. return nil
  2283. }
  2284. // Request to create a configuration template.
  2285. type CreateConfigurationTemplateInput struct {
  2286. _ struct{} `type:"structure"`
  2287. // The name of the application to associate with this configuration template.
  2288. // If no application is found with this name, AWS Elastic Beanstalk returns
  2289. // an InvalidParameterValue error.
  2290. ApplicationName *string `min:"1" type:"string" required:"true"`
  2291. // Describes this configuration.
  2292. Description *string `type:"string"`
  2293. // The ID of the environment used with this configuration template.
  2294. EnvironmentId *string `type:"string"`
  2295. // If specified, AWS Elastic Beanstalk sets the specified configuration option
  2296. // to the requested value. The new value overrides the value obtained from the
  2297. // solution stack or the source configuration template.
  2298. OptionSettings []*ConfigurationOptionSetting `type:"list"`
  2299. // The name of the solution stack used by this configuration. The solution stack
  2300. // specifies the operating system, architecture, and application server for
  2301. // a configuration template. It determines the set of configuration options
  2302. // as well as the possible and default values.
  2303. //
  2304. // Use ListAvailableSolutionStacks to obtain a list of available solution
  2305. // stacks.
  2306. //
  2307. // A solution stack name or a source configuration parameter must be specified,
  2308. // otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.
  2309. //
  2310. // If a solution stack name is not specified and the source configuration
  2311. // parameter is specified, AWS Elastic Beanstalk uses the same solution stack
  2312. // as the source configuration template.
  2313. SolutionStackName *string `type:"string"`
  2314. // If specified, AWS Elastic Beanstalk uses the configuration values from the
  2315. // specified configuration template to create a new configuration.
  2316. //
  2317. // Values specified in the OptionSettings parameter of this call overrides
  2318. // any values obtained from the SourceConfiguration.
  2319. //
  2320. // If no configuration template is found, returns an InvalidParameterValue
  2321. // error.
  2322. //
  2323. // Constraint: If both the solution stack name parameter and the source configuration
  2324. // parameters are specified, the solution stack of the source configuration
  2325. // template must match the specified solution stack name or else AWS Elastic
  2326. // Beanstalk returns an InvalidParameterCombination error.
  2327. SourceConfiguration *SourceConfiguration `type:"structure"`
  2328. // The name of the configuration template.
  2329. //
  2330. // Constraint: This name must be unique per application.
  2331. //
  2332. // Default: If a configuration template already exists with this name, AWS
  2333. // Elastic Beanstalk returns an InvalidParameterValue error.
  2334. TemplateName *string `min:"1" type:"string" required:"true"`
  2335. }
  2336. // String returns the string representation
  2337. func (s CreateConfigurationTemplateInput) String() string {
  2338. return awsutil.Prettify(s)
  2339. }
  2340. // GoString returns the string representation
  2341. func (s CreateConfigurationTemplateInput) GoString() string {
  2342. return s.String()
  2343. }
  2344. // Validate inspects the fields of the type to determine if they are valid.
  2345. func (s *CreateConfigurationTemplateInput) Validate() error {
  2346. invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationTemplateInput"}
  2347. if s.ApplicationName == nil {
  2348. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2349. }
  2350. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2351. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2352. }
  2353. if s.TemplateName == nil {
  2354. invalidParams.Add(request.NewErrParamRequired("TemplateName"))
  2355. }
  2356. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  2357. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  2358. }
  2359. if s.OptionSettings != nil {
  2360. for i, v := range s.OptionSettings {
  2361. if v == nil {
  2362. continue
  2363. }
  2364. if err := v.Validate(); err != nil {
  2365. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams))
  2366. }
  2367. }
  2368. }
  2369. if s.SourceConfiguration != nil {
  2370. if err := s.SourceConfiguration.Validate(); err != nil {
  2371. invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams))
  2372. }
  2373. }
  2374. if invalidParams.Len() > 0 {
  2375. return invalidParams
  2376. }
  2377. return nil
  2378. }
  2379. type CreateEnvironmentInput struct {
  2380. _ struct{} `type:"structure"`
  2381. // The name of the application that contains the version to be deployed.
  2382. //
  2383. // If no application is found with this name, CreateEnvironment returns an
  2384. // InvalidParameterValue error.
  2385. ApplicationName *string `min:"1" type:"string" required:"true"`
  2386. // If specified, the environment attempts to use this value as the prefix for
  2387. // the CNAME. If not specified, the CNAME is generated automatically by appending
  2388. // a random alphanumeric string to the environment name.
  2389. CNAMEPrefix *string `min:"4" type:"string"`
  2390. // Describes this environment.
  2391. Description *string `type:"string"`
  2392. // A unique name for the deployment environment. Used in the application URL.
  2393. //
  2394. // Constraint: Must be from 4 to 40 characters in length. The name can contain
  2395. // only letters, numbers, and hyphens. It cannot start or end with a hyphen.
  2396. // This name must be unique in your account. If the specified name already exists,
  2397. // AWS Elastic Beanstalk returns an InvalidParameterValue error.
  2398. //
  2399. // Default: If the CNAME parameter is not specified, the environment name becomes
  2400. // part of the CNAME, and therefore part of the visible URL for your application.
  2401. EnvironmentName *string `min:"4" type:"string"`
  2402. // The name of the group to which the target environment belongs. Specify a
  2403. // group name only if the environment's name is specified in an environment
  2404. // manifest and not with the environment name parameter. See Environment Manifest
  2405. // (env.yaml) (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html)
  2406. // for details.
  2407. GroupName *string `min:"1" type:"string"`
  2408. // If specified, AWS Elastic Beanstalk sets the specified configuration options
  2409. // to the requested value in the configuration set for the new environment.
  2410. // These override the values obtained from the solution stack or the configuration
  2411. // template.
  2412. OptionSettings []*ConfigurationOptionSetting `type:"list"`
  2413. // A list of custom user-defined configuration options to remove from the configuration
  2414. // set for this new environment.
  2415. OptionsToRemove []*OptionSpecification `type:"list"`
  2416. // This is an alternative to specifying a template name. If specified, AWS Elastic
  2417. // Beanstalk sets the configuration values to the default values associated
  2418. // with the specified solution stack.
  2419. //
  2420. // Condition: You must specify either this or a TemplateName, but not both.
  2421. // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
  2422. // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter
  2423. // error.
  2424. SolutionStackName *string `type:"string"`
  2425. // This specifies the tags applied to resources in the environment.
  2426. Tags []*Tag `type:"list"`
  2427. // The name of the configuration template to use in deployment. If no configuration
  2428. // template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue
  2429. // error.
  2430. //
  2431. // Condition: You must specify either this parameter or a SolutionStackName,
  2432. // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
  2433. // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter
  2434. // error.
  2435. TemplateName *string `min:"1" type:"string"`
  2436. // This specifies the tier to use for creating this environment.
  2437. Tier *EnvironmentTier `type:"structure"`
  2438. // The name of the application version to deploy.
  2439. //
  2440. // If the specified application has no associated application versions, AWS
  2441. // Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.
  2442. //
  2443. // Default: If not specified, AWS Elastic Beanstalk attempts to launch the
  2444. // sample application in the container.
  2445. VersionLabel *string `min:"1" type:"string"`
  2446. }
  2447. // String returns the string representation
  2448. func (s CreateEnvironmentInput) String() string {
  2449. return awsutil.Prettify(s)
  2450. }
  2451. // GoString returns the string representation
  2452. func (s CreateEnvironmentInput) GoString() string {
  2453. return s.String()
  2454. }
  2455. // Validate inspects the fields of the type to determine if they are valid.
  2456. func (s *CreateEnvironmentInput) Validate() error {
  2457. invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"}
  2458. if s.ApplicationName == nil {
  2459. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2460. }
  2461. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2462. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2463. }
  2464. if s.CNAMEPrefix != nil && len(*s.CNAMEPrefix) < 4 {
  2465. invalidParams.Add(request.NewErrParamMinLen("CNAMEPrefix", 4))
  2466. }
  2467. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  2468. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  2469. }
  2470. if s.GroupName != nil && len(*s.GroupName) < 1 {
  2471. invalidParams.Add(request.NewErrParamMinLen("GroupName", 1))
  2472. }
  2473. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  2474. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  2475. }
  2476. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  2477. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  2478. }
  2479. if s.OptionSettings != nil {
  2480. for i, v := range s.OptionSettings {
  2481. if v == nil {
  2482. continue
  2483. }
  2484. if err := v.Validate(); err != nil {
  2485. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams))
  2486. }
  2487. }
  2488. }
  2489. if s.OptionsToRemove != nil {
  2490. for i, v := range s.OptionsToRemove {
  2491. if v == nil {
  2492. continue
  2493. }
  2494. if err := v.Validate(); err != nil {
  2495. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToRemove", i), err.(request.ErrInvalidParams))
  2496. }
  2497. }
  2498. }
  2499. if s.Tags != nil {
  2500. for i, v := range s.Tags {
  2501. if v == nil {
  2502. continue
  2503. }
  2504. if err := v.Validate(); err != nil {
  2505. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2506. }
  2507. }
  2508. }
  2509. if invalidParams.Len() > 0 {
  2510. return invalidParams
  2511. }
  2512. return nil
  2513. }
  2514. type CreateStorageLocationInput struct {
  2515. _ struct{} `type:"structure"`
  2516. }
  2517. // String returns the string representation
  2518. func (s CreateStorageLocationInput) String() string {
  2519. return awsutil.Prettify(s)
  2520. }
  2521. // GoString returns the string representation
  2522. func (s CreateStorageLocationInput) GoString() string {
  2523. return s.String()
  2524. }
  2525. // Results of a CreateStorageLocationResult call.
  2526. type CreateStorageLocationOutput struct {
  2527. _ struct{} `type:"structure"`
  2528. // The name of the Amazon S3 bucket created.
  2529. S3Bucket *string `type:"string"`
  2530. }
  2531. // String returns the string representation
  2532. func (s CreateStorageLocationOutput) String() string {
  2533. return awsutil.Prettify(s)
  2534. }
  2535. // GoString returns the string representation
  2536. func (s CreateStorageLocationOutput) GoString() string {
  2537. return s.String()
  2538. }
  2539. // Request to delete an application.
  2540. type DeleteApplicationInput struct {
  2541. _ struct{} `type:"structure"`
  2542. // The name of the application to delete.
  2543. ApplicationName *string `min:"1" type:"string" required:"true"`
  2544. // When set to true, running environments will be terminated before deleting
  2545. // the application.
  2546. TerminateEnvByForce *bool `type:"boolean"`
  2547. }
  2548. // String returns the string representation
  2549. func (s DeleteApplicationInput) String() string {
  2550. return awsutil.Prettify(s)
  2551. }
  2552. // GoString returns the string representation
  2553. func (s DeleteApplicationInput) GoString() string {
  2554. return s.String()
  2555. }
  2556. // Validate inspects the fields of the type to determine if they are valid.
  2557. func (s *DeleteApplicationInput) Validate() error {
  2558. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
  2559. if s.ApplicationName == nil {
  2560. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2561. }
  2562. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2563. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2564. }
  2565. if invalidParams.Len() > 0 {
  2566. return invalidParams
  2567. }
  2568. return nil
  2569. }
  2570. type DeleteApplicationOutput struct {
  2571. _ struct{} `type:"structure"`
  2572. }
  2573. // String returns the string representation
  2574. func (s DeleteApplicationOutput) String() string {
  2575. return awsutil.Prettify(s)
  2576. }
  2577. // GoString returns the string representation
  2578. func (s DeleteApplicationOutput) GoString() string {
  2579. return s.String()
  2580. }
  2581. // Request to delete an application version.
  2582. type DeleteApplicationVersionInput struct {
  2583. _ struct{} `type:"structure"`
  2584. // The name of the application to delete releases from.
  2585. ApplicationName *string `min:"1" type:"string" required:"true"`
  2586. // Indicates whether to delete the associated source bundle from Amazon S3:
  2587. //
  2588. // true: An attempt is made to delete the associated Amazon S3 source bundle
  2589. // specified at time of creation. false: No action is taken on the Amazon
  2590. // S3 source bundle specified at time of creation. Valid Values: true | false
  2591. DeleteSourceBundle *bool `type:"boolean"`
  2592. // The label of the version to delete.
  2593. VersionLabel *string `min:"1" type:"string" required:"true"`
  2594. }
  2595. // String returns the string representation
  2596. func (s DeleteApplicationVersionInput) String() string {
  2597. return awsutil.Prettify(s)
  2598. }
  2599. // GoString returns the string representation
  2600. func (s DeleteApplicationVersionInput) GoString() string {
  2601. return s.String()
  2602. }
  2603. // Validate inspects the fields of the type to determine if they are valid.
  2604. func (s *DeleteApplicationVersionInput) Validate() error {
  2605. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationVersionInput"}
  2606. if s.ApplicationName == nil {
  2607. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2608. }
  2609. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2610. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2611. }
  2612. if s.VersionLabel == nil {
  2613. invalidParams.Add(request.NewErrParamRequired("VersionLabel"))
  2614. }
  2615. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  2616. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  2617. }
  2618. if invalidParams.Len() > 0 {
  2619. return invalidParams
  2620. }
  2621. return nil
  2622. }
  2623. type DeleteApplicationVersionOutput struct {
  2624. _ struct{} `type:"structure"`
  2625. }
  2626. // String returns the string representation
  2627. func (s DeleteApplicationVersionOutput) String() string {
  2628. return awsutil.Prettify(s)
  2629. }
  2630. // GoString returns the string representation
  2631. func (s DeleteApplicationVersionOutput) GoString() string {
  2632. return s.String()
  2633. }
  2634. // Request to delete a configuration template.
  2635. type DeleteConfigurationTemplateInput struct {
  2636. _ struct{} `type:"structure"`
  2637. // The name of the application to delete the configuration template from.
  2638. ApplicationName *string `min:"1" type:"string" required:"true"`
  2639. // The name of the configuration template to delete.
  2640. TemplateName *string `min:"1" type:"string" required:"true"`
  2641. }
  2642. // String returns the string representation
  2643. func (s DeleteConfigurationTemplateInput) String() string {
  2644. return awsutil.Prettify(s)
  2645. }
  2646. // GoString returns the string representation
  2647. func (s DeleteConfigurationTemplateInput) GoString() string {
  2648. return s.String()
  2649. }
  2650. // Validate inspects the fields of the type to determine if they are valid.
  2651. func (s *DeleteConfigurationTemplateInput) Validate() error {
  2652. invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationTemplateInput"}
  2653. if s.ApplicationName == nil {
  2654. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2655. }
  2656. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2657. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2658. }
  2659. if s.TemplateName == nil {
  2660. invalidParams.Add(request.NewErrParamRequired("TemplateName"))
  2661. }
  2662. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  2663. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  2664. }
  2665. if invalidParams.Len() > 0 {
  2666. return invalidParams
  2667. }
  2668. return nil
  2669. }
  2670. type DeleteConfigurationTemplateOutput struct {
  2671. _ struct{} `type:"structure"`
  2672. }
  2673. // String returns the string representation
  2674. func (s DeleteConfigurationTemplateOutput) String() string {
  2675. return awsutil.Prettify(s)
  2676. }
  2677. // GoString returns the string representation
  2678. func (s DeleteConfigurationTemplateOutput) GoString() string {
  2679. return s.String()
  2680. }
  2681. // Request to delete a draft environment configuration.
  2682. type DeleteEnvironmentConfigurationInput struct {
  2683. _ struct{} `type:"structure"`
  2684. // The name of the application the environment is associated with.
  2685. ApplicationName *string `min:"1" type:"string" required:"true"`
  2686. // The name of the environment to delete the draft configuration from.
  2687. EnvironmentName *string `min:"4" type:"string" required:"true"`
  2688. }
  2689. // String returns the string representation
  2690. func (s DeleteEnvironmentConfigurationInput) String() string {
  2691. return awsutil.Prettify(s)
  2692. }
  2693. // GoString returns the string representation
  2694. func (s DeleteEnvironmentConfigurationInput) GoString() string {
  2695. return s.String()
  2696. }
  2697. // Validate inspects the fields of the type to determine if they are valid.
  2698. func (s *DeleteEnvironmentConfigurationInput) Validate() error {
  2699. invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentConfigurationInput"}
  2700. if s.ApplicationName == nil {
  2701. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2702. }
  2703. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2704. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2705. }
  2706. if s.EnvironmentName == nil {
  2707. invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
  2708. }
  2709. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  2710. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  2711. }
  2712. if invalidParams.Len() > 0 {
  2713. return invalidParams
  2714. }
  2715. return nil
  2716. }
  2717. type DeleteEnvironmentConfigurationOutput struct {
  2718. _ struct{} `type:"structure"`
  2719. }
  2720. // String returns the string representation
  2721. func (s DeleteEnvironmentConfigurationOutput) String() string {
  2722. return awsutil.Prettify(s)
  2723. }
  2724. // GoString returns the string representation
  2725. func (s DeleteEnvironmentConfigurationOutput) GoString() string {
  2726. return s.String()
  2727. }
  2728. // Information about an application version deployment.
  2729. type Deployment struct {
  2730. _ struct{} `type:"structure"`
  2731. // The ID of the deployment. This number increases by one each time that you
  2732. // deploy source code or change instance configuration settings.
  2733. DeploymentId *int64 `type:"long"`
  2734. // For in-progress deployments, the time that the deloyment started.
  2735. //
  2736. // For completed deployments, the time that the deployment ended.
  2737. DeploymentTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2738. // The status of the deployment:
  2739. //
  2740. // In Progress : The deployment is in progress. Deployed : The deployment
  2741. // succeeded. Failed : The deployment failed.
  2742. Status *string `type:"string"`
  2743. // The version label of the application version in the deployment.
  2744. VersionLabel *string `type:"string"`
  2745. }
  2746. // String returns the string representation
  2747. func (s Deployment) String() string {
  2748. return awsutil.Prettify(s)
  2749. }
  2750. // GoString returns the string representation
  2751. func (s Deployment) GoString() string {
  2752. return s.String()
  2753. }
  2754. // Result message containing a list of configuration descriptions.
  2755. type DescribeApplicationVersionsInput struct {
  2756. _ struct{} `type:"structure"`
  2757. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  2758. // only include ones that are associated with the specified application.
  2759. ApplicationName *string `min:"1" type:"string"`
  2760. // If specified, restricts the returned descriptions to only include ones that
  2761. // have the specified version labels.
  2762. VersionLabels []*string `type:"list"`
  2763. }
  2764. // String returns the string representation
  2765. func (s DescribeApplicationVersionsInput) String() string {
  2766. return awsutil.Prettify(s)
  2767. }
  2768. // GoString returns the string representation
  2769. func (s DescribeApplicationVersionsInput) GoString() string {
  2770. return s.String()
  2771. }
  2772. // Validate inspects the fields of the type to determine if they are valid.
  2773. func (s *DescribeApplicationVersionsInput) Validate() error {
  2774. invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationVersionsInput"}
  2775. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2776. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2777. }
  2778. if invalidParams.Len() > 0 {
  2779. return invalidParams
  2780. }
  2781. return nil
  2782. }
  2783. // Result message wrapping a list of application version descriptions.
  2784. type DescribeApplicationVersionsOutput struct {
  2785. _ struct{} `type:"structure"`
  2786. // List of ApplicationVersionDescription objects sorted by order of creation.
  2787. ApplicationVersions []*ApplicationVersionDescription `type:"list"`
  2788. }
  2789. // String returns the string representation
  2790. func (s DescribeApplicationVersionsOutput) String() string {
  2791. return awsutil.Prettify(s)
  2792. }
  2793. // GoString returns the string representation
  2794. func (s DescribeApplicationVersionsOutput) GoString() string {
  2795. return s.String()
  2796. }
  2797. // Request to describe one or more applications.
  2798. type DescribeApplicationsInput struct {
  2799. _ struct{} `type:"structure"`
  2800. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  2801. // only include those with the specified names.
  2802. ApplicationNames []*string `type:"list"`
  2803. }
  2804. // String returns the string representation
  2805. func (s DescribeApplicationsInput) String() string {
  2806. return awsutil.Prettify(s)
  2807. }
  2808. // GoString returns the string representation
  2809. func (s DescribeApplicationsInput) GoString() string {
  2810. return s.String()
  2811. }
  2812. // Result message containing a list of application descriptions.
  2813. type DescribeApplicationsOutput struct {
  2814. _ struct{} `type:"structure"`
  2815. // This parameter contains a list of ApplicationDescription.
  2816. Applications []*ApplicationDescription `type:"list"`
  2817. }
  2818. // String returns the string representation
  2819. func (s DescribeApplicationsOutput) String() string {
  2820. return awsutil.Prettify(s)
  2821. }
  2822. // GoString returns the string representation
  2823. func (s DescribeApplicationsOutput) GoString() string {
  2824. return s.String()
  2825. }
  2826. // Result message containig a list of application version descriptions.
  2827. type DescribeConfigurationOptionsInput struct {
  2828. _ struct{} `type:"structure"`
  2829. // The name of the application associated with the configuration template or
  2830. // environment. Only needed if you want to describe the configuration options
  2831. // associated with either the configuration template or environment.
  2832. ApplicationName *string `min:"1" type:"string"`
  2833. // The name of the environment whose configuration options you want to describe.
  2834. EnvironmentName *string `min:"4" type:"string"`
  2835. // If specified, restricts the descriptions to only the specified options.
  2836. Options []*OptionSpecification `type:"list"`
  2837. // The name of the solution stack whose configuration options you want to describe.
  2838. SolutionStackName *string `type:"string"`
  2839. // The name of the configuration template whose configuration options you want
  2840. // to describe.
  2841. TemplateName *string `min:"1" type:"string"`
  2842. }
  2843. // String returns the string representation
  2844. func (s DescribeConfigurationOptionsInput) String() string {
  2845. return awsutil.Prettify(s)
  2846. }
  2847. // GoString returns the string representation
  2848. func (s DescribeConfigurationOptionsInput) GoString() string {
  2849. return s.String()
  2850. }
  2851. // Validate inspects the fields of the type to determine if they are valid.
  2852. func (s *DescribeConfigurationOptionsInput) Validate() error {
  2853. invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationOptionsInput"}
  2854. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2855. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2856. }
  2857. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  2858. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  2859. }
  2860. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  2861. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  2862. }
  2863. if s.Options != nil {
  2864. for i, v := range s.Options {
  2865. if v == nil {
  2866. continue
  2867. }
  2868. if err := v.Validate(); err != nil {
  2869. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Options", i), err.(request.ErrInvalidParams))
  2870. }
  2871. }
  2872. }
  2873. if invalidParams.Len() > 0 {
  2874. return invalidParams
  2875. }
  2876. return nil
  2877. }
  2878. // Describes the settings for a specified configuration set.
  2879. type DescribeConfigurationOptionsOutput struct {
  2880. _ struct{} `type:"structure"`
  2881. // A list of ConfigurationOptionDescription.
  2882. Options []*ConfigurationOptionDescription `type:"list"`
  2883. // The name of the solution stack these configuration options belong to.
  2884. SolutionStackName *string `type:"string"`
  2885. }
  2886. // String returns the string representation
  2887. func (s DescribeConfigurationOptionsOutput) String() string {
  2888. return awsutil.Prettify(s)
  2889. }
  2890. // GoString returns the string representation
  2891. func (s DescribeConfigurationOptionsOutput) GoString() string {
  2892. return s.String()
  2893. }
  2894. // Result message containing all of the configuration settings for a specified
  2895. // solution stack or configuration template.
  2896. type DescribeConfigurationSettingsInput struct {
  2897. _ struct{} `type:"structure"`
  2898. // The application for the environment or configuration template.
  2899. ApplicationName *string `min:"1" type:"string" required:"true"`
  2900. // The name of the environment to describe.
  2901. //
  2902. // Condition: You must specify either this or a TemplateName, but not both.
  2903. // If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
  2904. // error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  2905. // error.
  2906. EnvironmentName *string `min:"4" type:"string"`
  2907. // The name of the configuration template to describe.
  2908. //
  2909. // Conditional: You must specify either this parameter or an EnvironmentName,
  2910. // but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination
  2911. // error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter
  2912. // error.
  2913. TemplateName *string `min:"1" type:"string"`
  2914. }
  2915. // String returns the string representation
  2916. func (s DescribeConfigurationSettingsInput) String() string {
  2917. return awsutil.Prettify(s)
  2918. }
  2919. // GoString returns the string representation
  2920. func (s DescribeConfigurationSettingsInput) GoString() string {
  2921. return s.String()
  2922. }
  2923. // Validate inspects the fields of the type to determine if they are valid.
  2924. func (s *DescribeConfigurationSettingsInput) Validate() error {
  2925. invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationSettingsInput"}
  2926. if s.ApplicationName == nil {
  2927. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2928. }
  2929. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2930. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2931. }
  2932. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  2933. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  2934. }
  2935. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  2936. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  2937. }
  2938. if invalidParams.Len() > 0 {
  2939. return invalidParams
  2940. }
  2941. return nil
  2942. }
  2943. // The results from a request to change the configuration settings of an environment.
  2944. type DescribeConfigurationSettingsOutput struct {
  2945. _ struct{} `type:"structure"`
  2946. // A list of ConfigurationSettingsDescription.
  2947. ConfigurationSettings []*ConfigurationSettingsDescription `type:"list"`
  2948. }
  2949. // String returns the string representation
  2950. func (s DescribeConfigurationSettingsOutput) String() string {
  2951. return awsutil.Prettify(s)
  2952. }
  2953. // GoString returns the string representation
  2954. func (s DescribeConfigurationSettingsOutput) GoString() string {
  2955. return s.String()
  2956. }
  2957. // See the example below to learn how to create a request body.
  2958. type DescribeEnvironmentHealthInput struct {
  2959. _ struct{} `type:"structure"`
  2960. // Specifies the response elements you wish to receive. If no attribute names
  2961. // are specified, AWS Elastic Beanstalk only returns the name of the environment.
  2962. AttributeNames []*string `type:"list"`
  2963. // Specifies the AWS Elastic Beanstalk environment ID.
  2964. //
  2965. // Condition: You must specify either this or an EnvironmentName, or both.
  2966. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  2967. // error.
  2968. EnvironmentId *string `type:"string"`
  2969. // Specifies the AWS Elastic Beanstalk environment name.
  2970. //
  2971. // Condition: You must specify either this or an EnvironmentId, or both. If
  2972. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  2973. // error.
  2974. EnvironmentName *string `min:"4" type:"string"`
  2975. }
  2976. // String returns the string representation
  2977. func (s DescribeEnvironmentHealthInput) String() string {
  2978. return awsutil.Prettify(s)
  2979. }
  2980. // GoString returns the string representation
  2981. func (s DescribeEnvironmentHealthInput) GoString() string {
  2982. return s.String()
  2983. }
  2984. // Validate inspects the fields of the type to determine if they are valid.
  2985. func (s *DescribeEnvironmentHealthInput) Validate() error {
  2986. invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentHealthInput"}
  2987. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  2988. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  2989. }
  2990. if invalidParams.Len() > 0 {
  2991. return invalidParams
  2992. }
  2993. return nil
  2994. }
  2995. // See the example below for a sample response.
  2996. type DescribeEnvironmentHealthOutput struct {
  2997. _ struct{} `type:"structure"`
  2998. // Represents the application metrics for a specified environment.
  2999. ApplicationMetrics *ApplicationMetrics `type:"structure"`
  3000. // Returns potential causes for the reported status.
  3001. Causes []*string `type:"list"`
  3002. // Returns the color indicator that tells you information about the health of
  3003. // the environment. For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  3004. Color *string `type:"string"`
  3005. // The AWS Elastic Beanstalk environment name.
  3006. EnvironmentName *string `min:"4" type:"string"`
  3007. // Contains the response body with information about the health of the environment.
  3008. HealthStatus *string `type:"string"`
  3009. // Represents summary information about the health of an instance. For more
  3010. // information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  3011. InstancesHealth *InstanceHealthSummary `type:"structure"`
  3012. // The date and time the information was last refreshed.
  3013. RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3014. // Returns the health status value of the environment. For more information,
  3015. // see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  3016. Status *string `type:"string" enum:"EnvironmentHealth"`
  3017. }
  3018. // String returns the string representation
  3019. func (s DescribeEnvironmentHealthOutput) String() string {
  3020. return awsutil.Prettify(s)
  3021. }
  3022. // GoString returns the string representation
  3023. func (s DescribeEnvironmentHealthOutput) GoString() string {
  3024. return s.String()
  3025. }
  3026. // Request to list completed and failed managed actions.
  3027. type DescribeEnvironmentManagedActionHistoryInput struct {
  3028. _ struct{} `type:"structure"`
  3029. // The environment ID of the target environment.
  3030. EnvironmentId *string `type:"string"`
  3031. // The name of the target environment.
  3032. EnvironmentName *string `min:"4" type:"string"`
  3033. // The maximum number of items to return for a single request.
  3034. MaxItems *int64 `type:"integer"`
  3035. // The pagination token returned by a previous request.
  3036. NextToken *string `type:"string"`
  3037. }
  3038. // String returns the string representation
  3039. func (s DescribeEnvironmentManagedActionHistoryInput) String() string {
  3040. return awsutil.Prettify(s)
  3041. }
  3042. // GoString returns the string representation
  3043. func (s DescribeEnvironmentManagedActionHistoryInput) GoString() string {
  3044. return s.String()
  3045. }
  3046. // Validate inspects the fields of the type to determine if they are valid.
  3047. func (s *DescribeEnvironmentManagedActionHistoryInput) Validate() error {
  3048. invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentManagedActionHistoryInput"}
  3049. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3050. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3051. }
  3052. if invalidParams.Len() > 0 {
  3053. return invalidParams
  3054. }
  3055. return nil
  3056. }
  3057. // A result message containing a list of completed and failed managed actions.
  3058. type DescribeEnvironmentManagedActionHistoryOutput struct {
  3059. _ struct{} `type:"structure"`
  3060. // A list of completed and failed managed actions.
  3061. ManagedActionHistoryItems []*ManagedActionHistoryItem `min:"1" type:"list"`
  3062. // A pagination token that you pass to DescribeEnvironmentManagedActionHistory
  3063. // to get the next page of results.
  3064. NextToken *string `type:"string"`
  3065. }
  3066. // String returns the string representation
  3067. func (s DescribeEnvironmentManagedActionHistoryOutput) String() string {
  3068. return awsutil.Prettify(s)
  3069. }
  3070. // GoString returns the string representation
  3071. func (s DescribeEnvironmentManagedActionHistoryOutput) GoString() string {
  3072. return s.String()
  3073. }
  3074. // Request to list an environment's upcoming and in-progress managed actions.
  3075. type DescribeEnvironmentManagedActionsInput struct {
  3076. _ struct{} `type:"structure"`
  3077. // The environment ID of the target environment.
  3078. EnvironmentId *string `type:"string"`
  3079. // The name of the target environment.
  3080. EnvironmentName *string `type:"string"`
  3081. // To show only actions with a particular status, specify a status.
  3082. Status *string `type:"string" enum:"ActionStatus"`
  3083. }
  3084. // String returns the string representation
  3085. func (s DescribeEnvironmentManagedActionsInput) String() string {
  3086. return awsutil.Prettify(s)
  3087. }
  3088. // GoString returns the string representation
  3089. func (s DescribeEnvironmentManagedActionsInput) GoString() string {
  3090. return s.String()
  3091. }
  3092. // The result message containing a list of managed actions.
  3093. type DescribeEnvironmentManagedActionsOutput struct {
  3094. _ struct{} `type:"structure"`
  3095. // A list of upcoming and in-progress managed actions.
  3096. ManagedActions []*ManagedAction `min:"1" type:"list"`
  3097. }
  3098. // String returns the string representation
  3099. func (s DescribeEnvironmentManagedActionsOutput) String() string {
  3100. return awsutil.Prettify(s)
  3101. }
  3102. // GoString returns the string representation
  3103. func (s DescribeEnvironmentManagedActionsOutput) GoString() string {
  3104. return s.String()
  3105. }
  3106. // Request to describe the resources in an environment.
  3107. type DescribeEnvironmentResourcesInput struct {
  3108. _ struct{} `type:"structure"`
  3109. // The ID of the environment to retrieve AWS resource usage data.
  3110. //
  3111. // Condition: You must specify either this or an EnvironmentName, or both.
  3112. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3113. // error.
  3114. EnvironmentId *string `type:"string"`
  3115. // The name of the environment to retrieve AWS resource usage data.
  3116. //
  3117. // Condition: You must specify either this or an EnvironmentId, or both. If
  3118. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3119. // error.
  3120. EnvironmentName *string `min:"4" type:"string"`
  3121. }
  3122. // String returns the string representation
  3123. func (s DescribeEnvironmentResourcesInput) String() string {
  3124. return awsutil.Prettify(s)
  3125. }
  3126. // GoString returns the string representation
  3127. func (s DescribeEnvironmentResourcesInput) GoString() string {
  3128. return s.String()
  3129. }
  3130. // Validate inspects the fields of the type to determine if they are valid.
  3131. func (s *DescribeEnvironmentResourcesInput) Validate() error {
  3132. invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentResourcesInput"}
  3133. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3134. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3135. }
  3136. if invalidParams.Len() > 0 {
  3137. return invalidParams
  3138. }
  3139. return nil
  3140. }
  3141. // Result message containing a list of environment resource descriptions.
  3142. type DescribeEnvironmentResourcesOutput struct {
  3143. _ struct{} `type:"structure"`
  3144. // A list of EnvironmentResourceDescription.
  3145. EnvironmentResources *EnvironmentResourceDescription `type:"structure"`
  3146. }
  3147. // String returns the string representation
  3148. func (s DescribeEnvironmentResourcesOutput) String() string {
  3149. return awsutil.Prettify(s)
  3150. }
  3151. // GoString returns the string representation
  3152. func (s DescribeEnvironmentResourcesOutput) GoString() string {
  3153. return s.String()
  3154. }
  3155. // Request to describe one or more environments.
  3156. type DescribeEnvironmentsInput struct {
  3157. _ struct{} `type:"structure"`
  3158. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3159. // include only those that are associated with this application.
  3160. ApplicationName *string `min:"1" type:"string"`
  3161. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3162. // include only those that have the specified IDs.
  3163. EnvironmentIds []*string `type:"list"`
  3164. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3165. // include only those that have the specified names.
  3166. EnvironmentNames []*string `type:"list"`
  3167. // Indicates whether to include deleted environments:
  3168. //
  3169. // true: Environments that have been deleted after IncludedDeletedBackTo are
  3170. // displayed.
  3171. //
  3172. // false: Do not include deleted environments.
  3173. IncludeDeleted *bool `type:"boolean"`
  3174. // If specified when IncludeDeleted is set to true, then environments deleted
  3175. // after this date are displayed.
  3176. IncludedDeletedBackTo *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3177. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3178. // include only those that are associated with this application version.
  3179. VersionLabel *string `min:"1" type:"string"`
  3180. }
  3181. // String returns the string representation
  3182. func (s DescribeEnvironmentsInput) String() string {
  3183. return awsutil.Prettify(s)
  3184. }
  3185. // GoString returns the string representation
  3186. func (s DescribeEnvironmentsInput) GoString() string {
  3187. return s.String()
  3188. }
  3189. // Validate inspects the fields of the type to determine if they are valid.
  3190. func (s *DescribeEnvironmentsInput) Validate() error {
  3191. invalidParams := request.ErrInvalidParams{Context: "DescribeEnvironmentsInput"}
  3192. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3193. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3194. }
  3195. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  3196. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  3197. }
  3198. if invalidParams.Len() > 0 {
  3199. return invalidParams
  3200. }
  3201. return nil
  3202. }
  3203. // Request to retrieve a list of events for an environment.
  3204. type DescribeEventsInput struct {
  3205. _ struct{} `type:"structure"`
  3206. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3207. // include only those associated with this application.
  3208. ApplicationName *string `min:"1" type:"string"`
  3209. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3210. // those that occur up to, but not including, the EndTime.
  3211. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3212. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3213. // those associated with this environment.
  3214. EnvironmentId *string `type:"string"`
  3215. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3216. // those associated with this environment.
  3217. EnvironmentName *string `min:"4" type:"string"`
  3218. // Specifies the maximum number of events that can be returned, beginning with
  3219. // the most recent event.
  3220. MaxRecords *int64 `min:"1" type:"integer"`
  3221. // Pagination token. If specified, the events return the next batch of results.
  3222. NextToken *string `type:"string"`
  3223. // If specified, AWS Elastic Beanstalk restricts the described events to include
  3224. // only those associated with this request ID.
  3225. RequestId *string `type:"string"`
  3226. // If specified, limits the events returned from this call to include only those
  3227. // with the specified severity or higher.
  3228. Severity *string `type:"string" enum:"EventSeverity"`
  3229. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3230. // those that occur on or after this time.
  3231. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3232. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3233. // those that are associated with this environment configuration.
  3234. TemplateName *string `min:"1" type:"string"`
  3235. // If specified, AWS Elastic Beanstalk restricts the returned descriptions to
  3236. // those associated with this application version.
  3237. VersionLabel *string `min:"1" type:"string"`
  3238. }
  3239. // String returns the string representation
  3240. func (s DescribeEventsInput) String() string {
  3241. return awsutil.Prettify(s)
  3242. }
  3243. // GoString returns the string representation
  3244. func (s DescribeEventsInput) GoString() string {
  3245. return s.String()
  3246. }
  3247. // Validate inspects the fields of the type to determine if they are valid.
  3248. func (s *DescribeEventsInput) Validate() error {
  3249. invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"}
  3250. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  3251. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  3252. }
  3253. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3254. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3255. }
  3256. if s.MaxRecords != nil && *s.MaxRecords < 1 {
  3257. invalidParams.Add(request.NewErrParamMinValue("MaxRecords", 1))
  3258. }
  3259. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  3260. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  3261. }
  3262. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  3263. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  3264. }
  3265. if invalidParams.Len() > 0 {
  3266. return invalidParams
  3267. }
  3268. return nil
  3269. }
  3270. // Result message wrapping a list of event descriptions.
  3271. type DescribeEventsOutput struct {
  3272. _ struct{} `type:"structure"`
  3273. // A list of EventDescription.
  3274. Events []*EventDescription `type:"list"`
  3275. // If returned, this indicates that there are more results to obtain. Use this
  3276. // token in the next DescribeEvents call to get the next batch of events.
  3277. NextToken *string `type:"string"`
  3278. }
  3279. // String returns the string representation
  3280. func (s DescribeEventsOutput) String() string {
  3281. return awsutil.Prettify(s)
  3282. }
  3283. // GoString returns the string representation
  3284. func (s DescribeEventsOutput) GoString() string {
  3285. return s.String()
  3286. }
  3287. // See the example below to learn how to create a request body.
  3288. type DescribeInstancesHealthInput struct {
  3289. _ struct{} `type:"structure"`
  3290. // Specifies the response elements you wish to receive. If no attribute names
  3291. // are specified, AWS Elastic Beanstalk only returns a list of instances.
  3292. AttributeNames []*string `type:"list"`
  3293. // Specifies the AWS Elastic Beanstalk environment ID.
  3294. EnvironmentId *string `type:"string"`
  3295. // Specifies the AWS Elastic Beanstalk environment name.
  3296. EnvironmentName *string `min:"4" type:"string"`
  3297. // Specifies the next token of the request.
  3298. NextToken *string `min:"1" type:"string"`
  3299. }
  3300. // String returns the string representation
  3301. func (s DescribeInstancesHealthInput) String() string {
  3302. return awsutil.Prettify(s)
  3303. }
  3304. // GoString returns the string representation
  3305. func (s DescribeInstancesHealthInput) GoString() string {
  3306. return s.String()
  3307. }
  3308. // Validate inspects the fields of the type to determine if they are valid.
  3309. func (s *DescribeInstancesHealthInput) Validate() error {
  3310. invalidParams := request.ErrInvalidParams{Context: "DescribeInstancesHealthInput"}
  3311. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3312. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3313. }
  3314. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3315. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3316. }
  3317. if invalidParams.Len() > 0 {
  3318. return invalidParams
  3319. }
  3320. return nil
  3321. }
  3322. // See the example below for a sample response.
  3323. type DescribeInstancesHealthOutput struct {
  3324. _ struct{} `type:"structure"`
  3325. // Contains the response body with information about the health of the instance.
  3326. InstanceHealthList []*SingleInstanceHealth `type:"list"`
  3327. // The next token.
  3328. NextToken *string `min:"1" type:"string"`
  3329. // The date and time the information was last refreshed.
  3330. RefreshedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3331. }
  3332. // String returns the string representation
  3333. func (s DescribeInstancesHealthOutput) String() string {
  3334. return awsutil.Prettify(s)
  3335. }
  3336. // GoString returns the string representation
  3337. func (s DescribeInstancesHealthOutput) GoString() string {
  3338. return s.String()
  3339. }
  3340. // Describes the properties of an environment.
  3341. type EnvironmentDescription struct {
  3342. _ struct{} `type:"structure"`
  3343. // Indicates if there is an in-progress environment configuration update or
  3344. // application version deployment that you can cancel.
  3345. //
  3346. // true: There is an update in progress.
  3347. //
  3348. // false: There are no updates currently in progress.
  3349. AbortableOperationInProgress *bool `type:"boolean"`
  3350. // The name of the application associated with this environment.
  3351. ApplicationName *string `min:"1" type:"string"`
  3352. // The URL to the CNAME for this environment.
  3353. CNAME *string `min:"1" type:"string"`
  3354. // The creation date for this environment.
  3355. DateCreated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3356. // The last modified date for this environment.
  3357. DateUpdated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3358. // Describes this environment.
  3359. Description *string `type:"string"`
  3360. // For load-balanced, autoscaling environments, the URL to the LoadBalancer.
  3361. // For single-instance environments, the IP address of the instance.
  3362. EndpointURL *string `type:"string"`
  3363. // The ID of this environment.
  3364. EnvironmentId *string `type:"string"`
  3365. // A list of links to other environments in the same group.
  3366. EnvironmentLinks []*EnvironmentLink `type:"list"`
  3367. // The name of this environment.
  3368. EnvironmentName *string `min:"4" type:"string"`
  3369. // Describes the health status of the environment. AWS Elastic Beanstalk indicates
  3370. // the failure levels for a running environment:
  3371. //
  3372. // Red: Indicates the environment is not responsive. Occurs when three or
  3373. // more consecutive failures occur for an environment. Yellow: Indicates that
  3374. // something is wrong. Occurs when two consecutive failures occur for an environment.
  3375. // Green: Indicates the environment is healthy and fully functional. Grey:
  3376. // Default health for a new environment. The environment is not fully launched
  3377. // and health checks have not started or health checks are suspended during
  3378. // an UpdateEnvironment or RestartEnvironement request. Default: Grey
  3379. Health *string `type:"string" enum:"EnvironmentHealth"`
  3380. // Returns the health status of the application running in your environment.
  3381. // For more information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  3382. HealthStatus *string `type:"string" enum:"EnvironmentHealthStatus"`
  3383. // The description of the AWS resources used by this environment.
  3384. Resources *EnvironmentResourcesDescription `type:"structure"`
  3385. // The name of the SolutionStack deployed with this environment.
  3386. SolutionStackName *string `type:"string"`
  3387. // The current operational status of the environment:
  3388. //
  3389. // Launching: Environment is in the process of initial deployment. Updating:
  3390. // Environment is in the process of updating its configuration settings or application
  3391. // version. Ready: Environment is available to have an action performed on
  3392. // it, such as update or terminate. Terminating: Environment is in the shut-down
  3393. // process. Terminated: Environment is not running.
  3394. Status *string `type:"string" enum:"EnvironmentStatus"`
  3395. // The name of the configuration template used to originally launch this environment.
  3396. TemplateName *string `min:"1" type:"string"`
  3397. // Describes the current tier of this environment.
  3398. Tier *EnvironmentTier `type:"structure"`
  3399. // The application version deployed in this environment.
  3400. VersionLabel *string `min:"1" type:"string"`
  3401. }
  3402. // String returns the string representation
  3403. func (s EnvironmentDescription) String() string {
  3404. return awsutil.Prettify(s)
  3405. }
  3406. // GoString returns the string representation
  3407. func (s EnvironmentDescription) GoString() string {
  3408. return s.String()
  3409. }
  3410. // Result message containing a list of environment descriptions.
  3411. type EnvironmentDescriptionsMessage struct {
  3412. _ struct{} `type:"structure"`
  3413. // Returns an EnvironmentDescription list.
  3414. Environments []*EnvironmentDescription `type:"list"`
  3415. }
  3416. // String returns the string representation
  3417. func (s EnvironmentDescriptionsMessage) String() string {
  3418. return awsutil.Prettify(s)
  3419. }
  3420. // GoString returns the string representation
  3421. func (s EnvironmentDescriptionsMessage) GoString() string {
  3422. return s.String()
  3423. }
  3424. // The information retrieved from the Amazon EC2 instances.
  3425. type EnvironmentInfoDescription struct {
  3426. _ struct{} `type:"structure"`
  3427. // The Amazon EC2 Instance ID for this information.
  3428. Ec2InstanceId *string `type:"string"`
  3429. // The type of information retrieved.
  3430. InfoType *string `type:"string" enum:"EnvironmentInfoType"`
  3431. // The retrieved information.
  3432. Message *string `type:"string"`
  3433. // The time stamp when this information was retrieved.
  3434. SampleTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3435. }
  3436. // String returns the string representation
  3437. func (s EnvironmentInfoDescription) String() string {
  3438. return awsutil.Prettify(s)
  3439. }
  3440. // GoString returns the string representation
  3441. func (s EnvironmentInfoDescription) GoString() string {
  3442. return s.String()
  3443. }
  3444. // A link to another environment, defined in the environment's manifest. Links
  3445. // provide connection information in system properties that can be used to connect
  3446. // to another environment in the same group. See Environment Manifest (env.yaml)
  3447. // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html)
  3448. // for details.
  3449. type EnvironmentLink struct {
  3450. _ struct{} `type:"structure"`
  3451. // The name of the linked environment (the dependency).
  3452. EnvironmentName *string `type:"string"`
  3453. // The name of the link.
  3454. LinkName *string `type:"string"`
  3455. }
  3456. // String returns the string representation
  3457. func (s EnvironmentLink) String() string {
  3458. return awsutil.Prettify(s)
  3459. }
  3460. // GoString returns the string representation
  3461. func (s EnvironmentLink) GoString() string {
  3462. return s.String()
  3463. }
  3464. // Describes the AWS resources in use by this environment. This data is live.
  3465. type EnvironmentResourceDescription struct {
  3466. _ struct{} `type:"structure"`
  3467. // The AutoScalingGroups used by this environment.
  3468. AutoScalingGroups []*AutoScalingGroup `type:"list"`
  3469. // The name of the environment.
  3470. EnvironmentName *string `min:"4" type:"string"`
  3471. // The Amazon EC2 instances used by this environment.
  3472. Instances []*Instance `type:"list"`
  3473. // The Auto Scaling launch configurations in use by this environment.
  3474. LaunchConfigurations []*LaunchConfiguration `type:"list"`
  3475. // The LoadBalancers in use by this environment.
  3476. LoadBalancers []*LoadBalancer `type:"list"`
  3477. // The queues used by this environment.
  3478. Queues []*Queue `type:"list"`
  3479. // The AutoScaling triggers in use by this environment.
  3480. Triggers []*Trigger `type:"list"`
  3481. }
  3482. // String returns the string representation
  3483. func (s EnvironmentResourceDescription) String() string {
  3484. return awsutil.Prettify(s)
  3485. }
  3486. // GoString returns the string representation
  3487. func (s EnvironmentResourceDescription) GoString() string {
  3488. return s.String()
  3489. }
  3490. // Describes the AWS resources in use by this environment. This data is not
  3491. // live data.
  3492. type EnvironmentResourcesDescription struct {
  3493. _ struct{} `type:"structure"`
  3494. // Describes the LoadBalancer.
  3495. LoadBalancer *LoadBalancerDescription `type:"structure"`
  3496. }
  3497. // String returns the string representation
  3498. func (s EnvironmentResourcesDescription) String() string {
  3499. return awsutil.Prettify(s)
  3500. }
  3501. // GoString returns the string representation
  3502. func (s EnvironmentResourcesDescription) GoString() string {
  3503. return s.String()
  3504. }
  3505. // Describes the properties of an environment tier
  3506. type EnvironmentTier struct {
  3507. _ struct{} `type:"structure"`
  3508. // The name of this environment tier.
  3509. Name *string `type:"string"`
  3510. // The type of this environment tier.
  3511. Type *string `type:"string"`
  3512. // The version of this environment tier.
  3513. Version *string `type:"string"`
  3514. }
  3515. // String returns the string representation
  3516. func (s EnvironmentTier) String() string {
  3517. return awsutil.Prettify(s)
  3518. }
  3519. // GoString returns the string representation
  3520. func (s EnvironmentTier) GoString() string {
  3521. return s.String()
  3522. }
  3523. // Describes an event.
  3524. type EventDescription struct {
  3525. _ struct{} `type:"structure"`
  3526. // The application associated with the event.
  3527. ApplicationName *string `min:"1" type:"string"`
  3528. // The name of the environment associated with this event.
  3529. EnvironmentName *string `min:"4" type:"string"`
  3530. // The date when the event occurred.
  3531. EventDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3532. // The event message.
  3533. Message *string `type:"string"`
  3534. // The web service request ID for the activity of this event.
  3535. RequestId *string `type:"string"`
  3536. // The severity level of this event.
  3537. Severity *string `type:"string" enum:"EventSeverity"`
  3538. // The name of the configuration associated with this event.
  3539. TemplateName *string `min:"1" type:"string"`
  3540. // The release label for the application version associated with this event.
  3541. VersionLabel *string `min:"1" type:"string"`
  3542. }
  3543. // String returns the string representation
  3544. func (s EventDescription) String() string {
  3545. return awsutil.Prettify(s)
  3546. }
  3547. // GoString returns the string representation
  3548. func (s EventDescription) GoString() string {
  3549. return s.String()
  3550. }
  3551. // The description of an Amazon EC2 instance.
  3552. type Instance struct {
  3553. _ struct{} `type:"structure"`
  3554. // The ID of the Amazon EC2 instance.
  3555. Id *string `type:"string"`
  3556. }
  3557. // String returns the string representation
  3558. func (s Instance) String() string {
  3559. return awsutil.Prettify(s)
  3560. }
  3561. // GoString returns the string representation
  3562. func (s Instance) GoString() string {
  3563. return s.String()
  3564. }
  3565. // Represents summary information about the health of an instance. For more
  3566. // information, see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  3567. type InstanceHealthSummary struct {
  3568. _ struct{} `type:"structure"`
  3569. // Red. The health agent is reporting a high number of request failures or other
  3570. // issues for an instance or environment.
  3571. Degraded *int64 `type:"integer"`
  3572. // Green. An operation is in progress on an instance.
  3573. Info *int64 `type:"integer"`
  3574. // Grey. AWS Elastic Beanstalk and the health agent are reporting no data on
  3575. // an instance.
  3576. NoData *int64 `type:"integer"`
  3577. // Green. An instance is passing health checks and the health agent is not reporting
  3578. // any problems.
  3579. Ok *int64 `type:"integer"`
  3580. // Grey. An operation is in progress on an instance within the command timeout.
  3581. Pending *int64 `type:"integer"`
  3582. // Red. The health agent is reporting a very high number of request failures
  3583. // or other issues for an instance or environment.
  3584. Severe *int64 `type:"integer"`
  3585. // Grey. AWS Elastic Beanstalk and the health agent are reporting an insufficient
  3586. // amount of data on an instance.
  3587. Unknown *int64 `type:"integer"`
  3588. // Yellow. The health agent is reporting a moderate number of request failures
  3589. // or other issues for an instance or environment.
  3590. Warning *int64 `type:"integer"`
  3591. }
  3592. // String returns the string representation
  3593. func (s InstanceHealthSummary) String() string {
  3594. return awsutil.Prettify(s)
  3595. }
  3596. // GoString returns the string representation
  3597. func (s InstanceHealthSummary) GoString() string {
  3598. return s.String()
  3599. }
  3600. // Represents the average latency for the slowest X percent of requests over
  3601. // the last 10 seconds.
  3602. type Latency struct {
  3603. _ struct{} `type:"structure"`
  3604. // The average latency for the slowest 90 percent of requests over the last
  3605. // 10 seconds.
  3606. P10 *float64 `type:"double"`
  3607. // The average latency for the slowest 50 percent of requests over the last
  3608. // 10 seconds.
  3609. P50 *float64 `type:"double"`
  3610. // The average latency for the slowest 25 percent of requests over the last
  3611. // 10 seconds.
  3612. P75 *float64 `type:"double"`
  3613. // The average latency for the slowest 15 percent of requests over the last
  3614. // 10 seconds.
  3615. P85 *float64 `type:"double"`
  3616. // The average latency for the slowest 10 percent of requests over the last
  3617. // 10 seconds.
  3618. P90 *float64 `type:"double"`
  3619. // The average latency for the slowest 5 percent of requests over the last 10
  3620. // seconds.
  3621. P95 *float64 `type:"double"`
  3622. // The average latency for the slowest 1 percent of requests over the last 10
  3623. // seconds.
  3624. P99 *float64 `type:"double"`
  3625. // The average latency for the slowest 0.1 percent of requests over the last
  3626. // 10 seconds.
  3627. P999 *float64 `type:"double"`
  3628. }
  3629. // String returns the string representation
  3630. func (s Latency) String() string {
  3631. return awsutil.Prettify(s)
  3632. }
  3633. // GoString returns the string representation
  3634. func (s Latency) GoString() string {
  3635. return s.String()
  3636. }
  3637. // Describes an Auto Scaling launch configuration.
  3638. type LaunchConfiguration struct {
  3639. _ struct{} `type:"structure"`
  3640. // The name of the launch configuration.
  3641. Name *string `type:"string"`
  3642. }
  3643. // String returns the string representation
  3644. func (s LaunchConfiguration) String() string {
  3645. return awsutil.Prettify(s)
  3646. }
  3647. // GoString returns the string representation
  3648. func (s LaunchConfiguration) GoString() string {
  3649. return s.String()
  3650. }
  3651. type ListAvailableSolutionStacksInput struct {
  3652. _ struct{} `type:"structure"`
  3653. }
  3654. // String returns the string representation
  3655. func (s ListAvailableSolutionStacksInput) String() string {
  3656. return awsutil.Prettify(s)
  3657. }
  3658. // GoString returns the string representation
  3659. func (s ListAvailableSolutionStacksInput) GoString() string {
  3660. return s.String()
  3661. }
  3662. // A list of available AWS Elastic Beanstalk solution stacks.
  3663. type ListAvailableSolutionStacksOutput struct {
  3664. _ struct{} `type:"structure"`
  3665. // A list of available solution stacks and their SolutionStackDescription.
  3666. SolutionStackDetails []*SolutionStackDescription `type:"list"`
  3667. // A list of available solution stacks.
  3668. SolutionStacks []*string `type:"list"`
  3669. }
  3670. // String returns the string representation
  3671. func (s ListAvailableSolutionStacksOutput) String() string {
  3672. return awsutil.Prettify(s)
  3673. }
  3674. // GoString returns the string representation
  3675. func (s ListAvailableSolutionStacksOutput) GoString() string {
  3676. return s.String()
  3677. }
  3678. // Describes the properties of a Listener for the LoadBalancer.
  3679. type Listener struct {
  3680. _ struct{} `type:"structure"`
  3681. // The port that is used by the Listener.
  3682. Port *int64 `type:"integer"`
  3683. // The protocol that is used by the Listener.
  3684. Protocol *string `type:"string"`
  3685. }
  3686. // String returns the string representation
  3687. func (s Listener) String() string {
  3688. return awsutil.Prettify(s)
  3689. }
  3690. // GoString returns the string representation
  3691. func (s Listener) GoString() string {
  3692. return s.String()
  3693. }
  3694. // Describes a LoadBalancer.
  3695. type LoadBalancer struct {
  3696. _ struct{} `type:"structure"`
  3697. // The name of the LoadBalancer.
  3698. Name *string `type:"string"`
  3699. }
  3700. // String returns the string representation
  3701. func (s LoadBalancer) String() string {
  3702. return awsutil.Prettify(s)
  3703. }
  3704. // GoString returns the string representation
  3705. func (s LoadBalancer) GoString() string {
  3706. return s.String()
  3707. }
  3708. // Describes the details of a LoadBalancer.
  3709. type LoadBalancerDescription struct {
  3710. _ struct{} `type:"structure"`
  3711. // The domain name of the LoadBalancer.
  3712. Domain *string `type:"string"`
  3713. // A list of Listeners used by the LoadBalancer.
  3714. Listeners []*Listener `type:"list"`
  3715. // The name of the LoadBalancer.
  3716. LoadBalancerName *string `type:"string"`
  3717. }
  3718. // String returns the string representation
  3719. func (s LoadBalancerDescription) String() string {
  3720. return awsutil.Prettify(s)
  3721. }
  3722. // GoString returns the string representation
  3723. func (s LoadBalancerDescription) GoString() string {
  3724. return s.String()
  3725. }
  3726. // The record of an upcoming or in-progress managed action.
  3727. type ManagedAction struct {
  3728. _ struct{} `type:"structure"`
  3729. // A description of the managed action.
  3730. ActionDescription *string `type:"string"`
  3731. // A unique identifier for the managed action.
  3732. ActionId *string `type:"string"`
  3733. // The type of managed action.
  3734. ActionType *string `type:"string" enum:"ActionType"`
  3735. // The status of the managed action. If the action is Scheduled, you can apply
  3736. // it immediately with ApplyEnvironmentManagedAction.
  3737. Status *string `type:"string" enum:"ActionStatus"`
  3738. // The start time of the maintenance window in which the managed action will
  3739. // execute.
  3740. WindowStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3741. }
  3742. // String returns the string representation
  3743. func (s ManagedAction) String() string {
  3744. return awsutil.Prettify(s)
  3745. }
  3746. // GoString returns the string representation
  3747. func (s ManagedAction) GoString() string {
  3748. return s.String()
  3749. }
  3750. // The record of a completed or failed managed action.
  3751. type ManagedActionHistoryItem struct {
  3752. _ struct{} `type:"structure"`
  3753. // A description of the managed action.
  3754. ActionDescription *string `type:"string"`
  3755. // A unique identifier for the managed action.
  3756. ActionId *string `type:"string"`
  3757. // The type of the managed action.
  3758. ActionType *string `type:"string" enum:"ActionType"`
  3759. // The date and time that the action started executing.
  3760. ExecutedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3761. // If the action failed, a description of the failure.
  3762. FailureDescription *string `type:"string"`
  3763. // If the action failed, the type of failure.
  3764. FailureType *string `type:"string" enum:"FailureType"`
  3765. // The date and time that the action finished executing.
  3766. FinishedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3767. // The status of the action.
  3768. Status *string `type:"string" enum:"ActionHistoryStatus"`
  3769. }
  3770. // String returns the string representation
  3771. func (s ManagedActionHistoryItem) String() string {
  3772. return awsutil.Prettify(s)
  3773. }
  3774. // GoString returns the string representation
  3775. func (s ManagedActionHistoryItem) GoString() string {
  3776. return s.String()
  3777. }
  3778. // A regular expression representing a restriction on a string configuration
  3779. // option value.
  3780. type OptionRestrictionRegex struct {
  3781. _ struct{} `type:"structure"`
  3782. // A unique name representing this regular expression.
  3783. Label *string `type:"string"`
  3784. // The regular expression pattern that a string configuration option value with
  3785. // this restriction must match.
  3786. Pattern *string `type:"string"`
  3787. }
  3788. // String returns the string representation
  3789. func (s OptionRestrictionRegex) String() string {
  3790. return awsutil.Prettify(s)
  3791. }
  3792. // GoString returns the string representation
  3793. func (s OptionRestrictionRegex) GoString() string {
  3794. return s.String()
  3795. }
  3796. // A specification identifying an individual configuration option.
  3797. type OptionSpecification struct {
  3798. _ struct{} `type:"structure"`
  3799. // A unique namespace identifying the option's associated AWS resource.
  3800. Namespace *string `type:"string"`
  3801. // The name of the configuration option.
  3802. OptionName *string `type:"string"`
  3803. // A unique resource name for a time-based scaling configuration option.
  3804. ResourceName *string `min:"1" type:"string"`
  3805. }
  3806. // String returns the string representation
  3807. func (s OptionSpecification) String() string {
  3808. return awsutil.Prettify(s)
  3809. }
  3810. // GoString returns the string representation
  3811. func (s OptionSpecification) GoString() string {
  3812. return s.String()
  3813. }
  3814. // Validate inspects the fields of the type to determine if they are valid.
  3815. func (s *OptionSpecification) Validate() error {
  3816. invalidParams := request.ErrInvalidParams{Context: "OptionSpecification"}
  3817. if s.ResourceName != nil && len(*s.ResourceName) < 1 {
  3818. invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1))
  3819. }
  3820. if invalidParams.Len() > 0 {
  3821. return invalidParams
  3822. }
  3823. return nil
  3824. }
  3825. // Describes a queue.
  3826. type Queue struct {
  3827. _ struct{} `type:"structure"`
  3828. // The name of the queue.
  3829. Name *string `type:"string"`
  3830. // The URL of the queue.
  3831. URL *string `type:"string"`
  3832. }
  3833. // String returns the string representation
  3834. func (s Queue) String() string {
  3835. return awsutil.Prettify(s)
  3836. }
  3837. // GoString returns the string representation
  3838. func (s Queue) GoString() string {
  3839. return s.String()
  3840. }
  3841. type RebuildEnvironmentInput struct {
  3842. _ struct{} `type:"structure"`
  3843. // The ID of the environment to rebuild.
  3844. //
  3845. // Condition: You must specify either this or an EnvironmentName, or both.
  3846. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3847. // error.
  3848. EnvironmentId *string `type:"string"`
  3849. // The name of the environment to rebuild.
  3850. //
  3851. // Condition: You must specify either this or an EnvironmentId, or both. If
  3852. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3853. // error.
  3854. EnvironmentName *string `min:"4" type:"string"`
  3855. }
  3856. // String returns the string representation
  3857. func (s RebuildEnvironmentInput) String() string {
  3858. return awsutil.Prettify(s)
  3859. }
  3860. // GoString returns the string representation
  3861. func (s RebuildEnvironmentInput) GoString() string {
  3862. return s.String()
  3863. }
  3864. // Validate inspects the fields of the type to determine if they are valid.
  3865. func (s *RebuildEnvironmentInput) Validate() error {
  3866. invalidParams := request.ErrInvalidParams{Context: "RebuildEnvironmentInput"}
  3867. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3868. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3869. }
  3870. if invalidParams.Len() > 0 {
  3871. return invalidParams
  3872. }
  3873. return nil
  3874. }
  3875. type RebuildEnvironmentOutput struct {
  3876. _ struct{} `type:"structure"`
  3877. }
  3878. // String returns the string representation
  3879. func (s RebuildEnvironmentOutput) String() string {
  3880. return awsutil.Prettify(s)
  3881. }
  3882. // GoString returns the string representation
  3883. func (s RebuildEnvironmentOutput) GoString() string {
  3884. return s.String()
  3885. }
  3886. // Request to retrieve logs from an environment and store them in your Elastic
  3887. // Beanstalk storage bucket.
  3888. type RequestEnvironmentInfoInput struct {
  3889. _ struct{} `type:"structure"`
  3890. // The ID of the environment of the requested data.
  3891. //
  3892. // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue
  3893. // error.
  3894. //
  3895. // Condition: You must specify either this or an EnvironmentName, or both.
  3896. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3897. // error.
  3898. EnvironmentId *string `type:"string"`
  3899. // The name of the environment of the requested data.
  3900. //
  3901. // If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue
  3902. // error.
  3903. //
  3904. // Condition: You must specify either this or an EnvironmentId, or both. If
  3905. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3906. // error.
  3907. EnvironmentName *string `min:"4" type:"string"`
  3908. // The type of information to request.
  3909. InfoType *string `type:"string" required:"true" enum:"EnvironmentInfoType"`
  3910. }
  3911. // String returns the string representation
  3912. func (s RequestEnvironmentInfoInput) String() string {
  3913. return awsutil.Prettify(s)
  3914. }
  3915. // GoString returns the string representation
  3916. func (s RequestEnvironmentInfoInput) GoString() string {
  3917. return s.String()
  3918. }
  3919. // Validate inspects the fields of the type to determine if they are valid.
  3920. func (s *RequestEnvironmentInfoInput) Validate() error {
  3921. invalidParams := request.ErrInvalidParams{Context: "RequestEnvironmentInfoInput"}
  3922. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3923. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3924. }
  3925. if s.InfoType == nil {
  3926. invalidParams.Add(request.NewErrParamRequired("InfoType"))
  3927. }
  3928. if invalidParams.Len() > 0 {
  3929. return invalidParams
  3930. }
  3931. return nil
  3932. }
  3933. type RequestEnvironmentInfoOutput struct {
  3934. _ struct{} `type:"structure"`
  3935. }
  3936. // String returns the string representation
  3937. func (s RequestEnvironmentInfoOutput) String() string {
  3938. return awsutil.Prettify(s)
  3939. }
  3940. // GoString returns the string representation
  3941. func (s RequestEnvironmentInfoOutput) GoString() string {
  3942. return s.String()
  3943. }
  3944. type RestartAppServerInput struct {
  3945. _ struct{} `type:"structure"`
  3946. // The ID of the environment to restart the server for.
  3947. //
  3948. // Condition: You must specify either this or an EnvironmentName, or both.
  3949. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3950. // error.
  3951. EnvironmentId *string `type:"string"`
  3952. // The name of the environment to restart the server for.
  3953. //
  3954. // Condition: You must specify either this or an EnvironmentId, or both. If
  3955. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3956. // error.
  3957. EnvironmentName *string `min:"4" type:"string"`
  3958. }
  3959. // String returns the string representation
  3960. func (s RestartAppServerInput) String() string {
  3961. return awsutil.Prettify(s)
  3962. }
  3963. // GoString returns the string representation
  3964. func (s RestartAppServerInput) GoString() string {
  3965. return s.String()
  3966. }
  3967. // Validate inspects the fields of the type to determine if they are valid.
  3968. func (s *RestartAppServerInput) Validate() error {
  3969. invalidParams := request.ErrInvalidParams{Context: "RestartAppServerInput"}
  3970. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  3971. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  3972. }
  3973. if invalidParams.Len() > 0 {
  3974. return invalidParams
  3975. }
  3976. return nil
  3977. }
  3978. type RestartAppServerOutput struct {
  3979. _ struct{} `type:"structure"`
  3980. }
  3981. // String returns the string representation
  3982. func (s RestartAppServerOutput) String() string {
  3983. return awsutil.Prettify(s)
  3984. }
  3985. // GoString returns the string representation
  3986. func (s RestartAppServerOutput) GoString() string {
  3987. return s.String()
  3988. }
  3989. // Request to download logs retrieved with RequestEnvironmentInfo.
  3990. type RetrieveEnvironmentInfoInput struct {
  3991. _ struct{} `type:"structure"`
  3992. // The ID of the data's environment.
  3993. //
  3994. // If no such environment is found, returns an InvalidParameterValue error.
  3995. //
  3996. // Condition: You must specify either this or an EnvironmentName, or both.
  3997. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  3998. // error.
  3999. EnvironmentId *string `type:"string"`
  4000. // The name of the data's environment.
  4001. //
  4002. // If no such environment is found, returns an InvalidParameterValue error.
  4003. //
  4004. // Condition: You must specify either this or an EnvironmentId, or both. If
  4005. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  4006. // error.
  4007. EnvironmentName *string `min:"4" type:"string"`
  4008. // The type of information to retrieve.
  4009. InfoType *string `type:"string" required:"true" enum:"EnvironmentInfoType"`
  4010. }
  4011. // String returns the string representation
  4012. func (s RetrieveEnvironmentInfoInput) String() string {
  4013. return awsutil.Prettify(s)
  4014. }
  4015. // GoString returns the string representation
  4016. func (s RetrieveEnvironmentInfoInput) GoString() string {
  4017. return s.String()
  4018. }
  4019. // Validate inspects the fields of the type to determine if they are valid.
  4020. func (s *RetrieveEnvironmentInfoInput) Validate() error {
  4021. invalidParams := request.ErrInvalidParams{Context: "RetrieveEnvironmentInfoInput"}
  4022. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  4023. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  4024. }
  4025. if s.InfoType == nil {
  4026. invalidParams.Add(request.NewErrParamRequired("InfoType"))
  4027. }
  4028. if invalidParams.Len() > 0 {
  4029. return invalidParams
  4030. }
  4031. return nil
  4032. }
  4033. // Result message containing a description of the requested environment info.
  4034. type RetrieveEnvironmentInfoOutput struct {
  4035. _ struct{} `type:"structure"`
  4036. // The EnvironmentInfoDescription of the environment.
  4037. EnvironmentInfo []*EnvironmentInfoDescription `type:"list"`
  4038. }
  4039. // String returns the string representation
  4040. func (s RetrieveEnvironmentInfoOutput) String() string {
  4041. return awsutil.Prettify(s)
  4042. }
  4043. // GoString returns the string representation
  4044. func (s RetrieveEnvironmentInfoOutput) GoString() string {
  4045. return s.String()
  4046. }
  4047. // A specification of a location in Amazon S3.
  4048. type S3Location struct {
  4049. _ struct{} `type:"structure"`
  4050. // The Amazon S3 bucket where the data is located.
  4051. S3Bucket *string `type:"string"`
  4052. // The Amazon S3 key where the data is located.
  4053. S3Key *string `type:"string"`
  4054. }
  4055. // String returns the string representation
  4056. func (s S3Location) String() string {
  4057. return awsutil.Prettify(s)
  4058. }
  4059. // GoString returns the string representation
  4060. func (s S3Location) GoString() string {
  4061. return s.String()
  4062. }
  4063. // Represents health information from the specified instance that belongs to
  4064. // the AWS Elastic Beanstalk environment. Use the InstanceId property to specify
  4065. // the application instance for which you'd like to return data.
  4066. type SingleInstanceHealth struct {
  4067. _ struct{} `type:"structure"`
  4068. // Represents the application metrics for a specified environment.
  4069. ApplicationMetrics *ApplicationMetrics `type:"structure"`
  4070. // The availability zone in which the instance runs.
  4071. AvailabilityZone *string `type:"string"`
  4072. // Represents the causes, which provide more information about the current health
  4073. // status.
  4074. Causes []*string `type:"list"`
  4075. // Represents the color indicator that gives you information about the health
  4076. // of the EC2 instance. For more information, see Health Colors and Statuses
  4077. // (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  4078. Color *string `type:"string"`
  4079. // Information about the most recent deployment to an instance.
  4080. Deployment *Deployment `type:"structure"`
  4081. // Returns the health status of the specified instance. For more information,
  4082. // see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
  4083. HealthStatus *string `type:"string"`
  4084. // The ID of the Amazon EC2 instance.
  4085. InstanceId *string `min:"1" type:"string"`
  4086. // The instance's type.
  4087. InstanceType *string `type:"string"`
  4088. // The time at which the EC2 instance was launched.
  4089. LaunchedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4090. // Represents CPU utilization and load average information for applications
  4091. // running in the specified environment.
  4092. System *SystemStatus `type:"structure"`
  4093. }
  4094. // String returns the string representation
  4095. func (s SingleInstanceHealth) String() string {
  4096. return awsutil.Prettify(s)
  4097. }
  4098. // GoString returns the string representation
  4099. func (s SingleInstanceHealth) GoString() string {
  4100. return s.String()
  4101. }
  4102. // Describes the solution stack.
  4103. type SolutionStackDescription struct {
  4104. _ struct{} `type:"structure"`
  4105. // The permitted file types allowed for a solution stack.
  4106. PermittedFileTypes []*string `type:"list"`
  4107. // The name of the solution stack.
  4108. SolutionStackName *string `type:"string"`
  4109. }
  4110. // String returns the string representation
  4111. func (s SolutionStackDescription) String() string {
  4112. return awsutil.Prettify(s)
  4113. }
  4114. // GoString returns the string representation
  4115. func (s SolutionStackDescription) GoString() string {
  4116. return s.String()
  4117. }
  4118. // A specification for an environment configuration
  4119. type SourceConfiguration struct {
  4120. _ struct{} `type:"structure"`
  4121. // The name of the application associated with the configuration.
  4122. ApplicationName *string `min:"1" type:"string"`
  4123. // The name of the configuration template.
  4124. TemplateName *string `min:"1" type:"string"`
  4125. }
  4126. // String returns the string representation
  4127. func (s SourceConfiguration) String() string {
  4128. return awsutil.Prettify(s)
  4129. }
  4130. // GoString returns the string representation
  4131. func (s SourceConfiguration) GoString() string {
  4132. return s.String()
  4133. }
  4134. // Validate inspects the fields of the type to determine if they are valid.
  4135. func (s *SourceConfiguration) Validate() error {
  4136. invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"}
  4137. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4138. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4139. }
  4140. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  4141. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  4142. }
  4143. if invalidParams.Len() > 0 {
  4144. return invalidParams
  4145. }
  4146. return nil
  4147. }
  4148. // Represents the percentage of requests over the last 10 seconds that resulted
  4149. // in each type of status code response. For more information, see Status Code
  4150. // Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).
  4151. type StatusCodes struct {
  4152. _ struct{} `type:"structure"`
  4153. // The percentage of requests over the last 10 seconds that resulted in a 2xx
  4154. // (200, 201, etc.) status code.
  4155. Status2xx *int64 `type:"integer"`
  4156. // The percentage of requests over the last 10 seconds that resulted in a 3xx
  4157. // (300, 301, etc.) status code.
  4158. Status3xx *int64 `type:"integer"`
  4159. // The percentage of requests over the last 10 seconds that resulted in a 4xx
  4160. // (400, 401, etc.) status code.
  4161. Status4xx *int64 `type:"integer"`
  4162. // The percentage of requests over the last 10 seconds that resulted in a 5xx
  4163. // (500, 501, etc.) status code.
  4164. Status5xx *int64 `type:"integer"`
  4165. }
  4166. // String returns the string representation
  4167. func (s StatusCodes) String() string {
  4168. return awsutil.Prettify(s)
  4169. }
  4170. // GoString returns the string representation
  4171. func (s StatusCodes) GoString() string {
  4172. return s.String()
  4173. }
  4174. // Swaps the CNAMEs of two environments.
  4175. type SwapEnvironmentCNAMEsInput struct {
  4176. _ struct{} `type:"structure"`
  4177. // The ID of the destination environment.
  4178. //
  4179. // Condition: You must specify at least the DestinationEnvironmentID or the
  4180. // DestinationEnvironmentName. You may also specify both. You must specify the
  4181. // SourceEnvironmentId with the DestinationEnvironmentId.
  4182. DestinationEnvironmentId *string `type:"string"`
  4183. // The name of the destination environment.
  4184. //
  4185. // Condition: You must specify at least the DestinationEnvironmentID or the
  4186. // DestinationEnvironmentName. You may also specify both. You must specify the
  4187. // SourceEnvironmentName with the DestinationEnvironmentName.
  4188. DestinationEnvironmentName *string `min:"4" type:"string"`
  4189. // The ID of the source environment.
  4190. //
  4191. // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName.
  4192. // You may also specify both. If you specify the SourceEnvironmentId, you must
  4193. // specify the DestinationEnvironmentId.
  4194. SourceEnvironmentId *string `type:"string"`
  4195. // The name of the source environment.
  4196. //
  4197. // Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName.
  4198. // You may also specify both. If you specify the SourceEnvironmentName, you
  4199. // must specify the DestinationEnvironmentName.
  4200. SourceEnvironmentName *string `min:"4" type:"string"`
  4201. }
  4202. // String returns the string representation
  4203. func (s SwapEnvironmentCNAMEsInput) String() string {
  4204. return awsutil.Prettify(s)
  4205. }
  4206. // GoString returns the string representation
  4207. func (s SwapEnvironmentCNAMEsInput) GoString() string {
  4208. return s.String()
  4209. }
  4210. // Validate inspects the fields of the type to determine if they are valid.
  4211. func (s *SwapEnvironmentCNAMEsInput) Validate() error {
  4212. invalidParams := request.ErrInvalidParams{Context: "SwapEnvironmentCNAMEsInput"}
  4213. if s.DestinationEnvironmentName != nil && len(*s.DestinationEnvironmentName) < 4 {
  4214. invalidParams.Add(request.NewErrParamMinLen("DestinationEnvironmentName", 4))
  4215. }
  4216. if s.SourceEnvironmentName != nil && len(*s.SourceEnvironmentName) < 4 {
  4217. invalidParams.Add(request.NewErrParamMinLen("SourceEnvironmentName", 4))
  4218. }
  4219. if invalidParams.Len() > 0 {
  4220. return invalidParams
  4221. }
  4222. return nil
  4223. }
  4224. type SwapEnvironmentCNAMEsOutput struct {
  4225. _ struct{} `type:"structure"`
  4226. }
  4227. // String returns the string representation
  4228. func (s SwapEnvironmentCNAMEsOutput) String() string {
  4229. return awsutil.Prettify(s)
  4230. }
  4231. // GoString returns the string representation
  4232. func (s SwapEnvironmentCNAMEsOutput) GoString() string {
  4233. return s.String()
  4234. }
  4235. // Represents CPU utilization and load average information for applications
  4236. // running in the specified environment.
  4237. type SystemStatus struct {
  4238. _ struct{} `type:"structure"`
  4239. // Represents CPU utilization information from the specified instance that belongs
  4240. // to the AWS Elastic Beanstalk environment. Use the instanceId property to
  4241. // specify the application instance for which you'd like to return data.
  4242. CPUUtilization *CPUUtilization `type:"structure"`
  4243. // Load average in the last 1-minute and 5-minute periods. For more information,
  4244. // see Operating System Metrics (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-metrics.html#health-enhanced-metrics-os).
  4245. LoadAverage []*float64 `type:"list"`
  4246. }
  4247. // String returns the string representation
  4248. func (s SystemStatus) String() string {
  4249. return awsutil.Prettify(s)
  4250. }
  4251. // GoString returns the string representation
  4252. func (s SystemStatus) GoString() string {
  4253. return s.String()
  4254. }
  4255. // Describes a tag applied to a resource in an environment.
  4256. type Tag struct {
  4257. _ struct{} `type:"structure"`
  4258. // The key of the tag.
  4259. Key *string `min:"1" type:"string"`
  4260. // The value of the tag.
  4261. Value *string `min:"1" type:"string"`
  4262. }
  4263. // String returns the string representation
  4264. func (s Tag) String() string {
  4265. return awsutil.Prettify(s)
  4266. }
  4267. // GoString returns the string representation
  4268. func (s Tag) GoString() string {
  4269. return s.String()
  4270. }
  4271. // Validate inspects the fields of the type to determine if they are valid.
  4272. func (s *Tag) Validate() error {
  4273. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  4274. if s.Key != nil && len(*s.Key) < 1 {
  4275. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  4276. }
  4277. if s.Value != nil && len(*s.Value) < 1 {
  4278. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  4279. }
  4280. if invalidParams.Len() > 0 {
  4281. return invalidParams
  4282. }
  4283. return nil
  4284. }
  4285. // Request to terminate an environment.
  4286. type TerminateEnvironmentInput struct {
  4287. _ struct{} `type:"structure"`
  4288. // The ID of the environment to terminate.
  4289. //
  4290. // Condition: You must specify either this or an EnvironmentName, or both.
  4291. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  4292. // error.
  4293. EnvironmentId *string `type:"string"`
  4294. // The name of the environment to terminate.
  4295. //
  4296. // Condition: You must specify either this or an EnvironmentId, or both. If
  4297. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  4298. // error.
  4299. EnvironmentName *string `min:"4" type:"string"`
  4300. // Terminates the target environment even if another environment in the same
  4301. // group is dependent on it.
  4302. ForceTerminate *bool `type:"boolean"`
  4303. // Indicates whether the associated AWS resources should shut down when the
  4304. // environment is terminated:
  4305. //
  4306. // true: The specified environment as well as the associated AWS resources,
  4307. // such as Auto Scaling group and LoadBalancer, are terminated. false: AWS
  4308. // Elastic Beanstalk resource management is removed from the environment, but
  4309. // the AWS resources continue to operate. For more information, see the
  4310. // AWS Elastic Beanstalk User Guide. (http://docs.aws.amazon.com/elasticbeanstalk/latest/ug/)
  4311. //
  4312. // Default: true
  4313. //
  4314. // Valid Values: true | false
  4315. TerminateResources *bool `type:"boolean"`
  4316. }
  4317. // String returns the string representation
  4318. func (s TerminateEnvironmentInput) String() string {
  4319. return awsutil.Prettify(s)
  4320. }
  4321. // GoString returns the string representation
  4322. func (s TerminateEnvironmentInput) GoString() string {
  4323. return s.String()
  4324. }
  4325. // Validate inspects the fields of the type to determine if they are valid.
  4326. func (s *TerminateEnvironmentInput) Validate() error {
  4327. invalidParams := request.ErrInvalidParams{Context: "TerminateEnvironmentInput"}
  4328. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  4329. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  4330. }
  4331. if invalidParams.Len() > 0 {
  4332. return invalidParams
  4333. }
  4334. return nil
  4335. }
  4336. // Describes a trigger.
  4337. type Trigger struct {
  4338. _ struct{} `type:"structure"`
  4339. // The name of the trigger.
  4340. Name *string `type:"string"`
  4341. }
  4342. // String returns the string representation
  4343. func (s Trigger) String() string {
  4344. return awsutil.Prettify(s)
  4345. }
  4346. // GoString returns the string representation
  4347. func (s Trigger) GoString() string {
  4348. return s.String()
  4349. }
  4350. // Request to update an application.
  4351. type UpdateApplicationInput struct {
  4352. _ struct{} `type:"structure"`
  4353. // The name of the application to update. If no such application is found, UpdateApplication
  4354. // returns an InvalidParameterValue error.
  4355. ApplicationName *string `min:"1" type:"string" required:"true"`
  4356. // A new description for the application.
  4357. //
  4358. // Default: If not specified, AWS Elastic Beanstalk does not update the description.
  4359. Description *string `type:"string"`
  4360. }
  4361. // String returns the string representation
  4362. func (s UpdateApplicationInput) String() string {
  4363. return awsutil.Prettify(s)
  4364. }
  4365. // GoString returns the string representation
  4366. func (s UpdateApplicationInput) GoString() string {
  4367. return s.String()
  4368. }
  4369. // Validate inspects the fields of the type to determine if they are valid.
  4370. func (s *UpdateApplicationInput) Validate() error {
  4371. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  4372. if s.ApplicationName == nil {
  4373. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4374. }
  4375. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4376. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4377. }
  4378. if invalidParams.Len() > 0 {
  4379. return invalidParams
  4380. }
  4381. return nil
  4382. }
  4383. type UpdateApplicationVersionInput struct {
  4384. _ struct{} `type:"structure"`
  4385. // The name of the application associated with this version.
  4386. //
  4387. // If no application is found with this name, UpdateApplication returns an
  4388. // InvalidParameterValue error.
  4389. ApplicationName *string `min:"1" type:"string" required:"true"`
  4390. // A new description for this release.
  4391. Description *string `type:"string"`
  4392. // The name of the version to update.
  4393. //
  4394. // If no application version is found with this label, UpdateApplication returns
  4395. // an InvalidParameterValue error.
  4396. VersionLabel *string `min:"1" type:"string" required:"true"`
  4397. }
  4398. // String returns the string representation
  4399. func (s UpdateApplicationVersionInput) String() string {
  4400. return awsutil.Prettify(s)
  4401. }
  4402. // GoString returns the string representation
  4403. func (s UpdateApplicationVersionInput) GoString() string {
  4404. return s.String()
  4405. }
  4406. // Validate inspects the fields of the type to determine if they are valid.
  4407. func (s *UpdateApplicationVersionInput) Validate() error {
  4408. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationVersionInput"}
  4409. if s.ApplicationName == nil {
  4410. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4411. }
  4412. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4413. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4414. }
  4415. if s.VersionLabel == nil {
  4416. invalidParams.Add(request.NewErrParamRequired("VersionLabel"))
  4417. }
  4418. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  4419. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  4420. }
  4421. if invalidParams.Len() > 0 {
  4422. return invalidParams
  4423. }
  4424. return nil
  4425. }
  4426. // The result message containing the options for the specified solution stack.
  4427. type UpdateConfigurationTemplateInput struct {
  4428. _ struct{} `type:"structure"`
  4429. // The name of the application associated with the configuration template to
  4430. // update.
  4431. //
  4432. // If no application is found with this name, UpdateConfigurationTemplate
  4433. // returns an InvalidParameterValue error.
  4434. ApplicationName *string `min:"1" type:"string" required:"true"`
  4435. // A new description for the configuration.
  4436. Description *string `type:"string"`
  4437. // A list of configuration option settings to update with the new specified
  4438. // option value.
  4439. OptionSettings []*ConfigurationOptionSetting `type:"list"`
  4440. // A list of configuration options to remove from the configuration set.
  4441. //
  4442. // Constraint: You can remove only UserDefined configuration options.
  4443. OptionsToRemove []*OptionSpecification `type:"list"`
  4444. // The name of the configuration template to update.
  4445. //
  4446. // If no configuration template is found with this name, UpdateConfigurationTemplate
  4447. // returns an InvalidParameterValue error.
  4448. TemplateName *string `min:"1" type:"string" required:"true"`
  4449. }
  4450. // String returns the string representation
  4451. func (s UpdateConfigurationTemplateInput) String() string {
  4452. return awsutil.Prettify(s)
  4453. }
  4454. // GoString returns the string representation
  4455. func (s UpdateConfigurationTemplateInput) GoString() string {
  4456. return s.String()
  4457. }
  4458. // Validate inspects the fields of the type to determine if they are valid.
  4459. func (s *UpdateConfigurationTemplateInput) Validate() error {
  4460. invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationTemplateInput"}
  4461. if s.ApplicationName == nil {
  4462. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4463. }
  4464. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4465. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4466. }
  4467. if s.TemplateName == nil {
  4468. invalidParams.Add(request.NewErrParamRequired("TemplateName"))
  4469. }
  4470. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  4471. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  4472. }
  4473. if s.OptionSettings != nil {
  4474. for i, v := range s.OptionSettings {
  4475. if v == nil {
  4476. continue
  4477. }
  4478. if err := v.Validate(); err != nil {
  4479. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams))
  4480. }
  4481. }
  4482. }
  4483. if s.OptionsToRemove != nil {
  4484. for i, v := range s.OptionsToRemove {
  4485. if v == nil {
  4486. continue
  4487. }
  4488. if err := v.Validate(); err != nil {
  4489. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToRemove", i), err.(request.ErrInvalidParams))
  4490. }
  4491. }
  4492. }
  4493. if invalidParams.Len() > 0 {
  4494. return invalidParams
  4495. }
  4496. return nil
  4497. }
  4498. // Request to update an environment.
  4499. type UpdateEnvironmentInput struct {
  4500. _ struct{} `type:"structure"`
  4501. // The name of the application with which the environment is associated.
  4502. ApplicationName *string `min:"1" type:"string"`
  4503. // If this parameter is specified, AWS Elastic Beanstalk updates the description
  4504. // of this environment.
  4505. Description *string `type:"string"`
  4506. // The ID of the environment to update.
  4507. //
  4508. // If no environment with this ID exists, AWS Elastic Beanstalk returns an
  4509. // InvalidParameterValue error.
  4510. //
  4511. // Condition: You must specify either this or an EnvironmentName, or both.
  4512. // If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  4513. // error.
  4514. EnvironmentId *string `type:"string"`
  4515. // The name of the environment to update. If no environment with this name exists,
  4516. // AWS Elastic Beanstalk returns an InvalidParameterValue error.
  4517. //
  4518. // Condition: You must specify either this or an EnvironmentId, or both. If
  4519. // you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter
  4520. // error.
  4521. EnvironmentName *string `min:"4" type:"string"`
  4522. // The name of the group to which the target environment belongs. Specify a
  4523. // group name only if the environment's name is specified in an environment
  4524. // manifest and not with the environment name or environment ID parameters.
  4525. // See Environment Manifest (env.yaml) (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-cfg-manifest.html)
  4526. // for details.
  4527. GroupName *string `min:"1" type:"string"`
  4528. // If specified, AWS Elastic Beanstalk updates the configuration set associated
  4529. // with the running environment and sets the specified configuration options
  4530. // to the requested value.
  4531. OptionSettings []*ConfigurationOptionSetting `type:"list"`
  4532. // A list of custom user-defined configuration options to remove from the configuration
  4533. // set for this environment.
  4534. OptionsToRemove []*OptionSpecification `type:"list"`
  4535. // This specifies the platform version that the environment will run after the
  4536. // environment is updated.
  4537. SolutionStackName *string `type:"string"`
  4538. // If this parameter is specified, AWS Elastic Beanstalk deploys this configuration
  4539. // template to the environment. If no such configuration template is found,
  4540. // AWS Elastic Beanstalk returns an InvalidParameterValue error.
  4541. TemplateName *string `min:"1" type:"string"`
  4542. // This specifies the tier to use to update the environment.
  4543. //
  4544. // Condition: At this time, if you change the tier version, name, or type,
  4545. // AWS Elastic Beanstalk returns InvalidParameterValue error.
  4546. Tier *EnvironmentTier `type:"structure"`
  4547. // If this parameter is specified, AWS Elastic Beanstalk deploys the named application
  4548. // version to the environment. If no such application version is found, returns
  4549. // an InvalidParameterValue error.
  4550. VersionLabel *string `min:"1" type:"string"`
  4551. }
  4552. // String returns the string representation
  4553. func (s UpdateEnvironmentInput) String() string {
  4554. return awsutil.Prettify(s)
  4555. }
  4556. // GoString returns the string representation
  4557. func (s UpdateEnvironmentInput) GoString() string {
  4558. return s.String()
  4559. }
  4560. // Validate inspects the fields of the type to determine if they are valid.
  4561. func (s *UpdateEnvironmentInput) Validate() error {
  4562. invalidParams := request.ErrInvalidParams{Context: "UpdateEnvironmentInput"}
  4563. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4564. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4565. }
  4566. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  4567. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  4568. }
  4569. if s.GroupName != nil && len(*s.GroupName) < 1 {
  4570. invalidParams.Add(request.NewErrParamMinLen("GroupName", 1))
  4571. }
  4572. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  4573. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  4574. }
  4575. if s.VersionLabel != nil && len(*s.VersionLabel) < 1 {
  4576. invalidParams.Add(request.NewErrParamMinLen("VersionLabel", 1))
  4577. }
  4578. if s.OptionSettings != nil {
  4579. for i, v := range s.OptionSettings {
  4580. if v == nil {
  4581. continue
  4582. }
  4583. if err := v.Validate(); err != nil {
  4584. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams))
  4585. }
  4586. }
  4587. }
  4588. if s.OptionsToRemove != nil {
  4589. for i, v := range s.OptionsToRemove {
  4590. if v == nil {
  4591. continue
  4592. }
  4593. if err := v.Validate(); err != nil {
  4594. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToRemove", i), err.(request.ErrInvalidParams))
  4595. }
  4596. }
  4597. }
  4598. if invalidParams.Len() > 0 {
  4599. return invalidParams
  4600. }
  4601. return nil
  4602. }
  4603. // A list of validation messages for a specified configuration template.
  4604. type ValidateConfigurationSettingsInput struct {
  4605. _ struct{} `type:"structure"`
  4606. // The name of the application that the configuration template or environment
  4607. // belongs to.
  4608. ApplicationName *string `min:"1" type:"string" required:"true"`
  4609. // The name of the environment to validate the settings against.
  4610. //
  4611. // Condition: You cannot specify both this and a configuration template name.
  4612. EnvironmentName *string `min:"4" type:"string"`
  4613. // A list of the options and desired values to evaluate.
  4614. OptionSettings []*ConfigurationOptionSetting `type:"list" required:"true"`
  4615. // The name of the configuration template to validate the settings against.
  4616. //
  4617. // Condition: You cannot specify both this and an environment name.
  4618. TemplateName *string `min:"1" type:"string"`
  4619. }
  4620. // String returns the string representation
  4621. func (s ValidateConfigurationSettingsInput) String() string {
  4622. return awsutil.Prettify(s)
  4623. }
  4624. // GoString returns the string representation
  4625. func (s ValidateConfigurationSettingsInput) GoString() string {
  4626. return s.String()
  4627. }
  4628. // Validate inspects the fields of the type to determine if they are valid.
  4629. func (s *ValidateConfigurationSettingsInput) Validate() error {
  4630. invalidParams := request.ErrInvalidParams{Context: "ValidateConfigurationSettingsInput"}
  4631. if s.ApplicationName == nil {
  4632. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  4633. }
  4634. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  4635. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  4636. }
  4637. if s.EnvironmentName != nil && len(*s.EnvironmentName) < 4 {
  4638. invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 4))
  4639. }
  4640. if s.OptionSettings == nil {
  4641. invalidParams.Add(request.NewErrParamRequired("OptionSettings"))
  4642. }
  4643. if s.TemplateName != nil && len(*s.TemplateName) < 1 {
  4644. invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1))
  4645. }
  4646. if s.OptionSettings != nil {
  4647. for i, v := range s.OptionSettings {
  4648. if v == nil {
  4649. continue
  4650. }
  4651. if err := v.Validate(); err != nil {
  4652. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionSettings", i), err.(request.ErrInvalidParams))
  4653. }
  4654. }
  4655. }
  4656. if invalidParams.Len() > 0 {
  4657. return invalidParams
  4658. }
  4659. return nil
  4660. }
  4661. // Provides a list of validation messages.
  4662. type ValidateConfigurationSettingsOutput struct {
  4663. _ struct{} `type:"structure"`
  4664. // A list of ValidationMessage.
  4665. Messages []*ValidationMessage `type:"list"`
  4666. }
  4667. // String returns the string representation
  4668. func (s ValidateConfigurationSettingsOutput) String() string {
  4669. return awsutil.Prettify(s)
  4670. }
  4671. // GoString returns the string representation
  4672. func (s ValidateConfigurationSettingsOutput) GoString() string {
  4673. return s.String()
  4674. }
  4675. // An error or warning for a desired configuration option value.
  4676. type ValidationMessage struct {
  4677. _ struct{} `type:"structure"`
  4678. // A message describing the error or warning.
  4679. Message *string `type:"string"`
  4680. Namespace *string `type:"string"`
  4681. OptionName *string `type:"string"`
  4682. // An indication of the severity of this message:
  4683. //
  4684. // error: This message indicates that this is not a valid setting for an
  4685. // option. warning: This message is providing information you should take
  4686. // into account.
  4687. Severity *string `type:"string" enum:"ValidationSeverity"`
  4688. }
  4689. // String returns the string representation
  4690. func (s ValidationMessage) String() string {
  4691. return awsutil.Prettify(s)
  4692. }
  4693. // GoString returns the string representation
  4694. func (s ValidationMessage) GoString() string {
  4695. return s.String()
  4696. }
  4697. const (
  4698. // @enum ActionHistoryStatus
  4699. ActionHistoryStatusCompleted = "Completed"
  4700. // @enum ActionHistoryStatus
  4701. ActionHistoryStatusFailed = "Failed"
  4702. // @enum ActionHistoryStatus
  4703. ActionHistoryStatusUnknown = "Unknown"
  4704. )
  4705. const (
  4706. // @enum ActionStatus
  4707. ActionStatusScheduled = "Scheduled"
  4708. // @enum ActionStatus
  4709. ActionStatusPending = "Pending"
  4710. // @enum ActionStatus
  4711. ActionStatusRunning = "Running"
  4712. // @enum ActionStatus
  4713. ActionStatusUnknown = "Unknown"
  4714. )
  4715. const (
  4716. // @enum ActionType
  4717. ActionTypeInstanceRefresh = "InstanceRefresh"
  4718. // @enum ActionType
  4719. ActionTypePlatformUpdate = "PlatformUpdate"
  4720. // @enum ActionType
  4721. ActionTypeUnknown = "Unknown"
  4722. )
  4723. const (
  4724. // @enum ApplicationVersionStatus
  4725. ApplicationVersionStatusProcessed = "Processed"
  4726. // @enum ApplicationVersionStatus
  4727. ApplicationVersionStatusUnprocessed = "Unprocessed"
  4728. // @enum ApplicationVersionStatus
  4729. ApplicationVersionStatusFailed = "Failed"
  4730. // @enum ApplicationVersionStatus
  4731. ApplicationVersionStatusProcessing = "Processing"
  4732. )
  4733. const (
  4734. // @enum ConfigurationDeploymentStatus
  4735. ConfigurationDeploymentStatusDeployed = "deployed"
  4736. // @enum ConfigurationDeploymentStatus
  4737. ConfigurationDeploymentStatusPending = "pending"
  4738. // @enum ConfigurationDeploymentStatus
  4739. ConfigurationDeploymentStatusFailed = "failed"
  4740. )
  4741. const (
  4742. // @enum ConfigurationOptionValueType
  4743. ConfigurationOptionValueTypeScalar = "Scalar"
  4744. // @enum ConfigurationOptionValueType
  4745. ConfigurationOptionValueTypeList = "List"
  4746. )
  4747. const (
  4748. // @enum EnvironmentHealth
  4749. EnvironmentHealthGreen = "Green"
  4750. // @enum EnvironmentHealth
  4751. EnvironmentHealthYellow = "Yellow"
  4752. // @enum EnvironmentHealth
  4753. EnvironmentHealthRed = "Red"
  4754. // @enum EnvironmentHealth
  4755. EnvironmentHealthGrey = "Grey"
  4756. )
  4757. const (
  4758. // @enum EnvironmentHealthAttribute
  4759. EnvironmentHealthAttributeStatus = "Status"
  4760. // @enum EnvironmentHealthAttribute
  4761. EnvironmentHealthAttributeColor = "Color"
  4762. // @enum EnvironmentHealthAttribute
  4763. EnvironmentHealthAttributeCauses = "Causes"
  4764. // @enum EnvironmentHealthAttribute
  4765. EnvironmentHealthAttributeApplicationMetrics = "ApplicationMetrics"
  4766. // @enum EnvironmentHealthAttribute
  4767. EnvironmentHealthAttributeInstancesHealth = "InstancesHealth"
  4768. // @enum EnvironmentHealthAttribute
  4769. EnvironmentHealthAttributeAll = "All"
  4770. // @enum EnvironmentHealthAttribute
  4771. EnvironmentHealthAttributeHealthStatus = "HealthStatus"
  4772. // @enum EnvironmentHealthAttribute
  4773. EnvironmentHealthAttributeRefreshedAt = "RefreshedAt"
  4774. )
  4775. const (
  4776. // @enum EnvironmentHealthStatus
  4777. EnvironmentHealthStatusNoData = "NoData"
  4778. // @enum EnvironmentHealthStatus
  4779. EnvironmentHealthStatusUnknown = "Unknown"
  4780. // @enum EnvironmentHealthStatus
  4781. EnvironmentHealthStatusPending = "Pending"
  4782. // @enum EnvironmentHealthStatus
  4783. EnvironmentHealthStatusOk = "Ok"
  4784. // @enum EnvironmentHealthStatus
  4785. EnvironmentHealthStatusInfo = "Info"
  4786. // @enum EnvironmentHealthStatus
  4787. EnvironmentHealthStatusWarning = "Warning"
  4788. // @enum EnvironmentHealthStatus
  4789. EnvironmentHealthStatusDegraded = "Degraded"
  4790. // @enum EnvironmentHealthStatus
  4791. EnvironmentHealthStatusSevere = "Severe"
  4792. )
  4793. const (
  4794. // @enum EnvironmentInfoType
  4795. EnvironmentInfoTypeTail = "tail"
  4796. // @enum EnvironmentInfoType
  4797. EnvironmentInfoTypeBundle = "bundle"
  4798. )
  4799. const (
  4800. // @enum EnvironmentStatus
  4801. EnvironmentStatusLaunching = "Launching"
  4802. // @enum EnvironmentStatus
  4803. EnvironmentStatusUpdating = "Updating"
  4804. // @enum EnvironmentStatus
  4805. EnvironmentStatusReady = "Ready"
  4806. // @enum EnvironmentStatus
  4807. EnvironmentStatusTerminating = "Terminating"
  4808. // @enum EnvironmentStatus
  4809. EnvironmentStatusTerminated = "Terminated"
  4810. )
  4811. const (
  4812. // @enum EventSeverity
  4813. EventSeverityTrace = "TRACE"
  4814. // @enum EventSeverity
  4815. EventSeverityDebug = "DEBUG"
  4816. // @enum EventSeverity
  4817. EventSeverityInfo = "INFO"
  4818. // @enum EventSeverity
  4819. EventSeverityWarn = "WARN"
  4820. // @enum EventSeverity
  4821. EventSeverityError = "ERROR"
  4822. // @enum EventSeverity
  4823. EventSeverityFatal = "FATAL"
  4824. )
  4825. const (
  4826. // @enum FailureType
  4827. FailureTypeUpdateCancelled = "UpdateCancelled"
  4828. // @enum FailureType
  4829. FailureTypeCancellationFailed = "CancellationFailed"
  4830. // @enum FailureType
  4831. FailureTypeRollbackFailed = "RollbackFailed"
  4832. // @enum FailureType
  4833. FailureTypeRollbackSuccessful = "RollbackSuccessful"
  4834. // @enum FailureType
  4835. FailureTypeInternalFailure = "InternalFailure"
  4836. // @enum FailureType
  4837. FailureTypeInvalidEnvironmentState = "InvalidEnvironmentState"
  4838. // @enum FailureType
  4839. FailureTypePermissionsError = "PermissionsError"
  4840. )
  4841. const (
  4842. // @enum InstancesHealthAttribute
  4843. InstancesHealthAttributeHealthStatus = "HealthStatus"
  4844. // @enum InstancesHealthAttribute
  4845. InstancesHealthAttributeColor = "Color"
  4846. // @enum InstancesHealthAttribute
  4847. InstancesHealthAttributeCauses = "Causes"
  4848. // @enum InstancesHealthAttribute
  4849. InstancesHealthAttributeApplicationMetrics = "ApplicationMetrics"
  4850. // @enum InstancesHealthAttribute
  4851. InstancesHealthAttributeRefreshedAt = "RefreshedAt"
  4852. // @enum InstancesHealthAttribute
  4853. InstancesHealthAttributeLaunchedAt = "LaunchedAt"
  4854. // @enum InstancesHealthAttribute
  4855. InstancesHealthAttributeSystem = "System"
  4856. // @enum InstancesHealthAttribute
  4857. InstancesHealthAttributeDeployment = "Deployment"
  4858. // @enum InstancesHealthAttribute
  4859. InstancesHealthAttributeAvailabilityZone = "AvailabilityZone"
  4860. // @enum InstancesHealthAttribute
  4861. InstancesHealthAttributeInstanceType = "InstanceType"
  4862. // @enum InstancesHealthAttribute
  4863. InstancesHealthAttributeAll = "All"
  4864. )
  4865. const (
  4866. // @enum ValidationSeverity
  4867. ValidationSeverityError = "error"
  4868. // @enum ValidationSeverity
  4869. ValidationSeverityWarning = "warning"
  4870. )