api.go 276 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package opsworks provides a client for AWS OpsWorks.
  3. package opsworks
  4. import (
  5. "github.com/aws/aws-sdk-go/aws/awsutil"
  6. "github.com/aws/aws-sdk-go/aws/request"
  7. )
  8. const opAssignInstance = "AssignInstance"
  9. // AssignInstanceRequest generates a request for the AssignInstance operation.
  10. func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *request.Request, output *AssignInstanceOutput) {
  11. op := &request.Operation{
  12. Name: opAssignInstance,
  13. HTTPMethod: "POST",
  14. HTTPPath: "/",
  15. }
  16. if input == nil {
  17. input = &AssignInstanceInput{}
  18. }
  19. req = c.newRequest(op, input, output)
  20. output = &AssignInstanceOutput{}
  21. req.Data = output
  22. return
  23. }
  24. // Assign a registered instance to a layer.
  25. //
  26. // You can assign registered on-premises instances to any layer type. You
  27. // can assign registered Amazon EC2 instances only to custom layers. You cannot
  28. // use this action with instances that were created with AWS OpsWorks. Required
  29. // Permissions: To use this action, an AWS Identity and Access Management (IAM)
  30. // user must have a Manage permissions level for the stack or an attached policy
  31. // that explicitly grants permissions. For more information on user permissions,
  32. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  33. func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error) {
  34. req, out := c.AssignInstanceRequest(input)
  35. err := req.Send()
  36. return out, err
  37. }
  38. const opAssignVolume = "AssignVolume"
  39. // AssignVolumeRequest generates a request for the AssignVolume operation.
  40. func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.Request, output *AssignVolumeOutput) {
  41. op := &request.Operation{
  42. Name: opAssignVolume,
  43. HTTPMethod: "POST",
  44. HTTPPath: "/",
  45. }
  46. if input == nil {
  47. input = &AssignVolumeInput{}
  48. }
  49. req = c.newRequest(op, input, output)
  50. output = &AssignVolumeOutput{}
  51. req.Data = output
  52. return
  53. }
  54. // Assigns one of the stack's registered Amazon EBS volumes to a specified instance.
  55. // The volume must first be registered with the stack by calling RegisterVolume.
  56. // After you register the volume, you must call UpdateVolume to specify a mount
  57. // point before calling AssignVolume. For more information, see Resource Management
  58. // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  59. //
  60. // Required Permissions: To use this action, an IAM user must have a Manage
  61. // permissions level for the stack, or an attached policy that explicitly grants
  62. // permissions. For more information on user permissions, see Managing User
  63. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  64. func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error) {
  65. req, out := c.AssignVolumeRequest(input)
  66. err := req.Send()
  67. return out, err
  68. }
  69. const opAssociateElasticIp = "AssociateElasticIp"
  70. // AssociateElasticIpRequest generates a request for the AssociateElasticIp operation.
  71. func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (req *request.Request, output *AssociateElasticIpOutput) {
  72. op := &request.Operation{
  73. Name: opAssociateElasticIp,
  74. HTTPMethod: "POST",
  75. HTTPPath: "/",
  76. }
  77. if input == nil {
  78. input = &AssociateElasticIpInput{}
  79. }
  80. req = c.newRequest(op, input, output)
  81. output = &AssociateElasticIpOutput{}
  82. req.Data = output
  83. return
  84. }
  85. // Associates one of the stack's registered Elastic IP addresses with a specified
  86. // instance. The address must first be registered with the stack by calling
  87. // RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  88. //
  89. // Required Permissions: To use this action, an IAM user must have a Manage
  90. // permissions level for the stack, or an attached policy that explicitly grants
  91. // permissions. For more information on user permissions, see Managing User
  92. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  93. func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error) {
  94. req, out := c.AssociateElasticIpRequest(input)
  95. err := req.Send()
  96. return out, err
  97. }
  98. const opAttachElasticLoadBalancer = "AttachElasticLoadBalancer"
  99. // AttachElasticLoadBalancerRequest generates a request for the AttachElasticLoadBalancer operation.
  100. func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBalancerInput) (req *request.Request, output *AttachElasticLoadBalancerOutput) {
  101. op := &request.Operation{
  102. Name: opAttachElasticLoadBalancer,
  103. HTTPMethod: "POST",
  104. HTTPPath: "/",
  105. }
  106. if input == nil {
  107. input = &AttachElasticLoadBalancerInput{}
  108. }
  109. req = c.newRequest(op, input, output)
  110. output = &AttachElasticLoadBalancerOutput{}
  111. req.Data = output
  112. return
  113. }
  114. // Attaches an Elastic Load Balancing load balancer to a specified layer. For
  115. // more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html).
  116. //
  117. // You must create the Elastic Load Balancing instance separately, by using
  118. // the Elastic Load Balancing console, API, or CLI. For more information, see
  119. // Elastic Load Balancing Developer Guide (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html).
  120. //
  121. // Required Permissions: To use this action, an IAM user must have a Manage
  122. // permissions level for the stack, or an attached policy that explicitly grants
  123. // permissions. For more information on user permissions, see Managing User
  124. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  125. func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error) {
  126. req, out := c.AttachElasticLoadBalancerRequest(input)
  127. err := req.Send()
  128. return out, err
  129. }
  130. const opCloneStack = "CloneStack"
  131. // CloneStackRequest generates a request for the CloneStack operation.
  132. func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Request, output *CloneStackOutput) {
  133. op := &request.Operation{
  134. Name: opCloneStack,
  135. HTTPMethod: "POST",
  136. HTTPPath: "/",
  137. }
  138. if input == nil {
  139. input = &CloneStackInput{}
  140. }
  141. req = c.newRequest(op, input, output)
  142. output = &CloneStackOutput{}
  143. req.Data = output
  144. return
  145. }
  146. // Creates a clone of a specified stack. For more information, see Clone a Stack
  147. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html).
  148. // By default, all parameters are set to the values used by the parent stack.
  149. //
  150. // Required Permissions: To use this action, an IAM user must have an attached
  151. // policy that explicitly grants permissions. For more information on user permissions,
  152. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  153. func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error) {
  154. req, out := c.CloneStackRequest(input)
  155. err := req.Send()
  156. return out, err
  157. }
  158. const opCreateApp = "CreateApp"
  159. // CreateAppRequest generates a request for the CreateApp operation.
  160. func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
  161. op := &request.Operation{
  162. Name: opCreateApp,
  163. HTTPMethod: "POST",
  164. HTTPPath: "/",
  165. }
  166. if input == nil {
  167. input = &CreateAppInput{}
  168. }
  169. req = c.newRequest(op, input, output)
  170. output = &CreateAppOutput{}
  171. req.Data = output
  172. return
  173. }
  174. // Creates an app for a specified stack. For more information, see Creating
  175. // Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html).
  176. //
  177. // Required Permissions: To use this action, an IAM user must have a Manage
  178. // permissions level for the stack, or an attached policy that explicitly grants
  179. // permissions. For more information on user permissions, see Managing User
  180. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  181. func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
  182. req, out := c.CreateAppRequest(input)
  183. err := req.Send()
  184. return out, err
  185. }
  186. const opCreateDeployment = "CreateDeployment"
  187. // CreateDeploymentRequest generates a request for the CreateDeployment operation.
  188. func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
  189. op := &request.Operation{
  190. Name: opCreateDeployment,
  191. HTTPMethod: "POST",
  192. HTTPPath: "/",
  193. }
  194. if input == nil {
  195. input = &CreateDeploymentInput{}
  196. }
  197. req = c.newRequest(op, input, output)
  198. output = &CreateDeploymentOutput{}
  199. req.Data = output
  200. return
  201. }
  202. // Runs deployment or stack commands. For more information, see Deploying Apps
  203. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html)
  204. // and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html).
  205. //
  206. // Required Permissions: To use this action, an IAM user must have a Deploy
  207. // or Manage permissions level for the stack, or an attached policy that explicitly
  208. // grants permissions. For more information on user permissions, see Managing
  209. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  210. func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
  211. req, out := c.CreateDeploymentRequest(input)
  212. err := req.Send()
  213. return out, err
  214. }
  215. const opCreateInstance = "CreateInstance"
  216. // CreateInstanceRequest generates a request for the CreateInstance operation.
  217. func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *request.Request, output *CreateInstanceOutput) {
  218. op := &request.Operation{
  219. Name: opCreateInstance,
  220. HTTPMethod: "POST",
  221. HTTPPath: "/",
  222. }
  223. if input == nil {
  224. input = &CreateInstanceInput{}
  225. }
  226. req = c.newRequest(op, input, output)
  227. output = &CreateInstanceOutput{}
  228. req.Data = output
  229. return
  230. }
  231. // Creates an instance in a specified stack. For more information, see Adding
  232. // an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  233. //
  234. // Required Permissions: To use this action, an IAM user must have a Manage
  235. // permissions level for the stack, or an attached policy that explicitly grants
  236. // permissions. For more information on user permissions, see Managing User
  237. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  238. func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) {
  239. req, out := c.CreateInstanceRequest(input)
  240. err := req.Send()
  241. return out, err
  242. }
  243. const opCreateLayer = "CreateLayer"
  244. // CreateLayerRequest generates a request for the CreateLayer operation.
  245. func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Request, output *CreateLayerOutput) {
  246. op := &request.Operation{
  247. Name: opCreateLayer,
  248. HTTPMethod: "POST",
  249. HTTPPath: "/",
  250. }
  251. if input == nil {
  252. input = &CreateLayerInput{}
  253. }
  254. req = c.newRequest(op, input, output)
  255. output = &CreateLayerOutput{}
  256. req.Data = output
  257. return
  258. }
  259. // Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html).
  260. //
  261. // You should use CreateLayer for noncustom layer types such as PHP App Server
  262. // only if the stack does not have an existing layer of that type. A stack can
  263. // have at most one instance of each noncustom layer; if you attempt to create
  264. // a second instance, CreateLayer fails. A stack can have an arbitrary number
  265. // of custom layers, so you can call CreateLayer as many times as you like for
  266. // that layer type.
  267. //
  268. // Required Permissions: To use this action, an IAM user must have a Manage
  269. // permissions level for the stack, or an attached policy that explicitly grants
  270. // permissions. For more information on user permissions, see Managing User
  271. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  272. func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error) {
  273. req, out := c.CreateLayerRequest(input)
  274. err := req.Send()
  275. return out, err
  276. }
  277. const opCreateStack = "CreateStack"
  278. // CreateStackRequest generates a request for the CreateStack operation.
  279. func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) {
  280. op := &request.Operation{
  281. Name: opCreateStack,
  282. HTTPMethod: "POST",
  283. HTTPPath: "/",
  284. }
  285. if input == nil {
  286. input = &CreateStackInput{}
  287. }
  288. req = c.newRequest(op, input, output)
  289. output = &CreateStackOutput{}
  290. req.Data = output
  291. return
  292. }
  293. // Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html).
  294. //
  295. // Required Permissions: To use this action, an IAM user must have an attached
  296. // policy that explicitly grants permissions. For more information on user permissions,
  297. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  298. func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) {
  299. req, out := c.CreateStackRequest(input)
  300. err := req.Send()
  301. return out, err
  302. }
  303. const opCreateUserProfile = "CreateUserProfile"
  304. // CreateUserProfileRequest generates a request for the CreateUserProfile operation.
  305. func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) {
  306. op := &request.Operation{
  307. Name: opCreateUserProfile,
  308. HTTPMethod: "POST",
  309. HTTPPath: "/",
  310. }
  311. if input == nil {
  312. input = &CreateUserProfileInput{}
  313. }
  314. req = c.newRequest(op, input, output)
  315. output = &CreateUserProfileOutput{}
  316. req.Data = output
  317. return
  318. }
  319. // Creates a new user profile.
  320. //
  321. // Required Permissions: To use this action, an IAM user must have an attached
  322. // policy that explicitly grants permissions. For more information on user permissions,
  323. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  324. func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) {
  325. req, out := c.CreateUserProfileRequest(input)
  326. err := req.Send()
  327. return out, err
  328. }
  329. const opDeleteApp = "DeleteApp"
  330. // DeleteAppRequest generates a request for the DeleteApp operation.
  331. func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
  332. op := &request.Operation{
  333. Name: opDeleteApp,
  334. HTTPMethod: "POST",
  335. HTTPPath: "/",
  336. }
  337. if input == nil {
  338. input = &DeleteAppInput{}
  339. }
  340. req = c.newRequest(op, input, output)
  341. output = &DeleteAppOutput{}
  342. req.Data = output
  343. return
  344. }
  345. // Deletes a specified app.
  346. //
  347. // Required Permissions: To use this action, an IAM user must have a Manage
  348. // permissions level for the stack, or an attached policy that explicitly grants
  349. // permissions. For more information on user permissions, see Managing User
  350. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  351. func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
  352. req, out := c.DeleteAppRequest(input)
  353. err := req.Send()
  354. return out, err
  355. }
  356. const opDeleteInstance = "DeleteInstance"
  357. // DeleteInstanceRequest generates a request for the DeleteInstance operation.
  358. func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) {
  359. op := &request.Operation{
  360. Name: opDeleteInstance,
  361. HTTPMethod: "POST",
  362. HTTPPath: "/",
  363. }
  364. if input == nil {
  365. input = &DeleteInstanceInput{}
  366. }
  367. req = c.newRequest(op, input, output)
  368. output = &DeleteInstanceOutput{}
  369. req.Data = output
  370. return
  371. }
  372. // Deletes a specified instance, which terminates the associated Amazon EC2
  373. // instance. You must stop an instance before you can delete it.
  374. //
  375. // For more information, see Deleting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html).
  376. //
  377. // Required Permissions: To use this action, an IAM user must have a Manage
  378. // permissions level for the stack, or an attached policy that explicitly grants
  379. // permissions. For more information on user permissions, see Managing User
  380. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  381. func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) {
  382. req, out := c.DeleteInstanceRequest(input)
  383. err := req.Send()
  384. return out, err
  385. }
  386. const opDeleteLayer = "DeleteLayer"
  387. // DeleteLayerRequest generates a request for the DeleteLayer operation.
  388. func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Request, output *DeleteLayerOutput) {
  389. op := &request.Operation{
  390. Name: opDeleteLayer,
  391. HTTPMethod: "POST",
  392. HTTPPath: "/",
  393. }
  394. if input == nil {
  395. input = &DeleteLayerInput{}
  396. }
  397. req = c.newRequest(op, input, output)
  398. output = &DeleteLayerOutput{}
  399. req.Data = output
  400. return
  401. }
  402. // Deletes a specified layer. You must first stop and then delete all associated
  403. // instances or unassign registered instances. For more information, see How
  404. // to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html).
  405. //
  406. // Required Permissions: To use this action, an IAM user must have a Manage
  407. // permissions level for the stack, or an attached policy that explicitly grants
  408. // permissions. For more information on user permissions, see Managing User
  409. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  410. func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error) {
  411. req, out := c.DeleteLayerRequest(input)
  412. err := req.Send()
  413. return out, err
  414. }
  415. const opDeleteStack = "DeleteStack"
  416. // DeleteStackRequest generates a request for the DeleteStack operation.
  417. func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) {
  418. op := &request.Operation{
  419. Name: opDeleteStack,
  420. HTTPMethod: "POST",
  421. HTTPPath: "/",
  422. }
  423. if input == nil {
  424. input = &DeleteStackInput{}
  425. }
  426. req = c.newRequest(op, input, output)
  427. output = &DeleteStackOutput{}
  428. req.Data = output
  429. return
  430. }
  431. // Deletes a specified stack. You must first delete all instances, layers, and
  432. // apps or deregister registered instances. For more information, see Shut Down
  433. // a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html).
  434. //
  435. // Required Permissions: To use this action, an IAM user must have a Manage
  436. // permissions level for the stack, or an attached policy that explicitly grants
  437. // permissions. For more information on user permissions, see Managing User
  438. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  439. func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) {
  440. req, out := c.DeleteStackRequest(input)
  441. err := req.Send()
  442. return out, err
  443. }
  444. const opDeleteUserProfile = "DeleteUserProfile"
  445. // DeleteUserProfileRequest generates a request for the DeleteUserProfile operation.
  446. func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
  447. op := &request.Operation{
  448. Name: opDeleteUserProfile,
  449. HTTPMethod: "POST",
  450. HTTPPath: "/",
  451. }
  452. if input == nil {
  453. input = &DeleteUserProfileInput{}
  454. }
  455. req = c.newRequest(op, input, output)
  456. output = &DeleteUserProfileOutput{}
  457. req.Data = output
  458. return
  459. }
  460. // Deletes a user profile.
  461. //
  462. // Required Permissions: To use this action, an IAM user must have an attached
  463. // policy that explicitly grants permissions. For more information on user permissions,
  464. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  465. func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) {
  466. req, out := c.DeleteUserProfileRequest(input)
  467. err := req.Send()
  468. return out, err
  469. }
  470. const opDeregisterEcsCluster = "DeregisterEcsCluster"
  471. // DeregisterEcsClusterRequest generates a request for the DeregisterEcsCluster operation.
  472. func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) (req *request.Request, output *DeregisterEcsClusterOutput) {
  473. op := &request.Operation{
  474. Name: opDeregisterEcsCluster,
  475. HTTPMethod: "POST",
  476. HTTPPath: "/",
  477. }
  478. if input == nil {
  479. input = &DeregisterEcsClusterInput{}
  480. }
  481. req = c.newRequest(op, input, output)
  482. output = &DeregisterEcsClusterOutput{}
  483. req.Data = output
  484. return
  485. }
  486. // Deregisters a specified Amazon ECS cluster from a stack. For more information,
  487. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete).
  488. //
  489. // Required Permissions: To use this action, an IAM user must have a Manage
  490. // permissions level for the stack or an attached policy that explicitly grants
  491. // permissions. For more information on user permissions, see .
  492. func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error) {
  493. req, out := c.DeregisterEcsClusterRequest(input)
  494. err := req.Send()
  495. return out, err
  496. }
  497. const opDeregisterElasticIp = "DeregisterElasticIp"
  498. // DeregisterElasticIpRequest generates a request for the DeregisterElasticIp operation.
  499. func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) (req *request.Request, output *DeregisterElasticIpOutput) {
  500. op := &request.Operation{
  501. Name: opDeregisterElasticIp,
  502. HTTPMethod: "POST",
  503. HTTPPath: "/",
  504. }
  505. if input == nil {
  506. input = &DeregisterElasticIpInput{}
  507. }
  508. req = c.newRequest(op, input, output)
  509. output = &DeregisterElasticIpOutput{}
  510. req.Data = output
  511. return
  512. }
  513. // Deregisters a specified Elastic IP address. The address can then be registered
  514. // by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  515. //
  516. // Required Permissions: To use this action, an IAM user must have a Manage
  517. // permissions level for the stack, or an attached policy that explicitly grants
  518. // permissions. For more information on user permissions, see Managing User
  519. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  520. func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error) {
  521. req, out := c.DeregisterElasticIpRequest(input)
  522. err := req.Send()
  523. return out, err
  524. }
  525. const opDeregisterInstance = "DeregisterInstance"
  526. // DeregisterInstanceRequest generates a request for the DeregisterInstance operation.
  527. func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (req *request.Request, output *DeregisterInstanceOutput) {
  528. op := &request.Operation{
  529. Name: opDeregisterInstance,
  530. HTTPMethod: "POST",
  531. HTTPPath: "/",
  532. }
  533. if input == nil {
  534. input = &DeregisterInstanceInput{}
  535. }
  536. req = c.newRequest(op, input, output)
  537. output = &DeregisterInstanceOutput{}
  538. req.Data = output
  539. return
  540. }
  541. // Deregister a registered Amazon EC2 or on-premises instance. This action removes
  542. // the instance from the stack and returns it to your control. This action can
  543. // not be used with instances that were created with AWS OpsWorks.
  544. //
  545. // Required Permissions: To use this action, an IAM user must have a Manage
  546. // permissions level for the stack or an attached policy that explicitly grants
  547. // permissions. For more information on user permissions, see Managing User
  548. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  549. func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) {
  550. req, out := c.DeregisterInstanceRequest(input)
  551. err := req.Send()
  552. return out, err
  553. }
  554. const opDeregisterRdsDbInstance = "DeregisterRdsDbInstance"
  555. // DeregisterRdsDbInstanceRequest generates a request for the DeregisterRdsDbInstance operation.
  556. func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstanceInput) (req *request.Request, output *DeregisterRdsDbInstanceOutput) {
  557. op := &request.Operation{
  558. Name: opDeregisterRdsDbInstance,
  559. HTTPMethod: "POST",
  560. HTTPPath: "/",
  561. }
  562. if input == nil {
  563. input = &DeregisterRdsDbInstanceInput{}
  564. }
  565. req = c.newRequest(op, input, output)
  566. output = &DeregisterRdsDbInstanceOutput{}
  567. req.Data = output
  568. return
  569. }
  570. // Deregisters an Amazon RDS instance.
  571. //
  572. // Required Permissions: To use this action, an IAM user must have a Manage
  573. // permissions level for the stack, or an attached policy that explicitly grants
  574. // permissions. For more information on user permissions, see Managing User
  575. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  576. func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error) {
  577. req, out := c.DeregisterRdsDbInstanceRequest(input)
  578. err := req.Send()
  579. return out, err
  580. }
  581. const opDeregisterVolume = "DeregisterVolume"
  582. // DeregisterVolumeRequest generates a request for the DeregisterVolume operation.
  583. func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *request.Request, output *DeregisterVolumeOutput) {
  584. op := &request.Operation{
  585. Name: opDeregisterVolume,
  586. HTTPMethod: "POST",
  587. HTTPPath: "/",
  588. }
  589. if input == nil {
  590. input = &DeregisterVolumeInput{}
  591. }
  592. req = c.newRequest(op, input, output)
  593. output = &DeregisterVolumeOutput{}
  594. req.Data = output
  595. return
  596. }
  597. // Deregisters an Amazon EBS volume. The volume can then be registered by another
  598. // stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  599. //
  600. // Required Permissions: To use this action, an IAM user must have a Manage
  601. // permissions level for the stack, or an attached policy that explicitly grants
  602. // permissions. For more information on user permissions, see Managing User
  603. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  604. func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error) {
  605. req, out := c.DeregisterVolumeRequest(input)
  606. err := req.Send()
  607. return out, err
  608. }
  609. const opDescribeAgentVersions = "DescribeAgentVersions"
  610. // DescribeAgentVersionsRequest generates a request for the DescribeAgentVersions operation.
  611. func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInput) (req *request.Request, output *DescribeAgentVersionsOutput) {
  612. op := &request.Operation{
  613. Name: opDescribeAgentVersions,
  614. HTTPMethod: "POST",
  615. HTTPPath: "/",
  616. }
  617. if input == nil {
  618. input = &DescribeAgentVersionsInput{}
  619. }
  620. req = c.newRequest(op, input, output)
  621. output = &DescribeAgentVersionsOutput{}
  622. req.Data = output
  623. return
  624. }
  625. // Describes the available AWS OpsWorks agent versions. You must specify a stack
  626. // ID or a configuration manager. DescribeAgentVersions returns a list of available
  627. // agent versions for the specified stack or configuration manager.
  628. func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error) {
  629. req, out := c.DescribeAgentVersionsRequest(input)
  630. err := req.Send()
  631. return out, err
  632. }
  633. const opDescribeApps = "DescribeApps"
  634. // DescribeAppsRequest generates a request for the DescribeApps operation.
  635. func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.Request, output *DescribeAppsOutput) {
  636. op := &request.Operation{
  637. Name: opDescribeApps,
  638. HTTPMethod: "POST",
  639. HTTPPath: "/",
  640. }
  641. if input == nil {
  642. input = &DescribeAppsInput{}
  643. }
  644. req = c.newRequest(op, input, output)
  645. output = &DescribeAppsOutput{}
  646. req.Data = output
  647. return
  648. }
  649. // Requests a description of a specified set of apps.
  650. //
  651. // You must specify at least one of the parameters.
  652. //
  653. // Required Permissions: To use this action, an IAM user must have a Show,
  654. // Deploy, or Manage permissions level for the stack, or an attached policy
  655. // that explicitly grants permissions. For more information on user permissions,
  656. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  657. func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error) {
  658. req, out := c.DescribeAppsRequest(input)
  659. err := req.Send()
  660. return out, err
  661. }
  662. const opDescribeCommands = "DescribeCommands"
  663. // DescribeCommandsRequest generates a request for the DescribeCommands operation.
  664. func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *request.Request, output *DescribeCommandsOutput) {
  665. op := &request.Operation{
  666. Name: opDescribeCommands,
  667. HTTPMethod: "POST",
  668. HTTPPath: "/",
  669. }
  670. if input == nil {
  671. input = &DescribeCommandsInput{}
  672. }
  673. req = c.newRequest(op, input, output)
  674. output = &DescribeCommandsOutput{}
  675. req.Data = output
  676. return
  677. }
  678. // Describes the results of specified commands.
  679. //
  680. // You must specify at least one of the parameters.
  681. //
  682. // Required Permissions: To use this action, an IAM user must have a Show,
  683. // Deploy, or Manage permissions level for the stack, or an attached policy
  684. // that explicitly grants permissions. For more information on user permissions,
  685. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  686. func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error) {
  687. req, out := c.DescribeCommandsRequest(input)
  688. err := req.Send()
  689. return out, err
  690. }
  691. const opDescribeDeployments = "DescribeDeployments"
  692. // DescribeDeploymentsRequest generates a request for the DescribeDeployments operation.
  693. func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) (req *request.Request, output *DescribeDeploymentsOutput) {
  694. op := &request.Operation{
  695. Name: opDescribeDeployments,
  696. HTTPMethod: "POST",
  697. HTTPPath: "/",
  698. }
  699. if input == nil {
  700. input = &DescribeDeploymentsInput{}
  701. }
  702. req = c.newRequest(op, input, output)
  703. output = &DescribeDeploymentsOutput{}
  704. req.Data = output
  705. return
  706. }
  707. // Requests a description of a specified set of deployments.
  708. //
  709. // You must specify at least one of the parameters.
  710. //
  711. // Required Permissions: To use this action, an IAM user must have a Show,
  712. // Deploy, or Manage permissions level for the stack, or an attached policy
  713. // that explicitly grants permissions. For more information on user permissions,
  714. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  715. func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error) {
  716. req, out := c.DescribeDeploymentsRequest(input)
  717. err := req.Send()
  718. return out, err
  719. }
  720. const opDescribeEcsClusters = "DescribeEcsClusters"
  721. // DescribeEcsClustersRequest generates a request for the DescribeEcsClusters operation.
  722. func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) (req *request.Request, output *DescribeEcsClustersOutput) {
  723. op := &request.Operation{
  724. Name: opDescribeEcsClusters,
  725. HTTPMethod: "POST",
  726. HTTPPath: "/",
  727. Paginator: &request.Paginator{
  728. InputTokens: []string{"NextToken"},
  729. OutputTokens: []string{"NextToken"},
  730. LimitToken: "MaxResults",
  731. TruncationToken: "",
  732. },
  733. }
  734. if input == nil {
  735. input = &DescribeEcsClustersInput{}
  736. }
  737. req = c.newRequest(op, input, output)
  738. output = &DescribeEcsClustersOutput{}
  739. req.Data = output
  740. return
  741. }
  742. // Describes Amazon ECS clusters that are registered with a stack. If you specify
  743. // only a stack ID, you can use the MaxResults and NextToken parameters to paginate
  744. // the response. However, AWS OpsWorks currently supports only one cluster per
  745. // layer, so the result set has a maximum of one element.
  746. //
  747. // Required Permissions: To use this action, an IAM user must have a Show,
  748. // Deploy, or Manage permissions level for the stack or an attached policy that
  749. // explicitly grants permission. For more information on user permissions, see
  750. // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  751. func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error) {
  752. req, out := c.DescribeEcsClustersRequest(input)
  753. err := req.Send()
  754. return out, err
  755. }
  756. func (c *OpsWorks) DescribeEcsClustersPages(input *DescribeEcsClustersInput, fn func(p *DescribeEcsClustersOutput, lastPage bool) (shouldContinue bool)) error {
  757. page, _ := c.DescribeEcsClustersRequest(input)
  758. return page.EachPage(func(p interface{}, lastPage bool) bool {
  759. return fn(p.(*DescribeEcsClustersOutput), lastPage)
  760. })
  761. }
  762. const opDescribeElasticIps = "DescribeElasticIps"
  763. // DescribeElasticIpsRequest generates a request for the DescribeElasticIps operation.
  764. func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (req *request.Request, output *DescribeElasticIpsOutput) {
  765. op := &request.Operation{
  766. Name: opDescribeElasticIps,
  767. HTTPMethod: "POST",
  768. HTTPPath: "/",
  769. }
  770. if input == nil {
  771. input = &DescribeElasticIpsInput{}
  772. }
  773. req = c.newRequest(op, input, output)
  774. output = &DescribeElasticIpsOutput{}
  775. req.Data = output
  776. return
  777. }
  778. // Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
  779. //
  780. // You must specify at least one of the parameters.
  781. //
  782. // Required Permissions: To use this action, an IAM user must have a Show,
  783. // Deploy, or Manage permissions level for the stack, or an attached policy
  784. // that explicitly grants permissions. For more information on user permissions,
  785. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  786. func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error) {
  787. req, out := c.DescribeElasticIpsRequest(input)
  788. err := req.Send()
  789. return out, err
  790. }
  791. const opDescribeElasticLoadBalancers = "DescribeElasticLoadBalancers"
  792. // DescribeElasticLoadBalancersRequest generates a request for the DescribeElasticLoadBalancers operation.
  793. func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoadBalancersInput) (req *request.Request, output *DescribeElasticLoadBalancersOutput) {
  794. op := &request.Operation{
  795. Name: opDescribeElasticLoadBalancers,
  796. HTTPMethod: "POST",
  797. HTTPPath: "/",
  798. }
  799. if input == nil {
  800. input = &DescribeElasticLoadBalancersInput{}
  801. }
  802. req = c.newRequest(op, input, output)
  803. output = &DescribeElasticLoadBalancersOutput{}
  804. req.Data = output
  805. return
  806. }
  807. // Describes a stack's Elastic Load Balancing instances.
  808. //
  809. // You must specify at least one of the parameters.
  810. //
  811. // Required Permissions: To use this action, an IAM user must have a Show,
  812. // Deploy, or Manage permissions level for the stack, or an attached policy
  813. // that explicitly grants permissions. For more information on user permissions,
  814. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  815. func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error) {
  816. req, out := c.DescribeElasticLoadBalancersRequest(input)
  817. err := req.Send()
  818. return out, err
  819. }
  820. const opDescribeInstances = "DescribeInstances"
  821. // DescribeInstancesRequest generates a request for the DescribeInstances operation.
  822. func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  823. op := &request.Operation{
  824. Name: opDescribeInstances,
  825. HTTPMethod: "POST",
  826. HTTPPath: "/",
  827. }
  828. if input == nil {
  829. input = &DescribeInstancesInput{}
  830. }
  831. req = c.newRequest(op, input, output)
  832. output = &DescribeInstancesOutput{}
  833. req.Data = output
  834. return
  835. }
  836. // Requests a description of a set of instances.
  837. //
  838. // You must specify at least one of the parameters.
  839. //
  840. // Required Permissions: To use this action, an IAM user must have a Show,
  841. // Deploy, or Manage permissions level for the stack, or an attached policy
  842. // that explicitly grants permissions. For more information on user permissions,
  843. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  844. func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  845. req, out := c.DescribeInstancesRequest(input)
  846. err := req.Send()
  847. return out, err
  848. }
  849. const opDescribeLayers = "DescribeLayers"
  850. // DescribeLayersRequest generates a request for the DescribeLayers operation.
  851. func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *request.Request, output *DescribeLayersOutput) {
  852. op := &request.Operation{
  853. Name: opDescribeLayers,
  854. HTTPMethod: "POST",
  855. HTTPPath: "/",
  856. }
  857. if input == nil {
  858. input = &DescribeLayersInput{}
  859. }
  860. req = c.newRequest(op, input, output)
  861. output = &DescribeLayersOutput{}
  862. req.Data = output
  863. return
  864. }
  865. // Requests a description of one or more layers in a specified stack.
  866. //
  867. // You must specify at least one of the parameters.
  868. //
  869. // Required Permissions: To use this action, an IAM user must have a Show,
  870. // Deploy, or Manage permissions level for the stack, or an attached policy
  871. // that explicitly grants permissions. For more information on user permissions,
  872. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  873. func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error) {
  874. req, out := c.DescribeLayersRequest(input)
  875. err := req.Send()
  876. return out, err
  877. }
  878. const opDescribeLoadBasedAutoScaling = "DescribeLoadBasedAutoScaling"
  879. // DescribeLoadBasedAutoScalingRequest generates a request for the DescribeLoadBasedAutoScaling operation.
  880. func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedAutoScalingInput) (req *request.Request, output *DescribeLoadBasedAutoScalingOutput) {
  881. op := &request.Operation{
  882. Name: opDescribeLoadBasedAutoScaling,
  883. HTTPMethod: "POST",
  884. HTTPPath: "/",
  885. }
  886. if input == nil {
  887. input = &DescribeLoadBasedAutoScalingInput{}
  888. }
  889. req = c.newRequest(op, input, output)
  890. output = &DescribeLoadBasedAutoScalingOutput{}
  891. req.Data = output
  892. return
  893. }
  894. // Describes load-based auto scaling configurations for specified layers.
  895. //
  896. // You must specify at least one of the parameters.
  897. //
  898. // Required Permissions: To use this action, an IAM user must have a Show,
  899. // Deploy, or Manage permissions level for the stack, or an attached policy
  900. // that explicitly grants permissions. For more information on user permissions,
  901. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  902. func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error) {
  903. req, out := c.DescribeLoadBasedAutoScalingRequest(input)
  904. err := req.Send()
  905. return out, err
  906. }
  907. const opDescribeMyUserProfile = "DescribeMyUserProfile"
  908. // DescribeMyUserProfileRequest generates a request for the DescribeMyUserProfile operation.
  909. func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInput) (req *request.Request, output *DescribeMyUserProfileOutput) {
  910. op := &request.Operation{
  911. Name: opDescribeMyUserProfile,
  912. HTTPMethod: "POST",
  913. HTTPPath: "/",
  914. }
  915. if input == nil {
  916. input = &DescribeMyUserProfileInput{}
  917. }
  918. req = c.newRequest(op, input, output)
  919. output = &DescribeMyUserProfileOutput{}
  920. req.Data = output
  921. return
  922. }
  923. // Describes a user's SSH information.
  924. //
  925. // Required Permissions: To use this action, an IAM user must have self-management
  926. // enabled or an attached policy that explicitly grants permissions. For more
  927. // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  928. func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error) {
  929. req, out := c.DescribeMyUserProfileRequest(input)
  930. err := req.Send()
  931. return out, err
  932. }
  933. const opDescribePermissions = "DescribePermissions"
  934. // DescribePermissionsRequest generates a request for the DescribePermissions operation.
  935. func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) (req *request.Request, output *DescribePermissionsOutput) {
  936. op := &request.Operation{
  937. Name: opDescribePermissions,
  938. HTTPMethod: "POST",
  939. HTTPPath: "/",
  940. }
  941. if input == nil {
  942. input = &DescribePermissionsInput{}
  943. }
  944. req = c.newRequest(op, input, output)
  945. output = &DescribePermissionsOutput{}
  946. req.Data = output
  947. return
  948. }
  949. // Describes the permissions for a specified stack.
  950. //
  951. // Required Permissions: To use this action, an IAM user must have a Manage
  952. // permissions level for the stack, or an attached policy that explicitly grants
  953. // permissions. For more information on user permissions, see Managing User
  954. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  955. func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error) {
  956. req, out := c.DescribePermissionsRequest(input)
  957. err := req.Send()
  958. return out, err
  959. }
  960. const opDescribeRaidArrays = "DescribeRaidArrays"
  961. // DescribeRaidArraysRequest generates a request for the DescribeRaidArrays operation.
  962. func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (req *request.Request, output *DescribeRaidArraysOutput) {
  963. op := &request.Operation{
  964. Name: opDescribeRaidArrays,
  965. HTTPMethod: "POST",
  966. HTTPPath: "/",
  967. }
  968. if input == nil {
  969. input = &DescribeRaidArraysInput{}
  970. }
  971. req = c.newRequest(op, input, output)
  972. output = &DescribeRaidArraysOutput{}
  973. req.Data = output
  974. return
  975. }
  976. // Describe an instance's RAID arrays.
  977. //
  978. // You must specify at least one of the parameters.
  979. //
  980. // Required Permissions: To use this action, an IAM user must have a Show,
  981. // Deploy, or Manage permissions level for the stack, or an attached policy
  982. // that explicitly grants permissions. For more information on user permissions,
  983. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  984. func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error) {
  985. req, out := c.DescribeRaidArraysRequest(input)
  986. err := req.Send()
  987. return out, err
  988. }
  989. const opDescribeRdsDbInstances = "DescribeRdsDbInstances"
  990. // DescribeRdsDbInstancesRequest generates a request for the DescribeRdsDbInstances operation.
  991. func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesInput) (req *request.Request, output *DescribeRdsDbInstancesOutput) {
  992. op := &request.Operation{
  993. Name: opDescribeRdsDbInstances,
  994. HTTPMethod: "POST",
  995. HTTPPath: "/",
  996. }
  997. if input == nil {
  998. input = &DescribeRdsDbInstancesInput{}
  999. }
  1000. req = c.newRequest(op, input, output)
  1001. output = &DescribeRdsDbInstancesOutput{}
  1002. req.Data = output
  1003. return
  1004. }
  1005. // Describes Amazon RDS instances.
  1006. //
  1007. // Required Permissions: To use this action, an IAM user must have a Show,
  1008. // Deploy, or Manage permissions level for the stack, or an attached policy
  1009. // that explicitly grants permissions. For more information on user permissions,
  1010. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1011. func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error) {
  1012. req, out := c.DescribeRdsDbInstancesRequest(input)
  1013. err := req.Send()
  1014. return out, err
  1015. }
  1016. const opDescribeServiceErrors = "DescribeServiceErrors"
  1017. // DescribeServiceErrorsRequest generates a request for the DescribeServiceErrors operation.
  1018. func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInput) (req *request.Request, output *DescribeServiceErrorsOutput) {
  1019. op := &request.Operation{
  1020. Name: opDescribeServiceErrors,
  1021. HTTPMethod: "POST",
  1022. HTTPPath: "/",
  1023. }
  1024. if input == nil {
  1025. input = &DescribeServiceErrorsInput{}
  1026. }
  1027. req = c.newRequest(op, input, output)
  1028. output = &DescribeServiceErrorsOutput{}
  1029. req.Data = output
  1030. return
  1031. }
  1032. // Describes AWS OpsWorks service errors.
  1033. //
  1034. // Required Permissions: To use this action, an IAM user must have a Show,
  1035. // Deploy, or Manage permissions level for the stack, or an attached policy
  1036. // that explicitly grants permissions. For more information on user permissions,
  1037. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1038. func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error) {
  1039. req, out := c.DescribeServiceErrorsRequest(input)
  1040. err := req.Send()
  1041. return out, err
  1042. }
  1043. const opDescribeStackProvisioningParameters = "DescribeStackProvisioningParameters"
  1044. // DescribeStackProvisioningParametersRequest generates a request for the DescribeStackProvisioningParameters operation.
  1045. func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeStackProvisioningParametersInput) (req *request.Request, output *DescribeStackProvisioningParametersOutput) {
  1046. op := &request.Operation{
  1047. Name: opDescribeStackProvisioningParameters,
  1048. HTTPMethod: "POST",
  1049. HTTPPath: "/",
  1050. }
  1051. if input == nil {
  1052. input = &DescribeStackProvisioningParametersInput{}
  1053. }
  1054. req = c.newRequest(op, input, output)
  1055. output = &DescribeStackProvisioningParametersOutput{}
  1056. req.Data = output
  1057. return
  1058. }
  1059. // Requests a description of a stack's provisioning parameters.
  1060. //
  1061. // Required Permissions: To use this action, an IAM user must have a Show,
  1062. // Deploy, or Manage permissions level for the stack or an attached policy that
  1063. // explicitly grants permissions. For more information on user permissions,
  1064. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1065. func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error) {
  1066. req, out := c.DescribeStackProvisioningParametersRequest(input)
  1067. err := req.Send()
  1068. return out, err
  1069. }
  1070. const opDescribeStackSummary = "DescribeStackSummary"
  1071. // DescribeStackSummaryRequest generates a request for the DescribeStackSummary operation.
  1072. func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) (req *request.Request, output *DescribeStackSummaryOutput) {
  1073. op := &request.Operation{
  1074. Name: opDescribeStackSummary,
  1075. HTTPMethod: "POST",
  1076. HTTPPath: "/",
  1077. }
  1078. if input == nil {
  1079. input = &DescribeStackSummaryInput{}
  1080. }
  1081. req = c.newRequest(op, input, output)
  1082. output = &DescribeStackSummaryOutput{}
  1083. req.Data = output
  1084. return
  1085. }
  1086. // Describes the number of layers and apps in a specified stack, and the number
  1087. // of instances in each state, such as running_setup or online.
  1088. //
  1089. // Required Permissions: To use this action, an IAM user must have a Show,
  1090. // Deploy, or Manage permissions level for the stack, or an attached policy
  1091. // that explicitly grants permissions. For more information on user permissions,
  1092. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1093. func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error) {
  1094. req, out := c.DescribeStackSummaryRequest(input)
  1095. err := req.Send()
  1096. return out, err
  1097. }
  1098. const opDescribeStacks = "DescribeStacks"
  1099. // DescribeStacksRequest generates a request for the DescribeStacks operation.
  1100. func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) {
  1101. op := &request.Operation{
  1102. Name: opDescribeStacks,
  1103. HTTPMethod: "POST",
  1104. HTTPPath: "/",
  1105. }
  1106. if input == nil {
  1107. input = &DescribeStacksInput{}
  1108. }
  1109. req = c.newRequest(op, input, output)
  1110. output = &DescribeStacksOutput{}
  1111. req.Data = output
  1112. return
  1113. }
  1114. // Requests a description of one or more stacks.
  1115. //
  1116. // Required Permissions: To use this action, an IAM user must have a Show,
  1117. // Deploy, or Manage permissions level for the stack, or an attached policy
  1118. // that explicitly grants permissions. For more information on user permissions,
  1119. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1120. func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) {
  1121. req, out := c.DescribeStacksRequest(input)
  1122. err := req.Send()
  1123. return out, err
  1124. }
  1125. const opDescribeTimeBasedAutoScaling = "DescribeTimeBasedAutoScaling"
  1126. // DescribeTimeBasedAutoScalingRequest generates a request for the DescribeTimeBasedAutoScaling operation.
  1127. func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedAutoScalingInput) (req *request.Request, output *DescribeTimeBasedAutoScalingOutput) {
  1128. op := &request.Operation{
  1129. Name: opDescribeTimeBasedAutoScaling,
  1130. HTTPMethod: "POST",
  1131. HTTPPath: "/",
  1132. }
  1133. if input == nil {
  1134. input = &DescribeTimeBasedAutoScalingInput{}
  1135. }
  1136. req = c.newRequest(op, input, output)
  1137. output = &DescribeTimeBasedAutoScalingOutput{}
  1138. req.Data = output
  1139. return
  1140. }
  1141. // Describes time-based auto scaling configurations for specified instances.
  1142. //
  1143. // You must specify at least one of the parameters.
  1144. //
  1145. // Required Permissions: To use this action, an IAM user must have a Show,
  1146. // Deploy, or Manage permissions level for the stack, or an attached policy
  1147. // that explicitly grants permissions. For more information on user permissions,
  1148. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1149. func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error) {
  1150. req, out := c.DescribeTimeBasedAutoScalingRequest(input)
  1151. err := req.Send()
  1152. return out, err
  1153. }
  1154. const opDescribeUserProfiles = "DescribeUserProfiles"
  1155. // DescribeUserProfilesRequest generates a request for the DescribeUserProfiles operation.
  1156. func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) (req *request.Request, output *DescribeUserProfilesOutput) {
  1157. op := &request.Operation{
  1158. Name: opDescribeUserProfiles,
  1159. HTTPMethod: "POST",
  1160. HTTPPath: "/",
  1161. }
  1162. if input == nil {
  1163. input = &DescribeUserProfilesInput{}
  1164. }
  1165. req = c.newRequest(op, input, output)
  1166. output = &DescribeUserProfilesOutput{}
  1167. req.Data = output
  1168. return
  1169. }
  1170. // Describe specified users.
  1171. //
  1172. // Required Permissions: To use this action, an IAM user must have an attached
  1173. // policy that explicitly grants permissions. For more information on user permissions,
  1174. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1175. func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error) {
  1176. req, out := c.DescribeUserProfilesRequest(input)
  1177. err := req.Send()
  1178. return out, err
  1179. }
  1180. const opDescribeVolumes = "DescribeVolumes"
  1181. // DescribeVolumesRequest generates a request for the DescribeVolumes operation.
  1182. func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  1183. op := &request.Operation{
  1184. Name: opDescribeVolumes,
  1185. HTTPMethod: "POST",
  1186. HTTPPath: "/",
  1187. }
  1188. if input == nil {
  1189. input = &DescribeVolumesInput{}
  1190. }
  1191. req = c.newRequest(op, input, output)
  1192. output = &DescribeVolumesOutput{}
  1193. req.Data = output
  1194. return
  1195. }
  1196. // Describes an instance's Amazon EBS volumes.
  1197. //
  1198. // You must specify at least one of the parameters.
  1199. //
  1200. // Required Permissions: To use this action, an IAM user must have a Show,
  1201. // Deploy, or Manage permissions level for the stack, or an attached policy
  1202. // that explicitly grants permissions. For more information on user permissions,
  1203. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1204. func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  1205. req, out := c.DescribeVolumesRequest(input)
  1206. err := req.Send()
  1207. return out, err
  1208. }
  1209. const opDetachElasticLoadBalancer = "DetachElasticLoadBalancer"
  1210. // DetachElasticLoadBalancerRequest generates a request for the DetachElasticLoadBalancer operation.
  1211. func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBalancerInput) (req *request.Request, output *DetachElasticLoadBalancerOutput) {
  1212. op := &request.Operation{
  1213. Name: opDetachElasticLoadBalancer,
  1214. HTTPMethod: "POST",
  1215. HTTPPath: "/",
  1216. }
  1217. if input == nil {
  1218. input = &DetachElasticLoadBalancerInput{}
  1219. }
  1220. req = c.newRequest(op, input, output)
  1221. output = &DetachElasticLoadBalancerOutput{}
  1222. req.Data = output
  1223. return
  1224. }
  1225. // Detaches a specified Elastic Load Balancing instance from its layer.
  1226. //
  1227. // Required Permissions: To use this action, an IAM user must have a Manage
  1228. // permissions level for the stack, or an attached policy that explicitly grants
  1229. // permissions. For more information on user permissions, see Managing User
  1230. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1231. func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error) {
  1232. req, out := c.DetachElasticLoadBalancerRequest(input)
  1233. err := req.Send()
  1234. return out, err
  1235. }
  1236. const opDisassociateElasticIp = "DisassociateElasticIp"
  1237. // DisassociateElasticIpRequest generates a request for the DisassociateElasticIp operation.
  1238. func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInput) (req *request.Request, output *DisassociateElasticIpOutput) {
  1239. op := &request.Operation{
  1240. Name: opDisassociateElasticIp,
  1241. HTTPMethod: "POST",
  1242. HTTPPath: "/",
  1243. }
  1244. if input == nil {
  1245. input = &DisassociateElasticIpInput{}
  1246. }
  1247. req = c.newRequest(op, input, output)
  1248. output = &DisassociateElasticIpOutput{}
  1249. req.Data = output
  1250. return
  1251. }
  1252. // Disassociates an Elastic IP address from its instance. The address remains
  1253. // registered with the stack. For more information, see Resource Management
  1254. // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1255. //
  1256. // Required Permissions: To use this action, an IAM user must have a Manage
  1257. // permissions level for the stack, or an attached policy that explicitly grants
  1258. // permissions. For more information on user permissions, see Managing User
  1259. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1260. func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error) {
  1261. req, out := c.DisassociateElasticIpRequest(input)
  1262. err := req.Send()
  1263. return out, err
  1264. }
  1265. const opGetHostnameSuggestion = "GetHostnameSuggestion"
  1266. // GetHostnameSuggestionRequest generates a request for the GetHostnameSuggestion operation.
  1267. func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInput) (req *request.Request, output *GetHostnameSuggestionOutput) {
  1268. op := &request.Operation{
  1269. Name: opGetHostnameSuggestion,
  1270. HTTPMethod: "POST",
  1271. HTTPPath: "/",
  1272. }
  1273. if input == nil {
  1274. input = &GetHostnameSuggestionInput{}
  1275. }
  1276. req = c.newRequest(op, input, output)
  1277. output = &GetHostnameSuggestionOutput{}
  1278. req.Data = output
  1279. return
  1280. }
  1281. // Gets a generated host name for the specified layer, based on the current
  1282. // host name theme.
  1283. //
  1284. // Required Permissions: To use this action, an IAM user must have a Manage
  1285. // permissions level for the stack, or an attached policy that explicitly grants
  1286. // permissions. For more information on user permissions, see Managing User
  1287. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1288. func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error) {
  1289. req, out := c.GetHostnameSuggestionRequest(input)
  1290. err := req.Send()
  1291. return out, err
  1292. }
  1293. const opGrantAccess = "GrantAccess"
  1294. // GrantAccessRequest generates a request for the GrantAccess operation.
  1295. func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Request, output *GrantAccessOutput) {
  1296. op := &request.Operation{
  1297. Name: opGrantAccess,
  1298. HTTPMethod: "POST",
  1299. HTTPPath: "/",
  1300. }
  1301. if input == nil {
  1302. input = &GrantAccessInput{}
  1303. }
  1304. req = c.newRequest(op, input, output)
  1305. output = &GrantAccessOutput{}
  1306. req.Data = output
  1307. return
  1308. }
  1309. // This action can be used only with Windows stacks. Grants RDP access to a
  1310. // Windows instance for a specified time period.
  1311. func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error) {
  1312. req, out := c.GrantAccessRequest(input)
  1313. err := req.Send()
  1314. return out, err
  1315. }
  1316. const opRebootInstance = "RebootInstance"
  1317. // RebootInstanceRequest generates a request for the RebootInstance operation.
  1318. func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput) {
  1319. op := &request.Operation{
  1320. Name: opRebootInstance,
  1321. HTTPMethod: "POST",
  1322. HTTPPath: "/",
  1323. }
  1324. if input == nil {
  1325. input = &RebootInstanceInput{}
  1326. }
  1327. req = c.newRequest(op, input, output)
  1328. output = &RebootInstanceOutput{}
  1329. req.Data = output
  1330. return
  1331. }
  1332. // Reboots a specified instance. For more information, see Starting, Stopping,
  1333. // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  1334. //
  1335. // Required Permissions: To use this action, an IAM user must have a Manage
  1336. // permissions level for the stack, or an attached policy that explicitly grants
  1337. // permissions. For more information on user permissions, see Managing User
  1338. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1339. func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) {
  1340. req, out := c.RebootInstanceRequest(input)
  1341. err := req.Send()
  1342. return out, err
  1343. }
  1344. const opRegisterEcsCluster = "RegisterEcsCluster"
  1345. // RegisterEcsClusterRequest generates a request for the RegisterEcsCluster operation.
  1346. func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (req *request.Request, output *RegisterEcsClusterOutput) {
  1347. op := &request.Operation{
  1348. Name: opRegisterEcsCluster,
  1349. HTTPMethod: "POST",
  1350. HTTPPath: "/",
  1351. }
  1352. if input == nil {
  1353. input = &RegisterEcsClusterInput{}
  1354. }
  1355. req = c.newRequest(op, input, output)
  1356. output = &RegisterEcsClusterOutput{}
  1357. req.Data = output
  1358. return
  1359. }
  1360. // Registers a specified Amazon ECS cluster with a stack. You can register only
  1361. // one cluster with a stack. A cluster can be registered with only one stack.
  1362. // For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html).
  1363. //
  1364. // Required Permissions: To use this action, an IAM user must have a Manage
  1365. // permissions level for the stack or an attached policy that explicitly grants
  1366. // permissions. For more information on user permissions, see Managing User
  1367. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1368. func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error) {
  1369. req, out := c.RegisterEcsClusterRequest(input)
  1370. err := req.Send()
  1371. return out, err
  1372. }
  1373. const opRegisterElasticIp = "RegisterElasticIp"
  1374. // RegisterElasticIpRequest generates a request for the RegisterElasticIp operation.
  1375. func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req *request.Request, output *RegisterElasticIpOutput) {
  1376. op := &request.Operation{
  1377. Name: opRegisterElasticIp,
  1378. HTTPMethod: "POST",
  1379. HTTPPath: "/",
  1380. }
  1381. if input == nil {
  1382. input = &RegisterElasticIpInput{}
  1383. }
  1384. req = c.newRequest(op, input, output)
  1385. output = &RegisterElasticIpOutput{}
  1386. req.Data = output
  1387. return
  1388. }
  1389. // Registers an Elastic IP address with a specified stack. An address can be
  1390. // registered with only one stack at a time. If the address is already registered,
  1391. // you must first deregister it by calling DeregisterElasticIp. For more information,
  1392. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1393. //
  1394. // Required Permissions: To use this action, an IAM user must have a Manage
  1395. // permissions level for the stack, or an attached policy that explicitly grants
  1396. // permissions. For more information on user permissions, see Managing User
  1397. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1398. func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error) {
  1399. req, out := c.RegisterElasticIpRequest(input)
  1400. err := req.Send()
  1401. return out, err
  1402. }
  1403. const opRegisterInstance = "RegisterInstance"
  1404. // RegisterInstanceRequest generates a request for the RegisterInstance operation.
  1405. func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *request.Request, output *RegisterInstanceOutput) {
  1406. op := &request.Operation{
  1407. Name: opRegisterInstance,
  1408. HTTPMethod: "POST",
  1409. HTTPPath: "/",
  1410. }
  1411. if input == nil {
  1412. input = &RegisterInstanceInput{}
  1413. }
  1414. req = c.newRequest(op, input, output)
  1415. output = &RegisterInstanceOutput{}
  1416. req.Data = output
  1417. return
  1418. }
  1419. // Registers instances with a specified stack that were created outside of AWS
  1420. // OpsWorks.
  1421. //
  1422. // We do not recommend using this action to register instances. The complete
  1423. // registration operation has two primary steps, installing the AWS OpsWorks
  1424. // agent on the instance and registering the instance with the stack. RegisterInstance
  1425. // handles only the second step. You should instead use the AWS CLI register
  1426. // command, which performs the entire registration operation. For more information,
  1427. // see Registering an Instance with an AWS OpsWorks Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html).
  1428. // Required Permissions: To use this action, an IAM user must have a Manage
  1429. // permissions level for the stack or an attached policy that explicitly grants
  1430. // permissions. For more information on user permissions, see Managing User
  1431. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1432. func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) {
  1433. req, out := c.RegisterInstanceRequest(input)
  1434. err := req.Send()
  1435. return out, err
  1436. }
  1437. const opRegisterRdsDbInstance = "RegisterRdsDbInstance"
  1438. // RegisterRdsDbInstanceRequest generates a request for the RegisterRdsDbInstance operation.
  1439. func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInput) (req *request.Request, output *RegisterRdsDbInstanceOutput) {
  1440. op := &request.Operation{
  1441. Name: opRegisterRdsDbInstance,
  1442. HTTPMethod: "POST",
  1443. HTTPPath: "/",
  1444. }
  1445. if input == nil {
  1446. input = &RegisterRdsDbInstanceInput{}
  1447. }
  1448. req = c.newRequest(op, input, output)
  1449. output = &RegisterRdsDbInstanceOutput{}
  1450. req.Data = output
  1451. return
  1452. }
  1453. // Registers an Amazon RDS instance with a stack.
  1454. //
  1455. // Required Permissions: To use this action, an IAM user must have a Manage
  1456. // permissions level for the stack, or an attached policy that explicitly grants
  1457. // permissions. For more information on user permissions, see Managing User
  1458. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1459. func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error) {
  1460. req, out := c.RegisterRdsDbInstanceRequest(input)
  1461. err := req.Send()
  1462. return out, err
  1463. }
  1464. const opRegisterVolume = "RegisterVolume"
  1465. // RegisterVolumeRequest generates a request for the RegisterVolume operation.
  1466. func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *request.Request, output *RegisterVolumeOutput) {
  1467. op := &request.Operation{
  1468. Name: opRegisterVolume,
  1469. HTTPMethod: "POST",
  1470. HTTPPath: "/",
  1471. }
  1472. if input == nil {
  1473. input = &RegisterVolumeInput{}
  1474. }
  1475. req = c.newRequest(op, input, output)
  1476. output = &RegisterVolumeOutput{}
  1477. req.Data = output
  1478. return
  1479. }
  1480. // Registers an Amazon EBS volume with a specified stack. A volume can be registered
  1481. // with only one stack at a time. If the volume is already registered, you must
  1482. // first deregister it by calling DeregisterVolume. For more information, see
  1483. // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1484. //
  1485. // Required Permissions: To use this action, an IAM user must have a Manage
  1486. // permissions level for the stack, or an attached policy that explicitly grants
  1487. // permissions. For more information on user permissions, see Managing User
  1488. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1489. func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error) {
  1490. req, out := c.RegisterVolumeRequest(input)
  1491. err := req.Send()
  1492. return out, err
  1493. }
  1494. const opSetLoadBasedAutoScaling = "SetLoadBasedAutoScaling"
  1495. // SetLoadBasedAutoScalingRequest generates a request for the SetLoadBasedAutoScaling operation.
  1496. func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScalingInput) (req *request.Request, output *SetLoadBasedAutoScalingOutput) {
  1497. op := &request.Operation{
  1498. Name: opSetLoadBasedAutoScaling,
  1499. HTTPMethod: "POST",
  1500. HTTPPath: "/",
  1501. }
  1502. if input == nil {
  1503. input = &SetLoadBasedAutoScalingInput{}
  1504. }
  1505. req = c.newRequest(op, input, output)
  1506. output = &SetLoadBasedAutoScalingOutput{}
  1507. req.Data = output
  1508. return
  1509. }
  1510. // Specify the load-based auto scaling configuration for a specified layer.
  1511. // For more information, see Managing Load with Time-based and Load-based Instances
  1512. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).
  1513. //
  1514. // To use load-based auto scaling, you must create a set of load-based auto
  1515. // scaling instances. Load-based auto scaling operates only on the instances
  1516. // from that set, so you must ensure that you have created enough instances
  1517. // to handle the maximum anticipated load.
  1518. //
  1519. // Required Permissions: To use this action, an IAM user must have a Manage
  1520. // permissions level for the stack, or an attached policy that explicitly grants
  1521. // permissions. For more information on user permissions, see Managing User
  1522. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1523. func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error) {
  1524. req, out := c.SetLoadBasedAutoScalingRequest(input)
  1525. err := req.Send()
  1526. return out, err
  1527. }
  1528. const opSetPermission = "SetPermission"
  1529. // SetPermissionRequest generates a request for the SetPermission operation.
  1530. func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request.Request, output *SetPermissionOutput) {
  1531. op := &request.Operation{
  1532. Name: opSetPermission,
  1533. HTTPMethod: "POST",
  1534. HTTPPath: "/",
  1535. }
  1536. if input == nil {
  1537. input = &SetPermissionInput{}
  1538. }
  1539. req = c.newRequest(op, input, output)
  1540. output = &SetPermissionOutput{}
  1541. req.Data = output
  1542. return
  1543. }
  1544. // Specifies a user's permissions. For more information, see Security and Permissions
  1545. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html).
  1546. //
  1547. // Required Permissions: To use this action, an IAM user must have a Manage
  1548. // permissions level for the stack, or an attached policy that explicitly grants
  1549. // permissions. For more information on user permissions, see Managing User
  1550. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1551. func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error) {
  1552. req, out := c.SetPermissionRequest(input)
  1553. err := req.Send()
  1554. return out, err
  1555. }
  1556. const opSetTimeBasedAutoScaling = "SetTimeBasedAutoScaling"
  1557. // SetTimeBasedAutoScalingRequest generates a request for the SetTimeBasedAutoScaling operation.
  1558. func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScalingInput) (req *request.Request, output *SetTimeBasedAutoScalingOutput) {
  1559. op := &request.Operation{
  1560. Name: opSetTimeBasedAutoScaling,
  1561. HTTPMethod: "POST",
  1562. HTTPPath: "/",
  1563. }
  1564. if input == nil {
  1565. input = &SetTimeBasedAutoScalingInput{}
  1566. }
  1567. req = c.newRequest(op, input, output)
  1568. output = &SetTimeBasedAutoScalingOutput{}
  1569. req.Data = output
  1570. return
  1571. }
  1572. // Specify the time-based auto scaling configuration for a specified instance.
  1573. // For more information, see Managing Load with Time-based and Load-based Instances
  1574. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).
  1575. //
  1576. // Required Permissions: To use this action, an IAM user must have a Manage
  1577. // permissions level for the stack, or an attached policy that explicitly grants
  1578. // permissions. For more information on user permissions, see Managing User
  1579. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1580. func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error) {
  1581. req, out := c.SetTimeBasedAutoScalingRequest(input)
  1582. err := req.Send()
  1583. return out, err
  1584. }
  1585. const opStartInstance = "StartInstance"
  1586. // StartInstanceRequest generates a request for the StartInstance operation.
  1587. func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput) {
  1588. op := &request.Operation{
  1589. Name: opStartInstance,
  1590. HTTPMethod: "POST",
  1591. HTTPPath: "/",
  1592. }
  1593. if input == nil {
  1594. input = &StartInstanceInput{}
  1595. }
  1596. req = c.newRequest(op, input, output)
  1597. output = &StartInstanceOutput{}
  1598. req.Data = output
  1599. return
  1600. }
  1601. // Starts a specified instance. For more information, see Starting, Stopping,
  1602. // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  1603. //
  1604. // Required Permissions: To use this action, an IAM user must have a Manage
  1605. // permissions level for the stack, or an attached policy that explicitly grants
  1606. // permissions. For more information on user permissions, see Managing User
  1607. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1608. func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) {
  1609. req, out := c.StartInstanceRequest(input)
  1610. err := req.Send()
  1611. return out, err
  1612. }
  1613. const opStartStack = "StartStack"
  1614. // StartStackRequest generates a request for the StartStack operation.
  1615. func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Request, output *StartStackOutput) {
  1616. op := &request.Operation{
  1617. Name: opStartStack,
  1618. HTTPMethod: "POST",
  1619. HTTPPath: "/",
  1620. }
  1621. if input == nil {
  1622. input = &StartStackInput{}
  1623. }
  1624. req = c.newRequest(op, input, output)
  1625. output = &StartStackOutput{}
  1626. req.Data = output
  1627. return
  1628. }
  1629. // Starts a stack's instances.
  1630. //
  1631. // Required Permissions: To use this action, an IAM user must have a Manage
  1632. // permissions level for the stack, or an attached policy that explicitly grants
  1633. // permissions. For more information on user permissions, see Managing User
  1634. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1635. func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error) {
  1636. req, out := c.StartStackRequest(input)
  1637. err := req.Send()
  1638. return out, err
  1639. }
  1640. const opStopInstance = "StopInstance"
  1641. // StopInstanceRequest generates a request for the StopInstance operation.
  1642. func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput) {
  1643. op := &request.Operation{
  1644. Name: opStopInstance,
  1645. HTTPMethod: "POST",
  1646. HTTPPath: "/",
  1647. }
  1648. if input == nil {
  1649. input = &StopInstanceInput{}
  1650. }
  1651. req = c.newRequest(op, input, output)
  1652. output = &StopInstanceOutput{}
  1653. req.Data = output
  1654. return
  1655. }
  1656. // Stops a specified instance. When you stop a standard instance, the data disappears
  1657. // and must be reinstalled when you restart the instance. You can stop an Amazon
  1658. // EBS-backed instance without losing data. For more information, see Starting,
  1659. // Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  1660. //
  1661. // Required Permissions: To use this action, an IAM user must have a Manage
  1662. // permissions level for the stack, or an attached policy that explicitly grants
  1663. // permissions. For more information on user permissions, see Managing User
  1664. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1665. func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) {
  1666. req, out := c.StopInstanceRequest(input)
  1667. err := req.Send()
  1668. return out, err
  1669. }
  1670. const opStopStack = "StopStack"
  1671. // StopStackRequest generates a request for the StopStack operation.
  1672. func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request, output *StopStackOutput) {
  1673. op := &request.Operation{
  1674. Name: opStopStack,
  1675. HTTPMethod: "POST",
  1676. HTTPPath: "/",
  1677. }
  1678. if input == nil {
  1679. input = &StopStackInput{}
  1680. }
  1681. req = c.newRequest(op, input, output)
  1682. output = &StopStackOutput{}
  1683. req.Data = output
  1684. return
  1685. }
  1686. // Stops a specified stack.
  1687. //
  1688. // Required Permissions: To use this action, an IAM user must have a Manage
  1689. // permissions level for the stack, or an attached policy that explicitly grants
  1690. // permissions. For more information on user permissions, see Managing User
  1691. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1692. func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error) {
  1693. req, out := c.StopStackRequest(input)
  1694. err := req.Send()
  1695. return out, err
  1696. }
  1697. const opUnassignInstance = "UnassignInstance"
  1698. // UnassignInstanceRequest generates a request for the UnassignInstance operation.
  1699. func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *request.Request, output *UnassignInstanceOutput) {
  1700. op := &request.Operation{
  1701. Name: opUnassignInstance,
  1702. HTTPMethod: "POST",
  1703. HTTPPath: "/",
  1704. }
  1705. if input == nil {
  1706. input = &UnassignInstanceInput{}
  1707. }
  1708. req = c.newRequest(op, input, output)
  1709. output = &UnassignInstanceOutput{}
  1710. req.Data = output
  1711. return
  1712. }
  1713. // Unassigns a registered instance from all of it's layers. The instance remains
  1714. // in the stack as an unassigned instance and can be assigned to another layer,
  1715. // as needed. You cannot use this action with instances that were created with
  1716. // AWS OpsWorks.
  1717. //
  1718. // Required Permissions: To use this action, an IAM user must have a Manage
  1719. // permissions level for the stack or an attached policy that explicitly grants
  1720. // permissions. For more information on user permissions, see Managing User
  1721. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1722. func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error) {
  1723. req, out := c.UnassignInstanceRequest(input)
  1724. err := req.Send()
  1725. return out, err
  1726. }
  1727. const opUnassignVolume = "UnassignVolume"
  1728. // UnassignVolumeRequest generates a request for the UnassignVolume operation.
  1729. func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *request.Request, output *UnassignVolumeOutput) {
  1730. op := &request.Operation{
  1731. Name: opUnassignVolume,
  1732. HTTPMethod: "POST",
  1733. HTTPPath: "/",
  1734. }
  1735. if input == nil {
  1736. input = &UnassignVolumeInput{}
  1737. }
  1738. req = c.newRequest(op, input, output)
  1739. output = &UnassignVolumeOutput{}
  1740. req.Data = output
  1741. return
  1742. }
  1743. // Unassigns an assigned Amazon EBS volume. The volume remains registered with
  1744. // the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1745. //
  1746. // Required Permissions: To use this action, an IAM user must have a Manage
  1747. // permissions level for the stack, or an attached policy that explicitly grants
  1748. // permissions. For more information on user permissions, see Managing User
  1749. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1750. func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error) {
  1751. req, out := c.UnassignVolumeRequest(input)
  1752. err := req.Send()
  1753. return out, err
  1754. }
  1755. const opUpdateApp = "UpdateApp"
  1756. // UpdateAppRequest generates a request for the UpdateApp operation.
  1757. func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
  1758. op := &request.Operation{
  1759. Name: opUpdateApp,
  1760. HTTPMethod: "POST",
  1761. HTTPPath: "/",
  1762. }
  1763. if input == nil {
  1764. input = &UpdateAppInput{}
  1765. }
  1766. req = c.newRequest(op, input, output)
  1767. output = &UpdateAppOutput{}
  1768. req.Data = output
  1769. return
  1770. }
  1771. // Updates a specified app.
  1772. //
  1773. // Required Permissions: To use this action, an IAM user must have a Deploy
  1774. // or Manage permissions level for the stack, or an attached policy that explicitly
  1775. // grants permissions. For more information on user permissions, see Managing
  1776. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1777. func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
  1778. req, out := c.UpdateAppRequest(input)
  1779. err := req.Send()
  1780. return out, err
  1781. }
  1782. const opUpdateElasticIp = "UpdateElasticIp"
  1783. // UpdateElasticIpRequest generates a request for the UpdateElasticIp operation.
  1784. func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *request.Request, output *UpdateElasticIpOutput) {
  1785. op := &request.Operation{
  1786. Name: opUpdateElasticIp,
  1787. HTTPMethod: "POST",
  1788. HTTPPath: "/",
  1789. }
  1790. if input == nil {
  1791. input = &UpdateElasticIpInput{}
  1792. }
  1793. req = c.newRequest(op, input, output)
  1794. output = &UpdateElasticIpOutput{}
  1795. req.Data = output
  1796. return
  1797. }
  1798. // Updates a registered Elastic IP address's name. For more information, see
  1799. // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1800. //
  1801. // Required Permissions: To use this action, an IAM user must have a Manage
  1802. // permissions level for the stack, or an attached policy that explicitly grants
  1803. // permissions. For more information on user permissions, see Managing User
  1804. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1805. func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error) {
  1806. req, out := c.UpdateElasticIpRequest(input)
  1807. err := req.Send()
  1808. return out, err
  1809. }
  1810. const opUpdateInstance = "UpdateInstance"
  1811. // UpdateInstanceRequest generates a request for the UpdateInstance operation.
  1812. func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *request.Request, output *UpdateInstanceOutput) {
  1813. op := &request.Operation{
  1814. Name: opUpdateInstance,
  1815. HTTPMethod: "POST",
  1816. HTTPPath: "/",
  1817. }
  1818. if input == nil {
  1819. input = &UpdateInstanceInput{}
  1820. }
  1821. req = c.newRequest(op, input, output)
  1822. output = &UpdateInstanceOutput{}
  1823. req.Data = output
  1824. return
  1825. }
  1826. // Updates a specified instance.
  1827. //
  1828. // Required Permissions: To use this action, an IAM user must have a Manage
  1829. // permissions level for the stack, or an attached policy that explicitly grants
  1830. // permissions. For more information on user permissions, see Managing User
  1831. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1832. func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error) {
  1833. req, out := c.UpdateInstanceRequest(input)
  1834. err := req.Send()
  1835. return out, err
  1836. }
  1837. const opUpdateLayer = "UpdateLayer"
  1838. // UpdateLayerRequest generates a request for the UpdateLayer operation.
  1839. func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Request, output *UpdateLayerOutput) {
  1840. op := &request.Operation{
  1841. Name: opUpdateLayer,
  1842. HTTPMethod: "POST",
  1843. HTTPPath: "/",
  1844. }
  1845. if input == nil {
  1846. input = &UpdateLayerInput{}
  1847. }
  1848. req = c.newRequest(op, input, output)
  1849. output = &UpdateLayerOutput{}
  1850. req.Data = output
  1851. return
  1852. }
  1853. // Updates a specified layer.
  1854. //
  1855. // Required Permissions: To use this action, an IAM user must have a Manage
  1856. // permissions level for the stack, or an attached policy that explicitly grants
  1857. // permissions. For more information on user permissions, see Managing User
  1858. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1859. func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error) {
  1860. req, out := c.UpdateLayerRequest(input)
  1861. err := req.Send()
  1862. return out, err
  1863. }
  1864. const opUpdateMyUserProfile = "UpdateMyUserProfile"
  1865. // UpdateMyUserProfileRequest generates a request for the UpdateMyUserProfile operation.
  1866. func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) (req *request.Request, output *UpdateMyUserProfileOutput) {
  1867. op := &request.Operation{
  1868. Name: opUpdateMyUserProfile,
  1869. HTTPMethod: "POST",
  1870. HTTPPath: "/",
  1871. }
  1872. if input == nil {
  1873. input = &UpdateMyUserProfileInput{}
  1874. }
  1875. req = c.newRequest(op, input, output)
  1876. output = &UpdateMyUserProfileOutput{}
  1877. req.Data = output
  1878. return
  1879. }
  1880. // Updates a user's SSH public key.
  1881. //
  1882. // Required Permissions: To use this action, an IAM user must have self-management
  1883. // enabled or an attached policy that explicitly grants permissions. For more
  1884. // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1885. func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error) {
  1886. req, out := c.UpdateMyUserProfileRequest(input)
  1887. err := req.Send()
  1888. return out, err
  1889. }
  1890. const opUpdateRdsDbInstance = "UpdateRdsDbInstance"
  1891. // UpdateRdsDbInstanceRequest generates a request for the UpdateRdsDbInstance operation.
  1892. func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) (req *request.Request, output *UpdateRdsDbInstanceOutput) {
  1893. op := &request.Operation{
  1894. Name: opUpdateRdsDbInstance,
  1895. HTTPMethod: "POST",
  1896. HTTPPath: "/",
  1897. }
  1898. if input == nil {
  1899. input = &UpdateRdsDbInstanceInput{}
  1900. }
  1901. req = c.newRequest(op, input, output)
  1902. output = &UpdateRdsDbInstanceOutput{}
  1903. req.Data = output
  1904. return
  1905. }
  1906. // Updates an Amazon RDS instance.
  1907. //
  1908. // Required Permissions: To use this action, an IAM user must have a Manage
  1909. // permissions level for the stack, or an attached policy that explicitly grants
  1910. // permissions. For more information on user permissions, see Managing User
  1911. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1912. func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error) {
  1913. req, out := c.UpdateRdsDbInstanceRequest(input)
  1914. err := req.Send()
  1915. return out, err
  1916. }
  1917. const opUpdateStack = "UpdateStack"
  1918. // UpdateStackRequest generates a request for the UpdateStack operation.
  1919. func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) {
  1920. op := &request.Operation{
  1921. Name: opUpdateStack,
  1922. HTTPMethod: "POST",
  1923. HTTPPath: "/",
  1924. }
  1925. if input == nil {
  1926. input = &UpdateStackInput{}
  1927. }
  1928. req = c.newRequest(op, input, output)
  1929. output = &UpdateStackOutput{}
  1930. req.Data = output
  1931. return
  1932. }
  1933. // Updates a specified stack.
  1934. //
  1935. // Required Permissions: To use this action, an IAM user must have a Manage
  1936. // permissions level for the stack, or an attached policy that explicitly grants
  1937. // permissions. For more information on user permissions, see Managing User
  1938. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1939. func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) {
  1940. req, out := c.UpdateStackRequest(input)
  1941. err := req.Send()
  1942. return out, err
  1943. }
  1944. const opUpdateUserProfile = "UpdateUserProfile"
  1945. // UpdateUserProfileRequest generates a request for the UpdateUserProfile operation.
  1946. func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) {
  1947. op := &request.Operation{
  1948. Name: opUpdateUserProfile,
  1949. HTTPMethod: "POST",
  1950. HTTPPath: "/",
  1951. }
  1952. if input == nil {
  1953. input = &UpdateUserProfileInput{}
  1954. }
  1955. req = c.newRequest(op, input, output)
  1956. output = &UpdateUserProfileOutput{}
  1957. req.Data = output
  1958. return
  1959. }
  1960. // Updates a specified user profile.
  1961. //
  1962. // Required Permissions: To use this action, an IAM user must have an attached
  1963. // policy that explicitly grants permissions. For more information on user permissions,
  1964. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1965. func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) {
  1966. req, out := c.UpdateUserProfileRequest(input)
  1967. err := req.Send()
  1968. return out, err
  1969. }
  1970. const opUpdateVolume = "UpdateVolume"
  1971. // UpdateVolumeRequest generates a request for the UpdateVolume operation.
  1972. func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.Request, output *UpdateVolumeOutput) {
  1973. op := &request.Operation{
  1974. Name: opUpdateVolume,
  1975. HTTPMethod: "POST",
  1976. HTTPPath: "/",
  1977. }
  1978. if input == nil {
  1979. input = &UpdateVolumeInput{}
  1980. }
  1981. req = c.newRequest(op, input, output)
  1982. output = &UpdateVolumeOutput{}
  1983. req.Data = output
  1984. return
  1985. }
  1986. // Updates an Amazon EBS volume's name or mount point. For more information,
  1987. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1988. //
  1989. // Required Permissions: To use this action, an IAM user must have a Manage
  1990. // permissions level for the stack, or an attached policy that explicitly grants
  1991. // permissions. For more information on user permissions, see Managing User
  1992. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1993. func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, error) {
  1994. req, out := c.UpdateVolumeRequest(input)
  1995. err := req.Send()
  1996. return out, err
  1997. }
  1998. // Describes an agent version.
  1999. type AgentVersion struct {
  2000. // The configuration manager.
  2001. ConfigurationManager *StackConfigurationManager `type:"structure"`
  2002. // The agent version.
  2003. Version *string `type:"string"`
  2004. metadataAgentVersion `json:"-" xml:"-"`
  2005. }
  2006. type metadataAgentVersion struct {
  2007. SDKShapeTraits bool `type:"structure"`
  2008. }
  2009. // String returns the string representation
  2010. func (s AgentVersion) String() string {
  2011. return awsutil.Prettify(s)
  2012. }
  2013. // GoString returns the string representation
  2014. func (s AgentVersion) GoString() string {
  2015. return s.String()
  2016. }
  2017. // A description of the app.
  2018. type App struct {
  2019. // The app ID.
  2020. AppId *string `type:"string"`
  2021. // A Source object that describes the app repository.
  2022. AppSource *Source `type:"structure"`
  2023. // The stack attributes.
  2024. Attributes map[string]*string `type:"map"`
  2025. // When the app was created.
  2026. CreatedAt *string `type:"string"`
  2027. // The app's data sources.
  2028. DataSources []*DataSource `type:"list"`
  2029. // A description of the app.
  2030. Description *string `type:"string"`
  2031. // The app vhost settings with multiple domains separated by commas. For example:
  2032. // 'www.example.com, example.com'
  2033. Domains []*string `type:"list"`
  2034. // Whether to enable SSL for the app.
  2035. EnableSsl *bool `type:"boolean"`
  2036. // An array of EnvironmentVariable objects that specify environment variables
  2037. // to be associated with the app. After you deploy the app, these variables
  2038. // are defined on the associated app server instances. For more information,
  2039. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  2040. //
  2041. // There is no specific limit on the number of environment variables. However,
  2042. // the size of the associated data structure - which includes the variables'
  2043. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  2044. // This limit should accommodate most if not all use cases, but if you do exceed
  2045. // it, you will cause an exception (API) with an "Environment: is too large
  2046. // (maximum is 10KB)" message.
  2047. Environment []*EnvironmentVariable `type:"list"`
  2048. // The app name.
  2049. Name *string `type:"string"`
  2050. // The app's short name.
  2051. Shortname *string `type:"string"`
  2052. // An SslConfiguration object with the SSL configuration.
  2053. SslConfiguration *SslConfiguration `type:"structure"`
  2054. // The app stack ID.
  2055. StackId *string `type:"string"`
  2056. // The app type.
  2057. Type *string `type:"string" enum:"AppType"`
  2058. metadataApp `json:"-" xml:"-"`
  2059. }
  2060. type metadataApp struct {
  2061. SDKShapeTraits bool `type:"structure"`
  2062. }
  2063. // String returns the string representation
  2064. func (s App) String() string {
  2065. return awsutil.Prettify(s)
  2066. }
  2067. // GoString returns the string representation
  2068. func (s App) GoString() string {
  2069. return s.String()
  2070. }
  2071. type AssignInstanceInput struct {
  2072. // The instance ID.
  2073. InstanceId *string `type:"string" required:"true"`
  2074. // The layer ID, which must correspond to a custom layer. You cannot assign
  2075. // a registered instance to a built-in layer.
  2076. LayerIds []*string `type:"list" required:"true"`
  2077. metadataAssignInstanceInput `json:"-" xml:"-"`
  2078. }
  2079. type metadataAssignInstanceInput struct {
  2080. SDKShapeTraits bool `type:"structure"`
  2081. }
  2082. // String returns the string representation
  2083. func (s AssignInstanceInput) String() string {
  2084. return awsutil.Prettify(s)
  2085. }
  2086. // GoString returns the string representation
  2087. func (s AssignInstanceInput) GoString() string {
  2088. return s.String()
  2089. }
  2090. type AssignInstanceOutput struct {
  2091. metadataAssignInstanceOutput `json:"-" xml:"-"`
  2092. }
  2093. type metadataAssignInstanceOutput struct {
  2094. SDKShapeTraits bool `type:"structure"`
  2095. }
  2096. // String returns the string representation
  2097. func (s AssignInstanceOutput) String() string {
  2098. return awsutil.Prettify(s)
  2099. }
  2100. // GoString returns the string representation
  2101. func (s AssignInstanceOutput) GoString() string {
  2102. return s.String()
  2103. }
  2104. type AssignVolumeInput struct {
  2105. // The instance ID.
  2106. InstanceId *string `type:"string"`
  2107. // The volume ID.
  2108. VolumeId *string `type:"string" required:"true"`
  2109. metadataAssignVolumeInput `json:"-" xml:"-"`
  2110. }
  2111. type metadataAssignVolumeInput struct {
  2112. SDKShapeTraits bool `type:"structure"`
  2113. }
  2114. // String returns the string representation
  2115. func (s AssignVolumeInput) String() string {
  2116. return awsutil.Prettify(s)
  2117. }
  2118. // GoString returns the string representation
  2119. func (s AssignVolumeInput) GoString() string {
  2120. return s.String()
  2121. }
  2122. type AssignVolumeOutput struct {
  2123. metadataAssignVolumeOutput `json:"-" xml:"-"`
  2124. }
  2125. type metadataAssignVolumeOutput struct {
  2126. SDKShapeTraits bool `type:"structure"`
  2127. }
  2128. // String returns the string representation
  2129. func (s AssignVolumeOutput) String() string {
  2130. return awsutil.Prettify(s)
  2131. }
  2132. // GoString returns the string representation
  2133. func (s AssignVolumeOutput) GoString() string {
  2134. return s.String()
  2135. }
  2136. type AssociateElasticIpInput struct {
  2137. // The Elastic IP address.
  2138. ElasticIp *string `type:"string" required:"true"`
  2139. // The instance ID.
  2140. InstanceId *string `type:"string"`
  2141. metadataAssociateElasticIpInput `json:"-" xml:"-"`
  2142. }
  2143. type metadataAssociateElasticIpInput struct {
  2144. SDKShapeTraits bool `type:"structure"`
  2145. }
  2146. // String returns the string representation
  2147. func (s AssociateElasticIpInput) String() string {
  2148. return awsutil.Prettify(s)
  2149. }
  2150. // GoString returns the string representation
  2151. func (s AssociateElasticIpInput) GoString() string {
  2152. return s.String()
  2153. }
  2154. type AssociateElasticIpOutput struct {
  2155. metadataAssociateElasticIpOutput `json:"-" xml:"-"`
  2156. }
  2157. type metadataAssociateElasticIpOutput struct {
  2158. SDKShapeTraits bool `type:"structure"`
  2159. }
  2160. // String returns the string representation
  2161. func (s AssociateElasticIpOutput) String() string {
  2162. return awsutil.Prettify(s)
  2163. }
  2164. // GoString returns the string representation
  2165. func (s AssociateElasticIpOutput) GoString() string {
  2166. return s.String()
  2167. }
  2168. type AttachElasticLoadBalancerInput struct {
  2169. // The Elastic Load Balancing instance's name.
  2170. ElasticLoadBalancerName *string `type:"string" required:"true"`
  2171. // The ID of the layer that the Elastic Load Balancing instance is to be attached
  2172. // to.
  2173. LayerId *string `type:"string" required:"true"`
  2174. metadataAttachElasticLoadBalancerInput `json:"-" xml:"-"`
  2175. }
  2176. type metadataAttachElasticLoadBalancerInput struct {
  2177. SDKShapeTraits bool `type:"structure"`
  2178. }
  2179. // String returns the string representation
  2180. func (s AttachElasticLoadBalancerInput) String() string {
  2181. return awsutil.Prettify(s)
  2182. }
  2183. // GoString returns the string representation
  2184. func (s AttachElasticLoadBalancerInput) GoString() string {
  2185. return s.String()
  2186. }
  2187. type AttachElasticLoadBalancerOutput struct {
  2188. metadataAttachElasticLoadBalancerOutput `json:"-" xml:"-"`
  2189. }
  2190. type metadataAttachElasticLoadBalancerOutput struct {
  2191. SDKShapeTraits bool `type:"structure"`
  2192. }
  2193. // String returns the string representation
  2194. func (s AttachElasticLoadBalancerOutput) String() string {
  2195. return awsutil.Prettify(s)
  2196. }
  2197. // GoString returns the string representation
  2198. func (s AttachElasticLoadBalancerOutput) GoString() string {
  2199. return s.String()
  2200. }
  2201. // Describes a load-based auto scaling upscaling or downscaling threshold configuration,
  2202. // which specifies when AWS OpsWorks starts or stops load-based instances.
  2203. type AutoScalingThresholds struct {
  2204. // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter
  2205. // takes a list of up to five alarm names, which are case sensitive and must
  2206. // be in the same region as the stack.
  2207. //
  2208. // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms.
  2209. // You can either have AWS OpsWorks update the role for you when you first use
  2210. // this feature or you can edit the role manually. For more information, see
  2211. // Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html).
  2212. Alarms []*string `type:"list"`
  2213. // The CPU utilization threshold, as a percent of the available CPU.
  2214. CpuThreshold *float64 `type:"double"`
  2215. // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks
  2216. // should ignore metrics and suppress additional scaling events. For example,
  2217. // AWS OpsWorks adds new instances following an upscaling event but the instances
  2218. // won't start reducing the load until they have been booted and configured.
  2219. // There is no point in raising additional scaling events during that operation,
  2220. // which typically takes several minutes. IgnoreMetricsTime allows you to direct
  2221. // AWS OpsWorks to suppress scaling events long enough to get the new instances
  2222. // online.
  2223. IgnoreMetricsTime *int64 `type:"integer"`
  2224. // The number of instances to add or remove when the load exceeds a threshold.
  2225. InstanceCount *int64 `type:"integer"`
  2226. // The load threshold. For more information about how load is computed, see
  2227. // Load (computing) (http://en.wikipedia.org/wiki/Load_%28computing%29).
  2228. LoadThreshold *float64 `type:"double"`
  2229. // The memory utilization threshold, as a percent of the available memory.
  2230. MemoryThreshold *float64 `type:"double"`
  2231. // The amount of time, in minutes, that the load must exceed a threshold before
  2232. // more instances are added or removed.
  2233. ThresholdsWaitTime *int64 `type:"integer"`
  2234. metadataAutoScalingThresholds `json:"-" xml:"-"`
  2235. }
  2236. type metadataAutoScalingThresholds struct {
  2237. SDKShapeTraits bool `type:"structure"`
  2238. }
  2239. // String returns the string representation
  2240. func (s AutoScalingThresholds) String() string {
  2241. return awsutil.Prettify(s)
  2242. }
  2243. // GoString returns the string representation
  2244. func (s AutoScalingThresholds) GoString() string {
  2245. return s.String()
  2246. }
  2247. // Describes a block device mapping. This data type maps directly to the Amazon
  2248. // EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html)
  2249. // data type.
  2250. type BlockDeviceMapping struct {
  2251. // The device name that is exposed to the instance, such as /dev/sdh. For the
  2252. // root device, you can use the explicit device name or you can set this parameter
  2253. // to ROOT_DEVICE and AWS OpsWorks will provide the correct device name.
  2254. DeviceName *string `type:"string"`
  2255. // An EBSBlockDevice that defines how to configure an Amazon EBS volume when
  2256. // the instance is launched.
  2257. Ebs *EbsBlockDevice `type:"structure"`
  2258. // Suppresses the specified device included in the AMI's block device mapping.
  2259. NoDevice *string `type:"string"`
  2260. // The virtual device name. For more information, see BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html).
  2261. VirtualName *string `type:"string"`
  2262. metadataBlockDeviceMapping `json:"-" xml:"-"`
  2263. }
  2264. type metadataBlockDeviceMapping struct {
  2265. SDKShapeTraits bool `type:"structure"`
  2266. }
  2267. // String returns the string representation
  2268. func (s BlockDeviceMapping) String() string {
  2269. return awsutil.Prettify(s)
  2270. }
  2271. // GoString returns the string representation
  2272. func (s BlockDeviceMapping) GoString() string {
  2273. return s.String()
  2274. }
  2275. // Describes the Chef configuration.
  2276. type ChefConfiguration struct {
  2277. // The Berkshelf version.
  2278. BerkshelfVersion *string `type:"string"`
  2279. // Whether to enable Berkshelf.
  2280. ManageBerkshelf *bool `type:"boolean"`
  2281. metadataChefConfiguration `json:"-" xml:"-"`
  2282. }
  2283. type metadataChefConfiguration struct {
  2284. SDKShapeTraits bool `type:"structure"`
  2285. }
  2286. // String returns the string representation
  2287. func (s ChefConfiguration) String() string {
  2288. return awsutil.Prettify(s)
  2289. }
  2290. // GoString returns the string representation
  2291. func (s ChefConfiguration) GoString() string {
  2292. return s.String()
  2293. }
  2294. type CloneStackInput struct {
  2295. // The default AWS OpsWorks agent version. You have the following options:
  2296. //
  2297. // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  2298. // installs new agent versions on the stack's instances as soon as they are
  2299. // available. Fixed version - Set this parameter to your preferred agent version.
  2300. // To update the agent version, you must edit the stack configuration and specify
  2301. // a new version. AWS OpsWorks then automatically installs that version on the
  2302. // stack's instances. The default setting is LATEST. To specify an agent version,
  2303. // you must use the complete version number, not the abbreviated number shown
  2304. // on the console. For a list of available agent version numbers, call DescribeAgentVersions.
  2305. //
  2306. // You can also specify an agent version when you create or update an instance,
  2307. // which overrides the stack's default setting.
  2308. AgentVersion *string `type:"string"`
  2309. // A list of stack attributes and values as key/value pairs to be added to the
  2310. // cloned stack.
  2311. Attributes map[string]*string `type:"map"`
  2312. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  2313. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  2314. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  2315. ChefConfiguration *ChefConfiguration `type:"structure"`
  2316. // A list of source stack app IDs to be included in the cloned stack.
  2317. CloneAppIds []*string `type:"list"`
  2318. // Whether to clone the source stack's permissions.
  2319. ClonePermissions *bool `type:"boolean"`
  2320. // The configuration manager. When you clone a Linux stack we recommend that
  2321. // you use the configuration manager to specify the Chef version: 0.9, 11.4,
  2322. // or 11.10. The default value is currently 11.10.
  2323. ConfigurationManager *StackConfigurationManager `type:"structure"`
  2324. // Contains the information required to retrieve an app or cookbook from a repository.
  2325. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  2326. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  2327. CustomCookbooksSource *Source `type:"structure"`
  2328. // A string that contains user-defined, custom JSON. It is used to override
  2329. // the corresponding default stack configuration JSON values. The string should
  2330. // be in the following format and must escape characters such as '"':
  2331. //
  2332. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  2333. //
  2334. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  2335. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html)
  2336. CustomJson *string `type:"string"`
  2337. // The cloned stack's default Availability Zone, which must be in the specified
  2338. // region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  2339. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  2340. // same zone. For more information, see the VpcId parameter description.
  2341. DefaultAvailabilityZone *string `type:"string"`
  2342. // The Amazon Resource Name (ARN) of an IAM profile that is the default profile
  2343. // for all of the stack's EC2 instances. For more information about IAM ARNs,
  2344. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  2345. DefaultInstanceProfileArn *string `type:"string"`
  2346. // The stack's operating system, which must be set to one of the following.
  2347. //
  2348. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  2349. // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04
  2350. // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify
  2351. // the custom AMI you want to use when you create instances. For more information
  2352. // on how to use custom AMIs with OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  2353. // The default option is the parent stack's operating system. For more information
  2354. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  2355. //
  2356. // You can specify a different Linux operating system for the cloned stack,
  2357. // but you cannot change from Linux to Windows or Windows to Linux.
  2358. DefaultOs *string `type:"string"`
  2359. // The default root device type. This value is used by default for all instances
  2360. // in the cloned stack, but you can override it when you create an instance.
  2361. // For more information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  2362. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  2363. // A default Amazon EC2 key pair name. The default value is none. If you specify
  2364. // a key pair name, AWS OpsWorks installs the public key on the instance and
  2365. // you can use the private key with an SSH client to log in to the instance.
  2366. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  2367. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  2368. // You can override this setting by specifying a different key pair, or no key
  2369. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  2370. DefaultSshKeyName *string `type:"string"`
  2371. // The stack's default VPC subnet ID. This parameter is required if you specify
  2372. // a value for the VpcId parameter. All instances are launched into this subnet
  2373. // unless you specify otherwise when you create the instance. If you also specify
  2374. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  2375. // information on default values and when this parameter is required, see the
  2376. // VpcId parameter description.
  2377. DefaultSubnetId *string `type:"string"`
  2378. // The stack's host name theme, with spaces are replaced by underscores. The
  2379. // theme is used to generate host names for the stack's instances. By default,
  2380. // HostnameTheme is set to Layer_Dependent, which creates host names by appending
  2381. // integers to the layer's short name. The other themes are:
  2382. //
  2383. // Baked_Goods Clouds Europe_Cities Fruits Greek_Deities Legendary_creatures_from_Japan
  2384. // Planets_and_Moons Roman_Deities Scottish_Islands US_Cities Wild_Cats
  2385. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  2386. // a host name based on the current theme.
  2387. HostnameTheme *string `type:"string"`
  2388. // The cloned stack name.
  2389. Name *string `type:"string"`
  2390. // The cloned stack AWS region, such as "us-east-1". For more information about
  2391. // AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  2392. Region *string `type:"string"`
  2393. // The stack AWS Identity and Access Management (IAM) role, which allows AWS
  2394. // OpsWorks to work with AWS resources on your behalf. You must set this parameter
  2395. // to the Amazon Resource Name (ARN) for an existing IAM role. If you create
  2396. // a stack by using the AWS OpsWorks console, it creates the role for you. You
  2397. // can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions.
  2398. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  2399. //
  2400. // You must set this parameter to a valid service role ARN or the action will
  2401. // fail; there is no default value. You can specify the source stack's service
  2402. // role ARN, if you prefer, but you must do so explicitly.
  2403. ServiceRoleArn *string `type:"string" required:"true"`
  2404. // The source stack ID.
  2405. SourceStackId *string `type:"string" required:"true"`
  2406. // Whether to use custom cookbooks.
  2407. UseCustomCookbooks *bool `type:"boolean"`
  2408. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  2409. // layers.
  2410. //
  2411. // AWS OpsWorks provides a standard set of built-in security groups, one for
  2412. // each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
  2413. // you can instead provide your own custom security groups. UseOpsworksSecurityGroups
  2414. // has the following settings:
  2415. //
  2416. // True - AWS OpsWorks automatically associates the appropriate built-in security
  2417. // group with each layer (default setting). You can associate additional security
  2418. // groups with a layer after you create it but you cannot delete the built-in
  2419. // security group. False - AWS OpsWorks does not associate built-in security
  2420. // groups with layers. You must create appropriate Amazon Elastic Compute Cloud
  2421. // (Amazon EC2) security groups and associate a security group with each layer
  2422. // that you create. However, you can still manually associate a built-in security
  2423. // group with a layer on creation; custom security groups are required only
  2424. // for those layers that need custom settings. For more information, see Create
  2425. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  2426. UseOpsworksSecurityGroups *bool `type:"boolean"`
  2427. // The ID of the VPC that the cloned stack is to be launched into. It must be
  2428. // in the specified region. All instances are launched into this VPC, and you
  2429. // cannot change the ID later.
  2430. //
  2431. // If your account supports EC2 Classic, the default value is no VPC. If your
  2432. // account does not support EC2 Classic, the default value is the default VPC
  2433. // for the specified region. If the VPC ID corresponds to a default VPC and
  2434. // you have specified either the DefaultAvailabilityZone or the DefaultSubnetId
  2435. // parameter only, AWS OpsWorks infers the value of the other parameter. If
  2436. // you specify neither parameter, AWS OpsWorks sets these parameters to the
  2437. // first valid Availability Zone for the specified region and the corresponding
  2438. // default VPC subnet ID, respectively.
  2439. //
  2440. // If you specify a nondefault VPC ID, note the following:
  2441. //
  2442. // It must belong to a VPC in your account that is in the specified region.
  2443. // You must specify a value for DefaultSubnetId. For more information on how
  2444. // to use AWS OpsWorks with a VPC, see Running a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
  2445. // For more information on default VPC and EC2 Classic, see Supported Platforms
  2446. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
  2447. VpcId *string `type:"string"`
  2448. metadataCloneStackInput `json:"-" xml:"-"`
  2449. }
  2450. type metadataCloneStackInput struct {
  2451. SDKShapeTraits bool `type:"structure"`
  2452. }
  2453. // String returns the string representation
  2454. func (s CloneStackInput) String() string {
  2455. return awsutil.Prettify(s)
  2456. }
  2457. // GoString returns the string representation
  2458. func (s CloneStackInput) GoString() string {
  2459. return s.String()
  2460. }
  2461. // Contains the response to a CloneStack request.
  2462. type CloneStackOutput struct {
  2463. // The cloned stack ID.
  2464. StackId *string `type:"string"`
  2465. metadataCloneStackOutput `json:"-" xml:"-"`
  2466. }
  2467. type metadataCloneStackOutput struct {
  2468. SDKShapeTraits bool `type:"structure"`
  2469. }
  2470. // String returns the string representation
  2471. func (s CloneStackOutput) String() string {
  2472. return awsutil.Prettify(s)
  2473. }
  2474. // GoString returns the string representation
  2475. func (s CloneStackOutput) GoString() string {
  2476. return s.String()
  2477. }
  2478. // Describes a command.
  2479. type Command struct {
  2480. // Date and time when the command was acknowledged.
  2481. AcknowledgedAt *string `type:"string"`
  2482. // The command ID.
  2483. CommandId *string `type:"string"`
  2484. // Date when the command completed.
  2485. CompletedAt *string `type:"string"`
  2486. // Date and time when the command was run.
  2487. CreatedAt *string `type:"string"`
  2488. // The command deployment ID.
  2489. DeploymentId *string `type:"string"`
  2490. // The command exit code.
  2491. ExitCode *int64 `type:"integer"`
  2492. // The ID of the instance where the command was executed.
  2493. InstanceId *string `type:"string"`
  2494. // The URL of the command log.
  2495. LogUrl *string `type:"string"`
  2496. // The command status:
  2497. //
  2498. // failed successful skipped pending
  2499. Status *string `type:"string"`
  2500. // The command type:
  2501. //
  2502. // deploy rollback start stop restart undeploy update_dependencies
  2503. // install_dependencies update_custom_cookbooks execute_recipes
  2504. Type *string `type:"string"`
  2505. metadataCommand `json:"-" xml:"-"`
  2506. }
  2507. type metadataCommand struct {
  2508. SDKShapeTraits bool `type:"structure"`
  2509. }
  2510. // String returns the string representation
  2511. func (s Command) String() string {
  2512. return awsutil.Prettify(s)
  2513. }
  2514. // GoString returns the string representation
  2515. func (s Command) GoString() string {
  2516. return s.String()
  2517. }
  2518. type CreateAppInput struct {
  2519. // A Source object that specifies the app repository.
  2520. AppSource *Source `type:"structure"`
  2521. // One or more user-defined key/value pairs to be added to the stack attributes.
  2522. Attributes map[string]*string `type:"map"`
  2523. // The app's data source.
  2524. DataSources []*DataSource `type:"list"`
  2525. // A description of the app.
  2526. Description *string `type:"string"`
  2527. // The app virtual host settings, with multiple domains separated by commas.
  2528. // For example: 'www.example.com, example.com'
  2529. Domains []*string `type:"list"`
  2530. // Whether to enable SSL for the app.
  2531. EnableSsl *bool `type:"boolean"`
  2532. // An array of EnvironmentVariable objects that specify environment variables
  2533. // to be associated with the app. After you deploy the app, these variables
  2534. // are defined on the associated app server instance. For more information,
  2535. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  2536. //
  2537. // There is no specific limit on the number of environment variables. However,
  2538. // the size of the associated data structure - which includes the variables'
  2539. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  2540. // This limit should accommodate most if not all use cases. Exceeding it will
  2541. // cause an exception with the message, "Environment: is too large (maximum
  2542. // is 10KB)."
  2543. //
  2544. // This parameter is supported only by Chef 11.10 stacks. If you have specified
  2545. // one or more environment variables, you cannot modify the stack's Chef version.
  2546. Environment []*EnvironmentVariable `type:"list"`
  2547. // The app name.
  2548. Name *string `type:"string" required:"true"`
  2549. // The app's short name.
  2550. Shortname *string `type:"string"`
  2551. // An SslConfiguration object with the SSL configuration.
  2552. SslConfiguration *SslConfiguration `type:"structure"`
  2553. // The stack ID.
  2554. StackId *string `type:"string" required:"true"`
  2555. // The app type. Each supported type is associated with a particular layer.
  2556. // For example, PHP applications are associated with a PHP layer. AWS OpsWorks
  2557. // deploys an application to those instances that are members of the corresponding
  2558. // layer. If your app isn't one of the standard types, or you prefer to implement
  2559. // your own Deploy recipes, specify other.
  2560. Type *string `type:"string" required:"true" enum:"AppType"`
  2561. metadataCreateAppInput `json:"-" xml:"-"`
  2562. }
  2563. type metadataCreateAppInput struct {
  2564. SDKShapeTraits bool `type:"structure"`
  2565. }
  2566. // String returns the string representation
  2567. func (s CreateAppInput) String() string {
  2568. return awsutil.Prettify(s)
  2569. }
  2570. // GoString returns the string representation
  2571. func (s CreateAppInput) GoString() string {
  2572. return s.String()
  2573. }
  2574. // Contains the response to a CreateApp request.
  2575. type CreateAppOutput struct {
  2576. // The app ID.
  2577. AppId *string `type:"string"`
  2578. metadataCreateAppOutput `json:"-" xml:"-"`
  2579. }
  2580. type metadataCreateAppOutput struct {
  2581. SDKShapeTraits bool `type:"structure"`
  2582. }
  2583. // String returns the string representation
  2584. func (s CreateAppOutput) String() string {
  2585. return awsutil.Prettify(s)
  2586. }
  2587. // GoString returns the string representation
  2588. func (s CreateAppOutput) GoString() string {
  2589. return s.String()
  2590. }
  2591. type CreateDeploymentInput struct {
  2592. // The app ID. This parameter is required for app deployments, but not for other
  2593. // deployment commands.
  2594. AppId *string `type:"string"`
  2595. // A DeploymentCommand object that specifies the deployment command and any
  2596. // associated arguments.
  2597. Command *DeploymentCommand `type:"structure" required:"true"`
  2598. // A user-defined comment.
  2599. Comment *string `type:"string"`
  2600. // A string that contains user-defined, custom JSON. It is used to override
  2601. // the corresponding default stack configuration JSON values. The string should
  2602. // be in the following format and must escape characters such as '"':
  2603. //
  2604. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  2605. //
  2606. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  2607. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  2608. CustomJson *string `type:"string"`
  2609. // The instance IDs for the deployment targets.
  2610. InstanceIds []*string `type:"list"`
  2611. // The stack ID.
  2612. StackId *string `type:"string" required:"true"`
  2613. metadataCreateDeploymentInput `json:"-" xml:"-"`
  2614. }
  2615. type metadataCreateDeploymentInput struct {
  2616. SDKShapeTraits bool `type:"structure"`
  2617. }
  2618. // String returns the string representation
  2619. func (s CreateDeploymentInput) String() string {
  2620. return awsutil.Prettify(s)
  2621. }
  2622. // GoString returns the string representation
  2623. func (s CreateDeploymentInput) GoString() string {
  2624. return s.String()
  2625. }
  2626. // Contains the response to a CreateDeployment request.
  2627. type CreateDeploymentOutput struct {
  2628. // The deployment ID, which can be used with other requests to identify the
  2629. // deployment.
  2630. DeploymentId *string `type:"string"`
  2631. metadataCreateDeploymentOutput `json:"-" xml:"-"`
  2632. }
  2633. type metadataCreateDeploymentOutput struct {
  2634. SDKShapeTraits bool `type:"structure"`
  2635. }
  2636. // String returns the string representation
  2637. func (s CreateDeploymentOutput) String() string {
  2638. return awsutil.Prettify(s)
  2639. }
  2640. // GoString returns the string representation
  2641. func (s CreateDeploymentOutput) GoString() string {
  2642. return s.String()
  2643. }
  2644. type CreateInstanceInput struct {
  2645. // The default AWS OpsWorks agent version. You have the following options:
  2646. //
  2647. // INHERIT - Use the stack's default agent version setting. version_number
  2648. // - Use the specified agent version. This value overrides the stack's default
  2649. // setting. To update the agent version, edit the instance configuration and
  2650. // specify a new version. AWS OpsWorks then automatically installs that version
  2651. // on the instance. The default setting is INHERIT. To specify an agent version,
  2652. // you must use the complete version number, not the abbreviated number shown
  2653. // on the console. For a list of available agent version numbers, call DescribeAgentVersions.
  2654. AgentVersion *string `type:"string"`
  2655. // A custom AMI ID to be used to create the instance. The AMI should be based
  2656. // on one of the supported operating systems. For more information, see Using
  2657. // Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  2658. //
  2659. // If you specify a custom AMI, you must set Os to Custom.
  2660. AmiId *string `type:"string"`
  2661. // The instance architecture. The default option is x86_64. Instance types do
  2662. // not necessarily support both architectures. For a list of the architectures
  2663. // that are supported by the different instance types, see Instance Families
  2664. // and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  2665. Architecture *string `type:"string" enum:"Architecture"`
  2666. // For load-based or time-based instances, the type. Windows stacks can use
  2667. // only time-based instances.
  2668. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  2669. // The instance Availability Zone. For more information, see Regions and Endpoints
  2670. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  2671. AvailabilityZone *string `type:"string"`
  2672. // An array of BlockDeviceMapping objects that specify the instance's block
  2673. // devices. For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html).
  2674. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  2675. // Whether to create an Amazon EBS-optimized instance.
  2676. EbsOptimized *bool `type:"boolean"`
  2677. // The instance host name.
  2678. Hostname *string `type:"string"`
  2679. // Whether to install operating system and package updates when the instance
  2680. // boots. The default value is true. To control when updates are installed,
  2681. // set this value to false. You must then update your instances manually by
  2682. // using CreateDeployment to run the update_dependencies stack command or by
  2683. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  2684. //
  2685. // We strongly recommend using the default value of true to ensure that your
  2686. // instances have the latest security updates.
  2687. InstallUpdatesOnBoot *bool `type:"boolean"`
  2688. // The instance type, such as t2.micro. For a list of supported instance types,
  2689. // open the stack in the console, choose Instances, and choose + Instance. The
  2690. // Size list contains the currently supported types. For more information, see
  2691. // Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  2692. // The parameter values that you use to specify the various types are in the
  2693. // API Name column of the Available Instance Types table.
  2694. InstanceType *string `type:"string" required:"true"`
  2695. // An array that contains the instance's layer IDs.
  2696. LayerIds []*string `type:"list" required:"true"`
  2697. // The instance's operating system, which must be set to one of the following.
  2698. //
  2699. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  2700. // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04
  2701. // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. For more
  2702. // information on the supported operating systems, see AWS OpsWorks Operating
  2703. // Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  2704. //
  2705. // The default option is the current Amazon Linux version. If you set this
  2706. // parameter to Custom, you must use the CreateInstance action's AmiId parameter
  2707. // to specify the custom AMI that you want to use. For more information on the
  2708. // supported operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For
  2709. // more information on how to use custom AMIs with AWS OpsWorks, see Using Custom
  2710. // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  2711. Os *string `type:"string"`
  2712. // The instance root device type. For more information, see Storage for the
  2713. // Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  2714. RootDeviceType *string `type:"string" enum:"RootDeviceType"`
  2715. // The instance's Amazon EC2 key-pair name.
  2716. SshKeyName *string `type:"string"`
  2717. // The stack ID.
  2718. StackId *string `type:"string" required:"true"`
  2719. // The ID of the instance's subnet. If the stack is running in a VPC, you can
  2720. // use this parameter to override the stack's default subnet ID value and direct
  2721. // AWS OpsWorks to launch the instance in a different subnet.
  2722. SubnetId *string `type:"string"`
  2723. // The instance's virtualization type, paravirtual or hvm.
  2724. VirtualizationType *string `type:"string"`
  2725. metadataCreateInstanceInput `json:"-" xml:"-"`
  2726. }
  2727. type metadataCreateInstanceInput struct {
  2728. SDKShapeTraits bool `type:"structure"`
  2729. }
  2730. // String returns the string representation
  2731. func (s CreateInstanceInput) String() string {
  2732. return awsutil.Prettify(s)
  2733. }
  2734. // GoString returns the string representation
  2735. func (s CreateInstanceInput) GoString() string {
  2736. return s.String()
  2737. }
  2738. // Contains the response to a CreateInstance request.
  2739. type CreateInstanceOutput struct {
  2740. // The instance ID.
  2741. InstanceId *string `type:"string"`
  2742. metadataCreateInstanceOutput `json:"-" xml:"-"`
  2743. }
  2744. type metadataCreateInstanceOutput struct {
  2745. SDKShapeTraits bool `type:"structure"`
  2746. }
  2747. // String returns the string representation
  2748. func (s CreateInstanceOutput) String() string {
  2749. return awsutil.Prettify(s)
  2750. }
  2751. // GoString returns the string representation
  2752. func (s CreateInstanceOutput) GoString() string {
  2753. return s.String()
  2754. }
  2755. type CreateLayerInput struct {
  2756. // One or more user-defined key-value pairs to be added to the stack attributes.
  2757. //
  2758. // To create a cluster layer, set the EcsClusterArn attribute to the cluster's
  2759. // ARN.
  2760. Attributes map[string]*string `type:"map"`
  2761. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  2762. // to the layer's instances. For more information, see How to Edit a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  2763. AutoAssignElasticIps *bool `type:"boolean"`
  2764. // For stacks that are running in a VPC, whether to automatically assign a public
  2765. // IP address to the layer's instances. For more information, see How to Edit
  2766. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  2767. AutoAssignPublicIps *bool `type:"boolean"`
  2768. // The ARN of an IAM profile to be used for the layer's EC2 instances. For more
  2769. // information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  2770. CustomInstanceProfileArn *string `type:"string"`
  2771. // A JSON-formatted string containing custom stack configuration and deployment
  2772. // attributes to be installed on the layer's instances. For more information,
  2773. // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
  2774. CustomJson *string `type:"string"`
  2775. // A LayerCustomRecipes object that specifies the layer custom recipes.
  2776. CustomRecipes *Recipes `type:"structure"`
  2777. // An array containing the layer custom security group IDs.
  2778. CustomSecurityGroupIds []*string `type:"list"`
  2779. // Whether to disable auto healing for the layer.
  2780. EnableAutoHealing *bool `type:"boolean"`
  2781. // Whether to install operating system and package updates when the instance
  2782. // boots. The default value is true. To control when updates are installed,
  2783. // set this value to false. You must then update your instances manually by
  2784. // using CreateDeployment to run the update_dependencies stack command or by
  2785. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  2786. //
  2787. // To ensure that your instances have the latest security updates, we strongly
  2788. // recommend using the default value of true.
  2789. InstallUpdatesOnBoot *bool `type:"boolean"`
  2790. // A LifeCycleEventConfiguration object that you can use to configure the Shutdown
  2791. // event to specify an execution timeout and enable or disable Elastic Load
  2792. // Balancer connection draining.
  2793. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  2794. // The layer name, which is used by the console.
  2795. Name *string `type:"string" required:"true"`
  2796. // An array of Package objects that describes the layer packages.
  2797. Packages []*string `type:"list"`
  2798. // For custom layers only, use this parameter to specify the layer's short name,
  2799. // which is used internally by AWS OpsWorks and by Chef recipes. The short name
  2800. // is also used as the name for the directory where your app files are installed.
  2801. // It can have a maximum of 200 characters, which are limited to the alphanumeric
  2802. // characters, '-', '_', and '.'.
  2803. //
  2804. // The built-in layers' short names are defined by AWS OpsWorks. For more information,
  2805. // see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html).
  2806. Shortname *string `type:"string" required:"true"`
  2807. // The layer stack ID.
  2808. StackId *string `type:"string" required:"true"`
  2809. // The layer type. A stack cannot have more than one built-in layer of the same
  2810. // type. It can have any number of custom layers.
  2811. Type *string `type:"string" required:"true" enum:"LayerType"`
  2812. // Whether to use Amazon EBS-optimized instances.
  2813. UseEbsOptimizedInstances *bool `type:"boolean"`
  2814. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  2815. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  2816. metadataCreateLayerInput `json:"-" xml:"-"`
  2817. }
  2818. type metadataCreateLayerInput struct {
  2819. SDKShapeTraits bool `type:"structure"`
  2820. }
  2821. // String returns the string representation
  2822. func (s CreateLayerInput) String() string {
  2823. return awsutil.Prettify(s)
  2824. }
  2825. // GoString returns the string representation
  2826. func (s CreateLayerInput) GoString() string {
  2827. return s.String()
  2828. }
  2829. // Contains the response to a CreateLayer request.
  2830. type CreateLayerOutput struct {
  2831. // The layer ID.
  2832. LayerId *string `type:"string"`
  2833. metadataCreateLayerOutput `json:"-" xml:"-"`
  2834. }
  2835. type metadataCreateLayerOutput struct {
  2836. SDKShapeTraits bool `type:"structure"`
  2837. }
  2838. // String returns the string representation
  2839. func (s CreateLayerOutput) String() string {
  2840. return awsutil.Prettify(s)
  2841. }
  2842. // GoString returns the string representation
  2843. func (s CreateLayerOutput) GoString() string {
  2844. return s.String()
  2845. }
  2846. type CreateStackInput struct {
  2847. // The default AWS OpsWorks agent version. You have the following options:
  2848. //
  2849. // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  2850. // installs new agent versions on the stack's instances as soon as they are
  2851. // available. Fixed version - Set this parameter to your preferred agent version.
  2852. // To update the agent version, you must edit the stack configuration and specify
  2853. // a new version. AWS OpsWorks then automatically installs that version on the
  2854. // stack's instances. The default setting is LATEST. To specify an agent version,
  2855. // you must use the complete version number, not the abbreviated number shown
  2856. // on the console. For a list of available agent version numbers, call DescribeAgentVersions.
  2857. //
  2858. // You can also specify an agent version when you create or update an instance,
  2859. // which overrides the stack's default setting.
  2860. AgentVersion *string `type:"string"`
  2861. // One or more user-defined key-value pairs to be added to the stack attributes.
  2862. Attributes map[string]*string `type:"map"`
  2863. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  2864. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  2865. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  2866. ChefConfiguration *ChefConfiguration `type:"structure"`
  2867. // The configuration manager. When you clone a stack we recommend that you use
  2868. // the configuration manager to specify the Chef version: 0.9, 11.4, or 11.10.
  2869. // The default value is currently 11.4.
  2870. ConfigurationManager *StackConfigurationManager `type:"structure"`
  2871. // Contains the information required to retrieve an app or cookbook from a repository.
  2872. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  2873. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  2874. CustomCookbooksSource *Source `type:"structure"`
  2875. // A string that contains user-defined, custom JSON. It can be used to override
  2876. // the corresponding default stack configuration attribute values or to pass
  2877. // data to recipes. The string should be in the following escape characters
  2878. // such as '"':
  2879. //
  2880. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  2881. //
  2882. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  2883. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  2884. CustomJson *string `type:"string"`
  2885. // The stack's default Availability Zone, which must be in the specified region.
  2886. // For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  2887. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  2888. // same zone. For more information, see the VpcId parameter description.
  2889. DefaultAvailabilityZone *string `type:"string"`
  2890. // The Amazon Resource Name (ARN) of an IAM profile that is the default profile
  2891. // for all of the stack's EC2 instances. For more information about IAM ARNs,
  2892. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  2893. DefaultInstanceProfileArn *string `type:"string" required:"true"`
  2894. // The stack's default operating system, which is installed on every instance
  2895. // unless you specify a different operating system when you create the instance.
  2896. // You can specify one of the following.
  2897. //
  2898. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  2899. // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04
  2900. // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify
  2901. // the custom AMI you want to use when you create instances. For more information,
  2902. // see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  2903. // The default option is the current Amazon Linux version. For more information
  2904. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  2905. DefaultOs *string `type:"string"`
  2906. // The default root device type. This value is the default for all instances
  2907. // in the stack, but you can override it when you create an instance. The default
  2908. // option is instance-store. For more information, see Storage for the Root
  2909. // Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  2910. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  2911. // A default Amazon EC2 key pair name. The default value is none. If you specify
  2912. // a key pair name, AWS OpsWorks installs the public key on the instance and
  2913. // you can use the private key with an SSH client to log in to the instance.
  2914. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  2915. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  2916. // You can override this setting by specifying a different key pair, or no key
  2917. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  2918. DefaultSshKeyName *string `type:"string"`
  2919. // The stack's default VPC subnet ID. This parameter is required if you specify
  2920. // a value for the VpcId parameter. All instances are launched into this subnet
  2921. // unless you specify otherwise when you create the instance. If you also specify
  2922. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  2923. // information on default values and when this parameter is required, see the
  2924. // VpcId parameter description.
  2925. DefaultSubnetId *string `type:"string"`
  2926. // The stack's host name theme, with spaces replaced by underscores. The theme
  2927. // is used to generate host names for the stack's instances. By default, HostnameTheme
  2928. // is set to Layer_Dependent, which creates host names by appending integers
  2929. // to the layer's short name. The other themes are:
  2930. //
  2931. // Baked_Goods Clouds Europe_Cities Fruits Greek_Deities Legendary_creatures_from_Japan
  2932. // Planets_and_Moons Roman_Deities Scottish_Islands US_Cities Wild_Cats
  2933. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  2934. // a host name based on the current theme.
  2935. HostnameTheme *string `type:"string"`
  2936. // The stack name.
  2937. Name *string `type:"string" required:"true"`
  2938. // The stack's AWS region, such as "us-east-1". For more information about Amazon
  2939. // regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  2940. Region *string `type:"string" required:"true"`
  2941. // The stack's AWS Identity and Access Management (IAM) role, which allows AWS
  2942. // OpsWorks to work with AWS resources on your behalf. You must set this parameter
  2943. // to the Amazon Resource Name (ARN) for an existing IAM role. For more information
  2944. // about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  2945. ServiceRoleArn *string `type:"string" required:"true"`
  2946. // Whether the stack uses custom cookbooks.
  2947. UseCustomCookbooks *bool `type:"boolean"`
  2948. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  2949. // layers.
  2950. //
  2951. // AWS OpsWorks provides a standard set of built-in security groups, one for
  2952. // each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
  2953. // you can instead provide your own custom security groups. UseOpsworksSecurityGroups
  2954. // has the following settings:
  2955. //
  2956. // True - AWS OpsWorks automatically associates the appropriate built-in security
  2957. // group with each layer (default setting). You can associate additional security
  2958. // groups with a layer after you create it, but you cannot delete the built-in
  2959. // security group. False - AWS OpsWorks does not associate built-in security
  2960. // groups with layers. You must create appropriate EC2 security groups and associate
  2961. // a security group with each layer that you create. However, you can still
  2962. // manually associate a built-in security group with a layer on creation; custom
  2963. // security groups are required only for those layers that need custom settings.
  2964. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  2965. UseOpsworksSecurityGroups *bool `type:"boolean"`
  2966. // The ID of the VPC that the stack is to be launched into. The VPC must be
  2967. // in the stack's region. All instances are launched into this VPC. You cannot
  2968. // change the ID later.
  2969. //
  2970. // If your account supports EC2-Classic, the default value is no VPC. If your
  2971. // account does not support EC2-Classic, the default value is the default VPC
  2972. // for the specified region. If the VPC ID corresponds to a default VPC and
  2973. // you have specified either the DefaultAvailabilityZone or the DefaultSubnetId
  2974. // parameter only, AWS OpsWorks infers the value of the other parameter. If
  2975. // you specify neither parameter, AWS OpsWorks sets these parameters to the
  2976. // first valid Availability Zone for the specified region and the corresponding
  2977. // default VPC subnet ID, respectively.
  2978. //
  2979. // If you specify a nondefault VPC ID, note the following:
  2980. //
  2981. // It must belong to a VPC in your account that is in the specified region.
  2982. // You must specify a value for DefaultSubnetId. For more information on how
  2983. // to use AWS OpsWorks with a VPC, see Running a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
  2984. // For more information on default VPC and EC2-Classic, see Supported Platforms
  2985. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
  2986. VpcId *string `type:"string"`
  2987. metadataCreateStackInput `json:"-" xml:"-"`
  2988. }
  2989. type metadataCreateStackInput struct {
  2990. SDKShapeTraits bool `type:"structure"`
  2991. }
  2992. // String returns the string representation
  2993. func (s CreateStackInput) String() string {
  2994. return awsutil.Prettify(s)
  2995. }
  2996. // GoString returns the string representation
  2997. func (s CreateStackInput) GoString() string {
  2998. return s.String()
  2999. }
  3000. // Contains the response to a CreateStack request.
  3001. type CreateStackOutput struct {
  3002. // The stack ID, which is an opaque string that you use to identify the stack
  3003. // when performing actions such as DescribeStacks.
  3004. StackId *string `type:"string"`
  3005. metadataCreateStackOutput `json:"-" xml:"-"`
  3006. }
  3007. type metadataCreateStackOutput struct {
  3008. SDKShapeTraits bool `type:"structure"`
  3009. }
  3010. // String returns the string representation
  3011. func (s CreateStackOutput) String() string {
  3012. return awsutil.Prettify(s)
  3013. }
  3014. // GoString returns the string representation
  3015. func (s CreateStackOutput) GoString() string {
  3016. return s.String()
  3017. }
  3018. type CreateUserProfileInput struct {
  3019. // Whether users can specify their own SSH public key through the My Settings
  3020. // page. For more information, see Setting an IAM User's Public SSH Key (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  3021. AllowSelfManagement *bool `type:"boolean"`
  3022. // The user's IAM ARN.
  3023. IamUserArn *string `type:"string" required:"true"`
  3024. // The user's public SSH key.
  3025. SshPublicKey *string `type:"string"`
  3026. // The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
  3027. // '-', and '_'. If the specified name includes other punctuation marks, AWS
  3028. // OpsWorks removes them. For example, my.name will be changed to myname. If
  3029. // you do not specify an SSH user name, AWS OpsWorks generates one from the
  3030. // IAM user name.
  3031. SshUsername *string `type:"string"`
  3032. metadataCreateUserProfileInput `json:"-" xml:"-"`
  3033. }
  3034. type metadataCreateUserProfileInput struct {
  3035. SDKShapeTraits bool `type:"structure"`
  3036. }
  3037. // String returns the string representation
  3038. func (s CreateUserProfileInput) String() string {
  3039. return awsutil.Prettify(s)
  3040. }
  3041. // GoString returns the string representation
  3042. func (s CreateUserProfileInput) GoString() string {
  3043. return s.String()
  3044. }
  3045. // Contains the response to a CreateUserProfile request.
  3046. type CreateUserProfileOutput struct {
  3047. // The user's IAM ARN.
  3048. IamUserArn *string `type:"string"`
  3049. metadataCreateUserProfileOutput `json:"-" xml:"-"`
  3050. }
  3051. type metadataCreateUserProfileOutput struct {
  3052. SDKShapeTraits bool `type:"structure"`
  3053. }
  3054. // String returns the string representation
  3055. func (s CreateUserProfileOutput) String() string {
  3056. return awsutil.Prettify(s)
  3057. }
  3058. // GoString returns the string representation
  3059. func (s CreateUserProfileOutput) GoString() string {
  3060. return s.String()
  3061. }
  3062. // Describes an app's data source.
  3063. type DataSource struct {
  3064. // The data source's ARN.
  3065. Arn *string `type:"string"`
  3066. // The database name.
  3067. DatabaseName *string `type:"string"`
  3068. // The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance,
  3069. // or RdsDbInstance.
  3070. Type *string `type:"string"`
  3071. metadataDataSource `json:"-" xml:"-"`
  3072. }
  3073. type metadataDataSource struct {
  3074. SDKShapeTraits bool `type:"structure"`
  3075. }
  3076. // String returns the string representation
  3077. func (s DataSource) String() string {
  3078. return awsutil.Prettify(s)
  3079. }
  3080. // GoString returns the string representation
  3081. func (s DataSource) GoString() string {
  3082. return s.String()
  3083. }
  3084. type DeleteAppInput struct {
  3085. // The app ID.
  3086. AppId *string `type:"string" required:"true"`
  3087. metadataDeleteAppInput `json:"-" xml:"-"`
  3088. }
  3089. type metadataDeleteAppInput struct {
  3090. SDKShapeTraits bool `type:"structure"`
  3091. }
  3092. // String returns the string representation
  3093. func (s DeleteAppInput) String() string {
  3094. return awsutil.Prettify(s)
  3095. }
  3096. // GoString returns the string representation
  3097. func (s DeleteAppInput) GoString() string {
  3098. return s.String()
  3099. }
  3100. type DeleteAppOutput struct {
  3101. metadataDeleteAppOutput `json:"-" xml:"-"`
  3102. }
  3103. type metadataDeleteAppOutput struct {
  3104. SDKShapeTraits bool `type:"structure"`
  3105. }
  3106. // String returns the string representation
  3107. func (s DeleteAppOutput) String() string {
  3108. return awsutil.Prettify(s)
  3109. }
  3110. // GoString returns the string representation
  3111. func (s DeleteAppOutput) GoString() string {
  3112. return s.String()
  3113. }
  3114. type DeleteInstanceInput struct {
  3115. // Whether to delete the instance Elastic IP address.
  3116. DeleteElasticIp *bool `type:"boolean"`
  3117. // Whether to delete the instance's Amazon EBS volumes.
  3118. DeleteVolumes *bool `type:"boolean"`
  3119. // The instance ID.
  3120. InstanceId *string `type:"string" required:"true"`
  3121. metadataDeleteInstanceInput `json:"-" xml:"-"`
  3122. }
  3123. type metadataDeleteInstanceInput struct {
  3124. SDKShapeTraits bool `type:"structure"`
  3125. }
  3126. // String returns the string representation
  3127. func (s DeleteInstanceInput) String() string {
  3128. return awsutil.Prettify(s)
  3129. }
  3130. // GoString returns the string representation
  3131. func (s DeleteInstanceInput) GoString() string {
  3132. return s.String()
  3133. }
  3134. type DeleteInstanceOutput struct {
  3135. metadataDeleteInstanceOutput `json:"-" xml:"-"`
  3136. }
  3137. type metadataDeleteInstanceOutput struct {
  3138. SDKShapeTraits bool `type:"structure"`
  3139. }
  3140. // String returns the string representation
  3141. func (s DeleteInstanceOutput) String() string {
  3142. return awsutil.Prettify(s)
  3143. }
  3144. // GoString returns the string representation
  3145. func (s DeleteInstanceOutput) GoString() string {
  3146. return s.String()
  3147. }
  3148. type DeleteLayerInput struct {
  3149. // The layer ID.
  3150. LayerId *string `type:"string" required:"true"`
  3151. metadataDeleteLayerInput `json:"-" xml:"-"`
  3152. }
  3153. type metadataDeleteLayerInput struct {
  3154. SDKShapeTraits bool `type:"structure"`
  3155. }
  3156. // String returns the string representation
  3157. func (s DeleteLayerInput) String() string {
  3158. return awsutil.Prettify(s)
  3159. }
  3160. // GoString returns the string representation
  3161. func (s DeleteLayerInput) GoString() string {
  3162. return s.String()
  3163. }
  3164. type DeleteLayerOutput struct {
  3165. metadataDeleteLayerOutput `json:"-" xml:"-"`
  3166. }
  3167. type metadataDeleteLayerOutput struct {
  3168. SDKShapeTraits bool `type:"structure"`
  3169. }
  3170. // String returns the string representation
  3171. func (s DeleteLayerOutput) String() string {
  3172. return awsutil.Prettify(s)
  3173. }
  3174. // GoString returns the string representation
  3175. func (s DeleteLayerOutput) GoString() string {
  3176. return s.String()
  3177. }
  3178. type DeleteStackInput struct {
  3179. // The stack ID.
  3180. StackId *string `type:"string" required:"true"`
  3181. metadataDeleteStackInput `json:"-" xml:"-"`
  3182. }
  3183. type metadataDeleteStackInput struct {
  3184. SDKShapeTraits bool `type:"structure"`
  3185. }
  3186. // String returns the string representation
  3187. func (s DeleteStackInput) String() string {
  3188. return awsutil.Prettify(s)
  3189. }
  3190. // GoString returns the string representation
  3191. func (s DeleteStackInput) GoString() string {
  3192. return s.String()
  3193. }
  3194. type DeleteStackOutput struct {
  3195. metadataDeleteStackOutput `json:"-" xml:"-"`
  3196. }
  3197. type metadataDeleteStackOutput struct {
  3198. SDKShapeTraits bool `type:"structure"`
  3199. }
  3200. // String returns the string representation
  3201. func (s DeleteStackOutput) String() string {
  3202. return awsutil.Prettify(s)
  3203. }
  3204. // GoString returns the string representation
  3205. func (s DeleteStackOutput) GoString() string {
  3206. return s.String()
  3207. }
  3208. type DeleteUserProfileInput struct {
  3209. // The user's IAM ARN.
  3210. IamUserArn *string `type:"string" required:"true"`
  3211. metadataDeleteUserProfileInput `json:"-" xml:"-"`
  3212. }
  3213. type metadataDeleteUserProfileInput struct {
  3214. SDKShapeTraits bool `type:"structure"`
  3215. }
  3216. // String returns the string representation
  3217. func (s DeleteUserProfileInput) String() string {
  3218. return awsutil.Prettify(s)
  3219. }
  3220. // GoString returns the string representation
  3221. func (s DeleteUserProfileInput) GoString() string {
  3222. return s.String()
  3223. }
  3224. type DeleteUserProfileOutput struct {
  3225. metadataDeleteUserProfileOutput `json:"-" xml:"-"`
  3226. }
  3227. type metadataDeleteUserProfileOutput struct {
  3228. SDKShapeTraits bool `type:"structure"`
  3229. }
  3230. // String returns the string representation
  3231. func (s DeleteUserProfileOutput) String() string {
  3232. return awsutil.Prettify(s)
  3233. }
  3234. // GoString returns the string representation
  3235. func (s DeleteUserProfileOutput) GoString() string {
  3236. return s.String()
  3237. }
  3238. // Describes a deployment of a stack or app.
  3239. type Deployment struct {
  3240. // The app ID.
  3241. AppId *string `type:"string"`
  3242. // Used to specify a stack or deployment command.
  3243. Command *DeploymentCommand `type:"structure"`
  3244. // A user-defined comment.
  3245. Comment *string `type:"string"`
  3246. // Date when the deployment completed.
  3247. CompletedAt *string `type:"string"`
  3248. // Date when the deployment was created.
  3249. CreatedAt *string `type:"string"`
  3250. // A string that contains user-defined custom JSON. It can be used to override
  3251. // the corresponding default stack configuration attribute values for stack
  3252. // or to pass data to recipes. The string should be in the following format
  3253. // and must escape characters such as '"':
  3254. //
  3255. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  3256. //
  3257. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  3258. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  3259. CustomJson *string `type:"string"`
  3260. // The deployment ID.
  3261. DeploymentId *string `type:"string"`
  3262. // The deployment duration.
  3263. Duration *int64 `type:"integer"`
  3264. // The user's IAM ARN.
  3265. IamUserArn *string `type:"string"`
  3266. // The IDs of the target instances.
  3267. InstanceIds []*string `type:"list"`
  3268. // The stack ID.
  3269. StackId *string `type:"string"`
  3270. // The deployment status:
  3271. //
  3272. // running successful failed
  3273. Status *string `type:"string"`
  3274. metadataDeployment `json:"-" xml:"-"`
  3275. }
  3276. type metadataDeployment struct {
  3277. SDKShapeTraits bool `type:"structure"`
  3278. }
  3279. // String returns the string representation
  3280. func (s Deployment) String() string {
  3281. return awsutil.Prettify(s)
  3282. }
  3283. // GoString returns the string representation
  3284. func (s Deployment) GoString() string {
  3285. return s.String()
  3286. }
  3287. // Used to specify a stack or deployment command.
  3288. type DeploymentCommand struct {
  3289. // The arguments of those commands that take arguments. It should be set to
  3290. // a JSON object with the following format:
  3291. //
  3292. // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2",
  3293. // ...], ...}
  3294. //
  3295. // The update_dependencies command takes two arguments:
  3296. //
  3297. // upgrade_os_to - Specifies the desired Amazon Linux version for instances
  3298. // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also
  3299. // set the allow_reboot argument to true. allow_reboot - Specifies whether
  3300. // to allow AWS OpsWorks to reboot the instances if necessary, after installing
  3301. // the updates. This argument can be set to either true or false. The default
  3302. // value is false. For example, to upgrade an instance to Amazon Linux 2014.09,
  3303. // set Args to the following.
  3304. //
  3305. // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] }
  3306. Args map[string][]*string `type:"map"`
  3307. // Specifies the operation. You can specify only one command.
  3308. //
  3309. // For stacks, the following commands are available:
  3310. //
  3311. // execute_recipes: Execute one or more recipes. To specify the recipes,
  3312. // set an Args parameter named recipes to the list of recipes to be executed.
  3313. // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}.
  3314. // install_dependencies: Install the stack's dependencies. update_custom_cookbooks:
  3315. // Update the stack's custom cookbooks. update_dependencies: Update the stack's
  3316. // dependencies. The update_dependencies and install_dependencies commands
  3317. // are supported only for Linux instances. You can run the commands successfully
  3318. // on Windows instances, but they do nothing. For apps, the following commands
  3319. // are available:
  3320. //
  3321. // deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter
  3322. // named migrate. Set Args to {"migrate":["true"]} to migrate the database.
  3323. // The default setting is {"migrate":["false"]}. rollback Roll the app back
  3324. // to the previous version. When you update an app, AWS OpsWorks stores the
  3325. // previous version, up to a maximum of five versions. You can use this command
  3326. // to roll an app back as many as four versions. start: Start the app's web
  3327. // or application server. stop: Stop the app's web or application server.
  3328. // restart: Restart the app's web or application server. undeploy: Undeploy
  3329. // the app.
  3330. Name *string `type:"string" required:"true" enum:"DeploymentCommandName"`
  3331. metadataDeploymentCommand `json:"-" xml:"-"`
  3332. }
  3333. type metadataDeploymentCommand struct {
  3334. SDKShapeTraits bool `type:"structure"`
  3335. }
  3336. // String returns the string representation
  3337. func (s DeploymentCommand) String() string {
  3338. return awsutil.Prettify(s)
  3339. }
  3340. // GoString returns the string representation
  3341. func (s DeploymentCommand) GoString() string {
  3342. return s.String()
  3343. }
  3344. type DeregisterEcsClusterInput struct {
  3345. // The cluster's ARN.
  3346. EcsClusterArn *string `type:"string" required:"true"`
  3347. metadataDeregisterEcsClusterInput `json:"-" xml:"-"`
  3348. }
  3349. type metadataDeregisterEcsClusterInput struct {
  3350. SDKShapeTraits bool `type:"structure"`
  3351. }
  3352. // String returns the string representation
  3353. func (s DeregisterEcsClusterInput) String() string {
  3354. return awsutil.Prettify(s)
  3355. }
  3356. // GoString returns the string representation
  3357. func (s DeregisterEcsClusterInput) GoString() string {
  3358. return s.String()
  3359. }
  3360. type DeregisterEcsClusterOutput struct {
  3361. metadataDeregisterEcsClusterOutput `json:"-" xml:"-"`
  3362. }
  3363. type metadataDeregisterEcsClusterOutput struct {
  3364. SDKShapeTraits bool `type:"structure"`
  3365. }
  3366. // String returns the string representation
  3367. func (s DeregisterEcsClusterOutput) String() string {
  3368. return awsutil.Prettify(s)
  3369. }
  3370. // GoString returns the string representation
  3371. func (s DeregisterEcsClusterOutput) GoString() string {
  3372. return s.String()
  3373. }
  3374. type DeregisterElasticIpInput struct {
  3375. // The Elastic IP address.
  3376. ElasticIp *string `type:"string" required:"true"`
  3377. metadataDeregisterElasticIpInput `json:"-" xml:"-"`
  3378. }
  3379. type metadataDeregisterElasticIpInput struct {
  3380. SDKShapeTraits bool `type:"structure"`
  3381. }
  3382. // String returns the string representation
  3383. func (s DeregisterElasticIpInput) String() string {
  3384. return awsutil.Prettify(s)
  3385. }
  3386. // GoString returns the string representation
  3387. func (s DeregisterElasticIpInput) GoString() string {
  3388. return s.String()
  3389. }
  3390. type DeregisterElasticIpOutput struct {
  3391. metadataDeregisterElasticIpOutput `json:"-" xml:"-"`
  3392. }
  3393. type metadataDeregisterElasticIpOutput struct {
  3394. SDKShapeTraits bool `type:"structure"`
  3395. }
  3396. // String returns the string representation
  3397. func (s DeregisterElasticIpOutput) String() string {
  3398. return awsutil.Prettify(s)
  3399. }
  3400. // GoString returns the string representation
  3401. func (s DeregisterElasticIpOutput) GoString() string {
  3402. return s.String()
  3403. }
  3404. type DeregisterInstanceInput struct {
  3405. // The instance ID.
  3406. InstanceId *string `type:"string" required:"true"`
  3407. metadataDeregisterInstanceInput `json:"-" xml:"-"`
  3408. }
  3409. type metadataDeregisterInstanceInput struct {
  3410. SDKShapeTraits bool `type:"structure"`
  3411. }
  3412. // String returns the string representation
  3413. func (s DeregisterInstanceInput) String() string {
  3414. return awsutil.Prettify(s)
  3415. }
  3416. // GoString returns the string representation
  3417. func (s DeregisterInstanceInput) GoString() string {
  3418. return s.String()
  3419. }
  3420. type DeregisterInstanceOutput struct {
  3421. metadataDeregisterInstanceOutput `json:"-" xml:"-"`
  3422. }
  3423. type metadataDeregisterInstanceOutput struct {
  3424. SDKShapeTraits bool `type:"structure"`
  3425. }
  3426. // String returns the string representation
  3427. func (s DeregisterInstanceOutput) String() string {
  3428. return awsutil.Prettify(s)
  3429. }
  3430. // GoString returns the string representation
  3431. func (s DeregisterInstanceOutput) GoString() string {
  3432. return s.String()
  3433. }
  3434. type DeregisterRdsDbInstanceInput struct {
  3435. // The Amazon RDS instance's ARN.
  3436. RdsDbInstanceArn *string `type:"string" required:"true"`
  3437. metadataDeregisterRdsDbInstanceInput `json:"-" xml:"-"`
  3438. }
  3439. type metadataDeregisterRdsDbInstanceInput struct {
  3440. SDKShapeTraits bool `type:"structure"`
  3441. }
  3442. // String returns the string representation
  3443. func (s DeregisterRdsDbInstanceInput) String() string {
  3444. return awsutil.Prettify(s)
  3445. }
  3446. // GoString returns the string representation
  3447. func (s DeregisterRdsDbInstanceInput) GoString() string {
  3448. return s.String()
  3449. }
  3450. type DeregisterRdsDbInstanceOutput struct {
  3451. metadataDeregisterRdsDbInstanceOutput `json:"-" xml:"-"`
  3452. }
  3453. type metadataDeregisterRdsDbInstanceOutput struct {
  3454. SDKShapeTraits bool `type:"structure"`
  3455. }
  3456. // String returns the string representation
  3457. func (s DeregisterRdsDbInstanceOutput) String() string {
  3458. return awsutil.Prettify(s)
  3459. }
  3460. // GoString returns the string representation
  3461. func (s DeregisterRdsDbInstanceOutput) GoString() string {
  3462. return s.String()
  3463. }
  3464. type DeregisterVolumeInput struct {
  3465. // The AWS OpsWorks volume ID, which is the GUID that AWS OpsWorks assigned
  3466. // to the instance when you registered the volume with the stack, not the Amazon
  3467. // EC2 volume ID.
  3468. VolumeId *string `type:"string" required:"true"`
  3469. metadataDeregisterVolumeInput `json:"-" xml:"-"`
  3470. }
  3471. type metadataDeregisterVolumeInput struct {
  3472. SDKShapeTraits bool `type:"structure"`
  3473. }
  3474. // String returns the string representation
  3475. func (s DeregisterVolumeInput) String() string {
  3476. return awsutil.Prettify(s)
  3477. }
  3478. // GoString returns the string representation
  3479. func (s DeregisterVolumeInput) GoString() string {
  3480. return s.String()
  3481. }
  3482. type DeregisterVolumeOutput struct {
  3483. metadataDeregisterVolumeOutput `json:"-" xml:"-"`
  3484. }
  3485. type metadataDeregisterVolumeOutput struct {
  3486. SDKShapeTraits bool `type:"structure"`
  3487. }
  3488. // String returns the string representation
  3489. func (s DeregisterVolumeOutput) String() string {
  3490. return awsutil.Prettify(s)
  3491. }
  3492. // GoString returns the string representation
  3493. func (s DeregisterVolumeOutput) GoString() string {
  3494. return s.String()
  3495. }
  3496. type DescribeAgentVersionsInput struct {
  3497. // The configuration manager.
  3498. ConfigurationManager *StackConfigurationManager `type:"structure"`
  3499. // The stack ID.
  3500. StackId *string `type:"string"`
  3501. metadataDescribeAgentVersionsInput `json:"-" xml:"-"`
  3502. }
  3503. type metadataDescribeAgentVersionsInput struct {
  3504. SDKShapeTraits bool `type:"structure"`
  3505. }
  3506. // String returns the string representation
  3507. func (s DescribeAgentVersionsInput) String() string {
  3508. return awsutil.Prettify(s)
  3509. }
  3510. // GoString returns the string representation
  3511. func (s DescribeAgentVersionsInput) GoString() string {
  3512. return s.String()
  3513. }
  3514. // Contains the response to a DescribeAgentVersions request.
  3515. type DescribeAgentVersionsOutput struct {
  3516. // The agent versions for the specified stack or configuration manager. Note
  3517. // that this value is the complete version number, not the abbreviated number
  3518. // used by the console.
  3519. AgentVersions []*AgentVersion `type:"list"`
  3520. metadataDescribeAgentVersionsOutput `json:"-" xml:"-"`
  3521. }
  3522. type metadataDescribeAgentVersionsOutput struct {
  3523. SDKShapeTraits bool `type:"structure"`
  3524. }
  3525. // String returns the string representation
  3526. func (s DescribeAgentVersionsOutput) String() string {
  3527. return awsutil.Prettify(s)
  3528. }
  3529. // GoString returns the string representation
  3530. func (s DescribeAgentVersionsOutput) GoString() string {
  3531. return s.String()
  3532. }
  3533. type DescribeAppsInput struct {
  3534. // An array of app IDs for the apps to be described. If you use this parameter,
  3535. // DescribeApps returns a description of the specified apps. Otherwise, it returns
  3536. // a description of every app.
  3537. AppIds []*string `type:"list"`
  3538. // The app stack ID. If you use this parameter, DescribeApps returns a description
  3539. // of the apps in the specified stack.
  3540. StackId *string `type:"string"`
  3541. metadataDescribeAppsInput `json:"-" xml:"-"`
  3542. }
  3543. type metadataDescribeAppsInput struct {
  3544. SDKShapeTraits bool `type:"structure"`
  3545. }
  3546. // String returns the string representation
  3547. func (s DescribeAppsInput) String() string {
  3548. return awsutil.Prettify(s)
  3549. }
  3550. // GoString returns the string representation
  3551. func (s DescribeAppsInput) GoString() string {
  3552. return s.String()
  3553. }
  3554. // Contains the response to a DescribeApps request.
  3555. type DescribeAppsOutput struct {
  3556. // An array of App objects that describe the specified apps.
  3557. Apps []*App `type:"list"`
  3558. metadataDescribeAppsOutput `json:"-" xml:"-"`
  3559. }
  3560. type metadataDescribeAppsOutput struct {
  3561. SDKShapeTraits bool `type:"structure"`
  3562. }
  3563. // String returns the string representation
  3564. func (s DescribeAppsOutput) String() string {
  3565. return awsutil.Prettify(s)
  3566. }
  3567. // GoString returns the string representation
  3568. func (s DescribeAppsOutput) GoString() string {
  3569. return s.String()
  3570. }
  3571. type DescribeCommandsInput struct {
  3572. // An array of command IDs. If you include this parameter, DescribeCommands
  3573. // returns a description of the specified commands. Otherwise, it returns a
  3574. // description of every command.
  3575. CommandIds []*string `type:"list"`
  3576. // The deployment ID. If you include this parameter, DescribeCommands returns
  3577. // a description of the commands associated with the specified deployment.
  3578. DeploymentId *string `type:"string"`
  3579. // The instance ID. If you include this parameter, DescribeCommands returns
  3580. // a description of the commands associated with the specified instance.
  3581. InstanceId *string `type:"string"`
  3582. metadataDescribeCommandsInput `json:"-" xml:"-"`
  3583. }
  3584. type metadataDescribeCommandsInput struct {
  3585. SDKShapeTraits bool `type:"structure"`
  3586. }
  3587. // String returns the string representation
  3588. func (s DescribeCommandsInput) String() string {
  3589. return awsutil.Prettify(s)
  3590. }
  3591. // GoString returns the string representation
  3592. func (s DescribeCommandsInput) GoString() string {
  3593. return s.String()
  3594. }
  3595. // Contains the response to a DescribeCommands request.
  3596. type DescribeCommandsOutput struct {
  3597. // An array of Command objects that describe each of the specified commands.
  3598. Commands []*Command `type:"list"`
  3599. metadataDescribeCommandsOutput `json:"-" xml:"-"`
  3600. }
  3601. type metadataDescribeCommandsOutput struct {
  3602. SDKShapeTraits bool `type:"structure"`
  3603. }
  3604. // String returns the string representation
  3605. func (s DescribeCommandsOutput) String() string {
  3606. return awsutil.Prettify(s)
  3607. }
  3608. // GoString returns the string representation
  3609. func (s DescribeCommandsOutput) GoString() string {
  3610. return s.String()
  3611. }
  3612. type DescribeDeploymentsInput struct {
  3613. // The app ID. If you include this parameter, DescribeDeployments returns a
  3614. // description of the commands associated with the specified app.
  3615. AppId *string `type:"string"`
  3616. // An array of deployment IDs to be described. If you include this parameter,
  3617. // DescribeDeployments returns a description of the specified deployments. Otherwise,
  3618. // it returns a description of every deployment.
  3619. DeploymentIds []*string `type:"list"`
  3620. // The stack ID. If you include this parameter, DescribeDeployments returns
  3621. // a description of the commands associated with the specified stack.
  3622. StackId *string `type:"string"`
  3623. metadataDescribeDeploymentsInput `json:"-" xml:"-"`
  3624. }
  3625. type metadataDescribeDeploymentsInput struct {
  3626. SDKShapeTraits bool `type:"structure"`
  3627. }
  3628. // String returns the string representation
  3629. func (s DescribeDeploymentsInput) String() string {
  3630. return awsutil.Prettify(s)
  3631. }
  3632. // GoString returns the string representation
  3633. func (s DescribeDeploymentsInput) GoString() string {
  3634. return s.String()
  3635. }
  3636. // Contains the response to a DescribeDeployments request.
  3637. type DescribeDeploymentsOutput struct {
  3638. // An array of Deployment objects that describe the deployments.
  3639. Deployments []*Deployment `type:"list"`
  3640. metadataDescribeDeploymentsOutput `json:"-" xml:"-"`
  3641. }
  3642. type metadataDescribeDeploymentsOutput struct {
  3643. SDKShapeTraits bool `type:"structure"`
  3644. }
  3645. // String returns the string representation
  3646. func (s DescribeDeploymentsOutput) String() string {
  3647. return awsutil.Prettify(s)
  3648. }
  3649. // GoString returns the string representation
  3650. func (s DescribeDeploymentsOutput) GoString() string {
  3651. return s.String()
  3652. }
  3653. type DescribeEcsClustersInput struct {
  3654. // A list of ARNs, one for each cluster to be described.
  3655. EcsClusterArns []*string `type:"list"`
  3656. // To receive a paginated response, use this parameter to specify the maximum
  3657. // number of results to be returned with a single call. If the number of available
  3658. // results exceeds this maximum, the response includes a NextToken value that
  3659. // you can assign to the NextToken request parameter to get the next set of
  3660. // results.
  3661. MaxResults *int64 `type:"integer"`
  3662. // If the previous paginated request did not return all of the remaining results,
  3663. // the response object'sNextToken parameter value is set to a token. To retrieve
  3664. // the next set of results, call DescribeEcsClusters again and assign that token
  3665. // to the request object's NextToken parameter. If there are no remaining results,
  3666. // the previous response object's NextToken parameter is set to null.
  3667. NextToken *string `type:"string"`
  3668. // A stack ID. DescribeEcsClusters returns a description of the cluster that
  3669. // is registered with the stack.
  3670. StackId *string `type:"string"`
  3671. metadataDescribeEcsClustersInput `json:"-" xml:"-"`
  3672. }
  3673. type metadataDescribeEcsClustersInput struct {
  3674. SDKShapeTraits bool `type:"structure"`
  3675. }
  3676. // String returns the string representation
  3677. func (s DescribeEcsClustersInput) String() string {
  3678. return awsutil.Prettify(s)
  3679. }
  3680. // GoString returns the string representation
  3681. func (s DescribeEcsClustersInput) GoString() string {
  3682. return s.String()
  3683. }
  3684. // Contains the response to a DescribeEcsClusters request.
  3685. type DescribeEcsClustersOutput struct {
  3686. // A list of EcsCluster objects containing the cluster descriptions.
  3687. EcsClusters []*EcsCluster `type:"list"`
  3688. // If a paginated request does not return all of the remaining results, this
  3689. // parameter is set to a token that you can assign to the request object's NextToken
  3690. // parameter to retrieve the next set of results. If the previous paginated
  3691. // request returned all of the remaining results, this parameter is set to null.
  3692. NextToken *string `type:"string"`
  3693. metadataDescribeEcsClustersOutput `json:"-" xml:"-"`
  3694. }
  3695. type metadataDescribeEcsClustersOutput struct {
  3696. SDKShapeTraits bool `type:"structure"`
  3697. }
  3698. // String returns the string representation
  3699. func (s DescribeEcsClustersOutput) String() string {
  3700. return awsutil.Prettify(s)
  3701. }
  3702. // GoString returns the string representation
  3703. func (s DescribeEcsClustersOutput) GoString() string {
  3704. return s.String()
  3705. }
  3706. type DescribeElasticIpsInput struct {
  3707. // The instance ID. If you include this parameter, DescribeElasticIps returns
  3708. // a description of the Elastic IP addresses associated with the specified instance.
  3709. InstanceId *string `type:"string"`
  3710. // An array of Elastic IP addresses to be described. If you include this parameter,
  3711. // DescribeElasticIps returns a description of the specified Elastic IP addresses.
  3712. // Otherwise, it returns a description of every Elastic IP address.
  3713. Ips []*string `type:"list"`
  3714. // A stack ID. If you include this parameter, DescribeElasticIps returns a description
  3715. // of the Elastic IP addresses that are registered with the specified stack.
  3716. StackId *string `type:"string"`
  3717. metadataDescribeElasticIpsInput `json:"-" xml:"-"`
  3718. }
  3719. type metadataDescribeElasticIpsInput struct {
  3720. SDKShapeTraits bool `type:"structure"`
  3721. }
  3722. // String returns the string representation
  3723. func (s DescribeElasticIpsInput) String() string {
  3724. return awsutil.Prettify(s)
  3725. }
  3726. // GoString returns the string representation
  3727. func (s DescribeElasticIpsInput) GoString() string {
  3728. return s.String()
  3729. }
  3730. // Contains the response to a DescribeElasticIps request.
  3731. type DescribeElasticIpsOutput struct {
  3732. // An ElasticIps object that describes the specified Elastic IP addresses.
  3733. ElasticIps []*ElasticIp `type:"list"`
  3734. metadataDescribeElasticIpsOutput `json:"-" xml:"-"`
  3735. }
  3736. type metadataDescribeElasticIpsOutput struct {
  3737. SDKShapeTraits bool `type:"structure"`
  3738. }
  3739. // String returns the string representation
  3740. func (s DescribeElasticIpsOutput) String() string {
  3741. return awsutil.Prettify(s)
  3742. }
  3743. // GoString returns the string representation
  3744. func (s DescribeElasticIpsOutput) GoString() string {
  3745. return s.String()
  3746. }
  3747. type DescribeElasticLoadBalancersInput struct {
  3748. // A list of layer IDs. The action describes the Elastic Load Balancing instances
  3749. // for the specified layers.
  3750. LayerIds []*string `type:"list"`
  3751. // A stack ID. The action describes the stack's Elastic Load Balancing instances.
  3752. StackId *string `type:"string"`
  3753. metadataDescribeElasticLoadBalancersInput `json:"-" xml:"-"`
  3754. }
  3755. type metadataDescribeElasticLoadBalancersInput struct {
  3756. SDKShapeTraits bool `type:"structure"`
  3757. }
  3758. // String returns the string representation
  3759. func (s DescribeElasticLoadBalancersInput) String() string {
  3760. return awsutil.Prettify(s)
  3761. }
  3762. // GoString returns the string representation
  3763. func (s DescribeElasticLoadBalancersInput) GoString() string {
  3764. return s.String()
  3765. }
  3766. // Contains the response to a DescribeElasticLoadBalancers request.
  3767. type DescribeElasticLoadBalancersOutput struct {
  3768. // A list of ElasticLoadBalancer objects that describe the specified Elastic
  3769. // Load Balancing instances.
  3770. ElasticLoadBalancers []*ElasticLoadBalancer `type:"list"`
  3771. metadataDescribeElasticLoadBalancersOutput `json:"-" xml:"-"`
  3772. }
  3773. type metadataDescribeElasticLoadBalancersOutput struct {
  3774. SDKShapeTraits bool `type:"structure"`
  3775. }
  3776. // String returns the string representation
  3777. func (s DescribeElasticLoadBalancersOutput) String() string {
  3778. return awsutil.Prettify(s)
  3779. }
  3780. // GoString returns the string representation
  3781. func (s DescribeElasticLoadBalancersOutput) GoString() string {
  3782. return s.String()
  3783. }
  3784. type DescribeInstancesInput struct {
  3785. // An array of instance IDs to be described. If you use this parameter, DescribeInstances
  3786. // returns a description of the specified instances. Otherwise, it returns a
  3787. // description of every instance.
  3788. InstanceIds []*string `type:"list"`
  3789. // A layer ID. If you use this parameter, DescribeInstances returns descriptions
  3790. // of the instances associated with the specified layer.
  3791. LayerId *string `type:"string"`
  3792. // A stack ID. If you use this parameter, DescribeInstances returns descriptions
  3793. // of the instances associated with the specified stack.
  3794. StackId *string `type:"string"`
  3795. metadataDescribeInstancesInput `json:"-" xml:"-"`
  3796. }
  3797. type metadataDescribeInstancesInput struct {
  3798. SDKShapeTraits bool `type:"structure"`
  3799. }
  3800. // String returns the string representation
  3801. func (s DescribeInstancesInput) String() string {
  3802. return awsutil.Prettify(s)
  3803. }
  3804. // GoString returns the string representation
  3805. func (s DescribeInstancesInput) GoString() string {
  3806. return s.String()
  3807. }
  3808. // Contains the response to a DescribeInstances request.
  3809. type DescribeInstancesOutput struct {
  3810. // An array of Instance objects that describe the instances.
  3811. Instances []*Instance `type:"list"`
  3812. metadataDescribeInstancesOutput `json:"-" xml:"-"`
  3813. }
  3814. type metadataDescribeInstancesOutput struct {
  3815. SDKShapeTraits bool `type:"structure"`
  3816. }
  3817. // String returns the string representation
  3818. func (s DescribeInstancesOutput) String() string {
  3819. return awsutil.Prettify(s)
  3820. }
  3821. // GoString returns the string representation
  3822. func (s DescribeInstancesOutput) GoString() string {
  3823. return s.String()
  3824. }
  3825. type DescribeLayersInput struct {
  3826. // An array of layer IDs that specify the layers to be described. If you omit
  3827. // this parameter, DescribeLayers returns a description of every layer in the
  3828. // specified stack.
  3829. LayerIds []*string `type:"list"`
  3830. // The stack ID.
  3831. StackId *string `type:"string"`
  3832. metadataDescribeLayersInput `json:"-" xml:"-"`
  3833. }
  3834. type metadataDescribeLayersInput struct {
  3835. SDKShapeTraits bool `type:"structure"`
  3836. }
  3837. // String returns the string representation
  3838. func (s DescribeLayersInput) String() string {
  3839. return awsutil.Prettify(s)
  3840. }
  3841. // GoString returns the string representation
  3842. func (s DescribeLayersInput) GoString() string {
  3843. return s.String()
  3844. }
  3845. // Contains the response to a DescribeLayers request.
  3846. type DescribeLayersOutput struct {
  3847. // An array of Layer objects that describe the layers.
  3848. Layers []*Layer `type:"list"`
  3849. metadataDescribeLayersOutput `json:"-" xml:"-"`
  3850. }
  3851. type metadataDescribeLayersOutput struct {
  3852. SDKShapeTraits bool `type:"structure"`
  3853. }
  3854. // String returns the string representation
  3855. func (s DescribeLayersOutput) String() string {
  3856. return awsutil.Prettify(s)
  3857. }
  3858. // GoString returns the string representation
  3859. func (s DescribeLayersOutput) GoString() string {
  3860. return s.String()
  3861. }
  3862. type DescribeLoadBasedAutoScalingInput struct {
  3863. // An array of layer IDs.
  3864. LayerIds []*string `type:"list" required:"true"`
  3865. metadataDescribeLoadBasedAutoScalingInput `json:"-" xml:"-"`
  3866. }
  3867. type metadataDescribeLoadBasedAutoScalingInput struct {
  3868. SDKShapeTraits bool `type:"structure"`
  3869. }
  3870. // String returns the string representation
  3871. func (s DescribeLoadBasedAutoScalingInput) String() string {
  3872. return awsutil.Prettify(s)
  3873. }
  3874. // GoString returns the string representation
  3875. func (s DescribeLoadBasedAutoScalingInput) GoString() string {
  3876. return s.String()
  3877. }
  3878. // Contains the response to a DescribeLoadBasedAutoScaling request.
  3879. type DescribeLoadBasedAutoScalingOutput struct {
  3880. // An array of LoadBasedAutoScalingConfiguration objects that describe each
  3881. // layer's configuration.
  3882. LoadBasedAutoScalingConfigurations []*LoadBasedAutoScalingConfiguration `type:"list"`
  3883. metadataDescribeLoadBasedAutoScalingOutput `json:"-" xml:"-"`
  3884. }
  3885. type metadataDescribeLoadBasedAutoScalingOutput struct {
  3886. SDKShapeTraits bool `type:"structure"`
  3887. }
  3888. // String returns the string representation
  3889. func (s DescribeLoadBasedAutoScalingOutput) String() string {
  3890. return awsutil.Prettify(s)
  3891. }
  3892. // GoString returns the string representation
  3893. func (s DescribeLoadBasedAutoScalingOutput) GoString() string {
  3894. return s.String()
  3895. }
  3896. type DescribeMyUserProfileInput struct {
  3897. metadataDescribeMyUserProfileInput `json:"-" xml:"-"`
  3898. }
  3899. type metadataDescribeMyUserProfileInput struct {
  3900. SDKShapeTraits bool `type:"structure"`
  3901. }
  3902. // String returns the string representation
  3903. func (s DescribeMyUserProfileInput) String() string {
  3904. return awsutil.Prettify(s)
  3905. }
  3906. // GoString returns the string representation
  3907. func (s DescribeMyUserProfileInput) GoString() string {
  3908. return s.String()
  3909. }
  3910. // Contains the response to a DescribeMyUserProfile request.
  3911. type DescribeMyUserProfileOutput struct {
  3912. // A UserProfile object that describes the user's SSH information.
  3913. UserProfile *SelfUserProfile `type:"structure"`
  3914. metadataDescribeMyUserProfileOutput `json:"-" xml:"-"`
  3915. }
  3916. type metadataDescribeMyUserProfileOutput struct {
  3917. SDKShapeTraits bool `type:"structure"`
  3918. }
  3919. // String returns the string representation
  3920. func (s DescribeMyUserProfileOutput) String() string {
  3921. return awsutil.Prettify(s)
  3922. }
  3923. // GoString returns the string representation
  3924. func (s DescribeMyUserProfileOutput) GoString() string {
  3925. return s.String()
  3926. }
  3927. type DescribePermissionsInput struct {
  3928. // The user's IAM ARN. For more information about IAM ARNs, see Using Identifiers
  3929. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  3930. IamUserArn *string `type:"string"`
  3931. // The stack ID.
  3932. StackId *string `type:"string"`
  3933. metadataDescribePermissionsInput `json:"-" xml:"-"`
  3934. }
  3935. type metadataDescribePermissionsInput struct {
  3936. SDKShapeTraits bool `type:"structure"`
  3937. }
  3938. // String returns the string representation
  3939. func (s DescribePermissionsInput) String() string {
  3940. return awsutil.Prettify(s)
  3941. }
  3942. // GoString returns the string representation
  3943. func (s DescribePermissionsInput) GoString() string {
  3944. return s.String()
  3945. }
  3946. // Contains the response to a DescribePermissions request.
  3947. type DescribePermissionsOutput struct {
  3948. // An array of Permission objects that describe the stack permissions.
  3949. //
  3950. // If the request object contains only a stack ID, the array contains a Permission
  3951. // object with permissions for each of the stack IAM ARNs. If the request object
  3952. // contains only an IAM ARN, the array contains a Permission object with permissions
  3953. // for each of the user's stack IDs. If the request contains a stack ID and
  3954. // an IAM ARN, the array contains a single Permission object with permissions
  3955. // for the specified stack and IAM ARN.
  3956. Permissions []*Permission `type:"list"`
  3957. metadataDescribePermissionsOutput `json:"-" xml:"-"`
  3958. }
  3959. type metadataDescribePermissionsOutput struct {
  3960. SDKShapeTraits bool `type:"structure"`
  3961. }
  3962. // String returns the string representation
  3963. func (s DescribePermissionsOutput) String() string {
  3964. return awsutil.Prettify(s)
  3965. }
  3966. // GoString returns the string representation
  3967. func (s DescribePermissionsOutput) GoString() string {
  3968. return s.String()
  3969. }
  3970. type DescribeRaidArraysInput struct {
  3971. // The instance ID. If you use this parameter, DescribeRaidArrays returns descriptions
  3972. // of the RAID arrays associated with the specified instance.
  3973. InstanceId *string `type:"string"`
  3974. // An array of RAID array IDs. If you use this parameter, DescribeRaidArrays
  3975. // returns descriptions of the specified arrays. Otherwise, it returns a description
  3976. // of every array.
  3977. RaidArrayIds []*string `type:"list"`
  3978. // The stack ID.
  3979. StackId *string `type:"string"`
  3980. metadataDescribeRaidArraysInput `json:"-" xml:"-"`
  3981. }
  3982. type metadataDescribeRaidArraysInput struct {
  3983. SDKShapeTraits bool `type:"structure"`
  3984. }
  3985. // String returns the string representation
  3986. func (s DescribeRaidArraysInput) String() string {
  3987. return awsutil.Prettify(s)
  3988. }
  3989. // GoString returns the string representation
  3990. func (s DescribeRaidArraysInput) GoString() string {
  3991. return s.String()
  3992. }
  3993. // Contains the response to a DescribeRaidArrays request.
  3994. type DescribeRaidArraysOutput struct {
  3995. // A RaidArrays object that describes the specified RAID arrays.
  3996. RaidArrays []*RaidArray `type:"list"`
  3997. metadataDescribeRaidArraysOutput `json:"-" xml:"-"`
  3998. }
  3999. type metadataDescribeRaidArraysOutput struct {
  4000. SDKShapeTraits bool `type:"structure"`
  4001. }
  4002. // String returns the string representation
  4003. func (s DescribeRaidArraysOutput) String() string {
  4004. return awsutil.Prettify(s)
  4005. }
  4006. // GoString returns the string representation
  4007. func (s DescribeRaidArraysOutput) GoString() string {
  4008. return s.String()
  4009. }
  4010. type DescribeRdsDbInstancesInput struct {
  4011. // An array containing the ARNs of the instances to be described.
  4012. RdsDbInstanceArns []*string `type:"list"`
  4013. // The stack ID that the instances are registered with. The operation returns
  4014. // descriptions of all registered Amazon RDS instances.
  4015. StackId *string `type:"string" required:"true"`
  4016. metadataDescribeRdsDbInstancesInput `json:"-" xml:"-"`
  4017. }
  4018. type metadataDescribeRdsDbInstancesInput struct {
  4019. SDKShapeTraits bool `type:"structure"`
  4020. }
  4021. // String returns the string representation
  4022. func (s DescribeRdsDbInstancesInput) String() string {
  4023. return awsutil.Prettify(s)
  4024. }
  4025. // GoString returns the string representation
  4026. func (s DescribeRdsDbInstancesInput) GoString() string {
  4027. return s.String()
  4028. }
  4029. // Contains the response to a DescribeRdsDbInstances request.
  4030. type DescribeRdsDbInstancesOutput struct {
  4031. // An a array of RdsDbInstance objects that describe the instances.
  4032. RdsDbInstances []*RdsDbInstance `type:"list"`
  4033. metadataDescribeRdsDbInstancesOutput `json:"-" xml:"-"`
  4034. }
  4035. type metadataDescribeRdsDbInstancesOutput struct {
  4036. SDKShapeTraits bool `type:"structure"`
  4037. }
  4038. // String returns the string representation
  4039. func (s DescribeRdsDbInstancesOutput) String() string {
  4040. return awsutil.Prettify(s)
  4041. }
  4042. // GoString returns the string representation
  4043. func (s DescribeRdsDbInstancesOutput) GoString() string {
  4044. return s.String()
  4045. }
  4046. type DescribeServiceErrorsInput struct {
  4047. // The instance ID. If you use this parameter, DescribeServiceErrors returns
  4048. // descriptions of the errors associated with the specified instance.
  4049. InstanceId *string `type:"string"`
  4050. // An array of service error IDs. If you use this parameter, DescribeServiceErrors
  4051. // returns descriptions of the specified errors. Otherwise, it returns a description
  4052. // of every error.
  4053. ServiceErrorIds []*string `type:"list"`
  4054. // The stack ID. If you use this parameter, DescribeServiceErrors returns descriptions
  4055. // of the errors associated with the specified stack.
  4056. StackId *string `type:"string"`
  4057. metadataDescribeServiceErrorsInput `json:"-" xml:"-"`
  4058. }
  4059. type metadataDescribeServiceErrorsInput struct {
  4060. SDKShapeTraits bool `type:"structure"`
  4061. }
  4062. // String returns the string representation
  4063. func (s DescribeServiceErrorsInput) String() string {
  4064. return awsutil.Prettify(s)
  4065. }
  4066. // GoString returns the string representation
  4067. func (s DescribeServiceErrorsInput) GoString() string {
  4068. return s.String()
  4069. }
  4070. // Contains the response to a DescribeServiceErrors request.
  4071. type DescribeServiceErrorsOutput struct {
  4072. // An array of ServiceError objects that describe the specified service errors.
  4073. ServiceErrors []*ServiceError `type:"list"`
  4074. metadataDescribeServiceErrorsOutput `json:"-" xml:"-"`
  4075. }
  4076. type metadataDescribeServiceErrorsOutput struct {
  4077. SDKShapeTraits bool `type:"structure"`
  4078. }
  4079. // String returns the string representation
  4080. func (s DescribeServiceErrorsOutput) String() string {
  4081. return awsutil.Prettify(s)
  4082. }
  4083. // GoString returns the string representation
  4084. func (s DescribeServiceErrorsOutput) GoString() string {
  4085. return s.String()
  4086. }
  4087. type DescribeStackProvisioningParametersInput struct {
  4088. // The stack ID
  4089. StackId *string `type:"string" required:"true"`
  4090. metadataDescribeStackProvisioningParametersInput `json:"-" xml:"-"`
  4091. }
  4092. type metadataDescribeStackProvisioningParametersInput struct {
  4093. SDKShapeTraits bool `type:"structure"`
  4094. }
  4095. // String returns the string representation
  4096. func (s DescribeStackProvisioningParametersInput) String() string {
  4097. return awsutil.Prettify(s)
  4098. }
  4099. // GoString returns the string representation
  4100. func (s DescribeStackProvisioningParametersInput) GoString() string {
  4101. return s.String()
  4102. }
  4103. // Contains the response to a DescribeStackProvisioningParameters request.
  4104. type DescribeStackProvisioningParametersOutput struct {
  4105. // The AWS OpsWorks agent installer's URL.
  4106. AgentInstallerUrl *string `type:"string"`
  4107. // An embedded object that contains the provisioning parameters.
  4108. Parameters map[string]*string `type:"map"`
  4109. metadataDescribeStackProvisioningParametersOutput `json:"-" xml:"-"`
  4110. }
  4111. type metadataDescribeStackProvisioningParametersOutput struct {
  4112. SDKShapeTraits bool `type:"structure"`
  4113. }
  4114. // String returns the string representation
  4115. func (s DescribeStackProvisioningParametersOutput) String() string {
  4116. return awsutil.Prettify(s)
  4117. }
  4118. // GoString returns the string representation
  4119. func (s DescribeStackProvisioningParametersOutput) GoString() string {
  4120. return s.String()
  4121. }
  4122. type DescribeStackSummaryInput struct {
  4123. // The stack ID.
  4124. StackId *string `type:"string" required:"true"`
  4125. metadataDescribeStackSummaryInput `json:"-" xml:"-"`
  4126. }
  4127. type metadataDescribeStackSummaryInput struct {
  4128. SDKShapeTraits bool `type:"structure"`
  4129. }
  4130. // String returns the string representation
  4131. func (s DescribeStackSummaryInput) String() string {
  4132. return awsutil.Prettify(s)
  4133. }
  4134. // GoString returns the string representation
  4135. func (s DescribeStackSummaryInput) GoString() string {
  4136. return s.String()
  4137. }
  4138. // Contains the response to a DescribeStackSummary request.
  4139. type DescribeStackSummaryOutput struct {
  4140. // A StackSummary object that contains the results.
  4141. StackSummary *StackSummary `type:"structure"`
  4142. metadataDescribeStackSummaryOutput `json:"-" xml:"-"`
  4143. }
  4144. type metadataDescribeStackSummaryOutput struct {
  4145. SDKShapeTraits bool `type:"structure"`
  4146. }
  4147. // String returns the string representation
  4148. func (s DescribeStackSummaryOutput) String() string {
  4149. return awsutil.Prettify(s)
  4150. }
  4151. // GoString returns the string representation
  4152. func (s DescribeStackSummaryOutput) GoString() string {
  4153. return s.String()
  4154. }
  4155. type DescribeStacksInput struct {
  4156. // An array of stack IDs that specify the stacks to be described. If you omit
  4157. // this parameter, DescribeStacks returns a description of every stack.
  4158. StackIds []*string `type:"list"`
  4159. metadataDescribeStacksInput `json:"-" xml:"-"`
  4160. }
  4161. type metadataDescribeStacksInput struct {
  4162. SDKShapeTraits bool `type:"structure"`
  4163. }
  4164. // String returns the string representation
  4165. func (s DescribeStacksInput) String() string {
  4166. return awsutil.Prettify(s)
  4167. }
  4168. // GoString returns the string representation
  4169. func (s DescribeStacksInput) GoString() string {
  4170. return s.String()
  4171. }
  4172. // Contains the response to a DescribeStacks request.
  4173. type DescribeStacksOutput struct {
  4174. // An array of Stack objects that describe the stacks.
  4175. Stacks []*Stack `type:"list"`
  4176. metadataDescribeStacksOutput `json:"-" xml:"-"`
  4177. }
  4178. type metadataDescribeStacksOutput struct {
  4179. SDKShapeTraits bool `type:"structure"`
  4180. }
  4181. // String returns the string representation
  4182. func (s DescribeStacksOutput) String() string {
  4183. return awsutil.Prettify(s)
  4184. }
  4185. // GoString returns the string representation
  4186. func (s DescribeStacksOutput) GoString() string {
  4187. return s.String()
  4188. }
  4189. type DescribeTimeBasedAutoScalingInput struct {
  4190. // An array of instance IDs.
  4191. InstanceIds []*string `type:"list" required:"true"`
  4192. metadataDescribeTimeBasedAutoScalingInput `json:"-" xml:"-"`
  4193. }
  4194. type metadataDescribeTimeBasedAutoScalingInput struct {
  4195. SDKShapeTraits bool `type:"structure"`
  4196. }
  4197. // String returns the string representation
  4198. func (s DescribeTimeBasedAutoScalingInput) String() string {
  4199. return awsutil.Prettify(s)
  4200. }
  4201. // GoString returns the string representation
  4202. func (s DescribeTimeBasedAutoScalingInput) GoString() string {
  4203. return s.String()
  4204. }
  4205. // Contains the response to a DescribeTimeBasedAutoScaling request.
  4206. type DescribeTimeBasedAutoScalingOutput struct {
  4207. // An array of TimeBasedAutoScalingConfiguration objects that describe the configuration
  4208. // for the specified instances.
  4209. TimeBasedAutoScalingConfigurations []*TimeBasedAutoScalingConfiguration `type:"list"`
  4210. metadataDescribeTimeBasedAutoScalingOutput `json:"-" xml:"-"`
  4211. }
  4212. type metadataDescribeTimeBasedAutoScalingOutput struct {
  4213. SDKShapeTraits bool `type:"structure"`
  4214. }
  4215. // String returns the string representation
  4216. func (s DescribeTimeBasedAutoScalingOutput) String() string {
  4217. return awsutil.Prettify(s)
  4218. }
  4219. // GoString returns the string representation
  4220. func (s DescribeTimeBasedAutoScalingOutput) GoString() string {
  4221. return s.String()
  4222. }
  4223. type DescribeUserProfilesInput struct {
  4224. // An array of IAM user ARNs that identify the users to be described.
  4225. IamUserArns []*string `type:"list"`
  4226. metadataDescribeUserProfilesInput `json:"-" xml:"-"`
  4227. }
  4228. type metadataDescribeUserProfilesInput struct {
  4229. SDKShapeTraits bool `type:"structure"`
  4230. }
  4231. // String returns the string representation
  4232. func (s DescribeUserProfilesInput) String() string {
  4233. return awsutil.Prettify(s)
  4234. }
  4235. // GoString returns the string representation
  4236. func (s DescribeUserProfilesInput) GoString() string {
  4237. return s.String()
  4238. }
  4239. // Contains the response to a DescribeUserProfiles request.
  4240. type DescribeUserProfilesOutput struct {
  4241. // A Users object that describes the specified users.
  4242. UserProfiles []*UserProfile `type:"list"`
  4243. metadataDescribeUserProfilesOutput `json:"-" xml:"-"`
  4244. }
  4245. type metadataDescribeUserProfilesOutput struct {
  4246. SDKShapeTraits bool `type:"structure"`
  4247. }
  4248. // String returns the string representation
  4249. func (s DescribeUserProfilesOutput) String() string {
  4250. return awsutil.Prettify(s)
  4251. }
  4252. // GoString returns the string representation
  4253. func (s DescribeUserProfilesOutput) GoString() string {
  4254. return s.String()
  4255. }
  4256. type DescribeVolumesInput struct {
  4257. // The instance ID. If you use this parameter, DescribeVolumes returns descriptions
  4258. // of the volumes associated with the specified instance.
  4259. InstanceId *string `type:"string"`
  4260. // The RAID array ID. If you use this parameter, DescribeVolumes returns descriptions
  4261. // of the volumes associated with the specified RAID array.
  4262. RaidArrayId *string `type:"string"`
  4263. // A stack ID. The action describes the stack's registered Amazon EBS volumes.
  4264. StackId *string `type:"string"`
  4265. // Am array of volume IDs. If you use this parameter, DescribeVolumes returns
  4266. // descriptions of the specified volumes. Otherwise, it returns a description
  4267. // of every volume.
  4268. VolumeIds []*string `type:"list"`
  4269. metadataDescribeVolumesInput `json:"-" xml:"-"`
  4270. }
  4271. type metadataDescribeVolumesInput struct {
  4272. SDKShapeTraits bool `type:"structure"`
  4273. }
  4274. // String returns the string representation
  4275. func (s DescribeVolumesInput) String() string {
  4276. return awsutil.Prettify(s)
  4277. }
  4278. // GoString returns the string representation
  4279. func (s DescribeVolumesInput) GoString() string {
  4280. return s.String()
  4281. }
  4282. // Contains the response to a DescribeVolumes request.
  4283. type DescribeVolumesOutput struct {
  4284. // An array of volume IDs.
  4285. Volumes []*Volume `type:"list"`
  4286. metadataDescribeVolumesOutput `json:"-" xml:"-"`
  4287. }
  4288. type metadataDescribeVolumesOutput struct {
  4289. SDKShapeTraits bool `type:"structure"`
  4290. }
  4291. // String returns the string representation
  4292. func (s DescribeVolumesOutput) String() string {
  4293. return awsutil.Prettify(s)
  4294. }
  4295. // GoString returns the string representation
  4296. func (s DescribeVolumesOutput) GoString() string {
  4297. return s.String()
  4298. }
  4299. type DetachElasticLoadBalancerInput struct {
  4300. // The Elastic Load Balancing instance's name.
  4301. ElasticLoadBalancerName *string `type:"string" required:"true"`
  4302. // The ID of the layer that the Elastic Load Balancing instance is attached
  4303. // to.
  4304. LayerId *string `type:"string" required:"true"`
  4305. metadataDetachElasticLoadBalancerInput `json:"-" xml:"-"`
  4306. }
  4307. type metadataDetachElasticLoadBalancerInput struct {
  4308. SDKShapeTraits bool `type:"structure"`
  4309. }
  4310. // String returns the string representation
  4311. func (s DetachElasticLoadBalancerInput) String() string {
  4312. return awsutil.Prettify(s)
  4313. }
  4314. // GoString returns the string representation
  4315. func (s DetachElasticLoadBalancerInput) GoString() string {
  4316. return s.String()
  4317. }
  4318. type DetachElasticLoadBalancerOutput struct {
  4319. metadataDetachElasticLoadBalancerOutput `json:"-" xml:"-"`
  4320. }
  4321. type metadataDetachElasticLoadBalancerOutput struct {
  4322. SDKShapeTraits bool `type:"structure"`
  4323. }
  4324. // String returns the string representation
  4325. func (s DetachElasticLoadBalancerOutput) String() string {
  4326. return awsutil.Prettify(s)
  4327. }
  4328. // GoString returns the string representation
  4329. func (s DetachElasticLoadBalancerOutput) GoString() string {
  4330. return s.String()
  4331. }
  4332. type DisassociateElasticIpInput struct {
  4333. // The Elastic IP address.
  4334. ElasticIp *string `type:"string" required:"true"`
  4335. metadataDisassociateElasticIpInput `json:"-" xml:"-"`
  4336. }
  4337. type metadataDisassociateElasticIpInput struct {
  4338. SDKShapeTraits bool `type:"structure"`
  4339. }
  4340. // String returns the string representation
  4341. func (s DisassociateElasticIpInput) String() string {
  4342. return awsutil.Prettify(s)
  4343. }
  4344. // GoString returns the string representation
  4345. func (s DisassociateElasticIpInput) GoString() string {
  4346. return s.String()
  4347. }
  4348. type DisassociateElasticIpOutput struct {
  4349. metadataDisassociateElasticIpOutput `json:"-" xml:"-"`
  4350. }
  4351. type metadataDisassociateElasticIpOutput struct {
  4352. SDKShapeTraits bool `type:"structure"`
  4353. }
  4354. // String returns the string representation
  4355. func (s DisassociateElasticIpOutput) String() string {
  4356. return awsutil.Prettify(s)
  4357. }
  4358. // GoString returns the string representation
  4359. func (s DisassociateElasticIpOutput) GoString() string {
  4360. return s.String()
  4361. }
  4362. // Describes an Amazon EBS volume. This data type maps directly to the Amazon
  4363. // EC2 EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html)
  4364. // data type.
  4365. type EbsBlockDevice struct {
  4366. // Whether the volume is deleted on instance termination.
  4367. DeleteOnTermination *bool `type:"boolean"`
  4368. // The number of I/O operations per second (IOPS) that the volume supports.
  4369. // For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
  4370. Iops *int64 `type:"integer"`
  4371. // The snapshot ID.
  4372. SnapshotId *string `type:"string"`
  4373. // The volume size, in GiB. For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
  4374. VolumeSize *int64 `type:"integer"`
  4375. // The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned
  4376. // IOPS (SSD) volumes, and standard for Magnetic volumes.
  4377. VolumeType *string `type:"string" enum:"VolumeType"`
  4378. metadataEbsBlockDevice `json:"-" xml:"-"`
  4379. }
  4380. type metadataEbsBlockDevice struct {
  4381. SDKShapeTraits bool `type:"structure"`
  4382. }
  4383. // String returns the string representation
  4384. func (s EbsBlockDevice) String() string {
  4385. return awsutil.Prettify(s)
  4386. }
  4387. // GoString returns the string representation
  4388. func (s EbsBlockDevice) GoString() string {
  4389. return s.String()
  4390. }
  4391. // Describes a registered Amazon ECS cluster.
  4392. type EcsCluster struct {
  4393. // The cluster's ARN.
  4394. EcsClusterArn *string `type:"string"`
  4395. // The cluster name.
  4396. EcsClusterName *string `type:"string"`
  4397. // The time and date that the cluster was registered with the stack.
  4398. RegisteredAt *string `type:"string"`
  4399. // The stack ID.
  4400. StackId *string `type:"string"`
  4401. metadataEcsCluster `json:"-" xml:"-"`
  4402. }
  4403. type metadataEcsCluster struct {
  4404. SDKShapeTraits bool `type:"structure"`
  4405. }
  4406. // String returns the string representation
  4407. func (s EcsCluster) String() string {
  4408. return awsutil.Prettify(s)
  4409. }
  4410. // GoString returns the string representation
  4411. func (s EcsCluster) GoString() string {
  4412. return s.String()
  4413. }
  4414. // Describes an Elastic IP address.
  4415. type ElasticIp struct {
  4416. // The domain.
  4417. Domain *string `type:"string"`
  4418. // The ID of the instance that the address is attached to.
  4419. InstanceId *string `type:"string"`
  4420. // The IP address.
  4421. Ip *string `type:"string"`
  4422. // The name.
  4423. Name *string `type:"string"`
  4424. // The AWS region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4425. Region *string `type:"string"`
  4426. metadataElasticIp `json:"-" xml:"-"`
  4427. }
  4428. type metadataElasticIp struct {
  4429. SDKShapeTraits bool `type:"structure"`
  4430. }
  4431. // String returns the string representation
  4432. func (s ElasticIp) String() string {
  4433. return awsutil.Prettify(s)
  4434. }
  4435. // GoString returns the string representation
  4436. func (s ElasticIp) GoString() string {
  4437. return s.String()
  4438. }
  4439. // Describes an Elastic Load Balancing instance.
  4440. type ElasticLoadBalancer struct {
  4441. // A list of Availability Zones.
  4442. AvailabilityZones []*string `type:"list"`
  4443. // The instance's public DNS name.
  4444. DnsName *string `type:"string"`
  4445. // A list of the EC2 instances that the Elastic Load Balancing instance is managing
  4446. // traffic for.
  4447. Ec2InstanceIds []*string `type:"list"`
  4448. // The Elastic Load Balancing instance's name.
  4449. ElasticLoadBalancerName *string `type:"string"`
  4450. // The ID of the layer that the instance is attached to.
  4451. LayerId *string `type:"string"`
  4452. // The instance's AWS region.
  4453. Region *string `type:"string"`
  4454. // The ID of the stack that the instance is associated with.
  4455. StackId *string `type:"string"`
  4456. // A list of subnet IDs, if the stack is running in a VPC.
  4457. SubnetIds []*string `type:"list"`
  4458. // The VPC ID.
  4459. VpcId *string `type:"string"`
  4460. metadataElasticLoadBalancer `json:"-" xml:"-"`
  4461. }
  4462. type metadataElasticLoadBalancer struct {
  4463. SDKShapeTraits bool `type:"structure"`
  4464. }
  4465. // String returns the string representation
  4466. func (s ElasticLoadBalancer) String() string {
  4467. return awsutil.Prettify(s)
  4468. }
  4469. // GoString returns the string representation
  4470. func (s ElasticLoadBalancer) GoString() string {
  4471. return s.String()
  4472. }
  4473. // Represents an app's environment variable.
  4474. type EnvironmentVariable struct {
  4475. // (Required) The environment variable's name, which can consist of up to 64
  4476. // characters and must be specified. The name can contain upper- and lowercase
  4477. // letters, numbers, and underscores (_), but it must start with a letter or
  4478. // underscore.
  4479. Key *string `type:"string" required:"true"`
  4480. // (Optional) Whether the variable's value will be returned by the DescribeApps
  4481. // action. To conceal an environment variable's value, set Secure to true. DescribeApps
  4482. // then returns *****FILTERED***** instead of the actual value. The default
  4483. // value for Secure is false.
  4484. Secure *bool `type:"boolean"`
  4485. // (Optional) The environment variable's value, which can be left empty. If
  4486. // you specify a value, it can contain up to 256 characters, which must all
  4487. // be printable.
  4488. Value *string `type:"string" required:"true"`
  4489. metadataEnvironmentVariable `json:"-" xml:"-"`
  4490. }
  4491. type metadataEnvironmentVariable struct {
  4492. SDKShapeTraits bool `type:"structure"`
  4493. }
  4494. // String returns the string representation
  4495. func (s EnvironmentVariable) String() string {
  4496. return awsutil.Prettify(s)
  4497. }
  4498. // GoString returns the string representation
  4499. func (s EnvironmentVariable) GoString() string {
  4500. return s.String()
  4501. }
  4502. type GetHostnameSuggestionInput struct {
  4503. // The layer ID.
  4504. LayerId *string `type:"string" required:"true"`
  4505. metadataGetHostnameSuggestionInput `json:"-" xml:"-"`
  4506. }
  4507. type metadataGetHostnameSuggestionInput struct {
  4508. SDKShapeTraits bool `type:"structure"`
  4509. }
  4510. // String returns the string representation
  4511. func (s GetHostnameSuggestionInput) String() string {
  4512. return awsutil.Prettify(s)
  4513. }
  4514. // GoString returns the string representation
  4515. func (s GetHostnameSuggestionInput) GoString() string {
  4516. return s.String()
  4517. }
  4518. // Contains the response to a GetHostnameSuggestion request.
  4519. type GetHostnameSuggestionOutput struct {
  4520. // The generated host name.
  4521. Hostname *string `type:"string"`
  4522. // The layer ID.
  4523. LayerId *string `type:"string"`
  4524. metadataGetHostnameSuggestionOutput `json:"-" xml:"-"`
  4525. }
  4526. type metadataGetHostnameSuggestionOutput struct {
  4527. SDKShapeTraits bool `type:"structure"`
  4528. }
  4529. // String returns the string representation
  4530. func (s GetHostnameSuggestionOutput) String() string {
  4531. return awsutil.Prettify(s)
  4532. }
  4533. // GoString returns the string representation
  4534. func (s GetHostnameSuggestionOutput) GoString() string {
  4535. return s.String()
  4536. }
  4537. type GrantAccessInput struct {
  4538. // The instance's AWS OpsWorks ID.
  4539. InstanceId *string `type:"string" required:"true"`
  4540. // The length of time (in minutes) that the grant is valid. When the grant expires
  4541. // at the end of this period, the user will no longer be able to use the credentials
  4542. // to log in. If the user is logged in at the time, he or she automatically
  4543. // will be logged out.
  4544. ValidForInMinutes *int64 `type:"integer"`
  4545. metadataGrantAccessInput `json:"-" xml:"-"`
  4546. }
  4547. type metadataGrantAccessInput struct {
  4548. SDKShapeTraits bool `type:"structure"`
  4549. }
  4550. // String returns the string representation
  4551. func (s GrantAccessInput) String() string {
  4552. return awsutil.Prettify(s)
  4553. }
  4554. // GoString returns the string representation
  4555. func (s GrantAccessInput) GoString() string {
  4556. return s.String()
  4557. }
  4558. // Contains the response to a GrantAccess request.
  4559. type GrantAccessOutput struct {
  4560. // A TemporaryCredential object that contains the data needed to log in to the
  4561. // instance by RDP clients, such as the Microsoft Remote Desktop Connection.
  4562. TemporaryCredential *TemporaryCredential `type:"structure"`
  4563. metadataGrantAccessOutput `json:"-" xml:"-"`
  4564. }
  4565. type metadataGrantAccessOutput struct {
  4566. SDKShapeTraits bool `type:"structure"`
  4567. }
  4568. // String returns the string representation
  4569. func (s GrantAccessOutput) String() string {
  4570. return awsutil.Prettify(s)
  4571. }
  4572. // GoString returns the string representation
  4573. func (s GrantAccessOutput) GoString() string {
  4574. return s.String()
  4575. }
  4576. // Describes an instance.
  4577. type Instance struct {
  4578. // The agent version. This parameter is set to INHERIT if the instance inherits
  4579. // the default stack setting or to a a version number for a fixed agent version.
  4580. AgentVersion *string `type:"string"`
  4581. // A custom AMI ID to be used to create the instance. For more information,
  4582. // see Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html)
  4583. AmiId *string `type:"string"`
  4584. // The instance architecture: "i386" or "x86_64".
  4585. Architecture *string `type:"string" enum:"Architecture"`
  4586. // For load-based or time-based instances, the type.
  4587. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  4588. // The instance Availability Zone. For more information, see Regions and Endpoints
  4589. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4590. AvailabilityZone *string `type:"string"`
  4591. // An array of BlockDeviceMapping objects that specify the instance's block
  4592. // device mappings.
  4593. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  4594. // The time that the instance was created.
  4595. CreatedAt *string `type:"string"`
  4596. // Whether this is an Amazon EBS-optimized instance.
  4597. EbsOptimized *bool `type:"boolean"`
  4598. // The ID of the associated Amazon EC2 instance.
  4599. Ec2InstanceId *string `type:"string"`
  4600. // For container instances, the Amazon ECS cluster's ARN.
  4601. EcsClusterArn *string `type:"string"`
  4602. // For container instances, the instance's ARN.
  4603. EcsContainerInstanceArn *string `type:"string"`
  4604. // The instance Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
  4605. ElasticIp *string `type:"string"`
  4606. // The instance host name.
  4607. Hostname *string `type:"string"`
  4608. // For registered instances, the infrastructure class: ec2 or on-premises.
  4609. InfrastructureClass *string `type:"string"`
  4610. // Whether to install operating system and package updates when the instance
  4611. // boots. The default value is true. If this value is set to false, you must
  4612. // then update your instances manually by using CreateDeployment to run the
  4613. // update_dependencies stack command or by manually running yum (Amazon Linux)
  4614. // or apt-get (Ubuntu) on the instances.
  4615. //
  4616. // We strongly recommend using the default value of true, to ensure that your
  4617. // instances have the latest security updates.
  4618. InstallUpdatesOnBoot *bool `type:"boolean"`
  4619. // The instance ID.
  4620. InstanceId *string `type:"string"`
  4621. // The ARN of the instance's IAM profile. For more information about IAM ARNs,
  4622. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4623. InstanceProfileArn *string `type:"string"`
  4624. // The instance type, such as t2.micro.
  4625. InstanceType *string `type:"string"`
  4626. // The ID of the last service error. For more information, call DescribeServiceErrors.
  4627. LastServiceErrorId *string `type:"string"`
  4628. // An array containing the instance layer IDs.
  4629. LayerIds []*string `type:"list"`
  4630. // The instance's operating system.
  4631. Os *string `type:"string"`
  4632. // The instance's platform.
  4633. Platform *string `type:"string"`
  4634. // The The instance's private DNS name.
  4635. PrivateDns *string `type:"string"`
  4636. // The instance's private IP address.
  4637. PrivateIp *string `type:"string"`
  4638. // The instance public DNS name.
  4639. PublicDns *string `type:"string"`
  4640. // The instance public IP address.
  4641. PublicIp *string `type:"string"`
  4642. // For registered instances, who performed the registration.
  4643. RegisteredBy *string `type:"string"`
  4644. // The instance's reported AWS OpsWorks agent version.
  4645. ReportedAgentVersion *string `type:"string"`
  4646. // For registered instances, the reported operating system.
  4647. ReportedOs *ReportedOs `type:"structure"`
  4648. // The instance's root device type. For more information, see Storage for the
  4649. // Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  4650. RootDeviceType *string `type:"string" enum:"RootDeviceType"`
  4651. // The root device volume ID.
  4652. RootDeviceVolumeId *string `type:"string"`
  4653. // An array containing the instance security group IDs.
  4654. SecurityGroupIds []*string `type:"list"`
  4655. // The SSH key's Deep Security Agent (DSA) fingerprint.
  4656. SshHostDsaKeyFingerprint *string `type:"string"`
  4657. // The SSH key's RSA fingerprint.
  4658. SshHostRsaKeyFingerprint *string `type:"string"`
  4659. // The instance's Amazon EC2 key-pair name.
  4660. SshKeyName *string `type:"string"`
  4661. // The stack ID.
  4662. StackId *string `type:"string"`
  4663. // The instance status:
  4664. //
  4665. // booting connection_lost online pending rebooting requested
  4666. // running_setup setup_failed shutting_down start_failed stopped
  4667. // stopping terminated terminating
  4668. Status *string `type:"string"`
  4669. // The instance's subnet ID; applicable only if the stack is running in a VPC.
  4670. SubnetId *string `type:"string"`
  4671. // The instance's virtualization type: paravirtual or hvm.
  4672. VirtualizationType *string `type:"string" enum:"VirtualizationType"`
  4673. metadataInstance `json:"-" xml:"-"`
  4674. }
  4675. type metadataInstance struct {
  4676. SDKShapeTraits bool `type:"structure"`
  4677. }
  4678. // String returns the string representation
  4679. func (s Instance) String() string {
  4680. return awsutil.Prettify(s)
  4681. }
  4682. // GoString returns the string representation
  4683. func (s Instance) GoString() string {
  4684. return s.String()
  4685. }
  4686. // Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata
  4687. // service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html).
  4688. type InstanceIdentity struct {
  4689. // A JSON document that contains the metadata.
  4690. Document *string `type:"string"`
  4691. // A signature that can be used to verify the document's accuracy and authenticity.
  4692. Signature *string `type:"string"`
  4693. metadataInstanceIdentity `json:"-" xml:"-"`
  4694. }
  4695. type metadataInstanceIdentity struct {
  4696. SDKShapeTraits bool `type:"structure"`
  4697. }
  4698. // String returns the string representation
  4699. func (s InstanceIdentity) String() string {
  4700. return awsutil.Prettify(s)
  4701. }
  4702. // GoString returns the string representation
  4703. func (s InstanceIdentity) GoString() string {
  4704. return s.String()
  4705. }
  4706. // Describes how many instances a stack has for each status.
  4707. type InstancesCount struct {
  4708. // The number of instances in the Assigning state.
  4709. Assigning *int64 `type:"integer"`
  4710. // The number of instances with booting status.
  4711. Booting *int64 `type:"integer"`
  4712. // The number of instances with connection_lost status.
  4713. ConnectionLost *int64 `type:"integer"`
  4714. // The number of instances in the Deregistering state.
  4715. Deregistering *int64 `type:"integer"`
  4716. // The number of instances with online status.
  4717. Online *int64 `type:"integer"`
  4718. // The number of instances with pending status.
  4719. Pending *int64 `type:"integer"`
  4720. // The number of instances with rebooting status.
  4721. Rebooting *int64 `type:"integer"`
  4722. // The number of instances in the Registered state.
  4723. Registered *int64 `type:"integer"`
  4724. // The number of instances in the Registering state.
  4725. Registering *int64 `type:"integer"`
  4726. // The number of instances with requested status.
  4727. Requested *int64 `type:"integer"`
  4728. // The number of instances with running_setup status.
  4729. RunningSetup *int64 `type:"integer"`
  4730. // The number of instances with setup_failed status.
  4731. SetupFailed *int64 `type:"integer"`
  4732. // The number of instances with shutting_down status.
  4733. ShuttingDown *int64 `type:"integer"`
  4734. // The number of instances with start_failed status.
  4735. StartFailed *int64 `type:"integer"`
  4736. // The number of instances with stopped status.
  4737. Stopped *int64 `type:"integer"`
  4738. // The number of instances with stopping status.
  4739. Stopping *int64 `type:"integer"`
  4740. // The number of instances with terminated status.
  4741. Terminated *int64 `type:"integer"`
  4742. // The number of instances with terminating status.
  4743. Terminating *int64 `type:"integer"`
  4744. // The number of instances in the Unassigning state.
  4745. Unassigning *int64 `type:"integer"`
  4746. metadataInstancesCount `json:"-" xml:"-"`
  4747. }
  4748. type metadataInstancesCount struct {
  4749. SDKShapeTraits bool `type:"structure"`
  4750. }
  4751. // String returns the string representation
  4752. func (s InstancesCount) String() string {
  4753. return awsutil.Prettify(s)
  4754. }
  4755. // GoString returns the string representation
  4756. func (s InstancesCount) GoString() string {
  4757. return s.String()
  4758. }
  4759. // Describes a layer.
  4760. type Layer struct {
  4761. // The layer attributes.
  4762. //
  4763. // For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes,
  4764. // AWS OpsWorks returns *****FILTERED***** instead of the actual value
  4765. //
  4766. // For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn attribute is set
  4767. // to the cluster's ARN.
  4768. Attributes map[string]*string `type:"map"`
  4769. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  4770. // to the layer's instances. For more information, see How to Edit a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  4771. AutoAssignElasticIps *bool `type:"boolean"`
  4772. // For stacks that are running in a VPC, whether to automatically assign a public
  4773. // IP address to the layer's instances. For more information, see How to Edit
  4774. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  4775. AutoAssignPublicIps *bool `type:"boolean"`
  4776. // Date when the layer was created.
  4777. CreatedAt *string `type:"string"`
  4778. // The ARN of the default IAM profile to be used for the layer's EC2 instances.
  4779. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4780. CustomInstanceProfileArn *string `type:"string"`
  4781. // A JSON formatted string containing the layer's custom stack configuration
  4782. // and deployment attributes.
  4783. CustomJson *string `type:"string"`
  4784. // A LayerCustomRecipes object that specifies the layer's custom recipes.
  4785. CustomRecipes *Recipes `type:"structure"`
  4786. // An array containing the layer's custom security group IDs.
  4787. CustomSecurityGroupIds []*string `type:"list"`
  4788. // AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
  4789. // undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
  4790. // recipes for each event. In addition, you can provide custom recipes for any
  4791. // or all layers and events. AWS OpsWorks runs custom event recipes after the
  4792. // standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
  4793. // layer to be run in response to each of the five events.
  4794. //
  4795. // To specify a recipe, use the cookbook's directory name in the repository
  4796. // followed by two colons and the recipe name, which is the recipe's file name
  4797. // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
  4798. // recipe in the repository's phpapp2 folder.
  4799. DefaultRecipes *Recipes `type:"structure"`
  4800. // An array containing the layer's security group names.
  4801. DefaultSecurityGroupNames []*string `type:"list"`
  4802. // Whether auto healing is disabled for the layer.
  4803. EnableAutoHealing *bool `type:"boolean"`
  4804. // Whether to install operating system and package updates when the instance
  4805. // boots. The default value is true. If this value is set to false, you must
  4806. // then update your instances manually by using CreateDeployment to run the
  4807. // update_dependencies stack command or manually running yum (Amazon Linux)
  4808. // or apt-get (Ubuntu) on the instances.
  4809. //
  4810. // We strongly recommend using the default value of true, to ensure that your
  4811. // instances have the latest security updates.
  4812. InstallUpdatesOnBoot *bool `type:"boolean"`
  4813. // The layer ID.
  4814. LayerId *string `type:"string"`
  4815. // A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.
  4816. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  4817. // The layer name.
  4818. Name *string `type:"string"`
  4819. // An array of Package objects that describe the layer's packages.
  4820. Packages []*string `type:"list"`
  4821. // The layer short name.
  4822. Shortname *string `type:"string"`
  4823. // The layer stack ID.
  4824. StackId *string `type:"string"`
  4825. // The layer type.
  4826. Type *string `type:"string" enum:"LayerType"`
  4827. // Whether the layer uses Amazon EBS-optimized instances.
  4828. UseEbsOptimizedInstances *bool `type:"boolean"`
  4829. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  4830. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  4831. metadataLayer `json:"-" xml:"-"`
  4832. }
  4833. type metadataLayer struct {
  4834. SDKShapeTraits bool `type:"structure"`
  4835. }
  4836. // String returns the string representation
  4837. func (s Layer) String() string {
  4838. return awsutil.Prettify(s)
  4839. }
  4840. // GoString returns the string representation
  4841. func (s Layer) GoString() string {
  4842. return s.String()
  4843. }
  4844. // Specifies the lifecycle event configuration
  4845. type LifecycleEventConfiguration struct {
  4846. // A ShutdownEventConfiguration object that specifies the Shutdown event configuration.
  4847. Shutdown *ShutdownEventConfiguration `type:"structure"`
  4848. metadataLifecycleEventConfiguration `json:"-" xml:"-"`
  4849. }
  4850. type metadataLifecycleEventConfiguration struct {
  4851. SDKShapeTraits bool `type:"structure"`
  4852. }
  4853. // String returns the string representation
  4854. func (s LifecycleEventConfiguration) String() string {
  4855. return awsutil.Prettify(s)
  4856. }
  4857. // GoString returns the string representation
  4858. func (s LifecycleEventConfiguration) GoString() string {
  4859. return s.String()
  4860. }
  4861. // Describes a layer's load-based auto scaling configuration.
  4862. type LoadBasedAutoScalingConfiguration struct {
  4863. // An AutoScalingThresholds object that describes the downscaling configuration,
  4864. // which defines how and when AWS OpsWorks reduces the number of instances.
  4865. DownScaling *AutoScalingThresholds `type:"structure"`
  4866. // Whether load-based auto scaling is enabled for the layer.
  4867. Enable *bool `type:"boolean"`
  4868. // The layer ID.
  4869. LayerId *string `type:"string"`
  4870. // An AutoScalingThresholds object that describes the upscaling configuration,
  4871. // which defines how and when AWS OpsWorks increases the number of instances.
  4872. UpScaling *AutoScalingThresholds `type:"structure"`
  4873. metadataLoadBasedAutoScalingConfiguration `json:"-" xml:"-"`
  4874. }
  4875. type metadataLoadBasedAutoScalingConfiguration struct {
  4876. SDKShapeTraits bool `type:"structure"`
  4877. }
  4878. // String returns the string representation
  4879. func (s LoadBasedAutoScalingConfiguration) String() string {
  4880. return awsutil.Prettify(s)
  4881. }
  4882. // GoString returns the string representation
  4883. func (s LoadBasedAutoScalingConfiguration) GoString() string {
  4884. return s.String()
  4885. }
  4886. // Describes stack or user permissions.
  4887. type Permission struct {
  4888. // Whether the user can use SSH.
  4889. AllowSsh *bool `type:"boolean"`
  4890. // Whether the user can use sudo.
  4891. AllowSudo *bool `type:"boolean"`
  4892. // The Amazon Resource Name (ARN) for an AWS Identity and Access Management
  4893. // (IAM) role. For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4894. IamUserArn *string `type:"string"`
  4895. // The user's permission level, which must be the following:
  4896. //
  4897. // deny show deploy manage iam_only For more information on the
  4898. // permissions associated with these levels, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html)
  4899. Level *string `type:"string"`
  4900. // A stack ID.
  4901. StackId *string `type:"string"`
  4902. metadataPermission `json:"-" xml:"-"`
  4903. }
  4904. type metadataPermission struct {
  4905. SDKShapeTraits bool `type:"structure"`
  4906. }
  4907. // String returns the string representation
  4908. func (s Permission) String() string {
  4909. return awsutil.Prettify(s)
  4910. }
  4911. // GoString returns the string representation
  4912. func (s Permission) GoString() string {
  4913. return s.String()
  4914. }
  4915. // Describes an instance's RAID array.
  4916. type RaidArray struct {
  4917. // The array's Availability Zone. For more information, see Regions and Endpoints
  4918. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4919. AvailabilityZone *string `type:"string"`
  4920. // When the RAID array was created.
  4921. CreatedAt *string `type:"string"`
  4922. // The array's Linux device. For example /dev/mdadm0.
  4923. Device *string `type:"string"`
  4924. // The instance ID.
  4925. InstanceId *string `type:"string"`
  4926. // For PIOPS volumes, the IOPS per disk.
  4927. Iops *int64 `type:"integer"`
  4928. // The array's mount point.
  4929. MountPoint *string `type:"string"`
  4930. // The array name.
  4931. Name *string `type:"string"`
  4932. // The number of disks in the array.
  4933. NumberOfDisks *int64 `type:"integer"`
  4934. // The array ID.
  4935. RaidArrayId *string `type:"string"`
  4936. // The RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
  4937. RaidLevel *int64 `type:"integer"`
  4938. // The array's size.
  4939. Size *int64 `type:"integer"`
  4940. // The stack ID.
  4941. StackId *string `type:"string"`
  4942. // The volume type, standard or PIOPS.
  4943. VolumeType *string `type:"string"`
  4944. metadataRaidArray `json:"-" xml:"-"`
  4945. }
  4946. type metadataRaidArray struct {
  4947. SDKShapeTraits bool `type:"structure"`
  4948. }
  4949. // String returns the string representation
  4950. func (s RaidArray) String() string {
  4951. return awsutil.Prettify(s)
  4952. }
  4953. // GoString returns the string representation
  4954. func (s RaidArray) GoString() string {
  4955. return s.String()
  4956. }
  4957. // Describes an Amazon RDS instance.
  4958. type RdsDbInstance struct {
  4959. // The instance's address.
  4960. Address *string `type:"string"`
  4961. // The DB instance identifier.
  4962. DbInstanceIdentifier *string `type:"string"`
  4963. // AWS OpsWorks returns *****FILTERED***** instead of the actual value.
  4964. DbPassword *string `type:"string"`
  4965. // The master user name.
  4966. DbUser *string `type:"string"`
  4967. // The instance's database engine.
  4968. Engine *string `type:"string"`
  4969. // Set to true if AWS OpsWorks was unable to discover the Amazon RDS instance.
  4970. // AWS OpsWorks attempts to discover the instance only once. If this value is
  4971. // set to true, you must deregister the instance and then register it again.
  4972. MissingOnRds *bool `type:"boolean"`
  4973. // The instance's ARN.
  4974. RdsDbInstanceArn *string `type:"string"`
  4975. // The instance's AWS region.
  4976. Region *string `type:"string"`
  4977. // The ID of the stack that the instance is registered with.
  4978. StackId *string `type:"string"`
  4979. metadataRdsDbInstance `json:"-" xml:"-"`
  4980. }
  4981. type metadataRdsDbInstance struct {
  4982. SDKShapeTraits bool `type:"structure"`
  4983. }
  4984. // String returns the string representation
  4985. func (s RdsDbInstance) String() string {
  4986. return awsutil.Prettify(s)
  4987. }
  4988. // GoString returns the string representation
  4989. func (s RdsDbInstance) GoString() string {
  4990. return s.String()
  4991. }
  4992. type RebootInstanceInput struct {
  4993. // The instance ID.
  4994. InstanceId *string `type:"string" required:"true"`
  4995. metadataRebootInstanceInput `json:"-" xml:"-"`
  4996. }
  4997. type metadataRebootInstanceInput struct {
  4998. SDKShapeTraits bool `type:"structure"`
  4999. }
  5000. // String returns the string representation
  5001. func (s RebootInstanceInput) String() string {
  5002. return awsutil.Prettify(s)
  5003. }
  5004. // GoString returns the string representation
  5005. func (s RebootInstanceInput) GoString() string {
  5006. return s.String()
  5007. }
  5008. type RebootInstanceOutput struct {
  5009. metadataRebootInstanceOutput `json:"-" xml:"-"`
  5010. }
  5011. type metadataRebootInstanceOutput struct {
  5012. SDKShapeTraits bool `type:"structure"`
  5013. }
  5014. // String returns the string representation
  5015. func (s RebootInstanceOutput) String() string {
  5016. return awsutil.Prettify(s)
  5017. }
  5018. // GoString returns the string representation
  5019. func (s RebootInstanceOutput) GoString() string {
  5020. return s.String()
  5021. }
  5022. // AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
  5023. // undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
  5024. // recipes for each event. In addition, you can provide custom recipes for any
  5025. // or all layers and events. AWS OpsWorks runs custom event recipes after the
  5026. // standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
  5027. // layer to be run in response to each of the five events.
  5028. //
  5029. // To specify a recipe, use the cookbook's directory name in the repository
  5030. // followed by two colons and the recipe name, which is the recipe's file name
  5031. // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
  5032. // recipe in the repository's phpapp2 folder.
  5033. type Recipes struct {
  5034. // An array of custom recipe names to be run following a configure event.
  5035. Configure []*string `type:"list"`
  5036. // An array of custom recipe names to be run following a deploy event.
  5037. Deploy []*string `type:"list"`
  5038. // An array of custom recipe names to be run following a setup event.
  5039. Setup []*string `type:"list"`
  5040. // An array of custom recipe names to be run following a shutdown event.
  5041. Shutdown []*string `type:"list"`
  5042. // An array of custom recipe names to be run following a undeploy event.
  5043. Undeploy []*string `type:"list"`
  5044. metadataRecipes `json:"-" xml:"-"`
  5045. }
  5046. type metadataRecipes struct {
  5047. SDKShapeTraits bool `type:"structure"`
  5048. }
  5049. // String returns the string representation
  5050. func (s Recipes) String() string {
  5051. return awsutil.Prettify(s)
  5052. }
  5053. // GoString returns the string representation
  5054. func (s Recipes) GoString() string {
  5055. return s.String()
  5056. }
  5057. type RegisterEcsClusterInput struct {
  5058. // The cluster's ARN.
  5059. EcsClusterArn *string `type:"string" required:"true"`
  5060. // The stack ID.
  5061. StackId *string `type:"string" required:"true"`
  5062. metadataRegisterEcsClusterInput `json:"-" xml:"-"`
  5063. }
  5064. type metadataRegisterEcsClusterInput struct {
  5065. SDKShapeTraits bool `type:"structure"`
  5066. }
  5067. // String returns the string representation
  5068. func (s RegisterEcsClusterInput) String() string {
  5069. return awsutil.Prettify(s)
  5070. }
  5071. // GoString returns the string representation
  5072. func (s RegisterEcsClusterInput) GoString() string {
  5073. return s.String()
  5074. }
  5075. // Contains the response to a RegisterEcsCluster request.
  5076. type RegisterEcsClusterOutput struct {
  5077. // The cluster's ARN.
  5078. EcsClusterArn *string `type:"string"`
  5079. metadataRegisterEcsClusterOutput `json:"-" xml:"-"`
  5080. }
  5081. type metadataRegisterEcsClusterOutput struct {
  5082. SDKShapeTraits bool `type:"structure"`
  5083. }
  5084. // String returns the string representation
  5085. func (s RegisterEcsClusterOutput) String() string {
  5086. return awsutil.Prettify(s)
  5087. }
  5088. // GoString returns the string representation
  5089. func (s RegisterEcsClusterOutput) GoString() string {
  5090. return s.String()
  5091. }
  5092. type RegisterElasticIpInput struct {
  5093. // The Elastic IP address.
  5094. ElasticIp *string `type:"string" required:"true"`
  5095. // The stack ID.
  5096. StackId *string `type:"string" required:"true"`
  5097. metadataRegisterElasticIpInput `json:"-" xml:"-"`
  5098. }
  5099. type metadataRegisterElasticIpInput struct {
  5100. SDKShapeTraits bool `type:"structure"`
  5101. }
  5102. // String returns the string representation
  5103. func (s RegisterElasticIpInput) String() string {
  5104. return awsutil.Prettify(s)
  5105. }
  5106. // GoString returns the string representation
  5107. func (s RegisterElasticIpInput) GoString() string {
  5108. return s.String()
  5109. }
  5110. // Contains the response to a RegisterElasticIp request.
  5111. type RegisterElasticIpOutput struct {
  5112. // The Elastic IP address.
  5113. ElasticIp *string `type:"string"`
  5114. metadataRegisterElasticIpOutput `json:"-" xml:"-"`
  5115. }
  5116. type metadataRegisterElasticIpOutput struct {
  5117. SDKShapeTraits bool `type:"structure"`
  5118. }
  5119. // String returns the string representation
  5120. func (s RegisterElasticIpOutput) String() string {
  5121. return awsutil.Prettify(s)
  5122. }
  5123. // GoString returns the string representation
  5124. func (s RegisterElasticIpOutput) GoString() string {
  5125. return s.String()
  5126. }
  5127. type RegisterInstanceInput struct {
  5128. // The instance's hostname.
  5129. Hostname *string `type:"string"`
  5130. // An InstanceIdentity object that contains the instance's identity.
  5131. InstanceIdentity *InstanceIdentity `type:"structure"`
  5132. // The instance's private IP address.
  5133. PrivateIp *string `type:"string"`
  5134. // The instance's public IP address.
  5135. PublicIp *string `type:"string"`
  5136. // The instances public RSA key. This key is used to encrypt communication between
  5137. // the instance and the service.
  5138. RsaPublicKey *string `type:"string"`
  5139. // The instances public RSA key fingerprint.
  5140. RsaPublicKeyFingerprint *string `type:"string"`
  5141. // The ID of the stack that the instance is to be registered with.
  5142. StackId *string `type:"string" required:"true"`
  5143. metadataRegisterInstanceInput `json:"-" xml:"-"`
  5144. }
  5145. type metadataRegisterInstanceInput struct {
  5146. SDKShapeTraits bool `type:"structure"`
  5147. }
  5148. // String returns the string representation
  5149. func (s RegisterInstanceInput) String() string {
  5150. return awsutil.Prettify(s)
  5151. }
  5152. // GoString returns the string representation
  5153. func (s RegisterInstanceInput) GoString() string {
  5154. return s.String()
  5155. }
  5156. // Contains the response to a RegisterInstanceResult request.
  5157. type RegisterInstanceOutput struct {
  5158. // The registered instance's AWS OpsWorks ID.
  5159. InstanceId *string `type:"string"`
  5160. metadataRegisterInstanceOutput `json:"-" xml:"-"`
  5161. }
  5162. type metadataRegisterInstanceOutput struct {
  5163. SDKShapeTraits bool `type:"structure"`
  5164. }
  5165. // String returns the string representation
  5166. func (s RegisterInstanceOutput) String() string {
  5167. return awsutil.Prettify(s)
  5168. }
  5169. // GoString returns the string representation
  5170. func (s RegisterInstanceOutput) GoString() string {
  5171. return s.String()
  5172. }
  5173. type RegisterRdsDbInstanceInput struct {
  5174. // The database password.
  5175. DbPassword *string `type:"string" required:"true"`
  5176. // The database's master user name.
  5177. DbUser *string `type:"string" required:"true"`
  5178. // The Amazon RDS instance's ARN.
  5179. RdsDbInstanceArn *string `type:"string" required:"true"`
  5180. // The stack ID.
  5181. StackId *string `type:"string" required:"true"`
  5182. metadataRegisterRdsDbInstanceInput `json:"-" xml:"-"`
  5183. }
  5184. type metadataRegisterRdsDbInstanceInput struct {
  5185. SDKShapeTraits bool `type:"structure"`
  5186. }
  5187. // String returns the string representation
  5188. func (s RegisterRdsDbInstanceInput) String() string {
  5189. return awsutil.Prettify(s)
  5190. }
  5191. // GoString returns the string representation
  5192. func (s RegisterRdsDbInstanceInput) GoString() string {
  5193. return s.String()
  5194. }
  5195. type RegisterRdsDbInstanceOutput struct {
  5196. metadataRegisterRdsDbInstanceOutput `json:"-" xml:"-"`
  5197. }
  5198. type metadataRegisterRdsDbInstanceOutput struct {
  5199. SDKShapeTraits bool `type:"structure"`
  5200. }
  5201. // String returns the string representation
  5202. func (s RegisterRdsDbInstanceOutput) String() string {
  5203. return awsutil.Prettify(s)
  5204. }
  5205. // GoString returns the string representation
  5206. func (s RegisterRdsDbInstanceOutput) GoString() string {
  5207. return s.String()
  5208. }
  5209. type RegisterVolumeInput struct {
  5210. // The Amazon EBS volume ID.
  5211. Ec2VolumeId *string `type:"string"`
  5212. // The stack ID.
  5213. StackId *string `type:"string" required:"true"`
  5214. metadataRegisterVolumeInput `json:"-" xml:"-"`
  5215. }
  5216. type metadataRegisterVolumeInput struct {
  5217. SDKShapeTraits bool `type:"structure"`
  5218. }
  5219. // String returns the string representation
  5220. func (s RegisterVolumeInput) String() string {
  5221. return awsutil.Prettify(s)
  5222. }
  5223. // GoString returns the string representation
  5224. func (s RegisterVolumeInput) GoString() string {
  5225. return s.String()
  5226. }
  5227. // Contains the response to a RegisterVolume request.
  5228. type RegisterVolumeOutput struct {
  5229. // The volume ID.
  5230. VolumeId *string `type:"string"`
  5231. metadataRegisterVolumeOutput `json:"-" xml:"-"`
  5232. }
  5233. type metadataRegisterVolumeOutput struct {
  5234. SDKShapeTraits bool `type:"structure"`
  5235. }
  5236. // String returns the string representation
  5237. func (s RegisterVolumeOutput) String() string {
  5238. return awsutil.Prettify(s)
  5239. }
  5240. // GoString returns the string representation
  5241. func (s RegisterVolumeOutput) GoString() string {
  5242. return s.String()
  5243. }
  5244. // A registered instance's reported operating system.
  5245. type ReportedOs struct {
  5246. // The operating system family.
  5247. Family *string `type:"string"`
  5248. // The operating system name.
  5249. Name *string `type:"string"`
  5250. // The operating system version.
  5251. Version *string `type:"string"`
  5252. metadataReportedOs `json:"-" xml:"-"`
  5253. }
  5254. type metadataReportedOs struct {
  5255. SDKShapeTraits bool `type:"structure"`
  5256. }
  5257. // String returns the string representation
  5258. func (s ReportedOs) String() string {
  5259. return awsutil.Prettify(s)
  5260. }
  5261. // GoString returns the string representation
  5262. func (s ReportedOs) GoString() string {
  5263. return s.String()
  5264. }
  5265. // Describes a user's SSH information.
  5266. type SelfUserProfile struct {
  5267. // The user's IAM ARN.
  5268. IamUserArn *string `type:"string"`
  5269. // The user's name.
  5270. Name *string `type:"string"`
  5271. // The user's SSH public key.
  5272. SshPublicKey *string `type:"string"`
  5273. // The user's SSH user name.
  5274. SshUsername *string `type:"string"`
  5275. metadataSelfUserProfile `json:"-" xml:"-"`
  5276. }
  5277. type metadataSelfUserProfile struct {
  5278. SDKShapeTraits bool `type:"structure"`
  5279. }
  5280. // String returns the string representation
  5281. func (s SelfUserProfile) String() string {
  5282. return awsutil.Prettify(s)
  5283. }
  5284. // GoString returns the string representation
  5285. func (s SelfUserProfile) GoString() string {
  5286. return s.String()
  5287. }
  5288. // Describes an AWS OpsWorks service error.
  5289. type ServiceError struct {
  5290. // When the error occurred.
  5291. CreatedAt *string `type:"string"`
  5292. // The instance ID.
  5293. InstanceId *string `type:"string"`
  5294. // A message that describes the error.
  5295. Message *string `type:"string"`
  5296. // The error ID.
  5297. ServiceErrorId *string `type:"string"`
  5298. // The stack ID.
  5299. StackId *string `type:"string"`
  5300. // The error type.
  5301. Type *string `type:"string"`
  5302. metadataServiceError `json:"-" xml:"-"`
  5303. }
  5304. type metadataServiceError struct {
  5305. SDKShapeTraits bool `type:"structure"`
  5306. }
  5307. // String returns the string representation
  5308. func (s ServiceError) String() string {
  5309. return awsutil.Prettify(s)
  5310. }
  5311. // GoString returns the string representation
  5312. func (s ServiceError) GoString() string {
  5313. return s.String()
  5314. }
  5315. type SetLoadBasedAutoScalingInput struct {
  5316. // An AutoScalingThresholds object with the downscaling threshold configuration.
  5317. // If the load falls below these thresholds for a specified amount of time,
  5318. // AWS OpsWorks stops a specified number of instances.
  5319. DownScaling *AutoScalingThresholds `type:"structure"`
  5320. // Enables load-based auto scaling for the layer.
  5321. Enable *bool `type:"boolean"`
  5322. // The layer ID.
  5323. LayerId *string `type:"string" required:"true"`
  5324. // An AutoScalingThresholds object with the upscaling threshold configuration.
  5325. // If the load exceeds these thresholds for a specified amount of time, AWS
  5326. // OpsWorks starts a specified number of instances.
  5327. UpScaling *AutoScalingThresholds `type:"structure"`
  5328. metadataSetLoadBasedAutoScalingInput `json:"-" xml:"-"`
  5329. }
  5330. type metadataSetLoadBasedAutoScalingInput struct {
  5331. SDKShapeTraits bool `type:"structure"`
  5332. }
  5333. // String returns the string representation
  5334. func (s SetLoadBasedAutoScalingInput) String() string {
  5335. return awsutil.Prettify(s)
  5336. }
  5337. // GoString returns the string representation
  5338. func (s SetLoadBasedAutoScalingInput) GoString() string {
  5339. return s.String()
  5340. }
  5341. type SetLoadBasedAutoScalingOutput struct {
  5342. metadataSetLoadBasedAutoScalingOutput `json:"-" xml:"-"`
  5343. }
  5344. type metadataSetLoadBasedAutoScalingOutput struct {
  5345. SDKShapeTraits bool `type:"structure"`
  5346. }
  5347. // String returns the string representation
  5348. func (s SetLoadBasedAutoScalingOutput) String() string {
  5349. return awsutil.Prettify(s)
  5350. }
  5351. // GoString returns the string representation
  5352. func (s SetLoadBasedAutoScalingOutput) GoString() string {
  5353. return s.String()
  5354. }
  5355. type SetPermissionInput struct {
  5356. // The user is allowed to use SSH to communicate with the instance.
  5357. AllowSsh *bool `type:"boolean"`
  5358. // The user is allowed to use sudo to elevate privileges.
  5359. AllowSudo *bool `type:"boolean"`
  5360. // The user's IAM ARN.
  5361. IamUserArn *string `type:"string" required:"true"`
  5362. // The user's permission level, which must be set to one of the following strings.
  5363. // You cannot set your own permissions level.
  5364. //
  5365. // deny show deploy manage iam_only For more information on the
  5366. // permissions associated with these levels, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  5367. Level *string `type:"string"`
  5368. // The stack ID.
  5369. StackId *string `type:"string" required:"true"`
  5370. metadataSetPermissionInput `json:"-" xml:"-"`
  5371. }
  5372. type metadataSetPermissionInput struct {
  5373. SDKShapeTraits bool `type:"structure"`
  5374. }
  5375. // String returns the string representation
  5376. func (s SetPermissionInput) String() string {
  5377. return awsutil.Prettify(s)
  5378. }
  5379. // GoString returns the string representation
  5380. func (s SetPermissionInput) GoString() string {
  5381. return s.String()
  5382. }
  5383. type SetPermissionOutput struct {
  5384. metadataSetPermissionOutput `json:"-" xml:"-"`
  5385. }
  5386. type metadataSetPermissionOutput struct {
  5387. SDKShapeTraits bool `type:"structure"`
  5388. }
  5389. // String returns the string representation
  5390. func (s SetPermissionOutput) String() string {
  5391. return awsutil.Prettify(s)
  5392. }
  5393. // GoString returns the string representation
  5394. func (s SetPermissionOutput) GoString() string {
  5395. return s.String()
  5396. }
  5397. type SetTimeBasedAutoScalingInput struct {
  5398. // An AutoScalingSchedule with the instance schedule.
  5399. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`
  5400. // The instance ID.
  5401. InstanceId *string `type:"string" required:"true"`
  5402. metadataSetTimeBasedAutoScalingInput `json:"-" xml:"-"`
  5403. }
  5404. type metadataSetTimeBasedAutoScalingInput struct {
  5405. SDKShapeTraits bool `type:"structure"`
  5406. }
  5407. // String returns the string representation
  5408. func (s SetTimeBasedAutoScalingInput) String() string {
  5409. return awsutil.Prettify(s)
  5410. }
  5411. // GoString returns the string representation
  5412. func (s SetTimeBasedAutoScalingInput) GoString() string {
  5413. return s.String()
  5414. }
  5415. type SetTimeBasedAutoScalingOutput struct {
  5416. metadataSetTimeBasedAutoScalingOutput `json:"-" xml:"-"`
  5417. }
  5418. type metadataSetTimeBasedAutoScalingOutput struct {
  5419. SDKShapeTraits bool `type:"structure"`
  5420. }
  5421. // String returns the string representation
  5422. func (s SetTimeBasedAutoScalingOutput) String() string {
  5423. return awsutil.Prettify(s)
  5424. }
  5425. // GoString returns the string representation
  5426. func (s SetTimeBasedAutoScalingOutput) GoString() string {
  5427. return s.String()
  5428. }
  5429. // The Shutdown event configuration.
  5430. type ShutdownEventConfiguration struct {
  5431. // Whether to enable Elastic Load Balancing connection draining. For more information,
  5432. // see Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
  5433. DelayUntilElbConnectionsDrained *bool `type:"boolean"`
  5434. // The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown
  5435. // event before shutting down an instance.
  5436. ExecutionTimeout *int64 `type:"integer"`
  5437. metadataShutdownEventConfiguration `json:"-" xml:"-"`
  5438. }
  5439. type metadataShutdownEventConfiguration struct {
  5440. SDKShapeTraits bool `type:"structure"`
  5441. }
  5442. // String returns the string representation
  5443. func (s ShutdownEventConfiguration) String() string {
  5444. return awsutil.Prettify(s)
  5445. }
  5446. // GoString returns the string representation
  5447. func (s ShutdownEventConfiguration) GoString() string {
  5448. return s.String()
  5449. }
  5450. // Contains the information required to retrieve an app or cookbook from a repository.
  5451. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  5452. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  5453. type Source struct {
  5454. // When included in a request, the parameter depends on the repository type.
  5455. //
  5456. // For Amazon S3 bundles, set Password to the appropriate IAM secret access
  5457. // key. For HTTP bundles and Subversion repositories, set Password to the password.
  5458. // For more information on how to safely handle IAM credentials, see .
  5459. //
  5460. // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
  5461. // value.
  5462. Password *string `type:"string"`
  5463. // The application's version. AWS OpsWorks enables you to easily deploy new
  5464. // versions of an application. One of the simplest approaches is to have branches
  5465. // or revisions in your repository that represent different versions that can
  5466. // potentially be deployed.
  5467. Revision *string `type:"string"`
  5468. // In requests, the repository's SSH key.
  5469. //
  5470. // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
  5471. // value.
  5472. SshKey *string `type:"string"`
  5473. // The repository type.
  5474. Type *string `type:"string" enum:"SourceType"`
  5475. // The source URL.
  5476. Url *string `type:"string"`
  5477. // This parameter depends on the repository type.
  5478. //
  5479. // For Amazon S3 bundles, set Username to the appropriate IAM access key ID.
  5480. // For HTTP bundles, Git repositories, and Subversion repositories, set Username
  5481. // to the user name.
  5482. Username *string `type:"string"`
  5483. metadataSource `json:"-" xml:"-"`
  5484. }
  5485. type metadataSource struct {
  5486. SDKShapeTraits bool `type:"structure"`
  5487. }
  5488. // String returns the string representation
  5489. func (s Source) String() string {
  5490. return awsutil.Prettify(s)
  5491. }
  5492. // GoString returns the string representation
  5493. func (s Source) GoString() string {
  5494. return s.String()
  5495. }
  5496. // Describes an app's SSL configuration.
  5497. type SslConfiguration struct {
  5498. // The contents of the certificate's domain.crt file.
  5499. Certificate *string `type:"string" required:"true"`
  5500. // Optional. Can be used to specify an intermediate certificate authority key
  5501. // or client authentication.
  5502. Chain *string `type:"string"`
  5503. // The private key; the contents of the certificate's domain.kex file.
  5504. PrivateKey *string `type:"string" required:"true"`
  5505. metadataSslConfiguration `json:"-" xml:"-"`
  5506. }
  5507. type metadataSslConfiguration struct {
  5508. SDKShapeTraits bool `type:"structure"`
  5509. }
  5510. // String returns the string representation
  5511. func (s SslConfiguration) String() string {
  5512. return awsutil.Prettify(s)
  5513. }
  5514. // GoString returns the string representation
  5515. func (s SslConfiguration) GoString() string {
  5516. return s.String()
  5517. }
  5518. // Describes a stack.
  5519. type Stack struct {
  5520. // The agent version. This parameter is set to LATEST for auto-update. or a
  5521. // version number for a fixed agent version.
  5522. AgentVersion *string `type:"string"`
  5523. // The stack's ARN.
  5524. Arn *string `type:"string"`
  5525. // The stack's attributes.
  5526. Attributes map[string]*string `type:"map"`
  5527. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  5528. // the Berkshelf version. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  5529. ChefConfiguration *ChefConfiguration `type:"structure"`
  5530. // The configuration manager.
  5531. ConfigurationManager *StackConfigurationManager `type:"structure"`
  5532. // The date when the stack was created.
  5533. CreatedAt *string `type:"string"`
  5534. // Contains the information required to retrieve an app or cookbook from a repository.
  5535. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  5536. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  5537. CustomCookbooksSource *Source `type:"structure"`
  5538. // A JSON object that contains user-defined attributes to be added to the stack
  5539. // configuration and deployment attributes. You can use custom JSON to override
  5540. // the corresponding default stack configuration attribute values or to pass
  5541. // data to recipes. The string should be in the following format and must escape
  5542. // characters such as '"':
  5543. //
  5544. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  5545. //
  5546. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  5547. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  5548. CustomJson *string `type:"string"`
  5549. // The stack's default Availability Zone. For more information, see Regions
  5550. // and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  5551. DefaultAvailabilityZone *string `type:"string"`
  5552. // The ARN of an IAM profile that is the default profile for all of the stack's
  5553. // EC2 instances. For more information about IAM ARNs, see Using Identifiers
  5554. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  5555. DefaultInstanceProfileArn *string `type:"string"`
  5556. // The stack's default operating system.
  5557. DefaultOs *string `type:"string"`
  5558. // The default root device type. This value is used by default for all instances
  5559. // in the stack, but you can override it when you create an instance. For more
  5560. // information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  5561. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  5562. // A default Amazon EC2 key pair for the stack's instances. You can override
  5563. // this value when you create or update an instance.
  5564. DefaultSshKeyName *string `type:"string"`
  5565. // The default subnet ID; applicable only if the stack is running in a VPC.
  5566. DefaultSubnetId *string `type:"string"`
  5567. // The stack host name theme, with spaces replaced by underscores.
  5568. HostnameTheme *string `type:"string"`
  5569. // The stack name.
  5570. Name *string `type:"string"`
  5571. // The stack AWS region, such as "us-east-1". For more information about AWS
  5572. // regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  5573. Region *string `type:"string"`
  5574. // The stack AWS Identity and Access Management (IAM) role.
  5575. ServiceRoleArn *string `type:"string"`
  5576. // The stack ID.
  5577. StackId *string `type:"string"`
  5578. // Whether the stack uses custom cookbooks.
  5579. UseCustomCookbooks *bool `type:"boolean"`
  5580. // Whether the stack automatically associates the AWS OpsWorks built-in security
  5581. // groups with the stack's layers.
  5582. UseOpsworksSecurityGroups *bool `type:"boolean"`
  5583. // The VPC ID; applicable only if the stack is running in a VPC.
  5584. VpcId *string `type:"string"`
  5585. metadataStack `json:"-" xml:"-"`
  5586. }
  5587. type metadataStack struct {
  5588. SDKShapeTraits bool `type:"structure"`
  5589. }
  5590. // String returns the string representation
  5591. func (s Stack) String() string {
  5592. return awsutil.Prettify(s)
  5593. }
  5594. // GoString returns the string representation
  5595. func (s Stack) GoString() string {
  5596. return s.String()
  5597. }
  5598. // Describes the configuration manager.
  5599. type StackConfigurationManager struct {
  5600. // The name. This parameter must be set to "Chef".
  5601. Name *string `type:"string"`
  5602. // The Chef version. This parameter must be set to 0.9, 11.4, or 11.10. The
  5603. // default value is 11.4.
  5604. Version *string `type:"string"`
  5605. metadataStackConfigurationManager `json:"-" xml:"-"`
  5606. }
  5607. type metadataStackConfigurationManager struct {
  5608. SDKShapeTraits bool `type:"structure"`
  5609. }
  5610. // String returns the string representation
  5611. func (s StackConfigurationManager) String() string {
  5612. return awsutil.Prettify(s)
  5613. }
  5614. // GoString returns the string representation
  5615. func (s StackConfigurationManager) GoString() string {
  5616. return s.String()
  5617. }
  5618. // Summarizes the number of layers, instances, and apps in a stack.
  5619. type StackSummary struct {
  5620. // The number of apps.
  5621. AppsCount *int64 `type:"integer"`
  5622. // The stack's ARN.
  5623. Arn *string `type:"string"`
  5624. // An InstancesCount object with the number of instances in each status.
  5625. InstancesCount *InstancesCount `type:"structure"`
  5626. // The number of layers.
  5627. LayersCount *int64 `type:"integer"`
  5628. // The stack name.
  5629. Name *string `type:"string"`
  5630. // The stack ID.
  5631. StackId *string `type:"string"`
  5632. metadataStackSummary `json:"-" xml:"-"`
  5633. }
  5634. type metadataStackSummary struct {
  5635. SDKShapeTraits bool `type:"structure"`
  5636. }
  5637. // String returns the string representation
  5638. func (s StackSummary) String() string {
  5639. return awsutil.Prettify(s)
  5640. }
  5641. // GoString returns the string representation
  5642. func (s StackSummary) GoString() string {
  5643. return s.String()
  5644. }
  5645. type StartInstanceInput struct {
  5646. // The instance ID.
  5647. InstanceId *string `type:"string" required:"true"`
  5648. metadataStartInstanceInput `json:"-" xml:"-"`
  5649. }
  5650. type metadataStartInstanceInput struct {
  5651. SDKShapeTraits bool `type:"structure"`
  5652. }
  5653. // String returns the string representation
  5654. func (s StartInstanceInput) String() string {
  5655. return awsutil.Prettify(s)
  5656. }
  5657. // GoString returns the string representation
  5658. func (s StartInstanceInput) GoString() string {
  5659. return s.String()
  5660. }
  5661. type StartInstanceOutput struct {
  5662. metadataStartInstanceOutput `json:"-" xml:"-"`
  5663. }
  5664. type metadataStartInstanceOutput struct {
  5665. SDKShapeTraits bool `type:"structure"`
  5666. }
  5667. // String returns the string representation
  5668. func (s StartInstanceOutput) String() string {
  5669. return awsutil.Prettify(s)
  5670. }
  5671. // GoString returns the string representation
  5672. func (s StartInstanceOutput) GoString() string {
  5673. return s.String()
  5674. }
  5675. type StartStackInput struct {
  5676. // The stack ID.
  5677. StackId *string `type:"string" required:"true"`
  5678. metadataStartStackInput `json:"-" xml:"-"`
  5679. }
  5680. type metadataStartStackInput struct {
  5681. SDKShapeTraits bool `type:"structure"`
  5682. }
  5683. // String returns the string representation
  5684. func (s StartStackInput) String() string {
  5685. return awsutil.Prettify(s)
  5686. }
  5687. // GoString returns the string representation
  5688. func (s StartStackInput) GoString() string {
  5689. return s.String()
  5690. }
  5691. type StartStackOutput struct {
  5692. metadataStartStackOutput `json:"-" xml:"-"`
  5693. }
  5694. type metadataStartStackOutput struct {
  5695. SDKShapeTraits bool `type:"structure"`
  5696. }
  5697. // String returns the string representation
  5698. func (s StartStackOutput) String() string {
  5699. return awsutil.Prettify(s)
  5700. }
  5701. // GoString returns the string representation
  5702. func (s StartStackOutput) GoString() string {
  5703. return s.String()
  5704. }
  5705. type StopInstanceInput struct {
  5706. // The instance ID.
  5707. InstanceId *string `type:"string" required:"true"`
  5708. metadataStopInstanceInput `json:"-" xml:"-"`
  5709. }
  5710. type metadataStopInstanceInput struct {
  5711. SDKShapeTraits bool `type:"structure"`
  5712. }
  5713. // String returns the string representation
  5714. func (s StopInstanceInput) String() string {
  5715. return awsutil.Prettify(s)
  5716. }
  5717. // GoString returns the string representation
  5718. func (s StopInstanceInput) GoString() string {
  5719. return s.String()
  5720. }
  5721. type StopInstanceOutput struct {
  5722. metadataStopInstanceOutput `json:"-" xml:"-"`
  5723. }
  5724. type metadataStopInstanceOutput struct {
  5725. SDKShapeTraits bool `type:"structure"`
  5726. }
  5727. // String returns the string representation
  5728. func (s StopInstanceOutput) String() string {
  5729. return awsutil.Prettify(s)
  5730. }
  5731. // GoString returns the string representation
  5732. func (s StopInstanceOutput) GoString() string {
  5733. return s.String()
  5734. }
  5735. type StopStackInput struct {
  5736. // The stack ID.
  5737. StackId *string `type:"string" required:"true"`
  5738. metadataStopStackInput `json:"-" xml:"-"`
  5739. }
  5740. type metadataStopStackInput struct {
  5741. SDKShapeTraits bool `type:"structure"`
  5742. }
  5743. // String returns the string representation
  5744. func (s StopStackInput) String() string {
  5745. return awsutil.Prettify(s)
  5746. }
  5747. // GoString returns the string representation
  5748. func (s StopStackInput) GoString() string {
  5749. return s.String()
  5750. }
  5751. type StopStackOutput struct {
  5752. metadataStopStackOutput `json:"-" xml:"-"`
  5753. }
  5754. type metadataStopStackOutput struct {
  5755. SDKShapeTraits bool `type:"structure"`
  5756. }
  5757. // String returns the string representation
  5758. func (s StopStackOutput) String() string {
  5759. return awsutil.Prettify(s)
  5760. }
  5761. // GoString returns the string representation
  5762. func (s StopStackOutput) GoString() string {
  5763. return s.String()
  5764. }
  5765. // Contains the data needed by RDP clients such as the Microsoft Remote Desktop
  5766. // Connection to log in to the instance.
  5767. type TemporaryCredential struct {
  5768. // The instance's AWS OpsWorks ID.
  5769. InstanceId *string `type:"string"`
  5770. // The password.
  5771. Password *string `type:"string"`
  5772. // The user name.
  5773. Username *string `type:"string"`
  5774. // The length of time (in minutes) that the grant is valid. When the grant expires,
  5775. // at the end of this period, the user will no longer be able to use the credentials
  5776. // to log in. If they are logged in at the time, they will be automatically
  5777. // logged out.
  5778. ValidForInMinutes *int64 `type:"integer"`
  5779. metadataTemporaryCredential `json:"-" xml:"-"`
  5780. }
  5781. type metadataTemporaryCredential struct {
  5782. SDKShapeTraits bool `type:"structure"`
  5783. }
  5784. // String returns the string representation
  5785. func (s TemporaryCredential) String() string {
  5786. return awsutil.Prettify(s)
  5787. }
  5788. // GoString returns the string representation
  5789. func (s TemporaryCredential) GoString() string {
  5790. return s.String()
  5791. }
  5792. // Describes an instance's time-based auto scaling configuration.
  5793. type TimeBasedAutoScalingConfiguration struct {
  5794. // A WeeklyAutoScalingSchedule object with the instance schedule.
  5795. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`
  5796. // The instance ID.
  5797. InstanceId *string `type:"string"`
  5798. metadataTimeBasedAutoScalingConfiguration `json:"-" xml:"-"`
  5799. }
  5800. type metadataTimeBasedAutoScalingConfiguration struct {
  5801. SDKShapeTraits bool `type:"structure"`
  5802. }
  5803. // String returns the string representation
  5804. func (s TimeBasedAutoScalingConfiguration) String() string {
  5805. return awsutil.Prettify(s)
  5806. }
  5807. // GoString returns the string representation
  5808. func (s TimeBasedAutoScalingConfiguration) GoString() string {
  5809. return s.String()
  5810. }
  5811. type UnassignInstanceInput struct {
  5812. // The instance ID.
  5813. InstanceId *string `type:"string" required:"true"`
  5814. metadataUnassignInstanceInput `json:"-" xml:"-"`
  5815. }
  5816. type metadataUnassignInstanceInput struct {
  5817. SDKShapeTraits bool `type:"structure"`
  5818. }
  5819. // String returns the string representation
  5820. func (s UnassignInstanceInput) String() string {
  5821. return awsutil.Prettify(s)
  5822. }
  5823. // GoString returns the string representation
  5824. func (s UnassignInstanceInput) GoString() string {
  5825. return s.String()
  5826. }
  5827. type UnassignInstanceOutput struct {
  5828. metadataUnassignInstanceOutput `json:"-" xml:"-"`
  5829. }
  5830. type metadataUnassignInstanceOutput struct {
  5831. SDKShapeTraits bool `type:"structure"`
  5832. }
  5833. // String returns the string representation
  5834. func (s UnassignInstanceOutput) String() string {
  5835. return awsutil.Prettify(s)
  5836. }
  5837. // GoString returns the string representation
  5838. func (s UnassignInstanceOutput) GoString() string {
  5839. return s.String()
  5840. }
  5841. type UnassignVolumeInput struct {
  5842. // The volume ID.
  5843. VolumeId *string `type:"string" required:"true"`
  5844. metadataUnassignVolumeInput `json:"-" xml:"-"`
  5845. }
  5846. type metadataUnassignVolumeInput struct {
  5847. SDKShapeTraits bool `type:"structure"`
  5848. }
  5849. // String returns the string representation
  5850. func (s UnassignVolumeInput) String() string {
  5851. return awsutil.Prettify(s)
  5852. }
  5853. // GoString returns the string representation
  5854. func (s UnassignVolumeInput) GoString() string {
  5855. return s.String()
  5856. }
  5857. type UnassignVolumeOutput struct {
  5858. metadataUnassignVolumeOutput `json:"-" xml:"-"`
  5859. }
  5860. type metadataUnassignVolumeOutput struct {
  5861. SDKShapeTraits bool `type:"structure"`
  5862. }
  5863. // String returns the string representation
  5864. func (s UnassignVolumeOutput) String() string {
  5865. return awsutil.Prettify(s)
  5866. }
  5867. // GoString returns the string representation
  5868. func (s UnassignVolumeOutput) GoString() string {
  5869. return s.String()
  5870. }
  5871. type UpdateAppInput struct {
  5872. // The app ID.
  5873. AppId *string `type:"string" required:"true"`
  5874. // A Source object that specifies the app repository.
  5875. AppSource *Source `type:"structure"`
  5876. // One or more user-defined key/value pairs to be added to the stack attributes.
  5877. Attributes map[string]*string `type:"map"`
  5878. // The app's data sources.
  5879. DataSources []*DataSource `type:"list"`
  5880. // A description of the app.
  5881. Description *string `type:"string"`
  5882. // The app's virtual host settings, with multiple domains separated by commas.
  5883. // For example: 'www.example.com, example.com'
  5884. Domains []*string `type:"list"`
  5885. // Whether SSL is enabled for the app.
  5886. EnableSsl *bool `type:"boolean"`
  5887. // An array of EnvironmentVariable objects that specify environment variables
  5888. // to be associated with the app. After you deploy the app, these variables
  5889. // are defined on the associated app server instances.For more information,
  5890. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  5891. //
  5892. // There is no specific limit on the number of environment variables. However,
  5893. // the size of the associated data structure - which includes the variables'
  5894. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  5895. // This limit should accommodate most if not all use cases. Exceeding it will
  5896. // cause an exception with the message, "Environment: is too large (maximum
  5897. // is 10KB)."
  5898. //
  5899. // This parameter is supported only by Chef 11.10 stacks. If you have specified
  5900. // one or more environment variables, you cannot modify the stack's Chef version.
  5901. Environment []*EnvironmentVariable `type:"list"`
  5902. // The app name.
  5903. Name *string `type:"string"`
  5904. // An SslConfiguration object with the SSL configuration.
  5905. SslConfiguration *SslConfiguration `type:"structure"`
  5906. // The app type.
  5907. Type *string `type:"string" enum:"AppType"`
  5908. metadataUpdateAppInput `json:"-" xml:"-"`
  5909. }
  5910. type metadataUpdateAppInput struct {
  5911. SDKShapeTraits bool `type:"structure"`
  5912. }
  5913. // String returns the string representation
  5914. func (s UpdateAppInput) String() string {
  5915. return awsutil.Prettify(s)
  5916. }
  5917. // GoString returns the string representation
  5918. func (s UpdateAppInput) GoString() string {
  5919. return s.String()
  5920. }
  5921. type UpdateAppOutput struct {
  5922. metadataUpdateAppOutput `json:"-" xml:"-"`
  5923. }
  5924. type metadataUpdateAppOutput struct {
  5925. SDKShapeTraits bool `type:"structure"`
  5926. }
  5927. // String returns the string representation
  5928. func (s UpdateAppOutput) String() string {
  5929. return awsutil.Prettify(s)
  5930. }
  5931. // GoString returns the string representation
  5932. func (s UpdateAppOutput) GoString() string {
  5933. return s.String()
  5934. }
  5935. type UpdateElasticIpInput struct {
  5936. // The address.
  5937. ElasticIp *string `type:"string" required:"true"`
  5938. // The new name.
  5939. Name *string `type:"string"`
  5940. metadataUpdateElasticIpInput `json:"-" xml:"-"`
  5941. }
  5942. type metadataUpdateElasticIpInput struct {
  5943. SDKShapeTraits bool `type:"structure"`
  5944. }
  5945. // String returns the string representation
  5946. func (s UpdateElasticIpInput) String() string {
  5947. return awsutil.Prettify(s)
  5948. }
  5949. // GoString returns the string representation
  5950. func (s UpdateElasticIpInput) GoString() string {
  5951. return s.String()
  5952. }
  5953. type UpdateElasticIpOutput struct {
  5954. metadataUpdateElasticIpOutput `json:"-" xml:"-"`
  5955. }
  5956. type metadataUpdateElasticIpOutput struct {
  5957. SDKShapeTraits bool `type:"structure"`
  5958. }
  5959. // String returns the string representation
  5960. func (s UpdateElasticIpOutput) String() string {
  5961. return awsutil.Prettify(s)
  5962. }
  5963. // GoString returns the string representation
  5964. func (s UpdateElasticIpOutput) GoString() string {
  5965. return s.String()
  5966. }
  5967. type UpdateInstanceInput struct {
  5968. // The default AWS OpsWorks agent version. You have the following options:
  5969. //
  5970. // INHERIT - Use the stack's default agent version setting. version_number
  5971. // - Use the specified agent version. This value overrides the stack's default
  5972. // setting. To update the agent version, you must edit the instance configuration
  5973. // and specify a new version. AWS OpsWorks then automatically installs that
  5974. // version on the instance. The default setting is INHERIT. To specify an agent
  5975. // version, you must use the complete version number, not the abbreviated number
  5976. // shown on the console. For a list of available agent version numbers, call
  5977. // DescribeAgentVersions.
  5978. AgentVersion *string `type:"string"`
  5979. // A custom AMI ID to be used to create the instance. The AMI must be based
  5980. // on one of the supported operating systems. For more information, see Instances
  5981. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html)
  5982. //
  5983. // If you specify a custom AMI, you must set Os to Custom.
  5984. AmiId *string `type:"string"`
  5985. // The instance architecture. Instance types do not necessarily support both
  5986. // architectures. For a list of the architectures that are supported by the
  5987. // different instance types, see Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  5988. Architecture *string `type:"string" enum:"Architecture"`
  5989. // For load-based or time-based instances, the type. Windows stacks can use
  5990. // only time-based instances.
  5991. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  5992. // This property cannot be updated.
  5993. EbsOptimized *bool `type:"boolean"`
  5994. // The instance host name.
  5995. Hostname *string `type:"string"`
  5996. // Whether to install operating system and package updates when the instance
  5997. // boots. The default value is true. To control when updates are installed,
  5998. // set this value to false. You must then update your instances manually by
  5999. // using CreateDeployment to run the update_dependencies stack command or by
  6000. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  6001. //
  6002. // We strongly recommend using the default value of true, to ensure that your
  6003. // instances have the latest security updates.
  6004. InstallUpdatesOnBoot *bool `type:"boolean"`
  6005. // The instance ID.
  6006. InstanceId *string `type:"string" required:"true"`
  6007. // The instance type, such as t2.micro. For a list of supported instance types,
  6008. // open the stack in the console, choose Instances, and choose + Instance. The
  6009. // Size list contains the currently supported types. For more information, see
  6010. // Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  6011. // The parameter values that you use to specify the various types are in the
  6012. // API Name column of the Available Instance Types table.
  6013. InstanceType *string `type:"string"`
  6014. // The instance's layer IDs.
  6015. LayerIds []*string `type:"list"`
  6016. // The instance's operating system, which must be set to one of the following.
  6017. //
  6018. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  6019. // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04
  6020. // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. For more
  6021. // information on the supported operating systems, see AWS OpsWorks Operating
  6022. // Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  6023. //
  6024. // The default option is the current Amazon Linux version. If you set this
  6025. // parameter to Custom, you must use the AmiId parameter to specify the custom
  6026. // AMI that you want to use. For more information on the supported operating
  6027. // systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  6028. // For more information on how to use custom AMIs with OpsWorks, see Using Custom
  6029. // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  6030. //
  6031. // You can specify a different Linux operating system for the updated stack,
  6032. // but you cannot change from Linux to Windows or Windows to Linux.
  6033. Os *string `type:"string"`
  6034. // The instance's Amazon EC2 key name.
  6035. SshKeyName *string `type:"string"`
  6036. metadataUpdateInstanceInput `json:"-" xml:"-"`
  6037. }
  6038. type metadataUpdateInstanceInput struct {
  6039. SDKShapeTraits bool `type:"structure"`
  6040. }
  6041. // String returns the string representation
  6042. func (s UpdateInstanceInput) String() string {
  6043. return awsutil.Prettify(s)
  6044. }
  6045. // GoString returns the string representation
  6046. func (s UpdateInstanceInput) GoString() string {
  6047. return s.String()
  6048. }
  6049. type UpdateInstanceOutput struct {
  6050. metadataUpdateInstanceOutput `json:"-" xml:"-"`
  6051. }
  6052. type metadataUpdateInstanceOutput struct {
  6053. SDKShapeTraits bool `type:"structure"`
  6054. }
  6055. // String returns the string representation
  6056. func (s UpdateInstanceOutput) String() string {
  6057. return awsutil.Prettify(s)
  6058. }
  6059. // GoString returns the string representation
  6060. func (s UpdateInstanceOutput) GoString() string {
  6061. return s.String()
  6062. }
  6063. type UpdateLayerInput struct {
  6064. // One or more user-defined key/value pairs to be added to the stack attributes.
  6065. Attributes map[string]*string `type:"map"`
  6066. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  6067. // to the layer's instances. For more information, see How to Edit a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  6068. AutoAssignElasticIps *bool `type:"boolean"`
  6069. // For stacks that are running in a VPC, whether to automatically assign a public
  6070. // IP address to the layer's instances. For more information, see How to Edit
  6071. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  6072. AutoAssignPublicIps *bool `type:"boolean"`
  6073. // The ARN of an IAM profile to be used for all of the layer's EC2 instances.
  6074. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6075. CustomInstanceProfileArn *string `type:"string"`
  6076. // A JSON-formatted string containing custom stack configuration and deployment
  6077. // attributes to be installed on the layer's instances. For more information,
  6078. // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
  6079. CustomJson *string `type:"string"`
  6080. // A LayerCustomRecipes object that specifies the layer's custom recipes.
  6081. CustomRecipes *Recipes `type:"structure"`
  6082. // An array containing the layer's custom security group IDs.
  6083. CustomSecurityGroupIds []*string `type:"list"`
  6084. // Whether to disable auto healing for the layer.
  6085. EnableAutoHealing *bool `type:"boolean"`
  6086. // Whether to install operating system and package updates when the instance
  6087. // boots. The default value is true. To control when updates are installed,
  6088. // set this value to false. You must then update your instances manually by
  6089. // using CreateDeployment to run the update_dependencies stack command or manually
  6090. // running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  6091. //
  6092. // We strongly recommend using the default value of true, to ensure that your
  6093. // instances have the latest security updates.
  6094. InstallUpdatesOnBoot *bool `type:"boolean"`
  6095. // The layer ID.
  6096. LayerId *string `type:"string" required:"true"`
  6097. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  6098. // The layer name, which is used by the console.
  6099. Name *string `type:"string"`
  6100. // An array of Package objects that describe the layer's packages.
  6101. Packages []*string `type:"list"`
  6102. // For custom layers only, use this parameter to specify the layer's short name,
  6103. // which is used internally by AWS OpsWorksand by Chef. The short name is also
  6104. // used as the name for the directory where your app files are installed. It
  6105. // can have a maximum of 200 characters and must be in the following format:
  6106. // /\A[a-z0-9\-\_\.]+\Z/.
  6107. //
  6108. // The built-in layers' short names are defined by AWS OpsWorks. For more information,
  6109. // see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html)
  6110. Shortname *string `type:"string"`
  6111. // Whether to use Amazon EBS-optimized instances.
  6112. UseEbsOptimizedInstances *bool `type:"boolean"`
  6113. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  6114. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  6115. metadataUpdateLayerInput `json:"-" xml:"-"`
  6116. }
  6117. type metadataUpdateLayerInput struct {
  6118. SDKShapeTraits bool `type:"structure"`
  6119. }
  6120. // String returns the string representation
  6121. func (s UpdateLayerInput) String() string {
  6122. return awsutil.Prettify(s)
  6123. }
  6124. // GoString returns the string representation
  6125. func (s UpdateLayerInput) GoString() string {
  6126. return s.String()
  6127. }
  6128. type UpdateLayerOutput struct {
  6129. metadataUpdateLayerOutput `json:"-" xml:"-"`
  6130. }
  6131. type metadataUpdateLayerOutput struct {
  6132. SDKShapeTraits bool `type:"structure"`
  6133. }
  6134. // String returns the string representation
  6135. func (s UpdateLayerOutput) String() string {
  6136. return awsutil.Prettify(s)
  6137. }
  6138. // GoString returns the string representation
  6139. func (s UpdateLayerOutput) GoString() string {
  6140. return s.String()
  6141. }
  6142. type UpdateMyUserProfileInput struct {
  6143. // The user's SSH public key.
  6144. SshPublicKey *string `type:"string"`
  6145. metadataUpdateMyUserProfileInput `json:"-" xml:"-"`
  6146. }
  6147. type metadataUpdateMyUserProfileInput struct {
  6148. SDKShapeTraits bool `type:"structure"`
  6149. }
  6150. // String returns the string representation
  6151. func (s UpdateMyUserProfileInput) String() string {
  6152. return awsutil.Prettify(s)
  6153. }
  6154. // GoString returns the string representation
  6155. func (s UpdateMyUserProfileInput) GoString() string {
  6156. return s.String()
  6157. }
  6158. type UpdateMyUserProfileOutput struct {
  6159. metadataUpdateMyUserProfileOutput `json:"-" xml:"-"`
  6160. }
  6161. type metadataUpdateMyUserProfileOutput struct {
  6162. SDKShapeTraits bool `type:"structure"`
  6163. }
  6164. // String returns the string representation
  6165. func (s UpdateMyUserProfileOutput) String() string {
  6166. return awsutil.Prettify(s)
  6167. }
  6168. // GoString returns the string representation
  6169. func (s UpdateMyUserProfileOutput) GoString() string {
  6170. return s.String()
  6171. }
  6172. type UpdateRdsDbInstanceInput struct {
  6173. // The database password.
  6174. DbPassword *string `type:"string"`
  6175. // The master user name.
  6176. DbUser *string `type:"string"`
  6177. // The Amazon RDS instance's ARN.
  6178. RdsDbInstanceArn *string `type:"string" required:"true"`
  6179. metadataUpdateRdsDbInstanceInput `json:"-" xml:"-"`
  6180. }
  6181. type metadataUpdateRdsDbInstanceInput struct {
  6182. SDKShapeTraits bool `type:"structure"`
  6183. }
  6184. // String returns the string representation
  6185. func (s UpdateRdsDbInstanceInput) String() string {
  6186. return awsutil.Prettify(s)
  6187. }
  6188. // GoString returns the string representation
  6189. func (s UpdateRdsDbInstanceInput) GoString() string {
  6190. return s.String()
  6191. }
  6192. type UpdateRdsDbInstanceOutput struct {
  6193. metadataUpdateRdsDbInstanceOutput `json:"-" xml:"-"`
  6194. }
  6195. type metadataUpdateRdsDbInstanceOutput struct {
  6196. SDKShapeTraits bool `type:"structure"`
  6197. }
  6198. // String returns the string representation
  6199. func (s UpdateRdsDbInstanceOutput) String() string {
  6200. return awsutil.Prettify(s)
  6201. }
  6202. // GoString returns the string representation
  6203. func (s UpdateRdsDbInstanceOutput) GoString() string {
  6204. return s.String()
  6205. }
  6206. type UpdateStackInput struct {
  6207. // The default AWS OpsWorks agent version. You have the following options:
  6208. //
  6209. // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  6210. // installs new agent versions on the stack's instances as soon as they are
  6211. // available. Fixed version - Set this parameter to your preferred agent version.
  6212. // To update the agent version, you must edit the stack configuration and specify
  6213. // a new version. AWS OpsWorks then automatically installs that version on the
  6214. // stack's instances. The default setting is LATEST. To specify an agent version,
  6215. // you must use the complete version number, not the abbreviated number shown
  6216. // on the console. For a list of available agent version numbers, call DescribeAgentVersions.
  6217. //
  6218. // You can also specify an agent version when you create or update an instance,
  6219. // which overrides the stack's default setting.
  6220. AgentVersion *string `type:"string"`
  6221. // One or more user-defined key-value pairs to be added to the stack attributes.
  6222. Attributes map[string]*string `type:"map"`
  6223. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  6224. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  6225. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  6226. ChefConfiguration *ChefConfiguration `type:"structure"`
  6227. // The configuration manager. When you clone a stack, we recommend that you
  6228. // use the configuration manager to specify the Chef version: 0.9, 11.4, or
  6229. // 11.10. The default value is currently 11.4.
  6230. ConfigurationManager *StackConfigurationManager `type:"structure"`
  6231. // Contains the information required to retrieve an app or cookbook from a repository.
  6232. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  6233. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  6234. CustomCookbooksSource *Source `type:"structure"`
  6235. // A string that contains user-defined, custom JSON. It can be used to override
  6236. // the corresponding default stack configuration JSON values or to pass data
  6237. // to recipes. The string should be in the following format and escape characters
  6238. // such as '"':
  6239. //
  6240. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  6241. //
  6242. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  6243. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  6244. CustomJson *string `type:"string"`
  6245. // The stack's default Availability Zone, which must be in the stack's region.
  6246. // For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6247. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  6248. // same zone. For more information, see CreateStack.
  6249. DefaultAvailabilityZone *string `type:"string"`
  6250. // The ARN of an IAM profile that is the default profile for all of the stack's
  6251. // EC2 instances. For more information about IAM ARNs, see Using Identifiers
  6252. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6253. DefaultInstanceProfileArn *string `type:"string"`
  6254. // The stack's operating system, which must be set to one of the following:
  6255. //
  6256. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  6257. // Linux 2015.03, Red Hat Enterprise Linux 7, Ubuntu 12.04 LTS, or Ubuntu 14.04
  6258. // LTS. Microsoft Windows Server 2012 R2 Base. A custom AMI: Custom. You specify
  6259. // the custom AMI you want to use when you create instances. For more information
  6260. // on how to use custom AMIs with OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  6261. // The default option is the stack's current operating system. For more information
  6262. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  6263. DefaultOs *string `type:"string"`
  6264. // The default root device type. This value is used by default for all instances
  6265. // in the stack, but you can override it when you create an instance. For more
  6266. // information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  6267. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  6268. // A default Amazon EC2 key-pair name. The default value is none. If you specify
  6269. // a key-pair name, AWS OpsWorks installs the public key on the instance and
  6270. // you can use the private key with an SSH client to log in to the instance.
  6271. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  6272. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  6273. // You can override this setting by specifying a different key pair, or no key
  6274. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  6275. DefaultSshKeyName *string `type:"string"`
  6276. // The stack's default VPC subnet ID. This parameter is required if you specify
  6277. // a value for the VpcId parameter. All instances are launched into this subnet
  6278. // unless you specify otherwise when you create the instance. If you also specify
  6279. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  6280. // information on default values and when this parameter is required, see the
  6281. // VpcId parameter description.
  6282. DefaultSubnetId *string `type:"string"`
  6283. // The stack's new host name theme, with spaces replaced by underscores. The
  6284. // theme is used to generate host names for the stack's instances. By default,
  6285. // HostnameTheme is set to Layer_Dependent, which creates host names by appending
  6286. // integers to the layer's short name. The other themes are:
  6287. //
  6288. // Baked_Goods Clouds Europe_Cities Fruits Greek_Deities Legendary_creatures_from_Japan
  6289. // Planets_and_Moons Roman_Deities Scottish_Islands US_Cities Wild_Cats
  6290. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  6291. // a host name based on the current theme.
  6292. HostnameTheme *string `type:"string"`
  6293. // The stack's new name.
  6294. Name *string `type:"string"`
  6295. // Do not use this parameter. You cannot update a stack's service role.
  6296. ServiceRoleArn *string `type:"string"`
  6297. // The stack ID.
  6298. StackId *string `type:"string" required:"true"`
  6299. // Whether the stack uses custom cookbooks.
  6300. UseCustomCookbooks *bool `type:"boolean"`
  6301. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  6302. // layers.
  6303. //
  6304. // AWS OpsWorks provides a standard set of built-in security groups, one for
  6305. // each layer, which are associated with layers by default. UseOpsworksSecurityGroups
  6306. // allows you to provide your own custom security groups instead of using the
  6307. // built-in groups. UseOpsworksSecurityGroups has the following settings:
  6308. //
  6309. // True - AWS OpsWorks automatically associates the appropriate built-in security
  6310. // group with each layer (default setting). You can associate additional security
  6311. // groups with a layer after you create it, but you cannot delete the built-in
  6312. // security group. False - AWS OpsWorks does not associate built-in security
  6313. // groups with layers. You must create appropriate EC2 security groups and associate
  6314. // a security group with each layer that you create. However, you can still
  6315. // manually associate a built-in security group with a layer on. Custom security
  6316. // groups are required only for those layers that need custom settings. For
  6317. // more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  6318. UseOpsworksSecurityGroups *bool `type:"boolean"`
  6319. metadataUpdateStackInput `json:"-" xml:"-"`
  6320. }
  6321. type metadataUpdateStackInput struct {
  6322. SDKShapeTraits bool `type:"structure"`
  6323. }
  6324. // String returns the string representation
  6325. func (s UpdateStackInput) String() string {
  6326. return awsutil.Prettify(s)
  6327. }
  6328. // GoString returns the string representation
  6329. func (s UpdateStackInput) GoString() string {
  6330. return s.String()
  6331. }
  6332. type UpdateStackOutput struct {
  6333. metadataUpdateStackOutput `json:"-" xml:"-"`
  6334. }
  6335. type metadataUpdateStackOutput struct {
  6336. SDKShapeTraits bool `type:"structure"`
  6337. }
  6338. // String returns the string representation
  6339. func (s UpdateStackOutput) String() string {
  6340. return awsutil.Prettify(s)
  6341. }
  6342. // GoString returns the string representation
  6343. func (s UpdateStackOutput) GoString() string {
  6344. return s.String()
  6345. }
  6346. type UpdateUserProfileInput struct {
  6347. // Whether users can specify their own SSH public key through the My Settings
  6348. // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  6349. AllowSelfManagement *bool `type:"boolean"`
  6350. // The user IAM ARN.
  6351. IamUserArn *string `type:"string" required:"true"`
  6352. // The user's new SSH public key.
  6353. SshPublicKey *string `type:"string"`
  6354. // The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
  6355. // '-', and '_'. If the specified name includes other punctuation marks, AWS
  6356. // OpsWorks removes them. For example, my.name will be changed to myname. If
  6357. // you do not specify an SSH user name, AWS OpsWorks generates one from the
  6358. // IAM user name.
  6359. SshUsername *string `type:"string"`
  6360. metadataUpdateUserProfileInput `json:"-" xml:"-"`
  6361. }
  6362. type metadataUpdateUserProfileInput struct {
  6363. SDKShapeTraits bool `type:"structure"`
  6364. }
  6365. // String returns the string representation
  6366. func (s UpdateUserProfileInput) String() string {
  6367. return awsutil.Prettify(s)
  6368. }
  6369. // GoString returns the string representation
  6370. func (s UpdateUserProfileInput) GoString() string {
  6371. return s.String()
  6372. }
  6373. type UpdateUserProfileOutput struct {
  6374. metadataUpdateUserProfileOutput `json:"-" xml:"-"`
  6375. }
  6376. type metadataUpdateUserProfileOutput struct {
  6377. SDKShapeTraits bool `type:"structure"`
  6378. }
  6379. // String returns the string representation
  6380. func (s UpdateUserProfileOutput) String() string {
  6381. return awsutil.Prettify(s)
  6382. }
  6383. // GoString returns the string representation
  6384. func (s UpdateUserProfileOutput) GoString() string {
  6385. return s.String()
  6386. }
  6387. type UpdateVolumeInput struct {
  6388. // The new mount point.
  6389. MountPoint *string `type:"string"`
  6390. // The new name.
  6391. Name *string `type:"string"`
  6392. // The volume ID.
  6393. VolumeId *string `type:"string" required:"true"`
  6394. metadataUpdateVolumeInput `json:"-" xml:"-"`
  6395. }
  6396. type metadataUpdateVolumeInput struct {
  6397. SDKShapeTraits bool `type:"structure"`
  6398. }
  6399. // String returns the string representation
  6400. func (s UpdateVolumeInput) String() string {
  6401. return awsutil.Prettify(s)
  6402. }
  6403. // GoString returns the string representation
  6404. func (s UpdateVolumeInput) GoString() string {
  6405. return s.String()
  6406. }
  6407. type UpdateVolumeOutput struct {
  6408. metadataUpdateVolumeOutput `json:"-" xml:"-"`
  6409. }
  6410. type metadataUpdateVolumeOutput struct {
  6411. SDKShapeTraits bool `type:"structure"`
  6412. }
  6413. // String returns the string representation
  6414. func (s UpdateVolumeOutput) String() string {
  6415. return awsutil.Prettify(s)
  6416. }
  6417. // GoString returns the string representation
  6418. func (s UpdateVolumeOutput) GoString() string {
  6419. return s.String()
  6420. }
  6421. // Describes a user's SSH information.
  6422. type UserProfile struct {
  6423. // Whether users can specify their own SSH public key through the My Settings
  6424. // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  6425. AllowSelfManagement *bool `type:"boolean"`
  6426. // The user's IAM ARN.
  6427. IamUserArn *string `type:"string"`
  6428. // The user's name.
  6429. Name *string `type:"string"`
  6430. // The user's SSH public key.
  6431. SshPublicKey *string `type:"string"`
  6432. // The user's SSH user name.
  6433. SshUsername *string `type:"string"`
  6434. metadataUserProfile `json:"-" xml:"-"`
  6435. }
  6436. type metadataUserProfile struct {
  6437. SDKShapeTraits bool `type:"structure"`
  6438. }
  6439. // String returns the string representation
  6440. func (s UserProfile) String() string {
  6441. return awsutil.Prettify(s)
  6442. }
  6443. // GoString returns the string representation
  6444. func (s UserProfile) GoString() string {
  6445. return s.String()
  6446. }
  6447. // Describes an instance's Amazon EBS volume.
  6448. type Volume struct {
  6449. // The volume Availability Zone. For more information, see Regions and Endpoints
  6450. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6451. AvailabilityZone *string `type:"string"`
  6452. // The device name.
  6453. Device *string `type:"string"`
  6454. // The Amazon EC2 volume ID.
  6455. Ec2VolumeId *string `type:"string"`
  6456. // The instance ID.
  6457. InstanceId *string `type:"string"`
  6458. // For PIOPS volumes, the IOPS per disk.
  6459. Iops *int64 `type:"integer"`
  6460. // The volume mount point. For example "/dev/sdh".
  6461. MountPoint *string `type:"string"`
  6462. // The volume name.
  6463. Name *string `type:"string"`
  6464. // The RAID array ID.
  6465. RaidArrayId *string `type:"string"`
  6466. // The AWS region. For more information about AWS regions, see Regions and Endpoints
  6467. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6468. Region *string `type:"string"`
  6469. // The volume size.
  6470. Size *int64 `type:"integer"`
  6471. // The value returned by DescribeVolumes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeVolumes.html).
  6472. Status *string `type:"string"`
  6473. // The volume ID.
  6474. VolumeId *string `type:"string"`
  6475. // The volume type, standard or PIOPS.
  6476. VolumeType *string `type:"string"`
  6477. metadataVolume `json:"-" xml:"-"`
  6478. }
  6479. type metadataVolume struct {
  6480. SDKShapeTraits bool `type:"structure"`
  6481. }
  6482. // String returns the string representation
  6483. func (s Volume) String() string {
  6484. return awsutil.Prettify(s)
  6485. }
  6486. // GoString returns the string representation
  6487. func (s Volume) GoString() string {
  6488. return s.String()
  6489. }
  6490. // Describes an Amazon EBS volume configuration.
  6491. type VolumeConfiguration struct {
  6492. // For PIOPS volumes, the IOPS per disk.
  6493. Iops *int64 `type:"integer"`
  6494. // The volume mount point. For example "/dev/sdh".
  6495. MountPoint *string `type:"string" required:"true"`
  6496. // The number of disks in the volume.
  6497. NumberOfDisks *int64 `type:"integer" required:"true"`
  6498. // The volume RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
  6499. RaidLevel *int64 `type:"integer"`
  6500. // The volume size.
  6501. Size *int64 `type:"integer" required:"true"`
  6502. // The volume type:
  6503. //
  6504. // standard - Magnetic io1 - Provisioned IOPS (SSD) gp2 - General Purpose
  6505. // (SSD)
  6506. VolumeType *string `type:"string"`
  6507. metadataVolumeConfiguration `json:"-" xml:"-"`
  6508. }
  6509. type metadataVolumeConfiguration struct {
  6510. SDKShapeTraits bool `type:"structure"`
  6511. }
  6512. // String returns the string representation
  6513. func (s VolumeConfiguration) String() string {
  6514. return awsutil.Prettify(s)
  6515. }
  6516. // GoString returns the string representation
  6517. func (s VolumeConfiguration) GoString() string {
  6518. return s.String()
  6519. }
  6520. // Describes a time-based instance's auto scaling schedule. The schedule consists
  6521. // of a set of key-value pairs.
  6522. //
  6523. // The key is the time period (a UTC hour) and must be an integer from 0 -
  6524. // 23. The value indicates whether the instance should be online or offline
  6525. // for the specified period, and must be set to "on" or "off" The default setting
  6526. // for all time periods is off, so you use the following parameters primarily
  6527. // to specify the online periods. You don't have to explicitly specify offline
  6528. // periods unless you want to change an online period to an offline period.
  6529. //
  6530. // The following example specifies that the instance should be online for four
  6531. // hours, from UTC 1200 - 1600. It will be off for the remainder of the day.
  6532. //
  6533. // { "12":"on", "13":"on", "14":"on", "15":"on" }
  6534. type WeeklyAutoScalingSchedule struct {
  6535. // The schedule for Friday.
  6536. Friday map[string]*string `type:"map"`
  6537. // The schedule for Monday.
  6538. Monday map[string]*string `type:"map"`
  6539. // The schedule for Saturday.
  6540. Saturday map[string]*string `type:"map"`
  6541. // The schedule for Sunday.
  6542. Sunday map[string]*string `type:"map"`
  6543. // The schedule for Thursday.
  6544. Thursday map[string]*string `type:"map"`
  6545. // The schedule for Tuesday.
  6546. Tuesday map[string]*string `type:"map"`
  6547. // The schedule for Wednesday.
  6548. Wednesday map[string]*string `type:"map"`
  6549. metadataWeeklyAutoScalingSchedule `json:"-" xml:"-"`
  6550. }
  6551. type metadataWeeklyAutoScalingSchedule struct {
  6552. SDKShapeTraits bool `type:"structure"`
  6553. }
  6554. // String returns the string representation
  6555. func (s WeeklyAutoScalingSchedule) String() string {
  6556. return awsutil.Prettify(s)
  6557. }
  6558. // GoString returns the string representation
  6559. func (s WeeklyAutoScalingSchedule) GoString() string {
  6560. return s.String()
  6561. }
  6562. const (
  6563. // @enum AppAttributesKeys
  6564. AppAttributesKeysDocumentRoot = "DocumentRoot"
  6565. // @enum AppAttributesKeys
  6566. AppAttributesKeysRailsEnv = "RailsEnv"
  6567. // @enum AppAttributesKeys
  6568. AppAttributesKeysAutoBundleOnDeploy = "AutoBundleOnDeploy"
  6569. // @enum AppAttributesKeys
  6570. AppAttributesKeysAwsFlowRubySettings = "AwsFlowRubySettings"
  6571. )
  6572. const (
  6573. // @enum AppType
  6574. AppTypeAwsFlowRuby = "aws-flow-ruby"
  6575. // @enum AppType
  6576. AppTypeJava = "java"
  6577. // @enum AppType
  6578. AppTypeRails = "rails"
  6579. // @enum AppType
  6580. AppTypePhp = "php"
  6581. // @enum AppType
  6582. AppTypeNodejs = "nodejs"
  6583. // @enum AppType
  6584. AppTypeStatic = "static"
  6585. // @enum AppType
  6586. AppTypeOther = "other"
  6587. )
  6588. const (
  6589. // @enum Architecture
  6590. ArchitectureX8664 = "x86_64"
  6591. // @enum Architecture
  6592. ArchitectureI386 = "i386"
  6593. )
  6594. const (
  6595. // @enum AutoScalingType
  6596. AutoScalingTypeLoad = "load"
  6597. // @enum AutoScalingType
  6598. AutoScalingTypeTimer = "timer"
  6599. )
  6600. const (
  6601. // @enum DeploymentCommandName
  6602. DeploymentCommandNameInstallDependencies = "install_dependencies"
  6603. // @enum DeploymentCommandName
  6604. DeploymentCommandNameUpdateDependencies = "update_dependencies"
  6605. // @enum DeploymentCommandName
  6606. DeploymentCommandNameUpdateCustomCookbooks = "update_custom_cookbooks"
  6607. // @enum DeploymentCommandName
  6608. DeploymentCommandNameExecuteRecipes = "execute_recipes"
  6609. // @enum DeploymentCommandName
  6610. DeploymentCommandNameConfigure = "configure"
  6611. // @enum DeploymentCommandName
  6612. DeploymentCommandNameSetup = "setup"
  6613. // @enum DeploymentCommandName
  6614. DeploymentCommandNameDeploy = "deploy"
  6615. // @enum DeploymentCommandName
  6616. DeploymentCommandNameRollback = "rollback"
  6617. // @enum DeploymentCommandName
  6618. DeploymentCommandNameStart = "start"
  6619. // @enum DeploymentCommandName
  6620. DeploymentCommandNameStop = "stop"
  6621. // @enum DeploymentCommandName
  6622. DeploymentCommandNameRestart = "restart"
  6623. // @enum DeploymentCommandName
  6624. DeploymentCommandNameUndeploy = "undeploy"
  6625. )
  6626. const (
  6627. // @enum LayerAttributesKeys
  6628. LayerAttributesKeysEcsClusterArn = "EcsClusterArn"
  6629. // @enum LayerAttributesKeys
  6630. LayerAttributesKeysEnableHaproxyStats = "EnableHaproxyStats"
  6631. // @enum LayerAttributesKeys
  6632. LayerAttributesKeysHaproxyStatsUrl = "HaproxyStatsUrl"
  6633. // @enum LayerAttributesKeys
  6634. LayerAttributesKeysHaproxyStatsUser = "HaproxyStatsUser"
  6635. // @enum LayerAttributesKeys
  6636. LayerAttributesKeysHaproxyStatsPassword = "HaproxyStatsPassword"
  6637. // @enum LayerAttributesKeys
  6638. LayerAttributesKeysHaproxyHealthCheckUrl = "HaproxyHealthCheckUrl"
  6639. // @enum LayerAttributesKeys
  6640. LayerAttributesKeysHaproxyHealthCheckMethod = "HaproxyHealthCheckMethod"
  6641. // @enum LayerAttributesKeys
  6642. LayerAttributesKeysMysqlRootPassword = "MysqlRootPassword"
  6643. // @enum LayerAttributesKeys
  6644. LayerAttributesKeysMysqlRootPasswordUbiquitous = "MysqlRootPasswordUbiquitous"
  6645. // @enum LayerAttributesKeys
  6646. LayerAttributesKeysGangliaUrl = "GangliaUrl"
  6647. // @enum LayerAttributesKeys
  6648. LayerAttributesKeysGangliaUser = "GangliaUser"
  6649. // @enum LayerAttributesKeys
  6650. LayerAttributesKeysGangliaPassword = "GangliaPassword"
  6651. // @enum LayerAttributesKeys
  6652. LayerAttributesKeysMemcachedMemory = "MemcachedMemory"
  6653. // @enum LayerAttributesKeys
  6654. LayerAttributesKeysNodejsVersion = "NodejsVersion"
  6655. // @enum LayerAttributesKeys
  6656. LayerAttributesKeysRubyVersion = "RubyVersion"
  6657. // @enum LayerAttributesKeys
  6658. LayerAttributesKeysRubygemsVersion = "RubygemsVersion"
  6659. // @enum LayerAttributesKeys
  6660. LayerAttributesKeysManageBundler = "ManageBundler"
  6661. // @enum LayerAttributesKeys
  6662. LayerAttributesKeysBundlerVersion = "BundlerVersion"
  6663. // @enum LayerAttributesKeys
  6664. LayerAttributesKeysRailsStack = "RailsStack"
  6665. // @enum LayerAttributesKeys
  6666. LayerAttributesKeysPassengerVersion = "PassengerVersion"
  6667. // @enum LayerAttributesKeys
  6668. LayerAttributesKeysJvm = "Jvm"
  6669. // @enum LayerAttributesKeys
  6670. LayerAttributesKeysJvmVersion = "JvmVersion"
  6671. // @enum LayerAttributesKeys
  6672. LayerAttributesKeysJvmOptions = "JvmOptions"
  6673. // @enum LayerAttributesKeys
  6674. LayerAttributesKeysJavaAppServer = "JavaAppServer"
  6675. // @enum LayerAttributesKeys
  6676. LayerAttributesKeysJavaAppServerVersion = "JavaAppServerVersion"
  6677. )
  6678. const (
  6679. // @enum LayerType
  6680. LayerTypeAwsFlowRuby = "aws-flow-ruby"
  6681. // @enum LayerType
  6682. LayerTypeEcsCluster = "ecs-cluster"
  6683. // @enum LayerType
  6684. LayerTypeJavaApp = "java-app"
  6685. // @enum LayerType
  6686. LayerTypeLb = "lb"
  6687. // @enum LayerType
  6688. LayerTypeWeb = "web"
  6689. // @enum LayerType
  6690. LayerTypePhpApp = "php-app"
  6691. // @enum LayerType
  6692. LayerTypeRailsApp = "rails-app"
  6693. // @enum LayerType
  6694. LayerTypeNodejsApp = "nodejs-app"
  6695. // @enum LayerType
  6696. LayerTypeMemcached = "memcached"
  6697. // @enum LayerType
  6698. LayerTypeDbMaster = "db-master"
  6699. // @enum LayerType
  6700. LayerTypeMonitoringMaster = "monitoring-master"
  6701. // @enum LayerType
  6702. LayerTypeCustom = "custom"
  6703. )
  6704. const (
  6705. // @enum RootDeviceType
  6706. RootDeviceTypeEbs = "ebs"
  6707. // @enum RootDeviceType
  6708. RootDeviceTypeInstanceStore = "instance-store"
  6709. )
  6710. const (
  6711. // @enum SourceType
  6712. SourceTypeGit = "git"
  6713. // @enum SourceType
  6714. SourceTypeSvn = "svn"
  6715. // @enum SourceType
  6716. SourceTypeArchive = "archive"
  6717. // @enum SourceType
  6718. SourceTypeS3 = "s3"
  6719. )
  6720. const (
  6721. // @enum StackAttributesKeys
  6722. StackAttributesKeysColor = "Color"
  6723. )
  6724. const (
  6725. // @enum VirtualizationType
  6726. VirtualizationTypeParavirtual = "paravirtual"
  6727. // @enum VirtualizationType
  6728. VirtualizationTypeHvm = "hvm"
  6729. )
  6730. const (
  6731. // @enum VolumeType
  6732. VolumeTypeGp2 = "gp2"
  6733. // @enum VolumeType
  6734. VolumeTypeIo1 = "io1"
  6735. // @enum VolumeType
  6736. VolumeTypeStandard = "standard"
  6737. )